Hi @ Kyle Enman •
Thank you for sharing your issue on Microsoft Q&A.
I understand that you are encountering an error message stating that the caller is not authorized to perform the action of setting a secret in Azure Key Vault. It seems like you are facing an issue with Set-AzKeyVaultSecret.
Please use the command below to build the key vault. You must substitute the correct sandbox resource group name for [resource group name] and enter a unique vault name.
az keyvault create --resource-group "[sandbox resource group name]" --location centralus --name <your-unique-vault-name> --enable-rbac-authorization false
The command above will create the Key Vault with the permission model set to Vault access policy and provide your user account permission to perform the required tasks. In this method, when you run the command to create a secret, it will succeed.
Hope this helps. Do let us know if you have any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.
Best Regards.
Harshitha Eligeti.