» azurerm_data_lake_analytics_firewall_rule

Manage a Azure Data Lake Analytics Firewall Rule.

» Example Usage

resource "azurerm_resource_group" "example" {
  name     = "example"
  location = "northeurope"
}

resource "azurerm_data_lake_store" "example" {
  name                = "consumptiondatalake"
  resource_group_name = "${azurerm_resource_group.example.name}"
  location            = "${azurerm_resource_group.example.location}"
}

resource "azurerm_data_lake_analytics_account" "example" {
  name                = "acctest%s"
  resource_group_name = "${azurerm_resource_group.example.name}"
  location            = "${azurerm_resource_group.example.location}"

  default_store_account_name = "${azurerm_data_lake_store.example.name}"
}

resource "azurerm_data_lake_analytics_firewall_rule" "example" {
  name                = "office-ip-range"
  account_name        = "${azurerm_data_lake_analytics.example.name}"
  resource_group_name = "${azurerm_resource_group.example.name}"
  start_ip_address    = "1.2.3.4"
  end_ip_address      = "2.3.4.5"
}

» Argument Reference

The following arguments are supported:

  • name - (Required) 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 - (Required) The name of the resource group in which to create the Data Lake Analytics.

  • account_name - (Required) Specifies the name of the Data Lake Analytics for which the Firewall Rule should take effect.

  • start_ip_address - (Required) The Start IP address for the firewall rule.

  • end_ip_address - (Required) The End IP Address for the firewall rule.

» Attributes Reference

The following attributes are exported:

  • id - The Date Lake Store Firewall Rule ID.

» Import

Date Lake Store Firewall Rules can be imported using the resource id, e.g.

terraform import azurerm_data_lake_analytics_firewall_rule.rule1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.DataLakeAnalytics/accounts/mydatalakeaccount/firewallRules/rule1