diff --git a/src/SDKs/Automation/Automation.Tests/Automation.Tests.csproj b/src/SDKs/Automation/Automation.Tests/Automation.Tests.csproj
index c0a799fe6c8d..4cc463077a07 100644
--- a/src/SDKs/Automation/Automation.Tests/Automation.Tests.csproj
+++ b/src/SDKs/Automation/Automation.Tests/Automation.Tests.csproj
@@ -3,7 +3,7 @@
Automation.Tests
Automation.Tests
- 3.0.0-preview
+ 3.0.1-preview
Test Project for Automation tests
diff --git a/src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/BaseTest.cs b/src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/BaseTest.cs
new file mode 100644
index 000000000000..8040af6fc8bd
--- /dev/null
+++ b/src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/BaseTest.cs
@@ -0,0 +1,30 @@
+namespace Automation.Tests.ScenarioTests.UpdateManagement
+{
+ using Microsoft.Azure.Management.Automation;
+ using Microsoft.Rest.ClientRuntime.Azure.TestFramework;
+
+ using Automation.Tests.Helpers;
+
+ public class BaseTest
+ {
+ protected const string ResourceGroupName = "to-delete-01";
+ protected const string AutomationAccountName = "fbs-aa-01";
+ protected const string updateConfigurationName_01 = "test-suc-001";
+ protected const string updateConfigurationName_02 = "test-suc-002";
+ protected const string VM_01 = "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01";
+ protected const string VM_02 = "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02";
+
+ protected AutomationClient automationClient;
+
+ protected void CreateAutomationClient(MockContext context)
+ {
+ if (this.automationClient == null)
+ {
+ var handler = new RecordedDelegatingHandler();
+ this.automationClient = context.GetServiceClient(false, handler);
+ this.automationClient.ResourceGroupName = ResourceGroupName;
+ this.automationClient.AutomationAccountName = AutomationAccountName;
+ }
+ }
+ }
+}
diff --git a/src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/SoftwareUpdateConfigurationMachineRunTests.cs b/src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/SoftwareUpdateConfigurationMachineRunTests.cs
new file mode 100644
index 000000000000..5d31cf43d53b
--- /dev/null
+++ b/src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/SoftwareUpdateConfigurationMachineRunTests.cs
@@ -0,0 +1,67 @@
+namespace Automation.Tests.ScenarioTests.UpdateManagement
+{
+ using System;
+
+ using Microsoft.Azure.Management.Automation;
+ using Microsoft.Rest.ClientRuntime.Azure.TestFramework;
+
+ using Xunit;
+
+ public class SoftwareUpdateConfigurationMachineRunTests : BaseTest
+ {
+ [Fact]
+ public void CanGetMachineRunById()
+ {
+ var runId = Guid.Parse("b56021cf-1643-4bfb-99d3-6b798db242f5");
+ using (var context = MockContext.Start(GetType().FullName))
+ {
+ this.CreateAutomationClient(context);
+
+ var run = this.automationClient.SoftwareUpdateConfigurationMachineRuns.GetById(runId);
+ Assert.NotNull(run);
+ Assert.Equal(runId.ToString(), run.Name);
+ }
+ }
+
+ [Fact]
+ public void CanGetAllMachineRuns()
+ {
+ using (var context = MockContext.Start(GetType().FullName))
+ {
+ this.CreateAutomationClient(context);
+
+ var runs = this.automationClient.SoftwareUpdateConfigurationMachineRuns.List();
+ Assert.NotNull(runs.Value);
+ Assert.Equal(27, runs.Value.Count);
+ }
+ }
+
+ [Fact]
+ public void CanGetAllRunsByCorrelationId()
+ {
+ Guid correlationId = Guid.Parse("595159c7-64cb-436f-892d-b44b31970f7a");
+ using (var context = MockContext.Start(GetType().FullName))
+ {
+ this.CreateAutomationClient(context);
+
+ var runs = this.automationClient.SoftwareUpdateConfigurationMachineRuns.ListByCorrelationId(correlationId);
+ Assert.NotNull(runs.Value);
+ Assert.Equal(2, runs.Value.Count);
+ }
+ }
+
+ [Fact]
+ public void CanGetAllRunsByStatus()
+ {
+ const string status = "Failed";
+ using (var context = MockContext.Start(GetType().FullName))
+ {
+ this.CreateAutomationClient(context);
+
+ var runs = this.automationClient.SoftwareUpdateConfigurationMachineRuns.ListByStatus(status);
+ Assert.NotNull(runs.Value);
+ Assert.Equal(4, runs.Value.Count);
+ }
+ }
+ }
+}
diff --git a/src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/SoftwareUpdateConfigurationRunTests.cs b/src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/SoftwareUpdateConfigurationRunTests.cs
new file mode 100644
index 000000000000..4520bf048760
--- /dev/null
+++ b/src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/SoftwareUpdateConfigurationRunTests.cs
@@ -0,0 +1,95 @@
+namespace Automation.Tests.ScenarioTests.UpdateManagement
+{
+ using System;
+
+ using Microsoft.Azure.Management.Automation;
+ using Microsoft.Rest.ClientRuntime.Azure.TestFramework;
+
+ using Xunit;
+
+ public class SoftwareUpdateConfigurationRunTests : BaseTest
+ {
+ [Fact]
+ public void CanGetRunById()
+ {
+ var runId = Guid.Parse("595159c7-64cb-436f-892d-b44b31970f7a");
+ using (var context = MockContext.Start(GetType().FullName))
+ {
+ this.CreateAutomationClient(context);
+
+ var run = this.automationClient.SoftwareUpdateConfigurationRuns.GetById(runId);
+ Assert.NotNull(run);
+ Assert.Equal(runId.ToString(), run.Name);
+ }
+ }
+
+ [Fact]
+ public void CanGetAllRuns()
+ {
+ using (var context = MockContext.Start(GetType().FullName))
+ {
+ this.CreateAutomationClient(context);
+
+ var runs = this.automationClient.SoftwareUpdateConfigurationRuns.List();
+ Assert.NotNull(runs.Value);
+ Assert.Equal(15, runs.Value.Count);
+ }
+ }
+
+ [Fact]
+ public void CanGetAllRunsByConfigurationName()
+ {
+ const string configName = "all-01";
+ using (var context = MockContext.Start(GetType().FullName))
+ {
+ this.CreateAutomationClient(context);
+
+ var runs = this.automationClient.SoftwareUpdateConfigurationRuns.ListByConfigurationName(configName);
+ Assert.NotNull(runs.Value);
+ Assert.Equal(6, runs.Value.Count);
+ }
+ }
+
+ [Fact]
+ public void CanGetAllRunsByOs()
+ {
+ const string os = "Windows";
+ using (var context = MockContext.Start(GetType().FullName))
+ {
+ this.CreateAutomationClient(context);
+
+ var runs = this.automationClient.SoftwareUpdateConfigurationRuns.ListByOsType(os);
+ Assert.NotNull(runs.Value);
+ Assert.Equal(17, runs.Value.Count);
+ }
+ }
+
+ [Fact]
+ public void CanGetAllRunsByStatus()
+ {
+ const string status = "Failed";
+ using (var context = MockContext.Start(GetType().FullName))
+ {
+ this.CreateAutomationClient(context);
+
+ var runs = this.automationClient.SoftwareUpdateConfigurationRuns.ListByStatus(status);
+ Assert.NotNull(runs.Value);
+ Assert.Equal(2, runs.Value.Count);
+ }
+ }
+
+ [Fact]
+ public void CanGetAllRunsByStartTime()
+ {
+ var startTime = DateTime.Parse("2017-12-03T22:01:00-8").ToUniversalTime();
+ using (var context = MockContext.Start(GetType().FullName))
+ {
+ this.CreateAutomationClient(context);
+
+ var runs = this.automationClient.SoftwareUpdateConfigurationRuns.ListByStartTime(startTime);
+ Assert.NotNull(runs.Value);
+ Assert.Equal(3, runs.Value.Count);
+ }
+ }
+ }
+}
diff --git a/src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/SoftwareUpdateConfigurationTests.cs b/src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/SoftwareUpdateConfigurationTests.cs
new file mode 100644
index 000000000000..ec37e2c6b3e5
--- /dev/null
+++ b/src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/SoftwareUpdateConfigurationTests.cs
@@ -0,0 +1,87 @@
+namespace Automation.Tests.ScenarioTests.UpdateManagement
+{
+ using System;
+ using System.Linq;
+
+ using Microsoft.Azure.Management.Automation;
+ using Microsoft.Azure.Management.Automation.Models;
+ using Microsoft.Rest.ClientRuntime.Azure.TestFramework;
+
+ using Xunit;
+
+ public class SoftwareUpdateConfigurationTests : BaseTest
+ {
+ [Fact]
+ public void CanCreateGetAndDelete()
+ {
+ using (var context = MockContext.Start(GetType().FullName))
+ {
+ this.CreateAutomationClient(context);
+
+ // Create and get the first SUC (targeting 1 VMs)
+ var sucProperties = this.CreateSoftwareUpdateConfigurationModel(new[] { VM_01 });
+ var createResult = this.automationClient.SoftwareUpdateConfigurations.Create(updateConfigurationName_01, sucProperties);
+ Assert.NotNull(createResult);
+
+ var getResult = this.automationClient.SoftwareUpdateConfigurations.GetByName(updateConfigurationName_01);
+ Assert.NotNull(getResult);
+
+ // Create and get the second SUC (targeting 2 VMs)
+ sucProperties = this.CreateSoftwareUpdateConfigurationModel(new[] { VM_01, VM_02});
+ createResult = this.automationClient.SoftwareUpdateConfigurations.Create(updateConfigurationName_02, sucProperties);
+ Assert.NotNull(createResult);
+
+ getResult = this.automationClient.SoftwareUpdateConfigurations.GetByName(updateConfigurationName_02);
+ Assert.NotNull(getResult);
+
+ // List all SUCs
+ var listResult = this.automationClient.SoftwareUpdateConfigurations.List();
+ Assert.NotNull(listResult);
+ Assert.NotNull(listResult.Value);
+ Assert.Equal(9, listResult.Value.Count);
+
+ // List for specific VM
+ listResult = this.automationClient.SoftwareUpdateConfigurations.ListByAzureVirtualMachine(VM_01);
+ Assert.NotNull(listResult);
+ Assert.NotNull(listResult.Value);
+ Assert.Equal(6, listResult.Value.Count);
+ var suc = listResult.Value.Where(v => v.Name.Equals(updateConfigurationName_01, StringComparison.OrdinalIgnoreCase)).Single();
+ Assert.Equal(updateConfigurationName_01, suc.Name);
+
+ // Delete both
+ this.automationClient.SoftwareUpdateConfigurations.Delete(updateConfigurationName_01);
+ getResult = this.automationClient.SoftwareUpdateConfigurations.GetByName(updateConfigurationName_01);
+ Assert.Null(getResult);
+
+ this.automationClient.SoftwareUpdateConfigurations.Delete(updateConfigurationName_02);
+ getResult = this.automationClient.SoftwareUpdateConfigurations.GetByName(updateConfigurationName_02);
+ Assert.Null(getResult);
+ }
+ }
+
+ private SoftwareUpdateConfiguration CreateSoftwareUpdateConfigurationModel(string[] azureVirtualMachines)
+ {
+ var updateConfiguration = new UpdateConfiguration
+ {
+ OperatingSystem = OperatingSystemType.Windows,
+ Windows = new WindowsProperties
+ {
+ IncludedUpdateClassifications = WindowsUpdateClasses.Critical + ',' + WindowsUpdateClasses.Security,
+ ExcludedKbNumbers = new[] { "KB123", "KB123" }
+ },
+ Duration = TimeSpan.FromHours(3),
+ AzureVirtualMachines = azureVirtualMachines
+ };
+
+ var scheduleInfo = new ScheduleProperties
+ {
+ Frequency = ScheduleFrequency.Day,
+ StartTime = DateTime.Parse("2018-05-05T19:26:00.000"),
+ Interval = 1,
+ TimeZone = "America/Los_Angeles"
+ };
+
+ return new SoftwareUpdateConfiguration(updateConfiguration, scheduleInfo);
+ }
+ }
+}
diff --git a/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetAllMachineRuns.json b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetAllMachineRuns.json
new file mode 100644
index 000000000000..452b84205e6f
--- /dev/null
+++ b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetAllMachineRuns.json
@@ -0,0 +1,75 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25NYWNoaW5lUnVucz9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "aca39479-ab3f-4bce-ab87-2343e0de0596"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/a58c1a70-2250-4273-a407-cdb1b0feda63\",\r\n \"name\": \"a58c1a70-2250-4273-a407-cdb1b0feda63\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"659368f1-45f0-4ab3-99e3-647159be858a\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T23:05:01.7040608-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T23:05:01.7040608-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:06:03.1566667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/3a66c678-388a-49b8-9870-6ab28e434776\",\r\n \"name\": \"3a66c678-388a-49b8-9870-6ab28e434776\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"900045de-4709-4c72-af35-578a8449cf81\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T23:02:16.623424-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T23:02:16.623424-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:03:18.62-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/a02aa8f5-c824-441f-9642-6f47f5285d62\",\r\n \"name\": \"a02aa8f5-c824-441f-9642-6f47f5285d62\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"900045de-4709-4c72-af35-578a8449cf81\",\r\n \"sourceComputerId\": \"3a919404-fc45-4d2f-aaca-42ca398bbd21\",\r\n \"startTime\": \"2017-12-03T23:02:15.7954412-08:00\",\r\n \"endTime\": \"2017-12-03T23:02:25.8233333-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T23:02:15.7954412-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:03:18.0566667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/204e0368-6db6-4f58-bffe-8cbb9ae05228\",\r\n \"name\": \"204e0368-6db6-4f58-bffe-8cbb9ae05228\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"Failed\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"afb91d65-b7ff-488c-9ff5-8ea1678e3197\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T22:05:03.3058008-08:00\",\r\n \"endTime\": \"2017-12-03T22:36:33.5866667-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T22:05:03.3058008-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:37:14.3066667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/b56021cf-1643-4bfb-99d3-6b798db242f5\",\r\n \"name\": \"b56021cf-1643-4bfb-99d3-6b798db242f5\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Failed\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"595159c7-64cb-436f-892d-b44b31970f7a\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T22:01:03.0427936-08:00\",\r\n \"endTime\": \"2017-12-03T22:35:44.8333333-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T22:01:03.0427936-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:36:15.3566667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/cd9d9164-0268-438a-8d8a-dbca25ade827\",\r\n \"name\": \"cd9d9164-0268-438a-8d8a-dbca25ade827\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"595159c7-64cb-436f-892d-b44b31970f7a\",\r\n \"sourceComputerId\": \"3a919404-fc45-4d2f-aaca-42ca398bbd21\",\r\n \"startTime\": \"2017-12-03T22:01:02.2462645-08:00\",\r\n \"endTime\": \"2017-12-03T22:01:30.9866667-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T22:01:02.2462645-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:02:04.3933333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/c4975a99-f857-4620-a45a-c3373f495362\",\r\n \"name\": \"c4975a99-f857-4620-a45a-c3373f495362\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"f1e53082-2fa9-42b3-8e03-5e2b0b3cfa6a\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T21:05:31.5806397-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T21:05:31.5806397-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:06:34.2766667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/6930b5b9-75b2-4496-9d80-9d94e310e868\",\r\n \"name\": \"6930b5b9-75b2-4496-9d80-9d94e310e868\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"6997253d-1a09-4a86-8ce0-748bdb29ad9c\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T21:00:29.2416781-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T21:00:29.2416781-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:01:32.1166667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/32165385-8113-43dd-8934-0e3413f63b21\",\r\n \"name\": \"32165385-8113-43dd-8934-0e3413f63b21\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"6997253d-1a09-4a86-8ce0-748bdb29ad9c\",\r\n \"sourceComputerId\": \"3a919404-fc45-4d2f-aaca-42ca398bbd21\",\r\n \"startTime\": \"2017-12-03T21:00:28.4762796-08:00\",\r\n \"endTime\": \"2017-12-03T21:00:56.31-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T21:00:28.4762796-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:01:30.62-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/8508acc4-aa22-41b1-b994-8b4ace45675f\",\r\n \"name\": \"8508acc4-aa22-41b1-b994-8b4ace45675f\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"Failed\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"3558b1c5-8fe1-43e1-9601-58247383c1fc\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T20:05:55.2337603-08:00\",\r\n \"endTime\": \"2017-12-03T20:42:33.0333333-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T20:05:55.2337603-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:43:08.6933333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/0d6716ab-5b79-4816-98cc-1833ed7098bd\",\r\n \"name\": \"0d6716ab-5b79-4816-98cc-1833ed7098bd\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Failed\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"c6f3a468-107f-42a3-ad8e-174ff9857fc8\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T20:03:29.9034394-08:00\",\r\n \"endTime\": \"2017-12-03T20:42:16.8066667-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T20:03:29.9034394-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:42:45.7333333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/5766f363-238d-4f42-92eb-c0e7d1cf7091\",\r\n \"name\": \"5766f363-238d-4f42-92eb-c0e7d1cf7091\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"c6f3a468-107f-42a3-ad8e-174ff9857fc8\",\r\n \"sourceComputerId\": \"3a919404-fc45-4d2f-aaca-42ca398bbd21\",\r\n \"startTime\": \"2017-12-03T20:03:28.9820295-08:00\",\r\n \"endTime\": \"2017-12-03T20:07:06.49-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T20:03:28.9820295-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:07:33.59-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/7395e87d-f249-47d3-b841-16f461f5bbd5\",\r\n \"name\": \"7395e87d-f249-47d3-b841-16f461f5bbd5\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"84fd39b5-b28d-4a2a-8856-9c695f4a2805\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T19:05:02.4519754-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T19:05:02.4519754-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:06:21.0133333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/39e0f311-0766-4d53-91b0-4e0e09101273\",\r\n \"name\": \"39e0f311-0766-4d53-91b0-4e0e09101273\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"5ba8cbea-df0b-4937-932d-0f840e0befb4\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T19:02:16.605992-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T19:02:16.605992-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:04:09.1133333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/873b39a2-c006-421e-974e-552941d812c6\",\r\n \"name\": \"873b39a2-c006-421e-974e-552941d812c6\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"5ba8cbea-df0b-4937-932d-0f840e0befb4\",\r\n \"sourceComputerId\": \"3a919404-fc45-4d2f-aaca-42ca398bbd21\",\r\n \"startTime\": \"2017-12-03T19:02:14.8565448-08:00\",\r\n \"endTime\": \"2017-12-03T19:03:14.2033333-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T19:02:14.8565448-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:04:09.3666667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/43943787-066a-423f-b39b-20c0448653bf\",\r\n \"name\": \"43943787-066a-423f-b39b-20c0448653bf\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"4acce870-3ddb-4469-bde6-9bd42d991828\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T18:05:30.961048-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T18:05:30.961048-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:06:24.59-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/1397c273-f2b3-4d07-8aad-b8d200841f79\",\r\n \"name\": \"1397c273-f2b3-4d07-8aad-b8d200841f79\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"de940d19-c4d2-467c-a916-1d6e489092c4\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T18:01:45.516477-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T18:01:45.516477-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:02:50.2633333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/6939a2d7-92fa-4b03-b2c0-9e6621dc5589\",\r\n \"name\": \"6939a2d7-92fa-4b03-b2c0-9e6621dc5589\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"de940d19-c4d2-467c-a916-1d6e489092c4\",\r\n \"sourceComputerId\": \"3a919404-fc45-4d2f-aaca-42ca398bbd21\",\r\n \"startTime\": \"2017-12-03T18:01:44.672857-08:00\",\r\n \"endTime\": \"2017-12-03T18:01:54.4033333-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T18:01:44.672857-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:02:48.4733333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/5fbe0453-e603-4bbd-8c2c-8346e8f14921\",\r\n \"name\": \"5fbe0453-e603-4bbd-8c2c-8346e8f14921\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"3aab1bb9-3144-4fe0-85bc-bc59a446ab41\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T17:05:29.0836163-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T17:05:29.0836163-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:06:37.2433333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/31941815-326b-4d47-bba5-a4a4e0aa53b6\",\r\n \"name\": \"31941815-326b-4d47-bba5-a4a4e0aa53b6\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"064a5c2d-3a3a-4081-af1b-7ca4badd4c09\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T17:02:24.7518491-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T17:02:24.7518491-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:04:34.41-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/f5f295a7-6792-4998-8c48-cd84cbfc26ff\",\r\n \"name\": \"f5f295a7-6792-4998-8c48-cd84cbfc26ff\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"064a5c2d-3a3a-4081-af1b-7ca4badd4c09\",\r\n \"sourceComputerId\": \"3a919404-fc45-4d2f-aaca-42ca398bbd21\",\r\n \"startTime\": \"2017-12-03T17:02:23.7990863-08:00\",\r\n \"endTime\": \"2017-12-03T17:02:34.1533333-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T17:02:23.7990863-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:04:33.41-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/8dbec6cf-bbdb-4718-ae63-4da176199d8c\",\r\n \"name\": \"8dbec6cf-bbdb-4718-ae63-4da176199d8c\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"1c6d425e-9356-4516-8ac8-426cddbdaaf6\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T16:05:39.8673719-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T16:05:39.8673719-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:07:06.48-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/9d49b235-4a04-4169-a699-3c9e82735546\",\r\n \"name\": \"9d49b235-4a04-4169-a699-3c9e82735546\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"3eb47451-4612-4088-a58f-81349607fa36\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T16:01:12.3153445-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T16:01:12.3153445-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:05:04.7633333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/6ebb9879-dea7-48f2-8367-a2274c6a563a\",\r\n \"name\": \"6ebb9879-dea7-48f2-8367-a2274c6a563a\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"3eb47451-4612-4088-a58f-81349607fa36\",\r\n \"sourceComputerId\": \"3a919404-fc45-4d2f-aaca-42ca398bbd21\",\r\n \"startTime\": \"2017-12-03T16:01:11.5646677-08:00\",\r\n \"endTime\": \"2017-12-03T16:08:40.6833333-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T16:01:11.5646677-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:05:05.0066667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/4cc52000-6689-4d50-bb92-d32efe861531\",\r\n \"name\": \"4cc52000-6689-4d50-bb92-d32efe861531\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"cf4fd039-ad1d-4eab-82c3-f34c68cdd1c7\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T15:05:28.921775-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T15:05:28.921775-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:06:25.2466667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/572abcd1-6013-4286-a3be-116e3862f407\",\r\n \"name\": \"572abcd1-6013-4286-a3be-116e3862f407\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"second\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"70925935-7c65-4372-bfe4-24e6e0edd331\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T15:01:12.4322251-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T15:01:12.4322251-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:03:46.21-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/1010ff31-8e3d-4db9-b7d1-d1334e69e239\",\r\n \"name\": \"1010ff31-8e3d-4db9-b7d1-d1334e69e239\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"first\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"24f7d45f-6eed-45b9-90f2-6e596774fe2c\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T14:50:34.6608639-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T14:50:34.6608639-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:51:46.1466667-08:00\"\r\n }\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 04 Dec 2017 07:17:53 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "aca39479-ab3f-4bce-ab87-2343e0de0596"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14997"
+ ],
+ "x-ms-correlation-request-id": [
+ "cab3497d-cb6b-49aa-8a43-80fb334ec059"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20171204T071753Z:cab3497d-cb6b-49aa-8a43-80fb334ec059"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "05fd3142-4b8e-4b16-8da9-98b4bbfd722d"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetAllRunsByCorrelationId.json b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetAllRunsByCorrelationId.json
new file mode 100644
index 000000000000..b8ecdebf27a0
--- /dev/null
+++ b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetAllRunsByCorrelationId.json
@@ -0,0 +1,75 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns?api-version=2017-05-15-preview&$filter=properties%2FcorrelationId%20eq%20595159c7-64cb-436f-892d-b44b31970f7a",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25NYWNoaW5lUnVucz9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXcmJGZpbHRlcj1wcm9wZXJ0aWVzJTJGY29ycmVsYXRpb25JZCUyMGVxJTIwNTk1MTU5YzctNjRjYi00MzZmLTg5MmQtYjQ0YjMxOTcwZjdh",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "dde25426-d83b-47f5-8e86-2c330fe819d8"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/b56021cf-1643-4bfb-99d3-6b798db242f5\",\r\n \"name\": \"b56021cf-1643-4bfb-99d3-6b798db242f5\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Failed\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"595159c7-64cb-436f-892d-b44b31970f7a\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T22:01:03.0427936-08:00\",\r\n \"endTime\": \"2017-12-03T22:35:44.8333333-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T22:01:03.0427936-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:36:15.3566667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/cd9d9164-0268-438a-8d8a-dbca25ade827\",\r\n \"name\": \"cd9d9164-0268-438a-8d8a-dbca25ade827\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"595159c7-64cb-436f-892d-b44b31970f7a\",\r\n \"sourceComputerId\": \"3a919404-fc45-4d2f-aaca-42ca398bbd21\",\r\n \"startTime\": \"2017-12-03T22:01:02.2462645-08:00\",\r\n \"endTime\": \"2017-12-03T22:01:30.9866667-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T22:01:02.2462645-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:02:04.3933333-08:00\"\r\n }\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 04 Dec 2017 07:23:32 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "dde25426-d83b-47f5-8e86-2c330fe819d8"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14994"
+ ],
+ "x-ms-correlation-request-id": [
+ "5b6e13f8-4b6f-45de-9286-8b7ce7ef447f"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20171204T072333Z:5b6e13f8-4b6f-45de-9286-8b7ce7ef447f"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "05fd3142-4b8e-4b16-8da9-98b4bbfd722d"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetAllRunsByStatus.json b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetAllRunsByStatus.json
new file mode 100644
index 000000000000..70cb00e97b82
--- /dev/null
+++ b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetAllRunsByStatus.json
@@ -0,0 +1,75 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns?api-version=2017-05-15-preview&$filter=properties%2Fstatus%20eq%20'Failed'",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25NYWNoaW5lUnVucz9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXcmJGZpbHRlcj1wcm9wZXJ0aWVzJTJGc3RhdHVzJTIwZXElMjAlMjdGYWlsZWQlMjc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "2eb36ef2-bfd7-49b9-a02d-38d58bfbcf00"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/204e0368-6db6-4f58-bffe-8cbb9ae05228\",\r\n \"name\": \"204e0368-6db6-4f58-bffe-8cbb9ae05228\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"Failed\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"afb91d65-b7ff-488c-9ff5-8ea1678e3197\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T22:05:03.3058008-08:00\",\r\n \"endTime\": \"2017-12-03T22:36:33.5866667-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T22:05:03.3058008-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:37:14.3066667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/b56021cf-1643-4bfb-99d3-6b798db242f5\",\r\n \"name\": \"b56021cf-1643-4bfb-99d3-6b798db242f5\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Failed\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"595159c7-64cb-436f-892d-b44b31970f7a\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T22:01:03.0427936-08:00\",\r\n \"endTime\": \"2017-12-03T22:35:44.8333333-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T22:01:03.0427936-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:36:15.3566667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/8508acc4-aa22-41b1-b994-8b4ace45675f\",\r\n \"name\": \"8508acc4-aa22-41b1-b994-8b4ace45675f\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"Failed\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"3558b1c5-8fe1-43e1-9601-58247383c1fc\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T20:05:55.2337603-08:00\",\r\n \"endTime\": \"2017-12-03T20:42:33.0333333-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T20:05:55.2337603-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:43:08.6933333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/0d6716ab-5b79-4816-98cc-1833ed7098bd\",\r\n \"name\": \"0d6716ab-5b79-4816-98cc-1833ed7098bd\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Failed\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"c6f3a468-107f-42a3-ad8e-174ff9857fc8\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T20:03:29.9034394-08:00\",\r\n \"endTime\": \"2017-12-03T20:42:16.8066667-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T20:03:29.9034394-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:42:45.7333333-08:00\"\r\n }\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 04 Dec 2017 07:24:20 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "2eb36ef2-bfd7-49b9-a02d-38d58bfbcf00"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14997"
+ ],
+ "x-ms-correlation-request-id": [
+ "69951c03-42d1-49ef-a4f9-a7df3f1296b7"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20171204T072420Z:69951c03-42d1-49ef-a4f9-a7df3f1296b7"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "05fd3142-4b8e-4b16-8da9-98b4bbfd722d"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetMachineRunById.json b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetMachineRunById.json
new file mode 100644
index 000000000000..0969bccba2ed
--- /dev/null
+++ b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetMachineRunById.json
@@ -0,0 +1,75 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/b56021cf-1643-4bfb-99d3-6b798db242f5?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25NYWNoaW5lUnVucy9iNTYwMjFjZi0xNjQzLTRiZmItOTlkMy02Yjc5OGRiMjQyZjU/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "1dea5b43-3f4f-422f-948d-db55b39d6bab"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/b56021cf-1643-4bfb-99d3-6b798db242f5\",\r\n \"name\": \"b56021cf-1643-4bfb-99d3-6b798db242f5\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Failed\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"595159c7-64cb-436f-892d-b44b31970f7a\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T22:01:03.0427936-08:00\",\r\n \"endTime\": \"2017-12-03T22:35:44.8333333-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/jobs/b56021cf-1643-4bfb-99d3-6b798db242f5\"\r\n },\r\n \"creationTime\": \"2017-12-03T22:01:03.0427936-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:36:15.3566667-08:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 04 Dec 2017 07:16:23 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "1dea5b43-3f4f-422f-948d-db55b39d6bab"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14994"
+ ],
+ "x-ms-correlation-request-id": [
+ "794fb85a-5a4c-4c8e-91da-f8ceb97b1d6c"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20171204T071624Z:794fb85a-5a4c-4c8e-91da-f8ceb97b1d6c"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "05fd3142-4b8e-4b16-8da9-98b4bbfd722d"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRuns.json b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRuns.json
new file mode 100644
index 000000000000..65d50bed1e69
--- /dev/null
+++ b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRuns.json
@@ -0,0 +1,75 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25SdW5zP2FwaS12ZXJzaW9uPTIwMTctMDUtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "624d5cae-b2e6-4c13-ad66-5406847fa748"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/f1e53082-2fa9-42b3-8e03-5e2b0b3cfa6a\",\r\n \"name\": \"f1e53082-2fa9-42b3-8e03-5e2b0b3cfa6a\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T21:05:31.3150583-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T21:05:31.3150583-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:05:32.3133333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/6997253d-1a09-4a86-8ce0-748bdb29ad9c\",\r\n \"name\": \"6997253d-1a09-4a86-8ce0-748bdb29ad9c\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T21:00:28.179483-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T21:00:28.179483-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:00:29.99-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/3558b1c5-8fe1-43e1-9601-58247383c1fc\",\r\n \"name\": \"3558b1c5-8fe1-43e1-9601-58247383c1fc\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"Failed\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T20:05:54.1405681-08:00\",\r\n \"endTime\": \"2017-12-03T20:42:33.0333333-08:00\",\r\n \"computerCount\": 1,\r\n \"failedCount\": 1,\r\n \"creationTime\": \"2017-12-03T20:05:54.1405681-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:43:09.0533333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/c6f3a468-107f-42a3-ad8e-174ff9857fc8\",\r\n \"name\": \"c6f3a468-107f-42a3-ad8e-174ff9857fc8\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Failed\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T20:03:27.9356546-08:00\",\r\n \"endTime\": \"2017-12-03T20:42:16.8066667-08:00\",\r\n \"computerCount\": 2,\r\n \"failedCount\": 1,\r\n \"creationTime\": \"2017-12-03T20:03:27.9356546-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:42:46.78-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/84fd39b5-b28d-4a2a-8856-9c695f4a2805\",\r\n \"name\": \"84fd39b5-b28d-4a2a-8856-9c695f4a2805\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T19:05:02.1864192-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T19:05:02.1864192-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T19:05:03.2466667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/5ba8cbea-df0b-4937-932d-0f840e0befb4\",\r\n \"name\": \"5ba8cbea-df0b-4937-932d-0f840e0befb4\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T19:02:14.5441554-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T19:02:14.5441554-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T19:02:17.4166667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/4acce870-3ddb-4469-bde6-9bd42d991828\",\r\n \"name\": \"4acce870-3ddb-4469-bde6-9bd42d991828\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T18:05:29.9143703-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T18:05:29.9143703-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:05:22.52-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/de940d19-c4d2-467c-a916-1d6e489092c4\",\r\n \"name\": \"de940d19-c4d2-467c-a916-1d6e489092c4\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T18:01:44.3135947-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T18:01:44.3135947-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:01:47.8666667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/3aab1bb9-3144-4fe0-85bc-bc59a446ab41\",\r\n \"name\": \"3aab1bb9-3144-4fe0-85bc-bc59a446ab41\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T17:05:28.0371572-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T17:05:28.0371572-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:05:25.09-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/064a5c2d-3a3a-4081-af1b-7ca4badd4c09\",\r\n \"name\": \"064a5c2d-3a3a-4081-af1b-7ca4badd4c09\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T17:02:22.6588665-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T17:02:22.6588665-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:03:14.55-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/1c6d425e-9356-4516-8ac8-426cddbdaaf6\",\r\n \"name\": \"1c6d425e-9356-4516-8ac8-426cddbdaaf6\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T16:05:38.8138047-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T16:05:38.8138047-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T19:05:58.69-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/3eb47451-4612-4088-a58f-81349607fa36\",\r\n \"name\": \"3eb47451-4612-4088-a58f-81349607fa36\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T16:01:11.2366375-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T16:01:11.2366375-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T19:03:37.37-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/cf4fd039-ad1d-4eab-82c3-f34c68cdd1c7\",\r\n \"name\": \"cf4fd039-ad1d-4eab-82c3-f34c68cdd1c7\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T15:05:27.8753539-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T15:05:27.8753539-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:05:23.2833333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/70925935-7c65-4372-bfe4-24e6e0edd331\",\r\n \"name\": \"70925935-7c65-4372-bfe4-24e6e0edd331\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"second\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T15:01:11.3233398-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T15:01:11.3233398-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:02:44.0233333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/24f7d45f-6eed-45b9-90f2-6e596774fe2c\",\r\n \"name\": \"24f7d45f-6eed-45b9-90f2-6e596774fe2c\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"first\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T14:50:33.552091-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T14:50:33.552091-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:50:44.15-08:00\"\r\n }\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 04 Dec 2017 05:56:02 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "624d5cae-b2e6-4c13-ad66-5406847fa748"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14978"
+ ],
+ "x-ms-correlation-request-id": [
+ "96f49107-fc29-4dcf-af8a-8db2c9f4a7e5"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20171204T055602Z:96f49107-fc29-4dcf-af8a-8db2c9f4a7e5"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "05fd3142-4b8e-4b16-8da9-98b4bbfd722d"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByConfigurationName.json b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByConfigurationName.json
new file mode 100644
index 000000000000..8a405fa46fd0
--- /dev/null
+++ b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByConfigurationName.json
@@ -0,0 +1,75 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns?api-version=2017-05-15-preview&$filter=properties%2FsoftwareUpdateConfiguration%2Fname%20eq%20'all-01'",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25SdW5zP2FwaS12ZXJzaW9uPTIwMTctMDUtMTUtcHJldmlldyYkZmlsdGVyPXByb3BlcnRpZXMlMkZzb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb24lMkZuYW1lJTIwZXElMjAlMjdhbGwtMDElMjc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "b71ea5ae-f49c-4d44-a11a-5e696f9dabc2"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/6997253d-1a09-4a86-8ce0-748bdb29ad9c\",\r\n \"name\": \"6997253d-1a09-4a86-8ce0-748bdb29ad9c\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T21:00:28.179483-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T21:00:28.179483-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:00:29.99-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/c6f3a468-107f-42a3-ad8e-174ff9857fc8\",\r\n \"name\": \"c6f3a468-107f-42a3-ad8e-174ff9857fc8\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Failed\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T20:03:27.9356546-08:00\",\r\n \"endTime\": \"2017-12-03T20:42:16.8066667-08:00\",\r\n \"computerCount\": 2,\r\n \"failedCount\": 1,\r\n \"creationTime\": \"2017-12-03T20:03:27.9356546-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:42:46.78-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/5ba8cbea-df0b-4937-932d-0f840e0befb4\",\r\n \"name\": \"5ba8cbea-df0b-4937-932d-0f840e0befb4\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T19:02:14.5441554-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T19:02:14.5441554-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T19:02:17.4166667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/de940d19-c4d2-467c-a916-1d6e489092c4\",\r\n \"name\": \"de940d19-c4d2-467c-a916-1d6e489092c4\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T18:01:44.3135947-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T18:01:44.3135947-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:01:47.8666667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/064a5c2d-3a3a-4081-af1b-7ca4badd4c09\",\r\n \"name\": \"064a5c2d-3a3a-4081-af1b-7ca4badd4c09\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T17:02:22.6588665-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T17:02:22.6588665-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:03:14.55-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/3eb47451-4612-4088-a58f-81349607fa36\",\r\n \"name\": \"3eb47451-4612-4088-a58f-81349607fa36\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T16:01:11.2366375-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T16:01:11.2366375-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T19:03:37.37-08:00\"\r\n }\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 04 Dec 2017 05:40:51 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "b71ea5ae-f49c-4d44-a11a-5e696f9dabc2"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14981"
+ ],
+ "x-ms-correlation-request-id": [
+ "03adc694-07fa-4848-92ae-3bbfc643d6c7"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20171204T054051Z:03adc694-07fa-4848-92ae-3bbfc643d6c7"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "05fd3142-4b8e-4b16-8da9-98b4bbfd722d"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByOs.json b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByOs.json
new file mode 100644
index 000000000000..a1dbc30be0c3
--- /dev/null
+++ b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByOs.json
@@ -0,0 +1,75 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns?api-version=2017-05-15-preview&$filter=properties%2FosType%20eq%20'Windows'",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25SdW5zP2FwaS12ZXJzaW9uPTIwMTctMDUtMTUtcHJldmlldyYkZmlsdGVyPXByb3BlcnRpZXMlMkZvc1R5cGUlMjBlcSUyMCUyN1dpbmRvd3MlMjc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "e65a836c-c6d5-4385-9db7-0793bf7bf9ea"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/afb91d65-b7ff-488c-9ff5-8ea1678e3197\",\r\n \"name\": \"afb91d65-b7ff-488c-9ff5-8ea1678e3197\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T22:05:02.977826-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T22:05:02.977826-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:05:04.0366667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/595159c7-64cb-436f-892d-b44b31970f7a\",\r\n \"name\": \"595159c7-64cb-436f-892d-b44b31970f7a\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T22:01:01.9339046-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T22:01:01.9339046-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:01:03.79-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/f1e53082-2fa9-42b3-8e03-5e2b0b3cfa6a\",\r\n \"name\": \"f1e53082-2fa9-42b3-8e03-5e2b0b3cfa6a\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T21:05:31.3150583-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T21:05:31.3150583-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:05:32.3133333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/6997253d-1a09-4a86-8ce0-748bdb29ad9c\",\r\n \"name\": \"6997253d-1a09-4a86-8ce0-748bdb29ad9c\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T21:00:28.179483-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T21:00:28.179483-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:00:29.99-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/3558b1c5-8fe1-43e1-9601-58247383c1fc\",\r\n \"name\": \"3558b1c5-8fe1-43e1-9601-58247383c1fc\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"Failed\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T20:05:54.1405681-08:00\",\r\n \"endTime\": \"2017-12-03T20:42:33.0333333-08:00\",\r\n \"computerCount\": 1,\r\n \"failedCount\": 1,\r\n \"creationTime\": \"2017-12-03T20:05:54.1405681-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:43:09.0533333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/c6f3a468-107f-42a3-ad8e-174ff9857fc8\",\r\n \"name\": \"c6f3a468-107f-42a3-ad8e-174ff9857fc8\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Failed\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T20:03:27.9356546-08:00\",\r\n \"endTime\": \"2017-12-03T20:42:16.8066667-08:00\",\r\n \"computerCount\": 2,\r\n \"failedCount\": 1,\r\n \"creationTime\": \"2017-12-03T20:03:27.9356546-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:42:46.78-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/84fd39b5-b28d-4a2a-8856-9c695f4a2805\",\r\n \"name\": \"84fd39b5-b28d-4a2a-8856-9c695f4a2805\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T19:05:02.1864192-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T19:05:02.1864192-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:05:20.7333333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/5ba8cbea-df0b-4937-932d-0f840e0befb4\",\r\n \"name\": \"5ba8cbea-df0b-4937-932d-0f840e0befb4\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T19:02:14.5441554-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T19:02:14.5441554-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:03:08.7266667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/4acce870-3ddb-4469-bde6-9bd42d991828\",\r\n \"name\": \"4acce870-3ddb-4469-bde6-9bd42d991828\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T18:05:29.9143703-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T18:05:29.9143703-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:05:22.52-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/de940d19-c4d2-467c-a916-1d6e489092c4\",\r\n \"name\": \"de940d19-c4d2-467c-a916-1d6e489092c4\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T18:01:44.3135947-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T18:01:44.3135947-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:01:47.8666667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/3aab1bb9-3144-4fe0-85bc-bc59a446ab41\",\r\n \"name\": \"3aab1bb9-3144-4fe0-85bc-bc59a446ab41\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T17:05:28.0371572-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T17:05:28.0371572-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:05:25.09-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/064a5c2d-3a3a-4081-af1b-7ca4badd4c09\",\r\n \"name\": \"064a5c2d-3a3a-4081-af1b-7ca4badd4c09\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T17:02:22.6588665-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T17:02:22.6588665-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:03:14.55-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/1c6d425e-9356-4516-8ac8-426cddbdaaf6\",\r\n \"name\": \"1c6d425e-9356-4516-8ac8-426cddbdaaf6\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T16:05:38.8138047-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T16:05:38.8138047-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:06:05.9666667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/3eb47451-4612-4088-a58f-81349607fa36\",\r\n \"name\": \"3eb47451-4612-4088-a58f-81349607fa36\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T16:01:11.2366375-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T16:01:11.2366375-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:04:04.2433333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/cf4fd039-ad1d-4eab-82c3-f34c68cdd1c7\",\r\n \"name\": \"cf4fd039-ad1d-4eab-82c3-f34c68cdd1c7\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T15:05:27.8753539-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T15:05:27.8753539-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:05:23.2833333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/70925935-7c65-4372-bfe4-24e6e0edd331\",\r\n \"name\": \"70925935-7c65-4372-bfe4-24e6e0edd331\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"second\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T15:01:11.3233398-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T15:01:11.3233398-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:02:44.0233333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/24f7d45f-6eed-45b9-90f2-6e596774fe2c\",\r\n \"name\": \"24f7d45f-6eed-45b9-90f2-6e596774fe2c\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"first\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T14:50:33.552091-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T14:50:33.552091-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:50:44.15-08:00\"\r\n }\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 04 Dec 2017 06:32:01 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "e65a836c-c6d5-4385-9db7-0793bf7bf9ea"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14999"
+ ],
+ "x-ms-correlation-request-id": [
+ "ebb01a50-aa5d-422e-8953-2743a0fb7075"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20171204T063201Z:ebb01a50-aa5d-422e-8953-2743a0fb7075"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "05fd3142-4b8e-4b16-8da9-98b4bbfd722d"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByStartTime.json b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByStartTime.json
new file mode 100644
index 000000000000..5351711f6928
--- /dev/null
+++ b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByStartTime.json
@@ -0,0 +1,75 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns?api-version=2017-05-15-preview&$filter=properties%2FstartTime%20ge%202017-12-04T06:01:00.0000000Z",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25SdW5zP2FwaS12ZXJzaW9uPTIwMTctMDUtMTUtcHJldmlldyYkZmlsdGVyPXByb3BlcnRpZXMlMkZzdGFydFRpbWUlMjBnZSUyMDIwMTctMTItMDRUMDYlM0EwMSUzQTAwLjAwMDAwMDBa",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "1a87fe4c-74bc-4f7e-9980-d724477ede2d"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.1.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/c7f97f66-2aca-42a5-a292-23fbf9e83555\",\r\n \"name\": \"c7f97f66-2aca-42a5-a292-23fbf9e83555\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"test\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2018-01-31T15:04:07.1910863-08:00\",\r\n \"endTime\": \"2018-01-31T15:04:39.797-08:00\",\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2018-01-31T15:04:07.1910863-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-01-31T15:05:11.657-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/688151d2-6097-46a7-ae21-2d873c311c42\",\r\n \"name\": \"688151d2-6097-46a7-ae21-2d873c311c42\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"test\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2018-01-31T14:08:52.6090288-08:00\",\r\n \"endTime\": \"2018-01-31T14:43:48.56-08:00\",\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2018-01-31T14:08:52.6090288-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-01-31T14:44:00.463-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/5f806946-dc53-4261-91a5-4632cfac3df8\",\r\n \"name\": \"5f806946-dc53-4261-91a5-4632cfac3df8\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"test\"\r\n },\r\n \"status\": \"Failed\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2018-01-31T13:06:33.2246522-08:00\",\r\n \"endTime\": \"2018-01-31T13:06:34.1933756-08:00\",\r\n \"computerCount\": 1,\r\n \"failedCount\": 1,\r\n \"creationTime\": \"2018-01-31T13:06:33.2246522-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-01-31T13:49:42.267-08:00\"\r\n }\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 01 Feb 2018 01:44:48 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "1a87fe4c-74bc-4f7e-9980-d724477ede2d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14995"
+ ],
+ "x-ms-correlation-request-id": [
+ "fd246534-f19c-4215-b538-c0676098d3bc"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180201T014448Z:fd246534-f19c-4215-b538-c0676098d3bc"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "05fd3142-4b8e-4b16-8da9-98b4bbfd722d"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByStatus.json b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByStatus.json
new file mode 100644
index 000000000000..95e7c2f4df3e
--- /dev/null
+++ b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByStatus.json
@@ -0,0 +1,75 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns?api-version=2017-05-15-preview&$filter=properties%2Fstatus%20eq%20'Failed'",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25SdW5zP2FwaS12ZXJzaW9uPTIwMTctMDUtMTUtcHJldmlldyYkZmlsdGVyPXByb3BlcnRpZXMlMkZzdGF0dXMlMjBlcSUyMCUyN0ZhaWxlZCUyNw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "27e30bad-6ddf-4992-85f2-220d4b16304c"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/3558b1c5-8fe1-43e1-9601-58247383c1fc\",\r\n \"name\": \"3558b1c5-8fe1-43e1-9601-58247383c1fc\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"Failed\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T20:05:54.1405681-08:00\",\r\n \"endTime\": \"2017-12-03T20:42:33.0333333-08:00\",\r\n \"computerCount\": 1,\r\n \"failedCount\": 1,\r\n \"creationTime\": \"2017-12-03T20:05:54.1405681-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:43:09.0533333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/c6f3a468-107f-42a3-ad8e-174ff9857fc8\",\r\n \"name\": \"c6f3a468-107f-42a3-ad8e-174ff9857fc8\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Failed\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T20:03:27.9356546-08:00\",\r\n \"endTime\": \"2017-12-03T20:42:16.8066667-08:00\",\r\n \"computerCount\": 2,\r\n \"failedCount\": 1,\r\n \"creationTime\": \"2017-12-03T20:03:27.9356546-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:42:46.78-08:00\"\r\n }\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 04 Dec 2017 06:11:32 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "27e30bad-6ddf-4992-85f2-220d4b16304c"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14965"
+ ],
+ "x-ms-correlation-request-id": [
+ "e2167050-dec6-4e29-8305-8cbaa6d78cdf"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20171204T061133Z:e2167050-dec6-4e29-8305-8cbaa6d78cdf"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "05fd3142-4b8e-4b16-8da9-98b4bbfd722d"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetRunById.json b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetRunById.json
new file mode 100644
index 000000000000..3b8f8d91a74f
--- /dev/null
+++ b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetRunById.json
@@ -0,0 +1,75 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/595159c7-64cb-436f-892d-b44b31970f7a?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25SdW5zLzU5NTE1OWM3LTY0Y2ItNDM2Zi04OTJkLWI0NGIzMTk3MGY3YT9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "ffc42903-34ed-424d-a180-bdc6aa0e5de6"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/595159c7-64cb-436f-892d-b44b31970f7a\",\r\n \"name\": \"595159c7-64cb-436f-892d-b44b31970f7a\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T22:01:01.9339046-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T22:01:01.9339046-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:01:03.79-08:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 04 Dec 2017 06:06:34 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "ffc42903-34ed-424d-a180-bdc6aa0e5de6"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14823"
+ ],
+ "x-ms-correlation-request-id": [
+ "38f63f40-a75c-43a2-a382-bf6967f9c4b0"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20171204T060634Z:38f63f40-a75c-43a2-a382-bf6967f9c4b0"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "05fd3142-4b8e-4b16-8da9-98b4bbfd722d"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationTests/CanCreateGetAndDelete.json b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationTests/CanCreateGetAndDelete.json
new file mode 100644
index 000000000000..e56eabfb7bc0
--- /dev/null
+++ b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationTests/CanCreateGetAndDelete.json
@@ -0,0 +1,684 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-001?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL3Rlc3Qtc3VjLTAwMT9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical,Security\",\r\n \"excludedKbNumbers\": [\r\n \"KB123\",\r\n \"KB123\"\r\n ]\r\n },\r\n \"duration\": \"PT3H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\"\r\n ]\r\n },\r\n \"scheduleInfo\": {\r\n \"startTime\": \"2018-05-05T19:26:00Z\",\r\n \"interval\": 1,\r\n \"frequency\": \"Day\",\r\n \"timeZone\": \"America/Los_Angeles\"\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "654"
+ ],
+ "x-ms-client-request-id": [
+ "1c7d3d9f-df38-4ec2-a17f-4561c533db5a"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-001\",\r\n \"name\": \"test-suc-001\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security\",\r\n \"excludedKbNumbers\": [\r\n \"KB123\",\r\n \"KB123\"\r\n ]\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT3H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-05T19:26:00-07:00\",\r\n \"startTimeOffsetMinutes\": -420.0,\r\n \"expiryTime\": \"9999-12-31T15:59:00-08:00\",\r\n \"expiryTimeOffsetMinutes\": -480.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-05T19:26:00-07:00\",\r\n \"nextRunOffsetMinutes\": -420.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Day\",\r\n \"creationTime\": \"2017-12-04T14:05:53.6933333-08:00\",\r\n \"lastModifiedTime\": \"2017-12-04T14:05:53.6933333-08:00\",\r\n \"timeZone\": \"America/Los_Angeles\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"\",\r\n \"error\": null,\r\n \"creationTime\": \"2017-12-04T14:05:53.71-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-04T14:05:53.8333333-08:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1248"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 04 Dec 2017 22:05:54 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-001?api-version=2017-05-15-preview"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "x-ms-request-id": [
+ "1c7d3d9f-df38-4ec2-a17f-4561c533db5a"
+ ],
+ "x-ms-location": [
+ "https://management.azure.com/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-001?api-version=2017-05-15-preview"
+ ],
+ "ocp-location": [
+ "https://management.azure.com/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-001?api-version=2017-05-15-preview"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "a3525393-1d1f-4a20-8ae6-1f0abf1014a7"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20171204T220554Z:a3525393-1d1f-4a20-8ae6-1f0abf1014a7"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-001?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL3Rlc3Qtc3VjLTAwMT9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "6d3873d0-5ed5-4c07-b1e2-61039c087ae7"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-001\",\r\n \"name\": \"test-suc-001\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security\",\r\n \"excludedKbNumbers\": [\r\n \"KB123\",\r\n \"KB123\"\r\n ]\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT3H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-05T19:26:00-07:00\",\r\n \"startTimeOffsetMinutes\": -420.0,\r\n \"expiryTime\": \"9999-12-31T15:59:00-08:00\",\r\n \"expiryTimeOffsetMinutes\": -480.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-05T19:26:00-07:00\",\r\n \"nextRunOffsetMinutes\": -420.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Day\",\r\n \"creationTime\": \"2017-12-04T14:05:53.6933333-08:00\",\r\n \"lastModifiedTime\": \"2017-12-04T14:05:53.6933333-08:00\",\r\n \"timeZone\": \"America/Los_Angeles\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"createdBy\": \"\",\r\n \"error\": null,\r\n \"creationTime\": \"2017-12-04T14:05:53.71-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-04T14:05:53.8333333-08:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 04 Dec 2017 22:05:54 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "6d3873d0-5ed5-4c07-b1e2-61039c087ae7"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14971"
+ ],
+ "x-ms-correlation-request-id": [
+ "63dfdbbb-5fb6-4a46-bc52-fc591deb2f70"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20171204T220554Z:63dfdbbb-5fb6-4a46-bc52-fc591deb2f70"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-001?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL3Rlc3Qtc3VjLTAwMT9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "4d3c37da-0ba2-4a99-ba37-10a2602564ec"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Software update configuration not found\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "71"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 04 Dec 2017 22:05:58 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "x-ms-request-id": [
+ "4d3c37da-0ba2-4a99-ba37-10a2602564ec"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14967"
+ ],
+ "x-ms-correlation-request-id": [
+ "85a9c2b0-6ee1-42fe-b1c7-7b2e8365c750"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20171204T220558Z:85a9c2b0-6ee1-42fe-b1c7-7b2e8365c750"
+ ]
+ },
+ "StatusCode": 404
+ },
+ {
+ "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-002?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL3Rlc3Qtc3VjLTAwMj9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical,Security\",\r\n \"excludedKbNumbers\": [\r\n \"KB123\",\r\n \"KB123\"\r\n ]\r\n },\r\n \"duration\": \"PT3H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\"\r\n ]\r\n },\r\n \"scheduleInfo\": {\r\n \"startTime\": \"2018-05-05T19:26:00Z\",\r\n \"interval\": 1,\r\n \"frequency\": \"Day\",\r\n \"timeZone\": \"America/Los_Angeles\"\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "797"
+ ],
+ "x-ms-client-request-id": [
+ "f3859d38-faaf-4aea-9244-07c392f8fb27"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-002\",\r\n \"name\": \"test-suc-002\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security\",\r\n \"excludedKbNumbers\": [\r\n \"KB123\",\r\n \"KB123\"\r\n ]\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT3H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-05T19:26:00-07:00\",\r\n \"startTimeOffsetMinutes\": -420.0,\r\n \"expiryTime\": \"9999-12-31T15:59:00-08:00\",\r\n \"expiryTimeOffsetMinutes\": -480.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-05T19:26:00-07:00\",\r\n \"nextRunOffsetMinutes\": -420.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Day\",\r\n \"creationTime\": \"2017-12-04T14:05:54.5533333-08:00\",\r\n \"lastModifiedTime\": \"2017-12-04T14:05:54.5533333-08:00\",\r\n \"timeZone\": \"America/Los_Angeles\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"\",\r\n \"error\": null,\r\n \"creationTime\": \"2017-12-04T14:05:54.6166667-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-04T14:05:54.6166667-08:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1386"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 04 Dec 2017 22:05:54 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-002?api-version=2017-05-15-preview"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "x-ms-request-id": [
+ "f3859d38-faaf-4aea-9244-07c392f8fb27"
+ ],
+ "x-ms-location": [
+ "https://management.azure.com/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-002?api-version=2017-05-15-preview"
+ ],
+ "ocp-location": [
+ "https://management.azure.com/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-002?api-version=2017-05-15-preview"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1198"
+ ],
+ "x-ms-correlation-request-id": [
+ "c295e267-1bf1-4f0b-8251-5955b264f603"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20171204T220555Z:c295e267-1bf1-4f0b-8251-5955b264f603"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-002?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL3Rlc3Qtc3VjLTAwMj9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "ae4ff550-ff6a-49af-be76-1d87999b54d8"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-002\",\r\n \"name\": \"test-suc-002\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security\",\r\n \"excludedKbNumbers\": [\r\n \"KB123\",\r\n \"KB123\"\r\n ]\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT3H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-05T19:26:00-07:00\",\r\n \"startTimeOffsetMinutes\": -420.0,\r\n \"expiryTime\": \"9999-12-31T15:59:00-08:00\",\r\n \"expiryTimeOffsetMinutes\": -480.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-05T19:26:00-07:00\",\r\n \"nextRunOffsetMinutes\": -420.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Day\",\r\n \"creationTime\": \"2017-12-04T14:05:54.5533333-08:00\",\r\n \"lastModifiedTime\": \"2017-12-04T14:05:54.5533333-08:00\",\r\n \"timeZone\": \"America/Los_Angeles\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"\",\r\n \"error\": null,\r\n \"creationTime\": \"2017-12-04T14:05:54.6166667-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-04T14:05:54.6166667-08:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 04 Dec 2017 22:05:55 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "ae4ff550-ff6a-49af-be76-1d87999b54d8"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14970"
+ ],
+ "x-ms-correlation-request-id": [
+ "dd738c69-5fe9-4cc5-aa34-4db3addf36d4"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20171204T220555Z:dd738c69-5fe9-4cc5-aa34-4db3addf36d4"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-002?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL3Rlc3Qtc3VjLTAwMj9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "4ccda381-e73c-4086-9fa3-1f665a5b7039"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Software update configuration not found\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "71"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 04 Dec 2017 22:05:58 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "x-ms-request-id": [
+ "4ccda381-e73c-4086-9fa3-1f665a5b7039"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14966"
+ ],
+ "x-ms-correlation-request-id": [
+ "b5bbee98-1478-45fb-8732-56c3fc6178c0"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20171204T220558Z:b5bbee98-1478-45fb-8732-56c3fc6178c0"
+ ]
+ },
+ "StatusCode": 404
+ },
+ {
+ "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zP2FwaS12ZXJzaW9uPTIwMTctMDUtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "809350a3-8cc4-45ce-a4b3-a5f4c089e98d"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/all-01\",\r\n \"name\": \"all-01\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"Hour\",\r\n \"startTime\": \"2017-12-03T16:00:00-08:00\",\r\n \"creationTime\": \"2017-12-03T15:50:29.5066667-08:00\",\r\n \"lastModifiedTime\": \"2017-12-03T15:50:43.7566667-08:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": \"2017-12-04T15:00:00-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/third\",\r\n \"name\": \"third\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"Hour\",\r\n \"startTime\": \"2017-12-03T15:05:00-08:00\",\r\n \"creationTime\": \"2017-12-03T14:46:00.49-08:00\",\r\n \"lastModifiedTime\": \"2017-12-03T14:46:00.7566667-08:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": \"2017-12-04T15:05:00-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-002\",\r\n \"name\": \"test-suc-002\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT3H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"Day\",\r\n \"startTime\": \"2018-05-05T19:26:00-07:00\",\r\n \"creationTime\": \"2017-12-04T14:05:54.6166667-08:00\",\r\n \"lastModifiedTime\": \"2017-12-04T14:05:54.6166667-08:00\",\r\n \"provisioningState\": \"Provisioning\",\r\n \"nextRun\": \"2018-05-05T19:26:00-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-001\",\r\n \"name\": \"test-suc-001\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT3H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"Day\",\r\n \"startTime\": \"2018-05-05T19:26:00-07:00\",\r\n \"creationTime\": \"2017-12-04T14:05:53.71-08:00\",\r\n \"lastModifiedTime\": \"2017-12-04T14:05:53.8333333-08:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": \"2018-05-05T19:26:00-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-02\",\r\n \"name\": \"test-suc-02\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT3H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"Day\",\r\n \"startTime\": \"2018-05-05T19:26:00-07:00\",\r\n \"creationTime\": \"2017-11-29T23:27:55.3433333-08:00\",\r\n \"lastModifiedTime\": \"2017-11-29T23:28:22.7233333-08:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": \"2018-05-05T19:26:00-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test\",\r\n \"name\": \"test\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"OneTime\",\r\n \"startTime\": \"2018-11-30T01:19:00-08:00\",\r\n \"creationTime\": \"2017-11-30T00:50:02.7766667-08:00\",\r\n \"lastModifiedTime\": \"2017-11-30T00:50:03.0266667-08:00\",\r\n \"provisioningState\": \"Failed\",\r\n \"nextRun\": \"2018-11-30T01:19:00-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/second\",\r\n \"name\": \"second\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"OneTime\",\r\n \"startTime\": \"2017-12-03T15:00:00-08:00\",\r\n \"creationTime\": \"2017-12-03T14:44:46.0433333-08:00\",\r\n \"lastModifiedTime\": \"2017-12-03T14:44:46.2466667-08:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": null\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/first\",\r\n \"name\": \"first\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"OneTime\",\r\n \"startTime\": \"2017-12-03T14:50:00-08:00\",\r\n \"creationTime\": \"2017-12-03T14:44:12.5633333-08:00\",\r\n \"lastModifiedTime\": \"2017-12-03T14:44:12.8466667-08:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": null\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/ttt\",\r\n \"name\": \"ttt\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"OneTime\",\r\n \"startTime\": \"2017-11-30T02:44:00-08:00\",\r\n \"creationTime\": \"2017-11-30T02:15:06.7666667-08:00\",\r\n \"lastModifiedTime\": \"2017-11-30T02:15:07.1266667-08:00\",\r\n \"provisioningState\": \"Failed\",\r\n \"nextRun\": null\r\n }\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 04 Dec 2017 22:05:55 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "809350a3-8cc4-45ce-a4b3-a5f4c089e98d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14969"
+ ],
+ "x-ms-correlation-request-id": [
+ "c1e350fd-a6bf-4817-8661-a1b55a611383"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20171204T220555Z:c1e350fd-a6bf-4817-8661-a1b55a611383"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations?api-version=2017-05-15-preview&$filter=properties%2FupdateConfiguration%2FazureVirtualMachines%2Fany(m:%20m%20eq%20'%2Fsubscriptions%2F05fd3142-4b8e-4b16-8da9-98b4bbfd722d%2FresourceGroups%2Fcompute-01%2Fproviders%2FMicrosoft.Compute%2FvirtualMachines%2Fvm-arm-01')",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zP2FwaS12ZXJzaW9uPTIwMTctMDUtMTUtcHJldmlldyYkZmlsdGVyPXByb3BlcnRpZXMlMkZ1cGRhdGVDb25maWd1cmF0aW9uJTJGYXp1cmVWaXJ0dWFsTWFjaGluZXMlMkZhbnklMjhtJTNBJTIwbSUyMGVxJTIwJTI3JTJGc3Vic2NyaXB0aW9ucyUyRjA1ZmQzMTQyLTRiOGUtNGIxNi04ZGE5LTk4YjRiYmZkNzIyZCUyRnJlc291cmNlR3JvdXBzJTJGY29tcHV0ZS0wMSUyRnByb3ZpZGVycyUyRk1pY3Jvc29mdC5Db21wdXRlJTJGdmlydHVhbE1hY2hpbmVzJTJGdm0tYXJtLTAxJTI3JTI5",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "5c0c0770-2ab1-4510-9f28-c8080c58f4f2"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/all-01\",\r\n \"name\": \"all-01\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"Hour\",\r\n \"startTime\": \"2017-12-03T16:00:00-08:00\",\r\n \"creationTime\": \"2017-12-03T15:50:29.5066667-08:00\",\r\n \"lastModifiedTime\": \"2017-12-03T15:50:43.7566667-08:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": \"2017-12-04T15:00:00-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/third\",\r\n \"name\": \"third\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"Hour\",\r\n \"startTime\": \"2017-12-03T15:05:00-08:00\",\r\n \"creationTime\": \"2017-12-03T14:46:00.49-08:00\",\r\n \"lastModifiedTime\": \"2017-12-03T14:46:00.7566667-08:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": \"2017-12-04T15:05:00-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-001\",\r\n \"name\": \"test-suc-001\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT3H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"Day\",\r\n \"startTime\": \"2018-05-05T19:26:00-07:00\",\r\n \"creationTime\": \"2017-12-04T14:05:53.71-08:00\",\r\n \"lastModifiedTime\": \"2017-12-04T14:05:53.8333333-08:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": \"2018-05-05T19:26:00-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-02\",\r\n \"name\": \"test-suc-02\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT3H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"Day\",\r\n \"startTime\": \"2018-05-05T19:26:00-07:00\",\r\n \"creationTime\": \"2017-11-29T23:27:55.3433333-08:00\",\r\n \"lastModifiedTime\": \"2017-11-29T23:28:22.7233333-08:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": \"2018-05-05T19:26:00-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/second\",\r\n \"name\": \"second\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"OneTime\",\r\n \"startTime\": \"2017-12-03T15:00:00-08:00\",\r\n \"creationTime\": \"2017-12-03T14:44:46.0433333-08:00\",\r\n \"lastModifiedTime\": \"2017-12-03T14:44:46.2466667-08:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": null\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/first\",\r\n \"name\": \"first\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"OneTime\",\r\n \"startTime\": \"2017-12-03T14:50:00-08:00\",\r\n \"creationTime\": \"2017-12-03T14:44:12.5633333-08:00\",\r\n \"lastModifiedTime\": \"2017-12-03T14:44:12.8466667-08:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": null\r\n }\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 04 Dec 2017 22:05:57 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "5c0c0770-2ab1-4510-9f28-c8080c58f4f2"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14968"
+ ],
+ "x-ms-correlation-request-id": [
+ "5a0814f5-49f1-4e29-8bbe-f0680135e43d"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20171204T220557Z:5a0814f5-49f1-4e29-8bbe-f0680135e43d"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-001?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL3Rlc3Qtc3VjLTAwMT9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "953cddab-4797-44c3-8669-637c2e442b25"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 04 Dec 2017 22:05:57 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "x-ms-request-id": [
+ "953cddab-4797-44c3-8669-637c2e442b25"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1197"
+ ],
+ "x-ms-correlation-request-id": [
+ "45ff4e2b-373c-4a1d-be7f-91211b0212dc"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20171204T220558Z:45ff4e2b-373c-4a1d-be7f-91211b0212dc"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-002?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL3Rlc3Qtc3VjLTAwMj9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "28d677ed-aa73-4e28-9b87-4bed288ef47d"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 04 Dec 2017 22:05:58 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "x-ms-request-id": [
+ "28d677ed-aa73-4e28-9b87-4bed288ef47d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1196"
+ ],
+ "x-ms-correlation-request-id": [
+ "65b58934-9fd6-49e7-a159-9c63d6204ac0"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20171204T220558Z:65b58934-9fd6-49e7-a159-9c63d6204ac0"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "05fd3142-4b8e-4b16-8da9-98b4bbfd722d"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/Automation/Automation.Tests/TestSupport/AutomationTestBase.cs b/src/SDKs/Automation/Automation.Tests/TestSupport/AutomationTestBase.cs
index bebdf3c1f156..a58a8fd2aaae 100644
--- a/src/SDKs/Automation/Automation.Tests/TestSupport/AutomationTestBase.cs
+++ b/src/SDKs/Automation/Automation.Tests/TestSupport/AutomationTestBase.cs
@@ -37,13 +37,15 @@ public AutomationTestBase(MockContext context)
Location = Location
});
- AutomationClient.AutomationAccount.CreateOrUpdate(
- ResourceGroup, AutomationAccount, new AutomationAccountCreateOrUpdateParameters
+ AutomationClient.AutomationAccount.CreateOrUpdate(ResourceGroup, AutomationAccount,
+ new AutomationAccountCreateOrUpdateParameters
{
Name = AutomationAccount,
Location = Location,
Sku = new Sku {Name = "Free", Family = "Test", Capacity = 1}
});
+
+ AutomationClient.ResourceGroupName = ResourceGroup;
}
catch (CloudException ex)
{
@@ -62,7 +64,7 @@ public AutomationTestBase(MockContext context)
public void CleanUpRunbooks()
{
- var runbooks = AutomationClient.Runbook.ListByAutomationAccount(ResourceGroup, AutomationAccount);
+ var runbooks = AutomationClient.Runbook.ListByAutomationAccount(AutomationAccount);
foreach (var rb in runbooks)
{
@@ -72,7 +74,7 @@ public void CleanUpRunbooks()
public void CleanUpSchedules()
{
- var schedules = AutomationClient.Schedule.ListByAutomationAccount(ResourceGroup, AutomationAccount);
+ var schedules = AutomationClient.Schedule.ListByAutomationAccount(AutomationAccount);
foreach (var schedule in schedules)
{
@@ -82,7 +84,7 @@ public void CleanUpSchedules()
public void CleanUpVariables()
{
- var variables = AutomationClient.Variable.ListByAutomationAccount(ResourceGroup, AutomationAccount);
+ var variables = AutomationClient.Variable.ListByAutomationAccount(AutomationAccount);
foreach (var variable in variables)
{
@@ -93,7 +95,7 @@ public void CleanUpVariables()
public void CleanUpWebhooks()
{
var webhooks =
- AutomationClient.Webhook.ListByAutomationAccount(ResourceGroup, AutomationAccount);
+ AutomationClient.Webhook.ListByAutomationAccount(AutomationAccount);
foreach (var webhook in webhooks)
{
@@ -104,8 +106,8 @@ public void CleanUpWebhooks()
public Credential CreateCredential(string credentialName, string userName, string password,
string description = null)
{
- var credential = AutomationClient.Credential.CreateOrUpdate(ResourceGroup, AutomationAccount,
- credentialName,
+ var credential = AutomationClient.Credential.CreateOrUpdate(AutomationAccount,
+ credentialName,
new CredentialCreateOrUpdateParameters(credentialName,
userName,
password,
@@ -115,7 +117,7 @@ public Credential CreateCredential(string credentialName, string userName, strin
public Webhook CreateWebhook(string webhookName, string runbookName, string uri, string description = null)
{
- var webhook = AutomationClient.Webhook.CreateOrUpdate(ResourceGroup, AutomationAccount, webhookName,
+ var webhook = AutomationClient.Webhook.CreateOrUpdate(AutomationAccount, webhookName,
new WebhookCreateOrUpdateParameters
{
Name = webhookName,
@@ -129,12 +131,12 @@ public Webhook CreateWebhook(string webhookName, string runbookName, string uri,
public string GenerateUriForWebhook()
{
- return AutomationClient.Webhook.GenerateUri(ResourceGroup, AutomationAccount);
+ return AutomationClient.Webhook.GenerateUri(AutomationAccount);
}
public void CreateRunbook(string runbookName, string runbookContent, string description = null)
{
- AutomationClient.Runbook.CreateOrUpdate(ResourceGroup, AutomationAccount, runbookName,
+ AutomationClient.Runbook.CreateOrUpdate(AutomationAccount, runbookName,
new RunbookCreateOrUpdateParameters
{
Name = runbookName,
@@ -150,7 +152,7 @@ public void CreateRunbook(string runbookName, string runbookContent, string desc
public Schedule CreateHourlySchedule(string scheduleName, DateTimeOffset startTime,
DateTimeOffset expiryTime, string description = null, byte hourInterval = 1)
{
- var schedule = AutomationClient.Schedule.CreateOrUpdate(ResourceGroup, AutomationAccount, scheduleName,
+ var schedule = AutomationClient.Schedule.CreateOrUpdate(AutomationAccount, scheduleName,
new ScheduleCreateOrUpdateParameters
{
Name = scheduleName,
@@ -167,7 +169,7 @@ public Schedule CreateHourlySchedule(string scheduleName, DateTimeOffset startTi
#region Module Methods
public Module CreateAutomationModule(string moduleName, string contentLink)
{
- var module = AutomationClient.Module.CreateOrUpdate(ResourceGroup, AutomationAccount, moduleName,
+ var module = AutomationClient.Module.CreateOrUpdate(AutomationAccount, moduleName,
new ModuleCreateOrUpdateParameters
{
Name = moduleName,
@@ -180,7 +182,7 @@ public Module CreateAutomationModule(string moduleName, string contentLink)
public Module GetAutomationModule(string moduleName)
{
- var module = AutomationClient.Module.Get(ResourceGroup, AutomationAccount, moduleName);
+ var module = AutomationClient.Module.Get(AutomationAccount, moduleName);
return module;
}
@@ -188,7 +190,7 @@ public void DeleteModule(string moduleName, bool ignoreErrors = false)
{
try
{
- AutomationClient.Module.Delete(ResourceGroup, AutomationAccount, moduleName);
+ AutomationClient.Module.Delete(AutomationAccount, moduleName);
}
catch (ErrorResponseException)
{
@@ -206,13 +208,13 @@ public void DeleteModule(string moduleName, bool ignoreErrors = false)
public Job WaitForJobCompletion(Guid jobId, string expectedState = "Completed", int numRetries = 50)
{
- var job = AutomationClient.Job.Get(ResourceGroup, AutomationAccount, jobId);
+ var job = AutomationClient.Job.Get(AutomationAccount, jobId);
var endStates = new[] {"Stopped", "Suspended", "Failed", "Completed"};
var retry = 0;
while (job.Status != expectedState && retry < numRetries && !Array.Exists(endStates, s => s == job.Status))
{
TestUtilities.Wait(6000);
- job = AutomationClient.Job.Get(ResourceGroup, AutomationAccount, jobId);
+ job = AutomationClient.Job.Get(AutomationAccount, jobId);
retry++;
}
@@ -221,7 +223,7 @@ public Job WaitForJobCompletion(Guid jobId, string expectedState = "Completed",
public void UpdateRunbook(Runbook runbook)
{
- AutomationClient.Runbook.Update(ResourceGroup, AutomationAccount, runbook.Name, new RunbookUpdateParameters
+ AutomationClient.Runbook.Update(AutomationAccount, runbook.Name, new RunbookUpdateParameters
{
Name = runbook.Name,
Description = runbook.Description,
@@ -233,18 +235,18 @@ public void UpdateRunbook(Runbook runbook)
public void UpdateRunbookContent(string runbookName, string runbookContent)
{
var byteArray = Encoding.ASCII.GetBytes(runbookContent);
- AutomationClient.RunbookDraft.BeginCreateOrUpdate(ResourceGroup, AutomationAccount, runbookName,
+ AutomationClient.RunbookDraft.BeginCreateOrUpdate(AutomationAccount, runbookName,
new MemoryStream(byteArray));
}
public void PublishRunbook(string runbookName)
{
- AutomationClient.RunbookDraft.BeginPublish(ResourceGroup, AutomationAccount, runbookName);
+ AutomationClient.RunbookDraft.BeginPublish(AutomationAccount, runbookName);
}
public Job StartRunbook(string runbookName, IDictionary parameters = null)
{
- var job = AutomationClient.Job.Create(ResourceGroup, AutomationAccount, Guid.NewGuid(),
+ var job = AutomationClient.Job.Create(AutomationAccount, Guid.NewGuid(),
new JobCreateParameters
{
Name = runbookName,
@@ -261,20 +263,20 @@ public IPage GetJobStreams(Guid jobId, string streamType, DateTime st
public Runbook GetRunbook(string runbookName)
{
- var runbook = AutomationClient.Runbook.Get(ResourceGroup, AutomationAccount, runbookName);
+ var runbook = AutomationClient.Runbook.Get(AutomationAccount, runbookName);
return runbook;
}
public Stream GetRunbookContent(string runbookName)
{
var runbookContentStream =
- AutomationClient.RunbookDraft.GetContent(ResourceGroup, AutomationAccount, runbookName);
+ AutomationClient.RunbookDraft.GetContent(AutomationAccount, runbookName);
return runbookContentStream;
}
public void DeleteRunbook(string runbookName)
{
- AutomationClient.Runbook.Delete(ResourceGroup, AutomationAccount, runbookName);
+ AutomationClient.Runbook.Delete(AutomationAccount, runbookName);
}
#endregion
@@ -283,7 +285,7 @@ public void DeleteRunbook(string runbookName)
public void UpdateVariable(Variable variable)
{
- AutomationClient.Variable.Update(ResourceGroup, AutomationAccount,
+ AutomationClient.Variable.Update(AutomationAccount,
variable.Name, new VariableUpdateParameters
{
Value = variable.Value,
@@ -294,7 +296,7 @@ public void UpdateVariable(Variable variable)
public void DeleteVariable(string variableName)
{
- AutomationClient.Variable.Delete(ResourceGroup, AutomationAccount, variableName);
+ AutomationClient.Variable.Delete(AutomationAccount, variableName);
}
#endregion
@@ -303,7 +305,7 @@ public void DeleteVariable(string variableName)
public void UpdateSchedule(Schedule schedule)
{
- AutomationClient.Schedule.Update(ResourceGroup, AutomationAccount, schedule.Name,
+ AutomationClient.Schedule.Update(AutomationAccount, schedule.Name,
new ScheduleUpdateParameters
{
Name = schedule.Name,
@@ -314,13 +316,13 @@ public void UpdateSchedule(Schedule schedule)
public Schedule GetSchedule(string scheduleName)
{
- var schedule = AutomationClient.Schedule.Get(ResourceGroup, AutomationAccount, scheduleName);
+ var schedule = AutomationClient.Schedule.Get(AutomationAccount, scheduleName);
return schedule;
}
public void DeleteSchedule(string scheduleName)
{
- AutomationClient.Schedule.Delete(ResourceGroup, AutomationAccount, scheduleName);
+ AutomationClient.Schedule.Delete(AutomationAccount, scheduleName);
}
#endregion
@@ -329,19 +331,19 @@ public void DeleteSchedule(string scheduleName)
public Credential GetCredential(string credentialName)
{
- return AutomationClient.Credential.Get(ResourceGroup, AutomationAccount, credentialName);
+ return AutomationClient.Credential.Get(AutomationAccount, credentialName);
}
public IPage GetCredentials()
{
IPage credentials =
- AutomationClient.Credential.ListByAutomationAccount(ResourceGroup, AutomationAccount);
+ AutomationClient.Credential.ListByAutomationAccount(AutomationAccount);
return credentials;
}
public void UpdateCredential(Credential credential, string password = null, string userName = null)
{
- AutomationClient.Credential.Update(ResourceGroup, AutomationAccount, credential.Name,
+ AutomationClient.Credential.Update(AutomationAccount, credential.Name,
new CredentialUpdateParameters
{
Name = userName,
@@ -353,7 +355,7 @@ public void UpdateCredential(Credential credential, string password = null, stri
public void CleanUpCredentials()
{
- var credentials = AutomationClient.Credential.ListByAutomationAccount(ResourceGroup, AutomationAccount);
+ var credentials = AutomationClient.Credential.ListByAutomationAccount(AutomationAccount);
foreach (var cr in credentials)
{
@@ -363,7 +365,7 @@ public void CleanUpCredentials()
public Variable CreateVariable(string variableName, object value, string description = null)
{
- var variable = AutomationClient.Variable.CreateOrUpdate(ResourceGroup, AutomationAccount, variableName,
+ var variable = AutomationClient.Variable.CreateOrUpdate(AutomationAccount, variableName,
new VariableCreateOrUpdateParameters
{
Name = variableName,
@@ -376,7 +378,7 @@ public Variable CreateVariable(string variableName, object value, string descrip
public void DeleteCredential(string credentialName)
{
- AutomationClient.Credential.Delete(ResourceGroup, AutomationAccount, credentialName);
+ AutomationClient.Credential.Delete(AutomationAccount, credentialName);
}
#endregion
@@ -385,24 +387,24 @@ public void DeleteCredential(string credentialName)
public Variable GetVariable(string variableName)
{
- var variable = AutomationClient.Variable.Get(ResourceGroup, AutomationAccount, variableName);
+ var variable = AutomationClient.Variable.Get(AutomationAccount, variableName);
return variable;
}
public IPage GetVariables()
{
- var variables = AutomationClient.Variable.ListByAutomationAccount(ResourceGroup, AutomationAccount);
+ var variables = AutomationClient.Variable.ListByAutomationAccount(AutomationAccount);
return variables;
}
public void DeleteWebhook(string webhookName)
{
- AutomationClient.Webhook.Delete(ResourceGroup, AutomationAccount, webhookName);
+ AutomationClient.Webhook.Delete(AutomationAccount, webhookName);
}
public void UpdateWebhook(Webhook webhook)
{
- AutomationClient.Webhook.Update(ResourceGroup, AutomationAccount, webhook.Name, new WebhookUpdateParameters
+ AutomationClient.Webhook.Update(AutomationAccount, webhook.Name, new WebhookUpdateParameters
{
Name = webhook.Name,
IsEnabled = webhook.IsEnabled
@@ -421,13 +423,13 @@ public IPage GetWebhooks(string runbookName = null)
{
filter = string.Join(null, odataFilter);
}
- var webhooks = AutomationClient.Webhook.ListByAutomationAccount(ResourceGroup, AutomationAccount, filter);
+ var webhooks = AutomationClient.Webhook.ListByAutomationAccount(AutomationAccount, filter);
return webhooks;
}
public Webhook GetWebhook(string webhookName)
{
- var webhook = AutomationClient.Webhook.Get(ResourceGroup, AutomationAccount, webhookName);
+ var webhook = AutomationClient.Webhook.Get(AutomationAccount, webhookName);
return webhook;
}
@@ -439,7 +441,7 @@ public DscConfiguration CreateDscConfiguration(string configName, string configC
string description = null, string contentHashValue = null,
string contentHashAlgorithm = "sha256", string contentType = null)
{
- return AutomationClient.DscConfiguration.CreateOrUpdate(ResourceGroup, AutomationAccount, configName,
+ return AutomationClient.DscConfiguration.CreateOrUpdate(AutomationAccount, configName,
new DscConfigurationCreateOrUpdateParameters
{
Location = Location,
@@ -460,26 +462,26 @@ public DscConfiguration CreateDscConfiguration(string configName, string configC
public DscConfiguration GetDscConfiguration(string configName)
{
- return AutomationClient.DscConfiguration.Get(ResourceGroup, AutomationAccount, configName);
+ return AutomationClient.DscConfiguration.Get(AutomationAccount, configName);
}
public IPage GetDscConfigurations()
{
var dscConfigurations =
- AutomationClient.DscConfiguration.ListByAutomationAccount(ResourceGroup, AutomationAccount);
+ AutomationClient.DscConfiguration.ListByAutomationAccount(AutomationAccount);
return dscConfigurations;
}
public void DeleteDscConfiguration(string configName)
{
- AutomationClient.DscConfiguration.Delete(ResourceGroup, AutomationAccount, configName);
+ AutomationClient.DscConfiguration.Delete(AutomationAccount, configName);
}
public void UpdateDscConfiguration(DscConfiguration configuration, string configContent,
string description = null, string contentHashValue = null,
string contentHashAlgorithm = "sha256", string contentType = null)
{
- AutomationClient.DscConfiguration.CreateOrUpdate(ResourceGroup, AutomationAccount, configuration.Name,
+ AutomationClient.DscConfiguration.CreateOrUpdate(AutomationAccount, configuration.Name,
new DscConfigurationCreateOrUpdateParameters
{
Description = configuration.Description,
@@ -506,7 +508,7 @@ public DscNodeConfiguration CreateDscNodeConfiguration(string nodeConfigurationN
string nodeConfigurationContent, string contentHashValue, string contentHashAlgorithm, string contentType,
string contentVersion)
{
- return AutomationClient.DscNodeConfiguration.CreateOrUpdate(ResourceGroup, AutomationAccount,
+ return AutomationClient.DscNodeConfiguration.CreateOrUpdate(AutomationAccount,
nodeConfigurationName, new DscNodeConfigurationCreateOrUpdateParameters
{
Name = nodeConfigurationName,
@@ -527,13 +529,13 @@ public DscNodeConfiguration CreateDscNodeConfiguration(string nodeConfigurationN
public DscNodeConfiguration GetDscNodeConfiguration(string nodeConfigName)
{
- return AutomationClient.DscNodeConfiguration.Get(ResourceGroup, AutomationAccount, nodeConfigName);
+ return AutomationClient.DscNodeConfiguration.Get(AutomationAccount, nodeConfigName);
}
public void UpdateDscNodeConfiguration(DscNodeConfiguration nodeConfig, string configContent,
string contentHashValue, string contentHashAlgorithm, string contentType, string contentVersion)
{
- AutomationClient.DscNodeConfiguration.CreateOrUpdate(ResourceGroup, AutomationAccount,
+ AutomationClient.DscNodeConfiguration.CreateOrUpdate(AutomationAccount,
nodeConfig.Name, new DscNodeConfigurationCreateOrUpdateParameters
{
Name = nodeConfig.Name,
@@ -554,12 +556,12 @@ public void UpdateDscNodeConfiguration(DscNodeConfiguration nodeConfig, string c
public void DeleteDscNodeConfiguration(string configName)
{
- AutomationClient.DscNodeConfiguration.Delete(ResourceGroup, AutomationAccount, configName);
+ AutomationClient.DscNodeConfiguration.Delete(AutomationAccount, configName);
}
public IPage GetDscNodeConfigurations()
{
- return AutomationClient.DscNodeConfiguration.ListByAutomationAccount(ResourceGroup, AutomationAccount);
+ return AutomationClient.DscNodeConfiguration.ListByAutomationAccount(AutomationAccount);
}
#endregion
diff --git a/src/SDKs/Automation/AzSdk.RP.props b/src/SDKs/Automation/AzSdk.RP.props
new file mode 100644
index 000000000000..64fb487883be
--- /dev/null
+++ b/src/SDKs/Automation/AzSdk.RP.props
@@ -0,0 +1,7 @@
+
+
+
+ Automation_2015-10-31;Automation_2017-05-15-preview;
+ $(PackageTags);$(CommonTags);$(AzureApiTag);
+
+
\ No newline at end of file
diff --git a/src/SDKs/Automation/Management.Automation/Customization/SoftwareUpdateConfigurationMachineRunsOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Customization/SoftwareUpdateConfigurationMachineRunsOperationsExtensions.cs
new file mode 100644
index 000000000000..d9e4b767d781
--- /dev/null
+++ b/src/SDKs/Automation/Management.Automation/Customization/SoftwareUpdateConfigurationMachineRunsOperationsExtensions.cs
@@ -0,0 +1,173 @@
+namespace Microsoft.Azure.Management.Automation
+{
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ using Microsoft.Azure.Management.Automation.Models;
+ using System;
+
+ ///
+ /// Extension methods for SoftwareUpdateConfigurationRunsOperations.
+ ///
+ public static partial class SoftwareUpdateConfigurationMachineRunsOperationsExtensions
+ {
+ private const string StatusProperty = "status";
+ private const string CorrelationIdProperty = "correlationId";
+ private const string TargetComputerProperty = "targetComputer";
+ private const string FilterFormatEqual = "properties/{0} eq {1}";
+ private const string FilterFormatStringEqual = "properties/{0} eq '{1}'";
+
+ #region status filtering
+ ///
+ /// Return list of software update configuration machine runs with the given the status
+ ///
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// status of the machine run
+ ///
+ ///
+ /// number of entries you skip before returning results
+ ///
+ ///
+ /// Maximum number of entries returned in the results collection
+ ///
+ public static SoftwareUpdateConfigurationMachineRunListResult ListByStatus(this ISoftwareUpdateConfigurationMachineRunsOperations operations, string status, string skip = default(string), string top = default(string))
+ {
+ return operations.ListByStatusAsync(status, skip, top).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Return list of software update configuration machine runs with the given the status
+ ///
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Status of the machine run
+ ///
+ ///
+ /// number of entries you skip before returning results
+ ///
+ ///
+ /// Maximum number of entries returned in the results collection
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task ListByStatusAsync(this ISoftwareUpdateConfigurationMachineRunsOperations operations, string status, string skip = default(string), string top = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ var filter = string.Format(FilterFormatStringEqual, StatusProperty, status);
+ using (var _result = await operations.ListWithHttpMessagesAsync(filter, skip, top, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+ #endregion
+
+ #region correlationId filtering
+ ///
+ /// Return list of software update configuration machine runs corresponding to the software update configuration run with the given correlation id
+ ///
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Id of the parent software update configuration run
+ ///
+ ///
+ /// number of entries you skip before returning results
+ ///
+ ///
+ /// Maximum number of entries returned in the results collection
+ ///
+ public static SoftwareUpdateConfigurationMachineRunListResult ListByCorrelationId(this ISoftwareUpdateConfigurationMachineRunsOperations operations, Guid correlationId, string skip = default(string), string top = default(string))
+ {
+ return operations.ListByCorrelationIdAsync(correlationId, skip, top).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Return list of software update configuration machine runs corresponding to the software update configuration run with the given correlation id
+ ///
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Id of the parent software update configuration run
+ ///
+ ///
+ /// number of entries you skip before returning results
+ ///
+ ///
+ /// Maximum number of entries returned in the results collection
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task ListByCorrelationIdAsync(this ISoftwareUpdateConfigurationMachineRunsOperations operations, Guid correlationId, string skip = default(string), string top = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ var filter = string.Format(FilterFormatEqual, CorrelationIdProperty, correlationId);
+ using (var _result = await operations.ListWithHttpMessagesAsync(filter, skip, top, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+ #endregion
+
+ #region targetComputer filtering
+ ///
+ /// Return list of software update configuration machine runs targeting the given computer
+ ///
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The computer osType targeted by this machine run
+ ///
+ ///
+ /// number of entries you skip before returning results
+ ///
+ ///
+ /// Maximum number of entries returned in the results collection
+ ///
+ public static SoftwareUpdateConfigurationMachineRunListResult ListByTargetComputer(this ISoftwareUpdateConfigurationMachineRunsOperations operations, string osType, string skip = default(string), string top = default(string))
+ {
+ return operations.ListByTargetComputerAsync(osType, skip, top).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Return list of software update configuration machine runs targeting the given computer
+ ///
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The computer targeted by this machine run
+ ///
+ ///
+ /// number of entries you skip before returning results
+ ///
+ ///
+ /// Maximum number of entries returned in the results collection
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task ListByTargetComputerAsync(this ISoftwareUpdateConfigurationMachineRunsOperations operations, string targetComputer, string skip = default(string), string top = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ var filter = string.Format(FilterFormatStringEqual, TargetComputerProperty, targetComputer);
+ using (var _result = await operations.ListWithHttpMessagesAsync(filter, skip, top, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+ #endregion
+ }
+}
diff --git a/src/SDKs/Automation/Management.Automation/Customization/SoftwareUpdateConfigurationRunsOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Customization/SoftwareUpdateConfigurationRunsOperationsExtensions.cs
new file mode 100644
index 000000000000..b05f7f953d84
--- /dev/null
+++ b/src/SDKs/Automation/Management.Automation/Customization/SoftwareUpdateConfigurationRunsOperationsExtensions.cs
@@ -0,0 +1,225 @@
+namespace Microsoft.Azure.Management.Automation
+{
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ using Microsoft.Azure.Management.Automation.Models;
+ using System;
+
+ ///
+ /// Extension methods for SoftwareUpdateConfigurationRunsOperations.
+ ///
+ public static partial class SoftwareUpdateConfigurationRunsOperationsExtensions
+ {
+ private const string ConfigurationNameProperty = "softwareUpdateConfiguration/name";
+ private const string OsTypeProperty = "osType";
+ private const string StatusProperty = "status";
+ private const string StartTimeProperty = "startTime";
+ private const string FilterFormatStringEqual = "properties/{0} eq '{1}'";
+ private const string FilterFormatGreaterEqual = "properties/{0} ge {1}"; // No commas in {1} is intentional!
+
+ #region configurationName filtering
+ ///
+ /// Return list of software update configuration runs triggered by the software update configuration with the given name
+ ///
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the software update configuration triggered this run
+ ///
+ ///
+ /// number of entries you skip before returning results
+ ///
+ ///
+ /// Maximum number of entries returned in the results collection
+ ///
+ public static SoftwareUpdateConfigurationRunListResult ListByConfigurationName(this ISoftwareUpdateConfigurationRunsOperations operations, string configurationName, string skip = default(string), string top = default(string))
+ {
+ return operations.ListByConfigurationNameAsync(configurationName, skip, top).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Return list of software update configuration runs triggered by the software update configuration with the given name
+ ///
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the software update configuration triggered this run
+ ///
+ ///
+ /// number of entries you skip before returning results
+ ///
+ ///
+ /// Maximum number of entries returned in the results collection
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task ListByConfigurationNameAsync(this ISoftwareUpdateConfigurationRunsOperations operations, string configurationName, string skip = default(string), string top = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ var filter = string.Format(FilterFormatStringEqual, ConfigurationNameProperty, configurationName);
+ using (var _result = await operations.ListWithHttpMessagesAsync(filter, skip, top, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+ #endregion
+
+ #region osType filtering
+ ///
+ /// Return list of software update configuration runs triggered by the software update configuration with the given name
+ ///
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Operating system type
+ ///
+ ///
+ /// number of entries you skip before returning results
+ ///
+ ///
+ /// Maximum number of entries returned in the results collection
+ ///
+ public static SoftwareUpdateConfigurationRunListResult ListByOsType(this ISoftwareUpdateConfigurationRunsOperations operations, string osType, string skip = default(string), string top = default(string))
+ {
+ return operations.ListByOsTypeAsync(osType, skip, top).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Return list of software update configuration runs triggered by the software update configuration with the given name
+ ///
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Operating system type
+ ///
+ ///
+ /// number of entries you skip before returning results
+ ///
+ ///
+ /// Maximum number of entries returned in the results collection
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task ListByOsTypeAsync(this ISoftwareUpdateConfigurationRunsOperations operations, string osType, string skip = default(string), string top = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ var filter = string.Format(FilterFormatStringEqual, OsTypeProperty, osType);
+ using (var _result = await operations.ListWithHttpMessagesAsync(filter, skip, top, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+ #endregion
+
+ #region status filtering
+ ///
+ /// Return list of software update configuration runs triggered by the software update configuration with the given name
+ ///
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// status of the run
+ ///
+ ///
+ /// number of entries you skip before returning results
+ ///
+ ///
+ /// Maximum number of entries returned in the results collection
+ ///
+ public static SoftwareUpdateConfigurationRunListResult ListByStatus(this ISoftwareUpdateConfigurationRunsOperations operations, string status, string skip = default(string), string top = default(string))
+ {
+ return operations.ListByStatusAsync(status, skip, top).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Return list of software update configuration runs triggered by the software update configuration with the given name
+ ///
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Status of the run
+ ///
+ ///
+ /// number of entries you skip before returning results
+ ///
+ ///
+ /// Maximum number of entries returned in the results collection
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task ListByStatusAsync(this ISoftwareUpdateConfigurationRunsOperations operations, string status, string skip = default(string), string top = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ var filter = string.Format(FilterFormatStringEqual, StatusProperty, status);
+ using (var _result = await operations.ListWithHttpMessagesAsync(filter, skip, top, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+ #endregion
+
+ #region startTime filtering
+ ///
+ /// Return list of software update configuration runs started at or after the given time
+ ///
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// start time of the run
+ ///
+ ///
+ /// number of entries you skip before returning results
+ ///
+ ///
+ /// Maximum number of entries returned in the results collection
+ ///
+ public static SoftwareUpdateConfigurationRunListResult ListByStartTime(this ISoftwareUpdateConfigurationRunsOperations operations, DateTime startTime, string skip = default(string), string top = default(string))
+ {
+ return operations.ListByStartTimeAsync(startTime, skip, top).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Return list of software update configuration runs started at or after the given time
+ ///
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Start time
+ ///
+ ///
+ /// number of entries you skip before returning results
+ ///
+ ///
+ /// Maximum number of entries returned in the results collection
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task ListByStartTimeAsync(this ISoftwareUpdateConfigurationRunsOperations operations, DateTime startTime, string skip = default(string), string top = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ var filter = string.Format(FilterFormatGreaterEqual, StartTimeProperty, startTime.ToString("o"));
+ using (var _result = await operations.ListWithHttpMessagesAsync(filter, skip, top, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+ #endregion
+ }
+}
diff --git a/src/SDKs/Automation/Management.Automation/Customization/SoftwareUpdateConfigurationsOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Customization/SoftwareUpdateConfigurationsOperationsExtensions.cs
new file mode 100644
index 000000000000..fe4fe1b9a018
--- /dev/null
+++ b/src/SDKs/Automation/Management.Automation/Customization/SoftwareUpdateConfigurationsOperationsExtensions.cs
@@ -0,0 +1,60 @@
+namespace Microsoft.Azure.Management.Automation
+{
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ using Microsoft.Azure.Management.Automation.Models;
+ using System;
+
+ ///
+ /// Extension methods for SoftwareUpdateConfigurationRunsOperations.
+ ///
+ public static partial class SoftwareUpdateConfigurationsOperationsExtensions
+ {
+ private const string AzureVirtualMachinesProperty = "updateConfiguration/azureVirtualMachines";
+ private const string LambdaFilterFormat = "properties/{0}/any(m: m eq '{1}')";
+
+ ///
+ /// Return list of software update configurations targetting the given virtual machine
+ ///
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Azure resource manager Id of the virtual machine
+ ///
+ public static SoftwareUpdateConfigurationListResult ListByAzureVirtualMachine(this ISoftwareUpdateConfigurationsOperations operations, string virtualMachineId)
+ {
+ return operations.ListByAzureVirtualMachineAsync(virtualMachineId).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Return list of software update configurations targetting the given virtual machine
+ ///
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Azure resource manager Id of the virtual machine
+ ///
+ ///
+ /// number of entries you skip before returning results
+ ///
+ ///
+ /// Maximum number of entries returned in the results collection
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task ListByAzureVirtualMachineAsync(this ISoftwareUpdateConfigurationsOperations operations, string virtualMachineId, string skip = default(string), string top = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ var filter = string.Format(LambdaFilterFormat, AzureVirtualMachinesProperty, virtualMachineId);
+ using (var _result = await operations.ListWithHttpMessagesAsync(filter, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+ }
+}
diff --git a/src/SDKs/Automation/Management.Automation/Generated/ActivityOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/ActivityOperations.cs
index b9a2c59e0f01..24dd0e968dc9 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/ActivityOperations.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/ActivityOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -55,9 +55,6 @@ internal ActivityOperations(AutomationClient client)
/// name.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -88,17 +85,17 @@ internal ActivityOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string moduleName, string activityName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetWithHttpMessagesAsync(string automationAccountName, string moduleName, string activityName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -125,7 +122,6 @@ internal ActivityOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("moduleName", moduleName);
tracingParameters.Add("activityName", activityName);
@@ -136,7 +132,7 @@ internal ActivityOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/activities/{activityName}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{moduleName}", System.Uri.EscapeDataString(moduleName));
_url = _url.Replace("{activityName}", System.Uri.EscapeDataString(activityName));
@@ -270,9 +266,6 @@ internal ActivityOperations(AutomationClient client)
/// Retrieve a list of activities in the module identified by module name.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -300,17 +293,17 @@ internal ActivityOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListByModuleWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string moduleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListByModuleWithHttpMessagesAsync(string automationAccountName, string moduleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -333,7 +326,6 @@ internal ActivityOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("moduleName", moduleName);
tracingParameters.Add("apiVersion", apiVersion);
@@ -343,7 +335,7 @@ internal ActivityOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/activities").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{moduleName}", System.Uri.EscapeDataString(moduleName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
diff --git a/src/SDKs/Automation/Management.Automation/Generated/ActivityOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/ActivityOperationsExtensions.cs
index 025383862f8b..f05b9d82236f 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/ActivityOperationsExtensions.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/ActivityOperationsExtensions.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -29,9 +29,6 @@ public static partial class ActivityOperationsExtensions
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -41,9 +38,9 @@ public static partial class ActivityOperationsExtensions
///
/// The name of activity.
///
- public static Activity Get(this IActivityOperations operations, string resourceGroupName, string automationAccountName, string moduleName, string activityName)
+ public static Activity Get(this IActivityOperations operations, string automationAccountName, string moduleName, string activityName)
{
- return operations.GetAsync(resourceGroupName, automationAccountName, moduleName, activityName).GetAwaiter().GetResult();
+ return operations.GetAsync(automationAccountName, moduleName, activityName).GetAwaiter().GetResult();
}
///
@@ -54,9 +51,6 @@ public static Activity Get(this IActivityOperations operations, string resourceG
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -69,9 +63,9 @@ public static Activity Get(this IActivityOperations operations, string resourceG
///
/// The cancellation token.
///
- public static async Task GetAsync(this IActivityOperations operations, string resourceGroupName, string automationAccountName, string moduleName, string activityName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetAsync(this IActivityOperations operations, string automationAccountName, string moduleName, string activityName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, moduleName, activityName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, moduleName, activityName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -84,18 +78,15 @@ public static Activity Get(this IActivityOperations operations, string resourceG
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The name of module.
///
- public static IPage ListByModule(this IActivityOperations operations, string resourceGroupName, string automationAccountName, string moduleName)
+ public static IPage ListByModule(this IActivityOperations operations, string automationAccountName, string moduleName)
{
- return operations.ListByModuleAsync(resourceGroupName, automationAccountName, moduleName).GetAwaiter().GetResult();
+ return operations.ListByModuleAsync(automationAccountName, moduleName).GetAwaiter().GetResult();
}
///
@@ -105,9 +96,6 @@ public static IPage ListByModule(this IActivityOperations operations,
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -117,9 +105,9 @@ public static IPage ListByModule(this IActivityOperations operations,
///
/// The cancellation token.
///
- public static async Task> ListByModuleAsync(this IActivityOperations operations, string resourceGroupName, string automationAccountName, string moduleName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListByModuleAsync(this IActivityOperations operations, string automationAccountName, string moduleName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListByModuleWithHttpMessagesAsync(resourceGroupName, automationAccountName, moduleName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListByModuleWithHttpMessagesAsync(automationAccountName, moduleName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
diff --git a/src/SDKs/Automation/Management.Automation/Generated/AgentRegistrationInformationOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/AgentRegistrationInformationOperations.cs
index 04569818506e..5689dc51325e 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/AgentRegistrationInformationOperations.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/AgentRegistrationInformationOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -54,9 +54,6 @@ internal AgentRegistrationInformationOperations(AutomationClient client)
/// Retrieve the automation agent registration information.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -81,17 +78,17 @@ internal AgentRegistrationInformationOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -110,7 +107,6 @@ internal AgentRegistrationInformationOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
@@ -119,7 +115,7 @@ internal AgentRegistrationInformationOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/agentRegistrationInformation").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
@@ -251,9 +247,6 @@ internal AgentRegistrationInformationOperations(AutomationClient client)
/// Regenerate a primary or secondary agent registration key
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -281,17 +274,17 @@ internal AgentRegistrationInformationOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> RegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, AgentRegistrationRegenerateKeyParameter parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> RegenerateKeyWithHttpMessagesAsync(string automationAccountName, AgentRegistrationRegenerateKeyParameter parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -318,7 +311,6 @@ internal AgentRegistrationInformationOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("parameters", parameters);
tracingParameters.Add("apiVersion", apiVersion);
@@ -328,7 +320,7 @@ internal AgentRegistrationInformationOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/agentRegistrationInformation/regenerateKey").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
diff --git a/src/SDKs/Automation/Management.Automation/Generated/AgentRegistrationInformationOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/AgentRegistrationInformationOperationsExtensions.cs
index 86cf5f87cfef..7ab995debfca 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/AgentRegistrationInformationOperationsExtensions.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/AgentRegistrationInformationOperationsExtensions.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -28,15 +28,12 @@ public static partial class AgentRegistrationInformationOperationsExtensions
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
- public static AgentRegistration Get(this IAgentRegistrationInformationOperations operations, string resourceGroupName, string automationAccountName)
+ public static AgentRegistration Get(this IAgentRegistrationInformationOperations operations, string automationAccountName)
{
- return operations.GetAsync(resourceGroupName, automationAccountName).GetAwaiter().GetResult();
+ return operations.GetAsync(automationAccountName).GetAwaiter().GetResult();
}
///
@@ -46,18 +43,15 @@ public static AgentRegistration Get(this IAgentRegistrationInformationOperations
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The cancellation token.
///
- public static async Task GetAsync(this IAgentRegistrationInformationOperations operations, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetAsync(this IAgentRegistrationInformationOperations operations, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -70,18 +64,15 @@ public static AgentRegistration Get(this IAgentRegistrationInformationOperations
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The name of the agent registration key to be regenerated
///
- public static AgentRegistration RegenerateKey(this IAgentRegistrationInformationOperations operations, string resourceGroupName, string automationAccountName, AgentRegistrationRegenerateKeyParameter parameters)
+ public static AgentRegistration RegenerateKey(this IAgentRegistrationInformationOperations operations, string automationAccountName, AgentRegistrationRegenerateKeyParameter parameters)
{
- return operations.RegenerateKeyAsync(resourceGroupName, automationAccountName, parameters).GetAwaiter().GetResult();
+ return operations.RegenerateKeyAsync(automationAccountName, parameters).GetAwaiter().GetResult();
}
///
@@ -91,9 +82,6 @@ public static AgentRegistration RegenerateKey(this IAgentRegistrationInformation
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -103,9 +91,9 @@ public static AgentRegistration RegenerateKey(this IAgentRegistrationInformation
///
/// The cancellation token.
///
- public static async Task RegenerateKeyAsync(this IAgentRegistrationInformationOperations operations, string resourceGroupName, string automationAccountName, AgentRegistrationRegenerateKeyParameter parameters, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task RegenerateKeyAsync(this IAgentRegistrationInformationOperations operations, string automationAccountName, AgentRegistrationRegenerateKeyParameter parameters, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.RegenerateKeyWithHttpMessagesAsync(resourceGroupName, automationAccountName, parameters, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.RegenerateKeyWithHttpMessagesAsync(automationAccountName, parameters, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
diff --git a/src/SDKs/Automation/Management.Automation/Generated/AutomationAccountOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/AutomationAccountOperations.cs
index 9b84020c82a5..3ecc457a5de6 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/AutomationAccountOperations.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/AutomationAccountOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -414,7 +414,7 @@ internal AutomationAccountOperations(AutomationClient client)
System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 201 && (int)_statusCode != 200)
+ if ((int)_statusCode != 200 && (int)_statusCode != 201)
{
var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -452,7 +452,7 @@ internal AutomationAccountOperations(AutomationClient client)
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
// Deserialize Response
- if ((int)_statusCode == 201)
+ if ((int)_statusCode == 200)
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
@@ -470,7 +470,7 @@ internal AutomationAccountOperations(AutomationClient client)
}
}
// Deserialize Response
- if ((int)_statusCode == 200)
+ if ((int)_statusCode == 201)
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
diff --git a/src/SDKs/Automation/Management.Automation/Generated/AutomationAccountOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/AutomationAccountOperationsExtensions.cs
index 680196d18034..2753f82b8ecc 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/AutomationAccountOperationsExtensions.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/AutomationAccountOperationsExtensions.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
diff --git a/src/SDKs/Automation/Management.Automation/Generated/AutomationClient.cs b/src/SDKs/Automation/Management.Automation/Generated/AutomationClient.cs
index d157eca72ec5..067845330cbb 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/AutomationClient.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/AutomationClient.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Microsoft.Rest.Serialization;
@@ -54,39 +54,19 @@ public partial class AutomationClient : ServiceClient, IAutoma
public string SubscriptionId { get; set; }
///
- /// Identifies this specific client request.
- ///
- public string ClientRequestId { get; set; }
-
- ///
- /// The name of the automation account.
- ///
- public System.Guid AutomationAccountName { get; set; }
-
- ///
- /// The name of the resource group within user's subscription.
+ /// The resource group name.
///
- public string ResourceGroupName1 { get; set; }
+ public string ResourceGroupName { get; set; }
///
- /// subscription id for tenant issuing the request.
- ///
- public System.Guid SubscriptionId1 { get; set; }
-
- ///
- /// The name of the software update configuration to be created.
- ///
- public string SoftwareUpdateConfigurationName { get; set; }
-
- ///
- /// The Id of the software update configuration run.
+ /// Identifies this specific client request.
///
- public System.Guid SoftwareUpdateConfigurationRunId { get; set; }
+ public string ClientRequestId { get; set; }
///
- /// The Id of the software update configuration machine run.
+ /// The name of the automation account.
///
- public System.Guid SoftwareUpdateConfigurationMachineRunId { get; set; }
+ public string AutomationAccountName { get; set; }
///
/// Gets or sets the preferred language for the response.
@@ -498,7 +478,7 @@ private void Initialize()
SoftwareUpdateConfigurations = new SoftwareUpdateConfigurationsOperations(this);
SoftwareUpdateConfigurationRuns = new SoftwareUpdateConfigurationRunsOperations(this);
SoftwareUpdateConfigurationMachineRuns = new SoftwareUpdateConfigurationMachineRunsOperations(this);
- BaseUri = new System.Uri("https://management.azure.com/");
+ BaseUri = new System.Uri("https://management.azure.com");
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
GenerateClientRequestId = true;
@@ -528,8 +508,6 @@ private void Initialize()
new Iso8601TimeSpanConverter()
}
};
- SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("operatingSystem"));
- DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("operatingSystem"));
CustomInitialize();
DeserializationSettings.Converters.Add(new TransformationJsonConverter());
DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
diff --git a/src/SDKs/Automation/Management.Automation/Generated/CertificateOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/CertificateOperations.cs
index f1c1b7224267..0fbfc1f1fd33 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/CertificateOperations.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/CertificateOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -54,9 +54,6 @@ internal CertificateOperations(AutomationClient client)
/// Delete the certificate.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -81,17 +78,17 @@ internal CertificateOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string certificateName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task DeleteWithHttpMessagesAsync(string automationAccountName, string certificateName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -114,7 +111,6 @@ internal CertificateOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("certificateName", certificateName);
tracingParameters.Add("apiVersion", apiVersion);
@@ -124,7 +120,7 @@ internal CertificateOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{certificateName}", System.Uri.EscapeDataString(certificateName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -239,9 +235,6 @@ internal CertificateOperations(AutomationClient client)
/// Retrieve the certificate identified by certificate name.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -269,17 +262,17 @@ internal CertificateOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string certificateName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetWithHttpMessagesAsync(string automationAccountName, string certificateName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -302,7 +295,6 @@ internal CertificateOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("certificateName", certificateName);
tracingParameters.Add("apiVersion", apiVersion);
@@ -312,7 +304,7 @@ internal CertificateOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{certificateName}", System.Uri.EscapeDataString(certificateName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -445,9 +437,6 @@ internal CertificateOperations(AutomationClient client)
/// Create a certificate.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -478,17 +467,17 @@ internal CertificateOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string certificateName, CertificateCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string certificateName, CertificateCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -519,7 +508,6 @@ internal CertificateOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("certificateName", certificateName);
tracingParameters.Add("parameters", parameters);
@@ -530,7 +518,7 @@ internal CertificateOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{certificateName}", System.Uri.EscapeDataString(certificateName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -603,7 +591,7 @@ internal CertificateOperations(AutomationClient client)
System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 201 && (int)_statusCode != 200)
+ if ((int)_statusCode != 200 && (int)_statusCode != 201)
{
var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -641,7 +629,7 @@ internal CertificateOperations(AutomationClient client)
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
// Deserialize Response
- if ((int)_statusCode == 201)
+ if ((int)_statusCode == 200)
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
@@ -659,7 +647,7 @@ internal CertificateOperations(AutomationClient client)
}
}
// Deserialize Response
- if ((int)_statusCode == 200)
+ if ((int)_statusCode == 201)
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
@@ -687,9 +675,6 @@ internal CertificateOperations(AutomationClient client)
/// Update a certificate.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -720,17 +705,17 @@ internal CertificateOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string certificateName, CertificateUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> UpdateWithHttpMessagesAsync(string automationAccountName, string certificateName, CertificateUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -757,7 +742,6 @@ internal CertificateOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("certificateName", certificateName);
tracingParameters.Add("parameters", parameters);
@@ -768,7 +752,7 @@ internal CertificateOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{certificateName}", System.Uri.EscapeDataString(certificateName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -907,9 +891,6 @@ internal CertificateOperations(AutomationClient client)
/// Retrieve a list of certificates.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -934,17 +915,17 @@ internal CertificateOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -963,7 +944,6 @@ internal CertificateOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
@@ -972,7 +952,7 @@ internal CertificateOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
diff --git a/src/SDKs/Automation/Management.Automation/Generated/CertificateOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/CertificateOperationsExtensions.cs
index 1fc8c9d3eb7c..3f4fda2b7c75 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/CertificateOperationsExtensions.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/CertificateOperationsExtensions.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -28,18 +28,15 @@ public static partial class CertificateOperationsExtensions
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The name of certificate.
///
- public static void Delete(this ICertificateOperations operations, string resourceGroupName, string automationAccountName, string certificateName)
+ public static void Delete(this ICertificateOperations operations, string automationAccountName, string certificateName)
{
- operations.DeleteAsync(resourceGroupName, automationAccountName, certificateName).GetAwaiter().GetResult();
+ operations.DeleteAsync(automationAccountName, certificateName).GetAwaiter().GetResult();
}
///
@@ -49,9 +46,6 @@ public static void Delete(this ICertificateOperations operations, string resourc
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -61,9 +55,9 @@ public static void Delete(this ICertificateOperations operations, string resourc
///
/// The cancellation token.
///
- public static async Task DeleteAsync(this ICertificateOperations operations, string resourceGroupName, string automationAccountName, string certificateName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task DeleteAsync(this ICertificateOperations operations, string automationAccountName, string certificateName, CancellationToken cancellationToken = default(CancellationToken))
{
- (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, certificateName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ (await operations.DeleteWithHttpMessagesAsync(automationAccountName, certificateName, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
///
@@ -73,18 +67,15 @@ public static void Delete(this ICertificateOperations operations, string resourc
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The name of certificate.
///
- public static Certificate Get(this ICertificateOperations operations, string resourceGroupName, string automationAccountName, string certificateName)
+ public static Certificate Get(this ICertificateOperations operations, string automationAccountName, string certificateName)
{
- return operations.GetAsync(resourceGroupName, automationAccountName, certificateName).GetAwaiter().GetResult();
+ return operations.GetAsync(automationAccountName, certificateName).GetAwaiter().GetResult();
}
///
@@ -94,9 +85,6 @@ public static Certificate Get(this ICertificateOperations operations, string res
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -106,9 +94,9 @@ public static Certificate Get(this ICertificateOperations operations, string res
///
/// The cancellation token.
///
- public static async Task GetAsync(this ICertificateOperations operations, string resourceGroupName, string automationAccountName, string certificateName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetAsync(this ICertificateOperations operations, string automationAccountName, string certificateName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, certificateName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, certificateName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -121,9 +109,6 @@ public static Certificate Get(this ICertificateOperations operations, string res
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -133,9 +118,9 @@ public static Certificate Get(this ICertificateOperations operations, string res
///
/// The parameters supplied to the create or update certificate operation.
///
- public static Certificate CreateOrUpdate(this ICertificateOperations operations, string resourceGroupName, string automationAccountName, string certificateName, CertificateCreateOrUpdateParameters parameters)
+ public static Certificate CreateOrUpdate(this ICertificateOperations operations, string automationAccountName, string certificateName, CertificateCreateOrUpdateParameters parameters)
{
- return operations.CreateOrUpdateAsync(resourceGroupName, automationAccountName, certificateName, parameters).GetAwaiter().GetResult();
+ return operations.CreateOrUpdateAsync(automationAccountName, certificateName, parameters).GetAwaiter().GetResult();
}
///
@@ -145,9 +130,6 @@ public static Certificate CreateOrUpdate(this ICertificateOperations operations,
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -160,9 +142,9 @@ public static Certificate CreateOrUpdate(this ICertificateOperations operations,
///
/// The cancellation token.
///
- public static async Task CreateOrUpdateAsync(this ICertificateOperations operations, string resourceGroupName, string automationAccountName, string certificateName, CertificateCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task CreateOrUpdateAsync(this ICertificateOperations operations, string automationAccountName, string certificateName, CertificateCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, certificateName, parameters, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(automationAccountName, certificateName, parameters, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -175,9 +157,6 @@ public static Certificate CreateOrUpdate(this ICertificateOperations operations,
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -187,9 +166,9 @@ public static Certificate CreateOrUpdate(this ICertificateOperations operations,
///
/// The parameters supplied to the update certificate operation.
///
- public static Certificate Update(this ICertificateOperations operations, string resourceGroupName, string automationAccountName, string certificateName, CertificateUpdateParameters parameters)
+ public static Certificate Update(this ICertificateOperations operations, string automationAccountName, string certificateName, CertificateUpdateParameters parameters)
{
- return operations.UpdateAsync(resourceGroupName, automationAccountName, certificateName, parameters).GetAwaiter().GetResult();
+ return operations.UpdateAsync(automationAccountName, certificateName, parameters).GetAwaiter().GetResult();
}
///
@@ -199,9 +178,6 @@ public static Certificate Update(this ICertificateOperations operations, string
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -214,9 +190,9 @@ public static Certificate Update(this ICertificateOperations operations, string
///
/// The cancellation token.
///
- public static async Task UpdateAsync(this ICertificateOperations operations, string resourceGroupName, string automationAccountName, string certificateName, CertificateUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task UpdateAsync(this ICertificateOperations operations, string automationAccountName, string certificateName, CertificateUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, certificateName, parameters, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.UpdateWithHttpMessagesAsync(automationAccountName, certificateName, parameters, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -229,15 +205,12 @@ public static Certificate Update(this ICertificateOperations operations, string
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
- public static IPage ListByAutomationAccount(this ICertificateOperations operations, string resourceGroupName, string automationAccountName)
+ public static IPage ListByAutomationAccount(this ICertificateOperations operations, string automationAccountName)
{
- return operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName).GetAwaiter().GetResult();
+ return operations.ListByAutomationAccountAsync(automationAccountName).GetAwaiter().GetResult();
}
///
@@ -247,18 +220,15 @@ public static IPage ListByAutomationAccount(this ICertificateOperat
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The cancellation token.
///
- public static async Task> ListByAutomationAccountAsync(this ICertificateOperations operations, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListByAutomationAccountAsync(this ICertificateOperations operations, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(automationAccountName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
diff --git a/src/SDKs/Automation/Management.Automation/Generated/ConnectionOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/ConnectionOperations.cs
index bf197935afcc..f5d126a04eec 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/ConnectionOperations.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/ConnectionOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -54,9 +54,6 @@ internal ConnectionOperations(AutomationClient client)
/// Delete the connection.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -84,17 +81,17 @@ internal ConnectionOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> DeleteWithHttpMessagesAsync(string automationAccountName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -117,7 +114,6 @@ internal ConnectionOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("connectionName", connectionName);
tracingParameters.Add("apiVersion", apiVersion);
@@ -127,7 +123,7 @@ internal ConnectionOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{connectionName}", System.Uri.EscapeDataString(connectionName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -260,9 +256,6 @@ internal ConnectionOperations(AutomationClient client)
/// Retrieve the connection identified by connection name.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -290,17 +283,17 @@ internal ConnectionOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetWithHttpMessagesAsync(string automationAccountName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -323,7 +316,6 @@ internal ConnectionOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("connectionName", connectionName);
tracingParameters.Add("apiVersion", apiVersion);
@@ -333,7 +325,7 @@ internal ConnectionOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{connectionName}", System.Uri.EscapeDataString(connectionName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -466,9 +458,6 @@ internal ConnectionOperations(AutomationClient client)
/// Create or update a connection.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -499,17 +488,17 @@ internal ConnectionOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionName, ConnectionCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string connectionName, ConnectionCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -540,7 +529,6 @@ internal ConnectionOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("connectionName", connectionName);
tracingParameters.Add("parameters", parameters);
@@ -551,7 +539,7 @@ internal ConnectionOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{connectionName}", System.Uri.EscapeDataString(connectionName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -624,7 +612,7 @@ internal ConnectionOperations(AutomationClient client)
System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 201 && (int)_statusCode != 200)
+ if ((int)_statusCode != 200 && (int)_statusCode != 201)
{
var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -662,7 +650,7 @@ internal ConnectionOperations(AutomationClient client)
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
// Deserialize Response
- if ((int)_statusCode == 201)
+ if ((int)_statusCode == 200)
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
@@ -680,7 +668,7 @@ internal ConnectionOperations(AutomationClient client)
}
}
// Deserialize Response
- if ((int)_statusCode == 200)
+ if ((int)_statusCode == 201)
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
@@ -708,9 +696,6 @@ internal ConnectionOperations(AutomationClient client)
/// Update a connection.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -741,17 +726,17 @@ internal ConnectionOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionName, ConnectionUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> UpdateWithHttpMessagesAsync(string automationAccountName, string connectionName, ConnectionUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -778,7 +763,6 @@ internal ConnectionOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("connectionName", connectionName);
tracingParameters.Add("parameters", parameters);
@@ -789,7 +773,7 @@ internal ConnectionOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{connectionName}", System.Uri.EscapeDataString(connectionName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -928,9 +912,6 @@ internal ConnectionOperations(AutomationClient client)
/// Retrieve a list of connections.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -955,17 +936,17 @@ internal ConnectionOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -984,7 +965,6 @@ internal ConnectionOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
@@ -993,7 +973,7 @@ internal ConnectionOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
diff --git a/src/SDKs/Automation/Management.Automation/Generated/ConnectionOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/ConnectionOperationsExtensions.cs
index 287b7e1f04c2..4fbcfe8fa382 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/ConnectionOperationsExtensions.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/ConnectionOperationsExtensions.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -28,18 +28,15 @@ public static partial class ConnectionOperationsExtensions
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The name of connection.
///
- public static Connection Delete(this IConnectionOperations operations, string resourceGroupName, string automationAccountName, string connectionName)
+ public static Connection Delete(this IConnectionOperations operations, string automationAccountName, string connectionName)
{
- return operations.DeleteAsync(resourceGroupName, automationAccountName, connectionName).GetAwaiter().GetResult();
+ return operations.DeleteAsync(automationAccountName, connectionName).GetAwaiter().GetResult();
}
///
@@ -49,9 +46,6 @@ public static Connection Delete(this IConnectionOperations operations, string re
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -61,9 +55,9 @@ public static Connection Delete(this IConnectionOperations operations, string re
///
/// The cancellation token.
///
- public static async Task DeleteAsync(this IConnectionOperations operations, string resourceGroupName, string automationAccountName, string connectionName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task DeleteAsync(this IConnectionOperations operations, string automationAccountName, string connectionName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, connectionName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.DeleteWithHttpMessagesAsync(automationAccountName, connectionName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -76,18 +70,15 @@ public static Connection Delete(this IConnectionOperations operations, string re
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The name of connection.
///
- public static Connection Get(this IConnectionOperations operations, string resourceGroupName, string automationAccountName, string connectionName)
+ public static Connection Get(this IConnectionOperations operations, string automationAccountName, string connectionName)
{
- return operations.GetAsync(resourceGroupName, automationAccountName, connectionName).GetAwaiter().GetResult();
+ return operations.GetAsync(automationAccountName, connectionName).GetAwaiter().GetResult();
}
///
@@ -97,9 +88,6 @@ public static Connection Get(this IConnectionOperations operations, string resou
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -109,9 +97,9 @@ public static Connection Get(this IConnectionOperations operations, string resou
///
/// The cancellation token.
///
- public static async Task GetAsync(this IConnectionOperations operations, string resourceGroupName, string automationAccountName, string connectionName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetAsync(this IConnectionOperations operations, string automationAccountName, string connectionName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, connectionName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, connectionName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -124,9 +112,6 @@ public static Connection Get(this IConnectionOperations operations, string resou
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -136,9 +121,9 @@ public static Connection Get(this IConnectionOperations operations, string resou
///
/// The parameters supplied to the create or update connection operation.
///
- public static Connection CreateOrUpdate(this IConnectionOperations operations, string resourceGroupName, string automationAccountName, string connectionName, ConnectionCreateOrUpdateParameters parameters)
+ public static Connection CreateOrUpdate(this IConnectionOperations operations, string automationAccountName, string connectionName, ConnectionCreateOrUpdateParameters parameters)
{
- return operations.CreateOrUpdateAsync(resourceGroupName, automationAccountName, connectionName, parameters).GetAwaiter().GetResult();
+ return operations.CreateOrUpdateAsync(automationAccountName, connectionName, parameters).GetAwaiter().GetResult();
}
///
@@ -148,9 +133,6 @@ public static Connection CreateOrUpdate(this IConnectionOperations operations, s
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -163,9 +145,9 @@ public static Connection CreateOrUpdate(this IConnectionOperations operations, s
///
/// The cancellation token.
///
- public static async Task CreateOrUpdateAsync(this IConnectionOperations operations, string resourceGroupName, string automationAccountName, string connectionName, ConnectionCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task CreateOrUpdateAsync(this IConnectionOperations operations, string automationAccountName, string connectionName, ConnectionCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, connectionName, parameters, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(automationAccountName, connectionName, parameters, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -178,9 +160,6 @@ public static Connection CreateOrUpdate(this IConnectionOperations operations, s
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -190,9 +169,9 @@ public static Connection CreateOrUpdate(this IConnectionOperations operations, s
///
/// The parameters supplied to the update a connection operation.
///
- public static Connection Update(this IConnectionOperations operations, string resourceGroupName, string automationAccountName, string connectionName, ConnectionUpdateParameters parameters)
+ public static Connection Update(this IConnectionOperations operations, string automationAccountName, string connectionName, ConnectionUpdateParameters parameters)
{
- return operations.UpdateAsync(resourceGroupName, automationAccountName, connectionName, parameters).GetAwaiter().GetResult();
+ return operations.UpdateAsync(automationAccountName, connectionName, parameters).GetAwaiter().GetResult();
}
///
@@ -202,9 +181,6 @@ public static Connection Update(this IConnectionOperations operations, string re
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -217,9 +193,9 @@ public static Connection Update(this IConnectionOperations operations, string re
///
/// The cancellation token.
///
- public static async Task UpdateAsync(this IConnectionOperations operations, string resourceGroupName, string automationAccountName, string connectionName, ConnectionUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task UpdateAsync(this IConnectionOperations operations, string automationAccountName, string connectionName, ConnectionUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, connectionName, parameters, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.UpdateWithHttpMessagesAsync(automationAccountName, connectionName, parameters, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -232,15 +208,12 @@ public static Connection Update(this IConnectionOperations operations, string re
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
- public static IPage ListByAutomationAccount(this IConnectionOperations operations, string resourceGroupName, string automationAccountName)
+ public static IPage ListByAutomationAccount(this IConnectionOperations operations, string automationAccountName)
{
- return operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName).GetAwaiter().GetResult();
+ return operations.ListByAutomationAccountAsync(automationAccountName).GetAwaiter().GetResult();
}
///
@@ -250,18 +223,15 @@ public static IPage ListByAutomationAccount(this IConnectionOperatio
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The cancellation token.
///
- public static async Task> ListByAutomationAccountAsync(this IConnectionOperations operations, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListByAutomationAccountAsync(this IConnectionOperations operations, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(automationAccountName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
diff --git a/src/SDKs/Automation/Management.Automation/Generated/ConnectionTypeOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/ConnectionTypeOperations.cs
index 7b8968c23ac0..cb6a414f3031 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/ConnectionTypeOperations.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/ConnectionTypeOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -54,9 +54,6 @@ internal ConnectionTypeOperations(AutomationClient client)
/// Delete the connectiontype.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -81,17 +78,17 @@ internal ConnectionTypeOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionTypeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task DeleteWithHttpMessagesAsync(string automationAccountName, string connectionTypeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -114,7 +111,6 @@ internal ConnectionTypeOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("connectionTypeName", connectionTypeName);
tracingParameters.Add("apiVersion", apiVersion);
@@ -124,7 +120,7 @@ internal ConnectionTypeOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes/{connectionTypeName}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{connectionTypeName}", System.Uri.EscapeDataString(connectionTypeName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -239,9 +235,6 @@ internal ConnectionTypeOperations(AutomationClient client)
/// Retrieve the connectiontype identified by connectiontype name.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -269,17 +262,17 @@ internal ConnectionTypeOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionTypeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetWithHttpMessagesAsync(string automationAccountName, string connectionTypeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -302,7 +295,6 @@ internal ConnectionTypeOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("connectionTypeName", connectionTypeName);
tracingParameters.Add("apiVersion", apiVersion);
@@ -312,7 +304,7 @@ internal ConnectionTypeOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes/{connectionTypeName}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{connectionTypeName}", System.Uri.EscapeDataString(connectionTypeName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -445,9 +437,6 @@ internal ConnectionTypeOperations(AutomationClient client)
/// Create a connectiontype.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -478,17 +467,17 @@ internal ConnectionTypeOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionTypeName, ConnectionTypeCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string connectionTypeName, ConnectionTypeCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -519,7 +508,6 @@ internal ConnectionTypeOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("connectionTypeName", connectionTypeName);
tracingParameters.Add("parameters", parameters);
@@ -530,7 +518,7 @@ internal ConnectionTypeOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes/{connectionTypeName}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{connectionTypeName}", System.Uri.EscapeDataString(connectionTypeName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -687,9 +675,6 @@ internal ConnectionTypeOperations(AutomationClient client)
/// Retrieve a list of connectiontypes.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -714,17 +699,17 @@ internal ConnectionTypeOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -743,7 +728,6 @@ internal ConnectionTypeOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
@@ -752,7 +736,7 @@ internal ConnectionTypeOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
diff --git a/src/SDKs/Automation/Management.Automation/Generated/ConnectionTypeOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/ConnectionTypeOperationsExtensions.cs
index 591107abfa49..293f94b7c8e6 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/ConnectionTypeOperationsExtensions.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/ConnectionTypeOperationsExtensions.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -28,18 +28,15 @@ public static partial class ConnectionTypeOperationsExtensions
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The name of connectiontype.
///
- public static void Delete(this IConnectionTypeOperations operations, string resourceGroupName, string automationAccountName, string connectionTypeName)
+ public static void Delete(this IConnectionTypeOperations operations, string automationAccountName, string connectionTypeName)
{
- operations.DeleteAsync(resourceGroupName, automationAccountName, connectionTypeName).GetAwaiter().GetResult();
+ operations.DeleteAsync(automationAccountName, connectionTypeName).GetAwaiter().GetResult();
}
///
@@ -49,9 +46,6 @@ public static void Delete(this IConnectionTypeOperations operations, string reso
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -61,9 +55,9 @@ public static void Delete(this IConnectionTypeOperations operations, string reso
///
/// The cancellation token.
///
- public static async Task DeleteAsync(this IConnectionTypeOperations operations, string resourceGroupName, string automationAccountName, string connectionTypeName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task DeleteAsync(this IConnectionTypeOperations operations, string automationAccountName, string connectionTypeName, CancellationToken cancellationToken = default(CancellationToken))
{
- (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, connectionTypeName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ (await operations.DeleteWithHttpMessagesAsync(automationAccountName, connectionTypeName, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
///
@@ -73,18 +67,15 @@ public static void Delete(this IConnectionTypeOperations operations, string reso
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The name of connectiontype.
///
- public static ConnectionType Get(this IConnectionTypeOperations operations, string resourceGroupName, string automationAccountName, string connectionTypeName)
+ public static ConnectionType Get(this IConnectionTypeOperations operations, string automationAccountName, string connectionTypeName)
{
- return operations.GetAsync(resourceGroupName, automationAccountName, connectionTypeName).GetAwaiter().GetResult();
+ return operations.GetAsync(automationAccountName, connectionTypeName).GetAwaiter().GetResult();
}
///
@@ -94,9 +85,6 @@ public static ConnectionType Get(this IConnectionTypeOperations operations, stri
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -106,9 +94,9 @@ public static ConnectionType Get(this IConnectionTypeOperations operations, stri
///
/// The cancellation token.
///
- public static async Task GetAsync(this IConnectionTypeOperations operations, string resourceGroupName, string automationAccountName, string connectionTypeName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetAsync(this IConnectionTypeOperations operations, string automationAccountName, string connectionTypeName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, connectionTypeName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, connectionTypeName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -121,9 +109,6 @@ public static ConnectionType Get(this IConnectionTypeOperations operations, stri
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -133,9 +118,9 @@ public static ConnectionType Get(this IConnectionTypeOperations operations, stri
///
/// The parameters supplied to the create or update connectiontype operation.
///
- public static ConnectionType CreateOrUpdate(this IConnectionTypeOperations operations, string resourceGroupName, string automationAccountName, string connectionTypeName, ConnectionTypeCreateOrUpdateParameters parameters)
+ public static ConnectionType CreateOrUpdate(this IConnectionTypeOperations operations, string automationAccountName, string connectionTypeName, ConnectionTypeCreateOrUpdateParameters parameters)
{
- return operations.CreateOrUpdateAsync(resourceGroupName, automationAccountName, connectionTypeName, parameters).GetAwaiter().GetResult();
+ return operations.CreateOrUpdateAsync(automationAccountName, connectionTypeName, parameters).GetAwaiter().GetResult();
}
///
@@ -145,9 +130,6 @@ public static ConnectionType CreateOrUpdate(this IConnectionTypeOperations opera
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -160,9 +142,9 @@ public static ConnectionType CreateOrUpdate(this IConnectionTypeOperations opera
///
/// The cancellation token.
///
- public static async Task CreateOrUpdateAsync(this IConnectionTypeOperations operations, string resourceGroupName, string automationAccountName, string connectionTypeName, ConnectionTypeCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task CreateOrUpdateAsync(this IConnectionTypeOperations operations, string automationAccountName, string connectionTypeName, ConnectionTypeCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, connectionTypeName, parameters, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(automationAccountName, connectionTypeName, parameters, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -175,15 +157,12 @@ public static ConnectionType CreateOrUpdate(this IConnectionTypeOperations opera
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
- public static IPage ListByAutomationAccount(this IConnectionTypeOperations operations, string resourceGroupName, string automationAccountName)
+ public static IPage ListByAutomationAccount(this IConnectionTypeOperations operations, string automationAccountName)
{
- return operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName).GetAwaiter().GetResult();
+ return operations.ListByAutomationAccountAsync(automationAccountName).GetAwaiter().GetResult();
}
///
@@ -193,18 +172,15 @@ public static IPage ListByAutomationAccount(this IConnectionType
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The cancellation token.
///
- public static async Task> ListByAutomationAccountAsync(this IConnectionTypeOperations operations, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListByAutomationAccountAsync(this IConnectionTypeOperations operations, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(automationAccountName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
diff --git a/src/SDKs/Automation/Management.Automation/Generated/CredentialOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/CredentialOperations.cs
index 0101f4198906..8c9a1a382f2c 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/CredentialOperations.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/CredentialOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -54,9 +54,6 @@ internal CredentialOperations(AutomationClient client)
/// Delete the credential.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -81,17 +78,17 @@ internal CredentialOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string credentialName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task DeleteWithHttpMessagesAsync(string automationAccountName, string credentialName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -114,7 +111,6 @@ internal CredentialOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("credentialName", credentialName);
tracingParameters.Add("apiVersion", apiVersion);
@@ -124,7 +120,7 @@ internal CredentialOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{credentialName}", System.Uri.EscapeDataString(credentialName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -239,9 +235,6 @@ internal CredentialOperations(AutomationClient client)
/// Retrieve the credential identified by credential name.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -269,17 +262,17 @@ internal CredentialOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string credentialName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetWithHttpMessagesAsync(string automationAccountName, string credentialName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -302,7 +295,6 @@ internal CredentialOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("credentialName", credentialName);
tracingParameters.Add("apiVersion", apiVersion);
@@ -312,7 +304,7 @@ internal CredentialOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{credentialName}", System.Uri.EscapeDataString(credentialName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -445,9 +437,6 @@ internal CredentialOperations(AutomationClient client)
/// Create a credential.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -478,17 +467,17 @@ internal CredentialOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string credentialName, CredentialCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string credentialName, CredentialCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -519,7 +508,6 @@ internal CredentialOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("credentialName", credentialName);
tracingParameters.Add("parameters", parameters);
@@ -530,7 +518,7 @@ internal CredentialOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{credentialName}", System.Uri.EscapeDataString(credentialName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -603,7 +591,7 @@ internal CredentialOperations(AutomationClient client)
System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 201 && (int)_statusCode != 200)
+ if ((int)_statusCode != 200 && (int)_statusCode != 201)
{
var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -641,7 +629,7 @@ internal CredentialOperations(AutomationClient client)
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
// Deserialize Response
- if ((int)_statusCode == 201)
+ if ((int)_statusCode == 200)
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
@@ -659,7 +647,7 @@ internal CredentialOperations(AutomationClient client)
}
}
// Deserialize Response
- if ((int)_statusCode == 200)
+ if ((int)_statusCode == 201)
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
@@ -687,9 +675,6 @@ internal CredentialOperations(AutomationClient client)
/// Update a credential.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -720,17 +705,17 @@ internal CredentialOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string credentialName, CredentialUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> UpdateWithHttpMessagesAsync(string automationAccountName, string credentialName, CredentialUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -757,7 +742,6 @@ internal CredentialOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("credentialName", credentialName);
tracingParameters.Add("parameters", parameters);
@@ -768,7 +752,7 @@ internal CredentialOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{credentialName}", System.Uri.EscapeDataString(credentialName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -907,9 +891,6 @@ internal CredentialOperations(AutomationClient client)
/// Retrieve a list of credentials.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -934,17 +915,17 @@ internal CredentialOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -963,7 +944,6 @@ internal CredentialOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
@@ -972,7 +952,7 @@ internal CredentialOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
diff --git a/src/SDKs/Automation/Management.Automation/Generated/CredentialOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/CredentialOperationsExtensions.cs
index 8fab312d15a1..7cd77a2f20b3 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/CredentialOperationsExtensions.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/CredentialOperationsExtensions.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -28,18 +28,15 @@ public static partial class CredentialOperationsExtensions
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The name of credential.
///
- public static void Delete(this ICredentialOperations operations, string resourceGroupName, string automationAccountName, string credentialName)
+ public static void Delete(this ICredentialOperations operations, string automationAccountName, string credentialName)
{
- operations.DeleteAsync(resourceGroupName, automationAccountName, credentialName).GetAwaiter().GetResult();
+ operations.DeleteAsync(automationAccountName, credentialName).GetAwaiter().GetResult();
}
///
@@ -49,9 +46,6 @@ public static void Delete(this ICredentialOperations operations, string resource
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -61,9 +55,9 @@ public static void Delete(this ICredentialOperations operations, string resource
///
/// The cancellation token.
///
- public static async Task DeleteAsync(this ICredentialOperations operations, string resourceGroupName, string automationAccountName, string credentialName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task DeleteAsync(this ICredentialOperations operations, string automationAccountName, string credentialName, CancellationToken cancellationToken = default(CancellationToken))
{
- (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, credentialName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ (await operations.DeleteWithHttpMessagesAsync(automationAccountName, credentialName, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
///
@@ -73,18 +67,15 @@ public static void Delete(this ICredentialOperations operations, string resource
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The name of credential.
///
- public static Credential Get(this ICredentialOperations operations, string resourceGroupName, string automationAccountName, string credentialName)
+ public static Credential Get(this ICredentialOperations operations, string automationAccountName, string credentialName)
{
- return operations.GetAsync(resourceGroupName, automationAccountName, credentialName).GetAwaiter().GetResult();
+ return operations.GetAsync(automationAccountName, credentialName).GetAwaiter().GetResult();
}
///
@@ -94,9 +85,6 @@ public static Credential Get(this ICredentialOperations operations, string resou
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -106,9 +94,9 @@ public static Credential Get(this ICredentialOperations operations, string resou
///
/// The cancellation token.
///
- public static async Task GetAsync(this ICredentialOperations operations, string resourceGroupName, string automationAccountName, string credentialName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetAsync(this ICredentialOperations operations, string automationAccountName, string credentialName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, credentialName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, credentialName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -121,9 +109,6 @@ public static Credential Get(this ICredentialOperations operations, string resou
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -133,9 +118,9 @@ public static Credential Get(this ICredentialOperations operations, string resou
///
/// The parameters supplied to the create or update credential operation.
///
- public static Credential CreateOrUpdate(this ICredentialOperations operations, string resourceGroupName, string automationAccountName, string credentialName, CredentialCreateOrUpdateParameters parameters)
+ public static Credential CreateOrUpdate(this ICredentialOperations operations, string automationAccountName, string credentialName, CredentialCreateOrUpdateParameters parameters)
{
- return operations.CreateOrUpdateAsync(resourceGroupName, automationAccountName, credentialName, parameters).GetAwaiter().GetResult();
+ return operations.CreateOrUpdateAsync(automationAccountName, credentialName, parameters).GetAwaiter().GetResult();
}
///
@@ -145,9 +130,6 @@ public static Credential CreateOrUpdate(this ICredentialOperations operations, s
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -160,9 +142,9 @@ public static Credential CreateOrUpdate(this ICredentialOperations operations, s
///
/// The cancellation token.
///
- public static async Task CreateOrUpdateAsync(this ICredentialOperations operations, string resourceGroupName, string automationAccountName, string credentialName, CredentialCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task CreateOrUpdateAsync(this ICredentialOperations operations, string automationAccountName, string credentialName, CredentialCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, credentialName, parameters, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(automationAccountName, credentialName, parameters, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -175,9 +157,6 @@ public static Credential CreateOrUpdate(this ICredentialOperations operations, s
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -187,9 +166,9 @@ public static Credential CreateOrUpdate(this ICredentialOperations operations, s
///
/// The parameters supplied to the Update credential operation.
///
- public static Credential Update(this ICredentialOperations operations, string resourceGroupName, string automationAccountName, string credentialName, CredentialUpdateParameters parameters)
+ public static Credential Update(this ICredentialOperations operations, string automationAccountName, string credentialName, CredentialUpdateParameters parameters)
{
- return operations.UpdateAsync(resourceGroupName, automationAccountName, credentialName, parameters).GetAwaiter().GetResult();
+ return operations.UpdateAsync(automationAccountName, credentialName, parameters).GetAwaiter().GetResult();
}
///
@@ -199,9 +178,6 @@ public static Credential Update(this ICredentialOperations operations, string re
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -214,9 +190,9 @@ public static Credential Update(this ICredentialOperations operations, string re
///
/// The cancellation token.
///
- public static async Task UpdateAsync(this ICredentialOperations operations, string resourceGroupName, string automationAccountName, string credentialName, CredentialUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task UpdateAsync(this ICredentialOperations operations, string automationAccountName, string credentialName, CredentialUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, credentialName, parameters, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.UpdateWithHttpMessagesAsync(automationAccountName, credentialName, parameters, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -229,15 +205,12 @@ public static Credential Update(this ICredentialOperations operations, string re
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
- public static IPage ListByAutomationAccount(this ICredentialOperations operations, string resourceGroupName, string automationAccountName)
+ public static IPage ListByAutomationAccount(this ICredentialOperations operations, string automationAccountName)
{
- return operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName).GetAwaiter().GetResult();
+ return operations.ListByAutomationAccountAsync(automationAccountName).GetAwaiter().GetResult();
}
///
@@ -247,18 +220,15 @@ public static IPage ListByAutomationAccount(this ICredentialOperatio
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The cancellation token.
///
- public static async Task> ListByAutomationAccountAsync(this ICredentialOperations operations, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListByAutomationAccountAsync(this ICredentialOperations operations, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(automationAccountName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
diff --git a/src/SDKs/Automation/Management.Automation/Generated/DscCompilationJobOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/DscCompilationJobOperations.cs
index e2ff40dc4b15..e7f3865a78f7 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/DscCompilationJobOperations.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/DscCompilationJobOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -54,9 +54,6 @@ internal DscCompilationJobOperations(AutomationClient client)
/// Creates the Dsc compilation job of the configuration.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -87,17 +84,17 @@ internal DscCompilationJobOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid compilationJobId, DscCompilationJobCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> CreateWithHttpMessagesAsync(string automationAccountName, System.Guid compilationJobId, DscCompilationJobCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -124,7 +121,6 @@ internal DscCompilationJobOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("compilationJobId", compilationJobId);
tracingParameters.Add("parameters", parameters);
@@ -135,7 +131,7 @@ internal DscCompilationJobOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobId}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{compilationJobId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(compilationJobId, Client.SerializationSettings).Trim('"')));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -274,9 +270,6 @@ internal DscCompilationJobOperations(AutomationClient client)
/// Retrieve the Dsc configuration compilation job identified by job id.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -304,17 +297,17 @@ internal DscCompilationJobOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid compilationJobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetWithHttpMessagesAsync(string automationAccountName, System.Guid compilationJobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -333,7 +326,6 @@ internal DscCompilationJobOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("compilationJobId", compilationJobId);
tracingParameters.Add("apiVersion", apiVersion);
@@ -343,7 +335,7 @@ internal DscCompilationJobOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobId}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{compilationJobId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(compilationJobId, Client.SerializationSettings).Trim('"')));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -476,9 +468,6 @@ internal DscCompilationJobOperations(AutomationClient client)
/// Retrieve a list of dsc compilation jobs.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -506,17 +495,17 @@ internal DscCompilationJobOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -535,7 +524,6 @@ internal DscCompilationJobOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("filter", filter);
tracingParameters.Add("apiVersion", apiVersion);
@@ -545,7 +533,7 @@ internal DscCompilationJobOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
@@ -681,9 +669,6 @@ internal DscCompilationJobOperations(AutomationClient client)
/// Retrieve the job stream identified by job stream id.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -714,17 +699,17 @@ internal DscCompilationJobOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetStreamWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid jobId, string jobStreamId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetStreamWithHttpMessagesAsync(string automationAccountName, System.Guid jobId, string jobStreamId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -747,7 +732,6 @@ internal DscCompilationJobOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("jobId", jobId);
tracingParameters.Add("jobStreamId", jobStreamId);
@@ -758,7 +742,7 @@ internal DscCompilationJobOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{jobId}/streams/{jobStreamId}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{jobId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobId, Client.SerializationSettings).Trim('"')));
_url = _url.Replace("{jobStreamId}", System.Uri.EscapeDataString(jobStreamId));
diff --git a/src/SDKs/Automation/Management.Automation/Generated/DscCompilationJobOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/DscCompilationJobOperationsExtensions.cs
index cded7de9124c..53ed6cd778cd 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/DscCompilationJobOperationsExtensions.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/DscCompilationJobOperationsExtensions.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -28,9 +28,6 @@ public static partial class DscCompilationJobOperationsExtensions
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -40,9 +37,9 @@ public static partial class DscCompilationJobOperationsExtensions
///
/// The parameters supplied to the create compilation job operation.
///
- public static DscCompilationJob Create(this IDscCompilationJobOperations operations, string resourceGroupName, string automationAccountName, System.Guid compilationJobId, DscCompilationJobCreateParameters parameters)
+ public static DscCompilationJob Create(this IDscCompilationJobOperations operations, string automationAccountName, System.Guid compilationJobId, DscCompilationJobCreateParameters parameters)
{
- return operations.CreateAsync(resourceGroupName, automationAccountName, compilationJobId, parameters).GetAwaiter().GetResult();
+ return operations.CreateAsync(automationAccountName, compilationJobId, parameters).GetAwaiter().GetResult();
}
///
@@ -52,9 +49,6 @@ public static DscCompilationJob Create(this IDscCompilationJobOperations operati
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -67,9 +61,9 @@ public static DscCompilationJob Create(this IDscCompilationJobOperations operati
///
/// The cancellation token.
///
- public static async Task CreateAsync(this IDscCompilationJobOperations operations, string resourceGroupName, string automationAccountName, System.Guid compilationJobId, DscCompilationJobCreateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task CreateAsync(this IDscCompilationJobOperations operations, string automationAccountName, System.Guid compilationJobId, DscCompilationJobCreateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, automationAccountName, compilationJobId, parameters, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.CreateWithHttpMessagesAsync(automationAccountName, compilationJobId, parameters, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -82,18 +76,15 @@ public static DscCompilationJob Create(this IDscCompilationJobOperations operati
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The Dsc configuration compilation job id.
///
- public static DscCompilationJob Get(this IDscCompilationJobOperations operations, string resourceGroupName, string automationAccountName, System.Guid compilationJobId)
+ public static DscCompilationJob Get(this IDscCompilationJobOperations operations, string automationAccountName, System.Guid compilationJobId)
{
- return operations.GetAsync(resourceGroupName, automationAccountName, compilationJobId).GetAwaiter().GetResult();
+ return operations.GetAsync(automationAccountName, compilationJobId).GetAwaiter().GetResult();
}
///
@@ -103,9 +94,6 @@ public static DscCompilationJob Get(this IDscCompilationJobOperations operations
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -115,9 +103,9 @@ public static DscCompilationJob Get(this IDscCompilationJobOperations operations
///
/// The cancellation token.
///
- public static async Task GetAsync(this IDscCompilationJobOperations operations, string resourceGroupName, string automationAccountName, System.Guid compilationJobId, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetAsync(this IDscCompilationJobOperations operations, string automationAccountName, System.Guid compilationJobId, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, compilationJobId, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, compilationJobId, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -130,18 +118,15 @@ public static DscCompilationJob Get(this IDscCompilationJobOperations operations
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The filter to apply on the operation.
///
- public static IPage ListByAutomationAccount(this IDscCompilationJobOperations operations, string resourceGroupName, string automationAccountName, string filter = default(string))
+ public static IPage ListByAutomationAccount(this IDscCompilationJobOperations operations, string automationAccountName, string filter = default(string))
{
- return operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName, filter).GetAwaiter().GetResult();
+ return operations.ListByAutomationAccountAsync(automationAccountName, filter).GetAwaiter().GetResult();
}
///
@@ -151,9 +136,6 @@ public static DscCompilationJob Get(this IDscCompilationJobOperations operations
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -163,9 +145,9 @@ public static DscCompilationJob Get(this IDscCompilationJobOperations operations
///
/// The cancellation token.
///
- public static async Task> ListByAutomationAccountAsync(this IDscCompilationJobOperations operations, string resourceGroupName, string automationAccountName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListByAutomationAccountAsync(this IDscCompilationJobOperations operations, string automationAccountName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, filter, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(automationAccountName, filter, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -178,9 +160,6 @@ public static DscCompilationJob Get(this IDscCompilationJobOperations operations
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -190,9 +169,9 @@ public static DscCompilationJob Get(this IDscCompilationJobOperations operations
///
/// The job stream id.
///
- public static JobStream GetStream(this IDscCompilationJobOperations operations, string resourceGroupName, string automationAccountName, System.Guid jobId, string jobStreamId)
+ public static JobStream GetStream(this IDscCompilationJobOperations operations, string automationAccountName, System.Guid jobId, string jobStreamId)
{
- return operations.GetStreamAsync(resourceGroupName, automationAccountName, jobId, jobStreamId).GetAwaiter().GetResult();
+ return operations.GetStreamAsync(automationAccountName, jobId, jobStreamId).GetAwaiter().GetResult();
}
///
@@ -202,9 +181,6 @@ public static JobStream GetStream(this IDscCompilationJobOperations operations,
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -217,9 +193,9 @@ public static JobStream GetStream(this IDscCompilationJobOperations operations,
///
/// The cancellation token.
///
- public static async Task GetStreamAsync(this IDscCompilationJobOperations operations, string resourceGroupName, string automationAccountName, System.Guid jobId, string jobStreamId, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetStreamAsync(this IDscCompilationJobOperations operations, string automationAccountName, System.Guid jobId, string jobStreamId, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetStreamWithHttpMessagesAsync(resourceGroupName, automationAccountName, jobId, jobStreamId, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.GetStreamWithHttpMessagesAsync(automationAccountName, jobId, jobStreamId, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
diff --git a/src/SDKs/Automation/Management.Automation/Generated/DscConfigurationOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/DscConfigurationOperations.cs
index 37113f57d3d2..8512419e910a 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/DscConfigurationOperations.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/DscConfigurationOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -55,9 +55,6 @@ internal DscConfigurationOperations(AutomationClient client)
/// Delete the dsc configuration identified by configuration name.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -82,17 +79,17 @@ internal DscConfigurationOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string configurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task DeleteWithHttpMessagesAsync(string automationAccountName, string configurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -115,7 +112,6 @@ internal DscConfigurationOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("configurationName", configurationName);
tracingParameters.Add("apiVersion", apiVersion);
@@ -125,7 +121,7 @@ internal DscConfigurationOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{configurationName}", System.Uri.EscapeDataString(configurationName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -240,9 +236,6 @@ internal DscConfigurationOperations(AutomationClient client)
/// Retrieve the configuration identified by configuration name.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -270,17 +263,17 @@ internal DscConfigurationOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string configurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetWithHttpMessagesAsync(string automationAccountName, string configurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -303,7 +296,6 @@ internal DscConfigurationOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("configurationName", configurationName);
tracingParameters.Add("apiVersion", apiVersion);
@@ -313,7 +305,7 @@ internal DscConfigurationOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{configurationName}", System.Uri.EscapeDataString(configurationName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -446,9 +438,6 @@ internal DscConfigurationOperations(AutomationClient client)
/// Create the configuration identified by configuration name.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -479,17 +468,17 @@ internal DscConfigurationOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string configurationName, DscConfigurationCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string configurationName, DscConfigurationCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -520,7 +509,6 @@ internal DscConfigurationOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("configurationName", configurationName);
tracingParameters.Add("parameters", parameters);
@@ -531,7 +519,7 @@ internal DscConfigurationOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{configurationName}", System.Uri.EscapeDataString(configurationName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -688,9 +676,6 @@ internal DscConfigurationOperations(AutomationClient client)
/// Retrieve the configuration script identified by configuration name.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -718,17 +703,17 @@ internal DscConfigurationOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetContentWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string configurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetContentWithHttpMessagesAsync(string automationAccountName, string configurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -751,7 +736,6 @@ internal DscConfigurationOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("configurationName", configurationName);
tracingParameters.Add("apiVersion", apiVersion);
@@ -761,7 +745,7 @@ internal DscConfigurationOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}/content").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{configurationName}", System.Uri.EscapeDataString(configurationName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -881,9 +865,6 @@ internal DscConfigurationOperations(AutomationClient client)
/// Retrieve a list of configurations.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -908,17 +889,17 @@ internal DscConfigurationOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -937,7 +918,6 @@ internal DscConfigurationOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
@@ -946,7 +926,7 @@ internal DscConfigurationOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
diff --git a/src/SDKs/Automation/Management.Automation/Generated/DscConfigurationOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/DscConfigurationOperationsExtensions.cs
index cb606f21dd3b..b21db079a393 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/DscConfigurationOperationsExtensions.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/DscConfigurationOperationsExtensions.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -29,18 +29,15 @@ public static partial class DscConfigurationOperationsExtensions
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The configuration name.
///
- public static void Delete(this IDscConfigurationOperations operations, string resourceGroupName, string automationAccountName, string configurationName)
+ public static void Delete(this IDscConfigurationOperations operations, string automationAccountName, string configurationName)
{
- operations.DeleteAsync(resourceGroupName, automationAccountName, configurationName).GetAwaiter().GetResult();
+ operations.DeleteAsync(automationAccountName, configurationName).GetAwaiter().GetResult();
}
///
@@ -50,9 +47,6 @@ public static void Delete(this IDscConfigurationOperations operations, string re
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -62,9 +56,9 @@ public static void Delete(this IDscConfigurationOperations operations, string re
///
/// The cancellation token.
///
- public static async Task DeleteAsync(this IDscConfigurationOperations operations, string resourceGroupName, string automationAccountName, string configurationName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task DeleteAsync(this IDscConfigurationOperations operations, string automationAccountName, string configurationName, CancellationToken cancellationToken = default(CancellationToken))
{
- (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, configurationName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ (await operations.DeleteWithHttpMessagesAsync(automationAccountName, configurationName, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
///
@@ -74,18 +68,15 @@ public static void Delete(this IDscConfigurationOperations operations, string re
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The configuration name.
///
- public static DscConfiguration Get(this IDscConfigurationOperations operations, string resourceGroupName, string automationAccountName, string configurationName)
+ public static DscConfiguration Get(this IDscConfigurationOperations operations, string automationAccountName, string configurationName)
{
- return operations.GetAsync(resourceGroupName, automationAccountName, configurationName).GetAwaiter().GetResult();
+ return operations.GetAsync(automationAccountName, configurationName).GetAwaiter().GetResult();
}
///
@@ -95,9 +86,6 @@ public static DscConfiguration Get(this IDscConfigurationOperations operations,
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -107,9 +95,9 @@ public static DscConfiguration Get(this IDscConfigurationOperations operations,
///
/// The cancellation token.
///
- public static async Task GetAsync(this IDscConfigurationOperations operations, string resourceGroupName, string automationAccountName, string configurationName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetAsync(this IDscConfigurationOperations operations, string automationAccountName, string configurationName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, configurationName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, configurationName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -122,9 +110,6 @@ public static DscConfiguration Get(this IDscConfigurationOperations operations,
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -134,9 +119,9 @@ public static DscConfiguration Get(this IDscConfigurationOperations operations,
///
/// The create or update parameters for configuration.
///
- public static DscConfiguration CreateOrUpdate(this IDscConfigurationOperations operations, string resourceGroupName, string automationAccountName, string configurationName, DscConfigurationCreateOrUpdateParameters parameters)
+ public static DscConfiguration CreateOrUpdate(this IDscConfigurationOperations operations, string automationAccountName, string configurationName, DscConfigurationCreateOrUpdateParameters parameters)
{
- return operations.CreateOrUpdateAsync(resourceGroupName, automationAccountName, configurationName, parameters).GetAwaiter().GetResult();
+ return operations.CreateOrUpdateAsync(automationAccountName, configurationName, parameters).GetAwaiter().GetResult();
}
///
@@ -146,9 +131,6 @@ public static DscConfiguration CreateOrUpdate(this IDscConfigurationOperations o
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -161,9 +143,9 @@ public static DscConfiguration CreateOrUpdate(this IDscConfigurationOperations o
///
/// The cancellation token.
///
- public static async Task CreateOrUpdateAsync(this IDscConfigurationOperations operations, string resourceGroupName, string automationAccountName, string configurationName, DscConfigurationCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task CreateOrUpdateAsync(this IDscConfigurationOperations operations, string automationAccountName, string configurationName, DscConfigurationCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, configurationName, parameters, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(automationAccountName, configurationName, parameters, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -176,18 +158,15 @@ public static DscConfiguration CreateOrUpdate(this IDscConfigurationOperations o
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The configuration name.
///
- public static Stream GetContent(this IDscConfigurationOperations operations, string resourceGroupName, string automationAccountName, string configurationName)
+ public static Stream GetContent(this IDscConfigurationOperations operations, string automationAccountName, string configurationName)
{
- return operations.GetContentAsync(resourceGroupName, automationAccountName, configurationName).GetAwaiter().GetResult();
+ return operations.GetContentAsync(automationAccountName, configurationName).GetAwaiter().GetResult();
}
///
@@ -197,9 +176,6 @@ public static Stream GetContent(this IDscConfigurationOperations operations, str
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -209,9 +185,9 @@ public static Stream GetContent(this IDscConfigurationOperations operations, str
///
/// The cancellation token.
///
- public static async Task GetContentAsync(this IDscConfigurationOperations operations, string resourceGroupName, string automationAccountName, string configurationName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetContentAsync(this IDscConfigurationOperations operations, string automationAccountName, string configurationName, CancellationToken cancellationToken = default(CancellationToken))
{
- var _result = await operations.GetContentWithHttpMessagesAsync(resourceGroupName, automationAccountName, configurationName, null, cancellationToken).ConfigureAwait(false);
+ var _result = await operations.GetContentWithHttpMessagesAsync(automationAccountName, configurationName, null, cancellationToken).ConfigureAwait(false);
_result.Request.Dispose();
return _result.Body;
}
@@ -223,15 +199,12 @@ public static Stream GetContent(this IDscConfigurationOperations operations, str
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
- public static IPage ListByAutomationAccount(this IDscConfigurationOperations operations, string resourceGroupName, string automationAccountName)
+ public static IPage ListByAutomationAccount(this IDscConfigurationOperations operations, string automationAccountName)
{
- return operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName).GetAwaiter().GetResult();
+ return operations.ListByAutomationAccountAsync(automationAccountName).GetAwaiter().GetResult();
}
///
@@ -241,18 +214,15 @@ public static IPage ListByAutomationAccount(this IDscConfigura
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The cancellation token.
///
- public static async Task> ListByAutomationAccountAsync(this IDscConfigurationOperations operations, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListByAutomationAccountAsync(this IDscConfigurationOperations operations, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(automationAccountName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
diff --git a/src/SDKs/Automation/Management.Automation/Generated/DscNodeConfigurationOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/DscNodeConfigurationOperations.cs
index f3e410a7b62a..abd84fae1153 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/DscNodeConfigurationOperations.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/DscNodeConfigurationOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -54,9 +54,6 @@ internal DscNodeConfigurationOperations(AutomationClient client)
/// Delete the Dsc node configurations by node configuration.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -81,17 +78,17 @@ internal DscNodeConfigurationOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string nodeConfigurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task DeleteWithHttpMessagesAsync(string automationAccountName, string nodeConfigurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -114,7 +111,6 @@ internal DscNodeConfigurationOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("nodeConfigurationName", nodeConfigurationName);
tracingParameters.Add("apiVersion", apiVersion);
@@ -124,7 +120,7 @@ internal DscNodeConfigurationOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations/{nodeConfigurationName}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{nodeConfigurationName}", System.Uri.EscapeDataString(nodeConfigurationName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -239,9 +235,6 @@ internal DscNodeConfigurationOperations(AutomationClient client)
/// Retrieve the Dsc node configurations by node configuration.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -269,17 +262,17 @@ internal DscNodeConfigurationOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string nodeConfigurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetWithHttpMessagesAsync(string automationAccountName, string nodeConfigurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -302,7 +295,6 @@ internal DscNodeConfigurationOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("nodeConfigurationName", nodeConfigurationName);
tracingParameters.Add("apiVersion", apiVersion);
@@ -312,7 +304,7 @@ internal DscNodeConfigurationOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations/{nodeConfigurationName}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{nodeConfigurationName}", System.Uri.EscapeDataString(nodeConfigurationName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -445,9 +437,6 @@ internal DscNodeConfigurationOperations(AutomationClient client)
/// Create the node configuration identified by node configuration name.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -478,17 +467,17 @@ internal DscNodeConfigurationOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string nodeConfigurationName, DscNodeConfigurationCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string nodeConfigurationName, DscNodeConfigurationCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -519,7 +508,6 @@ internal DscNodeConfigurationOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("nodeConfigurationName", nodeConfigurationName);
tracingParameters.Add("parameters", parameters);
@@ -530,7 +518,7 @@ internal DscNodeConfigurationOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations/{nodeConfigurationName}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{nodeConfigurationName}", System.Uri.EscapeDataString(nodeConfigurationName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -687,9 +675,6 @@ internal DscNodeConfigurationOperations(AutomationClient client)
/// Retrieve a list of dsc node configurations.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -717,17 +702,17 @@ internal DscNodeConfigurationOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -746,7 +731,6 @@ internal DscNodeConfigurationOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("filter", filter);
tracingParameters.Add("apiVersion", apiVersion);
@@ -756,7 +740,7 @@ internal DscNodeConfigurationOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
diff --git a/src/SDKs/Automation/Management.Automation/Generated/DscNodeConfigurationOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/DscNodeConfigurationOperationsExtensions.cs
index 49bf7664122c..f0a39537af77 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/DscNodeConfigurationOperationsExtensions.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/DscNodeConfigurationOperationsExtensions.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -28,18 +28,15 @@ public static partial class DscNodeConfigurationOperationsExtensions
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The Dsc node configuration name.
///
- public static void Delete(this IDscNodeConfigurationOperations operations, string resourceGroupName, string automationAccountName, string nodeConfigurationName)
+ public static void Delete(this IDscNodeConfigurationOperations operations, string automationAccountName, string nodeConfigurationName)
{
- operations.DeleteAsync(resourceGroupName, automationAccountName, nodeConfigurationName).GetAwaiter().GetResult();
+ operations.DeleteAsync(automationAccountName, nodeConfigurationName).GetAwaiter().GetResult();
}
///
@@ -49,9 +46,6 @@ public static void Delete(this IDscNodeConfigurationOperations operations, strin
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -61,9 +55,9 @@ public static void Delete(this IDscNodeConfigurationOperations operations, strin
///
/// The cancellation token.
///
- public static async Task DeleteAsync(this IDscNodeConfigurationOperations operations, string resourceGroupName, string automationAccountName, string nodeConfigurationName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task DeleteAsync(this IDscNodeConfigurationOperations operations, string automationAccountName, string nodeConfigurationName, CancellationToken cancellationToken = default(CancellationToken))
{
- (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, nodeConfigurationName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ (await operations.DeleteWithHttpMessagesAsync(automationAccountName, nodeConfigurationName, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
///
@@ -73,18 +67,15 @@ public static void Delete(this IDscNodeConfigurationOperations operations, strin
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The Dsc node configuration name.
///
- public static DscNodeConfiguration Get(this IDscNodeConfigurationOperations operations, string resourceGroupName, string automationAccountName, string nodeConfigurationName)
+ public static DscNodeConfiguration Get(this IDscNodeConfigurationOperations operations, string automationAccountName, string nodeConfigurationName)
{
- return operations.GetAsync(resourceGroupName, automationAccountName, nodeConfigurationName).GetAwaiter().GetResult();
+ return operations.GetAsync(automationAccountName, nodeConfigurationName).GetAwaiter().GetResult();
}
///
@@ -94,9 +85,6 @@ public static DscNodeConfiguration Get(this IDscNodeConfigurationOperations oper
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -106,9 +94,9 @@ public static DscNodeConfiguration Get(this IDscNodeConfigurationOperations oper
///
/// The cancellation token.
///
- public static async Task GetAsync(this IDscNodeConfigurationOperations operations, string resourceGroupName, string automationAccountName, string nodeConfigurationName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetAsync(this IDscNodeConfigurationOperations operations, string automationAccountName, string nodeConfigurationName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, nodeConfigurationName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, nodeConfigurationName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -121,9 +109,6 @@ public static DscNodeConfiguration Get(this IDscNodeConfigurationOperations oper
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -133,9 +118,9 @@ public static DscNodeConfiguration Get(this IDscNodeConfigurationOperations oper
///
/// The create or update parameters for configuration.
///
- public static DscNodeConfiguration CreateOrUpdate(this IDscNodeConfigurationOperations operations, string resourceGroupName, string automationAccountName, string nodeConfigurationName, DscNodeConfigurationCreateOrUpdateParameters parameters)
+ public static DscNodeConfiguration CreateOrUpdate(this IDscNodeConfigurationOperations operations, string automationAccountName, string nodeConfigurationName, DscNodeConfigurationCreateOrUpdateParameters parameters)
{
- return operations.CreateOrUpdateAsync(resourceGroupName, automationAccountName, nodeConfigurationName, parameters).GetAwaiter().GetResult();
+ return operations.CreateOrUpdateAsync(automationAccountName, nodeConfigurationName, parameters).GetAwaiter().GetResult();
}
///
@@ -145,9 +130,6 @@ public static DscNodeConfiguration CreateOrUpdate(this IDscNodeConfigurationOper
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -160,9 +142,9 @@ public static DscNodeConfiguration CreateOrUpdate(this IDscNodeConfigurationOper
///
/// The cancellation token.
///
- public static async Task CreateOrUpdateAsync(this IDscNodeConfigurationOperations operations, string resourceGroupName, string automationAccountName, string nodeConfigurationName, DscNodeConfigurationCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task CreateOrUpdateAsync(this IDscNodeConfigurationOperations operations, string automationAccountName, string nodeConfigurationName, DscNodeConfigurationCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, nodeConfigurationName, parameters, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(automationAccountName, nodeConfigurationName, parameters, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -175,18 +157,15 @@ public static DscNodeConfiguration CreateOrUpdate(this IDscNodeConfigurationOper
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The filter to apply on the operation.
///
- public static IPage ListByAutomationAccount(this IDscNodeConfigurationOperations operations, string resourceGroupName, string automationAccountName, string filter = default(string))
+ public static IPage ListByAutomationAccount(this IDscNodeConfigurationOperations operations, string automationAccountName, string filter = default(string))
{
- return operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName, filter).GetAwaiter().GetResult();
+ return operations.ListByAutomationAccountAsync(automationAccountName, filter).GetAwaiter().GetResult();
}
///
@@ -196,9 +175,6 @@ public static DscNodeConfiguration CreateOrUpdate(this IDscNodeConfigurationOper
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -208,9 +184,9 @@ public static DscNodeConfiguration CreateOrUpdate(this IDscNodeConfigurationOper
///
/// The cancellation token.
///
- public static async Task> ListByAutomationAccountAsync(this IDscNodeConfigurationOperations operations, string resourceGroupName, string automationAccountName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListByAutomationAccountAsync(this IDscNodeConfigurationOperations operations, string automationAccountName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, filter, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(automationAccountName, filter, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
diff --git a/src/SDKs/Automation/Management.Automation/Generated/DscNodeOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/DscNodeOperations.cs
index 71c857786b96..5a0866f98f8c 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/DscNodeOperations.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/DscNodeOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -54,9 +54,6 @@ internal DscNodeOperations(AutomationClient client)
/// Delete the dsc node identified by node id.
///
///
- ///
- /// The resource group name.
- ///
///
/// Automation account name.
///
@@ -84,17 +81,17 @@ internal DscNodeOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string nodeId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> DeleteWithHttpMessagesAsync(string automationAccountName, string nodeId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -117,7 +114,6 @@ internal DscNodeOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("nodeId", nodeId);
tracingParameters.Add("apiVersion", apiVersion);
@@ -127,7 +123,7 @@ internal DscNodeOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{nodeId}", System.Uri.EscapeDataString(nodeId));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -260,9 +256,6 @@ internal DscNodeOperations(AutomationClient client)
/// Retrieve the dsc node identified by node id.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -290,17 +283,17 @@ internal DscNodeOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string nodeId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetWithHttpMessagesAsync(string automationAccountName, string nodeId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -323,7 +316,6 @@ internal DscNodeOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("nodeId", nodeId);
tracingParameters.Add("apiVersion", apiVersion);
@@ -333,7 +325,7 @@ internal DscNodeOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{nodeId}", System.Uri.EscapeDataString(nodeId));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -466,9 +458,6 @@ internal DscNodeOperations(AutomationClient client)
/// Update the dsc node.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -499,17 +488,17 @@ internal DscNodeOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string nodeId, DscNodeUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> UpdateWithHttpMessagesAsync(string automationAccountName, string nodeId, DscNodeUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -536,7 +525,6 @@ internal DscNodeOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("nodeId", nodeId);
tracingParameters.Add("parameters", parameters);
@@ -547,7 +535,7 @@ internal DscNodeOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{nodeId}", System.Uri.EscapeDataString(nodeId));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -686,9 +674,6 @@ internal DscNodeOperations(AutomationClient client)
/// Retrieve a list of dsc nodes.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -716,17 +701,17 @@ internal DscNodeOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -745,7 +730,6 @@ internal DscNodeOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("filter", filter);
tracingParameters.Add("apiVersion", apiVersion);
@@ -755,7 +739,7 @@ internal DscNodeOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
diff --git a/src/SDKs/Automation/Management.Automation/Generated/DscNodeOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/DscNodeOperationsExtensions.cs
index f9a903b47adc..ab5432ec06de 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/DscNodeOperationsExtensions.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/DscNodeOperationsExtensions.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -28,18 +28,15 @@ public static partial class DscNodeOperationsExtensions
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// Automation account name.
///
///
/// The node id.
///
- public static DscNode Delete(this IDscNodeOperations operations, string resourceGroupName, string automationAccountName, string nodeId)
+ public static DscNode Delete(this IDscNodeOperations operations, string automationAccountName, string nodeId)
{
- return operations.DeleteAsync(resourceGroupName, automationAccountName, nodeId).GetAwaiter().GetResult();
+ return operations.DeleteAsync(automationAccountName, nodeId).GetAwaiter().GetResult();
}
///
@@ -49,9 +46,6 @@ public static DscNode Delete(this IDscNodeOperations operations, string resource
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// Automation account name.
///
@@ -61,9 +55,9 @@ public static DscNode Delete(this IDscNodeOperations operations, string resource
///
/// The cancellation token.
///
- public static async Task DeleteAsync(this IDscNodeOperations operations, string resourceGroupName, string automationAccountName, string nodeId, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task DeleteAsync(this IDscNodeOperations operations, string automationAccountName, string nodeId, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, nodeId, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.DeleteWithHttpMessagesAsync(automationAccountName, nodeId, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -76,18 +70,15 @@ public static DscNode Delete(this IDscNodeOperations operations, string resource
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The node id.
///
- public static DscNode Get(this IDscNodeOperations operations, string resourceGroupName, string automationAccountName, string nodeId)
+ public static DscNode Get(this IDscNodeOperations operations, string automationAccountName, string nodeId)
{
- return operations.GetAsync(resourceGroupName, automationAccountName, nodeId).GetAwaiter().GetResult();
+ return operations.GetAsync(automationAccountName, nodeId).GetAwaiter().GetResult();
}
///
@@ -97,9 +88,6 @@ public static DscNode Get(this IDscNodeOperations operations, string resourceGro
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -109,9 +97,9 @@ public static DscNode Get(this IDscNodeOperations operations, string resourceGro
///
/// The cancellation token.
///
- public static async Task GetAsync(this IDscNodeOperations operations, string resourceGroupName, string automationAccountName, string nodeId, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetAsync(this IDscNodeOperations operations, string automationAccountName, string nodeId, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, nodeId, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, nodeId, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -124,9 +112,6 @@ public static DscNode Get(this IDscNodeOperations operations, string resourceGro
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -136,9 +121,9 @@ public static DscNode Get(this IDscNodeOperations operations, string resourceGro
///
/// Parameters supplied to the update dsc node.
///
- public static DscNode Update(this IDscNodeOperations operations, string resourceGroupName, string automationAccountName, string nodeId, DscNodeUpdateParameters parameters)
+ public static DscNode Update(this IDscNodeOperations operations, string automationAccountName, string nodeId, DscNodeUpdateParameters parameters)
{
- return operations.UpdateAsync(resourceGroupName, automationAccountName, nodeId, parameters).GetAwaiter().GetResult();
+ return operations.UpdateAsync(automationAccountName, nodeId, parameters).GetAwaiter().GetResult();
}
///
@@ -148,9 +133,6 @@ public static DscNode Update(this IDscNodeOperations operations, string resource
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -163,9 +145,9 @@ public static DscNode Update(this IDscNodeOperations operations, string resource
///
/// The cancellation token.
///
- public static async Task UpdateAsync(this IDscNodeOperations operations, string resourceGroupName, string automationAccountName, string nodeId, DscNodeUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task UpdateAsync(this IDscNodeOperations operations, string automationAccountName, string nodeId, DscNodeUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, nodeId, parameters, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.UpdateWithHttpMessagesAsync(automationAccountName, nodeId, parameters, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -178,18 +160,15 @@ public static DscNode Update(this IDscNodeOperations operations, string resource
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The filter to apply on the operation.
///
- public static IPage ListByAutomationAccount(this IDscNodeOperations operations, string resourceGroupName, string automationAccountName, string filter = default(string))
+ public static IPage ListByAutomationAccount(this IDscNodeOperations operations, string automationAccountName, string filter = default(string))
{
- return operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName, filter).GetAwaiter().GetResult();
+ return operations.ListByAutomationAccountAsync(automationAccountName, filter).GetAwaiter().GetResult();
}
///
@@ -199,9 +178,6 @@ public static DscNode Update(this IDscNodeOperations operations, string resource
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -211,9 +187,9 @@ public static DscNode Update(this IDscNodeOperations operations, string resource
///
/// The cancellation token.
///
- public static async Task> ListByAutomationAccountAsync(this IDscNodeOperations operations, string resourceGroupName, string automationAccountName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListByAutomationAccountAsync(this IDscNodeOperations operations, string automationAccountName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, filter, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(automationAccountName, filter, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
diff --git a/src/SDKs/Automation/Management.Automation/Generated/FieldsOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/FieldsOperations.cs
index bfd55e59cb07..72aaab0c7bd6 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/FieldsOperations.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/FieldsOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -54,9 +54,6 @@ internal FieldsOperations(AutomationClient client)
/// Retrieve a list of fields of a given type identified by module name.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -87,17 +84,17 @@ internal FieldsOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListByTypeWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string moduleName, string typeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListByTypeWithHttpMessagesAsync(string automationAccountName, string moduleName, string typeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -124,7 +121,6 @@ internal FieldsOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("moduleName", moduleName);
tracingParameters.Add("typeName", typeName);
@@ -135,7 +131,7 @@ internal FieldsOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/types/{typeName}/fields").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{moduleName}", System.Uri.EscapeDataString(moduleName));
_url = _url.Replace("{typeName}", System.Uri.EscapeDataString(typeName));
diff --git a/src/SDKs/Automation/Management.Automation/Generated/FieldsOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/FieldsOperationsExtensions.cs
index 6cc3bf7dbb4b..db610b1f6da4 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/FieldsOperationsExtensions.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/FieldsOperationsExtensions.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -30,9 +30,6 @@ public static partial class FieldsOperationsExtensions
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -42,9 +39,9 @@ public static partial class FieldsOperationsExtensions
///
/// The name of type.
///
- public static IEnumerable ListByType(this IFieldsOperations operations, string resourceGroupName, string automationAccountName, string moduleName, string typeName)
+ public static IEnumerable ListByType(this IFieldsOperations operations, string automationAccountName, string moduleName, string typeName)
{
- return operations.ListByTypeAsync(resourceGroupName, automationAccountName, moduleName, typeName).GetAwaiter().GetResult();
+ return operations.ListByTypeAsync(automationAccountName, moduleName, typeName).GetAwaiter().GetResult();
}
///
@@ -54,9 +51,6 @@ public static IEnumerable ListByType(this IFieldsOperations operation
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -69,9 +63,9 @@ public static IEnumerable ListByType(this IFieldsOperations operation
///
/// The cancellation token.
///
- public static async Task> ListByTypeAsync(this IFieldsOperations operations, string resourceGroupName, string automationAccountName, string moduleName, string typeName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListByTypeAsync(this IFieldsOperations operations, string automationAccountName, string moduleName, string typeName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListByTypeWithHttpMessagesAsync(resourceGroupName, automationAccountName, moduleName, typeName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListByTypeWithHttpMessagesAsync(automationAccountName, moduleName, typeName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
diff --git a/src/SDKs/Automation/Management.Automation/Generated/HybridRunbookWorkerGroupOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/HybridRunbookWorkerGroupOperations.cs
index 735a1b1cb912..005cc71aa669 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/HybridRunbookWorkerGroupOperations.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/HybridRunbookWorkerGroupOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -54,9 +54,6 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client)
/// Delete a hybrid runbook worker group.
///
///
- ///
- /// The resource group name.
- ///
///
/// Automation account name.
///
@@ -81,17 +78,17 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task DeleteWithHttpMessagesAsync(string automationAccountName, string hybridRunbookWorkerGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -114,7 +111,6 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("hybridRunbookWorkerGroupName", hybridRunbookWorkerGroupName);
tracingParameters.Add("apiVersion", apiVersion);
@@ -124,7 +120,7 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{hybridRunbookWorkerGroupName}", System.Uri.EscapeDataString(hybridRunbookWorkerGroupName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -239,9 +235,6 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client)
/// Retrieve a hybrid runbook worker group.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -269,17 +262,17 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetWithHttpMessagesAsync(string automationAccountName, string hybridRunbookWorkerGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -302,7 +295,6 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("hybridRunbookWorkerGroupName", hybridRunbookWorkerGroupName);
tracingParameters.Add("apiVersion", apiVersion);
@@ -312,7 +304,7 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{hybridRunbookWorkerGroupName}", System.Uri.EscapeDataString(hybridRunbookWorkerGroupName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -445,9 +437,6 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client)
/// Update a hybrid runbook worker group.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -478,17 +467,17 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> UpdateWithHttpMessagesAsync(string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -515,7 +504,6 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("hybridRunbookWorkerGroupName", hybridRunbookWorkerGroupName);
tracingParameters.Add("parameters", parameters);
@@ -526,7 +514,7 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{hybridRunbookWorkerGroupName}", System.Uri.EscapeDataString(hybridRunbookWorkerGroupName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
@@ -665,9 +653,6 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client)
/// Retrieve a list of hybrid runbook worker groups.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -692,17 +677,17 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ResourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName");
}
- if (resourceGroupName != null)
+ if (Client.ResourceGroupName != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$");
+ throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$");
}
}
if (automationAccountName == null)
@@ -721,7 +706,6 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("automationAccountName", automationAccountName);
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
@@ -730,7 +714,7 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client)
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName));
_url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
diff --git a/src/SDKs/Automation/Management.Automation/Generated/HybridRunbookWorkerGroupOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/HybridRunbookWorkerGroupOperationsExtensions.cs
index a3959790f2f0..99b726c8b799 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/HybridRunbookWorkerGroupOperationsExtensions.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/HybridRunbookWorkerGroupOperationsExtensions.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -28,18 +28,15 @@ public static partial class HybridRunbookWorkerGroupOperationsExtensions
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// Automation account name.
///
///
/// The hybrid runbook worker group name
///
- public static void Delete(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName)
+ public static void Delete(this IHybridRunbookWorkerGroupOperations operations, string automationAccountName, string hybridRunbookWorkerGroupName)
{
- operations.DeleteAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName).GetAwaiter().GetResult();
+ operations.DeleteAsync(automationAccountName, hybridRunbookWorkerGroupName).GetAwaiter().GetResult();
}
///
@@ -49,9 +46,6 @@ public static void Delete(this IHybridRunbookWorkerGroupOperations operations, s
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// Automation account name.
///
@@ -61,9 +55,9 @@ public static void Delete(this IHybridRunbookWorkerGroupOperations operations, s
///
/// The cancellation token.
///
- public static async Task DeleteAsync(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task DeleteAsync(this IHybridRunbookWorkerGroupOperations operations, string automationAccountName, string hybridRunbookWorkerGroupName, CancellationToken cancellationToken = default(CancellationToken))
{
- (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ (await operations.DeleteWithHttpMessagesAsync(automationAccountName, hybridRunbookWorkerGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
///
@@ -73,18 +67,15 @@ public static void Delete(this IHybridRunbookWorkerGroupOperations operations, s
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The hybrid runbook worker group name
///
- public static HybridRunbookWorkerGroup Get(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName)
+ public static HybridRunbookWorkerGroup Get(this IHybridRunbookWorkerGroupOperations operations, string automationAccountName, string hybridRunbookWorkerGroupName)
{
- return operations.GetAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName).GetAwaiter().GetResult();
+ return operations.GetAsync(automationAccountName, hybridRunbookWorkerGroupName).GetAwaiter().GetResult();
}
///
@@ -94,9 +85,6 @@ public static HybridRunbookWorkerGroup Get(this IHybridRunbookWorkerGroupOperati
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -106,9 +94,9 @@ public static HybridRunbookWorkerGroup Get(this IHybridRunbookWorkerGroupOperati
///
/// The cancellation token.
///
- public static async Task GetAsync(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetAsync(this IHybridRunbookWorkerGroupOperations operations, string automationAccountName, string hybridRunbookWorkerGroupName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, hybridRunbookWorkerGroupName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -121,9 +109,6 @@ public static HybridRunbookWorkerGroup Get(this IHybridRunbookWorkerGroupOperati
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -133,9 +118,9 @@ public static HybridRunbookWorkerGroup Get(this IHybridRunbookWorkerGroupOperati
///
/// The hybrid runbook worker group
///
- public static HybridRunbookWorkerGroup Update(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupUpdateParameters parameters)
+ public static HybridRunbookWorkerGroup Update(this IHybridRunbookWorkerGroupOperations operations, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupUpdateParameters parameters)
{
- return operations.UpdateAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, parameters).GetAwaiter().GetResult();
+ return operations.UpdateAsync(automationAccountName, hybridRunbookWorkerGroupName, parameters).GetAwaiter().GetResult();
}
///
@@ -145,9 +130,6 @@ public static HybridRunbookWorkerGroup Update(this IHybridRunbookWorkerGroupOper
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -160,9 +142,9 @@ public static HybridRunbookWorkerGroup Update(this IHybridRunbookWorkerGroupOper
///
/// The cancellation token.
///
- public static async Task UpdateAsync(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task UpdateAsync(this IHybridRunbookWorkerGroupOperations operations, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, parameters, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.UpdateWithHttpMessagesAsync(automationAccountName, hybridRunbookWorkerGroupName, parameters, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -175,15 +157,12 @@ public static HybridRunbookWorkerGroup Update(this IHybridRunbookWorkerGroupOper
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
- public static IPage ListByAutomationAccount(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccountName)
+ public static IPage ListByAutomationAccount(this IHybridRunbookWorkerGroupOperations operations, string automationAccountName)
{
- return operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName).GetAwaiter().GetResult();
+ return operations.ListByAutomationAccountAsync(automationAccountName).GetAwaiter().GetResult();
}
///
@@ -193,18 +172,15 @@ public static IPage ListByAutomationAccount(this IHybr
///
/// The operations group for this extension method.
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
///
/// The cancellation token.
///
- public static async Task> ListByAutomationAccountAsync(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListByAutomationAccountAsync(this IHybridRunbookWorkerGroupOperations operations, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(automationAccountName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
diff --git a/src/SDKs/Automation/Management.Automation/Generated/IActivityOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IActivityOperations.cs
index 983494deac51..c20bf2ed5187 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/IActivityOperations.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/IActivityOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -28,9 +28,6 @@ public partial interface IActivityOperations
/// activity name.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -55,15 +52,12 @@ public partial interface IActivityOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string moduleName, string activityName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string automationAccountName, string moduleName, string activityName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Retrieve a list of activities in the module identified by module
/// name.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -85,7 +79,7 @@ public partial interface IActivityOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByModuleWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string moduleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByModuleWithHttpMessagesAsync(string automationAccountName, string moduleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Retrieve a list of activities in the module identified by module
/// name.
diff --git a/src/SDKs/Automation/Management.Automation/Generated/IAgentRegistrationInformationOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IAgentRegistrationInformationOperations.cs
index cb738e2f5bcf..1b0921828adc 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/IAgentRegistrationInformationOperations.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/IAgentRegistrationInformationOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -27,9 +27,6 @@ public partial interface IAgentRegistrationInformationOperations
/// Retrieve the automation agent registration information.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -48,14 +45,11 @@ public partial interface IAgentRegistrationInformationOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Regenerate a primary or secondary agent registration key
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -77,6 +71,6 @@ public partial interface IAgentRegistrationInformationOperations
///
/// Thrown when a required parameter is null
///
- Task> RegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, AgentRegistrationRegenerateKeyParameter parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> RegenerateKeyWithHttpMessagesAsync(string automationAccountName, AgentRegistrationRegenerateKeyParameter parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/src/SDKs/Automation/Management.Automation/Generated/IAutomationAccountOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IAutomationAccountOperations.cs
index e1a6093714e2..d5d882fd5d5a 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/IAutomationAccountOperations.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/IAutomationAccountOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
diff --git a/src/SDKs/Automation/Management.Automation/Generated/IAutomationClient.cs b/src/SDKs/Automation/Management.Automation/Generated/IAutomationClient.cs
index a6decbc71990..490145256d28 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/IAutomationClient.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/IAutomationClient.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -48,39 +48,19 @@ public partial interface IAutomationClient : System.IDisposable
string SubscriptionId { get; set; }
///
- /// Identifies this specific client request.
- ///
- string ClientRequestId { get; set; }
-
- ///
- /// The name of the automation account.
- ///
- System.Guid AutomationAccountName { get; set; }
-
- ///
- /// The name of the resource group within user's subscription.
+ /// The resource group name.
///
- string ResourceGroupName1 { get; set; }
+ string ResourceGroupName { get; set; }
///
- /// subscription id for tenant issuing the request.
- ///
- System.Guid SubscriptionId1 { get; set; }
-
- ///
- /// The name of the software update configuration to be created.
- ///
- string SoftwareUpdateConfigurationName { get; set; }
-
- ///
- /// The Id of the software update configuration run.
+ /// Identifies this specific client request.
///
- System.Guid SoftwareUpdateConfigurationRunId { get; set; }
+ string ClientRequestId { get; set; }
///
- /// The Id of the software update configuration machine run.
+ /// The name of the automation account.
///
- System.Guid SoftwareUpdateConfigurationMachineRunId { get; set; }
+ string AutomationAccountName { get; set; }
///
/// Gets or sets the preferred language for the response.
diff --git a/src/SDKs/Automation/Management.Automation/Generated/ICertificateOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/ICertificateOperations.cs
index abf8dd9e349b..479423b07247 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/ICertificateOperations.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/ICertificateOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -27,9 +27,6 @@ public partial interface ICertificateOperations
/// Delete the certificate.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -48,14 +45,11 @@ public partial interface ICertificateOperations
///
/// Thrown when a required parameter is null
///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string certificateName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task DeleteWithHttpMessagesAsync(string automationAccountName, string certificateName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Retrieve the certificate identified by certificate name.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -77,14 +71,11 @@ public partial interface ICertificateOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string certificateName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string automationAccountName, string certificateName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Create a certificate.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -111,14 +102,11 @@ public partial interface ICertificateOperations
///
/// Thrown when a required parameter is null
///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string certificateName, CertificateCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string certificateName, CertificateCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Update a certificate.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -143,14 +131,11 @@ public partial interface ICertificateOperations
///
/// Thrown when a required parameter is null
///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string certificateName, CertificateUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> UpdateWithHttpMessagesAsync(string automationAccountName, string certificateName, CertificateUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Retrieve a list of certificates.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -169,7 +154,7 @@ public partial interface ICertificateOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Retrieve a list of certificates.
///
diff --git a/src/SDKs/Automation/Management.Automation/Generated/IConnectionOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IConnectionOperations.cs
index daa5d6de0557..117a49547745 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/IConnectionOperations.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/IConnectionOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -27,9 +27,6 @@ public partial interface IConnectionOperations
/// Delete the connection.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -51,14 +48,11 @@ public partial interface IConnectionOperations
///
/// Thrown when a required parameter is null
///
- Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> DeleteWithHttpMessagesAsync(string automationAccountName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Retrieve the connection identified by connection name.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -80,14 +74,11 @@ public partial interface IConnectionOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string automationAccountName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Create or update a connection.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -114,14 +105,11 @@ public partial interface IConnectionOperations
///
/// Thrown when a required parameter is null
///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionName, ConnectionCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string connectionName, ConnectionCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Update a connection.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -146,14 +134,11 @@ public partial interface IConnectionOperations
///
/// Thrown when a required parameter is null
///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionName, ConnectionUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> UpdateWithHttpMessagesAsync(string automationAccountName, string connectionName, ConnectionUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Retrieve a list of connections.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -172,7 +157,7 @@ public partial interface IConnectionOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Retrieve a list of connections.
///
diff --git a/src/SDKs/Automation/Management.Automation/Generated/IConnectionTypeOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IConnectionTypeOperations.cs
index b0278272dfef..a29e5bf1063b 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/IConnectionTypeOperations.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/IConnectionTypeOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -27,9 +27,6 @@ public partial interface IConnectionTypeOperations
/// Delete the connectiontype.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -48,14 +45,11 @@ public partial interface IConnectionTypeOperations
///
/// Thrown when a required parameter is null
///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionTypeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task DeleteWithHttpMessagesAsync(string automationAccountName, string connectionTypeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Retrieve the connectiontype identified by connectiontype name.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -77,14 +71,11 @@ public partial interface IConnectionTypeOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionTypeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string automationAccountName, string connectionTypeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Create a connectiontype.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -111,14 +102,11 @@ public partial interface IConnectionTypeOperations
///
/// Thrown when a required parameter is null
///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionTypeName, ConnectionTypeCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string connectionTypeName, ConnectionTypeCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Retrieve a list of connectiontypes.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -137,7 +125,7 @@ public partial interface IConnectionTypeOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Retrieve a list of connectiontypes.
///
diff --git a/src/SDKs/Automation/Management.Automation/Generated/ICredentialOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/ICredentialOperations.cs
index d2ab6672733a..7b555c801a25 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/ICredentialOperations.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/ICredentialOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -27,9 +27,6 @@ public partial interface ICredentialOperations
/// Delete the credential.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -48,14 +45,11 @@ public partial interface ICredentialOperations
///
/// Thrown when a required parameter is null
///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string credentialName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task DeleteWithHttpMessagesAsync(string automationAccountName, string credentialName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Retrieve the credential identified by credential name.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -77,14 +71,11 @@ public partial interface ICredentialOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string credentialName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string automationAccountName, string credentialName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Create a credential.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -111,14 +102,11 @@ public partial interface ICredentialOperations
///
/// Thrown when a required parameter is null
///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string credentialName, CredentialCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string credentialName, CredentialCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Update a credential.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -143,14 +131,11 @@ public partial interface ICredentialOperations
///
/// Thrown when a required parameter is null
///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string credentialName, CredentialUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> UpdateWithHttpMessagesAsync(string automationAccountName, string credentialName, CredentialUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Retrieve a list of credentials.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -169,7 +154,7 @@ public partial interface ICredentialOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Retrieve a list of credentials.
///
diff --git a/src/SDKs/Automation/Management.Automation/Generated/IDscCompilationJobOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IDscCompilationJobOperations.cs
index b2dfb472a7e2..48502172c016 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/IDscCompilationJobOperations.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/IDscCompilationJobOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -27,9 +27,6 @@ public partial interface IDscCompilationJobOperations
/// Creates the Dsc compilation job of the configuration.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -54,15 +51,12 @@ public partial interface IDscCompilationJobOperations
///
/// Thrown when a required parameter is null
///
- Task> CreateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid compilationJobId, DscCompilationJobCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CreateWithHttpMessagesAsync(string automationAccountName, System.Guid compilationJobId, DscCompilationJobCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Retrieve the Dsc configuration compilation job identified by job
/// id.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -84,14 +78,11 @@ public partial interface IDscCompilationJobOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid compilationJobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string automationAccountName, System.Guid compilationJobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Retrieve a list of dsc compilation jobs.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -113,14 +104,11 @@ public partial interface IDscCompilationJobOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Retrieve the job stream identified by job stream id.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -145,7 +133,7 @@ public partial interface IDscCompilationJobOperations
///
/// Thrown when a required parameter is null
///
- Task> GetStreamWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid jobId, string jobStreamId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetStreamWithHttpMessagesAsync(string automationAccountName, System.Guid jobId, string jobStreamId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Retrieve a list of dsc compilation jobs.
///
diff --git a/src/SDKs/Automation/Management.Automation/Generated/IDscConfigurationOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IDscConfigurationOperations.cs
index 4150f4ceb967..070366e8600e 100644
--- a/src/SDKs/Automation/Management.Automation/Generated/IDscConfigurationOperations.cs
+++ b/src/SDKs/Automation/Management.Automation/Generated/IDscConfigurationOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
+//
namespace Microsoft.Azure.Management.Automation
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -28,9 +28,6 @@ public partial interface IDscConfigurationOperations
/// Delete the dsc configuration identified by configuration name.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -49,14 +46,11 @@ public partial interface IDscConfigurationOperations
///
/// Thrown when a required parameter is null
///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string configurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task DeleteWithHttpMessagesAsync(string automationAccountName, string configurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Retrieve the configuration identified by configuration name.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -78,14 +72,11 @@ public partial interface IDscConfigurationOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string configurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string automationAccountName, string configurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Create the configuration identified by configuration name.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -110,14 +101,11 @@ public partial interface IDscConfigurationOperations
///
/// Thrown when a required parameter is null
///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string configurationName, DscConfigurationCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string configurationName, DscConfigurationCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Retrieve the configuration script identified by configuration name.
///
///
- ///
- /// The resource group name.
- ///
///
/// The automation account name.
///
@@ -139,14 +127,11 @@ public partial interface IDscConfigurationOperations
///
/// Thrown when a required parameter is null
///
- Task> GetContentWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string configurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetContentWithHttpMessagesAsync(string automationAccountName, string configurationName, Dictionary