exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 4 question 80 discussion

Actual exam question from Microsoft's AZ-204
Question #: 80
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. Get-AzureADUser
  • B. Get-AzResource
  • C. Get-AzureADUserOwnedObject
  • D. az ad signed-in-user list-owned-objects
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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: B
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
...
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