다음을 통해 공유


Remove-AzGalleryInVMAccessControlProfileVersionRulesPrivilege

PSGalleryInVmAccessControlProfileVersion 개체에서 규칙 권한을 제거합니다.

구문

Default (기본값)

Remove-AzGalleryInVMAccessControlProfileVersionRulesPrivilege

    -GalleryInVmAccessControlProfileVersion <PSGalleryInVMAccessControlProfileVersion>
    -PrivilegeName <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

Remove-AzGalleryInVMAccessControlProfileVersionRulesPrivilege cmdlet은 권한 이름에 따라 제공된 PSGalleryInVmAccessControlProfileVersion 개체에서 규칙 권한을 제거합니다.

예제

예제 1

$inVMAccessControlProfileVersion  = New-AzGalleryInVMAccessControlProfileVersionConfig -Name "myProfileVersion" -Location "West US 2" -Mode "Audit" -DefaultAccess "Deny" -TargetLocation @("West US 2")

Add-AzGalleryInVMAccessControlProfileVersionRulesPrivilege -GalleryInVmAccessControlProfileVersion $inVMAccessControlProfileVersion -PrivilegeName "GoalState" -Path "/machine" -QueryParameter @{ comp = "goalstate" }
Add-AzGalleryInVMAccessControlProfileVersionRulesPrivilege -GalleryInVmAccessControlProfileVersion $inVMAccessControlProfileVersion -PrivilegeName "GoalState2" -Path "/machine" -QueryParameter @{ comp = "goalstate" }

Remove-AzGalleryInVMAccessControlProfileVersionRulesPrivilege -GalleryInVmAccessControlProfileVersion $inVMAccessControlProfileVersion -PrivilegeName "GoalState2"

로컬 PSGalleryInVMAccessControlProfileVersion 개체를 만들고 두 개의 규칙 권한을 추가한 다음 이름이 "GoalState2"인 권한을 제거합니다.

매개 변수

-DefaultProfile

Azure와의 통신에 사용되는 자격 증명, 계정, 테넌트 및 구독입니다.

매개 변수 속성

형식:IAzureContextContainer
Default value:None
와일드카드 지원:False
DontShow:False
별칭:AzContext, AzureRmContext, AzureCredential

매개 변수 집합

(All)
Position:Named
필수:False
파이프라인의 값:False
속성 이름별 파이프라인의 값:False
나머지 인수의 값:False

-GalleryInVmAccessControlProfileVersion

New-AzGalleryInVMAccessControlProfileVersionConfig에서 만든 PSGalleryInVmAccessControlProfileVersionConfig 개체입니다.

매개 변수 속성

형식:PSGalleryInVMAccessControlProfileVersion
Default value:None
와일드카드 지원:False
DontShow:False

매개 변수 집합

(All)
Position:Named
필수:True
파이프라인의 값:True
속성 이름별 파이프라인의 값:False
나머지 인수의 값:False

-PrivilegeName

권한의 이름입니다.

매개 변수 속성

형식:String
Default value:None
와일드카드 지원:False
DontShow:False
별칭:이름

매개 변수 집합

(All)
Position:Named
필수:True
파이프라인의 값:False
속성 이름별 파이프라인의 값:True
나머지 인수의 값:False

CommonParameters

이 cmdlet은 일반적인 매개 변수인 -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction 및 -WarningVariable 매개 변수를 지원합니다. 자세한 내용은 about_CommonParameters를 참조하세요.

입력

PSGalleryInVMAccessControlProfileVersion

String

출력

PSGalleryInVMAccessControlProfileVersion