AZ-104 Practice Question 87: Key Vault Reference ARM Parameter

Microsoft Azure Administrator Associate (AZ-104) · Test 9 · question 7 of 10

Computemedium

A deployment template needs the administrator password for a virtual machine. The password is stored as a secret in Azure Key Vault, and it must not appear in source control or in the template.

How should the password be supplied to the deployment?

Select one answer
Show answer and explanation

Answer:

  • A. Reference the secret in the parameters file by using a Key Vault reference

A parameter file can reference a Key Vault secret by vault ID and secret name. Resource Manager retrieves the value at deployment time, so the password is never stored in the template or the repo. The vault must be enabled for template deployment and the deploying identity needs permission to read secrets.

Option B stores the password in the template in plain text.

Option C exposes the password to anyone who can find the URL.

Option D is an encoding, not encryption, and it is trivially reversed.

Reference: Use Azure Key Vault to pass a secure parameter value during deployment

Practice Test 9 ›

Study guides for AZ-104