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.