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

az appconfig identity

应用配置存储的托管标识。

命令

名称 说明 类型 Status
az appconfig identity assign

更新应用配置存储的托管标识。

Core GA
az appconfig identity remove

删除应用配置存储的托管标识。

Core GA
az appconfig identity show

显示应用配置存储的托管标识。

Core 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

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

输出格式。

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

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

--verbose

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

属性
默认值: False

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

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

输出格式。

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

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

--verbose

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

属性
默认值: False

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

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

输出格式。

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

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

--verbose

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

属性
默认值: False