Skip to main content

app open

Returns deep link of the current AD app to open the Azure portal on the Azure AD app registration management page.

Usage

m365 app open [options]

Options

--appId [appId]

Optional Application (client) ID of the Azure AD application registration to open. Uses the app from the .m365rc.json file corresponding to the appId. If multiple apps are available, this will evade the prompt to choose an app. If the appId is not available in the list of apps, an error is thrown.

--preview

Use to open the url of the Azure AD preview portal.

-h, --help [help]

Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

Remarks

If config setting autoOpenLinksInBrowser is configured to true, the command will automatically open the link to the Azure Portal in the browser.

Gets the app from the .m365rc.json file in the current directory. If the --appId option is not used and multiple apps are available, it will prompt the user to choose one.

Examples

Prints the URL to the Azure AD application registration management page on the Azure Portal.

m365 app open

Prints the url of the Azure AD application registration management page on the preview Azure Portal.

m365 app open --preview

Prints the URL to the Azure AD application registration management page on the Azure Portal, evading a possible choice prompt in the case of multiple saved apps in the .m365rc.json file.

m365 app open --appId d75be2e1-0204-4f95-857d-51a37cf40be8 

Response

"Use a web browser to open the page https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/Overview/appId/02f9ff8c-b79e-4552-bdda-4facd74d6df2/isMSAApp/"
CTRL + M