Remove-AzGalleryInVMAccessControlProfileVersionRulesIdentity
PSGalleryInVmAccessControlProfileVersion 개체에서 규칙 ID를 제거합니다.
구문
Default (기본값)
Remove-AzGalleryInVMAccessControlProfileVersionRulesIdentity
-GalleryInVmAccessControlProfileVersion <PSGalleryInVMAccessControlProfileVersion>
-IdentityName <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Remove-AzGalleryInVMAccessControlProfileVersionRulesIdentity cmdlet은 지정된 ID 이름에 따라 제공된 PSGalleryInVmAccessControlProfileVersion 개체에서 규칙 ID를 제거합니다.
예제
예제 1
$inVMAccessControlProfileVersion = New-AzGalleryInVMAccessControlProfileVersionConfig -Name "myProfileVersion" -Location "West US 2" -Mode "Audit" -DefaultAccess "Deny" -TargetLocation @("West US 2")
Add-AzGalleryInVMAccessControlProfileVersionRulesIdentity -GalleryInVmAccessControlProfileVersion $inVMAccessControlProfileVersion -IdentityName "WinPA" -UserName "SYSTEM" -GroupName "Administrators" -ExePath "C:\Windows\System32\cscript.exe" -ProcessName "cscript"
Add-AzGalleryInVMAccessControlProfileVersionRulesIdentity -GalleryInVmAccessControlProfileVersion $inVMAccessControlProfileVersion -IdentityName "WinPA2" -UserName "SYSTEM" -GroupName "Administrators" -ExePath "C:\Windows\System32\cscript.exe" -ProcessName "cscript"
Remove-AzGalleryInVMAccessControlProfileVersionRulesIdentity -GalleryInVmAccessControlProfileVersion $inVMAccessControlProfileVersion -IdentityName "WinPA2"
로컬 PSGalleryInVMAccessControlProfileVersion 개체를 만들고 두 개의 규칙 ID를 추가한 다음 이름이 "WinPA2"인 ID를 제거합니다.
매개 변수
-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 |
-IdentityName
ID의 이름입니다.
매개 변수 속성
형식: | 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를 참조하세요.