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
>Standard SKU public IP is recommended for production workloads. For more information about SKUs, see **[Public IP addresses](public-ip-addresses.md)**.
43
+
>Standard SKU public IP is recommended for production workloads. For more information about SKUs, see **[Public IP addresses](public-ip-addresses.md)**.
44
44
>
45
-
>The following command works for API version **2020-08-01** or **later**. For more information about the API version currently being used, please refer to[Resource Providers and Types](../../azure-resource-manager/management/resource-providers-and-types.md).
45
+
>The following command 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).
46
46
47
-
Use [az network public-ip create](/cli/azure/network/public-ip#az-network-public-ip-create) to create a standard zone-redundant public IPv4 address named **myStandardPublicIP** in **QuickStartCreateIP-rg**.
47
+
Use [az network public-ip create](/cli/azure/network/public-ip#az-network-public-ip-create) to create a standard zone-redundant public IPv4 address named **myStandardPublicIP** in **QuickStartCreateIP-rg**.
48
48
49
49
To create an IPv6 address, modify the **`--version`** parameter to **IPv6**.
50
50
@@ -79,7 +79,7 @@ To create an IPv6 address, modify the **`--version`** parameter to **IPv6**.
79
79
If it's acceptable for the IP address to change over time, **Dynamic** IP assignment can be selected by changing the **`--allocation-method`** to **Dynamic**.
80
80
81
81
>[!NOTE]
82
-
> A basic IPv6 address must always be 'Dynamic'.
82
+
> A basic IPv6 address must always be Dynamic`.
83
83
84
84
---
85
85
@@ -107,10 +107,10 @@ To create an IPv6 address, modify the **`--version`** parameter to **IPv6**.
In this section, you create a non-zonal IP address.
110
+
In this section, you create a non-zonal IP address.
111
111
112
112
>[!NOTE]
113
-
>The following command works for API version 2020-08-01 or later. For more information about the API version currently being used, please refer to[Resource Providers and Types](../../azure-resource-manager/management/resource-providers-and-types.md).
113
+
>The following command 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).
114
114
115
115
Use [az network public-ip create](/cli/azure/network/public-ip#az-network-public-ip-create) to create a standard public IPv4 address as a non-zonal resource named **myStandardPublicIP-nozone** in **QuickStartCreateIP-rg**.
116
116
@@ -123,7 +123,7 @@ To create an IPv6 address, modify the **`--version`** parameter to **IPv6**.
123
123
--version IPv4 \
124
124
--sku Standard
125
125
```
126
-
The removal of the **`--zone`** parameter in the command is valid in all regions.
126
+
The removal of the **`--zone`** parameter in the command is valid in all regions.
127
127
128
128
The removal of the **`--zone`** parameter is the default selection for standard public IP addresses in regions without [Availability Zones](../../reliability/availability-zones-overview.md?toc=%2fazure%2fvirtual-network%2ftoc.json).
129
129
@@ -135,9 +135,9 @@ Standard SKU static public IPv4 addresses support Routing Preference or the Glob
By default, the routing preference for public IP addresses is set to **Microsoft network**, which delivers traffic over Microsoft's global wide area network to the user.
138
+
By default, the routing preference for public IP addresses is set to **Microsoft network**, which delivers traffic over Microsoft's global wide area network to the user.
139
139
140
-
The selection of **Internet** minimizes travel on Microsoft's network, instead using the transit ISP network to deliver traffic at a cost-optimized rate.
140
+
The selection of **Internet** minimizes travel on Microsoft's network, instead using the transit ISP network to deliver traffic at a cost-optimized rate.
141
141
142
142
For more information on routing preference, see [What is routing preference (preview)?](routing-preference-overview.md).
143
143
@@ -155,7 +155,7 @@ The command creates a new standard zone-redundant public IPv4 address with a rou
155
155
156
156
# [**Tier**](#tab/tier)
157
157
158
-
Public IP addresses are associated with a single region. The **Global** tier spans an IP address across multiple regions. **Global** tier is required for the frontends of cross-region load balancers.
158
+
Public IP addresses are associated with a single region. The **Global** tier spans an IP address across multiple regions. **Global** tier is required for the frontends of cross-region load balancers.
159
159
160
160
For more information, see [Cross-region load balancer](../../load-balancer/cross-region-overview.md).
Copy file name to clipboardExpand all lines: articles/virtual-network/ip-services/create-public-ip-prefix-powershell.md
+28-28Lines changed: 28 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ ms.author: mbender
8
8
ms.service: azure-virtual-network
9
9
ms.subservice: ip-services
10
10
ms.topic: quickstart
11
-
ms.date: 08/24/2023
11
+
ms.date: 01/09/2025
12
12
ms.custom: mode-api, devx-track-azurepowershell
13
13
---
14
14
@@ -29,12 +29,12 @@ If you choose to install and use PowerShell locally, this article requires the A
29
29
30
30
An Azure resource group is a logical container into which Azure resources are deployed and managed.
31
31
32
-
Create a resource group with [New-AzResourceGroup](/powershell/module/az.resources/new-azresourcegroup) named **QuickStartCreateIPPrefix-rg** in the **eastus2** location.
32
+
Create a resource group with [New-AzResourceGroup](/powershell/module/az.resources/new-azresourcegroup) named **QuickStartCreateIPPrefix-rg** in the **westus2** location.
33
33
34
34
```azurepowershell-interactive
35
35
$rg =@{
36
36
Name = 'QuickStartCreateIPPrefix-rg'
37
-
Location = 'eastus2'
37
+
Location = 'westus2'
38
38
}
39
39
New-AzResourceGroup @rg
40
40
```
@@ -51,19 +51,19 @@ The prefixes in the examples are:
51
51
52
52
For more information on available prefix sizes, see [Prefix sizes](public-ip-address-prefix.md#prefix-sizes).
53
53
54
-
Create a public IP prefix with [New-AzPublicIpPrefix](/powershell/module/az.network/new-azpublicipprefix) named **myPublicIpPrefix** in the **eastus2** location.
54
+
Create a public IP prefix with [New-AzPublicIpPrefix](/powershell/module/az.network/new-azpublicipprefix) named **myPublicIpPrefix** in the **westus2** location.
To create a IPv4 public IP prefix, enter **IPv4** in the **`-IpAddressVersion`** parameter. To create a zone redundant IPv4 prefix, enter **1,2,3** in the **`-Zone`** parameter.
60
+
To create a IPv4 public IP prefix, enter **IPv4** in the `-IpAddressVersion` parameter. To create a zone redundant IPv4 prefix, enter **1,2,3** in the `-Zone` parameter.
61
61
62
62
```azurepowershell-interactive
63
63
$ipv4 =@{
64
64
Name = 'myPublicIpPrefix'
65
65
ResourceGroupName = 'QuickStartCreateIPPrefix-rg'
66
-
Location = 'eastus2'
66
+
Location = 'westus2'
67
67
PrefixLength = '28'
68
68
IpAddressVersion = 'IPv4'
69
69
Zone = 1,2,3
@@ -73,14 +73,14 @@ New-AzPublicIpPrefix @ipv4
73
73
74
74
# [**Zonal IPv4 prefix**](#tab/ipv4-zonal)
75
75
76
-
To create a IPv4 public IP prefix, enter **IPv4** in the **`-IpAddressVersion`** parameter. Enter **2** in the **`-Zone`** parameter to create a zonal IP prefix in zone 2.
76
+
To create a IPv4 public IP prefix, enter **IPv4** in the `-IpAddressVersion` parameter. Enter **2** in the `-Zone` parameter to create a zonal IP prefix in zone 2.
To create a IPv4 public IP prefix, enter **IPv4** in the **`-IpAddressVersion`** parameter. Remove the **`-Zone`** parameter to create a non-zonal IP prefix.
95
+
To create a IPv4 public IP prefix, enter **IPv4** in the `-IpAddressVersion` parameter. Remove the `-Zone` parameter to create a non-zonal IP prefix.
96
96
97
97
```azurepowershell-interactive
98
98
$ipv4 =@{
99
99
Name = 'myPublicIpPrefix-nozone'
100
100
ResourceGroupName = 'QuickStartCreateIPPrefix-rg'
101
-
Location = 'eastus2'
102
-
PrefixLength = '28'
101
+
Location = 'westus2'
102
+
PrefixLength '28'
103
103
IpAddressVersion = 'IPv4'
104
104
}
105
105
New-AzPublicIpPrefix @ipv4
106
106
```
107
107
108
-
The removal of the **`-Zone`** parameter in the command is valid in all regions.
108
+
The removal of the `-Zone` parameter in the command is valid in all regions.
109
109
110
-
The removal of the **`-Zone`** parameter is the default selection for standard public IP addresses in regions without [Availability Zones](../../reliability/availability-zones-overview.md?toc=%2fazure%2fvirtual-network%2ftoc.json).
110
+
The removal of the `-Zone` parameter is the default selection for standard public IP addresses in regions without [Availability Zones](../../reliability/availability-zones-overview.md?toc=%2fazure%2fvirtual-network%2ftoc.json).
111
111
112
112
# [**Routing Preference Internet IPv4 prefix**](#tab/ipv4-routing-pref)
To create a IPv4 public IP prefix, enter **IPv6** in the **`-IpAddressVersion`** parameter. To create a zone redundant IPv6 prefix, enter **1,2,3** in the **`-Zone`** parameter.
138
+
To create a IPv4 public IP prefix, enter **IPv6** in the `-IpAddressVersion` parameter. To create a zone redundant IPv6 prefix, enter **1,2,3** in the `-Zone` parameter.
139
139
140
140
```azurepowershell-interactive
141
141
$ipv6 =@{
142
142
Name = 'myPublicIpPrefix'
143
143
ResourceGroupName = 'QuickStartCreateIPPrefix-rg'
144
-
Location = 'eastus2'
144
+
Location = 'westus2'
145
145
PrefixLength = '124'
146
146
IpAddressVersion = 'IPv6'
147
147
Zone = 1,2,3
@@ -151,13 +151,13 @@ New-AzPublicIpPrefix @ipv6
151
151
152
152
# [**Zonal IPv6 prefix**](#tab/ipv6-zonal)
153
153
154
-
To create a IPv6 public IP prefix, enter **IPv6** in the **`-IpAddressVersion`** parameter. Enter **2** in the **`-Zone`** parameter to create a zonal IP prefix in zone 2.
154
+
To create a IPv6 public IP prefix, enter **IPv6** in the `-IpAddressVersion` parameter. Enter **2** in the `-Zone` parameter to create a zonal IP prefix in zone 2.
To create a IPv6 public IP prefix, enter **IPv6** in the **`-IpAddressVersion`** parameter. Remove the **`-Zone`** parameter to create a non-zonal IP prefix.
173
+
To create a IPv6 public IP prefix, enter **IPv6** in the `-IpAddressVersion` parameter. Remove the `-Zone` parameter to create a non-zonal IP prefix.
174
174
175
175
```azurepowershell-interactive
176
176
$ipv6 =@{
177
177
Name = 'myPublicIpPrefix-nozone'
178
178
ResourceGroupName = 'QuickStartCreateIPPrefix-rg'
179
-
Location = 'eastus2'
179
+
Location = 'westus2'
180
180
PrefixLength = '124'
181
181
IpAddressVersion = 'IPv6'
182
182
}
183
183
New-AzPublicIpPrefix @ipv6
184
184
```
185
185
186
-
The removal of the **`-Zone`** parameter in the command is valid in all regions.
186
+
The removal of the `-Zone` parameter in the command is valid in all regions.
187
187
188
-
The removal of the **`-Zone`** parameter is the default selection for standard public IP addresses in regions without [Availability Zones](../../reliability/availability-zones-overview.md?toc=%2fazure%2fvirtual-network%2ftoc.json).
188
+
The removal of the `-Zone` parameter is the default selection for standard public IP addresses in regions without [Availability Zones](../../reliability/availability-zones-overview.md?toc=%2fazure%2fvirtual-network%2ftoc.json).
189
189
190
190
---
191
191
@@ -197,7 +197,7 @@ Create a public IP address with [New-AzPublicIpAddress](/powershell/module/az.ne
197
197
198
198
# [**IPv4 address**](#tab/ipv4-address)
199
199
200
-
To create a IPv4 public IP address, enter **IPv4** in the **`-IpAddressVersion`** parameter.
200
+
To create a IPv4 public IP address, enter **IPv4** in the `-IpAddressVersion` parameter.
0 commit comments