You have an Azure Virtual Machine Scale Set named vmss-prod that has a manual upgrade policy. You need to configure the scale set to retrieve a secret from an Azure Key Vault named kv-prod. The configuration must use the principle of least privilege. Which sequence of actions should you perform? To answer, drag the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
- 1Enable a system-assigned managed identity on vmss-prod.
- 2Assign the Key Vault Secrets User role to the managed identity of vmss-prod on kv-prod.
- 3Add the Key Vault virtual machine extension to the vmss-prod scale set model.
- 4Upgrade the existing instances of vmss-prod to apply the latest model.
Answer
First, enable a system-assigned managed identity on the scale set. Second, assign the Key Vault Secrets User role to the scale set's managed identity on the Key Vault. Third, add the Key Vault virtual machine extension to the scale set model. Finally, upgrade the existing instances of the scale set to apply the updated configuration.
The correct sequence starts with enabling the system-assigned managed identity on the Virtual Machine Scale Set to create the security principal. Next, permissions are granted by assigning the Key Vault Secrets User role to this identity on the Key Vault. Then, the Key Vault virtual machine extension is added to the scale set model to retrieve the secret. Finally, because the scale set uses a manual upgrade policy, the existing instances must be upgraded to apply the updated model containing the identity and extension.
Step-by-Step Solution
Key Concept
Configuring Virtual Machine Scale Sets with Managed Identities, Extensions, and Manual Upgrade Policies.
Estimated Time:2m 0s