-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Labels
Accountaz login/accountaz login/accountAuto-AssignAuto assign by botAuto assign by botManaged IdentityFor `az identity` onlyFor `az identity` onlycustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Milestone
Description
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 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
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Accountaz login/accountaz login/accountAuto-AssignAuto assign by botAuto assign by botManaged IdentityFor `az identity` onlyFor `az identity` onlycustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.