Skip to content

Commit b8fea9c

Browse files
authored
Added new example (Azure#24111)
1 parent f237327 commit b8fea9c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/Maintenance/Maintenance/help/New-AzConfigurationAssignment.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,26 @@ Type : Microsoft.Maintenance/configurationAssignments
4343

4444
Register maintenance configuration for dedicated host.
4545

46+
### Example 2
47+
```powershell
48+
New-AzConfigurationAssignment -ConfigurationAssignmentName configAssignmentName -MaintenanceConfigurationId /subscriptions/eee2cef4-bc47-4278-b4f8-cfc65f25dfd8/resourceGroups/AUMDemov01/providers/Microsoft.Maintenance/maintenanceConfigurations/kachavan-prepost01 -FilterLocation eastus2euap,centraluseuap -FilterOsType Windows,Linux -FilterTag '{"tagKey1" : ["tagKey1Value1", "tagKey1Value2"], "tagKey2" : ["tagKey2Value1", "tagKey2Value2", "tagKey2Value3"] }' -FilterOperator "Any" -Location global
49+
```
50+
51+
```output
52+
Location : global
53+
MaintenanceConfigurationId : /subscriptions/eee2cef4-bc47-4278-b4f8-cfc65f25dfd8/resourceGroups/AUMDemov01/providers/Microsoft.Maintenance/maintenanceConfigurations/kachavan-prepost01
54+
ResourceId : /subscriptions/eee2cef4-bc47-4278-b4f8-cfc65f25dfd8
55+
Id : /subscriptions/eee2cef4-bc47-4278-b4f8-cfc65f25dfd8/providers/microsoft.maintenance/configurationassignments/configassignmentname
56+
Name : configassignmentname
57+
Type : microsoft.maintenance/configurationassignments
58+
FilterTag : {"tagKey1":["tagKey1Value1","tagKey1Value2"],"tagKey2":["tagKey2Value1","tagKey2Value2","tagKey2Value3"]}
59+
FilterOperator : Any
60+
FilterLocation[0] : eastus2euap
61+
FilterLocation[1] : centraluseuap
62+
FilterOsType[0] : Windows
63+
FilterOsType[1] : Linux
64+
```
65+
4666
## PARAMETERS
4767

4868
### -AsJob

0 commit comments

Comments
 (0)