Unable to get 'ResourceType.MGMT_RESOURCE_SUBSCRIPTIONS' in profile 'latest'

Ruth Yakubu 0 Reputation points Microsoft Employee
2024-03-16T18:17:23.6333333+00:00

AZ LOGIN failing with the following error:

Unable to get 'ResourceType.MGMT_RESOURCE_SUBSCRIPTIONS' in profile 'latest'


This is the Azure CLI version:

{

"azure-cli": "2.58.0",

"azure-cli-core": "2.58.0",

"azure-cli-telemetry": "1.1.0",

"extensions": {}

}

Does anyone know what's causing this?

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,652 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dan Rios 1,345 Reputation points MVP
    2024-03-16T20:00:58.91+00:00

    Hi there,

    I believe this GitHub issue will help you solve the problem, there’s some comments with fixes:

    https://github.com/Azure/azure-cli/issues/26548?ssp=1&darkschemeovr=1&setlang=en-gb&cc=GB&safesearch=moderate

    Where a full reinstall seems to be the fix:

    Note that only a full uninstall, including removing the following folders worked (for me)

    • C:\Users\{username}\.azure
    • C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2

    hopefully this also fixes it for you. If so, please feel free to mark this as the accepted answer as to help others who may come across this.