Not allowed to create secrets in the key vaults I'm creating

Matthew Wotring 60 Reputation points
2024-06-10T21:15:01.93+00:00

User's image

I've tried creating 3 different key vaults. Each one is created and put into the proper subscription and resource group for the Learn lesson's use. When I set the login and password, they set, secretly. However, this is where it fails. When I try to assign those secrets (login and password) while creating entries for sqlServerAdministratorLogin and sqlServerAdministratorPassword I receive the error in the screenshot.

This question is related to the following Learning Module

Azure | Azure Training
0 comments No comments
{count} votes

Accepted answer
  1. TP 125.8K Reputation points Volunteer Moderator
    2024-06-10T21:31:56.82+00:00

    Hi Matthew,

    When creating the Key Vault for the exercise, you may use command similar to below instead of what is shown in exercise (substitute correct resource group name):

    az keyvault create --name $keyVaultName --location eastus --resource-group myResourceGroup --enabled-for-template-deployment true --enable-rbac-authorization false
    

    This will create the Key Vault with permission model set to Vault access policy and grant your user account permission to perform necessary operations.

    You should be able to run the other commands (az keyvault secret set) as shown in the exercise.

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.