az functionapp config ssl

設定 SSL 憑證。

命令

名稱 Description 類型 狀態
az functionapp config ssl bind

將 SSL 憑證系結至函式應用程式。

核心 GA
az functionapp config ssl create

在函式應用程式中建立主機名稱的受控憑證。

核心 預覽版
az functionapp config ssl delete

從函式應用程式刪除 SSL 憑證。

核心 GA
az functionapp config ssl import

從金鑰保存庫將 SSL 憑證匯入函式應用程式。

核心 GA
az functionapp config ssl list

列出函式應用程式的 SSL 憑證。

核心 GA
az functionapp config ssl show

顯示函式應用程式的 SSL 憑證詳細資料。

核心 GA
az functionapp config ssl unbind

從函式應用程式解除系結 SSL 憑證。

核心 GA
az functionapp config ssl upload

將 SSL 憑證上傳至函式應用程式。

核心 GA

az functionapp config ssl bind

將 SSL 憑證系結至函式應用程式。

az functionapp config ssl bind --certificate-thumbprint
                               --ssl-type {IP, SNI}
                               [--hostname]
                               [--ids]
                               [--name]
                               [--resource-group]
                               [--slot]
                               [--subscription]

範例

將 SSL 憑證系結至函式應用程式。 (自動產生)

az functionapp config ssl bind --certificate-thumbprint {certificate-thumbprint} --name MyFunctionApp --resource-group MyResourceGroup --ssl-type SNI

必要參數

--certificate-thumbprint

ssl 憑證指紋。

--ssl-type

ssl 憑證類型。

接受的值: IP, SNI

選擇性參數

--hostname

自訂功能變數名稱。 如果空白,系統會自動選取主機名稱。

--ids

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

--name -n

函式應用程式的名稱。

--resource-group -g

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

--slot -s

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

--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 config ssl create

預覽

此命令處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

在函式應用程式中建立主機名稱的受控憑證。

az functionapp config ssl create --hostname
                                 --name
                                 --resource-group
                                 [--certificate-name]
                                 [--slot]

範例

建立適用于 cname.mycustomdomain.com 的受控憑證。

az functionapp config ssl create --resource-group MyResourceGroup --name MyWebapp --hostname cname.mycustomdomain.com

必要參數

--hostname

自訂功能變數名稱。

--name -n

Web 應用程式的名稱。

--resource-group -g

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

選擇性參數

--certificate-name

憑證的名稱。

--slot -s

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

全域參數
--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 config ssl delete

從函式應用程式刪除 SSL 憑證。

az functionapp config ssl delete --certificate-thumbprint
                                 --resource-group

必要參數

--certificate-thumbprint

ssl 憑證指紋。

--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 functionapp config ssl import

從金鑰保存庫將 SSL 憑證匯入函式應用程式。

az functionapp config ssl import --key-vault
                                 --key-vault-certificate-name
                                 [--certificate-name]
                                 [--ids]
                                 [--name]
                                 [--resource-group]
                                 [--subscription]

範例

從金鑰保存庫將 SSL 憑證匯入函式應用程式。

az functionapp config ssl import --resource-group MyResourceGroup --name MyFunctionApp --key-vault MyKeyVault --key-vault-certificate-name MyCertificateName

使用資源識別碼從金鑰保存庫將 SSL 憑證匯入函式應用程式(通常是金鑰保存庫在另一個訂用帳戶中)。

az functionapp config ssl import --resource-group MyResourceGroup --name MyFunctionApp --key-vault '/subscriptions/[sub id]/resourceGroups/[rg]/providers/Microsoft.KeyVault/vaults/[vault name]' --key-vault-certificate-name MyCertificateName

必要參數

--key-vault

金鑰保存庫的名稱或資源識別碼。

--key-vault-certificate-name

金鑰保存庫中的憑證名稱。

選擇性參數

--certificate-name

憑證的名稱。

--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 config ssl list

列出函式應用程式的 SSL 憑證。

az functionapp config ssl list --resource-group

範例

列出函式應用程式的 SSL 憑證。 (自動產生)

az functionapp config ssl list --resource-group MyResourceGroup

必要參數

--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 functionapp config ssl show

顯示函式應用程式的 SSL 憑證詳細資料。

az functionapp config ssl show --certificate-name
                               --resource-group

範例

顯示函式應用程式的 SSL 憑證詳細資料。 (自動產生)

az functionapp config ssl show --resource-group MyResourceGroup --certificate-name cname.mycustomdomain.com

必要參數

--certificate-name

憑證的名稱。

--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 functionapp config ssl unbind

從函式應用程式解除系結 SSL 憑證。

az functionapp config ssl unbind --certificate-thumbprint
                                 [--hostname]
                                 [--ids]
                                 [--name]
                                 [--resource-group]
                                 [--slot]
                                 [--subscription]

必要參數

--certificate-thumbprint

ssl 憑證指紋。

選擇性參數

--hostname

自訂功能變數名稱。 如果空白,系統會自動選取主機名稱。

--ids

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

--name -n

函式應用程式的名稱。

--resource-group -g

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

--slot -s

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

--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 config ssl upload

將 SSL 憑證上傳至函式應用程式。

az functionapp config ssl upload --certificate-file
                                 --certificate-password
                                 [--certificate-name]
                                 [--ids]
                                 [--name]
                                 [--resource-group]
                                 [--slot]
                                 [--subscription]

範例

將 SSL 憑證上傳至函式應用程式。 (自動產生)

az functionapp config ssl upload --certificate-file {certificate-file} --certificate-password {certificate-password} --name MyFunctionApp     --resource-group MyResourceGroup

必要參數

--certificate-file

.pfx 檔案的 filepath。

--certificate-password

ssl 憑證密碼。

選擇性參數

--certificate-name

憑證的名稱。

--ids

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

--name -n

函式應用程式的名稱。

--resource-group -g

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

--slot -s

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

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