Skip to main content

pa environment get

Gets information about the specified Power Apps environment


m365 pa environment get [options]


-n, --name [name]

The name of the environment. When not specified, the default environment is retrieved.

-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 for more information and examples.

-o, --output [output]

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


Runs command with verbose logging.


Runs command with debug logging.



This command is based on an API that is currently in preview and is subject to change once the API reached general availability.

If the environment with the name you specified doesn't exist, you will get the Access to the environment 'xyz' is denied. error.


Get information about the default Power Apps environment.

m365 pa environment get

Get information about the Power Apps environment with the specified name.

m365 pa environment get --name Default-d87a7535-dd31-4437-bfe1-95340acd55c5


"id": "/providers/Microsoft.PowerApps/environments/Default-e1dd4023-a656-480a-8a0e-c1b1eec51e1d",
"name": "Default-e1dd4023-a656-480a-8a0e-c1b1eec51e1d",
"location": "europe",
"type": "Microsoft.PowerApps/environments",
"properties": {
"azureRegionHint": "westeurope",
"displayName": "contoso (default)",
"createdTime": "2020-03-12T13:39:17.9876946Z",
"createdBy": {
"id": "SYSTEM",
"displayName": "SYSTEM",
"type": "NotSpecified"
"provisioningState": "Succeeded",
"creationType": "DefaultTenant",
"environmentSku": "Default",
"isDefault": true,
"clientUris": {
"admin": "",
"maker": ""
"runtimeEndpoints": {
"microsoft.BusinessAppPlatform": "",
"microsoft.CommonDataModel": "",
"microsoft.PowerApps": "",
"microsoft.PowerAppsAdvisor": "",
"microsoft.PowerVirtualAgents": "",
"microsoft.ApiManagement": "",
"microsoft.Flow": ""
"databaseType": "CommonDataService",
"linkedEnvironmentMetadata": {
"resourceId": "5041ef46-5a1c-4a0f-a185-6bb49b5c6686",
"friendlyName": "contoso (default)",
"uniqueName": "unq5041ef465a1c4a0fa1856bb49b5c6",
"domainName": "org6633049a",
"version": "9.2.22101.00168",
"instanceUrl": "",
"instanceApiUrl": "",
"baseLanguage": 1033,
"instanceState": "Ready",
"createdTime": "2021-10-08T09:50:41.283Z",
"platformSku": "Standard"
"retentionPeriod": "P7D",
"lifecycleAuthority": "Environment",
"states": {
"management": {
"id": "NotSpecified"
"runtime": {
"runtimeReasonCode": "NotSpecified",
"requestedBy": {
"displayName": "SYSTEM",
"type": "NotSpecified"
"id": "Enabled"
"updateCadence": {
"id": "Frequent"
"connectedGroups": [],
"protectionStatus": {
"keyManagedBy": "Microsoft"
"trialScenarioType": "None",
"cluster": {
"category": "Prod",
"number": "109",
"uriSuffix": "",
"geoShortName": "EU",
"environment": "Prod"
"governanceConfiguration": {
"protectionLevel": "Basic"
"displayName": "contoso (default)",
"provisioningState": "Succeeded",
"environmentSku": "Default",
"azureRegionHint": "westeurope",
"isDefault": true