Quickstart: Create a public IP address using a Resource Manager template

This article shows how to create a public IP address resource within a Resource Manager template.

Diagram of an example use of a public IP address. A public IP address is assigned to a load balancer.

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