Edit

pac power-pages

(Preview) Manage Power Pages sites, firewall, certificates, and custom domains.

Commands

Command Description
pac power-pages add-allowed-ip-addresses (Preview) These IP addresses will be able to access the website.
pac power-pages add-ssl-binding-by-portal (Preview) Binds the specified certificate thumbprint to the custom domain hostname of the website.
pac power-pages convert-trial-to-production (Preview) Convert a trial website to a production website.
pac power-pages create-custom-domain (Preview) Adds the specified custom host name to the website.
pac power-pages create-waf-rules (Preview) Create web application Firewall rules on the given website.
pac power-pages create-website (Preview) Trigger the creation of a new website.
pac power-pages delete-certificate-by-portal (Preview) Deletes the certificate identified by the given thumbprint and type from the website.
pac power-pages delete-host-name-for-portal (Preview) Removes the specified custom host name from the website and cleans up associated SSL bindings and AFD configuration.
pac power-pages delete-ssl-binding-by-thumbprint (Preview) Removes the SSL binding for the specified hostname and certificate thumbprint from the website.
pac power-pages delete-waf-custom-rules (Preview) Deletes web application firewall custom rules on the given website.
pac power-pages delete-website (Preview) Trigger the deletion of a website by specifying the website ID.
pac power-pages disable-waf (Preview) Disable web application Firewall on the given website.
pac power-pages enable-waf (Preview) Enable web application firewall on the given website.
pac power-pages get-affected-sites (Preview) Lists the websites in the tenant affected by an exception scenario, with each site's existing grant state, so an admin can review and select sites before granting.
pac power-pages get-allowed-ip-addresses (Preview) Returns the list of IP addresses in the website's IP restriction allow list.
pac power-pages get-certificates-by-portal (Preview) Returns the list of certificates associated with the specified website, filtered by certificate type.
pac power-pages get-exceptions (Preview) Lists the tenant's exception state rows (optionally filtered by exception type) with the derived lifecycle status.
pac power-pages get-security-scan-report (Preview) Get the deep scan report for a Power Pages website.
pac power-pages get-security-scan-score (Preview) Get the deep scan score for a Power Pages website.
pac power-pages get-waf-rules (Preview) Get the web application firewall rules associated with the given website.
pac power-pages get-waf-status (Preview) Get the status of web application firewall associated with the given website.
pac power-pages get-website-by-id (Preview) Get website details using a specified website ID.
pac power-pages get-websites (Preview) Get a list of all the websites in your environment.
pac power-pages grant-exception (Preview) Grants a break-glass admin exception (one-time per website and exception type) across one or more websites in the tenant. Gating, validation, and audit/state writes are synchronous; application-setting propagation is queued asynchronously.
pac power-pages list-host-names-for-portal (Preview) Returns the list of custom host names configured for the specified website.
pac power-pages list-ssl-bindings-by-thumbprints (Preview) Returns the SSL bindings (certificate thumbprints) associated with the specified hostname on the website.
pac power-pages remove-allowed-ip-addresses (Preview) Removes the specified IP addresses from the website's IP restriction allow list.
pac power-pages restart-website (Preview) Restart the website for the given site ID.
pac power-pages revoke-exception (Preview) Revokes a previously granted admin exception across one or more websites in the tenant. Each exception state row is force-expired and asynchronous application-setting revert is queued.
pac power-pages set-portal-bootstrap-v5-enabled (Preview) Stamp bootstrap version five (5) status as enabled for website.
pac power-pages set-portal-data-model-version (Preview) Stamp data model version for website.
pac power-pages start-deep-scan (Preview) Start deep scan for a Power Pages website.
pac power-pages start-quick-scan (Preview) Execute a quick scan for a Power Pages website.
pac power-pages start-website (Preview) Start the website for the given site ID.
pac power-pages stop-website (Preview) Stop the website for the given site ID.
pac power-pages toggle-afd-traffic-routing (Preview) Toggles traffic routing between Azure Front Door and web apps for a portal. When enableAFD is true, enables the AFD endpoint and adds service tag restrictions to web apps. When false, removes service tags and disables the AFD endpoint.
pac power-pages update-portal-security-group (Preview) Update the security group for site visibility for a website.
pac power-pages update-site-visibility (Preview) Update site visibility for a website.
pac power-pages update-waf-policy-settings (Preview) Updates policy-level web application firewall settings (enforcement mode and JavaScript/CAPTCHA challenge cookie lifetimes) on the given website. Only the fields provided in the request body are applied; omitted fields are left unchanged.
pac power-pages upload-certificate (Preview) Validates and uploads an SSL or managed certificate for the specified website. The certificate file and password must be provided as multipart form data.

pac power-pages add-allowed-ip-addresses

(Preview) These IP addresses will be able to access the website.

Required Parameters for power-pages add-allowed-ip-addresses

--id

Website unique identifier (ID).

Optional Parameters for power-pages add-allowed-ip-addresses

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

--ip-addresses

Provide the value as a JSON array.

add-allowed-ip-addresses remarks

You can also invoke this command using the Power Platform REST API Websites - Add Allowed Ip Addresses.

pac power-pages add-ssl-binding-by-portal

(Preview) Binds the specified certificate thumbprint to the custom domain hostname of the website.

Required Parameters for power-pages add-ssl-binding-by-portal

--host-name

The custom domain hostname to bind the certificate to.

--id

Website unique identifier (ID).

--thumbprint

The thumbprint of the certificate to bind.

Optional Parameters for power-pages add-ssl-binding-by-portal

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

add-ssl-binding-by-portal remarks

You can also invoke this command using the Power Platform REST API Websites - Add Ssl Binding By Portal.

pac power-pages convert-trial-to-production

(Preview) Convert a trial website to a production website.

Required Parameters for power-pages convert-trial-to-production

--id

Website unique identifier (ID).

Optional Parameters for power-pages convert-trial-to-production

--enable-cdn

Enable Content Delivery Network (CDN) for the website

--enable-waf

Enable Web Application Firewall (WAF) for the website

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

--use-dynamics365-portal-add-on-license

Use Dynamics 365 Portal Add-On License for the website

convert-trial-to-production remarks

You can also invoke this command using the Power Platform REST API Websites - Convert Trial To Production.

pac power-pages create-custom-domain

(Preview) Adds the specified custom host name to the website.

Required Parameters for power-pages create-custom-domain

--custom-domain

The custom host name to add to the website.

--id

Website unique identifier (ID).

Optional Parameters for power-pages create-custom-domain

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

create-custom-domain remarks

You can also invoke this command using the Power Platform REST API Websites - Create Custom Domain.

pac power-pages create-waf-rules

(Preview) Create web application Firewall rules on the given website.

Required Parameters for power-pages create-waf-rules

--id

Website unique identifier (ID).

Optional Parameters for power-pages create-waf-rules

--custom-rules

Provide the value as a JSON array.

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

--managed-rules

Provide the value as a JSON array.

create-waf-rules remarks

You can also invoke this command using the Power Platform REST API Websites - Create Waf Rules.

pac power-pages create-website

(Preview) Trigger the creation of a new website.

Required Parameters for power-pages create-website

--dataverse-organization-id

Dataverse organization's unique identifier (ID)

--name

Name of the website

--selected-base-language

Language ID - https://go.microsoft.com/fwlink/?linkid=2208135

--subdomain

Subdomain for the website URL

--template-name

Website template name. Supported templates, their display names, and template type:

Template Display Name Template Type
StarterLayout1 Starter Layout 1 Power Pages
StarterLayout2 Starter Layout 2 Power Pages
StarterLayout3 Starter Layout 3 Power Pages
StarterLayout4 Starter Layout 4 Power Pages
StarterLayout5 Starter Layout 5 Power Pages
BlankPage Blank Page Power Pages
BookMeetings Schedule and Manage Meetings Power Pages
DefaultPortalTemplate Starter Layout 1 Power Pages
PowerPortals_ProgramRegistration Program Registration Power Pages
PowerPortals_BookMeeting Schedule and Manage Meetings Power Pages
FAQ Frequently Asked Questions Power Pages
ProgramRegistration Program Registration Power Pages
BuildingPermit Application Processing Power Pages
Community Community Dynamics 365
EventPortal Event Portal Dynamics 365
CustomerSelfServicePortal Customer Self Service Portal Dynamics 365
EmployeeSelfServicePortal Employee Self Service Portal Dynamics 365
PartnerPortal Partner Portal Dynamics 365
CustomerPortal Customer Portal Dynamics 365
FieldService Field Service Dynamics 365

Use one of these values:

  • StarterLayout1
  • StarterLayout2
  • StarterLayout3
  • StarterLayout4
  • StarterLayout5
  • BlankPage
  • BookMeetings
  • FAQ
  • ProgramRegistration
  • BuildingPermit
  • Community
  • EventPortal
  • CustomerSelfServicePortal
  • EmployeeSelfServicePortal
  • PartnerPortal
  • CustomerPortal
  • FieldService
  • DefaultPortalTemplate
  • PowerPortals_ProgramRegistration
  • PowerPortals_BookMeeting

Optional Parameters for power-pages create-website

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

--website-record-id

Dataverse record unique identifier (ID) of the website

create-website remarks

You can also invoke this command using the Power Platform REST API Websites - Create Website.

pac power-pages delete-certificate-by-portal

(Preview) Deletes the certificate identified by the given thumbprint and type from the website.

Required Parameters for power-pages delete-certificate-by-portal

--cert-type

The type of certificate (e.g., SSL, MANAGED).

--id

Website unique identifier (ID).

--thumbprint

The thumbprint of the certificate to delete.

Optional Parameters for power-pages delete-certificate-by-portal

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

delete-certificate-by-portal remarks

You can also invoke this command using the Power Platform REST API Websites - Delete Certificate By Portal.

pac power-pages delete-host-name-for-portal

(Preview) Removes the specified custom host name from the website and cleans up associated SSL bindings and AFD configuration.

Required Parameters for power-pages delete-host-name-for-portal

--host-name

The custom host name to remove from the website.

--id

Website unique identifier (ID).

Optional Parameters for power-pages delete-host-name-for-portal

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

delete-host-name-for-portal remarks

You can also invoke this command using the Power Platform REST API Websites - Delete Host Name For Portal.

pac power-pages delete-ssl-binding-by-thumbprint

(Preview) Removes the SSL binding for the specified hostname and certificate thumbprint from the website.

Required Parameters for power-pages delete-ssl-binding-by-thumbprint

--host-name

The custom domain hostname whose SSL binding will be removed.

--id

Website unique identifier (ID).

--thumbprint

The thumbprint of the certificate to unbind.

Optional Parameters for power-pages delete-ssl-binding-by-thumbprint

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

delete-ssl-binding-by-thumbprint remarks

You can also invoke this command using the Power Platform REST API Websites - Delete Ssl Binding By Thumbprint.

pac power-pages delete-waf-custom-rules

(Preview) Deletes web application firewall custom rules on the given website.

Required Parameters for power-pages delete-waf-custom-rules

--body

The JSON request body, or @<path> to read it from a file.

--id

Website unique identifier (ID).

Optional Parameters for power-pages delete-waf-custom-rules

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

delete-waf-custom-rules remarks

You can also invoke this command using the Power Platform REST API Websites - Delete Waf Custom Rules.

pac power-pages delete-website

(Preview) Trigger the deletion of a website by specifying the website ID.

Required Parameters for power-pages delete-website

--id

Website unique identifier (ID).

Optional Parameters for power-pages delete-website

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

delete-website remarks

You can also invoke this command using the Power Platform REST API Websites - Delete Website.

pac power-pages disable-waf

(Preview) Disable web application Firewall on the given website.

Required Parameters for power-pages disable-waf

--id

Website unique identifier (ID).

Optional Parameters for power-pages disable-waf

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

disable-waf remarks

You can also invoke this command using the Power Platform REST API Websites - Disable Waf.

pac power-pages enable-waf

(Preview) Enable web application firewall on the given website.

Required Parameters for power-pages enable-waf

--id

Website unique identifier (ID).

Optional Parameters for power-pages enable-waf

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

enable-waf remarks

You can also invoke this command using the Power Platform REST API Websites - Enable WAF.

pac power-pages get-affected-sites

