Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article shows how to create a public IP address resource within a Resource Manager template.
For more information on resources this public IP can be associated to, see Public IP addresses.
Prerequisites
- If you don't have an Azure subscription, create a trial subscription before you begin.
- A resource group in your Azure subscription.
- An Azure Resource Manager template for the public IP sections.
Non-zonal
In this section, you create a non-zonal IP address, which is used for regions without availability zones. If this is used in regions with availability zones, a zone-redundant IP address will be created.
To create an IPv6 address, modify the publicIPAddressVersion parameter to IPv6.
Template section to add:
{
"apiVersion": "2020-08-01",
"type": "Microsoft.Network/publicIPAddresses",
"name": "myStandardPublicIP-nozone",
"location": "[resourceGroup().location]",
"sku": {
"name": "Standard"
},
"properties": {
"publicIPAllocationMethod": "Static",
"publicIPAddressVersion": "IPv4"
}
Additional information
For more information on the public IP properties listed in this article, see Manage public IP addresses.
Next steps
- Associate a public IP address to a Virtual Machine
- Learn more about public IP addresses in Azure.
- Learn more about all public IP address settings.