Skip to content

az keyvault set-policy breaks in USGovermentCloud #18498

@ryanhofdotgov

Description

@ryanhofdotgov

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az keyvault set-policy

Errors:

(NoRegisteredProviderFound) No registered resource provider found for location 'usgovvirginia' and API version '2021-04-01-preview' for type 'vaults'. The supported api-versions are '2015-06-01, 2016-10-01, 2018-02-14-preview, 2018-02-14, 2019-09-01'. The supported locations are 'usgovvirginia, usgoviowa, usdodcentral, usdodeast, usgovtexas, usgovarizona'.

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 keyvault set-policy --name INSERT-VAULT-NAME --object-id INSERT-OBJECT-ID --secret-permissions get list

Expected Behavior

No error. Expectation is that if command is being run within AzureUSGovernment, it uses the version of the key vault API available in that cloud.

Environment Summary

macOS-10.15.7-x86_64-i386-64bit
Python 3.8.10
Installer: HOMEBREW

azure-cli 2.25.0

Extensions:
front-door 1.0.14
db-up 0.2.3

Additional Context

The command works as expected in 2.1.6 in both public cloud and USGovernmentCloud. It also fails in azure-cli 2.24.2 which is in Cloud Shell in USGovernmentCloud.

Metadata

Metadata

Assignees

Labels

KeyVaultaz keyvaultService AttentionThis issue is responsible by Azure service team.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions