Describe the bug
Error when using Az CLI v2.37.0 with API version 2021-09-30-preview for type userAssignedIdentities in AzureUSGovernment cloud. The error happens when doing an az identity create ... (see below).
Note: works correctly if using Az CLI v2.36.0
Command Name
az identity create --subscription {} --name {} --resource-group {}
Errors:
(NoRegisteredProviderFound) No registered resource provider found for location 'usgov*****' and API version '2021-09-30-preview' for type 'userAssignedIdentities'. The supported api-versions are '2015-08-31-PREVIEW, 2018-11-30'. The supported locations are 'usgovvirginia, usgoviowa, usgovtexas, usgovarizona, usdodeast, usdodcentral'.
Code: NoRegisteredProviderFound
Message: No registered resource provider found for location 'usgov*****' and API version '2021-09-30-preview' for type 'userAssignedIdentities'. The supported api-versions are '2015-08-31-PREVIEW, 2018-11-30'. The supported locations are 'usgovvirginia, usgoviowa, usgovtexas, usgovarizona, usdodeast, usdodcentral'.
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az cloud set --name AzureUSGovernment
az login
az extension update --name aks-preview
az identity create --subscription {} --name {} --resource-group {}
Expected Behavior
Should return a json payload of the created managed identity.
Environment Summary
Windows-10-10.0.19044-SP0
Python 3.10.4
Installer: MSI
azure-cli 2.37.0
Extensions:
account 0.2.3
aks-preview 0.5.75
Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1
Additional Context
Describe the bug
Error when using
Az CLI v2.37.0with API version2021-09-30-previewfor typeuserAssignedIdentitiesinAzureUSGovernmentcloud. The error happens when doing anaz identity create ...(see below).Command Name
Errors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az cloud set --name AzureUSGovernmentaz loginaz extension update --name aks-previewaz identity create --subscription {} --name {} --resource-group {}Expected Behavior
Should return a json payload of the created managed identity.
Environment Summary
Additional Context