A Windows virtual machine (is deployed to Azure and the system-assigned identity is enabled. For VM to access the Azure Resource Manager API, it is desired to use Managed Service Identity (MSI). What step should be taken as the task necessary to perform this action?
A.Create an identity by running the az identity create Azure CLI command.
B.Grant to your account the Virtual Machine Contributor role at each resource group scope
C.Grant to the VM the Reader role at the subscription scope.
D.Retrieve an access token by running the Invoke-WebRequest PowerShell cmdlet.
Answer:C
A Windows virtual machine (is deployed to Azure and the system-assigned identity is enabled. For VM to access the Azure Resource Manager API, it is desired to use Managed Service Identity (MSI). What step should be taken as the task necessary to perform this action?
A.Create an identity by running the az identity create Azure CLI command. B.Grant to your account the Virtual Machine Contributor role at each resource group scope C.Grant to the VM the Reader role at the subscription scope. D.Retrieve an access token by running the Invoke-WebRequest PowerShell cmdlet.