diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/createSoftwareUpdateConfiguration.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/createSoftwareUpdateConfiguration.json index e9221ee9bcc2..1b37f1f0f922 100755 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/createSoftwareUpdateConfiguration.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/createSoftwareUpdateConfiguration.json @@ -26,6 +26,32 @@ "nonAzureComputerNames": [ "box1.contoso.com", "box2.contoso.com" + ], + "targets":[ + { + "azureQueries": + { + "scope":[ + "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources", + "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067" + ], + "tagSettings":{ + "tags":[ + { + "tag1": ["tag1Value1", "tag1Value2", "tag1Value3"] + }, + { + "tag2": ["tag2Value1", "tag2Value2", "tag2Value3"] + } + ], + "filterOperator" : "All" + }, + "locations":[ + "Japan East", + "UK South" + ] + } + } ] }, "scheduleInfo": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfiguration.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfiguration.json index 3c28c7d65766..590bdc9328fa 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfiguration.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfiguration.json @@ -448,6 +448,10 @@ "type": "string", "description": "Name of Non-Azure OMS Computer." } + }, + "targets": { + "description": "Group targets for the software update configuration.", + "$ref": "#/definitions/TargetProperties" } }, "required": [ @@ -750,6 +754,76 @@ "description": "ext run time of the update." } } + }, + "TargetProperties": { + "type": "object", + "description": "Group specific to the update configuration.", + "properties": { + "azureQueries": { + "description": "List of Azure queries in the software update configuration.", + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/AzureQueryProperties" + } + } + } + }, + "AzureQueryProperties": { + "type": "object", + "description": "Azure query for the update configuration.", + "properties": { + "scope": { + "type": "array", + "description": "List of Subscription or Resource Group ARM Ids.", + "items": { + "type": "string", + "description": "Subscription or Resource Group ARM Id." + } + }, + "location": { + "type": "array", + "description": "List of locations to scope the query to.", + "items": { + "type": "string", + "description": "Location to scope the query to." + } + }, + "tagSettings": { + "type": "object", + "description": "Tag settings for the VM.", + "$ref": "#/definitions/TagSettingsProperties" + } + } + }, + "TagSettingsProperties": { + "type": "object", + "description": "Tag filter information for the VM.", + "properties": { + "tags": { + "type": "object", + "description": "Dictionary of tags with its list of values.", + "additionalProperties": { + "type": "array", + "items": { + "type": "string", + "description": "List of tag values for a tag." + } + } + }, + "filterOperator": { + "type": "string", + "description": "Filter VMs by Any or All specified tags.", + "enum": [ + "All", + "Any" + ], + "x-ms-enum": { + "name": "TagOperators", + "modelAsString": false + } + } + } } } } \ No newline at end of file