Microsoft
AZ-204 · Question #591
You have 100 Azure virtual machines (VMs) with the system-assigned managed identity enabled. You need to identify the value of the object ID attribute for each of the identities. Which command…
The correct answer is B. Get-AzResource. 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.
Submitted by marco_it· Mar 30, 2026Implement Azure security
Question
You have 100 Azure virtual machines (VMs) with the system-assigned managed identity enabled. You need to identify the value of the object ID attribute for each of the identities. Which command should you use?
Options
- AGet-AzureADUser
- BGet-AzResource
- CGet-AzureADUserOwnedObject
- Daz ad signed-in-user list-owned-objects
How the community answered
(22 responses)- B82% (18)
- C5% (1)
- D14% (3)
Explanation
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.
Topics
#managed identity#system-assigned identity#PowerShell#object ID
Community Discussion
No community discussion yet for this question.