Get-MgServicePrincipal — Basic UsageIT technician command center
Microsoft Graph · Entra ID and Graph

Get-MgServicePrincipal — Basic Usage

Use Get-MgServicePrincipal for a standard administrative task.

Copy-ready commandGet-MgServicePrincipal — Basic Usage
Get-MgServicePrincipal -All

Requirements and permissions

Requirements
Microsoft.Graph PowerShell SDK
Permissions
Graph delegated or application permissions
Last reviewed
2026-07-31

Examples

Basic Usage

Use Get-MgServicePrincipal for a standard administrative task.

Get-MgServicePrincipal -All

Original command

List enterprise applications and service principals.

Get-MgServicePrincipal -All

Common errors

Command not found

Confirm Microsoft.Graph PowerShell SDK is installed and available in your current shell.