1. Packages
  2. Packages
  3. Azure Classic
  4. API Docs
  5. datalake
  6. AnalyticsFirewallRule

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Manages a Azure Data Lake Analytics Firewall Rule.

    Example Usage

    using Pulumi;
    using Azure = Pulumi.Azure;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
            {
                Location = "West Europe",
            });
            var exampleStore = new Azure.DataLake.Store("exampleStore", new Azure.DataLake.StoreArgs
            {
                ResourceGroupName = exampleResourceGroup.Name,
                Location = exampleResourceGroup.Location,
            });
            var exampleAnalyticsAccount = new Azure.DataLake.AnalyticsAccount("exampleAnalyticsAccount", new Azure.DataLake.AnalyticsAccountArgs
            {
                ResourceGroupName = exampleResourceGroup.Name,
                Location = exampleResourceGroup.Location,
                DefaultStoreAccountName = exampleStore.Name,
            });
            var exampleAnalyticsFirewallRule = new Azure.DataLake.AnalyticsFirewallRule("exampleAnalyticsFirewallRule", new Azure.DataLake.AnalyticsFirewallRuleArgs
            {
                AccountName = azurerm_data_lake_analytics.Example.Name,
                ResourceGroupName = exampleResourceGroup.Name,
                StartIpAddress = "1.2.3.4",
                EndIpAddress = "2.3.4.5",
            });
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/datalake"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleStore, err := datalake.NewStore(ctx, "exampleStore", &datalake.StoreArgs{
    			ResourceGroupName: exampleResourceGroup.Name,
    			Location:          exampleResourceGroup.Location,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = datalake.NewAnalyticsAccount(ctx, "exampleAnalyticsAccount", &datalake.AnalyticsAccountArgs{
    			ResourceGroupName:       exampleResourceGroup.Name,
    			Location:                exampleResourceGroup.Location,
    			DefaultStoreAccountName: exampleStore.Name,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = datalake.NewAnalyticsFirewallRule(ctx, "exampleAnalyticsFirewallRule", &datalake.AnalyticsFirewallRuleArgs{
    			AccountName:       pulumi.Any(azurerm_data_lake_analytics.Example.Name),
    			ResourceGroupName: exampleResourceGroup.Name,
    			StartIpAddress:    pulumi.String("1.2.3.4"),
    			EndIpAddress:      pulumi.String("2.3.4.5"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
    const exampleStore = new azure.datalake.Store("exampleStore", {
        resourceGroupName: exampleResourceGroup.name,
        location: exampleResourceGroup.location,
    });
    const exampleAnalyticsAccount = new azure.datalake.AnalyticsAccount("exampleAnalyticsAccount", {
        resourceGroupName: exampleResourceGroup.name,
        location: exampleResourceGroup.location,
        defaultStoreAccountName: exampleStore.name,
    });
    const exampleAnalyticsFirewallRule = new azure.datalake.AnalyticsFirewallRule("exampleAnalyticsFirewallRule", {
        accountName: azurerm_data_lake_analytics.example.name,
        resourceGroupName: exampleResourceGroup.name,
        startIpAddress: "1.2.3.4",
        endIpAddress: "2.3.4.5",
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
    example_store = azure.datalake.Store("exampleStore",
        resource_group_name=example_resource_group.name,
        location=example_resource_group.location)
    example_analytics_account = azure.datalake.AnalyticsAccount("exampleAnalyticsAccount",
        resource_group_name=example_resource_group.name,
        location=example_resource_group.location,
        default_store_account_name=example_store.name)
    example_analytics_firewall_rule = azure.datalake.AnalyticsFirewallRule("exampleAnalyticsFirewallRule",
        account_name=azurerm_data_lake_analytics["example"]["name"],
        resource_group_name=example_resource_group.name,
        start_ip_address="1.2.3.4",
        end_ip_address="2.3.4.5")
    

    Example coming soon!

    Create AnalyticsFirewallRule Resource

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

    Constructor syntax

    new AnalyticsFirewallRule(name: string, args: AnalyticsFirewallRuleArgs, opts?: CustomResourceOptions);
    @overload
    def AnalyticsFirewallRule(resource_name: str,
                              args: AnalyticsFirewallRuleArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def AnalyticsFirewallRule(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              account_name: Optional[str] = None,
                              end_ip_address: Optional[str] = None,
                              resource_group_name: Optional[str] = None,
                              start_ip_address: Optional[str] = None,
                              name: Optional[str] = None)
    func NewAnalyticsFirewallRule(ctx *Context, name string, args AnalyticsFirewallRuleArgs, opts ...ResourceOption) (*AnalyticsFirewallRule, error)
    public AnalyticsFirewallRule(string name, AnalyticsFirewallRuleArgs args, CustomResourceOptions? opts = null)
    public AnalyticsFirewallRule(String name, AnalyticsFirewallRuleArgs args)
    public AnalyticsFirewallRule(String name, AnalyticsFirewallRuleArgs args, CustomResourceOptions options)
    
    type: azure:datalake:AnalyticsFirewallRule
    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 AnalyticsFirewallRuleArgs
    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 AnalyticsFirewallRuleArgs
    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 AnalyticsFirewallRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AnalyticsFirewallRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AnalyticsFirewallRuleArgs
    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 analyticsFirewallRuleResource = new Azure.DataLake.AnalyticsFirewallRule("analyticsFirewallRuleResource", new()
    {
        AccountName = "string",
        EndIpAddress = "string",
        ResourceGroupName = "string",
        StartIpAddress = "string",
        Name = "string",
    });
    
    example, err := datalake.NewAnalyticsFirewallRule(ctx, "analyticsFirewallRuleResource", &datalake.AnalyticsFirewallRuleArgs{
    	AccountName:       pulumi.String("string"),
    	EndIpAddress:      pulumi.String("string"),
    	ResourceGroupName: pulumi.String("string"),
    	StartIpAddress:    pulumi.String("string"),
    	Name:              pulumi.String("string"),
    })
    
    var analyticsFirewallRuleResource = new AnalyticsFirewallRule("analyticsFirewallRuleResource", AnalyticsFirewallRuleArgs.builder()
        .accountName("string")
        .endIpAddress("string")
        .resourceGroupName("string")
        .startIpAddress("string")
        .name("string")
        .build());
    
    analytics_firewall_rule_resource = azure.datalake.AnalyticsFirewallRule("analyticsFirewallRuleResource",
        account_name="string",
        end_ip_address="string",
        resource_group_name="string",
        start_ip_address="string",
        name="string")
    
    const analyticsFirewallRuleResource = new azure.datalake.AnalyticsFirewallRule("analyticsFirewallRuleResource", {
        accountName: "string",
        endIpAddress: "string",
        resourceGroupName: "string",
        startIpAddress: "string",
        name: "string",
    });
    
    type: azure:datalake:AnalyticsFirewallRule
    properties:
        accountName: string
        endIpAddress: string
        name: string
        resourceGroupName: string
        startIpAddress: string
    

    AnalyticsFirewallRule 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 AnalyticsFirewallRule resource accepts the following input properties:

    AccountName string
    Specifies the name of the Data Lake Analytics for which the Firewall Rule should take effect.
    EndIpAddress string
    The End IP Address for the firewall rule.
    ResourceGroupName string
    The name of the resource group in which to create the Data Lake Analytics.
    StartIpAddress string
    The Start IP address for the firewall rule.
    Name string
    Specifies the name of the Data Lake Analytics. Changing this forces a new resource to be created. Has to be between 3 to 24 characters.
    AccountName string
    Specifies the name of the Data Lake Analytics for which the Firewall Rule should take effect.
    EndIpAddress string
    The End IP Address for the firewall rule.
    ResourceGroupName string
    The name of the resource group in which to create the Data Lake Analytics.
    StartIpAddress string
    The Start IP address for the firewall rule.
    Name string
    Specifies the name of the Data Lake Analytics. Changing this forces a new resource to be created. Has to be between 3 to 24 characters.
    accountName String
    Specifies the name of the Data Lake Analytics for which the Firewall Rule should take effect.
    endIpAddress String
    The End IP Address for the firewall rule.
    resourceGroupName String
    The name of the resource group in which to create the Data Lake Analytics.
    startIpAddress String
    The Start IP address for the firewall rule.
    name String
    Specifies the name of the Data Lake Analytics. Changing this forces a new resource to be created. Has to be between 3 to 24 characters.
    accountName string
    Specifies the name of the Data Lake Analytics for which the Firewall Rule should take effect.
    endIpAddress string
    The End IP Address for the firewall rule.
    resourceGroupName string
    The name of the resource group in which to create the Data Lake Analytics.
    startIpAddress string
    The Start IP address for the firewall rule.
    name string
    Specifies the name of the Data Lake Analytics. Changing this forces a new resource to be created. Has to be between 3 to 24 characters.
    account_name str
    Specifies the name of the Data Lake Analytics for which the Firewall Rule should take effect.
    end_ip_address str
    The End IP Address for the firewall rule.
    resource_group_name str
    The name of the resource group in which to create the Data Lake Analytics.
    start_ip_address str
    The Start IP address for the firewall rule.
    name str
    Specifies the name of the Data Lake Analytics. Changing this forces a new resource to be created. Has to be between 3 to 24 characters.
    accountName String
    Specifies the name of the Data Lake Analytics for which the Firewall Rule should take effect.
    endIpAddress String
    The End IP Address for the firewall rule.
    resourceGroupName String
    The name of the resource group in which to create the Data Lake Analytics.
    startIpAddress String
    The Start IP address for the firewall rule.
    name String
    Specifies the name of the Data Lake Analytics. Changing this forces a new resource to be created. Has to be between 3 to 24 characters.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AnalyticsFirewallRule 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 AnalyticsFirewallRule Resource

    Get an existing AnalyticsFirewallRule 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?: AnalyticsFirewallRuleState, opts?: CustomResourceOptions): AnalyticsFirewallRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_name: Optional[str] = None,
            end_ip_address: Optional[str] = None,
            name: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            start_ip_address: Optional[str] = None) -> AnalyticsFirewallRule
    func GetAnalyticsFirewallRule(ctx *Context, name string, id IDInput, state *AnalyticsFirewallRuleState, opts ...ResourceOption) (*AnalyticsFirewallRule, error)
    public static AnalyticsFirewallRule Get(string name, Input<string> id, AnalyticsFirewallRuleState? state, CustomResourceOptions? opts = null)
    public static AnalyticsFirewallRule get(String name, Output<String> id, AnalyticsFirewallRuleState state, CustomResourceOptions options)
    resources:  _:    type: azure:datalake:AnalyticsFirewallRule    get:      id: ${id}
    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:
    AccountName string
    Specifies the name of the Data Lake Analytics for which the Firewall Rule should take effect.
    EndIpAddress string
    The End IP Address for the firewall rule.
    Name string
    Specifies the name of the Data Lake Analytics. Changing this forces a new resource to be created. Has to be between 3 to 24 characters.
    ResourceGroupName string
    The name of the resource group in which to create the Data Lake Analytics.
    StartIpAddress string
    The Start IP address for the firewall rule.
    AccountName string
    Specifies the name of the Data Lake Analytics for which the Firewall Rule should take effect.
    EndIpAddress string
    The End IP Address for the firewall rule.
    Name string
    Specifies the name of the Data Lake Analytics. Changing this forces a new resource to be created. Has to be between 3 to 24 characters.
    ResourceGroupName string
    The name of the resource group in which to create the Data Lake Analytics.
    StartIpAddress string
    The Start IP address for the firewall rule.
    accountName String
    Specifies the name of the Data Lake Analytics for which the Firewall Rule should take effect.
    endIpAddress String
    The End IP Address for the firewall rule.
    name String
    Specifies the name of the Data Lake Analytics. Changing this forces a new resource to be created. Has to be between 3 to 24 characters.
    resourceGroupName String
    The name of the resource group in which to create the Data Lake Analytics.
    startIpAddress String
    The Start IP address for the firewall rule.
    accountName string
    Specifies the name of the Data Lake Analytics for which the Firewall Rule should take effect.
    endIpAddress string
    The End IP Address for the firewall rule.
    name string
    Specifies the name of the Data Lake Analytics. Changing this forces a new resource to be created. Has to be between 3 to 24 characters.
    resourceGroupName string
    The name of the resource group in which to create the Data Lake Analytics.
    startIpAddress string
    The Start IP address for the firewall rule.
    account_name str
    Specifies the name of the Data Lake Analytics for which the Firewall Rule should take effect.
    end_ip_address str
    The End IP Address for the firewall rule.
    name str
    Specifies the name of the Data Lake Analytics. Changing this forces a new resource to be created. Has to be between 3 to 24 characters.
    resource_group_name str
    The name of the resource group in which to create the Data Lake Analytics.
    start_ip_address str
    The Start IP address for the firewall rule.
    accountName String
    Specifies the name of the Data Lake Analytics for which the Firewall Rule should take effect.
    endIpAddress String
    The End IP Address for the firewall rule.
    name String
    Specifies the name of the Data Lake Analytics. Changing this forces a new resource to be created. Has to be between 3 to 24 characters.
    resourceGroupName String
    The name of the resource group in which to create the Data Lake Analytics.
    startIpAddress String
    The Start IP address for the firewall rule.

    Import

    Data Lake Analytics Firewall Rules can be imported using the resource id, e.g.

     $ pulumi import azure:datalake/analyticsFirewallRule:AnalyticsFirewallRule rule1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.DataLakeAnalytics/accounts/mydatalakeaccount/firewallRules/rule1
    

    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.

    Viewing docs for Azure v4.42.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.