共用方式為


az webapp deployment

Note

此命令群組具有 Azure CLI 和至少一個擴充功能中定義的命令。 安裝每個擴充功能以受益於其擴充功能。 深入了解擴充功能。

管理 Web 應用程式部署。

命令

名稱 Description 類型 狀態
az webapp deployment container

管理容器式持續部署。

Core GA
az webapp deployment container config

透過容器設定持續部署。

Core GA
az webapp deployment container show-cd-url

取得可用來設定 Webhook 以進行持續部署的 URL。 需要啟用 SCM 基本驗證發佈認證。

Core GA
az webapp deployment github-actions

設定 Webapp 的 GitHub Actions。

Core GA
az webapp deployment github-actions add

將 GitHub Actions 工作流程檔案新增至指定的存放庫。 工作流程會建置您的應用程式,並將其部署至指定的 Webapp。

Core GA
az webapp deployment github-actions remove

從指定的存放庫移除 GitHub Actions 工作流程檔案並中斷連線。

Core GA
az webapp deployment list-publishing-credentials

取得可用 Web 應用程式發佈認證的詳細資料。

Core GA
az webapp deployment list-publishing-profiles

取得可用 Web 應用程式部署設定檔的詳細資料。

Core GA
az webapp deployment slot

管理 Web 應用程式部署位置。

Core GA
az webapp deployment slot auto-swap

設定部署位置自動交換。

Core GA
az webapp deployment slot create

建立部署插槽。

Core GA
az webapp deployment slot delete

刪除部署位置。

Core GA
az webapp deployment slot list

列出所有部署位置。

Core GA
az webapp deployment slot swap

交換 Web 應用程式的部署位置。

Core GA
az webapp deployment source

透過原始檔控制管理 Web 應用程式部署。

核心和擴充功能 GA
az webapp deployment source config

從 git 或 Mercurial 存放庫管理部署。

Core GA
az webapp deployment source config-local-git

取得為了部署 Web 應用程式而要作為 git 存放庫端點複製與推送目標的 URL。

Core GA
az webapp deployment source config-zip

使用 Web 應用程式的 kudu zip 推送部署來執行部署。

Extension GA
az webapp deployment source delete

刪除原始檔控制部署組態。

Core GA
az webapp deployment source show

取得原始檔控制部署設定的詳細數據。

Core GA
az webapp deployment source sync

從存放庫同步處理。 只有在手動整合模式下才需要。

Core GA
az webapp deployment source update-token

更新 Azure App Service 中快取的原始檔控制令牌。

Core GA
az webapp deployment user

管理部署的用戶認證。

Core GA
az webapp deployment user set

更新部署認證。

Core GA
az webapp deployment user show

取得部署發佈使用者。

Core GA

az webapp deployment list-publishing-credentials

取得可用 Web 應用程式發佈認證的詳細資料。

az webapp deployment list-publishing-credentials [--ids]
                                                 [--name]
                                                 [--resource-group]
                                                 [--slot]
                                                 [--subscription]

範例

取得可用 Web 應用程式發佈認證的詳細資料(自動產生)

az webapp deployment list-publishing-credentials --name MyWebapp --resource-group MyResourceGroup --subscription MySubscription

選擇性參數

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

--ids

一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

屬性
參數群組: Resource Id Arguments
--name -n

Web 應用程式的名稱。 如果未指定,則會隨機產生名稱。 您可以使用 來設定預設值 az configure --defaults web=<name>

屬性
參數群組: Resource Id Arguments
--resource-group -g

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

屬性
參數群組: Resource Id Arguments
--slot -s

位置的名稱。 如果未指定,則預設為生產位置。

--subscription

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

屬性
參數群組: Resource Id Arguments
全域參數
--debug

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

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

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

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

輸出格式。

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

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

--verbose

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

屬性
預設值: False

az webapp deployment list-publishing-profiles

取得可用 Web 應用程式部署設定檔的詳細資料。

az webapp deployment list-publishing-profiles [--ids]
                                              [--name]
                                              [--resource-group]
                                              [--slot]
                                              [--subscription]
                                              [--xml]

範例

取得可用 Web 應用程式部署設定檔的詳細資料。 (autogenerated)

az webapp deployment list-publishing-profiles --name MyWebapp --resource-group MyResourceGroup --subscription MySubscription

選擇性參數

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

--ids

一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

屬性
參數群組: Resource Id Arguments
--name -n

Web 應用程式的名稱。 如果未指定,則會隨機產生名稱。 您可以使用 來設定預設值 az configure --defaults web=<name>

屬性
參數群組: Resource Id Arguments
--resource-group -g

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

屬性
參數群組: Resource Id Arguments
--slot -s

位置的名稱。 如果未指定,則預設為生產位置。

--subscription

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

屬性
參數群組: Resource Id Arguments
--xml

擷取 XML 格式的發行配置檔詳細數據。

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

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

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

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

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

輸出格式。

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

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

--verbose

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

屬性
預設值: False