Share via


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