nerdexam
Microsoft

AZ-204 · Question #590

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

The correct answer is D. az resource show. 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 az resource show command. This command allows you to retrieve the properties of a resource, including the identity information.

Submitted by tarun92· 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

  • Aaz ad sp credential list
  • BGet-AzVM
  • CGet-AzureADUser
  • Daz resource show

How the community answered

(56 responses)
  • A
    4% (2)
  • B
    16% (9)
  • C
    7% (4)
  • D
    73% (41)

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 az resource show command. This command allows you to retrieve the properties of a resource, including the identity information.

Topics

#managed identity#system-assigned identity#Azure CLI#object ID

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice