Microsoft.Network publicIPPrefixes template reference

Template format

To create a Microsoft.Network/publicIPPrefixes resource, add the following JSON to the resources section of your template.

  "name": "string",
  "type": "Microsoft.Network/publicIPPrefixes",
  "apiVersion": "2018-11-01",
  "location": "string",
  "tags": {},
  "sku": {
    "name": "Standard"
  "properties": {
    "publicIPAddressVersion": "string",
    "ipTags": [
        "ipTagType": "string",
        "tag": "string"
    "prefixLength": "integer",
    "ipPrefix": "string",
    "publicIPAddresses": [
        "id": "string"
    "resourceGuid": "string"
  "zones": [

Property values

The following tables describe the values you need to set in the schema.

Microsoft.Network/publicIPPrefixes object


In Bicep, type and apiVersion are specified in the first line of the resource declaration. Use the format <type>@<apiVersion>. Don't set those properties in the resource body.

Name Type Required Value
name string Yes The name of the public IP prefix.
type enum Yes For JSON - Microsoft.Network/publicIPPrefixes
apiVersion enum Yes For JSON - 2018-11-01
location string No Resource location.
tags object No Resource tags.
sku object No The public IP prefix SKU. - PublicIPPrefixSku object
properties object Yes Public IP prefix properties. - PublicIPPrefixPropertiesFormat object
zones array No A list of availability zones denoting the IP allocated for the resource needs to come from. - string

PublicIPPrefixSku object

Name Type Required Value
name enum No Name of a public IP prefix SKU. - Standard

PublicIPPrefixPropertiesFormat object

Name Type Required Value
publicIPAddressVersion enum No The public IP address version. Possible values are: 'IPv4' and 'IPv6'. - IPv4 or IPv6
ipTags array No The list of tags associated with the public IP prefix. - IpTag object
prefixLength integer No The Length of the Public IP Prefix.
ipPrefix string No The allocated Prefix
publicIPAddresses array No The list of all referenced PublicIPAddresses - ReferencedPublicIpAddress object
resourceGuid string No The resource GUID property of the public IP prefix resource.

IpTag object

Name Type Required Value
ipTagType string No Gets or sets the ipTag type: Example FirstPartyUsage.
tag string No Gets or sets value of the IpTag associated with the public IP. Example SQL, Storage etc

ReferencedPublicIpAddress object

Name Type Required Value
id string No The PublicIPAddress Reference

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
VMSS with Public IP Prefix

Deploy to Azure
Template for deploying VMSS with Public IP Prefix
Create an Azure Firewall with multiple IP public addresses

Deploy to Azure
This template creates an Azure Firewall with two public IP addresses and two Windows Server 2019 servers to test.
Virtual Network NAT

Deploy to Azure
Deploy a NAT gateway and virtual machine