Azure Native

v1.87.0 published on Tuesday, Nov 22, 2022 by Pulumi

FirewallPolicyRuleCollectionGroup

Rule Collection Group resource. API Version: 2020-11-01.

Example Usage

Create FirewallPolicyNatRuleCollectionGroup

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var firewallPolicyRuleCollectionGroup = new AzureNative.Network.FirewallPolicyRuleCollectionGroup("firewallPolicyRuleCollectionGroup", new()
    {
        FirewallPolicyName = "firewallPolicy",
        Priority = 100,
        ResourceGroupName = "rg1",
        RuleCollectionGroupName = "ruleCollectionGroup1",
        RuleCollections = new[]
        {
            new AzureNative.Network.Inputs.FirewallPolicyNatRuleCollectionArgs
            {
                Action = new AzureNative.Network.Inputs.FirewallPolicyNatRuleCollectionActionArgs
                {
                    Type = "DNAT",
                },
                Name = "Example-Nat-Rule-Collection",
                Priority = 100,
                RuleCollectionType = "FirewallPolicyNatRuleCollection",
                Rules = new[]
                {
                    new AzureNative.Network.Inputs.NatRuleArgs
                    {
                        DestinationAddresses = new[]
                        {
                            "152.23.32.23",
                        },
                        DestinationPorts = new[]
                        {
                            "8080",
                        },
                        IpProtocols = new[]
                        {
                            "TCP",
                            "UDP",
                        },
                        Name = "nat-rule1",
                        RuleType = "NatRule",
                        SourceAddresses = new[]
                        {
                            "2.2.2.2",
                        },
                        SourceIpGroups = new[] {},
                        TranslatedFqdn = "internalhttp.server.net",
                        TranslatedPort = "8080",
                    },
                },
            },
        },
    });

});
package main

import (
	network "github.com/pulumi/pulumi-azure-native/sdk/go/azure/network"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := network.NewFirewallPolicyRuleCollectionGroup(ctx, "firewallPolicyRuleCollectionGroup", &network.FirewallPolicyRuleCollectionGroupArgs{
			FirewallPolicyName:      pulumi.String("firewallPolicy"),
			Priority:                pulumi.Int(100),
			ResourceGroupName:       pulumi.String("rg1"),
			RuleCollectionGroupName: pulumi.String("ruleCollectionGroup1"),
			RuleCollections: pulumi.AnyArray{
				network.FirewallPolicyNatRuleCollection{
					Action: network.FirewallPolicyNatRuleCollectionAction{
						Type: "DNAT",
					},
					Name:               "Example-Nat-Rule-Collection",
					Priority:           100,
					RuleCollectionType: "FirewallPolicyNatRuleCollection",
					Rules: []interface{}{
						network.NatRuleType{
							DestinationAddresses: []string{
								"152.23.32.23",
							},
							DestinationPorts: []string{
								"8080",
							},
							IpProtocols: []network.FirewallPolicyRuleNetworkProtocol{
								"TCP",
								"UDP",
							},
							Name:     "nat-rule1",
							RuleType: "NatRule",
							SourceAddresses: []string{
								"2.2.2.2",
							},
							SourceIpGroups: []interface{}{},
							TranslatedFqdn: "internalhttp.server.net",
							TranslatedPort: "8080",
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.FirewallPolicyRuleCollectionGroup;
import com.pulumi.azurenative.network.FirewallPolicyRuleCollectionGroupArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var firewallPolicyRuleCollectionGroup = new FirewallPolicyRuleCollectionGroup("firewallPolicyRuleCollectionGroup", FirewallPolicyRuleCollectionGroupArgs.builder()        
            .firewallPolicyName("firewallPolicy")
            .priority(100)
            .resourceGroupName("rg1")
            .ruleCollectionGroupName("ruleCollectionGroup1")
            .ruleCollections(Map.ofEntries(
                Map.entry("action", Map.of("type", "DNAT")),
                Map.entry("name", "Example-Nat-Rule-Collection"),
                Map.entry("priority", 100),
                Map.entry("ruleCollectionType", "FirewallPolicyNatRuleCollection"),
                Map.entry("rules", Map.ofEntries(
                    Map.entry("destinationAddresses", "152.23.32.23"),
                    Map.entry("destinationPorts", "8080"),
                    Map.entry("ipProtocols",                     
                        "TCP",
                        "UDP"),
                    Map.entry("name", "nat-rule1"),
                    Map.entry("ruleType", "NatRule"),
                    Map.entry("sourceAddresses", "2.2.2.2"),
                    Map.entry("sourceIpGroups", ),
                    Map.entry("translatedFqdn", "internalhttp.server.net"),
                    Map.entry("translatedPort", "8080")
                ))
            ))
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

firewall_policy_rule_collection_group = azure_native.network.FirewallPolicyRuleCollectionGroup("firewallPolicyRuleCollectionGroup",
    firewall_policy_name="firewallPolicy",
    priority=100,
    resource_group_name="rg1",
    rule_collection_group_name="ruleCollectionGroup1",
    rule_collections=[azure_native.network.FirewallPolicyNatRuleCollectionArgs(
        action=azure_native.network.FirewallPolicyNatRuleCollectionActionArgs(
            type="DNAT",
        ),
        name="Example-Nat-Rule-Collection",
        priority=100,
        rule_collection_type="FirewallPolicyNatRuleCollection",
        rules=[azure_native.network.NatRuleArgs(
            destination_addresses=["152.23.32.23"],
            destination_ports=["8080"],
            ip_protocols=[
                "TCP",
                "UDP",
            ],
            name="nat-rule1",
            rule_type="NatRule",
            source_addresses=["2.2.2.2"],
            source_ip_groups=[],
            translated_fqdn="internalhttp.server.net",
            translated_port="8080",
        )],
    )])
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const firewallPolicyRuleCollectionGroup = new azure_native.network.FirewallPolicyRuleCollectionGroup("firewallPolicyRuleCollectionGroup", {
    firewallPolicyName: "firewallPolicy",
    priority: 100,
    resourceGroupName: "rg1",
    ruleCollectionGroupName: "ruleCollectionGroup1",
    ruleCollections: [{
        action: {
            type: "DNAT",
        },
        name: "Example-Nat-Rule-Collection",
        priority: 100,
        ruleCollectionType: "FirewallPolicyNatRuleCollection",
        rules: [{
            destinationAddresses: ["152.23.32.23"],
            destinationPorts: ["8080"],
            ipProtocols: [
                "TCP",
                "UDP",
            ],
            name: "nat-rule1",
            ruleType: "NatRule",
            sourceAddresses: ["2.2.2.2"],
            sourceIpGroups: [],
            translatedFqdn: "internalhttp.server.net",
            translatedPort: "8080",
        }],
    }],
});
resources:
  firewallPolicyRuleCollectionGroup:
    type: azure-native:network:FirewallPolicyRuleCollectionGroup
    properties:
      firewallPolicyName: firewallPolicy
      priority: 100
      resourceGroupName: rg1
      ruleCollectionGroupName: ruleCollectionGroup1
      ruleCollections:
        - action:
            type: DNAT
          name: Example-Nat-Rule-Collection
          priority: 100
          ruleCollectionType: FirewallPolicyNatRuleCollection
          rules:
            - destinationAddresses:
                - 152.23.32.23
              destinationPorts:
                - '8080'
              ipProtocols:
                - TCP
                - UDP
              name: nat-rule1
              ruleType: NatRule
              sourceAddresses:
                - 2.2.2.2
              sourceIpGroups: []
              translatedFqdn: internalhttp.server.net
              translatedPort: '8080'

Create FirewallPolicyRuleCollectionGroup

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var firewallPolicyRuleCollectionGroup = new AzureNative.Network.FirewallPolicyRuleCollectionGroup("firewallPolicyRuleCollectionGroup", new()
    {
        FirewallPolicyName = "firewallPolicy",
        Priority = 100,
        ResourceGroupName = "rg1",
        RuleCollectionGroupName = "ruleCollectionGroup1",
        RuleCollections = new[]
        {
            new AzureNative.Network.Inputs.FirewallPolicyFilterRuleCollectionArgs
            {
                Action = new AzureNative.Network.Inputs.FirewallPolicyFilterRuleCollectionActionArgs
                {
                    Type = "Deny",
                },
                Name = "Example-Filter-Rule-Collection",
                Priority = 100,
                RuleCollectionType = "FirewallPolicyFilterRuleCollection",
                Rules = new[]
                {
                    new AzureNative.Network.Inputs.NetworkRuleArgs
                    {
                        DestinationAddresses = new[]
                        {
                            "*",
                        },
                        DestinationPorts = new[]
                        {
                            "*",
                        },
                        IpProtocols = new[]
                        {
                            "TCP",
                        },
                        Name = "network-rule1",
                        RuleType = "NetworkRule",
                        SourceAddresses = new[]
                        {
                            "10.1.25.0/24",
                        },
                    },
                },
            },
        },
    });

});
package main

import (
	network "github.com/pulumi/pulumi-azure-native/sdk/go/azure/network"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := network.NewFirewallPolicyRuleCollectionGroup(ctx, "firewallPolicyRuleCollectionGroup", &network.FirewallPolicyRuleCollectionGroupArgs{
			FirewallPolicyName:      pulumi.String("firewallPolicy"),
			Priority:                pulumi.Int(100),
			ResourceGroupName:       pulumi.String("rg1"),
			RuleCollectionGroupName: pulumi.String("ruleCollectionGroup1"),
			RuleCollections: pulumi.AnyArray{
				network.FirewallPolicyFilterRuleCollection{
					Action: network.FirewallPolicyFilterRuleCollectionAction{
						Type: "Deny",
					},
					Name:               "Example-Filter-Rule-Collection",
					Priority:           100,
					RuleCollectionType: "FirewallPolicyFilterRuleCollection",
					Rules: []interface{}{
						network.NetworkRule{
							DestinationAddresses: []string{
								"*",
							},
							DestinationPorts: []string{
								"*",
							},
							IpProtocols: []network.FirewallPolicyRuleNetworkProtocol{
								"TCP",
							},
							Name:     "network-rule1",
							RuleType: "NetworkRule",
							SourceAddresses: []string{
								"10.1.25.0/24",
							},
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.FirewallPolicyRuleCollectionGroup;
import com.pulumi.azurenative.network.FirewallPolicyRuleCollectionGroupArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var firewallPolicyRuleCollectionGroup = new FirewallPolicyRuleCollectionGroup("firewallPolicyRuleCollectionGroup", FirewallPolicyRuleCollectionGroupArgs.builder()        
            .firewallPolicyName("firewallPolicy")
            .priority(100)
            .resourceGroupName("rg1")
            .ruleCollectionGroupName("ruleCollectionGroup1")
            .ruleCollections(Map.ofEntries(
                Map.entry("action", Map.of("type", "Deny")),
                Map.entry("name", "Example-Filter-Rule-Collection"),
                Map.entry("priority", 100),
                Map.entry("ruleCollectionType", "FirewallPolicyFilterRuleCollection"),
                Map.entry("rules", Map.ofEntries(
                    Map.entry("destinationAddresses", "*"),
                    Map.entry("destinationPorts", "*"),
                    Map.entry("ipProtocols", "TCP"),
                    Map.entry("name", "network-rule1"),
                    Map.entry("ruleType", "NetworkRule"),
                    Map.entry("sourceAddresses", "10.1.25.0/24")
                ))
            ))
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

firewall_policy_rule_collection_group = azure_native.network.FirewallPolicyRuleCollectionGroup("firewallPolicyRuleCollectionGroup",
    firewall_policy_name="firewallPolicy",
    priority=100,
    resource_group_name="rg1",
    rule_collection_group_name="ruleCollectionGroup1",
    rule_collections=[azure_native.network.FirewallPolicyFilterRuleCollectionArgs(
        action=azure_native.network.FirewallPolicyFilterRuleCollectionActionArgs(
            type="Deny",
        ),
        name="Example-Filter-Rule-Collection",
        priority=100,
        rule_collection_type="FirewallPolicyFilterRuleCollection",
        rules=[azure_native.network.NetworkRuleArgs(
            destination_addresses=["*"],
            destination_ports=["*"],
            ip_protocols=["TCP"],
            name="network-rule1",
            rule_type="NetworkRule",
            source_addresses=["10.1.25.0/24"],
        )],
    )])
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const firewallPolicyRuleCollectionGroup = new azure_native.network.FirewallPolicyRuleCollectionGroup("firewallPolicyRuleCollectionGroup", {
    firewallPolicyName: "firewallPolicy",
    priority: 100,
    resourceGroupName: "rg1",
    ruleCollectionGroupName: "ruleCollectionGroup1",
    ruleCollections: [{
        action: {
            type: "Deny",
        },
        name: "Example-Filter-Rule-Collection",
        priority: 100,
        ruleCollectionType: "FirewallPolicyFilterRuleCollection",
        rules: [{
            destinationAddresses: ["*"],
            destinationPorts: ["*"],
            ipProtocols: ["TCP"],
            name: "network-rule1",
            ruleType: "NetworkRule",
            sourceAddresses: ["10.1.25.0/24"],
        }],
    }],
});
resources:
  firewallPolicyRuleCollectionGroup:
    type: azure-native:network:FirewallPolicyRuleCollectionGroup
    properties:
      firewallPolicyName: firewallPolicy
      priority: 100
      resourceGroupName: rg1
      ruleCollectionGroupName: ruleCollectionGroup1
      ruleCollections:
        - action:
            type: Deny
          name: Example-Filter-Rule-Collection
          priority: 100
          ruleCollectionType: FirewallPolicyFilterRuleCollection
          rules:
            - destinationAddresses:
                - '*'
              destinationPorts:
                - '*'
              ipProtocols:
                - TCP
              name: network-rule1
              ruleType: NetworkRule
              sourceAddresses:
                - 10.1.25.0/24

Create FirewallPolicyRuleCollectionGroup With IpGroups

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var firewallPolicyRuleCollectionGroup = new AzureNative.Network.FirewallPolicyRuleCollectionGroup("firewallPolicyRuleCollectionGroup", new()
    {
        FirewallPolicyName = "firewallPolicy",
        Priority = 110,
        ResourceGroupName = "rg1",
        RuleCollectionGroupName = "ruleCollectionGroup1",
        RuleCollections = new[]
        {
            new AzureNative.Network.Inputs.FirewallPolicyFilterRuleCollectionArgs
            {
                Action = new AzureNative.Network.Inputs.FirewallPolicyFilterRuleCollectionActionArgs
                {
                    Type = "Deny",
                },
                Name = "Example-Filter-Rule-Collection",
                RuleCollectionType = "FirewallPolicyFilterRuleCollection",
                Rules = new[]
                {
                    new AzureNative.Network.Inputs.NetworkRuleArgs
                    {
                        DestinationIpGroups = new[]
                        {
                            "/subscriptions/subid/providers/Microsoft.Network/resourceGroup/rg1/ipGroups/ipGroups2",
                        },
                        DestinationPorts = new[]
                        {
                            "*",
                        },
                        IpProtocols = new[]
                        {
                            "TCP",
                        },
                        Name = "network-1",
                        RuleType = "NetworkRule",
                        SourceIpGroups = new[]
                        {
                            "/subscriptions/subid/providers/Microsoft.Network/resourceGroup/rg1/ipGroups/ipGroups1",
                        },
                    },
                },
            },
        },
    });

});
package main

import (
	network "github.com/pulumi/pulumi-azure-native/sdk/go/azure/network"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := network.NewFirewallPolicyRuleCollectionGroup(ctx, "firewallPolicyRuleCollectionGroup", &network.FirewallPolicyRuleCollectionGroupArgs{
			FirewallPolicyName:      pulumi.String("firewallPolicy"),
			Priority:                pulumi.Int(110),
			ResourceGroupName:       pulumi.String("rg1"),
			RuleCollectionGroupName: pulumi.String("ruleCollectionGroup1"),
			RuleCollections: pulumi.AnyArray{
				network.FirewallPolicyFilterRuleCollection{
					Action: network.FirewallPolicyFilterRuleCollectionAction{
						Type: "Deny",
					},
					Name:               "Example-Filter-Rule-Collection",
					RuleCollectionType: "FirewallPolicyFilterRuleCollection",
					Rules: []interface{}{
						network.NetworkRule{
							DestinationIpGroups: []string{
								"/subscriptions/subid/providers/Microsoft.Network/resourceGroup/rg1/ipGroups/ipGroups2",
							},
							DestinationPorts: []string{
								"*",
							},
							IpProtocols: []network.FirewallPolicyRuleNetworkProtocol{
								"TCP",
							},
							Name:     "network-1",
							RuleType: "NetworkRule",
							SourceIpGroups: []string{
								"/subscriptions/subid/providers/Microsoft.Network/resourceGroup/rg1/ipGroups/ipGroups1",
							},
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.FirewallPolicyRuleCollectionGroup;
import com.pulumi.azurenative.network.FirewallPolicyRuleCollectionGroupArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var firewallPolicyRuleCollectionGroup = new FirewallPolicyRuleCollectionGroup("firewallPolicyRuleCollectionGroup", FirewallPolicyRuleCollectionGroupArgs.builder()        
            .firewallPolicyName("firewallPolicy")
            .priority(110)
            .resourceGroupName("rg1")
            .ruleCollectionGroupName("ruleCollectionGroup1")
            .ruleCollections(Map.ofEntries(
                Map.entry("action", Map.of("type", "Deny")),
                Map.entry("name", "Example-Filter-Rule-Collection"),
                Map.entry("ruleCollectionType", "FirewallPolicyFilterRuleCollection"),
                Map.entry("rules", Map.ofEntries(
                    Map.entry("destinationIpGroups", "/subscriptions/subid/providers/Microsoft.Network/resourceGroup/rg1/ipGroups/ipGroups2"),
                    Map.entry("destinationPorts", "*"),
                    Map.entry("ipProtocols", "TCP"),
                    Map.entry("name", "network-1"),
                    Map.entry("ruleType", "NetworkRule"),
                    Map.entry("sourceIpGroups", "/subscriptions/subid/providers/Microsoft.Network/resourceGroup/rg1/ipGroups/ipGroups1")
                ))
            ))
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

firewall_policy_rule_collection_group = azure_native.network.FirewallPolicyRuleCollectionGroup("firewallPolicyRuleCollectionGroup",
    firewall_policy_name="firewallPolicy",
    priority=110,
    resource_group_name="rg1",
    rule_collection_group_name="ruleCollectionGroup1",
    rule_collections=[azure_native.network.FirewallPolicyFilterRuleCollectionArgs(
        action=azure_native.network.FirewallPolicyFilterRuleCollectionActionArgs(
            type="Deny",
        ),
        name="Example-Filter-Rule-Collection",
        rule_collection_type="FirewallPolicyFilterRuleCollection",
        rules=[azure_native.network.NetworkRuleArgs(
            destination_ip_groups=["/subscriptions/subid/providers/Microsoft.Network/resourceGroup/rg1/ipGroups/ipGroups2"],
            destination_ports=["*"],
            ip_protocols=["TCP"],
            name="network-1",
            rule_type="NetworkRule",
            source_ip_groups=["/subscriptions/subid/providers/Microsoft.Network/resourceGroup/rg1/ipGroups/ipGroups1"],
        )],
    )])
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const firewallPolicyRuleCollectionGroup = new azure_native.network.FirewallPolicyRuleCollectionGroup("firewallPolicyRuleCollectionGroup", {
    firewallPolicyName: "firewallPolicy",
    priority: 110,
    resourceGroupName: "rg1",
    ruleCollectionGroupName: "ruleCollectionGroup1",
    ruleCollections: [{
        action: {
            type: "Deny",
        },
        name: "Example-Filter-Rule-Collection",
        ruleCollectionType: "FirewallPolicyFilterRuleCollection",
        rules: [{
            destinationIpGroups: ["/subscriptions/subid/providers/Microsoft.Network/resourceGroup/rg1/ipGroups/ipGroups2"],
            destinationPorts: ["*"],
            ipProtocols: ["TCP"],
            name: "network-1",
            ruleType: "NetworkRule",
            sourceIpGroups: ["/subscriptions/subid/providers/Microsoft.Network/resourceGroup/rg1/ipGroups/ipGroups1"],
        }],
    }],
});
resources:
  firewallPolicyRuleCollectionGroup:
    type: azure-native:network:FirewallPolicyRuleCollectionGroup
    properties:
      firewallPolicyName: firewallPolicy
      priority: 110
      resourceGroupName: rg1
      ruleCollectionGroupName: ruleCollectionGroup1
      ruleCollections:
        - action:
            type: Deny
          name: Example-Filter-Rule-Collection
          ruleCollectionType: FirewallPolicyFilterRuleCollection
          rules:
            - destinationIpGroups:
                - /subscriptions/subid/providers/Microsoft.Network/resourceGroup/rg1/ipGroups/ipGroups2
              destinationPorts:
                - '*'
              ipProtocols:
                - TCP
              name: network-1
              ruleType: NetworkRule
              sourceIpGroups:
                - /subscriptions/subid/providers/Microsoft.Network/resourceGroup/rg1/ipGroups/ipGroups1

Create FirewallPolicyRuleCollectionGroup With Web Categories

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var firewallPolicyRuleCollectionGroup = new AzureNative.Network.FirewallPolicyRuleCollectionGroup("firewallPolicyRuleCollectionGroup", new()
    {
        FirewallPolicyName = "firewallPolicy",
        Priority = 110,
        ResourceGroupName = "rg1",
        RuleCollectionGroupName = "ruleCollectionGroup1",
        RuleCollections = new[]
        {
            new AzureNative.Network.Inputs.FirewallPolicyFilterRuleCollectionArgs
            {
                Action = new AzureNative.Network.Inputs.FirewallPolicyFilterRuleCollectionActionArgs
                {
                    Type = "Deny",
                },
                Name = "Example-Filter-Rule-Collection",
                RuleCollectionType = "FirewallPolicyFilterRuleCollection",
                Rules = new[]
                {
                    new AzureNative.Network.Inputs.ApplicationRuleArgs
                    {
                        Description = "Deny inbound rule",
                        Name = "rule1",
                        Protocols = new[]
                        {
                            new AzureNative.Network.Inputs.FirewallPolicyRuleApplicationProtocolArgs
                            {
                                Port = 443,
                                ProtocolType = "Https",
                            },
                        },
                        RuleType = "ApplicationRule",
                        SourceAddresses = new[]
                        {
                            "216.58.216.164",
                            "10.0.0.0/24",
                        },
                        WebCategories = new[]
                        {
                            "Hacking",
                        },
                    },
                },
            },
        },
    });

});
package main

import (
	network "github.com/pulumi/pulumi-azure-native/sdk/go/azure/network"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := network.NewFirewallPolicyRuleCollectionGroup(ctx, "firewallPolicyRuleCollectionGroup", &network.FirewallPolicyRuleCollectionGroupArgs{
			FirewallPolicyName:      pulumi.String("firewallPolicy"),
			Priority:                pulumi.Int(110),
			ResourceGroupName:       pulumi.String("rg1"),
			RuleCollectionGroupName: pulumi.String("ruleCollectionGroup1"),
			RuleCollections: pulumi.AnyArray{
				network.FirewallPolicyFilterRuleCollection{
					Action: network.FirewallPolicyFilterRuleCollectionAction{
						Type: "Deny",
					},
					Name:               "Example-Filter-Rule-Collection",
					RuleCollectionType: "FirewallPolicyFilterRuleCollection",
					Rules: []interface{}{
						network.ApplicationRule{
							Description: "Deny inbound rule",
							Name:        "rule1",
							Protocols: []network.FirewallPolicyRuleApplicationProtocol{
								network.FirewallPolicyRuleApplicationProtocol{
									Port:         443,
									ProtocolType: "Https",
								},
							},
							RuleType: "ApplicationRule",
							SourceAddresses: []string{
								"216.58.216.164",
								"10.0.0.0/24",
							},
							WebCategories: []string{
								"Hacking",
							},
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.FirewallPolicyRuleCollectionGroup;
import com.pulumi.azurenative.network.FirewallPolicyRuleCollectionGroupArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var firewallPolicyRuleCollectionGroup = new FirewallPolicyRuleCollectionGroup("firewallPolicyRuleCollectionGroup", FirewallPolicyRuleCollectionGroupArgs.builder()        
            .firewallPolicyName("firewallPolicy")
            .priority(110)
            .resourceGroupName("rg1")
            .ruleCollectionGroupName("ruleCollectionGroup1")
            .ruleCollections(Map.ofEntries(
                Map.entry("action", Map.of("type", "Deny")),
                Map.entry("name", "Example-Filter-Rule-Collection"),
                Map.entry("ruleCollectionType", "FirewallPolicyFilterRuleCollection"),
                Map.entry("rules", Map.ofEntries(
                    Map.entry("description", "Deny inbound rule"),
                    Map.entry("name", "rule1"),
                    Map.entry("protocols", Map.ofEntries(
                        Map.entry("port", 443),
                        Map.entry("protocolType", "Https")
                    )),
                    Map.entry("ruleType", "ApplicationRule"),
                    Map.entry("sourceAddresses",                     
                        "216.58.216.164",
                        "10.0.0.0/24"),
                    Map.entry("webCategories", "Hacking")
                ))
            ))
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

firewall_policy_rule_collection_group = azure_native.network.FirewallPolicyRuleCollectionGroup("firewallPolicyRuleCollectionGroup",
    firewall_policy_name="firewallPolicy",
    priority=110,
    resource_group_name="rg1",
    rule_collection_group_name="ruleCollectionGroup1",
    rule_collections=[azure_native.network.FirewallPolicyFilterRuleCollectionArgs(
        action=azure_native.network.FirewallPolicyFilterRuleCollectionActionArgs(
            type="Deny",
        ),
        name="Example-Filter-Rule-Collection",
        rule_collection_type="FirewallPolicyFilterRuleCollection",
        rules=[azure_native.network.ApplicationRuleArgs(
            description="Deny inbound rule",
            name="rule1",
            protocols=[azure_native.network.FirewallPolicyRuleApplicationProtocolArgs(
                port=443,
                protocol_type="Https",
            )],
            rule_type="ApplicationRule",
            source_addresses=[
                "216.58.216.164",
                "10.0.0.0/24",
            ],
            web_categories=["Hacking"],
        )],
    )])
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const firewallPolicyRuleCollectionGroup = new azure_native.network.FirewallPolicyRuleCollectionGroup("firewallPolicyRuleCollectionGroup", {
    firewallPolicyName: "firewallPolicy",
    priority: 110,
    resourceGroupName: "rg1",
    ruleCollectionGroupName: "ruleCollectionGroup1",
    ruleCollections: [{
        action: {
            type: "Deny",
        },
        name: "Example-Filter-Rule-Collection",
        ruleCollectionType: "FirewallPolicyFilterRuleCollection",
        rules: [{
            description: "Deny inbound rule",
            name: "rule1",
            protocols: [{
                port: 443,
                protocolType: "Https",
            }],
            ruleType: "ApplicationRule",
            sourceAddresses: [
                "216.58.216.164",
                "10.0.0.0/24",
            ],
            webCategories: ["Hacking"],
        }],
    }],
});
resources:
  firewallPolicyRuleCollectionGroup:
    type: azure-native:network:FirewallPolicyRuleCollectionGroup
    properties:
      firewallPolicyName: firewallPolicy
      priority: 110
      resourceGroupName: rg1
      ruleCollectionGroupName: ruleCollectionGroup1
      ruleCollections:
        - action:
            type: Deny
          name: Example-Filter-Rule-Collection
          ruleCollectionType: FirewallPolicyFilterRuleCollection
          rules:
            - description: Deny inbound rule
              name: rule1
              protocols:
                - port: 443
                  protocolType: Https
              ruleType: ApplicationRule
              sourceAddresses:
                - 216.58.216.164
                - 10.0.0.0/24
              webCategories:
                - Hacking

Create FirewallPolicyRuleCollectionGroup Resource

new FirewallPolicyRuleCollectionGroup(name: string, args: FirewallPolicyRuleCollectionGroupArgs, opts?: CustomResourceOptions);
@overload
def FirewallPolicyRuleCollectionGroup(resource_name: str,
                                      opts: Optional[ResourceOptions] = None,
                                      firewall_policy_name: Optional[str] = None,
                                      id: Optional[str] = None,
                                      name: Optional[str] = None,
                                      priority: Optional[int] = None,
                                      resource_group_name: Optional[str] = None,
                                      rule_collection_group_name: Optional[str] = None,
                                      rule_collections: Optional[Sequence[Union[FirewallPolicyFilterRuleCollectionArgs, FirewallPolicyNatRuleCollectionArgs]]] = None)
@overload
def FirewallPolicyRuleCollectionGroup(resource_name: str,
                                      args: FirewallPolicyRuleCollectionGroupArgs,
                                      opts: Optional[ResourceOptions] = None)
func NewFirewallPolicyRuleCollectionGroup(ctx *Context, name string, args FirewallPolicyRuleCollectionGroupArgs, opts ...ResourceOption) (*FirewallPolicyRuleCollectionGroup, error)
public FirewallPolicyRuleCollectionGroup(string name, FirewallPolicyRuleCollectionGroupArgs args, CustomResourceOptions? opts = null)
public FirewallPolicyRuleCollectionGroup(String name, FirewallPolicyRuleCollectionGroupArgs args)
public FirewallPolicyRuleCollectionGroup(String name, FirewallPolicyRuleCollectionGroupArgs args, CustomResourceOptions options)
type: azure-native:network:FirewallPolicyRuleCollectionGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args FirewallPolicyRuleCollectionGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args FirewallPolicyRuleCollectionGroupArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args FirewallPolicyRuleCollectionGroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args FirewallPolicyRuleCollectionGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args FirewallPolicyRuleCollectionGroupArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

FirewallPolicyRuleCollectionGroup Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The FirewallPolicyRuleCollectionGroup resource accepts the following input properties:

FirewallPolicyName string

The name of the Firewall Policy.

ResourceGroupName string

The name of the resource group.

Id string

Resource ID.

Name string

The name of the resource that is unique within a resource group. This name can be used to access the resource.

Priority int

Priority of the Firewall Policy Rule Collection Group resource.

RuleCollectionGroupName string

The name of the FirewallPolicyRuleCollectionGroup.

RuleCollections List<Union<Pulumi.AzureNative.Network.Inputs.FirewallPolicyFilterRuleCollectionArgs, Pulumi.AzureNative.Network.Inputs.FirewallPolicyNatRuleCollectionArgs>>

Group of Firewall Policy rule collections.

FirewallPolicyName string

The name of the Firewall Policy.

ResourceGroupName string

The name of the resource group.

Id string

Resource ID.

Name string

The name of the resource that is unique within a resource group. This name can be used to access the resource.

Priority int

Priority of the Firewall Policy Rule Collection Group resource.

RuleCollectionGroupName string

The name of the FirewallPolicyRuleCollectionGroup.

RuleCollections []interface{}

Group of Firewall Policy rule collections.

firewallPolicyName String

The name of the Firewall Policy.

resourceGroupName String

The name of the resource group.

id String

Resource ID.

name String

The name of the resource that is unique within a resource group. This name can be used to access the resource.

priority Integer

Priority of the Firewall Policy Rule Collection Group resource.

ruleCollectionGroupName String

The name of the FirewallPolicyRuleCollectionGroup.

ruleCollections List<Either<FirewallPolicyFilterRuleCollectionArgs,FirewallPolicyNatRuleCollectionArgs>>

Group of Firewall Policy rule collections.

firewallPolicyName string

The name of the Firewall Policy.

resourceGroupName string

The name of the resource group.

id string

Resource ID.

name string

The name of the resource that is unique within a resource group. This name can be used to access the resource.

priority number

Priority of the Firewall Policy Rule Collection Group resource.

ruleCollectionGroupName string

The name of the FirewallPolicyRuleCollectionGroup.

ruleCollections (FirewallPolicyFilterRuleCollectionArgs | FirewallPolicyNatRuleCollectionArgs)[]

Group of Firewall Policy rule collections.

firewall_policy_name str

The name of the Firewall Policy.

resource_group_name str

The name of the resource group.

id str

Resource ID.

name str

The name of the resource that is unique within a resource group. This name can be used to access the resource.

priority int

Priority of the Firewall Policy Rule Collection Group resource.

rule_collection_group_name str

The name of the FirewallPolicyRuleCollectionGroup.

rule_collections Sequence[Union[FirewallPolicyFilterRuleCollectionArgs, FirewallPolicyNatRuleCollectionArgs]]

Group of Firewall Policy rule collections.

firewallPolicyName String

The name of the Firewall Policy.

resourceGroupName String

The name of the resource group.

id String

Resource ID.

name String

The name of the resource that is unique within a resource group. This name can be used to access the resource.

priority Number

Priority of the Firewall Policy Rule Collection Group resource.

ruleCollectionGroupName String

The name of the FirewallPolicyRuleCollectionGroup.

ruleCollections List<Property Map | Property Map>

Group of Firewall Policy rule collections.

Outputs

All input properties are implicitly available as output properties. Additionally, the FirewallPolicyRuleCollectionGroup resource produces the following output properties:

Etag string

A unique read-only string that changes whenever the resource is updated.

Id string

The provider-assigned unique ID for this managed resource.

ProvisioningState string

The provisioning state of the firewall policy rule collection group resource.

Type string

Rule Group type.

Etag string

A unique read-only string that changes whenever the resource is updated.

Id string

The provider-assigned unique ID for this managed resource.

ProvisioningState string

The provisioning state of the firewall policy rule collection group resource.

Type string

Rule Group type.

etag String

A unique read-only string that changes whenever the resource is updated.

id String

The provider-assigned unique ID for this managed resource.

provisioningState String

The provisioning state of the firewall policy rule collection group resource.

type String

Rule Group type.

etag string

A unique read-only string that changes whenever the resource is updated.

id string

The provider-assigned unique ID for this managed resource.

provisioningState string

The provisioning state of the firewall policy rule collection group resource.

type string

Rule Group type.

etag str

A unique read-only string that changes whenever the resource is updated.

id str

The provider-assigned unique ID for this managed resource.

provisioning_state str

The provisioning state of the firewall policy rule collection group resource.

type str

Rule Group type.

etag String

A unique read-only string that changes whenever the resource is updated.

id String

The provider-assigned unique ID for this managed resource.

provisioningState String

The provisioning state of the firewall policy rule collection group resource.

type String

Rule Group type.

Supporting Types

ApplicationRule

Description string

Description of the rule.

DestinationAddresses List<string>

List of destination IP addresses or Service Tags.

FqdnTags List<string>

List of FQDN Tags for this rule.

Name string

Name of the rule.

Protocols List<Pulumi.AzureNative.Network.Inputs.FirewallPolicyRuleApplicationProtocol>

Array of Application Protocols.

SourceAddresses List<string>

List of source IP addresses for this rule.

SourceIpGroups List<string>

List of source IpGroups for this rule.

TargetFqdns List<string>

List of FQDNs for this rule.

TargetUrls List<string>

List of Urls for this rule condition.

TerminateTLS bool

Terminate TLS connections for this rule.

WebCategories List<string>

List of destination azure web categories.

Description string

Description of the rule.

DestinationAddresses []string

List of destination IP addresses or Service Tags.

FqdnTags []string

List of FQDN Tags for this rule.

Name string

Name of the rule.

Protocols []FirewallPolicyRuleApplicationProtocol

Array of Application Protocols.

SourceAddresses []string

List of source IP addresses for this rule.

SourceIpGroups []string

List of source IpGroups for this rule.

TargetFqdns []string

List of FQDNs for this rule.

TargetUrls []string

List of Urls for this rule condition.

TerminateTLS bool

Terminate TLS connections for this rule.

WebCategories []string

List of destination azure web categories.

description String

Description of the rule.

destinationAddresses List<String>

List of destination IP addresses or Service Tags.

fqdnTags List<String>

List of FQDN Tags for this rule.

name String

Name of the rule.

protocols List<FirewallPolicyRuleApplicationProtocol>

Array of Application Protocols.

sourceAddresses List<String>

List of source IP addresses for this rule.

sourceIpGroups List<String>

List of source IpGroups for this rule.

targetFqdns List<String>

List of FQDNs for this rule.

targetUrls List<String>

List of Urls for this rule condition.

terminateTLS Boolean

Terminate TLS connections for this rule.

webCategories List<String>

List of destination azure web categories.

description string

Description of the rule.

destinationAddresses string[]

List of destination IP addresses or Service Tags.

fqdnTags string[]

List of FQDN Tags for this rule.

name string

Name of the rule.

protocols FirewallPolicyRuleApplicationProtocol[]

Array of Application Protocols.

sourceAddresses string[]

List of source IP addresses for this rule.

sourceIpGroups string[]

List of source IpGroups for this rule.

targetFqdns string[]

List of FQDNs for this rule.

targetUrls string[]

List of Urls for this rule condition.

terminateTLS boolean

Terminate TLS connections for this rule.

webCategories string[]

List of destination azure web categories.

description str

Description of the rule.

destination_addresses Sequence[str]

List of destination IP addresses or Service Tags.

fqdn_tags Sequence[str]

List of FQDN Tags for this rule.

name str

Name of the rule.

protocols Sequence[FirewallPolicyRuleApplicationProtocol]

Array of Application Protocols.

source_addresses Sequence[str]

List of source IP addresses for this rule.

source_ip_groups Sequence[str]

List of source IpGroups for this rule.

target_fqdns Sequence[str]

List of FQDNs for this rule.

target_urls Sequence[str]

List of Urls for this rule condition.

terminate_tls bool

Terminate TLS connections for this rule.

web_categories Sequence[str]

List of destination azure web categories.

description String

Description of the rule.

destinationAddresses List<String>

List of destination IP addresses or Service Tags.

fqdnTags List<String>

List of FQDN Tags for this rule.

name String

Name of the rule.

protocols List<Property Map>

Array of Application Protocols.

sourceAddresses List<String>

List of source IP addresses for this rule.

sourceIpGroups List<String>

List of source IpGroups for this rule.

targetFqdns List<String>

List of FQDNs for this rule.

targetUrls List<String>

List of Urls for this rule condition.

terminateTLS Boolean

Terminate TLS connections for this rule.

webCategories List<String>

List of destination azure web categories.

ApplicationRuleResponse

Description string

Description of the rule.

DestinationAddresses List<string>

List of destination IP addresses or Service Tags.

FqdnTags List<string>

List of FQDN Tags for this rule.

Name string

Name of the rule.

Protocols List<Pulumi.AzureNative.Network.Inputs.FirewallPolicyRuleApplicationProtocolResponse>

Array of Application Protocols.

SourceAddresses List<string>

List of source IP addresses for this rule.

SourceIpGroups List<string>

List of source IpGroups for this rule.

TargetFqdns List<string>

List of FQDNs for this rule.

TargetUrls List<string>

List of Urls for this rule condition.

TerminateTLS bool

Terminate TLS connections for this rule.

WebCategories List<string>

List of destination azure web categories.

Description string

Description of the rule.

DestinationAddresses []string

List of destination IP addresses or Service Tags.

FqdnTags []string

List of FQDN Tags for this rule.

Name string

Name of the rule.

Protocols []FirewallPolicyRuleApplicationProtocolResponse

Array of Application Protocols.

SourceAddresses []string

List of source IP addresses for this rule.

SourceIpGroups []string

List of source IpGroups for this rule.

TargetFqdns []string

List of FQDNs for this rule.

TargetUrls []string

List of Urls for this rule condition.

TerminateTLS bool

Terminate TLS connections for this rule.

WebCategories []string

List of destination azure web categories.

description String

Description of the rule.

destinationAddresses List<String>

List of destination IP addresses or Service Tags.

fqdnTags List<String>

List of FQDN Tags for this rule.

name String

Name of the rule.

protocols List<FirewallPolicyRuleApplicationProtocolResponse>

Array of Application Protocols.

sourceAddresses List<String>

List of source IP addresses for this rule.

sourceIpGroups List<String>

List of source IpGroups for this rule.

targetFqdns List<String>

List of FQDNs for this rule.

targetUrls List<String>

List of Urls for this rule condition.

terminateTLS Boolean

Terminate TLS connections for this rule.

webCategories List<String>

List of destination azure web categories.

description string

Description of the rule.

destinationAddresses string[]

List of destination IP addresses or Service Tags.

fqdnTags string[]

List of FQDN Tags for this rule.

name string

Name of the rule.

protocols FirewallPolicyRuleApplicationProtocolResponse[]

Array of Application Protocols.

sourceAddresses string[]

List of source IP addresses for this rule.

sourceIpGroups string[]

List of source IpGroups for this rule.

targetFqdns string[]

List of FQDNs for this rule.

targetUrls string[]

List of Urls for this rule condition.

terminateTLS boolean

Terminate TLS connections for this rule.

webCategories string[]

List of destination azure web categories.

description str

Description of the rule.

destination_addresses Sequence[str]

List of destination IP addresses or Service Tags.

fqdn_tags Sequence[str]

List of FQDN Tags for this rule.

name str

Name of the rule.

protocols Sequence[FirewallPolicyRuleApplicationProtocolResponse]

Array of Application Protocols.

source_addresses Sequence[str]

List of source IP addresses for this rule.

source_ip_groups Sequence[str]

List of source IpGroups for this rule.

target_fqdns Sequence[str]

List of FQDNs for this rule.

target_urls Sequence[str]

List of Urls for this rule condition.

terminate_tls bool

Terminate TLS connections for this rule.

web_categories Sequence[str]

List of destination azure web categories.

description String

Description of the rule.

destinationAddresses List<String>

List of destination IP addresses or Service Tags.

fqdnTags List<String>

List of FQDN Tags for this rule.

name String

Name of the rule.

protocols List<Property Map>

Array of Application Protocols.

sourceAddresses List<String>

List of source IP addresses for this rule.

sourceIpGroups List<String>

List of source IpGroups for this rule.

targetFqdns List<String>

List of FQDNs for this rule.

targetUrls List<String>

List of Urls for this rule condition.

terminateTLS Boolean

Terminate TLS connections for this rule.

webCategories List<String>

List of destination azure web categories.

FirewallPolicyFilterRuleCollection

Action Pulumi.AzureNative.Network.Inputs.FirewallPolicyFilterRuleCollectionAction

The action type of a Filter rule collection.

Name string

The name of the rule collection.

Priority int

Priority of the Firewall Policy Rule Collection resource.

Rules List<object>

List of rules included in a rule collection.

Action FirewallPolicyFilterRuleCollectionAction

The action type of a Filter rule collection.

Name string

The name of the rule collection.

Priority int

Priority of the Firewall Policy Rule Collection resource.

Rules []interface{}

List of rules included in a rule collection.

action FirewallPolicyFilterRuleCollectionAction

The action type of a Filter rule collection.

name String

The name of the rule collection.

priority Integer

Priority of the Firewall Policy Rule Collection resource.

rules List<Object>

List of rules included in a rule collection.

action FirewallPolicyFilterRuleCollectionAction

The action type of a Filter rule collection.

name string

The name of the rule collection.

priority number

Priority of the Firewall Policy Rule Collection resource.

rules (ApplicationRule | NatRule | NetworkRule)[]

List of rules included in a rule collection.

action FirewallPolicyFilterRuleCollectionAction

The action type of a Filter rule collection.

name str

The name of the rule collection.

priority int

Priority of the Firewall Policy Rule Collection resource.

rules Sequence[Union[ApplicationRule, NatRule, NetworkRule]]

List of rules included in a rule collection.

action Property Map

The action type of a Filter rule collection.

name String

The name of the rule collection.

priority Number

Priority of the Firewall Policy Rule Collection resource.

rules List<Property Map | Property Map | Property Map>

List of rules included in a rule collection.

FirewallPolicyFilterRuleCollectionAction

type String | "Allow" | "Deny"

The type of action.

FirewallPolicyFilterRuleCollectionActionResponse

Type string

The type of action.

Type string

The type of action.

type String

The type of action.

type string

The type of action.

type str

The type of action.

type String

The type of action.

FirewallPolicyFilterRuleCollectionActionType

Allow
Allow
Deny
Deny
FirewallPolicyFilterRuleCollectionActionTypeAllow
Allow
FirewallPolicyFilterRuleCollectionActionTypeDeny
Deny
Allow
Allow
Deny
Deny
Allow
Allow
Deny
Deny
ALLOW
Allow
DENY
Deny
"Allow"
Allow
"Deny"
Deny

FirewallPolicyFilterRuleCollectionResponse

Action Pulumi.AzureNative.Network.Inputs.FirewallPolicyFilterRuleCollectionActionResponse

The action type of a Filter rule collection.

Name string

The name of the rule collection.

Priority int

Priority of the Firewall Policy Rule Collection resource.

Rules List<object>

List of rules included in a rule collection.

Action FirewallPolicyFilterRuleCollectionActionResponse

The action type of a Filter rule collection.

Name string

The name of the rule collection.

Priority int

Priority of the Firewall Policy Rule Collection resource.

Rules []interface{}

List of rules included in a rule collection.

action FirewallPolicyFilterRuleCollectionActionResponse

The action type of a Filter rule collection.

name String

The name of the rule collection.

priority Integer

Priority of the Firewall Policy Rule Collection resource.

rules List<Object>

List of rules included in a rule collection.

action FirewallPolicyFilterRuleCollectionActionResponse

The action type of a Filter rule collection.

name string

The name of the rule collection.

priority number

Priority of the Firewall Policy Rule Collection resource.

rules (ApplicationRuleResponse | NatRuleResponse | NetworkRuleResponse)[]

List of rules included in a rule collection.

action FirewallPolicyFilterRuleCollectionActionResponse

The action type of a Filter rule collection.

name str

The name of the rule collection.

priority int

Priority of the Firewall Policy Rule Collection resource.

rules Sequence[Union[ApplicationRuleResponse, NatRuleResponse, NetworkRuleResponse]]

List of rules included in a rule collection.

action Property Map

The action type of a Filter rule collection.

name String

The name of the rule collection.

priority Number

Priority of the Firewall Policy Rule Collection resource.

rules List<Property Map | Property Map | Property Map>

List of rules included in a rule collection.

FirewallPolicyNatRuleCollection

Action Pulumi.AzureNative.Network.Inputs.FirewallPolicyNatRuleCollectionAction

The action type of a Nat rule collection.

Name string

The name of the rule collection.

Priority int

Priority of the Firewall Policy Rule Collection resource.

Rules List<object>

List of rules included in a rule collection.

Action FirewallPolicyNatRuleCollectionAction

The action type of a Nat rule collection.

Name string

The name of the rule collection.

Priority int

Priority of the Firewall Policy Rule Collection resource.

Rules []interface{}

List of rules included in a rule collection.

action FirewallPolicyNatRuleCollectionAction

The action type of a Nat rule collection.

name String

The name of the rule collection.

priority Integer

Priority of the Firewall Policy Rule Collection resource.

rules List<Object>

List of rules included in a rule collection.

action FirewallPolicyNatRuleCollectionAction

The action type of a Nat rule collection.

name string

The name of the rule collection.

priority number

Priority of the Firewall Policy Rule Collection resource.

rules (ApplicationRule | NatRule | NetworkRule)[]

List of rules included in a rule collection.

action FirewallPolicyNatRuleCollectionAction

The action type of a Nat rule collection.

name str

The name of the rule collection.

priority int

Priority of the Firewall Policy Rule Collection resource.

rules Sequence[Union[ApplicationRule, NatRule, NetworkRule]]

List of rules included in a rule collection.

action Property Map

The action type of a Nat rule collection.

name String

The name of the rule collection.

priority Number

Priority of the Firewall Policy Rule Collection resource.

rules List<Property Map | Property Map | Property Map>

List of rules included in a rule collection.

FirewallPolicyNatRuleCollectionAction

type String | "DNAT"

The type of action.

FirewallPolicyNatRuleCollectionActionResponse

Type string

The type of action.

Type string

The type of action.

type String

The type of action.

type string

The type of action.

type str

The type of action.

type String

The type of action.

FirewallPolicyNatRuleCollectionActionType

DNAT
DNAT
FirewallPolicyNatRuleCollectionActionTypeDNAT
DNAT
DNAT
DNAT
DNAT
DNAT
DNAT
DNAT
"DNAT"
DNAT

FirewallPolicyNatRuleCollectionResponse

Action Pulumi.AzureNative.Network.Inputs.FirewallPolicyNatRuleCollectionActionResponse

The action type of a Nat rule collection.

Name string

The name of the rule collection.

Priority int

Priority of the Firewall Policy Rule Collection resource.

Rules List<object>

List of rules included in a rule collection.

Action FirewallPolicyNatRuleCollectionActionResponse

The action type of a Nat rule collection.

Name string

The name of the rule collection.

Priority int

Priority of the Firewall Policy Rule Collection resource.

Rules []interface{}

List of rules included in a rule collection.

action FirewallPolicyNatRuleCollectionActionResponse

The action type of a Nat rule collection.

name String

The name of the rule collection.

priority Integer

Priority of the Firewall Policy Rule Collection resource.

rules List<Object>

List of rules included in a rule collection.

action FirewallPolicyNatRuleCollectionActionResponse

The action type of a Nat rule collection.

name string

The name of the rule collection.

priority number

Priority of the Firewall Policy Rule Collection resource.

rules (ApplicationRuleResponse | NatRuleResponse | NetworkRuleResponse)[]

List of rules included in a rule collection.

action FirewallPolicyNatRuleCollectionActionResponse

The action type of a Nat rule collection.

name str

The name of the rule collection.

priority int

Priority of the Firewall Policy Rule Collection resource.

rules Sequence[Union[ApplicationRuleResponse, NatRuleResponse, NetworkRuleResponse]]

List of rules included in a rule collection.

action Property Map

The action type of a Nat rule collection.

name String

The name of the rule collection.

priority Number

Priority of the Firewall Policy Rule Collection resource.

rules List<Property Map | Property Map | Property Map>

List of rules included in a rule collection.

FirewallPolicyRuleApplicationProtocol

Port int

Port number for the protocol, cannot be greater than 64000.

ProtocolType string | Pulumi.AzureNative.Network.FirewallPolicyRuleApplicationProtocolType

Protocol type.

Port int

Port number for the protocol, cannot be greater than 64000.

ProtocolType string | FirewallPolicyRuleApplicationProtocolType

Protocol type.

port Integer

Port number for the protocol, cannot be greater than 64000.

protocolType String | FirewallPolicyRuleApplicationProtocolType

Protocol type.

port number

Port number for the protocol, cannot be greater than 64000.

protocolType string | FirewallPolicyRuleApplicationProtocolType

Protocol type.

port int

Port number for the protocol, cannot be greater than 64000.

protocol_type str | FirewallPolicyRuleApplicationProtocolType

Protocol type.

port Number

Port number for the protocol, cannot be greater than 64000.

protocolType String | "Http" | "Https"

Protocol type.

FirewallPolicyRuleApplicationProtocolResponse

Port int

Port number for the protocol, cannot be greater than 64000.

ProtocolType string

Protocol type.

Port int

Port number for the protocol, cannot be greater than 64000.

ProtocolType string

Protocol type.

port Integer

Port number for the protocol, cannot be greater than 64000.

protocolType String

Protocol type.

port number

Port number for the protocol, cannot be greater than 64000.

protocolType string

Protocol type.

port int

Port number for the protocol, cannot be greater than 64000.

protocol_type str

Protocol type.

port Number

Port number for the protocol, cannot be greater than 64000.

protocolType String

Protocol type.

FirewallPolicyRuleApplicationProtocolType

Http
Http
Https
Https
FirewallPolicyRuleApplicationProtocolTypeHttp
Http
FirewallPolicyRuleApplicationProtocolTypeHttps
Https
Http
Http
Https
Https
Http
Http
Https
Https
HTTP
Http
HTTPS
Https
"Http"
Http
"Https"
Https

FirewallPolicyRuleNetworkProtocol

TCP
TCP
UDP
UDP
Any
Any
ICMP
ICMP
FirewallPolicyRuleNetworkProtocolTCP
TCP
FirewallPolicyRuleNetworkProtocolUDP
UDP
FirewallPolicyRuleNetworkProtocolAny
Any
FirewallPolicyRuleNetworkProtocolICMP
ICMP
TCP
TCP
UDP
UDP
Any
Any
ICMP
ICMP
TCP
TCP
UDP
UDP
Any
Any
ICMP
ICMP
TCP
TCP
UDP
UDP
ANY
Any
ICMP
ICMP
"TCP"
TCP
"UDP"
UDP
"Any"
Any
"ICMP"
ICMP

NatRule

Description string

Description of the rule.

DestinationAddresses List<string>

List of destination IP addresses or Service Tags.

DestinationPorts List<string>

List of destination ports.

IpProtocols List<Union<string, Pulumi.AzureNative.Network.FirewallPolicyRuleNetworkProtocol>>

Array of FirewallPolicyRuleNetworkProtocols.

Name string

Name of the rule.

SourceAddresses List<string>

List of source IP addresses for this rule.

SourceIpGroups List<string>

List of source IpGroups for this rule.

TranslatedAddress string

The translated address for this NAT rule.

TranslatedFqdn string

The translated FQDN for this NAT rule.

TranslatedPort string

The translated port for this NAT rule.

Description string

Description of the rule.

DestinationAddresses []string

List of destination IP addresses or Service Tags.

DestinationPorts []string

List of destination ports.

IpProtocols []string

Array of FirewallPolicyRuleNetworkProtocols.

Name string

Name of the rule.

SourceAddresses []string

List of source IP addresses for this rule.

SourceIpGroups []string

List of source IpGroups for this rule.

TranslatedAddress string

The translated address for this NAT rule.

TranslatedFqdn string

The translated FQDN for this NAT rule.

TranslatedPort string

The translated port for this NAT rule.

description String

Description of the rule.

destinationAddresses List<String>

List of destination IP addresses or Service Tags.

destinationPorts List<String>

List of destination ports.

ipProtocols List<Either<String,FirewallPolicyRuleNetworkProtocol>>

Array of FirewallPolicyRuleNetworkProtocols.

name String

Name of the rule.

sourceAddresses List<String>

List of source IP addresses for this rule.

sourceIpGroups List<String>

List of source IpGroups for this rule.

translatedAddress String

The translated address for this NAT rule.

translatedFqdn String

The translated FQDN for this NAT rule.

translatedPort String

The translated port for this NAT rule.

description string

Description of the rule.

destinationAddresses string[]

List of destination IP addresses or Service Tags.

destinationPorts string[]

List of destination ports.

ipProtocols (string | FirewallPolicyRuleNetworkProtocol)[]

Array of FirewallPolicyRuleNetworkProtocols.

name string

Name of the rule.

sourceAddresses string[]

List of source IP addresses for this rule.

sourceIpGroups string[]

List of source IpGroups for this rule.

translatedAddress string

The translated address for this NAT rule.

translatedFqdn string

The translated FQDN for this NAT rule.

translatedPort string

The translated port for this NAT rule.

description str

Description of the rule.

destination_addresses Sequence[str]

List of destination IP addresses or Service Tags.

destination_ports Sequence[str]

List of destination ports.

ip_protocols Sequence[Union[str, FirewallPolicyRuleNetworkProtocol]]

Array of FirewallPolicyRuleNetworkProtocols.

name str

Name of the rule.

source_addresses Sequence[str]

List of source IP addresses for this rule.

source_ip_groups Sequence[str]

List of source IpGroups for this rule.

translated_address str

The translated address for this NAT rule.

translated_fqdn str

The translated FQDN for this NAT rule.

translated_port str

The translated port for this NAT rule.

description String

Description of the rule.

destinationAddresses List<String>

List of destination IP addresses or Service Tags.

destinationPorts List<String>

List of destination ports.

ipProtocols List<String | "TCP" | "UDP" | "Any" | "ICMP">

Array of FirewallPolicyRuleNetworkProtocols.

name String

Name of the rule.

sourceAddresses List<String>

List of source IP addresses for this rule.

sourceIpGroups List<String>

List of source IpGroups for this rule.

translatedAddress String

The translated address for this NAT rule.

translatedFqdn String

The translated FQDN for this NAT rule.

translatedPort String

The translated port for this NAT rule.

NatRuleResponse

Description string

Description of the rule.

DestinationAddresses List<string>

List of destination IP addresses or Service Tags.

DestinationPorts List<string>

List of destination ports.

IpProtocols List<string>

Array of FirewallPolicyRuleNetworkProtocols.

Name string

Name of the rule.

SourceAddresses List<string>

List of source IP addresses for this rule.

SourceIpGroups List<string>

List of source IpGroups for this rule.

TranslatedAddress string

The translated address for this NAT rule.

TranslatedFqdn string

The translated FQDN for this NAT rule.

TranslatedPort string

The translated port for this NAT rule.

Description string

Description of the rule.

DestinationAddresses []string

List of destination IP addresses or Service Tags.

DestinationPorts []string

List of destination ports.

IpProtocols []string

Array of FirewallPolicyRuleNetworkProtocols.

Name string

Name of the rule.

SourceAddresses []string

List of source IP addresses for this rule.

SourceIpGroups []string

List of source IpGroups for this rule.

TranslatedAddress string

The translated address for this NAT rule.

TranslatedFqdn string

The translated FQDN for this NAT rule.

TranslatedPort string

The translated port for this NAT rule.

description String

Description of the rule.

destinationAddresses List<String>

List of destination IP addresses or Service Tags.

destinationPorts List<String>

List of destination ports.

ipProtocols List<String>

Array of FirewallPolicyRuleNetworkProtocols.

name String

Name of the rule.

sourceAddresses List<String>

List of source IP addresses for this rule.

sourceIpGroups List<String>

List of source IpGroups for this rule.

translatedAddress String

The translated address for this NAT rule.

translatedFqdn String

The translated FQDN for this NAT rule.

translatedPort String

The translated port for this NAT rule.

description string

Description of the rule.

destinationAddresses string[]

List of destination IP addresses or Service Tags.

destinationPorts string[]

List of destination ports.

ipProtocols string[]

Array of FirewallPolicyRuleNetworkProtocols.

name string

Name of the rule.

sourceAddresses string[]

List of source IP addresses for this rule.

sourceIpGroups string[]

List of source IpGroups for this rule.

translatedAddress string

The translated address for this NAT rule.

translatedFqdn string

The translated FQDN for this NAT rule.

translatedPort string

The translated port for this NAT rule.

description str

Description of the rule.

destination_addresses Sequence[str]

List of destination IP addresses or Service Tags.

destination_ports Sequence[str]

List of destination ports.

ip_protocols Sequence[str]

Array of FirewallPolicyRuleNetworkProtocols.

name str

Name of the rule.

source_addresses Sequence[str]

List of source IP addresses for this rule.

source_ip_groups Sequence[str]

List of source IpGroups for this rule.

translated_address str

The translated address for this NAT rule.

translated_fqdn str

The translated FQDN for this NAT rule.

translated_port str

The translated port for this NAT rule.

description String

Description of the rule.

destinationAddresses List<String>

List of destination IP addresses or Service Tags.

destinationPorts List<String>

List of destination ports.

ipProtocols List<String>

Array of FirewallPolicyRuleNetworkProtocols.

name String

Name of the rule.

sourceAddresses List<String>

List of source IP addresses for this rule.

sourceIpGroups List<String>

List of source IpGroups for this rule.

translatedAddress String

The translated address for this NAT rule.

translatedFqdn String

The translated FQDN for this NAT rule.

translatedPort String

The translated port for this NAT rule.

NetworkRule

Description string

Description of the rule.

DestinationAddresses List<string>

List of destination IP addresses or Service Tags.

DestinationFqdns List<string>

List of destination FQDNs.

DestinationIpGroups List<string>

List of destination IpGroups for this rule.

DestinationPorts List<string>

List of destination ports.

IpProtocols List<Union<string, Pulumi.AzureNative.Network.FirewallPolicyRuleNetworkProtocol>>

Array of FirewallPolicyRuleNetworkProtocols.

Name string

Name of the rule.

SourceAddresses List<string>

List of source IP addresses for this rule.

SourceIpGroups List<string>

List of source IpGroups for this rule.

Description string

Description of the rule.

DestinationAddresses []string

List of destination IP addresses or Service Tags.

DestinationFqdns []string

List of destination FQDNs.

DestinationIpGroups []string

List of destination IpGroups for this rule.

DestinationPorts []string

List of destination ports.

IpProtocols []string

Array of FirewallPolicyRuleNetworkProtocols.

Name string

Name of the rule.

SourceAddresses []string

List of source IP addresses for this rule.

SourceIpGroups []string

List of source IpGroups for this rule.

description String

Description of the rule.

destinationAddresses List<String>

List of destination IP addresses or Service Tags.

destinationFqdns List<String>

List of destination FQDNs.

destinationIpGroups List<String>

List of destination IpGroups for this rule.

destinationPorts List<String>

List of destination ports.

ipProtocols List<Either<String,FirewallPolicyRuleNetworkProtocol>>

Array of FirewallPolicyRuleNetworkProtocols.

name String

Name of the rule.

sourceAddresses List<String>

List of source IP addresses for this rule.

sourceIpGroups List<String>

List of source IpGroups for this rule.

description string

Description of the rule.

destinationAddresses string[]

List of destination IP addresses or Service Tags.

destinationFqdns string[]

List of destination FQDNs.

destinationIpGroups string[]

List of destination IpGroups for this rule.

destinationPorts string[]

List of destination ports.

ipProtocols (string | FirewallPolicyRuleNetworkProtocol)[]

Array of FirewallPolicyRuleNetworkProtocols.

name string

Name of the rule.

sourceAddresses string[]

List of source IP addresses for this rule.

sourceIpGroups string[]

List of source IpGroups for this rule.

description str

Description of the rule.

destination_addresses Sequence[str]

List of destination IP addresses or Service Tags.

destination_fqdns Sequence[str]

List of destination FQDNs.

destination_ip_groups Sequence[str]

List of destination IpGroups for this rule.

destination_ports Sequence[str]

List of destination ports.

ip_protocols Sequence[Union[str, FirewallPolicyRuleNetworkProtocol]]

Array of FirewallPolicyRuleNetworkProtocols.

name str

Name of the rule.

source_addresses Sequence[str]

List of source IP addresses for this rule.

source_ip_groups Sequence[str]

List of source IpGroups for this rule.

description String

Description of the rule.

destinationAddresses List<String>

List of destination IP addresses or Service Tags.

destinationFqdns List<String>

List of destination FQDNs.

destinationIpGroups List<String>

List of destination IpGroups for this rule.

destinationPorts List<String>

List of destination ports.

ipProtocols List<String | "TCP" | "UDP" | "Any" | "ICMP">

Array of FirewallPolicyRuleNetworkProtocols.

name String

Name of the rule.

sourceAddresses List<String>

List of source IP addresses for this rule.

sourceIpGroups List<String>

List of source IpGroups for this rule.

NetworkRuleResponse

Description string

Description of the rule.

DestinationAddresses List<string>

List of destination IP addresses or Service Tags.

DestinationFqdns List<string>

List of destination FQDNs.

DestinationIpGroups List<string>

List of destination IpGroups for this rule.

DestinationPorts List<string>

List of destination ports.

IpProtocols List<string>

Array of FirewallPolicyRuleNetworkProtocols.

Name string

Name of the rule.

SourceAddresses List<string>

List of source IP addresses for this rule.

SourceIpGroups List<string>

List of source IpGroups for this rule.

Description string

Description of the rule.

DestinationAddresses []string

List of destination IP addresses or Service Tags.

DestinationFqdns []string

List of destination FQDNs.

DestinationIpGroups []string

List of destination IpGroups for this rule.

DestinationPorts []string

List of destination ports.

IpProtocols []string

Array of FirewallPolicyRuleNetworkProtocols.

Name string

Name of the rule.

SourceAddresses []string

List of source IP addresses for this rule.

SourceIpGroups []string

List of source IpGroups for this rule.

description String

Description of the rule.

destinationAddresses List<String>

List of destination IP addresses or Service Tags.

destinationFqdns List<String>

List of destination FQDNs.

destinationIpGroups List<String>

List of destination IpGroups for this rule.

destinationPorts List<String>

List of destination ports.

ipProtocols List<String>

Array of FirewallPolicyRuleNetworkProtocols.

name String

Name of the rule.

sourceAddresses List<String>

List of source IP addresses for this rule.

sourceIpGroups List<String>

List of source IpGroups for this rule.

description string

Description of the rule.

destinationAddresses string[]

List of destination IP addresses or Service Tags.

destinationFqdns string[]

List of destination FQDNs.

destinationIpGroups string[]

List of destination IpGroups for this rule.

destinationPorts string[]

List of destination ports.

ipProtocols string[]

Array of FirewallPolicyRuleNetworkProtocols.

name string

Name of the rule.

sourceAddresses string[]

List of source IP addresses for this rule.

sourceIpGroups string[]

List of source IpGroups for this rule.

description str

Description of the rule.

destination_addresses Sequence[str]

List of destination IP addresses or Service Tags.

destination_fqdns Sequence[str]

List of destination FQDNs.

destination_ip_groups Sequence[str]

List of destination IpGroups for this rule.

destination_ports Sequence[str]

List of destination ports.

ip_protocols Sequence[str]

Array of FirewallPolicyRuleNetworkProtocols.

name str

Name of the rule.

source_addresses Sequence[str]

List of source IP addresses for this rule.

source_ip_groups Sequence[str]

List of source IpGroups for this rule.

description String

Description of the rule.

destinationAddresses List<String>

List of destination IP addresses or Service Tags.

destinationFqdns List<String>

List of destination FQDNs.

destinationIpGroups List<String>

List of destination IpGroups for this rule.

destinationPorts List<String>

List of destination ports.

ipProtocols List<String>

Array of FirewallPolicyRuleNetworkProtocols.

name String

Name of the rule.

sourceAddresses List<String>

List of source IP addresses for this rule.

sourceIpGroups List<String>

List of source IpGroups for this rule.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:network:FirewallPolicyRuleCollectionGroup firewallPolicy /subscriptions/e747cc13-97d4-4a79-b463-42d7f4e558f2/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0