az monitor data-collection rule association

참고

이 참조는 Azure CLI 대한 monitor-control-service 확장의 일부이며 버전 2.15.0 이상에 필요합니다. az monitor data-collection rule association 명령을 처음 실행할 때 확장이 자동으로 설치됩니다. 확장에 대해 자세히 알아보세요.

모니터 제어 서비스에 대한 데이터 수집 규칙 연결을 관리합니다.

명령

az monitor data-collection rule association create

연결을 만듭니다.

az monitor data-collection rule association delete

연결을 삭제합니다.

az monitor data-collection rule association list

지정된 데이터 수집 규칙에 대한 연결을 나열합니다. 및 지정된 된 리소스에 대 한 연결을 나열 합니다.

az monitor data-collection rule association show

지정된 연결을 반환합니다.

az monitor data-collection rule association update

연결을 업데이트합니다.

az monitor data-collection rule association create

연결을 만듭니다.

az monitor data-collection rule association create --name
                                                   --resource
                                                   [--description]
                                                   [--rule-id]

예제

연결 만들기

az monitor data-collection rule association create --name "myAssociation" --rule-id "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule" --resource "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm"

필수 매개 변수

--name -n

연결의 이름입니다.

--resource

리소스의 식별자입니다.

선택적 매개 변수

--description

연결에 대한 설명입니다.

--rule-id

연결될 데이터 컬렉션 규칙의 리소스 ID입니다.

az monitor data-collection rule association delete

연결을 삭제합니다.

az monitor data-collection rule association delete --name
                                                   --resource
                                                   [--yes]

예제

연결 삭제

az monitor data-collection rule association delete --name "myAssociation" --resource "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm"

필수 매개 변수

--name -n

연결의 이름입니다. 이름은 대소문자를 구분하지 않습니다.

--resource

리소스의 식별자입니다.

선택적 매개 변수

--yes -y

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

az monitor data-collection rule association list

지정된 데이터 수집 규칙에 대한 연결을 나열합니다. 및 지정된 된 리소스에 대 한 연결을 나열 합니다.

az monitor data-collection rule association list [--resource]
                                                 [--resource-group]
                                                 [--rule-name]

예제

지정된 데이터 수집 규칙에 대한 연결 나열

az monitor data-collection rule association list --rule-name "myCollectionRule" --resource-group "myResourceGroup"

지정된 리소스에 대한 연결 나열

az monitor data-collection rule association list --resource "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm"

선택적 매개 변수

--resource

리소스의 식별자입니다.

--resource-group -g

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

--rule-name

데이터 수집 규칙의 이름입니다. 이름은 대소문자를 구분하지 않습니다.

az monitor data-collection rule association show

지정된 연결을 반환합니다.

az monitor data-collection rule association show --name
                                                 --resource

예제

연결 얻기

az monitor data-collection rule association show --name "myAssociation" --resource "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm"

필수 매개 변수

--name -n

연결의 이름입니다. 이름은 대소문자를 구분하지 않습니다.

--resource

리소스의 식별자입니다.

az monitor data-collection rule association update

연결을 업데이트합니다.

az monitor data-collection rule association update --name
                                                   --resource
                                                   [--description]
                                                   [--rule-id]

예제

연결 업데이트

az monitor data-collection rule association update --name "myAssociation" --rule-id "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule" --resource "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm"

필수 매개 변수

--name -n

연결의 이름입니다.

--resource

리소스의 식별자입니다.

선택적 매개 변수

--description

연결에 대한 설명입니다.

--rule-id

연결될 데이터 컬렉션 규칙의 리소스 ID입니다.