(Preview) Lists the websites in the tenant affected by an exception scenario, with each site's existing grant state, so an admin can review and select sites before granting.

Required Parameters for power-pages get-affected-sites

--exception-type

The exception scenario discriminator, e.g. "WebApiStarRetirement".

Use one of these values:

  • WebApiStarRetirement

Optional Parameters for power-pages get-affected-sites

--columns

Comma-separated list of response properties to include in table output. Use --json for the complete response.

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

get-affected-sites remarks

You can also invoke this command using the Power Platform REST API Websites - Get Affected Sites.

pac power-pages get-allowed-ip-addresses

(Preview) Returns the list of IP addresses in the website's IP restriction allow list.

Required Parameters for power-pages get-allowed-ip-addresses

--id

Website unique identifier (ID).

Optional Parameters for power-pages get-allowed-ip-addresses

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

get-allowed-ip-addresses remarks

You can also invoke this command using the Power Platform REST API Websites - Get Allowed Ip Addresses.

pac power-pages get-certificates-by-portal

(Preview) Returns the list of certificates associated with the specified website, filtered by certificate type.

Required Parameters for power-pages get-certificates-by-portal

--cert-type

The type of certificate to retrieve. Allowed values: SSL, MANAGED.

--id

Website unique identifier (ID).

Optional Parameters for power-pages get-certificates-by-portal

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

get-certificates-by-portal remarks

You can also invoke this command using the Power Platform REST API Websites - Get Certificates By Portal.

pac power-pages get-exceptions

(Preview) Lists the tenant's exception state rows (optionally filtered by exception type) with the derived lifecycle status.

Optional Parameters for power-pages get-exceptions

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

--exception-type

Optional exception scenario discriminator to filter by, e.g. "WebApiStarRetirement".

Use one of these values:

  • WebApiStarRetirement

get-exceptions remarks

You can also invoke this command using the Power Platform REST API Websites - Get Exceptions.

pac power-pages get-security-scan-report

(Preview) Get the deep scan report for a Power Pages website.

Required Parameters for power-pages get-security-scan-report

--id

Website unique identifier (ID).

Optional Parameters for power-pages get-security-scan-report

--columns

Comma-separated list of response properties to include in table output. Use --json for the complete response.

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

get-security-scan-report remarks

You can also invoke this command using the Power Platform REST API Websites - Get Security Scan Report.

pac power-pages get-security-scan-score

(Preview) Get the deep scan score for a Power Pages website.

Required Parameters for power-pages get-security-scan-score

--id

Website unique identifier (ID).

Optional Parameters for power-pages get-security-scan-score

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

get-security-scan-score remarks

You can also invoke this command using the Power Platform REST API Websites - Get Security Scan Score.

pac power-pages get-waf-rules

(Preview) Get the web application firewall rules associated with the given website.

Required Parameters for power-pages get-waf-rules

--id

Website unique identifier (ID).

Optional Parameters for power-pages get-waf-rules

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

--rule-type

Type of web application firewall rules to retrieve.

Use one of these values:

  • managed
  • custom

get-waf-rules remarks

You can also invoke this command using the Power Platform REST API Websites - Get WAF Rules.

pac power-pages get-waf-status

(Preview) Get the status of web application firewall associated with the given website.

Required Parameters for power-pages get-waf-status

--id

Website unique identifier (ID).

Optional Parameters for power-pages get-waf-status

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

get-waf-status remarks

You can also invoke this command using the Power Platform REST API Websites - Get WAF Status.

pac power-pages get-website-by-id

(Preview) Get website details using a specified website ID.

Required Parameters for power-pages get-website-by-id

--id

Website unique identifier (ID).

Optional Parameters for power-pages get-website-by-id

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

get-website-by-id remarks

You can also invoke this command using the Power Platform REST API Websites - Get Website By Id.

pac power-pages get-websites

(Preview) Get a list of all the websites in your environment.

Optional Parameters for power-pages get-websites

--columns

Comma-separated list of response properties to include in table output. Use --json for the complete response.

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

--skip

The number of items to skip before returning the remaining items.

get-websites remarks

You can also invoke this command using the Power Platform REST API Websites - Get Websites.

pac power-pages grant-exception

(Preview) Grants a break-glass admin exception (one-time per website and exception type) across one or more websites in the tenant. Gating, validation, and audit/state writes are synchronous; application-setting propagation is queued asynchronously.

Optional Parameters for power-pages grant-exception

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

--exception-type

Exception scenario discriminator identifying which admin exception ("break-glass") scenario a grant, revoke, or query targets.

Use one of these values:

  • WebApiStarRetirement

--portal-ids

Websites the exception should be applied to (deduplicated server-side). Provide the value as a JSON array.

--risk-acknowledged

Whether the admin explicitly acknowledged the risk. Must be true to proceed.

grant-exception remarks

You can also invoke this command using the Power Platform REST API Websites - Grant Exception.

pac power-pages list-host-names-for-portal

(Preview) Returns the list of custom host names configured for the specified website.

Required Parameters for power-pages list-host-names-for-portal

--id

Website unique identifier (ID).

Optional Parameters for power-pages list-host-names-for-portal

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

list-host-names-for-portal remarks

You can also invoke this command using the Power Platform REST API Websites - List Host Names For Portal.

pac power-pages list-ssl-bindings-by-thumbprints

(Preview) Returns the SSL bindings (certificate thumbprints) associated with the specified hostname on the website.

Required Parameters for power-pages list-ssl-bindings-by-thumbprints

--host-name

The custom domain hostname to filter SSL bindings by.

--id

Website unique identifier (ID).

Optional Parameters for power-pages list-ssl-bindings-by-thumbprints

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

list-ssl-bindings-by-thumbprints remarks

You can also invoke this command using the Power Platform REST API Websites - List Ssl Bindings By Thumbprints.

pac power-pages remove-allowed-ip-addresses

(Preview) Removes the specified IP addresses from the website's IP restriction allow list.

Required Parameters for power-pages remove-allowed-ip-addresses

--id

Website unique identifier (ID).

Optional Parameters for power-pages remove-allowed-ip-addresses

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

--ip-addresses

Provide the value as a JSON array.

remove-allowed-ip-addresses remarks

You can also invoke this command using the Power Platform REST API Websites - Remove Allowed Ip Addresses.

pac power-pages restart-website

(Preview) Restart the website for the given site ID.

Required Parameters for power-pages restart-website

--id

Website unique identifier (ID).

Optional Parameters for power-pages restart-website

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

restart-website remarks

You can also invoke this command using the Power Platform REST API Websites - Restart Website.

pac power-pages revoke-exception

(Preview) Revokes a previously granted admin exception across one or more websites in the tenant. Each exception state row is force-expired and asynchronous application-setting revert is queued.

Optional Parameters for power-pages revoke-exception

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

--exception-type

Exception scenario discriminator identifying which admin exception ("break-glass") scenario a grant, revoke, or query targets.

Use one of these values:

  • WebApiStarRetirement

--portal-ids

Websites whose exception should be revoked (deduplicated server-side). Provide the value as a JSON array.

revoke-exception remarks

You can also invoke this command using the Power Platform REST API Websites - Revoke Exception.

pac power-pages set-portal-bootstrap-v5-enabled

(Preview) Stamp bootstrap version five (5) status as enabled for website.

Required Parameters for power-pages set-portal-bootstrap-v5-enabled

--id

Website unique identifier (ID).

Optional Parameters for power-pages set-portal-bootstrap-v5-enabled

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

set-portal-bootstrap-v5-enabled remarks

You can also invoke this command using the Power Platform REST API Websites - Set Portal Bootstrap V5 Enabled.

pac power-pages set-portal-data-model-version

(Preview) Stamp data model version for website.

Required Parameters for power-pages set-portal-data-model-version

--id

Website unique identifier (ID).

Optional Parameters for power-pages set-portal-data-model-version

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

--is-new-data-model

Whether the portal uses the enhanced data model.

set-portal-data-model-version remarks

You can also invoke this command using the Power Platform REST API Websites - Set Portal Data Model Version.

pac power-pages start-deep-scan

(Preview) Start deep scan for a Power Pages website.

Required Parameters for power-pages start-deep-scan

--id

Website unique identifier (ID).

Optional Parameters for power-pages start-deep-scan

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

start-deep-scan remarks

You can also invoke this command using the Power Platform REST API Websites - Start Deep Scan.

pac power-pages start-quick-scan

(Preview) Execute a quick scan for a Power Pages website.

Required Parameters for power-pages start-quick-scan

--id

Website unique identifier (ID).

Optional Parameters for power-pages start-quick-scan

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

--lcid

Language code identifier (LCID) for the website.

start-quick-scan remarks

You can also invoke this command using the Power Platform REST API Websites - Start Quick Scan.

pac power-pages start-website

(Preview) Start the website for the given site ID.

Required Parameters for power-pages start-website

--id

Website unique identifier (ID).

Optional Parameters for power-pages start-website

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

start-website remarks

You can also invoke this command using the Power Platform REST API Websites - Start Website.

pac power-pages stop-website

(Preview) Stop the website for the given site ID.

Required Parameters for power-pages stop-website

--id

Website unique identifier (ID).

Optional Parameters for power-pages stop-website

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

stop-website remarks

You can also invoke this command using the Power Platform REST API Websites - Stop Website.

pac power-pages toggle-afd-traffic-routing

(Preview) Toggles traffic routing between Azure Front Door and web apps for a portal. When enableAFD is true, enables the AFD endpoint and adds service tag restrictions to web apps. When false, removes service tags and disables the AFD endpoint.

Required Parameters for power-pages toggle-afd-traffic-routing

--enable-afd

True to enable AFD routing, false to disable.

--id

Website unique identifier (ID).

Optional Parameters for power-pages toggle-afd-traffic-routing

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

toggle-afd-traffic-routing remarks

You can also invoke this command using the Power Platform REST API Websites - Toggle AFD Traffic Routing.

pac power-pages update-portal-security-group

(Preview) Update the security group for site visibility for a website.

Required Parameters for power-pages update-portal-security-group

--id

Website unique identifier (ID).

Optional Parameters for power-pages update-portal-security-group

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

--security-group-id

Security group ID.

update-portal-security-group remarks

You can also invoke this command using the Power Platform REST API Websites - Update Portal Security Group.

pac power-pages update-site-visibility

(Preview) Update site visibility for a website.

Required Parameters for power-pages update-site-visibility

--id

Website unique identifier (ID).

Optional Parameters for power-pages update-site-visibility

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

--site-visibility

Site visibility.

update-site-visibility remarks

You can also invoke this command using the Power Platform REST API Websites - Update Site Visibility.

pac power-pages update-waf-policy-settings

(Preview) Updates policy-level web application firewall settings (enforcement mode and JavaScript/CAPTCHA challenge cookie lifetimes) on the given website. Only the fields provided in the request body are applied; omitted fields are left unchanged.

Required Parameters for power-pages update-waf-policy-settings

--id

Website unique identifier (ID).

Optional Parameters for power-pages update-waf-policy-settings

--captcha-expiration-in-minutes

CAPTCHA challenge cookie validity lifetime in minutes. The accepted range is validated by Azure Front Door.

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

--javascript-challenge-expiration-in-minutes

JavaScript challenge cookie validity lifetime in minutes. The accepted range is validated by Azure Front Door.

--mode

Web application firewall enforcement mode. Prevention blocks matching requests; Detection only logs them.

Use one of these values:

  • Prevention
  • Detection

update-waf-policy-settings remarks

You can also invoke this command using the Power Platform REST API Websites - Update Waf Policy Settings.

pac power-pages upload-certificate

(Preview) Validates and uploads an SSL or managed certificate for the specified website. The certificate file and password must be provided as multipart form data.

Required Parameters for power-pages upload-certificate

--cert-type

The type of certificate (e.g., SSL, MANAGED).

--id

Website unique identifier (ID).

Optional Parameters for power-pages upload-certificate

--environment -env

Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.

--file

The certificate file (.pfx).

--password

The certificate password.

upload-certificate remarks

You can also invoke this command using the Power Platform REST API Websites - Upload Certificate.

See also

Microsoft Power Platform CLI Command Groups
Microsoft Power Platform CLI overview