aad sp get¶
Gets information about the specific service principal
Usage¶
m365 aad sp get [options]
Options¶
-i, --appId [appId]
- ID of the application for which the service principal should be retrieved
-n, --displayName [displayName]
- Display name of the application for which the service principal should be retrieved
--objectId [objectId]
- ObjectId of the application for which the service principal should be retrieved
-h, --help
- output usage information
--query [query]
- JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
- Output type.
json,text
. Defaulttext
--verbose
- Runs command with verbose logging
--debug
- Runs command with debug logging
Remarks¶
Specify either the appId
, objectId
or displayName
. If you specify more than one option value, the command will fail with an error.
Examples¶
Return details about the service principal with appId b2307a39-e878-458b-bc90-03bc578531d6.
m365 aad sp get --appId b2307a39-e878-458b-bc90-03bc578531d6
Return details about the Microsoft Graph service principal.
m365 aad sp get --displayName "Microsoft Graph"
Return details about the service principal with ObjectId b2307a39-e878-458b-bc90-03bc578531dd.
m365 aad sp get --objectId b2307a39-e878-458b-bc90-03bc578531dd
More information¶
- Application and service principal objects in Azure Active Directory (Azure AD): https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects