Usage
m365 pp website list
Description
List all Power Pages websites in the specified Power Platform environment.
Options
| Option |
Description |
-e, --environmentName <environmentName> |
The name of the environment where the Power Pages websites are located. |
--asAdmin |
Run the command as admin and retrieve Power Pages websites for environments you do not have explicitly assigned permissions to. |
Examples
List all Power Pages websites in the given Power Platform environment.
m365 pp website list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5
List Power Pages websites models in the given environment as admin.
m365 pp website list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --asAdmin
Default properties
- WebSiteId
- Name
- siteVisibility
- status
- type
Checkout: https://learn.microsoft.com/en-us/rest/api/power-platform/powerpages/websites/get-websites#websitedto
Additional Info
You can have a look at the logic behind: https://learn.microsoft.com/en-us/power-platform/developer/cli/reference/pages#pac-pages-list
See our m365 pp card list command on how to implement the as admin, and how to retrieve all items from a given endpoint: https://github.com/pnp/cli-microsoft365/blob/main/src/m365/pp/commands/card/card-list.ts
In this case the API call would be ${dynamicsApiUrl}/api/data/v9.2/mspp_websites
Usage
m365 pp website list
Description
List all Power Pages websites in the specified Power Platform environment.
Options
-e, --environmentName <environmentName>--asAdminExamples
List all Power Pages websites in the given Power Platform environment.
List Power Pages websites models in the given environment as admin.
Default properties
Checkout: https://learn.microsoft.com/en-us/rest/api/power-platform/powerpages/websites/get-websites#websitedto
Additional Info
You can have a look at the logic behind: https://learn.microsoft.com/en-us/power-platform/developer/cli/reference/pages#pac-pages-list
See our
m365 pp card listcommand on how to implement the as admin, and how to retrieve all items from a given endpoint: https://github.com/pnp/cli-microsoft365/blob/main/src/m365/pp/commands/card/card-list.tsIn this case the API call would be
${dynamicsApiUrl}/api/data/v9.2/mspp_websites