你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzContainerRegistryIPRuleObject
为 IPRule 创建内存中对象。
语法
New-AzContainerRegistryIPRuleObject
-IPAddressOrRange <String>
[-Action <Action>]
[<CommonParameters>]
说明
为 IPRule 创建内存中对象。
示例
示例 1:创建 IP 网络规则。
New-AzContainerRegistryIPRuleObject -IPAddressOrRange 0.0.0.0 -Action 'Allow'
Action IPAddressOrRange
------ ----------------
Allow 0.0.0.0
创建 IP 网络规则。
参数
-Action
IP ACL 规则的作。
类型: | Action |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-IPAddressOrRange
以 CIDR 格式指定 IP 或 IP 范围。 仅允许 IPV4 地址。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |