Renew credentials after expired Azure refresh token

If your multi-cloud platform logs contain a message such as the following, you may need to renew your pricing credentials because of an expired Azure refresh token.

Caused by: feign.FeignException$BadRequest: [400 Bad Request] during [POST] to [https://login.microsoftonline.com/subscription/oauth2/token] [AuthenticationAPI#authorize(String,String)]: [{"error":"invalid_grant","error_description":"AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2020-10-26T08:38:45.8118091Z and was inactive for 90.00:00:00.\r\nT... (569 bytes)]

 

To renew your Azure credentials:

  1. Log in to the Azure portal

  2. Go to Azure Active DirectoryAuthentication → App registrations

  3. Find the app for which you generated the credentials

  4. Go to Redirect URIs

  5. Find the Redirect URI that is used to grant consent for the use of the credentials

  6. Go to this consent URI and log in

  7. Get the new access token and the new refresh token

  8. Add these to the Abiquo multi-cloud platform as part of your pricing credentials in the format

    csp#tenantId#applicationId#accessToken#refreshToken

     Also, in versions prior to Abiquo 5.2, add them to the csp.yml file in the billing dashboard configuration. For more details, see Display Azure billing data.

The platform will now be able to retrieve your cloud provider's pricing and billing data again for use in pricing and for display on the Hybrid billing dashboard.

Copyright © 2006-2024, Abiquo Holdings SL. All rights reserved