Detect if Managed Identity is enabled on VM
It is possible to detect if an existing VM has Managed Identity enabled? All code samples for enabling on existing VM only shows how to use the Set-AzVm cmdlet, but not how to detect if it was enabled in the first place!
This feature would be handy if you for example wanted to set New-AzRoleAssignment only if VM uses Managed Identity
1
vote
