Remove-AzGalleryInVMAccessControlProfileVersionRulesRoleAssignment

PSGalleryInVmAccessControlProfileVersion nesnesinden Kural Rolü Atamasını kaldırır.

Syntax

Default (Varsayılan)

Remove-AzGalleryInVMAccessControlProfileVersionRulesRoleAssignment

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

Description

Remove-AzGalleryInVMAccessControlProfileVersionRulesRoleAssignment cmdlet'i, rol temelinde sağlanan PSGalleryInVmAccessControlProfileVersion nesnesinden Bir Kural Rolü Ataması kaldırır.

Örnekler

Örnek 1

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

Add-AzGalleryInVMAccessControlProfileVersionRulesRoleAssignment -GalleryInVmAccessControlProfileVersion $inVMAccessControlProfileVersion -Role "Provisioning" -Identity @("WinPA")
Add-AzGalleryInVMAccessControlProfileVersionRulesRoleAssignment -GalleryInVmAccessControlProfileVersion $inVMAccessControlProfileVersion -Role "Provisioning2" -Identity @("WinPA")

Remove-AzGalleryInVMAccessControlProfileVersionRulesRoleAssignment -GalleryInVmAccessControlProfileVersion $inVMAccessControlProfileVersion -Role "Provisioning2"

Yerel bir PSGalleryInVMAccessControlProfileVersion nesnesi oluşturur, iki kural rolü ataması ekleyin ve ardından rol atamasını "Provisioning2" rol adıyla kaldırın.

Parametreler

-DefaultProfile

Azure ile iletişim için kullanılan kimlik bilgileri, hesap, kiracı ve abonelik.

Parametre özellikleri

Tür:IAzureContextContainer
Default value:None
Joker karakterleri destekler:False
DontShow:False
Diğer adlar:AzContext, AzureRmContext, AzureCredential

Parametre kümeleri

(All)
Position:Named
Zorunlu:False
İşlem hattından gelen değer:False
Özellik adına göre işlem hattından gelen değer:False
Kalan bağımsız değişkenlerden elde edilen değer:False

-GalleryInVmAccessControlProfileVersion

New-AzGalleryInVMAccessControlProfileVersionConfig öğesinden oluşturulan PSGalleryInVmAccessControlProfileVersion nesnesi.

Parametre özellikleri

Tür:PSGalleryInVMAccessControlProfileVersion
Default value:None
Joker karakterleri destekler:False
DontShow:False

Parametre kümeleri

(All)
Position:Named
Zorunlu:True
İşlem hattından gelen değer:True
Özellik adına göre işlem hattından gelen değer:False
Kalan bağımsız değişkenlerden elde edilen değer:False

-Role

Rolün adı.

Parametre özellikleri

Tür:String
Default value:None
Joker karakterleri destekler:False
DontShow:False

Parametre kümeleri

(All)
Position:Named
Zorunlu:True
İşlem hattından gelen değer:False
Özellik adına göre işlem hattından gelen değer:True
Kalan bağımsız değişkenlerden elde edilen değer:False

CommonParameters

Bu cmdlet yaygın parametreleri destekler: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction ve -WarningVariable. Daha fazla bilgi için bkz. about_CommonParameters.

Girişler

PSGalleryInVMAccessControlProfileVersion

String

Çıkışlar

PSGalleryInVMAccessControlProfileVersion