@@ -8,7 +8,7 @@ schema: 2.0.0
88# New-AzGuestConfigurationAssignment
99
1010## SYNOPSIS
11- Creates an association between a VM and guest configuration
11+ create an association between a VM and guest configuration
1212
1313## SYNTAX
1414
@@ -17,7 +17,7 @@ Creates an association between a VM and guest configuration
1717New-AzGuestConfigurationAssignment -GuestConfigurationAssignmentName <String> -ResourceGroupName <String>
1818 -VMName <String> -GuestConfigurationContentHash <String> -GuestConfigurationContentUri <String>
1919 -GuestConfigurationName <String> -GuestConfigurationVersion <String> [-SubscriptionId <String>]
20- [-Context <String>] [-GuestConfigurationAssignmentType <AssignmentType >] [-GuestConfigurationKind <Kind >]
20+ [-Context <String>] [-GuestConfigurationAssignmentType <String >] [-GuestConfigurationKind <String >]
2121 [-GuestConfigurationParameter <IConfigurationParameter[]>]
2222 [-GuestConfigurationProtectedParameter <IConfigurationParameter[]>] [-Location <String>] [-Name <String>]
2323 [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
@@ -28,14 +28,42 @@ New-AzGuestConfigurationAssignment -GuestConfigurationAssignmentName <String> -R
2828New-AzGuestConfigurationAssignment -GuestConfigurationAssignmentName <String> -MachineName <String>
2929 -ResourceGroupName <String> -GuestConfigurationContentHash <String> -GuestConfigurationContentUri <String>
3030 -GuestConfigurationName <String> -GuestConfigurationVersion <String> [-SubscriptionId <String>]
31- [-Context <String>] [-GuestConfigurationAssignmentType <AssignmentType >] [-GuestConfigurationKind <Kind >]
31+ [-Context <String>] [-GuestConfigurationAssignmentType <String >] [-GuestConfigurationKind <String >]
3232 [-GuestConfigurationParameter <IConfigurationParameter[]>]
3333 [-GuestConfigurationProtectedParameter <IConfigurationParameter[]>] [-Location <String>] [-Name <String>]
3434 [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
3535```
3636
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+
3765## DESCRIPTION
38- Creates an association between a VM and guest configuration
66+ create an association between a VM and guest configuration
3967
4068## EXAMPLES
4169
@@ -73,7 +101,7 @@ Ex: Azure Policy
73101
74102``` yaml
75103Type : System.String
76- Parameter Sets : (All)
104+ Parameter Sets : CreateExpanded, CreateExpanded1
77105Aliases :
78106
79107Required : False
@@ -119,8 +147,8 @@ Specifies the assignment type and execution of the configuration.
119147Possible values are Audit, DeployAndAutoCorrect, ApplyAndAutoCorrect and ApplyAndMonitor.
120148
121149` ` ` yaml
122- Type : Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Support.AssignmentType
123- Parameter Sets : (All)
150+ Type : System.String
151+ Parameter Sets : CreateExpanded, CreateExpanded1
124152Aliases :
125153
126154Required : False
@@ -135,7 +163,7 @@ Combined hash of the guest configuration package and configuration parameters.
135163
136164` ` ` yaml
137165Type : System.String
138- Parameter Sets : (All)
166+ Parameter Sets : CreateExpanded, CreateExpanded1
139167Aliases :
140168
141169Required : True
@@ -150,7 +178,7 @@ Uri of the storage where guest configuration package is uploaded.
150178
151179` ` ` yaml
152180Type : System.String
153- Parameter Sets : (All)
181+ Parameter Sets : CreateExpanded, CreateExpanded1
154182Aliases :
155183
156184Required : True
@@ -165,8 +193,8 @@ Kind of the guest configuration.
165193For example:DSC
166194
167195` ` ` yaml
168- Type : Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Support.Kind
169- Parameter Sets : (All)
196+ Type : System.String
197+ Parameter Sets : CreateExpanded, CreateExpanded1
170198Aliases :
171199
172200Required : False
@@ -181,7 +209,7 @@ Name of the guest configuration.
181209
182210` ` ` yaml
183211Type : System.String
184- Parameter Sets : (All)
212+ Parameter Sets : CreateExpanded, CreateExpanded1
185213Aliases :
186214
187215Required : True
@@ -193,11 +221,10 @@ Accept wildcard characters: False
193221
194222### -GuestConfigurationParameter
195223The configuration parameters for the guest configuration.
196- To construct, see NOTES section for GUESTCONFIGURATIONPARAMETER properties and create a hash table.
197224
198225` ` ` 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
201228Aliases :
202229
203230Required : False
@@ -209,11 +236,10 @@ Accept wildcard characters: False
209236
210237### -GuestConfigurationProtectedParameter
211238The protected configuration parameters for the guest configuration.
212- To construct, see NOTES section for GUESTCONFIGURATIONPROTECTEDPARAMETER properties and create a hash table.
213239
214240` ` ` 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
217243Aliases :
218244
219245Required : False
@@ -228,7 +254,37 @@ Version of the guest configuration.
228254
229255` ` ` yaml
230256Type : 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
232288Aliases :
233289
234290Required : True
@@ -243,7 +299,7 @@ Region where the VM is located.
243299
244300` ` ` yaml
245301Type : System.String
246- Parameter Sets : (All)
302+ Parameter Sets : CreateExpanded, CreateExpanded1
247303Aliases :
248304
249305Required : False
@@ -258,7 +314,7 @@ The name of the ARC machine.
258314
259315` ` ` yaml
260316Type : System.String
261- Parameter Sets : CreateExpanded1
317+ Parameter Sets : CreateExpanded1, CreateViaJsonFilePath1, CreateViaJsonString1
262318Aliases :
263319
264320Required : True
@@ -273,7 +329,7 @@ Name of the guest configuration assignment.
273329
274330` ` ` yaml
275331Type : System.String
276- Parameter Sets : (All)
332+ Parameter Sets : CreateExpanded, CreateExpanded1
277333Aliases :
278334
279335Required : False
@@ -319,7 +375,7 @@ The name of the virtual machine.
319375
320376` ` ` yaml
321377Type : System.String
322- Parameter Sets : CreateExpanded
378+ Parameter Sets : CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString
323379Aliases :
324380
325381Required : True
@@ -367,7 +423,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
367423
368424## OUTPUTS
369425
370- ### Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.Api20220125. IGuestConfigurationAssignment
426+ ### Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignment
371427
372428## NOTES
373429
0 commit comments