Azure key vault: access denied

后端 未结 6 1111
孤城傲影
孤城傲影 2020-11-29 08:25

I have the following code for obtaining a secret from the Azure key vault:

public static async Task GetToken(string authority, string resource,         


        
6条回答
  •  爱一瞬间的悲伤
    2020-11-29 08:50

    If you want to authorize that same application to read secrets in your vault, run the following:

    Set-AzureRmKeyVaultAccessPolicy -VaultName 'yourKeyVaultName' -ServicePrincipalName ClientId -PermissionsToSecrets Get
    

    When you register application in Azure ClientId is generated.

提交回复
热议问题