我正在调用powershell脚本,以使用以下命令将ADF添加到密钥库访问策略中
如果我通过门户网站UI授予它,则可以使用。以下代码可能有什么问题,或者我应该使用其他Api?
$Id = (Get-AzureRmDataFactoryV2 -ResourceGroupName $ResourceGroupName -Name $DataFactoryName).Identity.PrincipalId
Write-Host "Add permissions to key vault"
Set-AzureRmKeyVaultAccessPolicy -VaultName $AKVName -ObjectId $Id -PermissionsToSecrets Get,Set
I get this Error:Set-AzureRmKeyVaultAccessPolicy : 'AccessPolicies' exceeds maximum item count of '16'.
它应为给定的密钥库添加对ADF的权限
谢谢