Hi Andrew Aran,
Thank you for reaching out to Microsoft Q & A forum.
It seems like you are facing an issue with Set-AzKeyVaultSecret. The error message "Operation returned an invalid status code 'Forbidden'" indicates that the operation you are trying to perform is not authorized.
This could be due to incorrect credentials or insufficient permissions.
To resolve this issue, you can try the following steps:
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.
please see: Assign a Key Vault access policy (legacy): https://go.microsoft.com/fwlink/?linkid=2125287
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 you've found the provided answer helpful, please click the "Upvote" button. This will be beneficial to other members of the Microsoft Q&A forum community.
Thank you.