1. Packages
  2. Azure Classic
  3. API Docs
  4. network
  5. FirewallApplicationRuleCollection

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

azure.network.FirewallApplicationRuleCollection

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Manages an Application Rule Collection within an Azure Firewall.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "example-resources",
        location: "West Europe",
    });
    const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
        name: "testvnet",
        addressSpaces: ["10.0.0.0/16"],
        location: example.location,
        resourceGroupName: example.name,
    });
    const exampleSubnet = new azure.network.Subnet("example", {
        name: "AzureFirewallSubnet",
        resourceGroupName: example.name,
        virtualNetworkName: exampleVirtualNetwork.name,
        addressPrefixes: ["10.0.1.0/24"],
    });
    const examplePublicIp = new azure.network.PublicIp("example", {
        name: "testpip",
        location: example.location,
        resourceGroupName: example.name,
        allocationMethod: "Static",
        sku: "Standard",
    });
    const exampleFirewall = new azure.network.Firewall("example", {
        name: "testfirewall",
        location: example.location,
        resourceGroupName: example.name,
        skuName: "AZFW_VNet",
        skuTier: "Standard",
        ipConfigurations: [{
            name: "configuration",
            subnetId: exampleSubnet.id,
            publicIpAddressId: examplePublicIp.id,
        }],
    });
    const exampleFirewallApplicationRuleCollection = new azure.network.FirewallApplicationRuleCollection("example", {
        name: "testcollection",
        azureFirewallName: exampleFirewall.name,
        resourceGroupName: example.name,
        priority: 100,
        action: "Allow",
        rules: [{
            name: "testrule",
            sourceAddresses: ["10.0.0.0/16"],
            targetFqdns: ["*.google.com"],
            protocols: [{
                port: 443,
                type: "Https",
            }],
        }],
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    example_virtual_network = azure.network.VirtualNetwork("example",
        name="testvnet",
        address_spaces=["10.0.0.0/16"],
        location=example.location,
        resource_group_name=example.name)
    example_subnet = azure.network.Subnet("example",
        name="AzureFirewallSubnet",
        resource_group_name=example.name,
        virtual_network_name=example_virtual_network.name,
        address_prefixes=["10.0.1.0/24"])
    example_public_ip = azure.network.PublicIp("example",
        name="testpip",
        location=example.location,
        resource_group_name=example.name,
        allocation_method="Static",
        sku="Standard")
    example_firewall = azure.network.Firewall("example",
        name="testfirewall",
        location=example.location,
        resource_group_name=example.name,
        sku_name="AZFW_VNet",
        sku_tier="Standard",
        ip_configurations=[{
            "name": "configuration",
            "subnet_id": example_subnet.id,
            "public_ip_address_id": example_public_ip.id,
        }])
    example_firewall_application_rule_collection = azure.network.FirewallApplicationRuleCollection("example",
        name="testcollection",
        azure_firewall_name=example_firewall.name,
        resource_group_name=example.name,
        priority=100,
        action="Allow",
        rules=[{
            "name": "testrule",
            "source_addresses": ["10.0.0.0/16"],
            "target_fqdns": ["*.google.com"],
            "protocols": [{
                "port": 443,
                "type": "Https",
            }],
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
    			Name: pulumi.String("testvnet"),
    			AddressSpaces: pulumi.StringArray{
    				pulumi.String("10.0.0.0/16"),
    			},
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    		})
    		if err != nil {
    			return err
    		}
    		exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{
    			Name:               pulumi.String("AzureFirewallSubnet"),
    			ResourceGroupName:  example.Name,
    			VirtualNetworkName: exampleVirtualNetwork.Name,
    			AddressPrefixes: pulumi.StringArray{
    				pulumi.String("10.0.1.0/24"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		examplePublicIp, err := network.NewPublicIp(ctx, "example", &network.PublicIpArgs{
    			Name:              pulumi.String("testpip"),
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    			AllocationMethod:  pulumi.String("Static"),
    			Sku:               pulumi.String("Standard"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleFirewall, err := network.NewFirewall(ctx, "example", &network.FirewallArgs{
    			Name:              pulumi.String("testfirewall"),
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    			SkuName:           pulumi.String("AZFW_VNet"),
    			SkuTier:           pulumi.String("Standard"),
    			IpConfigurations: network.FirewallIpConfigurationArray{
    				&network.FirewallIpConfigurationArgs{
    					Name:              pulumi.String("configuration"),
    					SubnetId:          exampleSubnet.ID(),
    					PublicIpAddressId: examplePublicIp.ID(),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = network.NewFirewallApplicationRuleCollection(ctx, "example", &network.FirewallApplicationRuleCollectionArgs{
    			Name:              pulumi.String("testcollection"),
    			AzureFirewallName: exampleFirewall.Name,
    			ResourceGroupName: example.Name,
    			Priority:          pulumi.Int(100),
    			Action:            pulumi.String("Allow"),
    			Rules: network.FirewallApplicationRuleCollectionRuleArray{
    				&network.FirewallApplicationRuleCollectionRuleArgs{
    					Name: pulumi.String("testrule"),
    					SourceAddresses: pulumi.StringArray{
    						pulumi.String("10.0.0.0/16"),
    					},
    					TargetFqdns: pulumi.StringArray{
    						pulumi.String("*.google.com"),
    					},
    					Protocols: network.FirewallApplicationRuleCollectionRuleProtocolArray{
    						&network.FirewallApplicationRuleCollectionRuleProtocolArgs{
    							Port: pulumi.Int(443),
    							Type: pulumi.String("Https"),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-resources",
            Location = "West Europe",
        });
    
        var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("example", new()
        {
            Name = "testvnet",
            AddressSpaces = new[]
            {
                "10.0.0.0/16",
            },
            Location = example.Location,
            ResourceGroupName = example.Name,
        });
    
        var exampleSubnet = new Azure.Network.Subnet("example", new()
        {
            Name = "AzureFirewallSubnet",
            ResourceGroupName = example.Name,
            VirtualNetworkName = exampleVirtualNetwork.Name,
            AddressPrefixes = new[]
            {
                "10.0.1.0/24",
            },
        });
    
        var examplePublicIp = new Azure.Network.PublicIp("example", new()
        {
            Name = "testpip",
            Location = example.Location,
            ResourceGroupName = example.Name,
            AllocationMethod = "Static",
            Sku = "Standard",
        });
    
        var exampleFirewall = new Azure.Network.Firewall("example", new()
        {
            Name = "testfirewall",
            Location = example.Location,
            ResourceGroupName = example.Name,
            SkuName = "AZFW_VNet",
            SkuTier = "Standard",
            IpConfigurations = new[]
            {
                new Azure.Network.Inputs.FirewallIpConfigurationArgs
                {
                    Name = "configuration",
                    SubnetId = exampleSubnet.Id,
                    PublicIpAddressId = examplePublicIp.Id,
                },
            },
        });
    
        var exampleFirewallApplicationRuleCollection = new Azure.Network.FirewallApplicationRuleCollection("example", new()
        {
            Name = "testcollection",
            AzureFirewallName = exampleFirewall.Name,
            ResourceGroupName = example.Name,
            Priority = 100,
            Action = "Allow",
            Rules = new[]
            {
                new Azure.Network.Inputs.FirewallApplicationRuleCollectionRuleArgs
                {
                    Name = "testrule",
                    SourceAddresses = new[]
                    {
                        "10.0.0.0/16",
                    },
                    TargetFqdns = new[]
                    {
                        "*.google.com",
                    },
                    Protocols = new[]
                    {
                        new Azure.Network.Inputs.FirewallApplicationRuleCollectionRuleProtocolArgs
                        {
                            Port = 443,
                            Type = "Https",
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.network.VirtualNetwork;
    import com.pulumi.azure.network.VirtualNetworkArgs;
    import com.pulumi.azure.network.Subnet;
    import com.pulumi.azure.network.SubnetArgs;
    import com.pulumi.azure.network.PublicIp;
    import com.pulumi.azure.network.PublicIpArgs;
    import com.pulumi.azure.network.Firewall;
    import com.pulumi.azure.network.FirewallArgs;
    import com.pulumi.azure.network.inputs.FirewallIpConfigurationArgs;
    import com.pulumi.azure.network.FirewallApplicationRuleCollection;
    import com.pulumi.azure.network.FirewallApplicationRuleCollectionArgs;
    import com.pulumi.azure.network.inputs.FirewallApplicationRuleCollectionRuleArgs;
    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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .name("example-resources")
                .location("West Europe")
                .build());
    
            var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
                .name("testvnet")
                .addressSpaces("10.0.0.0/16")
                .location(example.location())
                .resourceGroupName(example.name())
                .build());
    
            var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
                .name("AzureFirewallSubnet")
                .resourceGroupName(example.name())
                .virtualNetworkName(exampleVirtualNetwork.name())
                .addressPrefixes("10.0.1.0/24")
                .build());
    
            var examplePublicIp = new PublicIp("examplePublicIp", PublicIpArgs.builder()
                .name("testpip")
                .location(example.location())
                .resourceGroupName(example.name())
                .allocationMethod("Static")
                .sku("Standard")
                .build());
    
            var exampleFirewall = new Firewall("exampleFirewall", FirewallArgs.builder()
                .name("testfirewall")
                .location(example.location())
                .resourceGroupName(example.name())
                .skuName("AZFW_VNet")
                .skuTier("Standard")
                .ipConfigurations(FirewallIpConfigurationArgs.builder()
                    .name("configuration")
                    .subnetId(exampleSubnet.id())
                    .publicIpAddressId(examplePublicIp.id())
                    .build())
                .build());
    
            var exampleFirewallApplicationRuleCollection = new FirewallApplicationRuleCollection("exampleFirewallApplicationRuleCollection", FirewallApplicationRuleCollectionArgs.builder()
                .name("testcollection")
                .azureFirewallName(exampleFirewall.name())
                .resourceGroupName(example.name())
                .priority(100)
                .action("Allow")
                .rules(FirewallApplicationRuleCollectionRuleArgs.builder()
                    .name("testrule")
                    .sourceAddresses("10.0.0.0/16")
                    .targetFqdns("*.google.com")
                    .protocols(FirewallApplicationRuleCollectionRuleProtocolArgs.builder()
                        .port("443")
                        .type("Https")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      exampleVirtualNetwork:
        type: azure:network:VirtualNetwork
        name: example
        properties:
          name: testvnet
          addressSpaces:
            - 10.0.0.0/16
          location: ${example.location}
          resourceGroupName: ${example.name}
      exampleSubnet:
        type: azure:network:Subnet
        name: example
        properties:
          name: AzureFirewallSubnet
          resourceGroupName: ${example.name}
          virtualNetworkName: ${exampleVirtualNetwork.name}
          addressPrefixes:
            - 10.0.1.0/24
      examplePublicIp:
        type: azure:network:PublicIp
        name: example
        properties:
          name: testpip
          location: ${example.location}
          resourceGroupName: ${example.name}
          allocationMethod: Static
          sku: Standard
      exampleFirewall:
        type: azure:network:Firewall
        name: example
        properties:
          name: testfirewall
          location: ${example.location}
          resourceGroupName: ${example.name}
          skuName: AZFW_VNet
          skuTier: Standard
          ipConfigurations:
            - name: configuration
              subnetId: ${exampleSubnet.id}
              publicIpAddressId: ${examplePublicIp.id}
      exampleFirewallApplicationRuleCollection:
        type: azure:network:FirewallApplicationRuleCollection
        name: example
        properties:
          name: testcollection
          azureFirewallName: ${exampleFirewall.name}
          resourceGroupName: ${example.name}
          priority: 100
          action: Allow
          rules:
            - name: testrule
              sourceAddresses:
                - 10.0.0.0/16
              targetFqdns:
                - '*.google.com'
              protocols:
                - port: '443'
                  type: Https
    

    Create FirewallApplicationRuleCollection Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new FirewallApplicationRuleCollection(name: string, args: FirewallApplicationRuleCollectionArgs, opts?: CustomResourceOptions);
    @overload
    def FirewallApplicationRuleCollection(resource_name: str,
                                          args: FirewallApplicationRuleCollectionArgs,
                                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def FirewallApplicationRuleCollection(resource_name: str,
                                          opts: Optional[ResourceOptions] = None,
                                          action: Optional[str] = None,
                                          azure_firewall_name: Optional[str] = None,
                                          priority: Optional[int] = None,
                                          resource_group_name: Optional[str] = None,
                                          rules: Optional[Sequence[FirewallApplicationRuleCollectionRuleArgs]] = None,
                                          name: Optional[str] = None)
    func NewFirewallApplicationRuleCollection(ctx *Context, name string, args FirewallApplicationRuleCollectionArgs, opts ...ResourceOption) (*FirewallApplicationRuleCollection, error)
    public FirewallApplicationRuleCollection(string name, FirewallApplicationRuleCollectionArgs args, CustomResourceOptions? opts = null)
    public FirewallApplicationRuleCollection(String name, FirewallApplicationRuleCollectionArgs args)
    public FirewallApplicationRuleCollection(String name, FirewallApplicationRuleCollectionArgs args, CustomResourceOptions options)
    
    type: azure:network:FirewallApplicationRuleCollection
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args FirewallApplicationRuleCollectionArgs
    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 FirewallApplicationRuleCollectionArgs
    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 FirewallApplicationRuleCollectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FirewallApplicationRuleCollectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FirewallApplicationRuleCollectionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var firewallApplicationRuleCollectionResource = new Azure.Network.FirewallApplicationRuleCollection("firewallApplicationRuleCollectionResource", new()
    {
        Action = "string",
        AzureFirewallName = "string",
        Priority = 0,
        ResourceGroupName = "string",
        Rules = new[]
        {
            new Azure.Network.Inputs.FirewallApplicationRuleCollectionRuleArgs
            {
                Name = "string",
                Description = "string",
                FqdnTags = new[]
                {
                    "string",
                },
                Protocols = new[]
                {
                    new Azure.Network.Inputs.FirewallApplicationRuleCollectionRuleProtocolArgs
                    {
                        Port = 0,
                        Type = "string",
                    },
                },
                SourceAddresses = new[]
                {
                    "string",
                },
                SourceIpGroups = new[]
                {
                    "string",
                },
                TargetFqdns = new[]
                {
                    "string",
                },
            },
        },
        Name = "string",
    });
    
    example, err := network.NewFirewallApplicationRuleCollection(ctx, "firewallApplicationRuleCollectionResource", &network.FirewallApplicationRuleCollectionArgs{
    	Action:            pulumi.String("string"),
    	AzureFirewallName: pulumi.String("string"),
    	Priority:          pulumi.Int(0),
    	ResourceGroupName: pulumi.String("string"),
    	Rules: network.FirewallApplicationRuleCollectionRuleArray{
    		&network.FirewallApplicationRuleCollectionRuleArgs{
    			Name:        pulumi.String("string"),
    			Description: pulumi.String("string"),
    			FqdnTags: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Protocols: network.FirewallApplicationRuleCollectionRuleProtocolArray{
    				&network.FirewallApplicationRuleCollectionRuleProtocolArgs{
    					Port: pulumi.Int(0),
    					Type: pulumi.String("string"),
    				},
    			},
    			SourceAddresses: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			SourceIpGroups: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			TargetFqdns: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	Name: pulumi.String("string"),
    })
    
    var firewallApplicationRuleCollectionResource = new FirewallApplicationRuleCollection("firewallApplicationRuleCollectionResource", FirewallApplicationRuleCollectionArgs.builder()
        .action("string")
        .azureFirewallName("string")
        .priority(0)
        .resourceGroupName("string")
        .rules(FirewallApplicationRuleCollectionRuleArgs.builder()
            .name("string")
            .description("string")
            .fqdnTags("string")
            .protocols(FirewallApplicationRuleCollectionRuleProtocolArgs.builder()
                .port(0)
                .type("string")
                .build())
            .sourceAddresses("string")
            .sourceIpGroups("string")
            .targetFqdns("string")
            .build())
        .name("string")
        .build());
    
    firewall_application_rule_collection_resource = azure.network.FirewallApplicationRuleCollection("firewallApplicationRuleCollectionResource",
        action="string",
        azure_firewall_name="string",
        priority=0,
        resource_group_name="string",
        rules=[{
            "name": "string",
            "description": "string",
            "fqdn_tags": ["string"],
            "protocols": [{
                "port": 0,
                "type": "string",
            }],
            "source_addresses": ["string"],
            "source_ip_groups": ["string"],
            "target_fqdns": ["string"],
        }],
        name="string")
    
    const firewallApplicationRuleCollectionResource = new azure.network.FirewallApplicationRuleCollection("firewallApplicationRuleCollectionResource", {
        action: "string",
        azureFirewallName: "string",
        priority: 0,
        resourceGroupName: "string",
        rules: [{
            name: "string",
            description: "string",
            fqdnTags: ["string"],
            protocols: [{
                port: 0,
                type: "string",
            }],
            sourceAddresses: ["string"],
            sourceIpGroups: ["string"],
            targetFqdns: ["string"],
        }],
        name: "string",
    });
    
    type: azure:network:FirewallApplicationRuleCollection
    properties:
        action: string
        azureFirewallName: string
        name: string
        priority: 0
        resourceGroupName: string
        rules:
            - description: string
              fqdnTags:
                - string
              name: string
              protocols:
                - port: 0
                  type: string
              sourceAddresses:
                - string
              sourceIpGroups:
                - string
              targetFqdns:
                - string
    

    FirewallApplicationRuleCollection Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The FirewallApplicationRuleCollection resource accepts the following input properties:

    Action string
    Specifies the action the rule will apply to matching traffic. Possible values are Allow and Deny.
    AzureFirewallName string
    Specifies the name of the Firewall in which the Application Rule Collection should be created. Changing this forces a new resource to be created.
    Priority int
    Specifies the priority of the rule collection. Possible values are between 100 - 65000.
    ResourceGroupName string
    Specifies the name of the Resource Group in which the Firewall exists. Changing this forces a new resource to be created.
    Rules List<FirewallApplicationRuleCollectionRule>
    One or more rule blocks as defined below.
    Name string
    Specifies the name of the Application Rule Collection which must be unique within the Firewall. Changing this forces a new resource to be created.
    Action string
    Specifies the action the rule will apply to matching traffic. Possible values are Allow and Deny.
    AzureFirewallName string
    Specifies the name of the Firewall in which the Application Rule Collection should be created. Changing this forces a new resource to be created.
    Priority int
    Specifies the priority of the rule collection. Possible values are between 100 - 65000.
    ResourceGroupName string
    Specifies the name of the Resource Group in which the Firewall exists. Changing this forces a new resource to be created.
    Rules []FirewallApplicationRuleCollectionRuleArgs
    One or more rule blocks as defined below.
    Name string
    Specifies the name of the Application Rule Collection which must be unique within the Firewall. Changing this forces a new resource to be created.
    action String
    Specifies the action the rule will apply to matching traffic. Possible values are Allow and Deny.
    azureFirewallName String
    Specifies the name of the Firewall in which the Application Rule Collection should be created. Changing this forces a new resource to be created.
    priority Integer
    Specifies the priority of the rule collection. Possible values are between 100 - 65000.
    resourceGroupName String
    Specifies the name of the Resource Group in which the Firewall exists. Changing this forces a new resource to be created.
    rules List<FirewallApplicationRuleCollectionRule>
    One or more rule blocks as defined below.
    name String
    Specifies the name of the Application Rule Collection which must be unique within the Firewall. Changing this forces a new resource to be created.
    action string
    Specifies the action the rule will apply to matching traffic. Possible values are Allow and Deny.
    azureFirewallName string
    Specifies the name of the Firewall in which the Application Rule Collection should be created. Changing this forces a new resource to be created.
    priority number
    Specifies the priority of the rule collection. Possible values are between 100 - 65000.
    resourceGroupName string
    Specifies the name of the Resource Group in which the Firewall exists. Changing this forces a new resource to be created.
    rules FirewallApplicationRuleCollectionRule[]
    One or more rule blocks as defined below.
    name string
    Specifies the name of the Application Rule Collection which must be unique within the Firewall. Changing this forces a new resource to be created.
    action str
    Specifies the action the rule will apply to matching traffic. Possible values are Allow and Deny.
    azure_firewall_name str
    Specifies the name of the Firewall in which the Application Rule Collection should be created. Changing this forces a new resource to be created.
    priority int
    Specifies the priority of the rule collection. Possible values are between 100 - 65000.
    resource_group_name str
    Specifies the name of the Resource Group in which the Firewall exists. Changing this forces a new resource to be created.
    rules Sequence[FirewallApplicationRuleCollectionRuleArgs]
    One or more rule blocks as defined below.
    name str
    Specifies the name of the Application Rule Collection which must be unique within the Firewall. Changing this forces a new resource to be created.
    action String
    Specifies the action the rule will apply to matching traffic. Possible values are Allow and Deny.
    azureFirewallName String
    Specifies the name of the Firewall in which the Application Rule Collection should be created. Changing this forces a new resource to be created.
    priority Number
    Specifies the priority of the rule collection. Possible values are between 100 - 65000.
    resourceGroupName String
    Specifies the name of the Resource Group in which the Firewall exists. Changing this forces a new resource to be created.
    rules List<Property Map>
    One or more rule blocks as defined below.
    name String
    Specifies the name of the Application Rule Collection which must be unique within the Firewall. Changing this forces a new resource to be created.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing FirewallApplicationRuleCollection Resource

    Get an existing FirewallApplicationRuleCollection resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: FirewallApplicationRuleCollectionState, opts?: CustomResourceOptions): FirewallApplicationRuleCollection
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            azure_firewall_name: Optional[str] = None,
            name: Optional[str] = None,
            priority: Optional[int] = None,
            resource_group_name: Optional[str] = None,
            rules: Optional[Sequence[FirewallApplicationRuleCollectionRuleArgs]] = None) -> FirewallApplicationRuleCollection
    func GetFirewallApplicationRuleCollection(ctx *Context, name string, id IDInput, state *FirewallApplicationRuleCollectionState, opts ...ResourceOption) (*FirewallApplicationRuleCollection, error)
    public static FirewallApplicationRuleCollection Get(string name, Input<string> id, FirewallApplicationRuleCollectionState? state, CustomResourceOptions? opts = null)
    public static FirewallApplicationRuleCollection get(String name, Output<String> id, FirewallApplicationRuleCollectionState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Action string
    Specifies the action the rule will apply to matching traffic. Possible values are Allow and Deny.
    AzureFirewallName string
    Specifies the name of the Firewall in which the Application Rule Collection should be created. Changing this forces a new resource to be created.
    Name string
    Specifies the name of the Application Rule Collection which must be unique within the Firewall. Changing this forces a new resource to be created.
    Priority int
    Specifies the priority of the rule collection. Possible values are between 100 - 65000.
    ResourceGroupName string
    Specifies the name of the Resource Group in which the Firewall exists. Changing this forces a new resource to be created.
    Rules List<FirewallApplicationRuleCollectionRule>
    One or more rule blocks as defined below.
    Action string
    Specifies the action the rule will apply to matching traffic. Possible values are Allow and Deny.
    AzureFirewallName string
    Specifies the name of the Firewall in which the Application Rule Collection should be created. Changing this forces a new resource to be created.
    Name string
    Specifies the name of the Application Rule Collection which must be unique within the Firewall. Changing this forces a new resource to be created.
    Priority int
    Specifies the priority of the rule collection. Possible values are between 100 - 65000.
    ResourceGroupName string
    Specifies the name of the Resource Group in which the Firewall exists. Changing this forces a new resource to be created.
    Rules []FirewallApplicationRuleCollectionRuleArgs
    One or more rule blocks as defined below.
    action String
    Specifies the action the rule will apply to matching traffic. Possible values are Allow and Deny.
    azureFirewallName String
    Specifies the name of the Firewall in which the Application Rule Collection should be created. Changing this forces a new resource to be created.
    name String
    Specifies the name of the Application Rule Collection which must be unique within the Firewall. Changing this forces a new resource to be created.
    priority Integer
    Specifies the priority of the rule collection. Possible values are between 100 - 65000.
    resourceGroupName String
    Specifies the name of the Resource Group in which the Firewall exists. Changing this forces a new resource to be created.
    rules List<FirewallApplicationRuleCollectionRule>
    One or more rule blocks as defined below.
    action string
    Specifies the action the rule will apply to matching traffic. Possible values are Allow and Deny.
    azureFirewallName string
    Specifies the name of the Firewall in which the Application Rule Collection should be created. Changing this forces a new resource to be created.
    name string
    Specifies the name of the Application Rule Collection which must be unique within the Firewall. Changing this forces a new resource to be created.
    priority number
    Specifies the priority of the rule collection. Possible values are between 100 - 65000.
    resourceGroupName string
    Specifies the name of the Resource Group in which the Firewall exists. Changing this forces a new resource to be created.
    rules FirewallApplicationRuleCollectionRule[]
    One or more rule blocks as defined below.
    action str
    Specifies the action the rule will apply to matching traffic. Possible values are Allow and Deny.
    azure_firewall_name str
    Specifies the name of the Firewall in which the Application Rule Collection should be created. Changing this forces a new resource to be created.
    name str
    Specifies the name of the Application Rule Collection which must be unique within the Firewall. Changing this forces a new resource to be created.
    priority int
    Specifies the priority of the rule collection. Possible values are between 100 - 65000.
    resource_group_name str
    Specifies the name of the Resource Group in which the Firewall exists. Changing this forces a new resource to be created.
    rules Sequence[FirewallApplicationRuleCollectionRuleArgs]
    One or more rule blocks as defined below.
    action String
    Specifies the action the rule will apply to matching traffic. Possible values are Allow and Deny.
    azureFirewallName String
    Specifies the name of the Firewall in which the Application Rule Collection should be created. Changing this forces a new resource to be created.
    name String
    Specifies the name of the Application Rule Collection which must be unique within the Firewall. Changing this forces a new resource to be created.
    priority Number
    Specifies the priority of the rule collection. Possible values are between 100 - 65000.
    resourceGroupName String
    Specifies the name of the Resource Group in which the Firewall exists. Changing this forces a new resource to be created.
    rules List<Property Map>
    One or more rule blocks as defined below.

    Supporting Types

    FirewallApplicationRuleCollectionRule, FirewallApplicationRuleCollectionRuleArgs

    Name string
    Specifies the name of the rule.
    Description string
    Specifies a description for the rule.
    FqdnTags List<string>
    A list of FQDN tags. Possible values are AppServiceEnvironment, AzureBackup, AzureKubernetesService, HDInsight, MicrosoftActiveProtectionService, WindowsDiagnostics, WindowsUpdate and WindowsVirtualDesktop.
    Protocols List<FirewallApplicationRuleCollectionRuleProtocol>
    One or more protocol blocks as defined below.
    SourceAddresses List<string>
    A list of source IP addresses and/or IP ranges.
    SourceIpGroups List<string>

    A list of source IP Group IDs for the rule.

    NOTE At least one of source_addresses and source_ip_groups must be specified for a rule.

    TargetFqdns List<string>
    A list of FQDNs.
    Name string
    Specifies the name of the rule.
    Description string
    Specifies a description for the rule.
    FqdnTags []string
    A list of FQDN tags. Possible values are AppServiceEnvironment, AzureBackup, AzureKubernetesService, HDInsight, MicrosoftActiveProtectionService, WindowsDiagnostics, WindowsUpdate and WindowsVirtualDesktop.
    Protocols []FirewallApplicationRuleCollectionRuleProtocol
    One or more protocol blocks as defined below.
    SourceAddresses []string
    A list of source IP addresses and/or IP ranges.
    SourceIpGroups []string

    A list of source IP Group IDs for the rule.

    NOTE At least one of source_addresses and source_ip_groups must be specified for a rule.

    TargetFqdns []string
    A list of FQDNs.
    name String
    Specifies the name of the rule.
    description String
    Specifies a description for the rule.
    fqdnTags List<String>
    A list of FQDN tags. Possible values are AppServiceEnvironment, AzureBackup, AzureKubernetesService, HDInsight, MicrosoftActiveProtectionService, WindowsDiagnostics, WindowsUpdate and WindowsVirtualDesktop.
    protocols List<FirewallApplicationRuleCollectionRuleProtocol>
    One or more protocol blocks as defined below.
    sourceAddresses List<String>
    A list of source IP addresses and/or IP ranges.
    sourceIpGroups List<String>

    A list of source IP Group IDs for the rule.

    NOTE At least one of source_addresses and source_ip_groups must be specified for a rule.

    targetFqdns List<String>
    A list of FQDNs.
    name string
    Specifies the name of the rule.
    description string
    Specifies a description for the rule.
    fqdnTags string[]
    A list of FQDN tags. Possible values are AppServiceEnvironment, AzureBackup, AzureKubernetesService, HDInsight, MicrosoftActiveProtectionService, WindowsDiagnostics, WindowsUpdate and WindowsVirtualDesktop.
    protocols FirewallApplicationRuleCollectionRuleProtocol[]
    One or more protocol blocks as defined below.
    sourceAddresses string[]
    A list of source IP addresses and/or IP ranges.
    sourceIpGroups string[]

    A list of source IP Group IDs for the rule.

    NOTE At least one of source_addresses and source_ip_groups must be specified for a rule.

    targetFqdns string[]
    A list of FQDNs.
    name str
    Specifies the name of the rule.
    description str
    Specifies a description for the rule.
    fqdn_tags Sequence[str]
    A list of FQDN tags. Possible values are AppServiceEnvironment, AzureBackup, AzureKubernetesService, HDInsight, MicrosoftActiveProtectionService, WindowsDiagnostics, WindowsUpdate and WindowsVirtualDesktop.
    protocols Sequence[FirewallApplicationRuleCollectionRuleProtocol]
    One or more protocol blocks as defined below.
    source_addresses Sequence[str]
    A list of source IP addresses and/or IP ranges.
    source_ip_groups Sequence[str]

    A list of source IP Group IDs for the rule.

    NOTE At least one of source_addresses and source_ip_groups must be specified for a rule.

    target_fqdns Sequence[str]
    A list of FQDNs.
    name String
    Specifies the name of the rule.
    description String
    Specifies a description for the rule.
    fqdnTags List<String>
    A list of FQDN tags. Possible values are AppServiceEnvironment, AzureBackup, AzureKubernetesService, HDInsight, MicrosoftActiveProtectionService, WindowsDiagnostics, WindowsUpdate and WindowsVirtualDesktop.
    protocols List<Property Map>
    One or more protocol blocks as defined below.
    sourceAddresses List<String>
    A list of source IP addresses and/or IP ranges.
    sourceIpGroups List<String>

    A list of source IP Group IDs for the rule.

    NOTE At least one of source_addresses and source_ip_groups must be specified for a rule.

    targetFqdns List<String>
    A list of FQDNs.

    FirewallApplicationRuleCollectionRuleProtocol, FirewallApplicationRuleCollectionRuleProtocolArgs

    Port int
    Specify a port for the connection.
    Type string
    Specifies the type of connection. Possible values are Http, Https and Mssql.
    Port int
    Specify a port for the connection.
    Type string
    Specifies the type of connection. Possible values are Http, Https and Mssql.
    port Integer
    Specify a port for the connection.
    type String
    Specifies the type of connection. Possible values are Http, Https and Mssql.
    port number
    Specify a port for the connection.
    type string
    Specifies the type of connection. Possible values are Http, Https and Mssql.
    port int
    Specify a port for the connection.
    type str
    Specifies the type of connection. Possible values are Http, Https and Mssql.
    port Number
    Specify a port for the connection.
    type String
    Specifies the type of connection. Possible values are Http, Https and Mssql.

    Import

    Firewall Application Rule Collections can be imported using the resource id, e.g.

    $ pulumi import azure:network/firewallApplicationRuleCollection:FirewallApplicationRuleCollection example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/azureFirewalls/myfirewall/applicationRuleCollections/mycollection
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi