我正在尝试下载存储在Azure密钥库中的VM的ssh密钥。但是低于error:
我试图下载它作为秘密和密钥,但命令失败,同样的错误。我错过了什么?(我是新手,第一次做这个)
az keyvault key download –-vault-name keyvaultname —name Test-SSHKey —e utf-8 —f ~/.ssh/test-agent.pem
RequiredArgumentMissingError: the following arguments are required: --file/-f
Try this: 'az keyvault key download --vault-name <MyKeyVault> -n <MyKey> -e <PEM> -f <mykey.pem>'
Still stuck? Run 'az keyvault key download --help' to view all commands or go to 'https://aka.ms/cli_ref' to learn more
➜ ~ az keyvault key download –-vault-name keyvaultname —name Test-SSHKey —f " ~/.ssh/test-agent.pem"
RequiredArgumentMissingError: the following arguments are required: --file/-f
Try this: 'az keyvault key download --vault-name <MyKeyVault> -n <MyKey> -e <PEM> -f <mykey.pem>'
Still stuck? Run 'az keyvault key download --help' to view all commands or go to 'https://aka.ms/cli_ref' to learn more
求助于~ az keyvault key download——vault-name keyvaultname -name Test-SSHKey -file "~/.ssh/test-agent.pem">
RequiredArgumentMissingError: the following arguments are required: --file/-f
Try this: 'az keyvault key download --vault-name <MyKeyVault> -n <MyKey> -e <PEM> -f <mykey.pem>'
Still stuck? Run 'az keyvault key download --help' to view all commands or go to 'https://aka.ms/cli_ref' to learn more
➜ ~ az keyvault key download –-vault-name keyvaultname —-name Test-SSHKey -—file "~/.ssh/test-agent.pem"
RequiredArgumentMissingError: the following arguments are required: --file/-f
你的字符似乎搞砸了:你没有两个破折号--
。因为某些原因,你会得到这个,稍微长一点的像破折号一样的字符—
。确保只使用正确的破折号