你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzMobileNetworkServiceDataFlowTemplateObject
为 ServiceDataFlowTemplate 创建内存中对象。
语法
New-AzMobileNetworkServiceDataFlowTemplateObject
-Direction <SdfDirection>
-Protocol <String[]>
-RemoteIPList <String[]>
-TemplateName <String>
[-Port <String[]>]
[<CommonParameters>]
说明
为 ServiceDataFlowTemplate 创建内存中对象。
示例
示例 1:为 ServiceDataFlowTemplate 创建内存中对象。
New-AzMobileNetworkServiceDataFlowTemplateObject -Direction "Bidirectional" -Protocol "255" -RemoteIPList "any" -TemplateName azps-mn-flow-template
Direction Port Protocol RemoteIPList TemplateName
--------- ---- -------- ------------ ------------
Bidirectional {255} {any} azps-mn-flow-template
为 ServiceDataFlowTemplate 创建内存中对象。
参数
-Direction
此流的方向。
类型: | SdfDirection |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-Port
要连接到此流的 UE 的端口。 可以指定零个或多个端口或端口范围。 如果指定一个或多个端口或端口范围,则必须在协议字段中指定 IP 以外的值。 这是一个可选设置。 如果未指定连接,则会在所有端口上允许连接。 端口范围必须指定为 <FirstPort>-<LastPort>。 例如:[8080,8082-8085]。
类型: | String[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Protocol
此流的允许协议列表。 如果希望此流能够使用 Internet 协议套件中的任何协议,请使用值 ip。 如果只想允许选择协议,则必须为每个协议使用相应的 IANA 分配的 Internet 协议编号,如 https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml中所述。 例如,对于 UDP,必须使用 17。 如果使用值 IP,则必须将字段端口保留为未指定。
类型: | String[] |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-RemoteIPList
要连接到此流的远程 IP 地址(es)。 如果要允许任何 IP 地址上的连接,请使用值“any”。 否则,必须提供数据包核心实例将连接到此流的每个远程 IP 地址。 必须提供 CIDR 表示法中的每个 IP 地址,包括 netmask(例如 192.0.2.54/24)。
类型: | String[] |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-TemplateName
数据流模板的名称。 这在父数据流策略规则中必须是唯一的。 不得使用以下任何保留字符串 -“default”、“requested”或“service”。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |