Usage
m365 pp environment list
Description
Retrieve PowerApps environments
Options
| Option |
Description |
--asAdmin |
Run the command as admin and retrieve all environments. Lists only environments you have explicitly are assigned permissions to by default. |
Additional Info
You can find inspiration in flow environment list and pa environment list but this command uses the new endpoint available (#2917 will implement the bapEndpoint)
Call https://{bapEndpoint}/providers/Microsoft.BusinessAppPlatform/scopes/admin/environments?api-version={apiVersion} for all admin environments and https://{bapEndpoint}/providers/Microsoft.BusinessAppPlatform/environments?api-version={apiVersion}
Show name and displayName as defaultProperties when outputing text or csv
Usage
m365 pp environment list
Description
Retrieve PowerApps environments
Options
--asAdminAdditional Info
You can find inspiration in
flow environment listandpa environment listbut this command uses the new endpoint available (#2917 will implement thebapEndpoint)Call
https://{bapEndpoint}/providers/Microsoft.BusinessAppPlatform/scopes/admin/environments?api-version={apiVersion}for all admin environments andhttps://{bapEndpoint}/providers/Microsoft.BusinessAppPlatform/environments?api-version={apiVersion}Show
nameanddisplayNameas defaultProperties when outputingtextorcsv