Thank you for reaching out to Microsoft Q & A forum.
It seems like you are facing an issue with Set-AzKeyVaultSecret.
This could be due to incorrect credentials or insufficient permissions.
Here are some steps you can take to troubleshoot and resolve this issue:
1.Check if you have provided the correct credentials for your account. Make sure that the account name and key are correct.
2.Verify that you have sufficient permissions to perform the operation. You can check the role-based access control (RBAC) settings for your account to ensure that you have the necessary permissions.
3.Check if there are any network or firewall issues that might be blocking the request. You can try to access from a different network or machine to see if the issue persists.
After updating permission, you were able to access the Key Vault without any authorization error.
If you have any other questions or are still running into more issues, please let me know.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
Thank you.