我正在尝试创建一个 Azure Key Vault,但门户(旧的和新的)还没有选项,最新的文档说使用命令行,但这似乎也不起作用。
从 Azure CLI 运行时的未知命令:
C:\WINDOWS\system32>azure keyvault create --vault-name 'abc' --resource-group 'abc' --location 'West US'
error: 'keyvault' is not an azure command. See 'azure help'.
从 Azure PowerShell 运行时的未知命令:
PS C:\> New-AzureKeyVault -VaultName -EnabledForDeployment -ResourceGroupName abc -Location "West US" -Sku "Premium"
New-AzureKeyVault : The term 'New-AzureKeyVault' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ New-AzureKeyVault -VaultName -EnabledForDeployment -ResourceGroupName ...
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (New-AzureKeyVault:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
您如何使用 Key Vault?
编辑:
这些应该包含在 0.9.5 的 Azure CLI 中,但 0.9.9 没有:http: //blogs.technet.com/b/kv/archive/2015/06/24/keyvaulthasshipped.aspx
C:\WINDOWS\system32>azure help
info: Executing command help
info: _ _____ _ ___ ___
info: /_\ |_ / | | | _ \ __|
info: _ ___/ _ \__/ /| |_| | / _|___ _ _
info: (___ /_/ \_\/___|\___/|_|_\___| _____)
info: (_______ _ _) _ ______ _)_ _
info: (______________ _ ) (___ _ _)
info:
info: Microsoft Azure: Microsoft's Cloud Platform
info:
info: Tool version 0.9.9