Azure key 保管库创建错误 : VaultAlreadyExists - I can't find the existing vault

标签 azure azure-keyvault azure-cli

我正在尝试使用此 CLI 命令在 Azure 中创建 key 保管库...

az keyvault create --location $location --name $keyVaultName --resource-group $resourceGroupMainName --output none

但这会返回错误...

(VaultAlreadyExists) The vault name '[value of $keyVaultName]' is already in use. Vault names are globaly unique so it is possible that the name is already taken. If you are sure that the vault name was not taken then it is possible that a vault with the same name was recently deleted but not purged after being placed in a recoverable state. If the vault is in a recoverable state then the vault will need to be purged before reusing the name. For more information on soft delete and purging a vault follow this link https://go.microsoft.com/fwlink/?linkid=2147740.

所以我运行了这两个...

az keyvault list
az keyvault list-deleted

并且 $keyVaultName 未出现在这两个列表中。我已经要求一位同事仔细检查这些结果,但它确实没有出现。我还查看了门户中的管理已删除的保管库边栏选项卡,它与 CLI 的结果相匹配 - 但它不在那里。

我还尝试恢复具有该名称的 key 保管库...

(DeletedVaultNotFound) The specified deleted vault '[value of $keyVaultName]' does not exist.

...并清除具有该名称的 key 保管库...

No deleted Vault or HSM was found with name [value of $keyVaultName]

那么为什么 Azure 认为该名称已被使用?

最佳答案

我找到了一个更简单的方法,那就是通过 UI,您可以检查已删除的 Key Vault 是否在 Key Vault 管理页面中。 单击“管理已删除的保管库”超链接后,我可以选择并清除或恢复已删除的 key 保管库。 deleted key vault in azure

关于Azure key 保管库创建错误 : VaultAlreadyExists - I can't find the existing vault,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67989426/

相关文章:

azure - 如何从 Azure 文件共享中删除所有文件?

c# - 如何读取 Azure 网站应用程序设置值

sql-server - 更新兼容性级别 - Azure SSAS

azure - 无法通过用户分配的 MSI 使用 @Microsoft.KeyVault 引用从 Azure 功能配置访问 secret

azure - Azure 支持是否可以访问所有资源和敏感数据(例如 KeyVault)?

Azure 资源管理器 - 无法在访问策略中使用 Microsoft 应用服务部署 Keyvault

azure - 尝试使用 AKS 在 Azure 上创建托管 Kubernetes 集群时出现 "Incorrect padding"

azure - AKS 群集自动调用程序配置文件修改

javascript - 如何在Azure移动服务中实现乐观锁?

azure - 使用哪些 Azure CLI 命令来匹配门户服务企业应用中的列表