你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzContainerAppIPSecurityRestrictionRuleObject
为 IPSecurityRestrictionRule 创建内存中对象。
语法
New-AzContainerAppIPSecurityRestrictionRuleObject
-Action <String>
-IPAddressRange <String>
-Name <String>
[-Description <String>]
[<CommonParameters>]
说明
为 IPSecurityRestrictionRule 创建内存中对象。
示例
示例 1:为 IPSecurityRestrictionRule 创建内存中对象。
New-AzContainerAppIPSecurityRestrictionRuleObject -Action "Allow" -IPAddressRange "192.168.1.1/32" -Name "Allow work IP A subnet"
Action Description IPAddressRange Name
------ ----------- -------------- ----
Allow 192.168.1.1/32 Allow work IP A subnet
为 IPSecurityRestrictionRule 创建内存中对象。
参数
-Action
允许或拒绝规则确定传入 IP。 注意:规则只能包含 ALL 允许或全部拒绝。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-Description
描述要发送到容器应用的 IP 限制规则。 这是一个可选字段。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-IPAddressRange
CIDR 表示法与传入 IP 地址匹配。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-Name
IP 限制规则的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |