QuestionQ177

VerifiedManage Azure identities and governance

You have an Azure subscription named Subscription1 that contains an Azure virtual machine named VM1. VM1 is in a resource group named RG1.

VM1 runs services that will be used to deploy resources to RG1.

You need to ensure that a service running on VM1 can manage the resources in RG1 by using the identity of VM1.

What should you do first?

Explanation

A virtual machine must have a system-assigned or user-assigned managed identity enabled before that identity can be granted Azure RBAC access to a resource group. Microsoft Learn states that after you enable a system-assigned managed identity on a VM, you can then grant it a role on the target scope such as a resource group. Because the requirement is to use the identity of VM1 itself, the first step is enabling or modifying the managed identity settings on VM1; assigning IAM on RG1 comes afterward.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!