PublicIpAddress
A resource of the Azure provider, version 0.3.0, in its Networking group. Import it with:
import PublicIpAddress from "azure/networking"Example
resource PublicIpAddress example {
name = "example-value"
resourceGroup = "example-value"
location = "example-value"
sku = "Basic"
allocationMethod = "Dynamic"
ipVersion = "IPv4"
idleTimeoutInMinutes = 4
domainNameLabel = "example-value"
zones = "..."
tags = "..."
}Properties
Set by your code in the resource block. A required one must be set; any other you leave out takes the value under Default, if it has one.
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
name | string | — | No | The name of the public IP address |
resourceGroup | string | — | No | The Azure resource group name |
location | string | — | No | The Azure region/location |
sku | string | "Basic" | No | The SKU. Standard is required for zone redundancy and NAT Gateway Allowed: "Basic", "Standard" |
allocationMethod | string | "Dynamic" | No | The allocation method. Standard SKU requires Static Allowed: "Static", "Dynamic" |
ipVersion | string | "IPv4" | No | The IP version Allowed: "IPv4", "IPv6" |
idleTimeoutInMinutes | number | 4 | No | The idle timeout in minutes. Range: 4-30 |
domainNameLabel | string | — | No | The domain name label for DNS. Creates: {label}.{region}.cloudapp.azure.com |
zones | any[] | — | No | The availability zones for the IP. Only for Standard SKU |
tags | object | — | No | Tags to apply to the public IP address |
Set by Azure after the resource is created: your code can read them but not set them. An importable one identifies an existing resource.
| Name | Type | Importable | Description |
|---|---|---|---|
id | string | Yes | The Azure resource ID of the public IP |
ipAddress | string | No | The assigned IP address |
provisioningState | string | No | The provisioning state of the public IP |
resourceGuid | string | No | The resource GUID |
fqdn | string | No | The FQDN of the DNS record |