첫 번째 명령은 Get-AzResourceGroup cmdlet을 사용하여 ResourceGroup11이라는 리소스 그룹을 가져옵니다.
명령은 해당 개체를 $ResourceGroup 변수에 저장합니다.
두 번째 명령은 리소스 그룹 수준에서 할당된 PolicyAssignment07이라는 정책 할당을 제거합니다.
$ResourceGroup ResourceId 속성은 리소스 그룹을 식별합니다.
첫 번째 명령은 ResourceGroup11이라는 리소스 그룹을 가져오고 해당 개체를 $ResourceGroup 변수에 저장합니다.
두 번째 명령은 리소스 그룹 수준에서 정책 할당을 가져오고 $PolicyAssignment 변수에 저장합니다.
$ResourceGroup ResourceId 속성은 리소스 그룹을 식별합니다.
마지막 명령은 $PolicyAssignment ResourceId 속성이 식별하는 정책 할당을 제거합니다.
첫 번째 명령은 ResourceGroup11이라는 리소스 그룹을 가져오고 해당 개체를 $ResourceGroup 변수에 저장합니다.
두 번째 명령은 리소스 그룹 수준에서 정책 할당을 가져오고 $PolicyAssignment 변수에 저장합니다.
$ResourceGroup ResourceId 속성은 리소스 그룹을 식별합니다.
마지막 명령은 $PolicyAssignment ResourceId 속성이 식별하는 정책 할당을 제거합니다.
매개 변수
-BackwardCompatible
cmdlet이 속성 모음 개체에 정책별 속성을 배치하는 레거시 형식을 사용하여 아티팩트를 반환하도록 합니다.
정책 할당의 범위입니다.
유효한 범위는 관리 그룹(형식: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), 구독(형식: '/subscriptions/{subscriptionId}'), 리소스 그룹(형식: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', 또는 리소스(형식: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'
이 cmdlet은 일반적인 매개 변수인 -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction 및 -WarningVariable 매개 변수를 지원합니다. 자세한 내용은 about_CommonParameters를 참조하세요.