-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to create backup vaults with immutability locked az backup vault create
with --immutability-state Locked
#27785
Comments
Thank you for opening this issue, we will look into it. |
@yonzhan I see you have removed the assignment and CLI team I assume because you agree it's a problem in the rest-api. Can you point me in the right direction to raise it where it should be? |
adding @zubairabid |
Hi all, this issue was resolved in the November 2023 release of Azure CLI. Linked PR: #27743. @yonzhan can we close the issue if @davepattie can confirm that it works in the latest CLI? |
Describe the bug
Unable to create a backup vault with immutability Locked. The same error affects the Terraform provider so the underlying fault is with the API
Related command
az backup vault create --location eastus --name rsv-backup-test --resource-group rg-backup-test --immutability-state Locked
Errors
(UserErrorUnsupportedVaultImmutabilityStateChange) The immutable vault property for this vault is locked, hence, this setting cannot be disabled. The vault has its immutable vault property enabled and locked, and it can no longer be reverted to a non-immutable vault. Refer to the documentation to learn more: https://aka.ms/AB-ImmutableVaults-States
Code: UserErrorUnsupportedVaultImmutabilityStateChange
Message: The immutable vault property for this vault is locked, hence, this setting cannot be disabled. The vault has its immutable vault property enabled and locked, and it can no longer be reverted to a non-immutable vault. Refer to the documentation to learn more: https://aka.ms/AB-ImmutableVaults-States
Issue script & Debug output
az group create --name rg-backup-test --location eastus
az backup vault create --location eastus --name rsv-backup-test --resource-group rg-backup-test --immutability-state Locked
Expected behavior
A new vault is created with immutability locked
Environment Summary
azure-cli 2.53.1
core 2.53.1
telemetry 1.1.0
Extensions:
azure-devops 0.26.0
bastion 0.2.5
quota 0.1.0
ssh 2.0.2
virtual-wan 0.3.0
Dependencies:
msal 1.24.0b2
azure-mgmt-resource 23.1.0b2
Python location '/opt/homebrew/Cellar/azure-cli/2.53.1/libexec/bin/python'
Extensions directory '/Users/Cache/.azure/cliextensions'
Python (Darwin) 3.10.13 (main, Aug 24 2023, 12:59:26) [Clang 15.0.0 (clang-1500.0.40.1)]
Additional context
No response
The text was updated successfully, but these errors were encountered: