Skip to main content
Providers

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.

NameTypeDefaultRequiredDescription
namestring—NoThe name of the public IP address
resourceGroupstring—NoThe Azure resource group name
locationstring—NoThe Azure region/location
skustring"Basic"NoThe SKU. Standard is required for zone redundancy and NAT Gateway Allowed: "Basic", "Standard"
allocationMethodstring"Dynamic"NoThe allocation method. Standard SKU requires Static Allowed: "Static", "Dynamic"
ipVersionstring"IPv4"NoThe IP version Allowed: "IPv4", "IPv6"
idleTimeoutInMinutesnumber4NoThe idle timeout in minutes. Range: 4-30
domainNameLabelstring—NoThe domain name label for DNS. Creates: {label}.{region}.cloudapp.azure.com
zonesany[]—NoThe availability zones for the IP. Only for Standard SKU
tagsobject—NoTags 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.

NameTypeImportableDescription
idstringYesThe Azure resource ID of the public IP
ipAddressstringNoThe assigned IP address
provisioningStatestringNoThe provisioning state of the public IP
resourceGuidstringNoThe resource GUID
fqdnstringNoThe FQDN of the DNS record

On this page