To identify the value of the object ID attribute for each of the system-assigned managed identities on your Azure VMs, you should use the Get-AzResource command. This command allows you to retrieve the properties of a resource, including the identity information.
Here's an example of how you can use it:
Get-AzResource -ResourceGroupName <resource-group-name> -ResourceType "Microsoft.Compute/virtualMachines" | Select-Object -ExpandProperty Identity
Replace <resource-group-name> with the actual name of your resource group. This will return the object ID of the system-assigned managed identity for each VM
upvoted 1 times
...
This section is not available anymore. Please use the main Exam Page.AZ-204 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
BrownieP
2 months, 3 weeks ago