Share via


az staticwebapp enterprise-edge

管理靜態 Webapp 的 Azure Front Door CDN。 如需最佳體驗和可用性,請查看我們的檔 https://aka.ms/swaedge

命令

名稱 Description 類型 狀態
az staticwebapp enterprise-edge disable

停用靜態 Webapp 的 Azure Front Door CDN。 如需最佳體驗和可用性,請查看我們的檔 https://aka.ms/swaedge

核心 GA
az staticwebapp enterprise-edge enable

為靜態 Webapp 啟用 Azure Front Door CDN。 啟用企業級邊緣需要重新註冊 Azure Front Door Microsoft.CDN 資源提供者。 如需最佳體驗和可用性,請查看我們的檔 https://aka.ms/swaedge

核心 GA
az staticwebapp enterprise-edge show

顯示 Webapp 的 Azure Front Door CDN 狀態(已啟用、停用、啟用、停用)。 如需最佳體驗和可用性,請查看我們的檔 https://aka.ms/swaedge

核心 GA

az staticwebapp enterprise-edge disable

停用靜態 Webapp 的 Azure Front Door CDN。 如需最佳體驗和可用性,請查看我們的檔 https://aka.ms/swaedge

az staticwebapp enterprise-edge disable --name
                                        --resource-group

必要參數

--name -n

靜態網站的名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az staticwebapp enterprise-edge enable

為靜態 Webapp 啟用 Azure Front Door CDN。 啟用企業級邊緣需要重新註冊 Azure Front Door Microsoft.CDN 資源提供者。 如需最佳體驗和可用性,請查看我們的檔 https://aka.ms/swaedge

az staticwebapp enterprise-edge enable --name
                                       --resource-group
                                       [--no-register]

必要參數

--name -n

靜態網站的名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

選擇性參數

--no-register

請勿嘗試註冊 Microsoft.CDN 提供者。 您可以使用手動方式完成註冊:az provider register --wait --namespace Microsoft.CDN。 如需詳細資訊,請檢閱 中 https://go.microsoft.com/fwlink/?linkid=2184995 提供的檔。

預設值: False
全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az staticwebapp enterprise-edge show

顯示 Webapp 的 Azure Front Door CDN 狀態(已啟用、停用、啟用、停用)。 如需最佳體驗和可用性,請查看我們的檔 https://aka.ms/swaedge

az staticwebapp enterprise-edge show --name
                                     --resource-group

必要參數

--name -n

靜態網站的名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。