Freigeben über


New-AzContainerRegistryIPRuleObject

Erstellen Sie ein In-Memory-Objekt für IPRule.

Syntax

New-AzContainerRegistryIPRuleObject
   -IPAddressOrRange <String>
   [-Action <Action>]
   [<CommonParameters>]

Beschreibung

Erstellen Sie ein In-Memory-Objekt für IPRule.

Beispiele

Beispiel 1: Erstellen einer IP-Netzwerkregel.

New-AzContainerRegistryIPRuleObject -IPAddressOrRange 0.0.0.0 -Action 'Allow'

Action IPAddressOrRange
------ ----------------
Allow  0.0.0.0

Erstellen Sie eine IP-Netzwerkregel.

Parameter

-Action

Die Aktion der IP-ACL-Regel.

Typ:Action
Position:Named
Standardwert:None
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

-IPAddressOrRange

Gibt den IP- oder IP-Bereich im CIDR-Format an. Nur IPV4-Adresse ist zulässig.

Typ:String
Position:Named
Standardwert:None
Erforderlich:True
Accept pipeline input:False
Accept wildcard characters:False

Ausgaben

IPRule