az cdn

Note

此參考文獻是 Azure CLI(版本 2.85.0 或更高版本)cdn 擴充的一部分。 這個擴充功能會在你第一次執行 az cdn 指令時自動安裝。 深入了解擴充功能。

管理 Azure 內容傳遞網絡(CDN)。

命令

名稱 Description 類型 狀態
az cdn custom-domain

管理 Azure CDN 自訂網域,以提供端點的自訂主機名稱。

擴充功能 GA
az cdn custom-domain create

在端點內建立新的自定義網域。

擴充功能 GA
az cdn custom-domain delete

刪除端點內現有的自定義網域。

擴充功能 GA
az cdn custom-domain disable-https

停用自定義網域的 HTTPs 傳遞。

擴充功能 GA
az cdn custom-domain enable-https

啟用自訂網域的 HTTPS。 您可以使用 「az cdn custom-domain list」 來取得自定義網域的資源名稱。

擴充功能 GA
az cdn custom-domain list

列出端點內的所有現有自定義網域。

擴充功能 GA
az cdn custom-domain show

取得端點內現有的自定義網域。

擴充功能 GA
az cdn custom-domain update

更新端點內的新自定義網域。

擴充功能 GA
az cdn custom-domain wait

將 CLI 置於等候狀態,直到符合條件為止。

擴充功能 GA
az cdn edge-node

檢視所有可用的 CDN 邊緣節點。

擴充功能 GA
az cdn edge-node list

清單是全域存在點 (POP) 位置,用來將CDN內容傳遞給使用者。

擴充功能 GA
az cdn endpoint

管理 CDN 端點。

擴充功能 GA
az cdn endpoint create

在指定的訂用帳戶、資源群組和配置檔下,建立具有指定端點名稱的新 CDN 端點。

擴充功能 GA
az cdn endpoint delete

在指定的訂用帳戶、資源群組和配置檔下,刪除具有指定端點名稱的現有CDN端點。

擴充功能 GA
az cdn endpoint list

列出現有的CDN端點。

擴充功能 GA
az cdn endpoint load

將內容預先載入CDN。 適用於 Verizon 設定檔。

擴充功能 GA
az cdn endpoint name-exists

檢查資源名稱的可用性。 對於名稱為全域唯一的資源,例如 CDN 端點,則需要此專案。

擴充功能 GA
az cdn endpoint purge

從CDN 移除內容。

擴充功能 GA
az cdn endpoint rule

管理端點的傳遞規則。

擴充功能 Preview
az cdn endpoint rule action

管理端點的傳遞規則動作。

擴充功能 Preview
az cdn endpoint rule action add

將動作新增至傳遞規則。

擴充功能 Preview
az cdn endpoint rule action remove

從傳遞規則移除動作。

擴充功能 Preview
az cdn endpoint rule action show

使用端點顯示傳遞規則。

擴充功能 Preview
az cdn endpoint rule add

將傳遞規則新增至CDN端點。

擴充功能 Preview
az cdn endpoint rule condition

管理端點的傳遞規則條件。

擴充功能 Preview
az cdn endpoint rule condition add

將條件新增至傳遞規則。

擴充功能 Preview
az cdn endpoint rule condition remove

從傳遞規則中移除條件。

擴充功能 Preview
az cdn endpoint rule condition show

顯示與端點相關聯的傳遞規則。

擴充功能 Preview
az cdn endpoint rule remove

從端點移除傳遞規則。

擴充功能 Preview
az cdn endpoint rule show

顯示與端點相關聯的傳遞規則。

擴充功能 Preview
az cdn endpoint show

在指定的訂用帳戶、資源群組和配置檔下,取得具有指定端點名稱的現有CDN端點。

擴充功能 GA
az cdn endpoint start

啟動處於已停止狀態的現有CDN端點。

擴充功能 GA
az cdn endpoint stop

停止現有的執行 CDN 端點。

擴充功能 GA
az cdn endpoint update

在指定的訂用帳戶、資源群組和配置檔下,以指定的端點名稱更新現有的 CDN 端點。 建立端點之後,只能更新標記。 若要更新原始來源,請使用Update Origin作業。 若要更新原始群組,請使用更新來源群組作業。 若要更新自定義網域,請使用更新自定義網域作業。

擴充功能 GA
az cdn endpoint validate-custom-domain

驗證自定義網域對應,以確保其對應至 DNS 中正確的 CDN 端點。

擴充功能 GA
az cdn endpoint wait

將 CLI 置於等候狀態,直到符合條件為止。

擴充功能 GA
az cdn name-exists

檢查資源名稱的可用性。 對於名稱為全域唯一的資源,例如 CDN 端點,則需要此專案。

擴充功能 GA
az cdn origin

列出或顯示與CDN端點相關的現有來源。

擴充功能 GA
az cdn origin-group

管理端點的原始群組。

擴充功能 GA
az cdn origin-group create

在指定的端點內建立新的原始群組。

擴充功能 GA
az cdn origin-group delete

刪除端點內現有的原始來源群組。

擴充功能 GA
az cdn origin-group list

列出端點內的所有現有原始群組。

擴充功能 GA
az cdn origin-group show

取得端點內現有的原始來源群組。

擴充功能 GA
az cdn origin-group update

更新指定端點內的新源群組。

擴充功能 GA
az cdn origin-group wait

將 CLI 置於等候狀態,直到符合條件為止。

擴充功能 GA
az cdn origin create

在指定的端點內建立新的原點。

擴充功能 GA
az cdn origin delete

刪除端點內現有的原始來源。

擴充功能 GA
az cdn origin list

列出端點內的所有現有來源。

擴充功能 GA
az cdn origin show

取得端點內的現有原始來源。

擴充功能 GA
az cdn origin update

更新指定端點內的新原始來源。

擴充功能 GA
az cdn origin wait

將 CLI 置於等候狀態,直到符合條件為止。

擴充功能 GA
az cdn profile

管理設定檔。

擴充功能 GA
az cdn profile-migration

傳統 cdn 設定檔移轉作業。

擴充功能 Preview
az cdn profile-migration abort

Abort the migration to Azure Frontdoor Premium/Standard.

擴充功能 Preview
az cdn profile-migration check-compatibility

檢查 CDN 設定檔是否可以遷移到 Azure Frontdoor(標準/高級)配置檔。

擴充功能 Preview
az cdn profile-migration commit

Commit the migrated Azure Frontdoor(Standard/Premium) profile.

擴充功能 Preview
az cdn profile-migration migrate

將 CDN profile 遷移到 Azure Frontdoor(Standard/Premium) profile。 此步驟會準備移轉的配置檔,並接著認可以完成移轉。

擴充功能 Preview
az cdn profile create

建立一個新的 Azure Front Door Standard 或 Azure Front Door Premium 或 CDN 設定檔,並設定一個設定檔名稱,並置於指定的訂閱與資源群組下。

擴充功能 GA
az cdn profile delete

刪除一個現有的 Azure Front Door Standard 或 Azure Front Door Premium 或 CDN 設定檔,並使用指定參數。 刪除配置檔會導致刪除所有子資源,包括端點、來源和自定義網域。

擴充功能 GA
az cdn profile deployment-version

管理部署版本。

擴充功能 GA
az cdn profile deployment-version approve

核准版本的部署。

擴充功能 GA
az cdn profile deployment-version compare

將部署版本與另一個部署版本進行比較。

擴充功能 GA
az cdn profile deployment-version list

依設定檔列出現有的部署版本。

擴充功能 GA
az cdn profile deployment-version show

取得在指定訂用帳戶、資源群組和配置檔下具有指定版本名稱的現有 DeploymentVersion。

擴充功能 GA
az cdn profile deployment-version update

更新設定檔內現有的 DeploymentVersion。

擴充功能 GA
az cdn profile list

列出所有 Azure Front Door Standard、Azure Front Door Premium 及 CDN 設定檔,皆包含於 Azure 訂閱內。

擴充功能 GA
az cdn profile show

在指定的訂閱和資源群組下,取得一個 Azure Front Door Standard 或 Azure Front Door Premium 或 CDN 設定檔。

擴充功能 GA
az cdn profile update

在指定的訂閱與資源群組下,更新一個新的 Azure Front Door Standard 或 Azure Front Door Premium 或 CDN 設定檔。

擴充功能 GA
az cdn usage

檢查指定訂用帳戶下 CDN 配置檔的配額和實際使用量。

擴充功能 GA

az cdn name-exists

檢查資源名稱的可用性。 對於名稱為全域唯一的資源,例如 CDN 端點,則需要此專案。

az cdn name-exists --name
                   [--acquire-policy-token]
                   [--change-reference]
                   [--type {Microsoft.Cdn/Profiles/AfdEndpoints, Microsoft.Cdn/Profiles/Endpoints}]

範例

檢查姓名可用性訂閱

az cdn name-exists --name sampleName --type Microsoft.Cdn/Profiles/Endpoints

必要參數

--name

要驗證的資源名稱。

屬性 值
參數群組: CheckNameAvailabilityInput Arguments

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--acquire-policy-token

自動取得 Azure 原則 令牌以進行此資源操作。

屬性 值
參數群組: Global Policy Arguments
--change-reference

相關變更的 ID 是為此資源操作所參考的。

屬性 值
參數群組: Global Policy Arguments
--type

要驗證其名稱的資源類型。

屬性 值
參數群組: CheckNameAvailabilityInput Arguments
預設值: Microsoft.Cdn/Profiles/Endpoints
接受的值: Microsoft.Cdn/Profiles/AfdEndpoints, Microsoft.Cdn/Profiles/Endpoints
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性 值
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性 值
預設值: False
--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性 值
預設值: False

az cdn usage

檢查指定訂用帳戶下 CDN 配置檔的配額和實際使用量。

az cdn usage [--acquire-policy-token]
             [--change-reference]
             [--max-items]
             [--next-token]

範例

ResourceUsage_List

az cdn usage

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--acquire-policy-token

自動取得 Azure 原則 令牌以進行此資源操作。

屬性 值
參數群組: Global Policy Arguments
--change-reference

相關變更的 ID 是為此資源操作所參考的。

屬性 值
參數群組: Global Policy Arguments
--max-items

命令輸出中要傳回的項目總數。 如果可用的專案總數超過指定的值,則會在命令的輸出中提供令牌。 若要繼續分頁,請在後續命令的 --next-token 自變數中提供令牌值。

屬性 值
參數群組: Pagination Arguments
--next-token

標記,指定要開始分頁的位置。 這是先前截斷回應中的令牌值。

屬性 值
參數群組: Pagination Arguments
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性 值
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性 值
預設值: False
--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性 值
預設值: False