az webapp auth github
Note
This reference is part of the authV2 extension for the Azure CLI (version 2.23.0 or higher). 當您第一次執行 az webapp auth github 命令時,擴充功能會自動安裝。 Learn more about extensions.
管理 GitHub 識別提供者的 Webapp 驗證和授權。
命令
名稱 | Description | 類型 | 狀態 |
---|---|---|---|
az webapp auth github show |
顯示 GitHub 識別提供者的驗證設定。 |
Extension | GA |
az webapp auth github update |
更新 GitHub 識別提供者的用戶端識別碼和客戶端密碼。 |
Extension | GA |
az webapp auth github show
顯示 GitHub 識別提供者的驗證設定。
az webapp auth github show [--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
範例
顯示 GitHub 識別提供者的驗證設定。 (autogenerated)
az webapp auth github show --name MyWebApp --resource-group MyResourceGroup
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Web 應用程式的名稱。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
位置的名稱。 如果未指定,則預設為生產位置。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
屬性 | 值 |
---|---|
預設值: | False |
az webapp auth github update
更新 GitHub 識別提供者的用戶端識別碼和客戶端密碼。
az webapp auth github update [--client-id]
[--client-secret]
[--client-secret-setting-name --secret-setting]
[--ids]
[--name]
[--resource-group]
[--scopes]
[--slot]
[--subscription]
[--yes]
範例
更新 GitHub 識別提供者的用戶端識別碼和客戶端密碼。
az webapp auth github update -g myResourceGroup --name MyWebApp \
--client-id my-client-id --client-secret very_secret_password
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
用於登入之應用程式的用戶端識別碼。
客戶端密碼。
包含客戶端密碼的應用程式設定名稱。
一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Web 應用程式的名稱。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
驗證時應要求的範圍清單。
位置的名稱。 如果未指定,則預設為生產位置。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
請勿提示確認。
屬性 | 值 |
---|---|
預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
屬性 | 值 |
---|---|
預設值: | False |