pac power-pages

(預告)管理 Power Pages 網站、防火牆、憑證及自訂網域。

Commands

命令 Description
pac power-pages add-allowed-ip-addresses (預告)這些 IP 位址將能存取網站。
pac power-pages add-ssl-binding-by-portal (預告)將指定的憑證指紋綁定到網站的自訂網域主機名稱。
pac power-pages convert-trial-to-production (預告)將試用網站轉換成生產網站。
pac power-pages create-custom-domain (預告)會將指定的自訂主機名稱加入網站。
pac power-pages create-waf-rules (預告)在指定網站上建立網頁應用程式防火牆規則。
pac power-pages create-website (預告)觸發建立新網站。
pac power-pages delete-certificate-by-portal (預告)刪除網站上的指紋和字樣所識別的憑證。
pac power-pages delete-host-name-for-portal (預告)移除指定的自訂主機名稱,並清理相關的 SSL 綁定與 AFD 設定。
pac power-pages delete-ssl-binding-by-thumbprint (預告)移除網站上指定主機名稱和憑證拇指紋的 SSL 綁定。
pac power-pages delete-waf-custom-rules (預告)刪除該網站上的網頁應用程式防火牆自訂規則。
pac power-pages delete-website (預告)透過指定網站 ID 觸發網站刪除。
pac power-pages disable-waf (預告)在指定網站上關閉網頁應用程式防火牆。
pac power-pages enable-waf (預告)在指定網站上啟用網頁應用防火牆。
pac power-pages get-affected-sites (預告)列出租戶中受例外情境影響的網站,並顯示每個網站現有的授權狀態,讓管理員在授權前能審查並選擇網站。
pac power-pages get-allowed-ip-addresses (預告)回傳網站 IP 限制允許清單中的 IP 位址清單。
pac power-pages get-certificates-by-portal (預告)回傳與指定網站相關的憑證清單,依憑證類型篩選。
pac power-pages get-exceptions (預告)列出租戶的例外狀態列(可依例外類型篩選),並附上衍生生命週期狀態。
pac power-pages get-security-scan-report (預告)取得 Power Pages 網站的深度掃描報告。
pac power-pages get-security-scan-score (預告)取得 Power Pages 網站的深度掃描分數。
pac power-pages get-waf-rules (預告)取得與該網站相關的網頁應用防火牆規則。
pac power-pages get-waf-status (預告)查詢該網站所屬的網頁應用程式防火牆狀態。
pac power-pages get-website-by-id (預告)使用指定的網站 ID 獲取網站資訊。
pac power-pages get-websites (預告)取得你環境中所有網站的清單。
pac power-pages grant-exception (預告)允許租戶內一個或多個網站的第三方管理員例外(每個網站及例外類型僅一次)。 閘控、驗證與審計/狀態寫入皆為同步;應用程式設定的傳播會以非同步方式排隊。
pac power-pages list-host-names-for-portal (預告)回傳為指定網站所設定的自訂主機名稱清單。
pac power-pages list-ssl-bindings-by-thumbprints (預告)回傳與指定主機名稱相關的 SSL 綁定(憑證指紋)。
pac power-pages remove-allowed-ip-addresses (預告)將指定的 IP 位址從網站的 IP 限制允許清單中移除。
pac power-pages restart-website (預告)重新啟用給定的網站 ID。
pac power-pages revoke-exception (預告)撤銷租戶中一個或多個網站先前授予的管理員例外。 每個例外狀態列都被強制過期,非同步應用程式設定還原會被排隊。
pac power-pages set-portal-bootstrap-v5-enabled (預告)網站已啟用,Bootstrap 版本五(5)。
pac power-pages set-portal-data-model-version (預告)網站的印章資料模型版本。
pac power-pages start-deep-scan (預告)開始深度掃描 Power Pages 網站。
pac power-pages start-quick-scan (預告)快速掃描 Power Pages 網站。
pac power-pages start-website (預告)啟動該網站 ID 的網站。
pac power-pages stop-website (預告)請停止使用該網站 ID。
pac power-pages toggle-afd-traffic-routing (預告)切換 Azure Front Door 與 web 應用程式之間的流量路由,供 portal 使用。 當啟用AFD為真時,啟用AFD端點並為網頁應用程式新增服務標籤限制。 若為錯誤,則移除服務標籤並停用 AFD 端點。
pac power-pages update-portal-security-group (預告)更新網站的安全性群組以提升網站的可見性。
pac power-pages update-site-visibility (預告)更新網站的可見性。
pac power-pages update-waf-policy-settings (預告)更新該網站上的政策層級網頁應用防火牆設定(執行模式及 JavaScript/CAPTCHA 挑戰 Cookie 壽命)。 僅套用請求主體中提供的欄位;遺漏欄位保持不變。
pac power-pages upload-certificate (預告)驗證並上傳指定網站的 SSL 或受管理憑證。 憑證檔案與密碼必須以多部分表單資料形式提供。

pac power-pages add-allowed-ip-addresses

(預告)這些 IP 位址將能存取網站。

所需參數 power-pages add-allowed-ip-addresses

--id

網站唯一識別碼 (ID)。

可選參數 power-pages add-allowed-ip-addresses

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

--ip-addresses

提供 JSON 陣列的值。

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

(預告)將指定的憑證指紋綁定到網站的自訂網域主機名稱。

所需參數 power-pages add-ssl-binding-by-portal

--host-name

自訂網域主機名稱,用來綁定憑證。

--id

網站唯一識別碼 (ID)。

--thumbprint

證書的指紋要綁定。

可選參數 power-pages add-ssl-binding-by-portal

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

pac power-pages convert-trial-to-production

(預告)將試用網站轉換成生產網站。

所需參數 power-pages convert-trial-to-production

--id

網站唯一識別碼 (ID)。

可選參數 power-pages convert-trial-to-production

--enable-cdn

啟用網站內容傳遞網路(CDN)

--enable-waf

啟用網站的網頁應用程式防火牆(WAF)

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

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

網站請使用 Dynamics 365 入口網站 Add-On 授權

pac power-pages create-custom-domain

(預告)會將指定的自訂主機名稱加入網站。

所需參數 power-pages create-custom-domain

--custom-domain

自訂主機名稱,要加到網站上。

--id

網站唯一識別碼 (ID)。

可選參數 power-pages create-custom-domain

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

pac power-pages create-waf-rules

(預告)在指定網站上建立網頁應用程式防火牆規則。

所需參數 power-pages create-waf-rules

--id

網站唯一識別碼 (ID)。

可選參數 power-pages create-waf-rules

--custom-rules

提供 JSON 陣列的值。

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

--managed-rules

提供 JSON 陣列的值。

pac power-pages create-website

(預告)觸發建立新網站。

所需參數 power-pages create-website

--dataverse-organization-id

Dataverse 組織的唯一識別碼 (ID)

--name

網站名稱

--selected-base-language

語言識別碼 - https://go.microsoft.com/fwlink/?linkid=2208135

--subdomain

網站 URL 的子網域

--template-name

網站範本名稱。 支援的範本、其顯示名稱及範本類型:

Template 顯示名稱 範本類型
StarterLayout1 起始佈局1 Power Pages
StarterLayout2 入門佈局2 Power Pages
StarterLayout3 入門佈局3 Power Pages
StarterLayout4 起始佈局4 Power Pages
StarterLayout5 入門佈局 5 Power Pages
BlankPage 空白頁 Power Pages
BookMeetings 安排與管理會議 Power Pages
DefaultPortalTemplate 起始佈局1 Power Pages
PowerPortals_ProgramRegistration 課程註冊 Power Pages
PowerPortals_BookMeeting 安排與管理會議 Power Pages
FAQ 常見問題 Power Pages
ProgramRegistration 課程註冊 Power Pages
BuildingPermit 申請處理 Power Pages
Community Community Dynamics 365
EventPortal 活動入口網站 Dynamics 365
CustomerSelfServicePortal 客戶自助入口網站 Dynamics 365
EmployeeSelfServicePortal 員工自助服務入口網站 Dynamics 365
PartnerPortal 合作夥伴入口網站 Dynamics 365
CustomerPortal 客戶入口網站 Dynamics 365
FieldService Field Service Dynamics 365

使用下列其中一個值:

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

可選參數 power-pages create-website

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

--website-record-id

網站的 Dataverse 記錄唯一識別碼 (ID)

pac power-pages delete-certificate-by-portal

(預告)刪除網站上的指紋和字樣所識別的憑證。

所需參數 power-pages delete-certificate-by-portal

--cert-type

憑證類型(例如 SSL、MANAGED)。

--id

網站唯一識別碼 (ID)。

--thumbprint

用來刪除證書的指紋。

可選參數 power-pages delete-certificate-by-portal

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

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

(預告)移除指定的自訂主機名稱,並清理相關的 SSL 綁定與 AFD 設定。

所需參數 power-pages delete-host-name-for-portal

--host-name

要從網站移除的自訂主機名稱。

--id

網站唯一識別碼 (ID)。

可選參數 power-pages delete-host-name-for-portal

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

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

(預告)移除網站上指定主機名稱和憑證拇指紋的 SSL 綁定。

所需參數 power-pages delete-ssl-binding-by-thumbprint

--host-name

自訂網域主機名稱的 SSL 綁定將被移除。

--id

網站唯一識別碼 (ID)。

--thumbprint

解綁證書的指紋。

可選參數 power-pages delete-ssl-binding-by-thumbprint

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

pac power-pages delete-waf-custom-rules

(預告)刪除該網站上的網頁應用程式防火牆自訂規則。

所需參數 power-pages delete-waf-custom-rules

--body

JSON 請求主體,或 @<path> 從檔案讀取。

--id

網站唯一識別碼 (ID)。

可選參數 power-pages delete-waf-custom-rules

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

pac power-pages delete-website

(預告)透過指定網站 ID 觸發網站刪除。

所需參數 power-pages delete-website

--id

網站唯一識別碼 (ID)。

可選參數 power-pages delete-website

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

pac power-pages disable-waf

(預告)在指定網站上關閉網頁應用程式防火牆。

所需參數 power-pages disable-waf

--id

網站唯一識別碼 (ID)。

可選參數 power-pages disable-waf

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

pac power-pages enable-waf

(預告)在指定網站上啟用網頁應用防火牆。

所需參數 power-pages enable-waf

--id

網站唯一識別碼 (ID)。

可選參數 power-pages enable-waf

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

pac power-pages get-affected-sites

(預告)列出租戶中受例外情境影響的網站,並顯示每個網站現有的授權狀態,讓管理員在授權前能審查並選擇網站。

所需參數 power-pages get-affected-sites

--exception-type

例外情境判別器,例如「WebApiStarRetirement」。

使用下列其中一個值:

  • WebApiStarRetirement

可選參數 power-pages get-affected-sites

--columns

表格輸出中包含的回應屬性,並以逗號分隔。 完整回應請使用 --json。

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

pac power-pages get-allowed-ip-addresses

(預告)回傳網站 IP 限制允許清單中的 IP 位址清單。

所需參數 power-pages get-allowed-ip-addresses

--id

網站唯一識別碼 (ID)。

可選參數 power-pages get-allowed-ip-addresses

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

pac power-pages get-certificates-by-portal

(預告)回傳與指定網站相關的憑證清單,依憑證類型篩選。

所需參數 power-pages get-certificates-by-portal

--cert-type

要取得的證書類型。 允許的值:SSL、MANAGED。

--id

網站唯一識別碼 (ID)。

可選參數 power-pages get-certificates-by-portal

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

pac power-pages get-exceptions

(預告)列出租戶的例外狀態列(可依例外類型篩選),並附上衍生生命週期狀態。

可選參數 power-pages get-exceptions

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

--exception-type

可選的例外情境區分器可過濾,例如「WebApiStarRetirement」。

使用下列其中一個值:

  • WebApiStarRetirement

