다음을 통해 공유


az policy assignment non-compliance-message

정책 할당의 비준수 메시지를 관리합니다.

명령

Name Description 형식 상태
az policy assignment non-compliance-message create

정책 할당에 비준수 메시지를 추가합니다.

Core Deprecated
az policy assignment non-compliance-message delete

정책 할당에서 하나 이상의 비준수 메시지를 제거합니다.

Core Deprecated
az policy assignment non-compliance-message list

정책 할당에 대한 비준수 메시지를 나열합니다.

Core GA

az policy assignment non-compliance-message create

사용되지 않음

반환 값은 리소스 명령의 향후 릴리스에서 변경됩니다. 메시지 개체의 전체 배열이 아닌 단일 만든 메시지 개체가 됩니다.

정책 할당에 비준수 메시지를 추가합니다.

az policy assignment non-compliance-message create --message
                                                   --name
                                                   [--policy-definition-reference-id]
                                                   [--resource-group]
                                                   [--scope]

예제

정책 할당에 비준수 메시지를 추가합니다.

az policy assignment non-compliance-message create -g MyResourceGroup -n MyPolicyAssignment -m 'Resources must follow naming standards'

할당된 정책 집합 정의에서 특정 정책에 대한 비준수 메시지를 추가합니다.

az policy assignment non-compliance-message create -g MyResourceGroup -n MyPolicySetAssignment -m 'Resources must use allowed SKUs' --policy-definition-reference-id SkuPolicyRefId

필수 매개 변수

--message -m

정책 또는 평가 세부 정보에 의해 리소스가 거부될 때 표시되는 메시지입니다.

--name -n

정책 할당의 이름입니다.

선택적 매개 변수

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--policy-definition-reference-id -r

메시지가 적용되는 할당된 이니셔티브(정책 집합) 내의 정책 정의 참조 ID입니다.

--resource-group -g

정책을 적용할 리소스 그룹입니다.

--scope

이 정책 할당 하위 명령이 적용되는 범위입니다. 기본값은 현재 컨텍스트 구독입니다.

전역 매개 변수
--debug

로깅 수위를 높여 모든 디버그 로그를 표시합니다.

속성
Default value: False
--help -h

이 도움말 메시지를 표시하고 종료합니다.

--only-show-errors

경고를 표시하지 않고 오류만 표시합니다.

속성
Default value: False
--output -o

Output format.

속성
Default value: json
허용되는 값: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 쿼리 문자열입니다. 자세한 내용 및 예제는 http://jmespath.org/ 참조하세요.

--subscription

구독의 이름 또는 ID입니다. az account set -s NAME_OR_ID사용하여 기본 구독을 구성할 수 있습니다.

--verbose

로깅의 자세한 정도를 증가시킵니다. 전체 디버그 로그에 --debug를 사용합니다.

속성
Default value: False

az policy assignment non-compliance-message delete

사용되지 않음

반환 값은 리소스 명령의 향후 릴리스에서 변경됩니다. 나머지 메시지 개체의 전체 배열이 아닌 비어 있습니다.

정책 할당에서 하나 이상의 비준수 메시지를 제거합니다.

az policy assignment non-compliance-message delete --message
                                                   --name
                                                   [--policy-definition-reference-id]
                                                   [--resource-group]
                                                   [--scope]

예제

특정 메시지를 포함하고 정책 정의 참조 ID가 없는 정책 할당에서 비준수 메시지를 제거합니다.

az policy assignment non-compliance-message delete -g MyResourceGroup -n MyPolicyAssignment -m 'Resources must follow naming standards'

특정 메시지 및 특정 정책 정의 참조 ID를 포함하는 정책 할당에서 비준수 메시지를 제거합니다.

az policy assignment non-compliance-message delete -g MyResourceGroup -n MyPolicySetAssignment -m 'Resources must use allowed SKUs' --policy-definition-reference-id SkuPolicyRefId

필수 매개 변수

--message -m

정책 또는 평가 세부 정보에 의해 리소스가 거부될 때 표시되는 메시지입니다.

--name -n

정책 할당의 이름입니다.

선택적 매개 변수

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--policy-definition-reference-id -r

메시지가 적용되는 할당된 이니셔티브(정책 집합) 내의 정책 정의 참조 ID입니다.

--resource-group -g

정책을 적용할 리소스 그룹입니다.

--scope

이 정책 할당 하위 명령이 적용되는 범위입니다. 기본값은 현재 컨텍스트 구독입니다.

전역 매개 변수
--debug

로깅 수위를 높여 모든 디버그 로그를 표시합니다.

속성
Default value: False
--help -h

이 도움말 메시지를 표시하고 종료합니다.

--only-show-errors

경고를 표시하지 않고 오류만 표시합니다.

속성
Default value: False
--output -o

Output format.

속성
Default value: json
허용되는 값: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 쿼리 문자열입니다. 자세한 내용 및 예제는 http://jmespath.org/ 참조하세요.

--subscription

구독의 이름 또는 ID입니다. az account set -s NAME_OR_ID사용하여 기본 구독을 구성할 수 있습니다.

--verbose

로깅의 자세한 정도를 증가시킵니다. 전체 디버그 로그에 --debug를 사용합니다.

속성
Default value: False

az policy assignment non-compliance-message list

정책 할당에 대한 비준수 메시지를 나열합니다.

az policy assignment non-compliance-message list --name
                                                 [--resource-group]
                                                 [--scope]

예제

정책 할당에 대한 비준수 메시지를 나열합니다.

az policy assignment non-compliance-message list -g MyResourceGroup -n MyPolicyAssignment

필수 매개 변수

--name -n

정책 할당의 이름입니다.

선택적 매개 변수

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--resource-group -g

정책을 적용할 리소스 그룹입니다.

--scope

이 정책 할당 하위 명령이 적용되는 범위입니다. 기본값은 현재 컨텍스트 구독입니다.

전역 매개 변수
--debug

로깅 수위를 높여 모든 디버그 로그를 표시합니다.

속성
Default value: False
--help -h

이 도움말 메시지를 표시하고 종료합니다.

--only-show-errors

경고를 표시하지 않고 오류만 표시합니다.

속성
Default value: False
--output -o

Output format.

속성
Default value: json
허용되는 값: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 쿼리 문자열입니다. 자세한 내용 및 예제는 http://jmespath.org/ 참조하세요.

--subscription

구독의 이름 또는 ID입니다. az account set -s NAME_OR_ID사용하여 기본 구독을 구성할 수 있습니다.

--verbose

로깅의 자세한 정도를 증가시킵니다. 전체 디버그 로그에 --debug를 사용합니다.

속성
Default value: False