How can I list all Azure Arc-enabled Servers Service Principals?

If you want to list all the Azure Arc Connected node's Service Principals, then you can use the Get-AzADServicePrincipal command let from the Az.Resources PowerShell module.
You can install Az.Resources module directly from the PowerShell Gallery
- Install-Module Az.Resources -Force -Verbose
Get-AzADServicePrincipal example
Lists entities from service principals or get an entity from service principals by key.
Get-AzADServicePrincipal -Filter "ServicePrincipalType eq 'ManagedIdentity'" | Where-Object {$PSItem.AlternativeName[1].Contains("Microsoft.HybridCompute")}

Summary
Are you ready to take your on-premises servers to the next level with Azure Arc? Contact me today and let me help you implement Azure Arc for your servers and unlock the full potential of your hybrid infrastructure.
Member discussion