We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
Manages a Public IP Address.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var examplePublicIp = new Azure.Network.PublicIp("examplePublicIp", new Azure.Network.PublicIpArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
AllocationMethod = "Static",
Tags =
{
{ "environment", "Production" },
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = network.NewPublicIp(ctx, "examplePublicIp", &network.PublicIpArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
AllocationMethod: pulumi.String("Static"),
Tags: pulumi.StringMap{
"environment": pulumi.String("Production"),
},
})
if err != nil {
return err
}
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const examplePublicIp = new azure.network.PublicIp("examplePublicIp", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
allocationMethod: "Static",
tags: {
environment: "Production",
},
});
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_public_ip = azure.network.PublicIp("examplePublicIp",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
allocation_method="Static",
tags={
"environment": "Production",
})
Example coming soon!
Create PublicIp Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PublicIp(name: string, args: PublicIpArgs, opts?: CustomResourceOptions);@overload
def PublicIp(resource_name: str,
args: PublicIpArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PublicIp(resource_name: str,
opts: Optional[ResourceOptions] = None,
allocation_method: Optional[str] = None,
resource_group_name: Optional[str] = None,
idle_timeout_in_minutes: Optional[int] = None,
domain_name_label: Optional[str] = None,
ip_tags: Optional[Mapping[str, str]] = None,
ip_version: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
public_ip_prefix_id: Optional[str] = None,
availability_zone: Optional[str] = None,
reverse_fqdn: Optional[str] = None,
sku: Optional[str] = None,
sku_tier: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
zones: Optional[str] = None)func NewPublicIp(ctx *Context, name string, args PublicIpArgs, opts ...ResourceOption) (*PublicIp, error)public PublicIp(string name, PublicIpArgs args, CustomResourceOptions? opts = null)
public PublicIp(String name, PublicIpArgs args)
public PublicIp(String name, PublicIpArgs args, CustomResourceOptions options)
type: azure:network:PublicIp
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PublicIpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PublicIpArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PublicIpArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PublicIpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PublicIpArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var publicIpResource = new Azure.Network.PublicIp("publicIpResource", new()
{
AllocationMethod = "string",
ResourceGroupName = "string",
IdleTimeoutInMinutes = 0,
DomainNameLabel = "string",
IpTags =
{
{ "string", "string" },
},
IpVersion = "string",
Location = "string",
Name = "string",
PublicIpPrefixId = "string",
AvailabilityZone = "string",
ReverseFqdn = "string",
Sku = "string",
SkuTier = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := network.NewPublicIp(ctx, "publicIpResource", &network.PublicIpArgs{
AllocationMethod: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
IdleTimeoutInMinutes: pulumi.Int(0),
DomainNameLabel: pulumi.String("string"),
IpTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
IpVersion: pulumi.String("string"),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
PublicIpPrefixId: pulumi.String("string"),
AvailabilityZone: pulumi.String("string"),
ReverseFqdn: pulumi.String("string"),
Sku: pulumi.String("string"),
SkuTier: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var publicIpResource = new PublicIp("publicIpResource", PublicIpArgs.builder()
.allocationMethod("string")
.resourceGroupName("string")
.idleTimeoutInMinutes(0)
.domainNameLabel("string")
.ipTags(Map.of("string", "string"))
.ipVersion("string")
.location("string")
.name("string")
.publicIpPrefixId("string")
.availabilityZone("string")
.reverseFqdn("string")
.sku("string")
.skuTier("string")
.tags(Map.of("string", "string"))
.build());
public_ip_resource = azure.network.PublicIp("publicIpResource",
allocation_method="string",
resource_group_name="string",
idle_timeout_in_minutes=0,
domain_name_label="string",
ip_tags={
"string": "string",
},
ip_version="string",
location="string",
name="string",
public_ip_prefix_id="string",
availability_zone="string",
reverse_fqdn="string",
sku="string",
sku_tier="string",
tags={
"string": "string",
})
const publicIpResource = new azure.network.PublicIp("publicIpResource", {
allocationMethod: "string",
resourceGroupName: "string",
idleTimeoutInMinutes: 0,
domainNameLabel: "string",
ipTags: {
string: "string",
},
ipVersion: "string",
location: "string",
name: "string",
publicIpPrefixId: "string",
availabilityZone: "string",
reverseFqdn: "string",
sku: "string",
skuTier: "string",
tags: {
string: "string",
},
});
type: azure:network:PublicIp
properties:
allocationMethod: string
availabilityZone: string
domainNameLabel: string
idleTimeoutInMinutes: 0
ipTags:
string: string
ipVersion: string
location: string
name: string
publicIpPrefixId: string
resourceGroupName: string
reverseFqdn: string
sku: string
skuTier: string
tags:
string: string
PublicIp Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PublicIp resource accepts the following input properties:
- Allocation
Method string - Defines the allocation method for this IP address. Possible values are
StaticorDynamic. - Resource
Group stringName - The name of the resource group in which to create the public ip.
- Availability
Zone string - The availability zone to allocate the Public IP in. Possible values are
Zone-Redundant,1,2,3, andNo-Zone. Defaults toZone-Redundant. - Domain
Name stringLabel - Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
- Idle
Timeout intIn Minutes - Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
- Dictionary<string, string>
- A mapping of IP tags to assign to the public IP.
- Ip
Version string - The IP Version to use, IPv6 or IPv4.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Public IP resource . Changing this forces a new resource to be created.
- Public
Ip stringPrefix Id - If specified then public IP address allocated will be provided from the public IP prefix resource.
- Reverse
Fqdn string - A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
- Sku string
- The SKU of the Public IP. Accepted values are
BasicandStandard. Defaults toBasic. - Sku
Tier string - The SKU Tier that should be used for the Public IP. Possible values are
RegionalandGlobal. Defaults toRegional. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Zones string
- Allocation
Method string - Defines the allocation method for this IP address. Possible values are
StaticorDynamic. - Resource
Group stringName - The name of the resource group in which to create the public ip.
- Availability
Zone string - The availability zone to allocate the Public IP in. Possible values are
Zone-Redundant,1,2,3, andNo-Zone. Defaults toZone-Redundant. - Domain
Name stringLabel - Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
- Idle
Timeout intIn Minutes - Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
- map[string]string
- A mapping of IP tags to assign to the public IP.
- Ip
Version string - The IP Version to use, IPv6 or IPv4.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Public IP resource . Changing this forces a new resource to be created.
- Public
Ip stringPrefix Id - If specified then public IP address allocated will be provided from the public IP prefix resource.
- Reverse
Fqdn string - A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
- Sku string
- The SKU of the Public IP. Accepted values are
BasicandStandard. Defaults toBasic. - Sku
Tier string - The SKU Tier that should be used for the Public IP. Possible values are
RegionalandGlobal. Defaults toRegional. - map[string]string
- A mapping of tags to assign to the resource.
- Zones string
- allocation
Method String - Defines the allocation method for this IP address. Possible values are
StaticorDynamic. - resource
Group StringName - The name of the resource group in which to create the public ip.
- availability
Zone String - The availability zone to allocate the Public IP in. Possible values are
Zone-Redundant,1,2,3, andNo-Zone. Defaults toZone-Redundant. - domain
Name StringLabel - Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
- idle
Timeout IntegerIn Minutes - Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
- Map<String,String>
- A mapping of IP tags to assign to the public IP.
- ip
Version String - The IP Version to use, IPv6 or IPv4.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Public IP resource . Changing this forces a new resource to be created.
- public
Ip StringPrefix Id - If specified then public IP address allocated will be provided from the public IP prefix resource.
- reverse
Fqdn String - A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
- sku String
- The SKU of the Public IP. Accepted values are
BasicandStandard. Defaults toBasic. - sku
Tier String - The SKU Tier that should be used for the Public IP. Possible values are
RegionalandGlobal. Defaults toRegional. - Map<String,String>
- A mapping of tags to assign to the resource.
- zones String
- allocation
Method string - Defines the allocation method for this IP address. Possible values are
StaticorDynamic. - resource
Group stringName - The name of the resource group in which to create the public ip.
- availability
Zone string - The availability zone to allocate the Public IP in. Possible values are
Zone-Redundant,1,2,3, andNo-Zone. Defaults toZone-Redundant. - domain
Name stringLabel - Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
- idle
Timeout numberIn Minutes - Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
- {[key: string]: string}
- A mapping of IP tags to assign to the public IP.
- ip
Version string - The IP Version to use, IPv6 or IPv4.
- location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
- Specifies the name of the Public IP resource . Changing this forces a new resource to be created.
- public
Ip stringPrefix Id - If specified then public IP address allocated will be provided from the public IP prefix resource.
- reverse
Fqdn string - A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
- sku string
- The SKU of the Public IP. Accepted values are
BasicandStandard. Defaults toBasic. - sku
Tier string - The SKU Tier that should be used for the Public IP. Possible values are
RegionalandGlobal. Defaults toRegional. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- zones string
- allocation_
method str - Defines the allocation method for this IP address. Possible values are
StaticorDynamic. - resource_
group_ strname - The name of the resource group in which to create the public ip.
- availability_
zone str - The availability zone to allocate the Public IP in. Possible values are
Zone-Redundant,1,2,3, andNo-Zone. Defaults toZone-Redundant. - domain_
name_ strlabel - Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
- idle_
timeout_ intin_ minutes - Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
- Mapping[str, str]
- A mapping of IP tags to assign to the public IP.
- ip_
version str - The IP Version to use, IPv6 or IPv4.
- location str
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
- Specifies the name of the Public IP resource . Changing this forces a new resource to be created.
- public_
ip_ strprefix_ id - If specified then public IP address allocated will be provided from the public IP prefix resource.
- reverse_
fqdn str - A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
- sku str
- The SKU of the Public IP. Accepted values are
BasicandStandard. Defaults toBasic. - sku_
tier str - The SKU Tier that should be used for the Public IP. Possible values are
RegionalandGlobal. Defaults toRegional. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- zones str
- allocation
Method String - Defines the allocation method for this IP address. Possible values are
StaticorDynamic. - resource
Group StringName - The name of the resource group in which to create the public ip.
- availability
Zone String - The availability zone to allocate the Public IP in. Possible values are
Zone-Redundant,1,2,3, andNo-Zone. Defaults toZone-Redundant. - domain
Name StringLabel - Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
- idle
Timeout NumberIn Minutes - Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
- Map<String>
- A mapping of IP tags to assign to the public IP.
- ip
Version String - The IP Version to use, IPv6 or IPv4.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Public IP resource . Changing this forces a new resource to be created.
- public
Ip StringPrefix Id - If specified then public IP address allocated will be provided from the public IP prefix resource.
- reverse
Fqdn String - A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
- sku String
- The SKU of the Public IP. Accepted values are
BasicandStandard. Defaults toBasic. - sku
Tier String - The SKU Tier that should be used for the Public IP. Possible values are
RegionalandGlobal. Defaults toRegional. - Map<String>
- A mapping of tags to assign to the resource.
- zones String
Outputs
All input properties are implicitly available as output properties. Additionally, the PublicIp resource produces the following output properties:
- Fqdn string
- Fully qualified domain name of the A DNS record associated with the public IP.
domain_name_labelmust be specified to get thefqdn. This is the concatenation of thedomain_name_labeland the regionalized DNS zone - Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string - The IP address value that was allocated.
- Fqdn string
- Fully qualified domain name of the A DNS record associated with the public IP.
domain_name_labelmust be specified to get thefqdn. This is the concatenation of thedomain_name_labeland the regionalized DNS zone - Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string - The IP address value that was allocated.
- fqdn String
- Fully qualified domain name of the A DNS record associated with the public IP.
domain_name_labelmust be specified to get thefqdn. This is the concatenation of thedomain_name_labeland the regionalized DNS zone - id String
- The provider-assigned unique ID for this managed resource.
- ip
Address String - The IP address value that was allocated.
- fqdn string
- Fully qualified domain name of the A DNS record associated with the public IP.
domain_name_labelmust be specified to get thefqdn. This is the concatenation of thedomain_name_labeland the regionalized DNS zone - id string
- The provider-assigned unique ID for this managed resource.
- ip
Address string - The IP address value that was allocated.
- fqdn str
- Fully qualified domain name of the A DNS record associated with the public IP.
domain_name_labelmust be specified to get thefqdn. This is the concatenation of thedomain_name_labeland the regionalized DNS zone - id str
- The provider-assigned unique ID for this managed resource.
- ip_
address str - The IP address value that was allocated.
- fqdn String
- Fully qualified domain name of the A DNS record associated with the public IP.
domain_name_labelmust be specified to get thefqdn. This is the concatenation of thedomain_name_labeland the regionalized DNS zone - id String
- The provider-assigned unique ID for this managed resource.
- ip
Address String - The IP address value that was allocated.
Look up Existing PublicIp Resource
Get an existing PublicIp resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: PublicIpState, opts?: CustomResourceOptions): PublicIp@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allocation_method: Optional[str] = None,
availability_zone: Optional[str] = None,
domain_name_label: Optional[str] = None,
fqdn: Optional[str] = None,
idle_timeout_in_minutes: Optional[int] = None,
ip_address: Optional[str] = None,
ip_tags: Optional[Mapping[str, str]] = None,
ip_version: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
public_ip_prefix_id: Optional[str] = None,
resource_group_name: Optional[str] = None,
reverse_fqdn: Optional[str] = None,
sku: Optional[str] = None,
sku_tier: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
zones: Optional[str] = None) -> PublicIpfunc GetPublicIp(ctx *Context, name string, id IDInput, state *PublicIpState, opts ...ResourceOption) (*PublicIp, error)public static PublicIp Get(string name, Input<string> id, PublicIpState? state, CustomResourceOptions? opts = null)public static PublicIp get(String name, Output<String> id, PublicIpState state, CustomResourceOptions options)resources: _: type: azure:network:PublicIp get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Allocation
Method string - Defines the allocation method for this IP address. Possible values are
StaticorDynamic. - Availability
Zone string - The availability zone to allocate the Public IP in. Possible values are
Zone-Redundant,1,2,3, andNo-Zone. Defaults toZone-Redundant. - Domain
Name stringLabel - Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
- Fqdn string
- Fully qualified domain name of the A DNS record associated with the public IP.
domain_name_labelmust be specified to get thefqdn. This is the concatenation of thedomain_name_labeland the regionalized DNS zone - Idle
Timeout intIn Minutes - Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
- Ip
Address string - The IP address value that was allocated.
- Dictionary<string, string>
- A mapping of IP tags to assign to the public IP.
- Ip
Version string - The IP Version to use, IPv6 or IPv4.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Public IP resource . Changing this forces a new resource to be created.
- Public
Ip stringPrefix Id - If specified then public IP address allocated will be provided from the public IP prefix resource.
- Resource
Group stringName - The name of the resource group in which to create the public ip.
- Reverse
Fqdn string - A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
- Sku string
- The SKU of the Public IP. Accepted values are
BasicandStandard. Defaults toBasic. - Sku
Tier string - The SKU Tier that should be used for the Public IP. Possible values are
RegionalandGlobal. Defaults toRegional. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Zones string
- Allocation
Method string - Defines the allocation method for this IP address. Possible values are
StaticorDynamic. - Availability
Zone string - The availability zone to allocate the Public IP in. Possible values are
Zone-Redundant,1,2,3, andNo-Zone. Defaults toZone-Redundant. - Domain
Name stringLabel - Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
- Fqdn string
- Fully qualified domain name of the A DNS record associated with the public IP.
domain_name_labelmust be specified to get thefqdn. This is the concatenation of thedomain_name_labeland the regionalized DNS zone - Idle
Timeout intIn Minutes - Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
- Ip
Address string - The IP address value that was allocated.
- map[string]string
- A mapping of IP tags to assign to the public IP.
- Ip
Version string - The IP Version to use, IPv6 or IPv4.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Public IP resource . Changing this forces a new resource to be created.
- Public
Ip stringPrefix Id - If specified then public IP address allocated will be provided from the public IP prefix resource.
- Resource
Group stringName - The name of the resource group in which to create the public ip.
- Reverse
Fqdn string - A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
- Sku string
- The SKU of the Public IP. Accepted values are
BasicandStandard. Defaults toBasic. - Sku
Tier string - The SKU Tier that should be used for the Public IP. Possible values are
RegionalandGlobal. Defaults toRegional. - map[string]string
- A mapping of tags to assign to the resource.
- Zones string
- allocation
Method String - Defines the allocation method for this IP address. Possible values are
StaticorDynamic. - availability
Zone String - The availability zone to allocate the Public IP in. Possible values are
Zone-Redundant,1,2,3, andNo-Zone. Defaults toZone-Redundant. - domain
Name StringLabel - Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
- fqdn String
- Fully qualified domain name of the A DNS record associated with the public IP.
domain_name_labelmust be specified to get thefqdn. This is the concatenation of thedomain_name_labeland the regionalized DNS zone - idle
Timeout IntegerIn Minutes - Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
- ip
Address String - The IP address value that was allocated.
- Map<String,String>
- A mapping of IP tags to assign to the public IP.
- ip
Version String - The IP Version to use, IPv6 or IPv4.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Public IP resource . Changing this forces a new resource to be created.
- public
Ip StringPrefix Id - If specified then public IP address allocated will be provided from the public IP prefix resource.
- resource
Group StringName - The name of the resource group in which to create the public ip.
- reverse
Fqdn String - A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
- sku String
- The SKU of the Public IP. Accepted values are
BasicandStandard. Defaults toBasic. - sku
Tier String - The SKU Tier that should be used for the Public IP. Possible values are
RegionalandGlobal. Defaults toRegional. - Map<String,String>
- A mapping of tags to assign to the resource.
- zones String
- allocation
Method string - Defines the allocation method for this IP address. Possible values are
StaticorDynamic. - availability
Zone string - The availability zone to allocate the Public IP in. Possible values are
Zone-Redundant,1,2,3, andNo-Zone. Defaults toZone-Redundant. - domain
Name stringLabel - Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
- fqdn string
- Fully qualified domain name of the A DNS record associated with the public IP.
domain_name_labelmust be specified to get thefqdn. This is the concatenation of thedomain_name_labeland the regionalized DNS zone - idle
Timeout numberIn Minutes - Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
- ip
Address string - The IP address value that was allocated.
- {[key: string]: string}
- A mapping of IP tags to assign to the public IP.
- ip
Version string - The IP Version to use, IPv6 or IPv4.
- location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
- Specifies the name of the Public IP resource . Changing this forces a new resource to be created.
- public
Ip stringPrefix Id - If specified then public IP address allocated will be provided from the public IP prefix resource.
- resource
Group stringName - The name of the resource group in which to create the public ip.
- reverse
Fqdn string - A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
- sku string
- The SKU of the Public IP. Accepted values are
BasicandStandard. Defaults toBasic. - sku
Tier string - The SKU Tier that should be used for the Public IP. Possible values are
RegionalandGlobal. Defaults toRegional. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- zones string
- allocation_
method str - Defines the allocation method for this IP address. Possible values are
StaticorDynamic. - availability_
zone str - The availability zone to allocate the Public IP in. Possible values are
Zone-Redundant,1,2,3, andNo-Zone. Defaults toZone-Redundant. - domain_
name_ strlabel - Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
- fqdn str
- Fully qualified domain name of the A DNS record associated with the public IP.
domain_name_labelmust be specified to get thefqdn. This is the concatenation of thedomain_name_labeland the regionalized DNS zone - idle_
timeout_ intin_ minutes - Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
- ip_
address str - The IP address value that was allocated.
- Mapping[str, str]
- A mapping of IP tags to assign to the public IP.
- ip_
version str - The IP Version to use, IPv6 or IPv4.
- location str
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
- Specifies the name of the Public IP resource . Changing this forces a new resource to be created.
- public_
ip_ strprefix_ id - If specified then public IP address allocated will be provided from the public IP prefix resource.
- resource_
group_ strname - The name of the resource group in which to create the public ip.
- reverse_
fqdn str - A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
- sku str
- The SKU of the Public IP. Accepted values are
BasicandStandard. Defaults toBasic. - sku_
tier str - The SKU Tier that should be used for the Public IP. Possible values are
RegionalandGlobal. Defaults toRegional. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- zones str
- allocation
Method String - Defines the allocation method for this IP address. Possible values are
StaticorDynamic. - availability
Zone String - The availability zone to allocate the Public IP in. Possible values are
Zone-Redundant,1,2,3, andNo-Zone. Defaults toZone-Redundant. - domain
Name StringLabel - Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
- fqdn String
- Fully qualified domain name of the A DNS record associated with the public IP.
domain_name_labelmust be specified to get thefqdn. This is the concatenation of thedomain_name_labeland the regionalized DNS zone - idle
Timeout NumberIn Minutes - Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
- ip
Address String - The IP address value that was allocated.
- Map<String>
- A mapping of IP tags to assign to the public IP.
- ip
Version String - The IP Version to use, IPv6 or IPv4.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Public IP resource . Changing this forces a new resource to be created.
- public
Ip StringPrefix Id - If specified then public IP address allocated will be provided from the public IP prefix resource.
- resource
Group StringName - The name of the resource group in which to create the public ip.
- reverse
Fqdn String - A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
- sku String
- The SKU of the Public IP. Accepted values are
BasicandStandard. Defaults toBasic. - sku
Tier String - The SKU Tier that should be used for the Public IP. Possible values are
RegionalandGlobal. Defaults toRegional. - Map<String>
- A mapping of tags to assign to the resource.
- zones String
Import
Public IPs can be imported using the resource id, e.g.
$ pulumi import azure:network/publicIp:PublicIp myPublicIp /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/publicIPAddresses/myPublicIpAddress1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
