Skip to content

pp managementapp add

Register management application for Power Platform

Usage

m365 pp managementapp add [options]

Options

--appId [appId]
Application (client) ID of the Azure AD application registration to register as a management app. Specify either appId, objectId or name
--objectId [objectId]
Object ID of the Azure AD application registration to register as a management app. Specify either appId, objectId or name
--name [name]
Name of the Azure AD application registration to register as a management app. Specify either appId, objectId or name
-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,csv. Default json
--verbose
Runs command with verbose logging
--debug
Runs command with debug logging

Remarks

To execute this command the first time you'll need sign in using the Microsoft Azure PowerShell app registration. You can do this by executing m365 login --appId 1950a258-227b-4e31-a9cf-717495945fc2. To register the Azure AD app registration that CLI for Microsoft 365 uses by default, execute m365 pp managementapp add--appId 31359c7f-bd7e-475c-86db-fdb8c937548e.

For best performance use the appId option to reference the Azure AD application registration to update. If you use objectId or name, this command will first need to find the corresponding appId for that application.

If the command finds multiple Azure AD application registrations with the specified app name, it will prompt you to disambiguate which app it should use, listing the discovered object IDs.

Examples

Register CLI for Microsoft 365 as a management application for the Power Platform

m365 pp managementapp add --appId 31359c7f-bd7e-475c-86db-fdb8c937548e

Register Azure AD application with the specified object ID as a management application for the Power Platform

m365 pp managementapp add --objectId d75be2e1-0204-4f95-857d-51a37cf40be8

Register Azure AD application named My app as a management application for the Power Platform

m365 pp managementapp add --name "My app"