0
votes

when I try to provide access control to azure using powershell script, I got below error.

****Set-AzureRmKeyVaultAccessPolicy : Your Azure credentials have not been set up or have expired, please run Connect-AzureRmAccount to set up your Azure credentials.****

please provide some solution.

1

1 Answers

1
votes

The error has told you, you need to login with Connect-AzureRmAccount first to use AzureRm powershell module.

Besides, you should know the AzureRM module was deprecated, so I recommend you to use the new Az module. Login with Connect-AzAccount and use the Set-AzKeyVaultAccessPolicy command.