You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-network/ip-services/create-public-ip-prefix-terraform.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,9 +29,11 @@ In this article, you learn how to:
29
29
> * Create a random pet name for the Azure resource group name using [random_pet](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/pet)
30
30
> * Create an Azure resource group using [azurerm_resource_group](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_group)
31
31
> * Create a standard zone-redundant public IPv4 address prefix named **myIPv4**
32
+
> * Create a standard v2 zone-redundant public IPv4 address prefix named **myIPv4Stdv2**
32
33
> * Create a standard zonal public IPv4 address named **myIPv4Zonal**
33
34
> * Create a standard public IPv4 address named **myIPv4RPInternet** that supports the Routing Preference feature
34
35
> * Create a standard zone-redundant public IPv6 address prefix named **myIPv6**
36
+
> * Create a standard v2 zone-redundant public IPv6 address prefix named **myIPv6Stdv2**
35
37
> * Create a standard zonal public IPv6 address named **myIPv6Zonal**
36
38
> * Create a static public IP IPv4 address from an IP prefix
37
39
> * Create a static public IP IPv6 address from an IP prefix
@@ -67,6 +69,22 @@ To create an IPv4 public IP prefix, specify **IPv4** as the `ip_version` value.
To create a Standard v2 IPv4 public IP prefix, specify **IPv4** as the `ip_version` value. All Standardv2 IPv4 public IP prefixes must be zone-redundant, so specify **["1", "2", "3"]** as the `zones` value.
To create an IPv4 public IP prefix, specify **IPv4** as the `ip_version` value. To create a zonal IP prefix in zone 2, specify **["2"]** as the `zone` value.
@@ -94,6 +112,22 @@ To create an IPv6 public IP prefix, specify **IPv6** as the `ip_version` value.
To create a Standard v2 IPv6 public IP prefix, specify **IPv6** as the `ip_version` value. All Standardv2 IPv6 public IP prefixes must be zone-redundant, so specify **["1", "2", "3"]** as the `zones` value.
To create an IPv6 public IP prefix, specify **IPv6** as the `ip_version` value. To create a zone redundant IPv6 prefix, specify **["2"]** as the `zone` value.
Copy file name to clipboardExpand all lines: articles/virtual-network/ip-services/create-public-ip-terraform.md
+29-2Lines changed: 29 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@ In this article, you learn how to:
28
28
> * Create a random pet name for the Azure resource group name using [random_pet](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/pet)
29
29
> * Create an Azure resource group using [azurerm_resource_group](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_group)
30
30
> * Create a standard zone-redundant public IPv4 address named **myStandardPublicIP**
31
+
> * Create a standard v2 zone-redundant public IPv4 address named **myStandardv2PublicIP**
31
32
> * Create a standard zonal public IPv4 address in Zone 2 named **myZonalStandardPublicIP**
32
33
> * Create a standard static public IPv4 address named **myRoutingPreferenceStandardPublicIP** that supports the Routing Preference feature
33
34
> * Create a standard static public IPv4 address named **myGlobalTierStandardPublicIP** that supports the Global Tier feature
@@ -45,7 +46,7 @@ An Azure resource group is a logical container into which Azure resources are de
45
46
46
47
## Create public IP
47
48
48
-
# [Standard SKU](#tab/create-public-ip-standard)
49
+
# [Zone-Redundant Standard SKU](#tab/create-public-ip-standard)
49
50
50
51
### Create a standard zone-redundant IP address
51
52
@@ -62,9 +63,35 @@ In this section, you learn how to create a standard zone-redundant public IP add
62
63
> For versions of the API older than 2020-08-01, omit the `zone` field to create a zone-redundant IP address.
### Create a standard v2 zone-redundant IP address
66
69
67
-
# [Zonal](#tab/create-public-ip-zonal)
70
+
>[!NOTE]
71
+
>Standard v2 SKU public IP is required for use of the Standard v2 NAT Gateway with zone-redundancy. For more information about SKUs, see **[Public IP addresses](public-ip-addresses.md)**.
72
+
>
73
+
>The following command snippet works for API version **2020-08-01** or **later**. For more information about the API version currently being used, see [Resource Providers and Types](../../azure-resource-manager/management/resource-providers-and-types.md).
74
+
75
+
The following code snippet creates a standard v2 zone-redundant public IPv4 address named **myStandardv2PublicIP**.
76
+
77
+
To create an IPv6 address, set the `ip_version` value to **IPv6**.
0 commit comments