ArmNetworkModelFactory.NetworkRule Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static Azure.ResourceManager.Network.Models.NetworkRule NetworkRule(string name = default, string description = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.FirewallPolicyRuleNetworkProtocol> ipProtocols = default, System.Collections.Generic.IEnumerable<string> sourceAddresses = default, System.Collections.Generic.IEnumerable<string> destinationAddresses = default, System.Collections.Generic.IEnumerable<string> destinationPorts = default, System.Collections.Generic.IEnumerable<string> sourceIpGroups = default, System.Collections.Generic.IEnumerable<string> destinationIpGroups = default, System.Collections.Generic.IEnumerable<string> destinationFqdns = default);
static member NetworkRule : string * string * seq<Azure.ResourceManager.Network.Models.FirewallPolicyRuleNetworkProtocol> * seq<string> * seq<string> * seq<string> * seq<string> * seq<string> * seq<string> -> Azure.ResourceManager.Network.Models.NetworkRule
Public Shared Function NetworkRule (Optional name As String = Nothing, Optional description As String = Nothing, Optional ipProtocols As IEnumerable(Of FirewallPolicyRuleNetworkProtocol) = Nothing, Optional sourceAddresses As IEnumerable(Of String) = Nothing, Optional destinationAddresses As IEnumerable(Of String) = Nothing, Optional destinationPorts As IEnumerable(Of String) = Nothing, Optional sourceIpGroups As IEnumerable(Of String) = Nothing, Optional destinationIpGroups As IEnumerable(Of String) = Nothing, Optional destinationFqdns As IEnumerable(Of String) = Nothing) As NetworkRule
Parameters
- name
- String
Name of the rule.
- description
- String
Description of the rule.
- ipProtocols
- IEnumerable<FirewallPolicyRuleNetworkProtocol>
Array of FirewallPolicyRuleNetworkProtocols.
- sourceAddresses
- IEnumerable<String>
List of source IP addresses for this rule.
- destinationAddresses
- IEnumerable<String>
List of destination IP addresses or Service Tags.
- destinationPorts
- IEnumerable<String>
List of destination ports.
- sourceIpGroups
- IEnumerable<String>
List of source IpGroups for this rule.
- destinationIpGroups
- IEnumerable<String>
List of destination IpGroups for this rule.
- destinationFqdns
- IEnumerable<String>
List of destination FQDNs.
Returns
A new NetworkRule instance for mocking.