@@ -13,9 +13,10 @@ Creates a CustomIpPrefix resource
13
13
## SYNTAX
14
14
15
15
```
16
- New-AzCustomIpPrefix -Name <String> -ResourceGroupName <String> -Location <String> -Cidr <String> [-Geo <String>]
17
- [-Asn <String>] [-ExpressRouteAdvertise] [-Zone <String[]>] [-Tag <Hashtable>] [-SignedMessage <String>] [-AuthorizationMessage <String>]
18
- [-CustomIpPrefixParent <CustomIpPrefix>] [-AsJob] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
16
+ New-AzCustomIpPrefix -Name <String> -ResourceGroupName <String> -Location <String> -Cidr <String>
17
+ [-Asn <String>] [-Geo <String>] [-SignedMessage <String>] [-AuthorizationMessage <String>]
18
+ [-ExpressRouteAdvertise] [-CustomIpPrefixParent <PSCustomIpPrefix>] [-IsParent] [-Zone <String[]>]
19
+ [-Tag <Hashtable>] [-AsJob] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
19
20
[<CommonParameters>]
20
21
```
21
22
@@ -31,13 +32,27 @@ $myCustomIpPrefix = New-AzCustomIpPrefix -Name $prefixName -ResourceGroupName $r
31
32
32
33
This command kicks off the provisioning process for a new zone-redundant IPv4 Custom IP Prefix resource with name $prefixName in resource group $rgName with a CIDR of 40.40.40.0/24 in West US 2 region. Note the AuthorizationMessage is a contactenated string (containing the subscription ID, CIDR, and Route Origin Authorization expiration date) and the SignedMessage is the same string signed by X509 certificate offline.
33
34
35
+ ### Example 2
36
+ ``` powershell
37
+ $myV4ParentPrefix = New-AzCustomIpPrefix -Name $prefixName -ResourceGroupName $rgName -Cidr "40.40.40.0/24" -Location westus2 -IsParent -AuthorizationMessage $authorizationMessage -SignedMessage $signedMessage
38
+ ```
39
+
40
+ This command kicks off the provisioning process for a new Parent IPv4 Custom IP Prefix resource with name $prefixName in resource group $rgName with a CIDR of 40.40.40.0/24.
41
+
42
+ ### Example 3
43
+ ``` powershell
44
+ $myV4ChildIpPrefix = New-AzCustomIpPrefix -Name $prefixName -ResourceGroupName $rgName -Cidr "40.40.40.0/25" -Location westus2 -CustomIpPrefixParent $myV4ParentPrefix
45
+ ```
46
+
47
+ This command kicks off the provisioning process for a new Child IPv4 Custom IP Prefix resource with name $prefixName in resource group $rgName with a CIDR of 40.40.40.0/25. Its parent prefix is $myV4ParentPrefix.
48
+
34
49
## PARAMETERS
35
50
36
51
### -AsJob
37
52
Run cmdlet in the background
38
53
39
54
``` yaml
40
- Type : SwitchParameter
55
+ Type : System.Management.Automation. SwitchParameter
41
56
Parameter Sets : (All)
42
57
Aliases :
43
58
@@ -48,26 +63,26 @@ Accept pipeline input: False
48
63
Accept wildcard characters : False
49
64
` ` `
50
65
51
- ### -Cidr
52
- The CustomIpPrefix CIDR .
66
+ ### -Asn
67
+ The customIpPrefix ASN code .
53
68
54
69
` ` ` yaml
55
- Type : String
70
+ Type : System. String
56
71
Parameter Sets : (All)
57
72
Aliases :
58
73
59
- Required : True
74
+ Required : False
60
75
Position : Named
61
76
Default value : None
62
77
Accept pipeline input : True (ByPropertyName)
63
78
Accept wildcard characters : False
64
79
` ` `
65
80
66
- ### -Geo
67
- The CustomIpPrefix Geo code .
81
+ ### -AuthorizationMessage
82
+ Authorization message for WAN validation .
68
83
69
84
` ` ` yaml
70
- Type : String
85
+ Type : System. String
71
86
Parameter Sets : (All)
72
87
Aliases :
73
88
@@ -78,41 +93,41 @@ Accept pipeline input: True (ByPropertyName)
78
93
Accept wildcard characters : False
79
94
` ` `
80
95
81
- ### -Asn
82
- The CustomIpPrefix Geo code .
96
+ ### -Cidr
97
+ The CustomIpPrefix CIDR .
83
98
84
99
` ` ` yaml
85
- Type : String
100
+ Type : System. String
86
101
Parameter Sets : (All)
87
102
Aliases :
88
103
89
- Required : False
104
+ Required : True
90
105
Position : Named
91
106
Default value : None
92
107
Accept pipeline input : True (ByPropertyName)
93
108
Accept wildcard characters : False
94
109
` ` `
95
110
96
- ### -ExpressRouteAdvertise
97
- Need to use ExpressRoute to advertise the CustomIpPrefix
111
+ ### -CustomIpPrefixParent
112
+ Parent CustomIpPrefix of resource.
98
113
99
114
` ` ` yaml
100
- Type : SwitchParameter
115
+ Type : Microsoft.Azure.Commands.Network.Models.PSCustomIpPrefix
101
116
Parameter Sets : (All)
102
117
Aliases :
103
118
104
119
Required : False
105
120
Position : Named
106
121
Default value : None
107
- Accept pipeline input : False
122
+ Accept pipeline input : True (ByPropertyName)
108
123
Accept wildcard characters : False
109
124
` ` `
110
125
111
126
### -DefaultProfile
112
127
The credentials, account, tenant, and subscription used for communication with Azure.
113
128
114
129
` ` ` yaml
115
- Type : IAzureContextContainer
130
+ Type : Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core. IAzureContextContainer
116
131
Parameter Sets : (All)
117
132
Aliases : AzContext, AzureRmContext, AzureCredential
118
133
@@ -123,41 +138,57 @@ Accept pipeline input: False
123
138
Accept wildcard characters : False
124
139
` ` `
125
140
126
- ### -Location
127
- The CustomIpPrefix location .
141
+ ### -ExpressRouteAdvertise
142
+ Using expressRoute advertise .
128
143
129
144
` ` ` yaml
130
- Type : String
145
+ Type : System.Management.Automation.SwitchParameter
131
146
Parameter Sets : (All)
132
147
Aliases :
133
148
134
- Required : True
149
+ Required : False
135
150
Position : Named
136
151
Default value : None
137
152
Accept pipeline input : True (ByPropertyName)
138
153
Accept wildcard characters : False
139
154
` ` `
140
155
141
- ### -Name
142
- The resource name .
156
+ ### -Geo
157
+ The customIpPrefix GEO code .
143
158
144
159
` ` ` yaml
145
- Type : String
160
+ Type : System. String
146
161
Parameter Sets : (All)
147
- Aliases : ResourceName
162
+ Aliases :
163
+ Accepted values : AFRI, APAC, AQ, EURO, LATAM, ME, NAM, OCEANIA
148
164
149
- Required : True
165
+ Required : False
150
166
Position : Named
151
167
Default value : None
152
168
Accept pipeline input : True (ByPropertyName)
153
169
Accept wildcard characters : False
154
170
` ` `
155
171
156
- ### -ResourceGroupName
157
- The resource group name.
172
+ ### -IsParent
173
+ Denotes that resource is being created as a Parent CustomIpPrefix
158
174
159
175
` ` ` yaml
160
- Type : String
176
+ Type : System.Management.Automation.SwitchParameter
177
+ Parameter Sets : (All)
178
+ Aliases :
179
+
180
+ Required : False
181
+ Position : Named
182
+ Default value : None
183
+ Accept pipeline input : False
184
+ Accept wildcard characters : False
185
+ ` ` `
186
+
187
+ ### -Location
188
+ The CustomIpPrefix location.
189
+
190
+ ` ` ` yaml
191
+ Type : System.String
161
192
Parameter Sets : (All)
162
193
Aliases :
163
194
@@ -168,41 +199,41 @@ Accept pipeline input: True (ByPropertyName)
168
199
Accept wildcard characters : False
169
200
` ` `
170
201
171
- ### -Tag
172
- A hashtable which represents resource tags .
202
+ ### -Name
203
+ The resource name .
173
204
174
205
` ` ` yaml
175
- Type : Hashtable
206
+ Type : System.String
176
207
Parameter Sets : (All)
177
- Aliases :
208
+ Aliases : ResourceName
178
209
179
- Required : False
210
+ Required : True
180
211
Position : Named
181
212
Default value : None
182
213
Accept pipeline input : True (ByPropertyName)
183
214
Accept wildcard characters : False
184
215
` ` `
185
216
186
- ### -SignedMessage
187
- Signed message for WAN validation .
217
+ ### -ResourceGroupName
218
+ The resource group name .
188
219
189
220
` ` ` yaml
190
- Type : String
221
+ Type : System. String
191
222
Parameter Sets : (All)
192
223
Aliases :
193
224
194
- Required : False
225
+ Required : True
195
226
Position : Named
196
227
Default value : None
197
228
Accept pipeline input : True (ByPropertyName)
198
229
Accept wildcard characters : False
199
230
` ` `
200
231
201
- ### -AuthorizationMessage
202
- Authorization message for WAN validation.
232
+ ### -SignedMessage
233
+ Signed message for WAN validation.
203
234
204
235
` ` ` yaml
205
- Type : String
236
+ Type : System. String
206
237
Parameter Sets : (All)
207
238
Aliases :
208
239
@@ -213,11 +244,11 @@ Accept pipeline input: True (ByPropertyName)
213
244
Accept wildcard characters : False
214
245
` ` `
215
246
216
- ### -CustomIpPrefixParent
217
- Parent CustomIpPrefix of resource.
247
+ ### -Tag
248
+ A hashtable which represents resource tags .
218
249
219
250
` ` ` yaml
220
- Type : CustomIpPrefix
251
+ Type : System.Collections.Hashtable
221
252
Parameter Sets : (All)
222
253
Aliases :
223
254
@@ -232,7 +263,7 @@ Accept wildcard characters: False
232
263
A list of availability zones denoting the IP allocated for the resource needs to come from.
233
264
234
265
` ` ` yaml
235
- Type : String[]
266
+ Type : System. String[]
236
267
Parameter Sets : (All)
237
268
Aliases :
238
269
@@ -247,7 +278,7 @@ Accept wildcard characters: False
247
278
Prompts you for confirmation before running the cmdlet.
248
279
249
280
` ` ` yaml
250
- Type : SwitchParameter
281
+ Type : System.Management.Automation. SwitchParameter
251
282
Parameter Sets : (All)
252
283
Aliases : cf
253
284
@@ -263,7 +294,7 @@ Shows what would happen if the cmdlet runs.
263
294
The cmdlet is not run.
264
295
265
296
` ` ` yaml
266
- Type : SwitchParameter
297
+ Type : System.Management.Automation. SwitchParameter
267
298
Parameter Sets : (All)
268
299
Aliases : wi
269
300
0 commit comments