你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

az appconfig identity

应用程序配置的托管标识。

命令

名称 说明 类型 状态
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]”来引用系统分配的托管标识或资源 ID 来引用用户分配的托管标识。 如果未提供此参数,或者如果未提供任何值,则默认使用系统分配的托管标识。

--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

订阅的名称或 ID。 可以使用 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]”或资源 ID 来引用用户分配的托管标识。 如果未提供此参数或此参数未提供任何值,则默认情况下将删除系统分配的托管标识。

--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

订阅的名称或 ID。 可以使用 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

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。