az maintenance assignment

참고

이 참조는 Azure CLI 대한 유지 관리 확장의 일부이며 버전 2.15.0 이상에 필요합니다. az maintenance assignment 명령을 처음 실행할 때 확장이 자동으로 설치됩니다. 확장에 대해 자세히 알아보세요.

유지 관리를 통해 구성 할당을 관리합니다.

명령

az maintenance assignment create

리소스에 대한 구성을 등록합니다. 리소스에 대한 구성을 등록합니다.

az maintenance assignment delete

리소스에 대한 구성을 등록 취소합니다. 그리고 리소스에 대한 구성을 등록 취소합니다.

az maintenance assignment list

리소스에 대한 구성할당을 나열합니다.

az maintenance assignment list-parent

리소스에 대한 구성할당을 나열합니다.

az maintenance assignment update

리소스에 대한 구성을 등록합니다.

az maintenance assignment create

리소스에 대한 구성을 등록합니다. 리소스에 대한 구성을 등록합니다.

az maintenance assignment create --configuration-assignment-name
                                 --provider-name
                                 --resource-group
                                 --resource-name
                                 --resource-type
                                 [--config-id]
                                 [--location]
                                 [--resource-id]
                                 [--resource-parent-name]
                                 [--resource-parent-type]

예제

ConfigurationAssignments_CreateOrUpdateParent

az maintenance assignment create --maintenance-configuration-id "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/policy1" --name "workervmPolicy" --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "smdvm1" --resource-parent-name "smdtest1" --resource-parent-type "virtualMachineScaleSets" --resource-type "virtualMachines"

ConfigurationAssignments_CreateOrUpdate

az maintenance assignment create --maintenance-configuration-id "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1" --name "workervmConfiguration" --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "smdtest1" --resource-type "virtualMachineScaleSets"

필수 매개 변수

--configuration-assignment-name --name -n

구성 할당 이름입니다.

--provider-name

리소스 공급자 이름입니다.

--resource-group -g

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

--resource-name

리소스 식별자.

--resource-type

리소스 종류.

선택적 매개 변수

--config-id --maintenance-configuration-id

유지 관리 구성 ID입니다.

--location -l

위치입니다. 값 출처: az account list-locations. az configure --defaults location=<location>을 사용하여 기본 위치를 구성할 수 있습니다.

--resource-id

고유한 resourceId입니다.

--resource-parent-name

리소스 부모 식별자입니다.

--resource-parent-type

리소스 부모 유형입니다.

az maintenance assignment delete

리소스에 대한 구성을 등록 취소합니다. 그리고 리소스에 대한 구성을 등록 취소합니다.

az maintenance assignment delete --configuration-assignment-name
                                 --provider-name
                                 --resource-group
                                 --resource-name
                                 --resource-type
                                 [--resource-parent-name]
                                 [--resource-parent-type]
                                 [--yes]

예제

ConfigurationAssignments_DeleteParent

az maintenance assignment delete --name "workervmConfiguration" --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "smdvm1" --resource-parent-name "smdtest1" --resource-parent-type "virtualMachineScaleSets" --resource-type "virtualMachines"

ConfigurationAssignments_Delete

az maintenance assignment delete --name "workervmConfiguration" --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "smdtest1" --resource-type "virtualMachineScaleSets"

필수 매개 변수

--configuration-assignment-name --name -n

고유한 구성 할당 이름입니다.

--provider-name

리소스 공급자 이름입니다.

--resource-group -g

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

--resource-name

리소스 식별자.

--resource-type

리소스 종류.

선택적 매개 변수

--resource-parent-name

리소스 부모 식별자입니다.

--resource-parent-type

리소스 부모 유형입니다.

--yes -y

확인을 묻는 메시지를 표시하지 마세요.

az maintenance assignment list

리소스에 대한 구성할당을 나열합니다.

az maintenance assignment list --provider-name
                               --resource-group
                               --resource-name
                               --resource-type

예제

ConfigurationAssignments_List

az maintenance assignment list --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "smdtest1" --resource-type "virtualMachineScaleSets"

필수 매개 변수

--provider-name

리소스 공급자 이름입니다.

--resource-group -g

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

--resource-name

리소스 식별자.

--resource-type

리소스 종류.

az maintenance assignment list-parent

리소스에 대한 구성할당을 나열합니다.

az maintenance assignment list-parent --provider-name
                                      --resource-group
                                      --resource-name
                                      --resource-parent-name
                                      --resource-parent-type
                                      --resource-type

예제

ConfigurationAssignments_ListParent

az maintenance assignment list-parent --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "smdtestvm1" --resource-parent-name "smdtest1" --resource-parent-type "virtualMachineScaleSets" --resource-type "virtualMachines"

필수 매개 변수

--provider-name

리소스 공급자 이름입니다.

--resource-group -g

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

--resource-name

리소스 식별자.

--resource-parent-name

리소스 부모 식별자입니다.

--resource-parent-type

리소스 부모 유형입니다.

--resource-type

리소스 종류.

az maintenance assignment update

리소스에 대한 구성을 등록합니다.

az maintenance assignment update --configuration-assignment-name
                                 --provider-name
                                 --resource-group
                                 --resource-name
                                 --resource-type
                                 [--config-id]
                                 [--location]
                                 [--resource-id]

필수 매개 변수

--configuration-assignment-name --name -n

구성 할당 이름입니다.

--provider-name

리소스 공급자 이름입니다.

--resource-group -g

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

--resource-name

리소스 식별자.

--resource-type

리소스 종류.

선택적 매개 변수

--config-id --maintenance-configuration-id

유지 관리 구성 ID입니다.

--location -l

위치입니다. 값 출처: az account list-locations. az configure --defaults location=<location>을 사용하여 기본 위치를 구성할 수 있습니다.

--resource-id

고유한 resourceId입니다.