az functionapp deployment slot

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

命令

名稱 Description 類型 狀態
az functionapp deployment slot auto-swap

設定部署位置自動交換。

核心 GA
az functionapp deployment slot create

建立部署位置。

核心 GA
az functionapp deployment slot delete

刪除部署位置。

核心 GA
az functionapp deployment slot list

列出所有部署位置。

核心 GA
az functionapp deployment slot swap

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

核心 GA

az functionapp deployment slot auto-swap

設定部署位置自動交換。

az functionapp deployment slot auto-swap --slot
                                         [--auto-swap-slot]
                                         [--disable]
                                         [--ids]
                                         [--name]
                                         [--resource-group]
                                         [--subscription]

必要參數

--slot -s

位置的名稱。

選擇性參數

--auto-swap-slot

要自動交換的目標位置。

預設值: production
--disable

停用自動交換。

--ids

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

--name -n

函式應用程式的名稱。

--resource-group -g

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

--subscription

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

全域參數
--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 functionapp deployment slot create

建立部署位置。

az functionapp deployment slot create --name
                                      --resource-group
                                      --slot
                                      [--configuration-source]
                                      [--deployment-container-image-name]
                                      [--docker-registry-server-password]
                                      [--docker-registry-server-user]
                                      [--image]
                                      [--registry-password]
                                      [--registry-username]

範例

建立部署位置。 (自動產生)

az functionapp deployment slot create --name MyFunctionapp --resource-group MyResourceGroup --slot staging

必要參數

--name -n

函式應用程式的名稱。

--resource-group -g

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

--slot -s

位置的名稱。

選擇性參數

--configuration-source

要從中複製組態的來源位置。 使用函式應用程式的名稱來參考生產位置。

--deployment-container-image-name
已被取代

選項 '--deployment-container-image-name' 已被取代,未來版本將會移除。 請改用 '--image'。

容器映射,例如 publisher/image-name:tag。

--docker-registry-server-password
已被取代

選項 '--docker-registry-server-password' 已被取代,將在未來的版本中移除。 請改用 '--registry-password'。

容器登錄伺服器密碼。

--docker-registry-server-user
已被取代

選項 '--docker-registry-server-user' 已被取代,並將在未來版本中移除。 請改用 '--registry-username'。

容器登錄伺服器使用者名稱。

--image -i

容器映射,例如 publisher/image-name:tag。

--registry-password -d

容器登錄伺服器密碼。

--registry-username -u

容器登錄伺服器使用者名稱。

全域參數
--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 functionapp deployment slot delete

刪除部署位置。

az functionapp deployment slot delete --slot
                                      [--ids]
                                      [--name]
                                      [--resource-group]
                                      [--subscription]

範例

刪除部署位置。 (自動產生)

az functionapp deployment slot delete --name MyFunctionapp --resource-group MyResourceGroup --slot staging

必要參數

--slot -s

位置的名稱。

選擇性參數

--ids

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

--name -n

函式應用程式的名稱。

--resource-group -g

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

--subscription

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

全域參數
--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 functionapp deployment slot list

列出所有部署位置。

az functionapp deployment slot list [--ids]
                                    [--name]
                                    [--resource-group]
                                    [--subscription]

範例

列出所有部署位置。 (自動產生)

az functionapp deployment slot list --name MyFunctionapp --resource-group MyResourceGroup

選擇性參數

--ids

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

--name -n

函式應用程式的名稱。

--resource-group -g

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

--subscription

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

全域參數
--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 functionapp deployment slot swap

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

az functionapp deployment slot swap --slot
                                    [--action {preview, reset, swap}]
                                    [--ids]
                                    [--name]
                                    [--preserve-vnet {false, true}]
                                    [--resource-group]
                                    [--subscription]
                                    [--target-slot]

範例

將預備位置交換至 MyUniqueApp 函式應用程式的生產環境。

az functionapp deployment slot swap  -g MyResourceGroup -n MyUniqueApp --slot staging \
    --target-slot production

必要參數

--slot -s

位置的名稱。

選擇性參數

--action

交換類型。 使用 'preview' 先在來源位置上套用目標位置的設定;使用 'swap' 來完成它;使用 'reset' 來重設交換。

接受的值: preview, reset, swap
預設值: swap
--ids

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

--name -n

函式應用程式的名稱。

--preserve-vnet

在交換期間保留位置虛擬網絡,預設為 'true'。

接受的值: false, true
--resource-group -g

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

--subscription

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

--target-slot

要交換的目標位置,預設為「生產環境」。

全域參數
--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 來取得完整偵錯記錄。