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
-
To create an IPv6 address, modify the **`--version`** parameter to **IPv6**.
49
+
To create an IPv6 address, modify the `--version` parameter to **IPv6**.
50
50
51
51
```azurecli-interactive
52
52
az network public-ip create \
@@ -57,7 +57,7 @@ To create an IPv6 address, modify the **`--version`** parameter to **IPv6**.
57
57
--zone 1 2 3
58
58
```
59
59
> [!IMPORTANT]
60
-
> For versions of the API older than 2020-08-01, execute the command without specifying a **`--zone`** parameter to create a zone-redundant IP address.
60
+
> For versions of the API older than 2020-08-01, execute the command without specifying a `--zone` parameter to create a zone-redundant IP address.
61
61
>
62
62
63
63
# [**Basic SKU**](#tab/create-public-ip-basic)
@@ -66,7 +66,7 @@ In this section, you create a basic IP. Basic public IPs don't support availabil
66
66
67
67
Use [az network public-ip create](/cli/azure/network/public-ip#az-network-public-ip-create) to create a basic static public IPv4 address named **myBasicPublicIP** in **QuickStartCreateIP-rg**.
68
68
69
-
To create an IPv6 address, modify the **`--version`** parameter to **IPv6**.
69
+
To create an IPv6 address, modify the `--version` parameter to **IPv6**.
70
70
71
71
```azurecli-interactive
72
72
az network public-ip create \
@@ -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
@@ -91,7 +91,7 @@ In this section, you learn how to create a zonal or no-zone public IP address.
91
91
92
92
To create a standard zonal public IPv4 address in Zone 2 named **myStandardPublicIP** in **QuickStartCreateIP-rg**, use the following command.
93
93
94
-
To create an IPv6 address, modify the **`--version`** parameter to **IPv6**.
94
+
To create an IPv6 address, modify the `--version` parameter to **IPv6**.
95
95
96
96
```azurecli-interactive
97
97
az network public-ip create \
@@ -107,14 +107,14 @@ 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
117
-
To create an IPv6 address, modify the **`--version`** parameter to **IPv6**.
117
+
To create an IPv6 address, modify the `--version` parameter to **IPv6**.
118
118
119
119
```azurecli-interactive
120
120
az network public-ip create \
@@ -123,9 +123,9 @@ 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
-
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).
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
130
130
---
131
131
@@ -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-cli.md
+23-23Lines changed: 23 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,12 +29,12 @@ When you create a public IP address resource, you can assign a static public IP
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 [az group create](/cli/azure/group#az-group-create) named **QuickStartCreateIPPrefix-rg** in the **eastus2** location.
32
+
Create a resource group with [az group create](/cli/azure/group#az-group-create) named **QuickStartCreateIPPrefix-rg** in the **westus2** location.
33
33
34
34
```azurecli-interactive
35
35
az group create \
36
36
--name QuickStartCreateIPPrefix-rg \
37
-
--location eastus2
37
+
--location westus2
38
38
```
39
39
40
40
## Create a public IP address prefix
@@ -49,34 +49,34 @@ The prefixes in the examples are:
49
49
50
50
For more information on available prefix sizes, see [Prefix sizes](public-ip-address-prefix.md#prefix-sizes).
51
51
52
-
Create a public IP prefix with [az network public-ip prefix create](/cli/azure/network/public-ip/prefix#az-network-public-ip-prefix-create) named **myPublicIpPrefix** in the **eastus2** location.
52
+
Create a public IP prefix with [az network public-ip prefix create](/cli/azure/network/public-ip/prefix#az-network-public-ip-prefix-create) named **myPublicIpPrefix** in the **westus2** location.
To create a IPv4 public IP prefix, enter **IPv4** in the **`--version`** parameter. To create a zone redundant IPv4 prefix, enter **1,2,3** in the**`--zone`** parameter.
58
+
To create a IPv4 public IP prefix, enter **IPv4** in the `--version` parameter. To create a zone redundant IPv4 prefix, enter **1 2 3** in the parameter.
59
59
60
60
```azurecli-interactive
61
61
az network public-ip prefix create \
62
62
--length 28 \
63
63
--name myPublicIpPrefix \
64
64
--resource-group QuickStartCreateIPPrefix-rg \
65
-
--location eastus2 \
65
+
--location westus2 \
66
66
--version IPv4 \
67
67
--zone 1 2 3
68
68
```
69
69
70
70
# [**Zonal IPv4 prefix**](#tab/ipv4-zonal)
71
71
72
-
To create a IPv4 public IP prefix, enter **IPv4** in the **`--version`** parameter. Enter **2** in the **`--zone`** parameter to create a zonal IP prefix in zone 2.
72
+
To create a IPv4 public IP prefix, enter **IPv4** in the `--version` parameter. Enter **2** in the `--zone` parameter to create a zonal IP prefix in zone 2.
73
73
74
74
```azurecli-interactive
75
75
az network public-ip prefix create \
76
76
--length 28 \
77
77
--name myPublicIpPrefix-zonal \
78
78
--resource-group QuickStartCreateIPPrefix-rg \
79
-
--location eastus2 \
79
+
--location westus2 \
80
80
--version IPv4 \
81
81
--zone 2
82
82
```
@@ -86,33 +86,33 @@ To create a IPv4 public IP prefix, enter **IPv4** in the **`--version`** paramet
To create a IPv4 public IP prefix, enter **IPv4** in the **`--version`** parameter. Remove the **`--zone`** parameter to create a non-zonal IP prefix.
89
+
To create a IPv4 public IP prefix, enter **IPv4** in the `--version` parameter. Remove the `--zone` parameter to create a non-zonal IP prefix.
90
90
91
91
```azurecli-interactive
92
92
az network public-ip prefix create \
93
93
--length 28 \
94
94
--name myPublicIpPrefix-nozone \
95
95
--resource-group QuickStartCreateIPPrefix-rg \
96
-
--location eastus2 \
96
+
--location westus2 \
97
97
--version IPv4
98
98
```
99
99
100
-
The removal of the **`--zone`** parameter in the command is valid in all regions.
100
+
The removal of the `--zone` parameter in the command is valid in all regions.
101
101
102
-
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).
102
+
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).
103
103
104
104
---
105
105
106
106
# [**Routing Preference Internet IPv4 prefix**](#tab/ipv4-routing-pref)
107
107
108
-
To create a IPv4 public IP prefix with routing preference Internet, enter **RoutingPreference=Internet** in the **`--ip-tags`** parameter.
108
+
To create a IPv4 public IP prefix with routing preference Internet, enter **RoutingPreference=Internet** in the `--ip-tags` parameter.
109
109
110
110
```azurecli-interactive
111
111
az network public-ip prefix create \
112
112
--length 28 \
113
113
--name myPublicIpPrefix-rpinternet \
114
114
--resource-group QuickStartCreateIPPrefix-rg \
115
-
--location eastus2 \
115
+
--location westus2 \
116
116
--version IPv4
117
117
--iptags 'RoutingPreference=Internet'
118
118
```
@@ -122,28 +122,28 @@ To create a IPv4 public IP prefix with routing preference Internet, enter **Rout
To create a IPv4 public IP prefix, enter **IPv6** in the **`--version`** parameter. To create a zone redundant IPv6 prefix, enter **1,2,3** in the **`--zone`** parameter.
125
+
To create a IPv4 public IP prefix, enter **IPv6** in the `--version` parameter. To create a zone redundant IPv6 prefix, enter **1 2 3** in the `--zone` parameter.
126
126
127
127
```azurecli-interactive
128
128
az network public-ip prefix create \
129
129
--length 124 \
130
130
--name myPublicIpPrefix \
131
131
--resource-group QuickStartCreateIPPrefix-rg \
132
-
--location eastus2 \
132
+
--location westus2 \
133
133
--version IPv6 \
134
134
--zone 1 2 3
135
135
```
136
136
137
137
# [**Zonal IPv6 prefix**](#tab/ipv6-zonal)
138
138
139
-
To create a IPv6 public IP prefix, enter **IPv6** in the **`--version`** parameter. Enter **2** in the **`--zone`** parameter to create a zonal IP prefix in zone 2.
139
+
To create a IPv6 public IP prefix, enter **IPv6** in the `--version` parameter. Enter **2** in the `--zone` parameter to create a zonal IP prefix in zone 2.
140
140
141
141
```azurecli-interactive
142
142
az network public-ip prefix create \
143
143
--length 124 \
144
144
--name myPublicIpPrefix-zonal \
145
145
--resource-group QuickStartCreateIPPrefix-rg \
146
-
--location eastus2 \
146
+
--location westus2 \
147
147
--version IPv6 \
148
148
--zone 2
149
149
```
@@ -153,20 +153,20 @@ To create a IPv6 public IP prefix, enter **IPv6** in the **`--version`** paramet
To create a IPv6 public IP prefix, enter **IPv6** in the **`--version`** parameter. Remove the **`--zone`** parameter to create a non-zonal IP prefix.
156
+
To create a IPv6 public IP prefix, enter **IPv6** in the `--version` parameter. Remove the `--zone` parameter to create a non-zonal IP prefix.
157
157
158
158
```azurecli-interactive
159
159
az network public-ip prefix create \
160
160
--length 124 \
161
161
--name myPublicIpPrefix-nozone \
162
162
--resource-group QuickStartCreateIPPrefix-rg \
163
-
--location eastus2 \
163
+
--location westus2 \
164
164
--version IPv6
165
165
```
166
166
167
-
The removal of the **`--zone`** parameter in the command is valid in all regions.
167
+
The removal of the `--zone` parameter in the command is valid in all regions.
168
168
169
-
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).
169
+
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).
170
170
171
171
---
172
172
@@ -178,7 +178,7 @@ Create a public IP address with [az network public-ip create](/cli/azure/network
178
178
179
179
# [**IPv4 address**](#tab/ipv4-address)
180
180
181
-
To create a IPv4 public IP address, enter **IPv4** in the **`--version`** parameter.
181
+
To create a IPv4 public IP address, enter **IPv4** in the `--version` parameter.
182
182
183
183
```azurecli-interactive
184
184
az network public-ip create \
@@ -192,7 +192,7 @@ To create a IPv4 public IP address, enter **IPv4** in the **`--version`** parame
192
192
193
193
# [**IPv6 address**](#tab/ipv6-address)
194
194
195
-
To create a IPv6 public IP prefix, enter **IPv6** in the **`--version`** parameter.
195
+
To create a IPv6 public IP prefix, enter **IPv6** in the `--version` parameter.
0 commit comments