nerdexam
MicrosoftMicrosoft

AZ-204 · Question #591

AZ-204 Question #591: Real Exam Question with Answer & Explanation

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, 2026

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

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.

Community Discussion

No community discussion yet for this question.

Full AZ-204 PracticeBrowse All AZ-204 Questions