az spring-cloud app identity

참고

이 참조는 Azure CLI 대한 spring-cloud 확장의 일부이며 버전 2.0.67 이상이 필요합니다. az spring-cloud app identity 명령을 처음 실행할 때 확장이 자동으로 설치됩니다. 확장에 대해 자세히 알아보세요.

앱의 관리 서비스 ID를 관리합니다.

명령

az spring-cloud app identity assign

앱에서 관리 서비스 ID를 사용하도록 설정합니다.

az spring-cloud app identity remove

앱에서 관리 서비스 ID를 제거합니다.

az spring-cloud app identity show

앱의 관리 ID 정보를 표시합니다.

az spring-cloud app identity assign

앱에서 관리 서비스 ID를 사용하도록 설정합니다.

az spring-cloud app identity assign --name
                                    --resource-group
                                    --service
                                    [--role]
                                    [--scope]

예제

시스템 할당 ID를 사용하도록 설정합니다.

az spring-cloud app identity assign -n MyApp -s MyCluster -g MyResourceGroup

'Reader' 역할이 있는 앱에서 시스템 할당 ID를 사용하도록 설정합니다.

az spring-cloud app identity assign -n MyApp -s MyCluster -g MyResourceGroup --role Reader --scope /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/xxxxx/providers/Microsoft.KeyVault/vaults/xxxxx

필수 매개 변수

--name -n

앱의 이름입니다.

--resource-group -g

리소스 그룹의 이름입니다. az configure --defaults group=<name>을 사용하여 기본 그룹을 구성할 수 있습니다.

--service -s

Azure Spring Cloud 이름으로 az configure --defaults spring-cloud= 를 사용하여 기본 서비스를 구성할 수 있습니다.

선택적 매개 변수

--role

관리 ID가 할당될 역할 이름 또는 ID입니다.

--scope

관리 ID가 액세스할 수 있는 범위입니다.

az spring-cloud app identity remove

앱에서 관리 서비스 ID를 제거합니다.

az spring-cloud app identity remove --name
                                    --resource-group
                                    --service

예제

앱에서 시스템 할당 ID를 제거합니다.

az spring-cloud app identity remove -n MyApp -s MyCluster -g MyResourceGroup

필수 매개 변수

--name -n

앱의 이름입니다.

--resource-group -g

리소스 그룹의 이름입니다. az configure --defaults group=<name>을 사용하여 기본 그룹을 구성할 수 있습니다.

--service -s

Azure Spring Cloud 이름으로 az configure --defaults spring-cloud= 를 사용하여 기본 서비스를 구성할 수 있습니다.

az spring-cloud app identity show

앱의 관리 ID 정보를 표시합니다.

az spring-cloud app identity show --name
                                  --resource-group
                                  --service

예제

앱의 관리 ID 정보를 표시합니다.

az spring-cloud app identity show -n MyApp -s MyCluster -g MyResourceGroup

필수 매개 변수

--name -n

앱의 이름입니다.

--resource-group -g

리소스 그룹의 이름입니다. az configure --defaults group=<name>을 사용하여 기본 그룹을 구성할 수 있습니다.

--service -s

Azure Spring Cloud 이름으로 az configure --defaults spring-cloud= 를 사용하여 기본 서비스를 구성할 수 있습니다.