0

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.

0

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.