Azureキーの値を正常に作成できましたが、PFXファイルを正常にインポートできません。アクセスキーのGet-AzureRmKeyVault
、私は次しまっ情報:ここではAdd-AzureKeyVaultKeyが操作で失敗する「インポート」が許可されていません
$securepfxpwd = ConvertTo-SecureString –String '123' –AsPlainText –Force
$key1 = Add-AzureKeyVaultKey -VaultName 'MyKeyVault' -Name 'MyKey' -KeyFilePath 'C:\mycert.io.pfx' -KeyFilePassword $securepfxpwd
私は取得していますエラーされています:
Add-AzureKeyVaultKey : **Operation "import" is not allowed**
At line:1 char:9
+ $key1 = Add-AzureKeyVaultKey -VaultName 'MyKeyVault' -Name 'MyKey ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Add-AzureKeyVaultKey], KeyVaultClientException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.KeyVault.AddAzureKeyVaultKey*
私は、コマンドを使用
*SKU : Standard
Enabled For Deployment? : False
Enabled For Template Deployment? : False
Enabled For Disk Encryption? : False
**Access Policies :**
Tags :*
ここで私が使用するコマンドがあります
ここに私の質問があります:
- Set-AzureRmKeyVaultAccessPolicyを使用してインポートする権限を自分自身に与えるべきですか?
- もしそうなら、このコマンドのパラメータは自分自身にcertをインポートする権限を与えますか?