Can't update Storage Account Key Vault because old one no longer exists #27644
Labels
Auto-Assign
Auto assign by bot
Azure CLI Team
The command of the issue is owned by Azure CLI team
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
KeyVault
az keyvault
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Storage
az storage
Describe the bug
I have some resources managed through Terraform. For this particular bug, I have one Azure Key Vault tied to an Azure Storage Account to create a Customer Managed Key. I deleted the old Azure Key Vault and created a new one with a different name. Still, now I'm locked when trying to update the Azure Storage Account because every time I try to run an update command, I receive a 404 error indicating that the old Key Vault couldn't be found - which is true; it was deleted, but I want to change it to a new one without having to recreate the Azure Storage Account.
Related command
Errors
Issue script & Debug output
Expected behavior
I would expect the Storage Account to be updated to reference the new Key Vault with its new key instead of the old one. I also don't know why the Storage Account would try to gather the old Key Vault in a request if the old one was deleted.
Environment Summary
Additional context
No response
The text was updated successfully, but these errors were encountered: