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 1b37f1f0f922..b6893335255c 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 @@ -1,177 +1,274 @@ { "parameters": { - "subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab", - "resourceGroupName": "mygroup", - "automationAccountName": "myaccount", - "softwareUpdateConfigurationName": "testpatch", - "api-version": "2017-05-15-preview", - "parameters": { - "properties": { - "updateConfiguration": { - "operatingSystem": "Windows", - "duration": "PT2H0M", - "windows": { - "excludedKbNumbers": [ - "168934", - "168973" - ], - "includedUpdateClassifications": "Critical", - "rebootSetting": "IfRequired" - }, - "azureVirtualMachines": [ - "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", - "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02", - "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03" - ], - "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": { - "frequency": "Hour", - "startTime": "2017-10-19T12:22:57+00:00", - "timeZone": "America/Los_Angeles", - "interval": 1, - "expiryTime": "2018-11-09T11:22:57+00:00", - "advancedSchedule": { - "weekDays": [ - "Monday", - "Thursday" + "subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab", + "resourceGroupName": "mygroup", + "automationAccountName": "myaccount", + "softwareUpdateConfigurationName": "testpatch", + "api-version": "2017-05-15-preview", + "parameters": { + "properties": { + "updateConfiguration": { + "operatingSystem": "Windows", + "duration": "PT2H0M", + "windows": { + "excludedKbNumbers": [ + "168934", + "168973" + ], + "includedUpdateClassifications": "Critical", + "rebootSetting": "IfRequired" + }, + "azureVirtualMachines": [ + "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", + "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02", + "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03" + ], + "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": { + "frequency": "Hour", + "startTime": "2017-10-19T12:22:57+00:00", + "timeZone": "America/Los_Angeles", + "interval": 1, + "expiryTime": "2018-11-09T11:22:57+00:00", + "advancedSchedule": { + "weekDays": [ + "Monday", + "Thursday" + ] } + }, + "tasks": { + "preTask": { + "source": "HelloWorld", + "parameters": { + "COMPUTERNAME": "Computer1" + } + }, + "postTask": { + "source": "GetCache", + "parameters": null + } + } } + } }, "responses": { - "200": { - "headers": {}, - "body": { - "name": "testpatch", - "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurations/testpatch", - "properties": { - "updateConfiguration": { - "operatingSystem": "Windows", - "windows": { - "includedUpdateClassifications": "Critical", - "excludedKbNumbers": [ - "168934", - "168973" - ] - }, - "linux": {}, - "duration": "PT2H", - "azureVirtualMachines": [ - "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", - "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02", - "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03" + "200": { + "headers": {}, + "body": { + "name": "testpatch", + "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurations/testpatch", + "properties": { + "updateConfiguration": { + "operatingSystem": "Windows", + "windows": { + "includedUpdateClassifications": "Critical", + "excludedKbNumbers": [ + "168934", + "168973" + ] + }, + "linux": {}, + "targets": { + "azureQueries": [ + { + "scope": [ + "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/a-stasku-rg0", + "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d" + ], + "tagSettings": { + "tags": { + "tag1": [ + "tag1Value1", + "tag1Value2" ], - "nonAzureComputerNames": [ - "box1.contoso.com", - "box2.contoso.com" + "tag2": [ + "tag2Value1", + "tag2Value2" ] + }, + "filterOperator": "All" }, - "scheduleInfo": { - "description": "", - "startTime": "2017-10-19T12:22:00-07:00", - "startTimeOffsetMinutes": -420.0, - "expiryTime": "2018-11-09T11:22:00-08:00", - "expiryTimeOffsetMinutes": -480.0, - "isEnabled": true, - "nextRun": "2017-10-19T12:22:00-07:00", - "nextRunOffsetMinutes": -420.0, - "interval": 1, - "frequency": "Week", - "creationTime": "2017-10-19T18:54:50.5233333+00:00", - "lastModifiedTime": "2017-10-19T18:54:50.5233333+00:00", - "timeZone": "America/Los_Angeles", - "advancedSchedule": {} - }, - "provisioningState": "Provisioning", - "error": {}, - "creationTime": "2017-10-19T18:54:50.5233333+00:00", - "createdBy": "adam@contoso.com", - "lastModifiedBy": "adam@contoso.com", - "lastModifiedTime": "2017-10-19T18:54:50.68+00:00" + "locations": [ + "Japan East", + "UK South" + ] + } + ] + }, + "duration": "PT2H", + "azureVirtualMachines": [ + "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", + "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02", + "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03" + ], + "nonAzureComputerNames": [ + "box1.contoso.com", + "box2.contoso.com" + ] + }, + "scheduleInfo": { + "description": "", + "startTime": "2017-10-19T12:22:00-07:00", + "startTimeOffsetMinutes": -420, + "expiryTime": "2018-11-09T11:22:00-08:00", + "expiryTimeOffsetMinutes": -480, + "isEnabled": true, + "nextRun": "2017-10-19T12:22:00-07:00", + "nextRunOffsetMinutes": -420, + "interval": 1, + "frequency": "Week", + "creationTime": "2017-10-19T18:54:50.5233333+00:00", + "lastModifiedTime": "2017-10-19T18:54:50.5233333+00:00", + "timeZone": "America/Los_Angeles", + "advancedSchedule": {} + }, + "tasks": { + "preTask": { + "source": "HelloWorld", + "parameters": { + "COMPUTERNAME": "Computer1" } - } - }, - "201": { - "headers": {}, - "body": { - "name": "testpatch", - "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurations/testpatch", - "properties": { - "updateConfiguration": { - "operatingSystem": "Windows", - "windows": { - "includedUpdateClassifications": "Critical", - "excludedKbNumbers": [ - "168934", - "168973" - ] - }, - "linux": {}, - "duration": "PT2H", - "azureVirtualMachines": [ - "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", - "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02", - "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03" + }, + "postTask": { + "source": "GetCache", + "parameters": null + } + }, + "provisioningState": "Provisioning", + "error": {}, + "creationTime": "2017-10-19T18:54:50.5233333+00:00", + "createdBy": "adam@contoso.com", + "lastModifiedBy": "adam@contoso.com", + "lastModifiedTime": "2017-10-19T18:54:50.68+00:00" + } + } + }, + "201": { + "headers": {}, + "body": { + "name": "testpatch", + "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurations/testpatch", + "properties": { + "updateConfiguration": { + "operatingSystem": "Windows", + "windows": { + "includedUpdateClassifications": "Critical", + "excludedKbNumbers": [ + "168934", + "168973" + ] + }, + "linux": {}, + "targets": { + "azureQueries": [ + { + "scope": [ + "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/a-stasku-rg0", + "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d" + ], + "tagSettings": { + "tags": { + "tag1": [ + "tag1Value1", + "tag1Value2" ], - "nonAzureComputerNames": [ - "box1.contoso.com", - "box2.contoso.com" + "tag2": [ + "tag2Value1", + "tag2Value2" ] + }, + "filterOperator": "All" }, - "scheduleInfo": { - "description": "", - "startTime": "2017-10-19T12:22:00-07:00", - "startTimeOffsetMinutes": -420.0, - "expiryTime": "2018-11-09T11:22:00-08:00", - "expiryTimeOffsetMinutes": -480.0, - "isEnabled": true, - "nextRun": "2017-10-19T12:22:00-07:00", - "nextRunOffsetMinutes": -420.0, - "interval": 1, - "frequency": "Week", - "creationTime": "2017-10-19T18:54:50.5233333+00:00", - "lastModifiedTime": "2017-10-19T18:54:50.5233333+00:00", - "timeZone": "America/Los_Angeles" - }, - "provisioningState": "Provisioning", - "error": {}, - "creationTime": "2017-10-19T18:54:50.5233333+00:00", - "lastModifiedBy": "", - "lastModifiedTime": "2017-10-19T18:54:50.68+00:00" + "locations": [ + "Japan East", + "UK South" + ] + } + ] + }, + "duration": "PT2H", + "azureVirtualMachines": [ + "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", + "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02", + "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03" + ], + "nonAzureComputerNames": [ + "box1.contoso.com", + "box2.contoso.com" + ] + }, + "scheduleInfo": { + "description": "", + "startTime": "2017-10-19T12:22:00-07:00", + "startTimeOffsetMinutes": -420, + "expiryTime": "2018-11-09T11:22:00-08:00", + "expiryTimeOffsetMinutes": -480, + "isEnabled": true, + "nextRun": "2017-10-19T12:22:00-07:00", + "nextRunOffsetMinutes": -420, + "interval": 1, + "frequency": "Week", + "creationTime": "2017-10-19T18:54:50.5233333+00:00", + "lastModifiedTime": "2017-10-19T18:54:50.5233333+00:00", + "timeZone": "America/Los_Angeles" + }, + "tasks": { + "preTask": { + "source": "HelloWorld", + "parameters": { + "COMPUTERNAME": "Computer1" } - } + }, + "postTask": { + "source": "GetCache", + "parameters": null + } + }, + "provisioningState": "Provisioning", + "error": {}, + "creationTime": "2017-10-19T18:54:50.5233333+00:00", + "lastModifiedBy": "", + "lastModifiedTime": "2017-10-19T18:54:50.68+00:00" + } } + } } -} + } \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/getSoftwareUpdateConfigurationByName.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/getSoftwareUpdateConfigurationByName.json index 3b696f9a7712..bc5ccd66bbce 100755 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/getSoftwareUpdateConfigurationByName.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/getSoftwareUpdateConfigurationByName.json @@ -1,63 +1,99 @@ { "parameters": { - "subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab", - "resourceGroupName": "mygroup", - "automationAccountName": "myaccount", - "softwareUpdateConfigurationName": "mypatch", - "api-version": "2017-05-15-preview", - "body": {} + "subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab", + "resourceGroupName": "mygroup", + "automationAccountName": "myaccount", + "softwareUpdateConfigurationName": "mypatch", + "api-version": "2017-05-15-preview", + "body": {} }, "responses": { - "200": { - "headers": {}, - "body": { - "name": "testpatch", - "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurations/testpatch", - "properties": { - "updateConfiguration": { - "operatingSystem": "Windows", - "windows": { - "includedUpdateClassifications": "Critical", - "excludedKbNumbers": [ - "168934", - "168973" - ] - }, - "linux": {}, - "duration": "PT2H", - "azureVirtualMachines": [ - "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", - "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02", - "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03" + "200": { + "headers": {}, + "body": { + "name": "testpatch", + "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurations/testpatch", + "properties": { + "updateConfiguration": { + "operatingSystem": "Windows", + "windows": { + "includedUpdateClassifications": "Critical", + "excludedKbNumbers": [ + "168934", + "168973" + ] + }, + "linux": {}, + "targets": { + "azureQueries": [ + { + "scope": [ + "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/a-stasku-rg0", + "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d" + ], + "tagSettings": { + "tags": { + "tag1": [ + "tag1Value1", + "tag1Value2" ], - "nonAzureComputerNames": [ - "box1.contoso.com", - "box2.contoso.com" + "tag2": [ + "tag2Value1", + "tag2Value2" ] + }, + "filterOperator": "All" }, - "scheduleInfo": { - "description": "", - "startTime": "2017-10-19T12:22:00-07:00", - "startTimeOffsetMinutes": -420.0, - "expiryTime": "2018-11-09T11:22:00-08:00", - "expiryTimeOffsetMinutes": -480.0, - "isEnabled": true, - "nextRun": "2017-10-19T12:22:00-07:00", - "nextRunOffsetMinutes": -420.0, - "interval": 1, - "frequency": "Week", - "creationTime": "2017-10-19T18:54:50.5233333+00:00", - "lastModifiedTime": "2017-10-19T18:54:50.5233333+00:00", - "timeZone": "America/Los_Angeles" - }, - "provisioningState": "Provisioning", - "createdBy": "eve@contoso.com", - "error": {}, - "creationTime": "2017-10-19T18:54:50.5233333+00:00", - "lastModifiedBy": "", - "lastModifiedTime": "2017-10-19T18:54:50.68+00:00" + "locations": null + } + ] + }, + "duration": "PT2H", + "azureVirtualMachines": [ + "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", + "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02", + "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03" + ], + "nonAzureComputerNames": [ + "box1.contoso.com", + "box2.contoso.com" + ] + }, + "scheduleInfo": { + "description": "", + "startTime": "2017-10-19T12:22:00-07:00", + "startTimeOffsetMinutes": -420, + "expiryTime": "2018-11-09T11:22:00-08:00", + "expiryTimeOffsetMinutes": -480, + "isEnabled": true, + "nextRun": "2017-10-19T12:22:00-07:00", + "nextRunOffsetMinutes": -420, + "interval": 1, + "frequency": "Week", + "creationTime": "2017-10-19T18:54:50.5233333+00:00", + "lastModifiedTime": "2017-10-19T18:54:50.5233333+00:00", + "timeZone": "America/Los_Angeles" + }, + "tasks": { + "preTask": { + "source": "HelloWorld", + "parameters": { + "COMPUTERNAME": "Computer1" } - } + }, + "postTask": { + "source": "GetCache", + "parameters": null + } + }, + "provisioningState": "Provisioning", + "createdBy": "eve@contoso.com", + "error": {}, + "creationTime": "2017-10-19T18:54:50.5233333+00:00", + "lastModifiedBy": "", + "lastModifiedTime": "2017-10-19T18:54:50.68+00:00" + } } + } } -} \ No newline at end of file + } \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurations.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurations.json index 27d30b99b6e7..a92de0375eb2 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurations.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurations.json @@ -1,69 +1,143 @@ { "parameters": { - "subscriptionId": "1a7d4044-286c-4acb-969a-96639265bf2e", - "resourceGroupName": "mygroup", - "automationAccountName": "myaccount", - "api-version": "2017-05-15-preview", - "body": {} + "subscriptionId": "1a7d4044-286c-4acb-969a-96639265bf2e", + "resourceGroupName": "mygroup", + "automationAccountName": "myaccount", + "api-version": "2017-05-15-preview", + "body": {} }, "responses": { - "200": { - "value": [ - { - "name": "testpatch-01", - "id": "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/Mo-Resources-WCUS/providers/Microsoft.Automation/automationAccounts/Mo-AAA-WCUS/softwareUpdateConfigurations/testpatch-01", - "properties": { - "updateConfiguration": { - "operatingSystem": "Windows", - "windows": { - "includedUpdateClassifications": "Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates", - "excludedKbNumbers": null - }, - "linux": null, - "duration": "PT2H", - "azureVirtualMachines": [ - "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", - "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02", - "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03" - ], - "nonAzureComputerNames": null + "200": { + "value": [ + { + "name": "testpatch-01", + "id": "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/Mo-Resources-WCUS/providers/Microsoft.Automation/automationAccounts/Mo-AAA-WCUS/softwareUpdateConfigurations/testpatch-01", + "properties": { + "updateConfiguration": { + "operatingSystem": "Windows", + "windows": { + "includedUpdateClassifications": "Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates", + "excludedKbNumbers": null + }, + "linux": null, + "targets": { + "azureQueries": [ + { + "scope": [ + "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/a-stasku-rg0", + "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d" + ], + "tagSettings": { + "tags": { + "tag1": [ + "tag1Value1", + "tag1Value2" + ], + "tag2": [ + "tag2Value1", + "tag2Value2" + ] }, - "frequency": "Week", - "startTime": "2017-10-19T12:22:00-07:00", - "creationTime": "2017-10-19T18:54:50.5233333+00:00", - "lastModifiedTime": "2017-10-19T18:54:50.68+00:00", - "provisioningState": "Succeeded", - "nextRun": "2017-10-23T12:22:00-07:00" + "filterOperator": "All" + }, + "locations": null } + ] + }, + "duration": "PT2H", + "azureVirtualMachines": [ + "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", + "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02", + "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03" + ], + "nonAzureComputerNames": null + }, + "tasks": { + "preTask": { + "source": "HelloWorld", + "parameters": { + "COMPUTERNAME": "Computer1" + } + }, + "postTask": { + "source": "GetCache", + "parameters": null + } + }, + "frequency": "Week", + "startTime": "2017-10-19T12:22:00-07:00", + "creationTime": "2017-10-19T18:54:50.5233333+00:00", + "lastModifiedTime": "2017-10-19T18:54:50.68+00:00", + "provisioningState": "Succeeded", + "nextRun": "2017-10-23T12:22:00-07:00" + } + }, + { + "name": "testpatch-02", + "id": "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/Mo-Resources-WCUS/providers/Microsoft.Automation/automationAccounts/Mo-AAA-WCUS/softwareUpdateConfigurations/testpatch-02", + "properties": { + "updateConfiguration": { + "operatingSystem": "Windows", + "windows": { + "includedUpdateClassifications": "Critical, FeaturePack", + "excludedKbNumbers": null }, - { - "name": "testpatch-02", - "id": "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/Mo-Resources-WCUS/providers/Microsoft.Automation/automationAccounts/Mo-AAA-WCUS/softwareUpdateConfigurations/testpatch-02", - "properties": { - "updateConfiguration": { - "operatingSystem": "Windows", - "windows": { - "includedUpdateClassifications": "Critical, FeaturePack", - "excludedKbNumbers":null - }, - "linux": null, - "duration": "PT2H30M", - "azureVirtualMachines": [ - "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-04", - "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-05", - "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-06" - ], - "nonAzureComputerNames": null + "linux": null, + "targets": { + "azureQueries": [ + { + "scope": [ + "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/a-stasku-rg0", + "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d" + ], + "tagSettings": { + "tags": { + "tag1": [ + "tag1Value1", + "tag1Value2" + ], + "tag2": [ + "tag2Value1", + "tag2Value2" + ] }, - "frequency": "Hour", - "startTime": "2018-05-05T12:26:00-07:00", - "creationTime": "2017-08-11T21:52:02.7733333+00:00", - "lastModifiedTime": "2017-08-11T21:52:22.88+00:00", - "provisioningState": "Succeeded", - "nextRun":"2018-05-05T12:26:00-07:00" + "filterOperator": "All" + }, + "locations": [ + "Japan East", + "UK South"] } + ] + }, + "duration": "PT2H30M", + "azureVirtualMachines": [ + "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-04", + "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-05", + "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-06" + ], + "nonAzureComputerNames": null + }, + "tasks": { + "preTask": { + "source": "HelloWorld", + "parameters": { + "COMPUTERNAME": "Computer1" + } + }, + "postTask": { + "source": "GetCache", + "parameters": null } - ] - } + }, + "frequency": "Hour", + "startTime": "2018-05-05T12:26:00-07:00", + "creationTime": "2017-08-11T21:52:02.7733333+00:00", + "lastModifiedTime": "2017-08-11T21:52:22.88+00:00", + "provisioningState": "Succeeded", + "nextRun": "2018-05-05T12:26:00-07:00" + } + } + ] + } } -} \ No newline at end of file + } \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurationsByVm.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurationsByVm.json index d81e1f72aace..153c968b29a4 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurationsByVm.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurationsByVm.json @@ -1,70 +1,94 @@ { "parameters": { - "subscriptionId": "1a7d4044-286c-4acb-969a-96639265bf2e", - "resourceGroupName": "mygroup", - "automationAccountName": "myaccount", - "$filter": "properties/updateConfiguration/azureVirtualMachines/any(m: m eq '/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01')", - "api-version": "2017-05-15-preview", - "body": {} + "subscriptionId": "1a7d4044-286c-4acb-969a-96639265bf2e", + "resourceGroupName": "mygroup", + "automationAccountName": "myaccount", + "$filter": "properties/updateConfiguration/azureVirtualMachines/any(m: m eq '/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01')", + "api-version": "2017-05-15-preview", + "body": {} }, "responses": { - "200": { - "value": [ - { - "name": "testpatch-01", - "id": "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/Mo-Resources-WCUS/providers/Microsoft.Automation/automationAccounts/Mo-AAA-WCUS/softwareUpdateConfigurations/testpatch-01", - "properties": { - "updateConfiguration": { - "operatingSystem": "Windows", - "windows": { - "includedUpdateClassifications": "Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates", - "excludedKbNumbers": null - }, - "linux": null, - "duration": "PT2H", - "azureVirtualMachines": [ - "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", - "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02", - "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03" - ], - "nonAzureComputerNames": null - }, - "frequency": "Week", - "startTime": "2017-10-19T12:22:00-07:00", - "creationTime": "2017-10-19T18:54:50.5233333+00:00", - "lastModifiedTime": "2017-10-19T18:54:50.68+00:00", - "provisioningState": "Succeeded", - "nextRun": "2017-10-23T12:22:00-07:00" - } + "200": { + "value": [ + { + "name": "testpatch-01", + "id": "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/Mo-Resources-WCUS/providers/Microsoft.Automation/automationAccounts/Mo-AAA-WCUS/softwareUpdateConfigurations/testpatch-01", + "properties": { + "updateConfiguration": { + "operatingSystem": "Windows", + "windows": { + "includedUpdateClassifications": "Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates", + "excludedKbNumbers": null }, - { - "name": "testpatch-02", - "id": "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/Mo-Resources-WCUS/providers/Microsoft.Automation/automationAccounts/Mo-AAA-WCUS/softwareUpdateConfigurations/testpatch-02", - "properties": { - "updateConfiguration": { - "operatingSystem": "Windows", - "windows": { - "includedUpdateClassifications": "Critical, FeaturePack", - "excludedKbNumbers":null - }, - "linux": null, - "duration": "PT2H30M", - "azureVirtualMachines": [ - "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", - "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-05", - "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-06" - ], - "nonAzureComputerNames": null - }, - "frequency": "Hour", - "startTime": "2018-05-05T12:26:00-07:00", - "creationTime": "2017-08-11T21:52:02.7733333+00:00", - "lastModifiedTime": "2017-08-11T21:52:22.88+00:00", - "provisioningState": "Succeeded", - "nextRun":"2018-05-05T12:26:00-07:00" - } + "linux": null, + "duration": "PT2H", + "azureVirtualMachines": [ + "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", + "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02", + "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03" + ], + "nonAzureComputerNames": null + }, + "tasks": { + "preTask": { + "source": "HelloWorld", + "parameters": { + "COMPUTERNAME": "Computer1" + } + }, + "postTask": { + "source": "GetCache", + "parameters": null + } + }, + "frequency": "Week", + "startTime": "2017-10-19T12:22:00-07:00", + "creationTime": "2017-10-19T18:54:50.5233333+00:00", + "lastModifiedTime": "2017-10-19T18:54:50.68+00:00", + "provisioningState": "Succeeded", + "nextRun": "2017-10-23T12:22:00-07:00" + } + }, + { + "name": "testpatch-02", + "id": "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/Mo-Resources-WCUS/providers/Microsoft.Automation/automationAccounts/Mo-AAA-WCUS/softwareUpdateConfigurations/testpatch-02", + "properties": { + "updateConfiguration": { + "operatingSystem": "Windows", + "windows": { + "includedUpdateClassifications": "Critical, FeaturePack", + "excludedKbNumbers": null + }, + "linux": null, + "duration": "PT2H30M", + "azureVirtualMachines": [ + "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", + "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-05", + "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-06" + ], + "nonAzureComputerNames": null + }, + "tasks": { + "preTask": { + "source": "HelloWorld", + "parameters": { + "COMPUTERNAME": "Computer1" + } + }, + "postTask": { + "source": "GetCache", + "parameters": null } - ] - } + }, + "frequency": "Hour", + "startTime": "2018-05-05T12:26:00-07:00", + "creationTime": "2017-08-11T21:52:02.7733333+00:00", + "lastModifiedTime": "2017-08-11T21:52:22.88+00:00", + "provisioningState": "Succeeded", + "nextRun": "2018-05-05T12:26:00-07:00" + } + } + ] + } } -} \ No newline at end of file + } \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationMachineRun/getSoftwareUpdateConfigurationMachineRunById.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationMachineRun/getSoftwareUpdateConfigurationMachineRunById.json index 75ac22a300b2..d889f35cf7fb 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationMachineRun/getSoftwareUpdateConfigurationMachineRunById.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationMachineRun/getSoftwareUpdateConfigurationMachineRunById.json @@ -1,34 +1,37 @@ { "parameters": { - "subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab", - "resourceGroupName": "mygroup", - "automationAccountName": "myaccount", - "softwareUpdateConfigurationMachineRunId": "ca440719-34a4-4234-a1a9-3f84faf7788f", - "api-version": "2017-05-15-preview" + "subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab", + "resourceGroupName": "mygroup", + "automationAccountName": "myaccount", + "softwareUpdateConfigurationMachineRunId": "ca440719-34a4-4234-a1a9-3f84faf7788f", + "api-version": "2017-05-15-preview" }, "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationMachineRuns/ca440719-34a4-4234-a1a9-3f84faf7788f", - "name": "ca440719-34a4-4234-a1a9-3f84faf7788f", - "properties": { - "targetComputer": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Compute/virtualMachines/myvm", - "targetComputerType": "AzureVirtualMachines", - "softwareUpdateConfiguration": { "name": "mypatch" }, - "status": "Succeeded", - "osType": "Windows", - "correlationId": "0b943e57-44d3-4f05-898c-6e92aa617e59", - "sourceComputerId": "3d3f24bf-7037-424e-bfba-aae3b9752f8e", - "startTime": "2017-10-23T02:33:30.7484961+00:00", - "endTime": "2017-10-23T02:33:36.4166667+00:00", - "configuredDuration": "PT2H", - "job": {}, - "creationTime": "2017-10-23T02:33:30.7484961+00:00", - "lastModifiedBy": "", - "lastModifiedTime": "2017-10-23T02:34:32.4366667+00:00" - } - } + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationMachineRuns/ca440719-34a4-4234-a1a9-3f84faf7788f", + "name": "ca440719-34a4-4234-a1a9-3f84faf7788f", + "properties": { + "targetComputer": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Compute/virtualMachines/myvm", + "targetComputerType": "AzureVirtualMachines", + "softwareUpdateConfiguration": { + "name": "mypatch" + }, + "status": "Succeeded", + "osType": "Windows", + "correlationId": "0b943e57-44d3-4f05-898c-6e92aa617e59", + "sourceComputerId": "3d3f24bf-7037-424e-bfba-aae3b9752f8e", + "startTime": "2017-10-23T02:33:30.7484961+00:00", + "endTime": "2017-10-23T02:33:36.4166667+00:00", + "configuredDuration": "PT2H", + "job": {}, + "error": {}, + "creationTime": "2017-10-23T02:33:30.7484961+00:00", + "lastModifiedBy": "", + "lastModifiedTime": "2017-10-23T02:34:32.4366667+00:00" + } } + } } -} \ No newline at end of file + } \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationMachineRun/listSoftwareUpdateConfigurationMachineRuns.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationMachineRun/listSoftwareUpdateConfigurationMachineRuns.json index 1225c18f2745..ce59f83b6504 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationMachineRun/listSoftwareUpdateConfigurationMachineRuns.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationMachineRun/listSoftwareUpdateConfigurationMachineRuns.json @@ -1,58 +1,64 @@ { "parameters": { - "subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab", - "resourceGroupName": "mygroup", - "automationAccountName": "myaccount", - "api-version": "2017-05-15-preview" + "subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab", + "resourceGroupName": "mygroup", + "automationAccountName": "myaccount", + "api-version": "2017-05-15-preview" }, "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationMachineRuns/ca440719-34a4-4234-a1a9-3f84faf7788f", - "name": "ca440719-34a4-4234-a1a9-3f84faf7788f", - "properties": { - "targetComputer": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Compute/virtualMachines/myvm", - "targetComputerType": "AzureVirtualMachines", - "softwareUpdateConfiguration": { "name": "mypatch" }, - "status": "Succeeded", - "osType": "Windows", - "correlationId": "0b943e57-44d3-4f05-898c-6e92aa617e59", - "sourceComputerId": "3d3f24bf-7037-424e-bfba-aae3b9752f8e", - "startTime": "2017-10-23T02:33:30.7484961+00:00", - "endTime": "2017-10-23T02:33:36.4166667+00:00", - "configuredDuration": "PT2H", - "job": {}, - "creationTime": "2017-10-23T02:33:30.7484961+00:00", - "lastModifiedBy": "", - "lastModifiedTime": "2017-10-23T02:34:32.4366667+00:00" - } - }, - { - "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationMachineRuns/ca440719-34a4-4234-a1a9-3f84faf7789f", - "name": "ca440719-34a4-4234-a1a9-3f84faf7789f", - "properties": { - "targetComputer": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Compute/virtualMachines/myvm2", - "targetComputerType": "AzureVirtualMachines", - "softwareUpdateConfiguration": { "name": "mypatch" }, - "status": "Succeeded", - "osType": "Windows", - "correlationId": "0b943e57-44d3-4f05-898c-6e92aa617e59", - "sourceComputerId": "3d3f24bf-7037-424e-bfba-aae3b9752f8e", - "startTime": "2017-10-23T02:33:30.7484961+00:00", - "endTime": "2017-10-23T02:33:36.4166667+00:00", - "configuredDuration": "PT2H", - "job": {}, - "creationTime": "2017-10-23T02:33:30.7484961+00:00", - "lastModifiedBy": "", - "lastModifiedTime": "2017-10-23T02:34:32.4366667+00:00" - } - } - ], - "nextLink": "https://management.azure.com:443/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationRuns?api-version=2017-05-15-preview&_=1508725900015&$skip=100" + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationMachineRuns/ca440719-34a4-4234-a1a9-3f84faf7788f", + "name": "ca440719-34a4-4234-a1a9-3f84faf7788f", + "properties": { + "targetComputer": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Compute/virtualMachines/myvm", + "targetComputerType": "AzureVirtualMachines", + "softwareUpdateConfiguration": { + "name": "mypatch" + }, + "status": "Succeeded", + "osType": "Windows", + "correlationId": "0b943e57-44d3-4f05-898c-6e92aa617e59", + "sourceComputerId": "3d3f24bf-7037-424e-bfba-aae3b9752f8e", + "startTime": "2017-10-23T02:33:30.7484961+00:00", + "endTime": "2017-10-23T02:33:36.4166667+00:00", + "configuredDuration": "PT2H", + "job": {}, + "error": {}, + "creationTime": "2017-10-23T02:33:30.7484961+00:00", + "lastModifiedBy": "", + "lastModifiedTime": "2017-10-23T02:34:32.4366667+00:00" } + }, + { + "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationMachineRuns/ca440719-34a4-4234-a1a9-3f84faf7789f", + "name": "ca440719-34a4-4234-a1a9-3f84faf7789f", + "properties": { + "targetComputer": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Compute/virtualMachines/myvm2", + "targetComputerType": "AzureVirtualMachines", + "softwareUpdateConfiguration": { + "name": "mypatch" + }, + "status": "Succeeded", + "osType": "Windows", + "correlationId": "0b943e57-44d3-4f05-898c-6e92aa617e59", + "sourceComputerId": "3d3f24bf-7037-424e-bfba-aae3b9752f8e", + "startTime": "2017-10-23T02:33:30.7484961+00:00", + "endTime": "2017-10-23T02:33:36.4166667+00:00", + "configuredDuration": "PT2H", + "job": {}, + "error": {}, + "creationTime": "2017-10-23T02:33:30.7484961+00:00", + "lastModifiedBy": "", + "lastModifiedTime": "2017-10-23T02:34:32.4366667+00:00" + } + } + ], + "nextLink": "https://management.azure.com:443/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationRuns?api-version=2017-05-15-preview&_=1508725900015&$skip=100" } + } } -} \ No newline at end of file + } \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationMachineRun/listSoftwareUpdateConfigurationMachineRunsByRun.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationMachineRun/listSoftwareUpdateConfigurationMachineRunsByRun.json index 21853f34bb82..455d1d50389c 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationMachineRun/listSoftwareUpdateConfigurationMachineRunsByRun.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationMachineRun/listSoftwareUpdateConfigurationMachineRunsByRun.json @@ -1,59 +1,65 @@ { "parameters": { - "subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab", - "resourceGroupName": "mygroup", - "automationAccountName": "myaccount", - "$filter": "$filter=properties/correlationId%20eq%200b943e57-44d3-4f05-898c-6e92aa617e59", - "api-version": "2017-05-15-preview" + "subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab", + "resourceGroupName": "mygroup", + "automationAccountName": "myaccount", + "$filter": "$filter=properties/correlationId%20eq%200b943e57-44d3-4f05-898c-6e92aa617e59", + "api-version": "2017-05-15-preview" }, "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationMachineRuns/ca440719-34a4-4234-a1a9-3f84faf7788f", - "name": "ca440719-34a4-4234-a1a9-3f84faf7788f", - "properties": { - "targetComputer": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Compute/virtualMachines/myvm", - "targetComputerType": "AzureVirtualMachines", - "softwareUpdateConfiguration": { "name": "mypatch" }, - "status": "Succeeded", - "osType": "Windows", - "correlationId": "0b943e57-44d3-4f05-898c-6e92aa617e59", - "sourceComputerId": "3d3f24bf-7037-424e-bfba-aae3b9752f8e", - "startTime": "2017-10-23T02:33:30.7484961+00:00", - "endTime": "2017-10-23T02:33:36.4166667+00:00", - "configuredDuration": "PT2H", - "job": {}, - "creationTime": "2017-10-23T02:33:30.7484961+00:00", - "lastModifiedBy": "", - "lastModifiedTime": "2017-10-23T02:34:32.4366667+00:00" - } - }, - { - "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationMachineRuns/ca440719-34a4-4234-a1a9-3f84faf7789f", - "name": "ca440719-34a4-4234-a1a9-3f84faf7789f", - "properties": { - "targetComputer": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Compute/virtualMachines/myvm2", - "targetComputerType": "AzureVirtualMachines", - "softwareUpdateConfiguration": { "name": "mypatch" }, - "status": "Succeeded", - "osType": "Windows", - "correlationId": "0b943e57-44d3-4f05-898c-6e92aa617e59", - "sourceComputerId": "3d3f24bf-7037-424e-bfba-aae3b9752f8e", - "startTime": "2017-10-23T02:33:30.7484961+00:00", - "endTime": "2017-10-23T02:33:36.4166667+00:00", - "configuredDuration": "PT2H", - "job": {}, - "creationTime": "2017-10-23T02:33:30.7484961+00:00", - "lastModifiedBy": "", - "lastModifiedTime": "2017-10-23T02:34:32.4366667+00:00" - } - } - ], - "nextLink": "https://management.azure.com:443/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationRuns?api-version=2017-05-15-preview&_=1508725900015&$skip=100" + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationMachineRuns/ca440719-34a4-4234-a1a9-3f84faf7788f", + "name": "ca440719-34a4-4234-a1a9-3f84faf7788f", + "properties": { + "targetComputer": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Compute/virtualMachines/myvm", + "targetComputerType": "AzureVirtualMachines", + "softwareUpdateConfiguration": { + "name": "mypatch" + }, + "status": "Succeeded", + "osType": "Windows", + "correlationId": "0b943e57-44d3-4f05-898c-6e92aa617e59", + "sourceComputerId": "3d3f24bf-7037-424e-bfba-aae3b9752f8e", + "startTime": "2017-10-23T02:33:30.7484961+00:00", + "endTime": "2017-10-23T02:33:36.4166667+00:00", + "configuredDuration": "PT2H", + "job": {}, + "error": {}, + "creationTime": "2017-10-23T02:33:30.7484961+00:00", + "lastModifiedBy": "", + "lastModifiedTime": "2017-10-23T02:34:32.4366667+00:00" } + }, + { + "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationMachineRuns/ca440719-34a4-4234-a1a9-3f84faf7789f", + "name": "ca440719-34a4-4234-a1a9-3f84faf7789f", + "properties": { + "targetComputer": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Compute/virtualMachines/myvm2", + "targetComputerType": "AzureVirtualMachines", + "softwareUpdateConfiguration": { + "name": "mypatch" + }, + "status": "Succeeded", + "osType": "Windows", + "correlationId": "0b943e57-44d3-4f05-898c-6e92aa617e59", + "sourceComputerId": "3d3f24bf-7037-424e-bfba-aae3b9752f8e", + "startTime": "2017-10-23T02:33:30.7484961+00:00", + "endTime": "2017-10-23T02:33:36.4166667+00:00", + "configuredDuration": "PT2H", + "job": {}, + "error": {}, + "creationTime": "2017-10-23T02:33:30.7484961+00:00", + "lastModifiedBy": "", + "lastModifiedTime": "2017-10-23T02:34:32.4366667+00:00" + } + } + ], + "nextLink": "https://management.azure.com:443/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationRuns?api-version=2017-05-15-preview&_=1508725900015&$skip=100" } + } } -} \ No newline at end of file + } \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationRun/getSoftwareUpdateConfigurationRunById.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationRun/getSoftwareUpdateConfigurationRunById.json index a6cdaee78604..bce1e51d32a0 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationRun/getSoftwareUpdateConfigurationRunById.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationRun/getSoftwareUpdateConfigurationRunById.json @@ -1,31 +1,41 @@ { "parameters": { - "subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab", - "resourceGroupName": "mygroup", - "automationAccountName": "myaccount", - "softwareUpdateConfigurationRunId": "2bd77cfa-2e9c-41b4-a45b-684a77cfeca9", - "api-version": "2017-05-15-preview" + "subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab", + "resourceGroupName": "mygroup", + "automationAccountName": "myaccount", + "softwareUpdateConfigurationRunId": "2bd77cfa-2e9c-41b4-a45b-684a77cfeca9", + "api-version": "2017-05-15-preview" }, "responses": { - "200": { - "headers": {}, - "body": { - "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationRuns/2bd77cfa-2e9c-41b4-a45b-684a77cfeca9", - "name": "2bd77cfa-2e9c-41b4-a45b-684a77cfeca9", - "properties": { - "softwareUpdateConfiguration": { "name": "mypatch" }, - "status": "Succeeded", - "configuredDuration": "PT2H", - "osType": "Windows", - "startTime": "2017-10-23T02:30:36.2401233+00:00", - "endTime": "2017-10-23T02:30:42.8466667+00:00", - "computerCount": 1, - "failedCount": 0, - "creationTime": "2017-10-23T02:30:36.2401233+00:00", - "lastModifiedBy": "", - "lastModifiedTime": "2017-10-23T02:31:39.3966667+00:00" - } - } + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationRuns/2bd77cfa-2e9c-41b4-a45b-684a77cfeca9", + "name": "2bd77cfa-2e9c-41b4-a45b-684a77cfeca9", + "properties": { + "softwareUpdateConfiguration": { + "name": "mypatch" + }, + "status": "Succeeded", + "tasks": { + "preTask": { + "jobId": "be430e9e-2290-462e-8f86-686407c35fab", + "source": "preRunbook", + "status": "Completed" + }, + "postTask": null + }, + "configuredDuration": "PT2H", + "osType": "Windows", + "startTime": "2017-10-23T02:30:36.2401233+00:00", + "endTime": "2017-10-23T02:30:42.8466667+00:00", + "computerCount": 1, + "failedCount": 0, + "creationTime": "2017-10-23T02:30:36.2401233+00:00", + "lastModifiedBy": "", + "lastModifiedTime": "2017-10-23T02:31:39.3966667+00:00" + } } + } } -} \ No newline at end of file + } \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationRun/listFailedSoftwareUpdateConfigurationRuns.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationRun/listFailedSoftwareUpdateConfigurationRuns.json index 8bb7f46ba4b8..3f1814250a17 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationRun/listFailedSoftwareUpdateConfigurationRuns.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationRun/listFailedSoftwareUpdateConfigurationRuns.json @@ -1,54 +1,74 @@ { - "parameters": { - "subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab", - "resourceGroupName": "mygroup", - "automationAccountName": "myaccount", - "softwareUpdateConfigurationRunId": "a2c7c4b8-55d6-4505-bea7-756e93b18a35", - "$filter": "properties/status%20eq%20'Failed'", - "api-version": "2017-05-15-preview" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationRuns/2bd77cfa-2e9c-41b4-a45b-684a77cfeca9", - "name": "2bd77cfa-2e9c-41b4-a45b-684a77cfeca9", - "properties": { - "softwareUpdateConfiguration": { "name": "mypatch" }, - "status": "Failed", - "configuredDuration": "PT2H", - "osType": "Windows", - "startTime": "2017-10-23T02:30:36.2401233+00:00", - "endTime": "2017-10-23T02:30:42.8466667+00:00", - "computerCount": 1, - "failedCount": 0, - "creationTime": "2017-10-23T02:30:36.2401233+00:00", - "lastModifiedBy": "", - "lastModifiedTime": "2017-10-23T02:31:39.3966667+00:00" - } - }, - { - "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationRuns/5dabff55-9812-4a58-af16-b0cb1d9384e8", - "name": "5dabff55-9812-4a58-af16-b0cb1d9384e8", - "properties": { - "softwareUpdateConfiguration": { "name": "mypatch" }, - "status": "Failed", - "configuredDuration": "PT2H", - "osType": "Windows", - "startTime": "2017-10-23T01:33:01.8818952+00:00", - "endTime": "2017-10-23T01:33:08.1133333+00:00", - "computerCount": 1, - "failedCount": 0, - "creationTime": "2017-10-23T01:33:01.8818952+00:00", - "lastModifiedBy": "", - "lastModifiedTime": "2017-10-23T01:34:03.94+00:00" - } - } - ], - "nextLink": "https://management.azure.com:443/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/stas-wcus/softwareUpdateConfigurationRuns?api-version=2017-05-15-preview&_=1508725900015&$skip=100" - } - } + "parameters": { + "subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab", + "resourceGroupName": "mygroup", + "automationAccountName": "myaccount", + "softwareUpdateConfigurationRunId": "a2c7c4b8-55d6-4505-bea7-756e93b18a35", + "$filter": "properties/status%20eq%20'Failed'", + "api-version": "2017-05-15-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationRuns/2bd77cfa-2e9c-41b4-a45b-684a77cfeca9", + "name": "2bd77cfa-2e9c-41b4-a45b-684a77cfeca9", + "properties": { + "softwareUpdateConfiguration": { + "name": "mypatch" + }, + "status": "Failed", + "configuredDuration": "PT2H", + "osType": "Windows", + "startTime": "2017-10-23T02:30:36.2401233+00:00", + "endTime": "2017-10-23T02:30:42.8466667+00:00", + "computerCount": 1, + "failedCount": 0, + "tasks": { + "preTask": { + "jobId": "be430e9e-2290-462e-8f86-686407c35fab", + "source": "preRunbook", + "status": "Completed" + }, + "postTask": null + }, + "creationTime": "2017-10-23T02:30:36.2401233+00:00", + "lastModifiedBy": "", + "lastModifiedTime": "2017-10-23T02:31:39.3966667+00:00" + } + }, + { + "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationRuns/5dabff55-9812-4a58-af16-b0cb1d9384e8", + "name": "5dabff55-9812-4a58-af16-b0cb1d9384e8", + "properties": { + "softwareUpdateConfiguration": { + "name": "mypatch" + }, + "status": "Failed", + "configuredDuration": "PT2H", + "osType": "Windows", + "startTime": "2017-10-23T01:33:01.8818952+00:00", + "endTime": "2017-10-23T01:33:08.1133333+00:00", + "computerCount": 1, + "failedCount": 0, + "tasks": { + "preTask": { + "jobId": "be430e9e-2290-462e-8f86-686407c35fab", + "source": "preRunbook", + "status": "Completed" + }, + "postTask": null + }, + "creationTime": "2017-10-23T01:33:01.8818952+00:00", + "lastModifiedBy": "", + "lastModifiedTime": "2017-10-23T01:34:03.94+00:00" + } + } + ], + "nextLink": "https://management.azure.com:443/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/stas-wcus/softwareUpdateConfigurationRuns?api-version=2017-05-15-preview&_=1508725900015&$skip=100" + } } + } } \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationRun/listSoftwareUpdateConfigurationRuns.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationRun/listSoftwareUpdateConfigurationRuns.json index e66e2fac6e4c..77477441b4fa 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationRun/listSoftwareUpdateConfigurationRuns.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationRun/listSoftwareUpdateConfigurationRuns.json @@ -1,53 +1,73 @@ { - "parameters": { - "subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab", - "resourceGroupName": "mygroup", - "automationAccountName": "myaccount", - "softwareUpdateConfigurationRunId": "a2c7c4b8-55d6-4505-bea7-756e93b18a35", - "api-version": "2017-05-15-preview" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "value": [ - { - "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationRuns/2bd77cfa-2e9c-41b4-a45b-684a77cfeca9", - "name": "2bd77cfa-2e9c-41b4-a45b-684a77cfeca9", - "properties": { - "softwareUpdateConfiguration": { "name": "mypatch" }, - "status": "Succeeded", - "configuredDuration": "PT2H", - "osType": "Windows", - "startTime": "2017-10-23T02:30:36.2401233+00:00", - "endTime": "2017-10-23T02:30:42.8466667+00:00", - "computerCount": 1, - "failedCount": 0, - "creationTime": "2017-10-23T02:30:36.2401233+00:00", - "lastModifiedBy": "", - "lastModifiedTime": "2017-10-23T02:31:39.3966667+00:00" - } - }, - { - "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationRuns/5dabff55-9812-4a58-af16-b0cb1d9384e8", - "name": "5dabff55-9812-4a58-af16-b0cb1d9384e8", - "properties": { - "softwareUpdateConfiguration": { "name": "mypatch" }, - "status": "Succeeded", - "configuredDuration": "PT2H", - "osType": "Windows", - "startTime": "2017-10-23T01:33:01.8818952+00:00", - "endTime": "2017-10-23T01:33:08.1133333+00:00", - "computerCount": 1, - "failedCount": 0, - "creationTime": "2017-10-23T01:33:01.8818952+00:00", - "lastModifiedBy": "", - "lastModifiedTime": "2017-10-23T01:34:03.94+00:00" - } - } - ], - "nextLink": "https://management.azure.com:443/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/stas-wcus/softwareUpdateConfigurationRuns?api-version=2017-05-15-preview&_=1508725900015&$skip=100" - } - } + "parameters": { + "subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab", + "resourceGroupName": "mygroup", + "automationAccountName": "myaccount", + "softwareUpdateConfigurationRunId": "a2c7c4b8-55d6-4505-bea7-756e93b18a35", + "api-version": "2017-05-15-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationRuns/2bd77cfa-2e9c-41b4-a45b-684a77cfeca9", + "name": "2bd77cfa-2e9c-41b4-a45b-684a77cfeca9", + "properties": { + "softwareUpdateConfiguration": { + "name": "mypatch" + }, + "status": "Succeeded", + "configuredDuration": "PT2H", + "osType": "Windows", + "startTime": "2017-10-23T02:30:36.2401233+00:00", + "endTime": "2017-10-23T02:30:42.8466667+00:00", + "computerCount": 1, + "failedCount": 0, + "tasks": { + "preTask": { + "jobId": "be430e9e-2290-462e-8f86-686407c35fab", + "source": "preRunbook", + "status": "Completed" + }, + "postTask": null + }, + "creationTime": "2017-10-23T02:30:36.2401233+00:00", + "lastModifiedBy": "", + "lastModifiedTime": "2017-10-23T02:31:39.3966667+00:00" + } + }, + { + "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationRuns/5dabff55-9812-4a58-af16-b0cb1d9384e8", + "name": "5dabff55-9812-4a58-af16-b0cb1d9384e8", + "properties": { + "softwareUpdateConfiguration": { + "name": "mypatch" + }, + "status": "Succeeded", + "configuredDuration": "PT2H", + "osType": "Windows", + "startTime": "2017-10-23T01:33:01.8818952+00:00", + "endTime": "2017-10-23T01:33:08.1133333+00:00", + "computerCount": 1, + "failedCount": 0, + "tasks": { + "preTask": { + "jobId": "be430e9e-2290-462e-8f86-686407c35fab", + "source": "preRunbook", + "status": "Completed" + }, + "postTask": null + }, + "creationTime": "2017-10-23T01:33:01.8818952+00:00", + "lastModifiedBy": "", + "lastModifiedTime": "2017-10-23T01:34:03.94+00:00" + } + } + ], + "nextLink": "https://management.azure.com:443/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/stas-wcus/softwareUpdateConfigurationRuns?api-version=2017-05-15-preview&_=1508725900015&$skip=100" + } } + } } \ No newline at end of file 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 590bdc9328fa..53ee14a4786c 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 @@ -324,19 +324,19 @@ "readOnly": true }, "error": { - "description": "detailes of provisioning error", + "description": "Details of provisioning error", "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" }, "creationTime": { "type": "string", - "description": "Creation time of theresource, which only appears in the response.", + "description": "Creation time of the resource, which only appears in the response.", "format": "date-time", "x-nullable": false, "readOnly": true }, "createdBy": { "type": "string", - "description": "createdBy property, which only appears in the response.", + "description": "CreatedBy property, which only appears in the response.", "readOnly": true }, "lastModifiedTime": { @@ -348,8 +348,12 @@ }, "lastModifiedBy": { "type": "string", - "description": "lastModifiedBy property, which only appears in the response.", + "description": "LastModifiedBy property, which only appears in the response.", "readOnly": true + }, + "tasks": { + "description": "Tasks information for the Software update configuration.", + "$ref": "#/definitions/softwareUpdateConfigurationTasks" } }, "required": [ @@ -357,6 +361,37 @@ "scheduleInfo" ] }, + "softwareUpdateConfigurationTasks": { + "type": "object", + "description": "Task properties of the software update configuration.", + "properties": { + "preTask": { + "description": "Pre task properties.", + "$ref": "#/definitions/taskProperties" + }, + "postTask": { + "description": "Post task properties.", + "$ref": "#/definitions/taskProperties" + } + } + }, + "taskProperties": { + "type": "object", + "description": "Task properties of the software update configuration.", + "properties": { + "parameters": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets the parameters of the task." + }, + "source": { + "type": "string", + "description": "Gets or sets the name of the runbook." + } + } + }, "WindowsProperties": { "type": "object", "description": "Windows specific update configuration.", @@ -781,7 +816,7 @@ "description": "Subscription or Resource Group ARM Id." } }, - "location": { + "locations": { "type": "array", "description": "List of locations to scope the query to.", "items": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfigurationMachineRun.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfigurationMachineRun.json index 1c0d900ede66..f50ae709bc78 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfigurationMachineRun.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfigurationMachineRun.json @@ -294,6 +294,10 @@ "type": "string", "description": "lastModifiedBy property, which only appears in the response.", "readOnly": true + }, + "error": { + "description": "detailes of provisioning error", + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfigurationRun.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfigurationRun.json index 5154a99912ea..9285acfd9912 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfigurationRun.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfigurationRun.json @@ -7,7 +7,7 @@ "name": "Mohamed Enein" }, "version": "2017-05-15-preview", - "x-ms-code-generation-settings": { + "x-ms-code-generation-settings": { "useDateTimeOffset": true } }, @@ -143,7 +143,7 @@ "in": "query", "required": false, "type": "string", - "description": "number of entries you skip before returning results" + "description": "Number of entries you skip before returning results" }, { "name": "$top", @@ -207,7 +207,7 @@ }, "configuredDuration": { "type": "string", - "description": "configured duration for the software update configuration run.", + "description": "Configured duration for the software update configuration run.", "readOnly": true }, "osType": { @@ -219,7 +219,7 @@ "type": "string", "format": "date-time", "x-nullable": false, - "description": "Etart time of the software update configuration run.", + "description": "Start time of the software update configuration run.", "readOnly": true }, "endTime": { @@ -248,7 +248,7 @@ }, "createdBy": { "type": "string", - "description": "createdBy property, which only appears in the response.", + "description": "CreatedBy property, which only appears in the response.", "readOnly": true }, "lastModifiedTime": { @@ -260,8 +260,44 @@ }, "lastModifiedBy": { "type": "string", - "description": "lastModifiedBy property, which only appears in the response.", + "description": "LastModifiedBy property, which only appears in the response.", "readOnly": true + }, + "tasks": { + "description": "Software update configuration tasks triggered in this run", + "$ref": "#/definitions/softareUpdateConfigurationRunTasks" + } + } + }, + "softareUpdateConfigurationRunTasks": { + "description": "Software update configuration run tasks model.", + "type": "object", + "properties": { + "preTask": { + "description": "Pre task properties.", + "$ref": "#/definitions/softareUpdateConfigurationRunTaskProperties" + }, + "postTask": { + "description": "Post task properties.", + "$ref": "#/definitions/softareUpdateConfigurationRunTaskProperties" + } + } + }, + "softareUpdateConfigurationRunTaskProperties": { + "type": "object", + "description": "Task properties of the software update configuration.", + "properties": { + "status": { + "type": "string", + "description": "The status of the task." + }, + "source": { + "type": "string", + "description": "The name of the source of the task." + }, + "jobId": { + "type": "string", + "description": "The job id of the task." } } },