Developing Solutions for Microsoft Azure — Question 68

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?

Answer options

Correct answer: D

Explanation

The correct command, Get-AzResource, allows you to retrieve information about Azure resources, including the object ID of managed identities. The other options either deal with user credentials or do not provide the necessary information related to managed identities specifically.