exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 4 question 79 discussion

Actual exam question from Microsoft's AZ-204
Question #: 79
Topic #: 4
[All AZ-204 Questions]

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?

  • A. az ad sp credential list
  • B. Get-AzVM
  • C. Get-AzureADUser
  • D. az resource show
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
BrownieP
2 months, 3 weeks ago
Selected Answer: D
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. Here's an example of how you can use it: az resource show --ids <resource-id> --query identity.principalId Replace <resource-id> with the actual resource ID of your VM. This will return the object ID of the system-assigned managed identity12
upvoted 1 times
...
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago