azurestack_public_ip

Manages a Public IP Address.

Example Usage

resource "azurestack_resource_group" "test" {
  name     = "resourceGroup1"
  location = "West US"
}

resource "azurestack_public_ip" "test" {
  name                = "acceptanceTestPublicIp1"
  location            = "West US"
  resource_group_name = azurestack_resource_group.test.name
  allocation_method   = "static"

  tags = {
    environment = "Production"
  }
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

Public IPs can be imported using the resource id, e.g.

terraform import azurestack_public_ip.myPublicIp /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/publicIPAddresses/myPublicIpAddress1