共用方式為


az appconfig identity

應用程式組態存放區的受控識別。

命令

名稱 Description 類型 狀態
az appconfig identity assign

更新應用程式組態存放區的受控識別。

核心 GA
az appconfig identity remove

拿掉應用程式組態存放區的受控識別。

核心 GA
az appconfig identity show

顯示應用程式組態存放區的受控識別。

核心 GA

az appconfig identity assign

更新應用程式組態存放區的受控識別。

az appconfig identity assign --name
                             [--identities]
                             [--resource-group]

範例

為現有的應用程式組態存放區啟用系統指派的身分識別

az appconfig identity assign -g MyResourceGroup -n MyAppConfiguration

為現有的應用程式組態存放區指派使用者指派的受控識別

az appconfig identity assign -g MyResourceGroup -n MyAppConfiguration --identities "/subscriptions/<SUBSCRIPTON ID>/resourcegroups/<RESOURCEGROUP>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myUserAssignedIdentity"

為現有的應用程式組態存放區指派系統指派和使用者指派的身分識別

az appconfig identity assign -g MyResourceGroup -n MyAppConfiguration --identities [system] "/subscriptions/<SUBSCRIPTON ID>/resourcegroups/<RESOURCEGROUP>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myUserAssignedIdentity"

必要參數

--name -n

應用程式組態存放區的名稱。 您可以使用 az configure --defaults app_configuration_store=<name>來設定預設名稱。

選擇性參數

--identities

接受系統指派或使用者指派的受控識別,並以空格分隔。 使用 '[system]' 來參考系統指派的受控識別或資源標識符,以參考使用者指派的受控識別。 如果未提供此自變數,或未提供任何值,則預設會使用系統指派的受控識別。

--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 appconfig identity remove

拿掉應用程式組態存放區的受控識別。

az appconfig identity remove --name
                             [--identities]
                             [--resource-group]

範例

從應用程式組態存放區移除系統指派的身分識別。

az appconfig identity remove -g MyResourceGroup -n MyAppConfiguration

從應用程式組態存放區移除使用者指派的身分識別。

az appconfig identity remove -g MyResourceGroup -n MyAppConfiguration --identities "/subscriptions/<SUBSCRIPTON ID>/resourcegroups/<RESOURCEGROUP>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myUserAssignedIdentity"

從應用程式組態存放區移除所有身分識別。

az appconfig identity remove -g MyResourceGroup -n MyAppConfiguration --identities [all]

必要參數

--name -n

應用程式組態存放區的名稱。 您可以使用 az configure --defaults app_configuration_store=<name>來設定預設名稱。

選擇性參數

--identities

接受系統指派或使用者指派的受控識別,並以空格分隔。 使用 '[system]' 參照所有受控識別的系統指派受控識別 '[all]' 或資源標識符來參考使用者指派的受控識別。 如果未提供此自變數,或未提供任何值,系統指派的受控識別預設將會移除。

--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 appconfig identity show

顯示應用程式組態存放區的受控識別。

az appconfig identity show --name
                           [--resource-group]

範例

顯示工作的受控識別。

az appconfig identity show -g MyResourceGroup -n MyAppConfiguration

必要參數

--name -n

應用程式組態存放區的名稱。 您可以使用 az configure --defaults app_configuration_store=<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。