» azurerm_automation_variable_int

Manages a integer variable in Azure Automation

» Example Usage

resource "azurerm_resource_group" "example" {
  name     = "tfex-example-rg"
  location = "West US"
}

resource "azurerm_automation_account" "example" {
  name                = "tfex-example-account"
  location            = "${azurerm_resource_group.example.location}"
  resource_group_name = "${azurerm_resource_group.example.name}"

  sku {
    name = "Basic"
  }
}

resource "azurerm_automation_variable_int" "example" {
  name                    = "tfex-example-var"
  resource_group_name     = "${azurerm_resource_group.example.name}"
  automation_account_name = "${azurerm_automation_account.example.name}"
  value                   = 1234
}

» Argument Reference

The following arguments are supported:

  • name - (Required) The name of the Automation Variable. Changing this forces a new resource to be created.

  • resource_group_name - (Required) The name of the resource group in which to create the Automation Variable. Changing this forces a new resource to be created.

  • automation_account_name - (Required) The name of the automation account in which the Variable is created. Changing this forces a new resource to be created.

  • description - (Optional) The description of the Automation Variable.

  • encrypted - (Optional) Specifies if the Automation Variable is encrypted. Defaults to false.

  • value - (Optional) The value of the Automation Variable as a integer.

» Attributes Reference

The following attributes are exported:

  • id - The ID of the Automation Variable.

» Import

Automation Int Variable can be imported using the resource id, e.g.

$ terraform import azurerm_automation_variable_int.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tfex-example-rg/providers/Microsoft.Automation/automationAccounts/tfex-example-account/variables/tfex-example-var