pac power-pages get-security-scan-report

(預告)取得 Power Pages 網站的深度掃描報告。

所需參數 power-pages get-security-scan-report

--id

網站唯一識別碼 (ID)。

可選參數 power-pages get-security-scan-report

--columns

表格輸出中包含的回應屬性,並以逗號分隔。 完整回應請使用 --json。

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

pac power-pages get-security-scan-score

(預告)取得 Power Pages 網站的深度掃描分數。

所需參數 power-pages get-security-scan-score

--id

網站唯一識別碼 (ID)。

可選參數 power-pages get-security-scan-score

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

pac power-pages get-waf-rules

(預告)取得與該網站相關的網頁應用防火牆規則。

所需參數 power-pages get-waf-rules

--id

網站唯一識別碼 (ID)。

可選參數 power-pages get-waf-rules

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

--rule-type

要擷取的 Web 應用程式防火牆規則類型。

使用下列其中一個值:

  • managed
  • custom

pac power-pages get-waf-status

(預告)查詢該網站所屬的網頁應用程式防火牆狀態。

所需參數 power-pages get-waf-status

--id

網站唯一識別碼 (ID)。

可選參數 power-pages get-waf-status

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

pac power-pages get-website-by-id

(預告)使用指定的網站 ID 獲取網站資訊。

所需參數 power-pages get-website-by-id

--id

網站唯一識別碼 (ID)。

可選參數 power-pages get-website-by-id

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

pac power-pages get-websites

(預告)取得你環境中所有網站的清單。

可選參數 power-pages get-websites

--columns

表格輸出中包含的回應屬性,並以逗號分隔。 完整回應請使用 --json。

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

--skip

在傳回剩餘項目之前要略過的項目數。

pac power-pages grant-exception

(預告)允許租戶內一個或多個網站的第三方管理員例外(每個網站及例外類型僅一次)。 閘控、驗證與審計/狀態寫入皆為同步;應用程式設定的傳播會以非同步方式排隊。

可選參數 power-pages grant-exception

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

--exception-type

例外情境區分器,識別管理員例外(「break-glass」)情境,為授權、撤銷或查詢目標。

使用下列其中一個值:

  • WebApiStarRetirement

--portal-ids

例外應該套用在網站(伺服器端的去重)。 提供 JSON 陣列的值。

--risk-acknowledged

管理員是否明確承認風險。 必須是真實的才能繼續。

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

(預告)回傳為指定網站所設定的自訂主機名稱清單。

所需參數 power-pages list-host-names-for-portal

--id

網站唯一識別碼 (ID)。

可選參數 power-pages list-host-names-for-portal

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

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

(預告)回傳與指定主機名稱相關的 SSL 綁定(憑證指紋)。

所需參數 power-pages list-ssl-bindings-by-thumbprints

--host-name

自訂網域主機名稱用來過濾 SSL 綁定。

--id

網站唯一識別碼 (ID)。

可選參數 power-pages list-ssl-bindings-by-thumbprints

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

pac power-pages remove-allowed-ip-addresses

(預告)將指定的 IP 位址從網站的 IP 限制允許清單中移除。

所需參數 power-pages remove-allowed-ip-addresses

--id

網站唯一識別碼 (ID)。

可選參數 power-pages remove-allowed-ip-addresses

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

--ip-addresses

提供 JSON 陣列的值。

pac power-pages restart-website

(預告)重新啟用給定的網站 ID。

所需參數 power-pages restart-website

--id

網站唯一識別碼 (ID)。

可選參數 power-pages restart-website

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

pac power-pages revoke-exception

(預告)撤銷租戶中一個或多個網站先前授予的管理員例外。 每個例外狀態列都被強制過期,非同步應用程式設定還原會被排隊。

可選參數 power-pages revoke-exception

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

--exception-type

例外情境區分器,識別管理員例外(「break-glass」)情境,為授權、撤銷或查詢目標。

使用下列其中一個值:

  • WebApiStarRetirement

--portal-ids

例外應被撤銷(伺服器端去重)。 提供 JSON 陣列的值。

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

(預告)網站已啟用,Bootstrap 版本五(5)。

所需參數 power-pages set-portal-bootstrap-v5-enabled

--id

網站唯一識別碼 (ID)。

可選參數 power-pages set-portal-bootstrap-v5-enabled

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

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

(預告)網站的印章資料模型版本。

所需參數 power-pages set-portal-data-model-version

--id

網站唯一識別碼 (ID)。

可選參數 power-pages set-portal-data-model-version

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

--is-new-data-model

該入口網站是否使用強化資料模型。

pac power-pages start-deep-scan

(預告)開始深度掃描 Power Pages 網站。

所需參數 power-pages start-deep-scan

--id

網站唯一識別碼 (ID)。

可選參數 power-pages start-deep-scan

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

pac power-pages start-quick-scan

(預告)快速掃描 Power Pages 網站。

所需參數 power-pages start-quick-scan

--id

網站唯一識別碼 (ID)。

可選參數 power-pages start-quick-scan

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

--lcid

網站的語言代碼識別碼 (LCID)。

pac power-pages start-website

(預告)啟動該網站 ID 的網站。

所需參數 power-pages start-website

--id

網站唯一識別碼 (ID)。

可選參數 power-pages start-website

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

pac power-pages stop-website

(預告)請停止使用該網站 ID。

所需參數 power-pages stop-website

--id

網站唯一識別碼 (ID)。

可選參數 power-pages stop-website

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

pac power-pages toggle-afd-traffic-routing

(預告)切換 Azure Front Door 與 web 應用程式之間的流量路由,供 portal 使用。 當啟用AFD為真時,啟用AFD端點並為網頁應用程式新增服務標籤限制。 若為錯誤,則移除服務標籤並停用 AFD 端點。

所需參數 power-pages toggle-afd-traffic-routing

--enable-afd

true是啟用AFD路由,false是禁用。

--id

網站唯一識別碼 (ID)。

可選參數 power-pages toggle-afd-traffic-routing

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

pac power-pages update-portal-security-group

(預告)更新網站的安全性群組以提升網站的可見性。

所需參數 power-pages update-portal-security-group

--id

網站唯一識別碼 (ID)。

可選參數 power-pages update-portal-security-group

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

--security-group-id

安全性群組識別碼。

pac power-pages update-site-visibility

(預告)更新網站的可見性。

所需參數 power-pages update-site-visibility

--id

網站唯一識別碼 (ID)。

可選參數 power-pages update-site-visibility

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

--site-visibility

網站可見性。

pac power-pages update-waf-policy-settings

(預告)更新該網站上的政策層級網頁應用防火牆設定(執行模式及 JavaScript/CAPTCHA 挑戰 Cookie 壽命)。 僅套用請求主體中提供的欄位;遺漏欄位保持不變。

所需參數 power-pages update-waf-policy-settings

--id

網站唯一識別碼 (ID)。

可選參數 power-pages update-waf-policy-settings

--captcha-expiration-in-minutes

驗證碼挑戰 Cookie 有效性壽命只需幾分鐘。 接受的範圍由 Azure Front Door 驗證。

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

--javascript-challenge-expiration-in-minutes

JavaScript 挑戰 cookie 有效期在幾分鐘內。 接受的範圍由 Azure Front Door 驗證。

--mode

網頁應用防火牆強制模式。 防止阻擋匹配請求;偵測只會記錄它們。

使用下列其中一個值:

  • Prevention
  • Detection

pac power-pages upload-certificate

(預告)驗證並上傳指定網站的 SSL 或受管理憑證。 憑證檔案與密碼必須以多部分表單資料形式提供。

所需參數 power-pages upload-certificate

--cert-type

憑證類型(例如 SSL、MANAGED)。

--id

網站唯一識別碼 (ID)。

可選參數 power-pages upload-certificate

--environment -env

指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。

--file

證書檔案(.pfx)。

--password

憑證密碼。

另請參閱

Microsoft Power Platform CLI 指令群組
Microsoft Power Platform CLI 概述