New-AzContainerRegistryIPRuleObject
Create an in-memory object for IPRule.
Syntax
Default (Default)
New-AzContainerRegistryIPRuleObject
-IPAddressOrRange <String>
[-Action <String>]
[<CommonParameters>]
Description
Create an in-memory object for IPRule.
Examples
Example 1: Create a IP network rule.
New-AzContainerRegistryIPRuleObject -IPAddressOrRange 0.0.0.0 -Action 'Allow'
Action IPAddressOrRange
------ ----------------
Allow 0.0.0.0
Create a IP network rule.
Parameters
-Action
The action of IP ACL rule.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-IPAddressOrRange
Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.