@@ -8,7 +8,7 @@ schema: 2.0.0
8
8
# New-AzGuestConfigurationAssignment
9
9
10
10
## SYNOPSIS
11
- Creates an association between a VM and guest configuration
11
+ create an association between a VM and guest configuration
12
12
13
13
## SYNTAX
14
14
@@ -17,7 +17,7 @@ Creates an association between a VM and guest configuration
17
17
New-AzGuestConfigurationAssignment -GuestConfigurationAssignmentName <String> -ResourceGroupName <String>
18
18
-VMName <String> -GuestConfigurationContentHash <String> -GuestConfigurationContentUri <String>
19
19
-GuestConfigurationName <String> -GuestConfigurationVersion <String> [-SubscriptionId <String>]
20
- [-Context <String>] [-GuestConfigurationAssignmentType <AssignmentType >] [-GuestConfigurationKind <Kind >]
20
+ [-Context <String>] [-GuestConfigurationAssignmentType <String >] [-GuestConfigurationKind <String >]
21
21
[-GuestConfigurationParameter <IConfigurationParameter[]>]
22
22
[-GuestConfigurationProtectedParameter <IConfigurationParameter[]>] [-Location <String>] [-Name <String>]
23
23
[-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
@@ -28,14 +28,42 @@ New-AzGuestConfigurationAssignment -GuestConfigurationAssignmentName <String> -R
28
28
New-AzGuestConfigurationAssignment -GuestConfigurationAssignmentName <String> -MachineName <String>
29
29
-ResourceGroupName <String> -GuestConfigurationContentHash <String> -GuestConfigurationContentUri <String>
30
30
-GuestConfigurationName <String> -GuestConfigurationVersion <String> [-SubscriptionId <String>]
31
- [-Context <String>] [-GuestConfigurationAssignmentType <AssignmentType >] [-GuestConfigurationKind <Kind >]
31
+ [-Context <String>] [-GuestConfigurationAssignmentType <String >] [-GuestConfigurationKind <String >]
32
32
[-GuestConfigurationParameter <IConfigurationParameter[]>]
33
33
[-GuestConfigurationProtectedParameter <IConfigurationParameter[]>] [-Location <String>] [-Name <String>]
34
34
[-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
35
35
```
36
36
37
+ ### CreateViaJsonFilePath
38
+ ```
39
+ New-AzGuestConfigurationAssignment -GuestConfigurationAssignmentName <String> -ResourceGroupName <String>
40
+ -VMName <String> -JsonFilePath <String> [-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-Confirm]
41
+ [-WhatIf] [<CommonParameters>]
42
+ ```
43
+
44
+ ### CreateViaJsonFilePath1
45
+ ```
46
+ New-AzGuestConfigurationAssignment -GuestConfigurationAssignmentName <String> -MachineName <String>
47
+ -ResourceGroupName <String> -JsonFilePath <String> [-SubscriptionId <String>] [-DefaultProfile <PSObject>]
48
+ [-Confirm] [-WhatIf] [<CommonParameters>]
49
+ ```
50
+
51
+ ### CreateViaJsonString
52
+ ```
53
+ New-AzGuestConfigurationAssignment -GuestConfigurationAssignmentName <String> -ResourceGroupName <String>
54
+ -VMName <String> -JsonString <String> [-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-Confirm]
55
+ [-WhatIf] [<CommonParameters>]
56
+ ```
57
+
58
+ ### CreateViaJsonString1
59
+ ```
60
+ New-AzGuestConfigurationAssignment -GuestConfigurationAssignmentName <String> -MachineName <String>
61
+ -ResourceGroupName <String> -JsonString <String> [-SubscriptionId <String>] [-DefaultProfile <PSObject>]
62
+ [-Confirm] [-WhatIf] [<CommonParameters>]
63
+ ```
64
+
37
65
## DESCRIPTION
38
- Creates an association between a VM and guest configuration
66
+ create an association between a VM and guest configuration
39
67
40
68
## EXAMPLES
41
69
@@ -73,7 +101,7 @@ Ex: Azure Policy
73
101
74
102
``` yaml
75
103
Type : System.String
76
- Parameter Sets : (All)
104
+ Parameter Sets : CreateExpanded, CreateExpanded1
77
105
Aliases :
78
106
79
107
Required : False
@@ -119,8 +147,8 @@ Specifies the assignment type and execution of the configuration.
119
147
Possible values are Audit, DeployAndAutoCorrect, ApplyAndAutoCorrect and ApplyAndMonitor.
120
148
121
149
` ` ` yaml
122
- Type : Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Support.AssignmentType
123
- Parameter Sets : (All)
150
+ Type : System.String
151
+ Parameter Sets : CreateExpanded, CreateExpanded1
124
152
Aliases :
125
153
126
154
Required : False
@@ -135,7 +163,7 @@ Combined hash of the guest configuration package and configuration parameters.
135
163
136
164
` ` ` yaml
137
165
Type : System.String
138
- Parameter Sets : (All)
166
+ Parameter Sets : CreateExpanded, CreateExpanded1
139
167
Aliases :
140
168
141
169
Required : True
@@ -150,7 +178,7 @@ Uri of the storage where guest configuration package is uploaded.
150
178
151
179
` ` ` yaml
152
180
Type : System.String
153
- Parameter Sets : (All)
181
+ Parameter Sets : CreateExpanded, CreateExpanded1
154
182
Aliases :
155
183
156
184
Required : True
@@ -165,8 +193,8 @@ Kind of the guest configuration.
165
193
For example:DSC
166
194
167
195
` ` ` yaml
168
- Type : Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Support.Kind
169
- Parameter Sets : (All)
196
+ Type : System.String
197
+ Parameter Sets : CreateExpanded, CreateExpanded1
170
198
Aliases :
171
199
172
200
Required : False
@@ -181,7 +209,7 @@ Name of the guest configuration.
181
209
182
210
` ` ` yaml
183
211
Type : System.String
184
- Parameter Sets : (All)
212
+ Parameter Sets : CreateExpanded, CreateExpanded1
185
213
Aliases :
186
214
187
215
Required : True
@@ -193,11 +221,10 @@ Accept wildcard characters: False
193
221
194
222
### -GuestConfigurationParameter
195
223
The configuration parameters for the guest configuration.
196
- To construct, see NOTES section for GUESTCONFIGURATIONPARAMETER properties and create a hash table.
197
224
198
225
` ` ` yaml
199
- Type : Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.Api20220125. IConfigurationParameter[]
200
- Parameter Sets : (All)
226
+ Type : Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationParameter[]
227
+ Parameter Sets : CreateExpanded, CreateExpanded1
201
228
Aliases :
202
229
203
230
Required : False
@@ -209,11 +236,10 @@ Accept wildcard characters: False
209
236
210
237
### -GuestConfigurationProtectedParameter
211
238
The protected configuration parameters for the guest configuration.
212
- To construct, see NOTES section for GUESTCONFIGURATIONPROTECTEDPARAMETER properties and create a hash table.
213
239
214
240
` ` ` yaml
215
- Type : Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.Api20220125. IConfigurationParameter[]
216
- Parameter Sets : (All)
241
+ Type : Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationParameter[]
242
+ Parameter Sets : CreateExpanded, CreateExpanded1
217
243
Aliases :
218
244
219
245
Required : False
@@ -228,7 +254,37 @@ Version of the guest configuration.
228
254
229
255
` ` ` yaml
230
256
Type : System.String
231
- Parameter Sets : (All)
257
+ Parameter Sets : CreateExpanded, CreateExpanded1
258
+ Aliases :
259
+
260
+ Required : True
261
+ Position : Named
262
+ Default value : None
263
+ Accept pipeline input : False
264
+ Accept wildcard characters : False
265
+ ` ` `
266
+
267
+ ### -JsonFilePath
268
+ Path of Json file supplied to the Create operation
269
+
270
+ ` ` ` yaml
271
+ Type : System.String
272
+ Parameter Sets : CreateViaJsonFilePath, CreateViaJsonFilePath1
273
+ Aliases :
274
+
275
+ Required : True
276
+ Position : Named
277
+ Default value : None
278
+ Accept pipeline input : False
279
+ Accept wildcard characters : False
280
+ ` ` `
281
+
282
+ ### -JsonString
283
+ Json string supplied to the Create operation
284
+
285
+ ` ` ` yaml
286
+ Type : System.String
287
+ Parameter Sets : CreateViaJsonString, CreateViaJsonString1
232
288
Aliases :
233
289
234
290
Required : True
@@ -243,7 +299,7 @@ Region where the VM is located.
243
299
244
300
` ` ` yaml
245
301
Type : System.String
246
- Parameter Sets : (All)
302
+ Parameter Sets : CreateExpanded, CreateExpanded1
247
303
Aliases :
248
304
249
305
Required : False
@@ -258,7 +314,7 @@ The name of the ARC machine.
258
314
259
315
` ` ` yaml
260
316
Type : System.String
261
- Parameter Sets : CreateExpanded1
317
+ Parameter Sets : CreateExpanded1, CreateViaJsonFilePath1, CreateViaJsonString1
262
318
Aliases :
263
319
264
320
Required : True
@@ -273,7 +329,7 @@ Name of the guest configuration assignment.
273
329
274
330
` ` ` yaml
275
331
Type : System.String
276
- Parameter Sets : (All)
332
+ Parameter Sets : CreateExpanded, CreateExpanded1
277
333
Aliases :
278
334
279
335
Required : False
@@ -319,7 +375,7 @@ The name of the virtual machine.
319
375
320
376
` ` ` yaml
321
377
Type : System.String
322
- Parameter Sets : CreateExpanded
378
+ Parameter Sets : CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString
323
379
Aliases :
324
380
325
381
Required : True
@@ -367,7 +423,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
367
423
368
424
## OUTPUTS
369
425
370
- ### Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.Api20220125. IGuestConfigurationAssignment
426
+ ### Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignment
371
427
372
428
## NOTES
373
429
0 commit comments