Udostępnij przez


Remove-AzGalleryInVMAccessControlProfileVersionRulesPrivilege

Usuwa uprawnienie reguł z obiektu PSGalleryInVmAccessControlProfileVersion.

Składnia

Default (Domyślne)

Remove-AzGalleryInVMAccessControlProfileVersionRulesPrivilege

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

Opis

Polecenie cmdlet Remove-AzGalleryInVMAccessControlProfileVersionRulesPrivilege usuwa uprawnienie reguł z podanego obiektu PSGalleryInVmAccessControlProfileVersion na podstawie nazwy uprawnień.

Przykłady

Przykład 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"

Tworzy lokalny obiekt PSGalleryInVMAccessControlProfileVersion, dodaj dwa uprawnienia reguły, a następnie usuń uprawnienie o nazwie "GoalState2".

Parametry

-DefaultProfile

Poświadczenia, konto, dzierżawa i subskrypcja używane do komunikacji z platformą Azure.

Właściwości parametrów

Typ:IAzureContextContainer
Wartość domyślna:None
Wspiera dzikie karty:False
DontShow:False
Aliasy:AzContext, AzureRmContext, AzureCredential

Zbiory parametrów

(All)
Pozycja:Named
Obowiązkowy:False
Wartość z pipeline:False
Wartość z pipeline według nazwy właściwości:False
Wartość pozostałych argumentów:False

-GalleryInVmAccessControlProfileVersion

PSGalleryInVmAccessControlProfileVersion obiekt utworzony na podstawie polecenia New-AzGalleryInVMAccessControlProfileVersionConfig.

Właściwości parametrów

Typ:PSGalleryInVMAccessControlProfileVersion
Wartość domyślna:None
Wspiera dzikie karty:False
DontShow:False

Zbiory parametrów

(All)
Pozycja:Named
Obowiązkowy:True
Wartość z pipeline:True
Wartość z pipeline według nazwy właściwości:False
Wartość pozostałych argumentów:False

-PrivilegeName

Nazwa uprawnień.

Właściwości parametrów

Typ:String
Wartość domyślna:None
Wspiera dzikie karty:False
DontShow:False
Aliasy:Name

Zbiory parametrów

(All)
Pozycja:Named
Obowiązkowy:True
Wartość z pipeline:False
Wartość z pipeline według nazwy właściwości:True
Wartość pozostałych argumentów:False

CommonParameters

To polecenie cmdlet obsługuje typowe parametry: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction i -WarningVariable. Aby uzyskać więcej informacji, zobacz about_CommonParameters.

Wejścia

PSGalleryInVMAccessControlProfileVersion

String

Wyjść

PSGalleryInVMAccessControlProfileVersion