Skip to content

Commit afe6242

Browse files
Merge pull request #299717 from mbender-ms/ip-terraform-uuf427525
ip services | UUF | Major Maintenance | update create-public-ip-terraform.md
2 parents d640f19 + c6f1b71 commit afe6242

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

articles/virtual-network/ip-services/create-public-ip-terraform.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: mbender-ms
77
ms.author: mbender
88
ms.service: azure-virtual-network
99
ms.topic: quickstart
10-
ms.date: 01/18/2025
10+
ms.date: 05/12/2025
1111
ms.custom: mode-api, devx-track-terraform
1212
---
1313

@@ -42,7 +42,7 @@ In this article, you learn how to:
4242

4343
An Azure resource group is a logical container into which Azure resources are deployed and managed.
4444

45-
:::code language="terraform" source="~/terraform_samples/quickstart/101-virtual-network-public-ip/main.tf" range="1-8":::
45+
:::code language="terraform" source="~/terraform_samples/quickstart/101-virtual-network-public-ip/main.tf" range="1-10":::
4646

4747
## Create public IP
4848

@@ -53,7 +53,7 @@ An Azure resource group is a logical container into which Azure resources are de
5353
>
5454
>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).
5555
56-
:::code language="terraform" source="~/terraform_samples/quickstart/101-virtual-network-public-ip/main.tf" range="10-18":::
56+
:::code language="terraform" source="~/terraform_samples/quickstart/101-virtual-network-public-ip/main.tf" range="12-22":::
5757

5858
> [!IMPORTANT]
5959
> For versions of the API older than 2020-08-01, omit the `zone` field to create a zone-redundant IP address.
@@ -65,7 +65,7 @@ In this section, you create a basic IP. Basic public IPs don't support availabil
6565

6666
The following code snippet creates an IPv6 address. For an IPv6 address, set the `ip_version` value to **IPv6**.
6767

68-
:::code language="terraform" source="~/terraform_samples/quickstart/101-virtual-network-public-ip/main.tf" range="20-27":::
68+
:::code language="terraform" source="~/terraform_samples/quickstart/101-virtual-network-public-ip/main.tf" range="24-33":::
6969

7070
If it's acceptable for the IP address to change over time, dynamic IP assignment can be selected by changing the `allocation_method` value to **Dynamic**.
7171

@@ -84,7 +84,7 @@ The following code snippet creates a standard zonal public IPv4 address in Zone
8484

8585
To create an IPv6 address, set the `ip_version` value to **IPv6**.
8686

87-
:::code language="terraform" source="~/terraform_samples/quickstart/101-virtual-network-public-ip/main.tf" range="29-37":::
87+
:::code language="terraform" source="~/terraform_samples/quickstart/101-virtual-network-public-ip/main.tf" range="35-45":::
8888

8989
>[!NOTE]
9090
>For more information about availability zones, see [What are availability zones?](../../reliability/availability-zones-overview.md?toc=%2fazure%2fvirtual-network%2ftoc.json).
@@ -98,7 +98,7 @@ The following code snippet creates a standard public IPv4 address as a non-zonal
9898
9999
To create an IPv6 address, set the `ip_version` value to **IPv6**.
100100

101-
:::code language="terraform" source="~/terraform_samples/quickstart/101-virtual-network-public-ip/main.tf" range="39-46":::
101+
:::code language="terraform" source="~/terraform_samples/quickstart/101-virtual-network-public-ip/main.tf" range="47-56":::
102102

103103
The removal of the `zone` field is valid in all regions.
104104

@@ -120,7 +120,7 @@ For more information on routing preference, see [What is routing preference (pre
120120

121121
The following code snippet creates a new standard zone-redundant public IPv4 address with a routing preference of type **Internet**:
122122

123-
:::code language="terraform" source="~/terraform_samples/quickstart/101-virtual-network-public-ip/main.tf" range="48-61":::
123+
:::code language="terraform" source="~/terraform_samples/quickstart/101-virtual-network-public-ip/main.tf" range="58-73":::
124124

125125
# [Tier](#tab/tier)
126126

@@ -130,7 +130,7 @@ For more information, see [Cross-region load balancer](../../load-balancer/cross
130130

131131
The following code snippet creates a global IPv4 address. This address can be associated with the frontend of a cross-region load balancer.
132132

133-
:::code language="terraform" source="~/terraform_samples/quickstart/101-virtual-network-public-ip/main.tf" range="63-71":::
133+
:::code language="terraform" source="~/terraform_samples/quickstart/101-virtual-network-public-ip/main.tf" range="75-85":::
134134

135135
>[!NOTE]
136136
>Global tier addresses don't support Availability Zones.

0 commit comments

Comments
 (0)