diff --git a/src/ResourceManager/Automation/AzureRM.Automation.psd1 b/src/ResourceManager/Automation/AzureRM.Automation.psd1
index 4cea47f4b4d2..5df3ed22b355 100644
--- a/src/ResourceManager/Automation/AzureRM.Automation.psd1
+++ b/src/ResourceManager/Automation/AzureRM.Automation.psd1
@@ -129,7 +129,13 @@ CmdletsToExport = 'Get-AzureRMAutomationHybridWorkerGroup',
'Start-AzureRmAutomationDscNodeConfigurationDeployment',
'Stop-AzureRmAutomationDscNodeConfigurationDeployment',
'Get-AzureRmAutomationDscNodeConfigurationDeploymentSchedule',
- 'Get-AzureRmAutomationDscNodeConfigurationDeployment'
+ 'Get-AzureRmAutomationDscNodeConfigurationDeployment',
+ # Update Management Cmdlets
+ 'New-AzureRmAutomationSoftwareUpdateConfiguration',
+ 'Get-AzureRmAutomationSoftwareUpdateConfiguration',
+ 'Remove-AzureRmAutomationSoftwareUpdateConfiguration',
+ 'Get-AzureRmAutomationSoftwareUpdateRun',
+ 'Get-AzureRmAutomationSoftwareUpdateMachineRun'
# Variables to export from this module
# VariablesToExport = @()
diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/Commands.Automation.Test.csproj b/src/ResourceManager/Automation/Commands.Automation.Test/Commands.Automation.Test.csproj
index bf38ec3064e3..1fe1a1430795 100644
--- a/src/ResourceManager/Automation/Commands.Automation.Test/Commands.Automation.Test.csproj
+++ b/src/ResourceManager/Automation/Commands.Automation.Test/Commands.Automation.Test.csproj
@@ -68,8 +68,8 @@
..\..\..\packages\Microsoft.Azure.Test.Framework.1.0.6179.26854-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll
- False
- ..\..\..\packages\Microsoft.Azure.Test.HttpRecorder.1.6.7-preview\lib\net45\Microsoft.Azure.Test.HttpRecorder.dll
+ ..\..\..\packages\Microsoft.Azure.Test.HttpRecorder.1.8.1\lib\net452\Microsoft.Azure.Test.HttpRecorder.dll
+ True
@@ -144,6 +144,7 @@
+
@@ -250,8 +251,60 @@
PreserveNewest
+
+ PreserveNewest
+
+
+
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
\ No newline at end of file
diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/ScenarioTests/AutomationScenarioTestsBase.cs b/src/ResourceManager/Automation/Commands.Automation.Test/ScenarioTests/AutomationScenarioTestsBase.cs
index e3e733b186d0..0f16ce6161f4 100644
--- a/src/ResourceManager/Automation/Commands.Automation.Test/ScenarioTests/AutomationScenarioTestsBase.cs
+++ b/src/ResourceManager/Automation/Commands.Automation.Test/ScenarioTests/AutomationScenarioTestsBase.cs
@@ -12,11 +12,17 @@
// limitations under the License.
// ----------------------------------------------------------------------------------
+using System;
+using System.Linq;
using Microsoft.Azure.Commands.Common.Authentication;
using Microsoft.Azure.Management.Automation;
using Microsoft.Azure.Test;
using Microsoft.WindowsAzure.Commands.ScenarioTest;
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
+using Microsoft.Azure.Test.HttpRecorder;
+using System.Reflection;
+using Microsoft.Rest;
+using System.Net.Http;
namespace Microsoft.Azure.Commands.Automation.Test
{
@@ -38,6 +44,8 @@ protected void SetupManagementClients()
protected void RunPowerShellTest(params string[] scripts)
{
+ const string RootNamespace = "ScenarioTests";
+
using (UndoContext context = UndoContext.Current)
{
context.Start(TestUtilities.GetCallingClass(2), TestUtilities.GetCurrentMethodName(2));
@@ -46,8 +54,13 @@ protected void RunPowerShellTest(params string[] scripts)
helper.SetupEnvironment(AzureModule.AzureResourceManager);
+
+ var psModuleFile = this.GetType().FullName.Contains(RootNamespace) ?
+ this.GetType().FullName.Split(new[] { RootNamespace }, StringSplitOptions.RemoveEmptyEntries).Last().Replace(".", "\\") :
+ $"\\{this.GetType().Name}";
+
helper.SetupModules(AzureModule.AzureResourceManager,
- "ScenarioTests\\" + this.GetType().Name + ".ps1",
+ $"{RootNamespace}{psModuleFile}.ps1",
helper.RMProfileModule,
helper.GetRMModulePath(@"AzureRM.Automation.psd1"));
@@ -57,7 +70,52 @@ protected void RunPowerShellTest(params string[] scripts)
protected AutomationClient GetAutomationManagementClient()
{
- return TestBase.GetServiceClient(new CSMTestEnvironmentFactory());
+ AutomationClient client;
+ TestEnvironment currentEnvironment = new CSMTestEnvironmentFactory().GetTestEnvironment();
+ var credentials = currentEnvironment.AuthorizationContext.TokenCredentials[TokenAudience.Management];
+
+ HttpMockServer server;
+
+ try
+ {
+ server = HttpMockServer.CreateInstance();
+ }
+ catch (ApplicationException)
+ {
+ // mock server has never been initialized, we will need to initialize it.
+ HttpMockServer.Initialize("TestEnvironment", "InitialCreation");
+ server = HttpMockServer.CreateInstance();
+ }
+
+ if (currentEnvironment.UsesCustomUri())
+ {
+ ConstructorInfo constructor = typeof(AutomationClient).GetConstructor(new Type[] { typeof(Uri), typeof(ServiceClientCredentials), typeof(DelegatingHandler[]) });
+ client = constructor.Invoke(new object[] { currentEnvironment.BaseUri, credentials, new DelegatingHandler[] { server } }) as AutomationClient;
+ }
+ else
+ {
+ ConstructorInfo constructor = typeof(AutomationClient).GetConstructor(new Type[] { typeof(ServiceClientCredentials) });
+ client = constructor.Invoke(new object[] { credentials }) as AutomationClient;
+ }
+
+ PropertyInfo subId = typeof(AutomationClient).GetProperty("SubscriptionId", typeof(string));
+ if (subId != null)
+ {
+ subId.SetValue(client, currentEnvironment.SubscriptionId);
+ }
+
+ if (HttpMockServer.Mode == HttpRecorderMode.Playback)
+ {
+ PropertyInfo initialTimeout = typeof(AutomationClient).GetProperty("LongRunningOperationInitialTimeout", typeof(int));
+ PropertyInfo retryTimeout = typeof(AutomationClient).GetProperty("LongRunningOperationRetryTimeout", typeof(int));
+ if (initialTimeout != null && retryTimeout != null)
+ {
+ initialTimeout.SetValue(client, 0);
+ retryTimeout.SetValue(client, 0);
+ }
+ }
+
+ return client;
}
}
}
diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/ScenarioTests/UpdateManagement/UpdateManagementTests.cs b/src/ResourceManager/Automation/Commands.Automation.Test/ScenarioTests/UpdateManagement/UpdateManagementTests.cs
new file mode 100644
index 000000000000..74be11b0292e
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation.Test/ScenarioTests/UpdateManagement/UpdateManagementTests.cs
@@ -0,0 +1,164 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+namespace Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement
+{
+ using Microsoft.Azure.Commands.Automation.Test;
+ using Microsoft.WindowsAzure.Commands.ScenarioTest;
+ using Xunit;
+
+ public class UpdateManagementTests : AutomationScenarioTestsBase
+ {
+ public UpdateManagementTests(Xunit.Abstractions.ITestOutputHelper output)
+ {
+ ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ [Trait(Category.Service, Category.Automation)]
+ public void CreateWindowsOneTimeSUCWithDefaults()
+ {
+ RunPowerShellTest("Test-CreateWindowsOneTimeSoftwareUpdateConfigurationWithDefaults");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ [Trait(Category.Service, Category.Automation)]
+ public void CreateLinuxOneTimeSUCWithDefaults()
+ {
+ RunPowerShellTest("Test-CreateLinuxOneTimeSoftwareUpdateConfigurationWithDefaults");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ [Trait(Category.Service, Category.Automation)]
+ public void CreateWindowsOneTimeSUCWithAllOption()
+ {
+ RunPowerShellTest("Test-CreateWindowsOneTimeSoftwareUpdateConfigurationWithAllOption");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ [Trait(Category.Service, Category.Automation)]
+ public void CreateLinuxOneTimeSUCWithAllOption()
+ {
+ RunPowerShellTest("Test-CreateLinuxOneTimeSoftwareUpdateConfigurationWithAllOption");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ [Trait(Category.Service, Category.Automation)]
+ public void CreateLinuxOneTimeSUCNonAzureOnly()
+ {
+ RunPowerShellTest("Test-CreateLinuxOneTimeSoftwareUpdateConfigurationNonAzureOnly");
+ }
+
+ [Fact(Skip = "No recording generated")]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ [Trait(Category.Service, Category.Automation)]
+ public void CreateLinuxOneTimeSUCNoTarget()
+ {
+ RunPowerShellTest("Test-CreateLinuxOneTimeSoftwareUpdateConfigurationNoTargets");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ [Trait(Category.Service, Category.Automation)]
+ public void GetAllSUCs()
+ {
+ RunPowerShellTest("Test-GetAllSoftwareUpdateConfigurations");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ [Trait(Category.Service, Category.Automation)]
+ public void GetAllSUCsForVM()
+ {
+ RunPowerShellTest("Test-GetSoftwareUpdateConfigurationsForVM");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ [Trait(Category.Service, Category.Automation)]
+ public void DeleteSUC()
+ {
+ RunPowerShellTest("Test-DeleteSoftwareUpdateConfiguration");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ [Trait(Category.Service, Category.Automation)]
+ public void GetAllRuns()
+ {
+ RunPowerShellTest("Test-GetAllSoftwareUpdateRuns");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ [Trait(Category.Service, Category.Automation)]
+ public void GetAllRunsWithFilters()
+ {
+ RunPowerShellTest("Test-GetAllSoftwareUpdateRunsWithFilters");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ [Trait(Category.Service, Category.Automation)]
+ public void GetAllRunsWithFiltersNoResults()
+ {
+ RunPowerShellTest("Test-GetAllSoftwareUpdateRunsWithFiltersNoResults");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ [Trait(Category.Service, Category.Automation)]
+ public void GetAllMachineRuns()
+ {
+ RunPowerShellTest("Test-GetAllSoftwareUpdateMachineRuns");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ [Trait(Category.Service, Category.Automation)]
+ public void GetAllMachineRunsWithFilters()
+ {
+ RunPowerShellTest("Test-GetAllSoftwareUpdateMachineRunsWithFilters");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ [Trait(Category.Service, Category.Automation)]
+ public void GetAllMachineRunsWithFiltersNoResults()
+ {
+ RunPowerShellTest("Test-GetAllSoftwareUpdateMachineRunsWithFiltersNoResults");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ [Trait(Category.Service, Category.Automation)]
+ public void CreateLinuxWeeklySUC()
+ {
+ RunPowerShellTest("Test-CreateLinuxWeeklySoftwareUpdateConfiguration");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ [Trait(Category.Service, Category.Automation)]
+ public void CreateWindowsMonthlySUC()
+ {
+ RunPowerShellTest("Test-CreateWindowsMonthlySoftwareUpdateConfiguration");
+ }
+ }
+}
diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/ScenarioTests/UpdateManagement/UpdateManagementTests.ps1 b/src/ResourceManager/Automation/Commands.Automation.Test/ScenarioTests/UpdateManagement/UpdateManagementTests.ps1
new file mode 100644
index 000000000000..831450f5b492
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation.Test/ScenarioTests/UpdateManagement/UpdateManagementTests.ps1
@@ -0,0 +1,426 @@
+$rg = "mo-resources-eus"
+$aa = "mo-aaa-eus2"
+$azureVMIdsW = @(
+ "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01",
+ "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02"
+ )
+
+$azureVMIdsL = @(
+ "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-01",
+ "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-02"
+ )
+
+$nonAzurecomputers = @("server-01", "server-02")
+
+<#
+WaitForProvisioningState
+#>
+function WaitForProvisioningState() {
+ param([string] $Name, [string] $ExpectedState)
+ $state = ""
+ $timeoutInSeconds = 120
+ $retries = $timeoutInSeconds / 5
+ while($state -ne $ExpectedState -and $retries -gt 0) {
+ $suc = Get-AzureRmAutomationSoftwareUpdateConfiguration -ResourceGroupName $rg `
+ -AutomationAccountName $aa `
+ -Name $Name
+ $state = $suc.ProvisioningState
+ Write-Output "SoftwareUpdateConfiguration Provisioning state: $state"
+ sleep -Seconds 5
+ $retries = $retries - 1
+ }
+
+ Assert-True {$retries -gt 0} "Timout waiting for provisioning state to reach '$ExpectedState'"
+}
+
+<#
+Test-CreateWindowsOneTimeSoftwareUpdateConfigurationWithDefaults
+#>
+function Test-CreateWindowsOneTimeSoftwareUpdateConfigurationWithDefaults {
+ $name = "mo-onetime-01"
+ $startTime = ([DateTime]::Now).AddMinutes(10)
+ $s = New-AzureRmAutomationSchedule -ResourceGroupName $rg `
+ -AutomationAccountName $aa `
+ -Name $name `
+ -Description test-OneTime `
+ -OneTime `
+ -StartTime $startTime `
+ -ForUpdate
+
+ $suc = New-AzureRmAutomationSoftwareUpdateConfiguration -ResourceGroupName $rg `
+ -AutomationAccountName $aa `
+ -Schedule $s `
+ -Windows `
+ -AzureVMResourceIds $azureVMIdsW `
+ -Duration (New-TimeSpan -Hours 2)
+
+ Assert-NotNull $suc "New-AzureRmAutomationSoftwareUpdateConfiguration returned null"
+ Assert-AreEqual $suc.Name $name "Name of created software update configuration didn't match given name"
+
+ WaitForProvisioningState $name "Succeeded"
+}
+
+<#
+Test-CreateLinuxOneTimeSoftwareUpdateConfigurationWithDefaults
+#>
+function Test-CreateLinuxOneTimeSoftwareUpdateConfigurationWithDefaults {
+ $name = "mo-onetime-02"
+ $startTime = ([DateTime]::Now).AddMinutes(10)
+ $s = New-AzureRmAutomationSchedule -ResourceGroupName $rg `
+ -AutomationAccountName $aa `
+ -Name $name `
+ -Description test-OneTime `
+ -OneTime `
+ -StartTime $startTime `
+ -ForUpdate
+
+ $suc = New-AzureRmAutomationSoftwareUpdateConfiguration -ResourceGroupName $rg `
+ -AutomationAccountName $aa `
+ -Schedule $s `
+ -Linux `
+ -AzureVMResourceIds $azureVMIdsL `
+ -Duration (New-TimeSpan -Hours 2)
+
+ Assert-NotNull $suc "New-AzureRmAutomationSoftwareUpdateConfiguration returned null"
+ Assert-AreEqual $suc.Name $name "Name of created software update configuration didn't match given name"
+
+ WaitForProvisioningState $name "Succeeded"
+}
+
+<#
+Test-CreateWindowsOneTimeSoftwareUpdateConfigurationWithAllOption
+#>
+function Test-CreateWindowsOneTimeSoftwareUpdateConfigurationWithAllOption {
+ $name = "mo-onetime-03"
+ $startTime = ([DateTime]::Now).AddMinutes(10)
+ $s = New-AzureRmAutomationSchedule -ResourceGroupName $rg `
+ -AutomationAccountName $aa `
+ -Name $name `
+ -Description test-OneTime `
+ -OneTime `
+ -StartTime $startTime `
+ -ForUpdate
+
+ $suc = New-AzureRmAutomationSoftwareUpdateConfiguration -ResourceGroupName $rg `
+ -AutomationAccountName $aa `
+ -Schedule $s `
+ -Windows `
+ -AzureVMResourceIds $azureVMIdsW `
+ -NonAzureComputers $nonAzurecomputers `
+ -Duration (New-TimeSpan -Hours 2) `
+ -IncludedUpdateClassifications Security,UpdateRollup `
+ -ExcludedKbNumbers KB01,KB02 `
+ -IncludedKbNumbers KB100
+
+ Assert-NotNull $suc "New-AzureRmAutomationSoftwareUpdateConfiguration returned null"
+ Assert-AreEqual $suc.Name $name "Name of created software update configuration didn't match given name"
+
+ WaitForProvisioningState $name "Failed"
+}
+
+<#
+Test-CreateLinuxOneTimeSoftwareUpdateConfigurationWithAllOption
+#>
+function Test-CreateLinuxOneTimeSoftwareUpdateConfigurationWithAllOption {
+ $name = "mo-onetime-04"
+ $startTime = ([DateTime]::Now).AddMinutes(10)
+ $s = New-AzureRmAutomationSchedule -ResourceGroupName $rg `
+ -AutomationAccountName $aa `
+ -Name $name `
+ -Description test-OneTime `
+ -OneTime `
+ -StartTime $startTime `
+ -ForUpdate
+
+ $suc = New-AzureRmAutomationSoftwareUpdateConfiguration -ResourceGroupName $rg `
+ -AutomationAccountName $aa `
+ -Schedule $s `
+ -Linux `
+ -AzureVMResourceIds $azureVMIdsL `
+ -NonAzureComputers $nonAzurecomputers `
+ -Duration (New-TimeSpan -Hours 2) `
+ -IncludedPackageClassifications Security,Critical `
+ -ExcludedPackageNameMasks Mask01,Mask02 `
+ -IncludedPackageNameMasks Mask100
+
+ Assert-NotNull $suc "New-AzureRmAutomationSoftwareUpdateConfiguration returned null"
+ Assert-AreEqual $suc.Name $name "Name of created software update configuration didn't match given name"
+
+ WaitForProvisioningState $name "Failed"
+}
+
+<#
+Test-CreateLinuxOneTimeSoftwareUpdateConfigurationNonAzureOnly
+#>
+function Test-CreateLinuxOneTimeSoftwareUpdateConfigurationNonAzureOnly {
+ $name = "mo-onetime-05"
+ $startTime = ([DateTime]::Now).AddMinutes(10)
+ $s = New-AzureRmAutomationSchedule -ResourceGroupName $rg `
+ -AutomationAccountName $aa `
+ -Name $name `
+ -Description test-OneTime `
+ -OneTime `
+ -StartTime $startTime `
+ -ForUpdate
+
+ $suc = New-AzureRmAutomationSoftwareUpdateConfiguration -ResourceGroupName $rg `
+ -AutomationAccountName $aa `
+ -Schedule $s `
+ -Linux `
+ -NonAzureComputers $nonAzurecomputers `
+ -Duration (New-TimeSpan -Hours 2) `
+ -IncludedPackageClassifications Security,Critical `
+ -ExcludedPackageNameMasks Mask01,Mask02 `
+ -IncludedPackageNameMasks Mask100
+
+ Assert-NotNull $suc "New-AzureRmAutomationSoftwareUpdateConfiguration returned null"
+ Assert-AreEqual $suc.Name $name "Name of created software update configuration didn't match given name"
+
+ WaitForProvisioningState $name "Failed"
+}
+
+<#
+Test-CreateLinuxOneTimeSoftwareUpdateConfigurationNoTargets
+#>
+function Test-CreateLinuxOneTimeSoftwareUpdateConfigurationNoTargets {
+ $name = "mo-onetime-05"
+ $startTime = ([DateTime]::Now).AddMinutes(10)
+ $s = New-AzureRmAutomationSchedule -ResourceGroupName $rg `
+ -AutomationAccountName $aa `
+ -Name $name `
+ -Description test-OneTime `
+ -OneTime `
+ -StartTime $startTime `
+ -ForUpdate
+
+ Assert-Throws {
+ $suc = New-AzureRmAutomationSoftwareUpdateConfiguration -ResourceGroupName $rg `
+ -AutomationAccountName $aa `
+ -Schedule $s `
+ -Linux `
+ -Duration (New-TimeSpan -Hours 2) `
+ -IncludedPackageClassifications Security,Critical `
+ -ExcludedPackageNameMasks Mask01,Mask02 `
+ -IncludedPackageNameMasks Mask100 `
+ -PassThru -ErrorAction Stop
+ }
+}
+
+
+<#
+Test-GetAllSoftwareUpdateConfigurations
+#>
+function Test-GetAllSoftwareUpdateConfigurations {
+ $sucs = Get-AzureRmAutomationSoftwareUpdateConfiguration -ResourceGroupName $rg `
+ -AutomationAccountName $aa
+ Assert-AreEqual $sucs.Count 7 "Get all software update configuration didn't retrieve the expected number of items"
+}
+
+
+<#
+Test-GetSoftwareUpdateConfigurationsForVM
+#>
+function Test-GetSoftwareUpdateConfigurationsForVM {
+ $sucs = Get-AzureRmAutomationSoftwareUpdateConfiguration -ResourceGroupName $rg `
+ -AutomationAccountName $aa `
+ -AzureVMResourceId $azureVMIdsW[0]
+ Assert-AreEqual $sucs.Count 2 "Get software update configurations for VM didn't return expected number of items"
+}
+
+
+<#
+Test-DeleteSoftwareUpdateConfiguration
+#>
+function Test-DeleteSoftwareUpdateConfiguration {
+ $name = "mo-delete-it"
+ $startTime = ([DateTime]::Now).AddMinutes(10)
+ $s = New-AzureRmAutomationSchedule -ResourceGroupName $rg `
+ -AutomationAccountName $aa `
+ -Name $name `
+ -Description test-OneTime `
+ -OneTime `
+ -StartTime $startTime `
+ -ForUpdate
+
+ New-AzureRmAutomationSoftwareUpdateConfiguration -ResourceGroupName $rg `
+ -AutomationAccountName $aa `
+ -Schedule $s `
+ -Windows `
+ -AzureVMResourceIds $azureVMIdsW `
+ -Duration (New-TimeSpan -Hours 2)
+ WaitForProvisioningState $name "Succeeded"
+ Remove-AzureRmAutomationSoftwareUpdateConfiguration -ResourceGroupName $rg `
+ -AutomationAccountName $aa `
+ -Name $name
+ sleep -Seconds 5
+ $suc = Get-AzureRmAutomationSoftwareUpdateConfiguration -ResourceGroupName $rg `
+ -AutomationAccountName $aa `
+ -Name $name
+ Assert-AreEqual $suc $null "Failed to delete software update configuration"
+}
+
+<#
+Test-GetAllSoftwareUpdateRuns
+#>
+function Test-GetAllSoftwareUpdateRuns {
+ $runs = Get-AzureRmAutomationSoftwareUpdateRun -ResourceGroupName $rg `
+ -AutomationAccountName $aa
+
+ Assert-AreEqual $runs.Count 13 "Get software update configurations runs didn't return expected number of items"
+}
+
+
+<#
+Test-GetAllSoftwareUpdateRunsWithFilters
+#>
+function Test-GetAllSoftwareUpdateRunsWithFilters {
+ $runs = Get-AzureRmAutomationSoftwareUpdateRun -ResourceGroupName $rg `
+ -AutomationAccountName $aa `
+ -OperatingSystem Windows `
+ -StartTime ([DateTime]::Parse("2018-05-22T16:40:00")) `
+ -Status Succeeded
+
+ Assert-AreEqual $runs.Count 2 "Get software update configurations runs with filters didn't return expected number of items"
+}
+
+<#
+Test-GetAllSoftwareUpdateRunsWithFiltersNoResults
+#>
+function Test-GetAllSoftwareUpdateRunsWithFiltersNoResults {
+ $runs = Get-AzureRmAutomationSoftwareUpdateRun -ResourceGroupName $rg `
+ -AutomationAccountName $aa `
+ -OperatingSystem Windows `
+ -StartTime ([DateTime]::Parse("2018-05-22T16:40:00.0000000-07:00")) `
+ -Status Failed
+
+ Assert-AreEqual $runs.Count 0 "Get software update configurations runs with filters and no results didn't return expected number of items"
+}
+
+
+<#
+Test-GetAllSoftwareUpdateMachineRuns
+#>
+function Test-GetAllSoftwareUpdateMachineRuns {
+ $runs = Get-AzureRmAutomationSoftwareUpdateMachineRun -ResourceGroupName $rg `
+ -AutomationAccountName $aa
+
+ Assert-AreEqual $runs.Count 18 "Get software update configurations machine runs didn't return expected number of items"
+}
+
+<#
+Test-GetAllSoftwareUpdateMachineRunsWithFilters
+#>
+function Test-GetAllSoftwareUpdateMachineRunsWithFilters {
+ $runs = Get-AzureRmAutomationSoftwareUpdateMachineRun -ResourceGroupName $rg `
+ -AutomationAccountName $aa `
+ -SoftwareUpdateRunId b4ec6c22-92bf-4f8a-b2d9-20d8446e618a `
+ -Status Succeeded `
+ -TargetComputer $azureVMIdsW[0]
+
+ Assert-AreEqual $runs.Count 1 "Get software update configurations machine runs with filters didn't return expected number of items"
+}
+
+<#
+Test-GetAllSoftwareUpdateMachineRunsWithFiltersNoResults
+#>
+function Test-GetAllSoftwareUpdateMachineRunsWithFiltersNoResults {
+ $runs = Get-AzureRmAutomationSoftwareUpdateMachineRun -ResourceGroupName $rg `
+ -AutomationAccountName $aa `
+ -SoftwareUpdateRunId b4ec6c22-92bf-4f8a-b2d9-20d8446e618a `
+ -Status Succeeded `
+ -TargetComputer foo
+
+ Assert-AreEqual $runs.Count 0 "Get software update configurations machine runs with filters and no results didn't return expected number of items"
+}
+
+<#
+Test-CreateLinuxWeeklySoftwareUpdateConfigurationWithDefaults
+#>
+function Test-CreateLinuxWeeklySoftwareUpdateConfiguration() {
+ $name = "mo-weekly-01"
+ $startTime = ([DateTime]::Now).AddMinutes(10)
+ $duration = New-TimeSpan -Hours 2
+ $s = New-AzureRmAutomationSchedule -ResourceGroupName $rg `
+ -AutomationAccountName $aa `
+ -Name $name `
+ -Description test-OneTime `
+ -WeekInterval 1 `
+ -DaysOfWeek Friday `
+ -StartTime $startTime `
+ -ForUpdate
+
+ $suc = New-AzureRmAutomationSoftwareUpdateConfiguration -ResourceGroupName $rg `
+ -AutomationAccountName $aa `
+ -Schedule $s `
+ -Linux `
+ -AzureVMResourceIds $azureVMIdsL `
+ -Duration $duration `
+ -IncludedPackageClassifications Other,Security `
+ -ExcludedPackageNameMasks @("Mask-exc-01", "Mask-exc-02")
+
+
+ Assert-NotNull $suc "New-AzureRmAutomationSoftwareUpdateConfiguration returned null"
+ Assert-AreEqual $suc.Name $name "Name of created software update configuration didn't match given name"
+ Assert-NotNull $suc.UpdateConfiguration "UpdateConfiguration of the software update configuration object is null"
+ Assert-NotNull $suc.ScheduleConfiguration "ScheduleConfiguration of the software update configuration object is null"
+ Assert-AreEqual $suc.ProvisioningState "Provisioning" "software update configuration provisioning state was not expected"
+ Assert-AreEqual $suc.UpdateConfiguration.OperatingSystem "Linux" "UpdateConfiguration Operating system is not expected"
+ Assert-AreEqual $suc.UpdateConfiguration.Duration $duration "UpdateConfiguration Duration is not expected"
+ Assert-AreEqual $suc.UpdateConfiguration.AzureVirtualMachines.Count 2 "UpdateConfiguration created doesn't have the correct number of azure virtual machines"
+ Assert-AreEqual $suc.UpdateConfiguration.NonAzureComputers.Count 0 "UpdateConfiguration doesn't have correct value of NonAzureComputers"
+ Assert-NotNull $suc.UpdateConfiguration.Linux "Linux property of UpdateConfiguration is null"
+ Assert-AreEqual $suc.UpdateConfiguration.Linux.IncludedPackageClassifications.Count 2 "Invalid UpdateConfiguration.Linux.IncludedPackageClassifications.Count"
+ Assert-AreEqual $suc.UpdateConfiguration.Linux.IncludedPackageClassifications[0] Security "Invalid value of UpdateConfiguration.Linux.IncludedPackageClassifications[0]"
+ Assert-AreEqual $suc.UpdateConfiguration.Linux.IncludedPackageClassifications[1] Other "Invalid value of UpdateConfiguration.Linux.IncludedPackageClassifications[1]"
+ Assert-AreEqual $suc.UpdateConfiguration.Linux.ExcludedPackageNameMasks.Count 2
+ Assert-AreEqual $suc.UpdateConfiguration.Linux.ExcludedPackageNameMasks[0] "Mask-exc-01"
+ Assert-AreEqual $suc.UpdateConfiguration.Linux.ExcludedPackageNameMasks[1] "Mask-exc-02"
+
+ WaitForProvisioningState $name "Succeeded"
+}
+
+<#
+Test-CreateWindowsMonthlySoftwareUpdateConfiguration
+#>
+function Test-CreateWindowsMonthlySoftwareUpdateConfiguration() {
+ $name = "mo-monthly-01"
+ $startTime = ([DateTime]::Now).AddMinutes(10)
+ $duration = New-TimeSpan -Hours 2
+ $s = New-AzureRmAutomationSchedule -ResourceGroupName $rg `
+ -AutomationAccountName $aa `
+ -Name $name `
+ -Description test-OneTime `
+ -MonthInterval 1 `
+ -DaysOfMonth Two,Five `
+ -StartTime $startTime `
+ -ForUpdate
+
+ $suc = New-AzureRmAutomationSoftwareUpdateConfiguration -ResourceGroupName $rg `
+ -AutomationAccountName $aa `
+ -Schedule $s `
+ -Windows `
+ -AzureVMResourceIds $azureVMIdsW `
+ -Duration $duration `
+ -IncludedUpdateClassifications Critical,Security `
+ -ExcludedKbNumbers @("KB-01", "KB-02")
+
+
+ Assert-NotNull $suc "New-AzureRmAutomationSoftwareUpdateConfiguration returned null"
+ Assert-AreEqual $suc.Name $name "Name of created software update configuration didn't match given name"
+ Assert-NotNull $suc.UpdateConfiguration "UpdateConfiguration of the software update configuration object is null"
+ Assert-NotNull $suc.ScheduleConfiguration "ScheduleConfiguration of the software update configuration object is null"
+ Assert-AreEqual $suc.ProvisioningState "Provisioning" "software update configuration provisioning state was not expected"
+ Assert-AreEqual $suc.UpdateConfiguration.OperatingSystem "Windows" "UpdateConfiguration Operating system is not expected"
+ Assert-AreEqual $suc.UpdateConfiguration.Duration $duration "UpdateConfiguration Duration is not expected"
+ Assert-AreEqual $suc.UpdateConfiguration.AzureVirtualMachines.Count 2 "UpdateConfiguration created doesn't have the correct number of azure virtual machines"
+ Assert-AreEqual $suc.UpdateConfiguration.NonAzureComputers.Count 0 "UpdateConfiguration doesn't have correct value of NonAzureComputers"
+ Assert-NotNull $suc.UpdateConfiguration.Windows "Linux property of UpdateConfiguration is null"
+ Assert-AreEqual $suc.UpdateConfiguration.Windows.IncludedUpdateClassifications.Count 2 "Invalid UpdateConfiguration.Linux.IncludedPackageClassifications.Count"
+ Assert-AreEqual $suc.UpdateConfiguration.Windows.IncludedUpdateClassifications[0] Critical "Invalid value of UpdateConfiguration.Linux.IncludedPackageClassifications[0]"
+ Assert-AreEqual $suc.UpdateConfiguration.Windows.IncludedUpdateClassifications[1] Security "Invalid value of UpdateConfiguration.Linux.IncludedPackageClassifications[1]"
+ Assert-AreEqual $suc.UpdateConfiguration.Windows.ExcludedKbNumbers.Count 2
+ Assert-AreEqual $suc.UpdateConfiguration.Windows.ExcludedKbNumbers[0] "KB-01"
+ Assert-AreEqual $suc.UpdateConfiguration.Windows.ExcludedKbNumbers[1] "KB-02"
+
+ WaitForProvisioningState $name "Succeeded"
+}
diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/CreateLinuxOneTimeSUCNonAzureOnly.json b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/CreateLinuxOneTimeSUCNonAzureOnly.json
new file mode 100644
index 000000000000..90b3dd388f87
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/CreateLinuxOneTimeSUCNonAzureOnly.json
@@ -0,0 +1,311 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-05?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDU/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"linux\": {\r\n \"includedPackageClassifications\": \"Security,Critical\",\r\n \"excludedPackageNameMasks\": [\r\n \"Mask01\",\r\n \"Mask02\"\r\n ]\r\n },\r\n \"duration\": \"PT2H\",\r\n \"nonAzureComputerNames\": [\r\n \"server-01\",\r\n \"server-02\"\r\n ]\r\n },\r\n \"scheduleInfo\": {\r\n \"startTime\": \"2018-05-23T02:24:47.5995742-07:00\",\r\n \"expiryTime\": \"9999-12-31T15:59:59.9999999-08:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": false,\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"frequency\": \"Onetime\",\r\n \"creationTime\": \"0001-01-01T00:00:00-08:00\",\r\n \"lastModifiedTime\": \"0001-01-01T00:00:00-08:00\"\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "782"
+ ],
+ "x-ms-client-request-id": [
+ "2a5c5ec8-cab2-4911-b923-0a19291bff53"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "8624c4ca-bba6-41c9-b3ee-85e87e8cd813"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-05\",\r\n \"name\": \"mo-onetime-05\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"windows\": null,\r\n \"linux\": {\r\n \"includedPackageClassifications\": \"Critical, Security\",\r\n \"excludedPackageNameMasks\": [\r\n \"Mask01\",\r\n \"Mask02\"\r\n ]\r\n },\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": null,\r\n \"nonAzureComputerNames\": [\r\n \"server-01\",\r\n \"server-02\"\r\n ]\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-23T02:24:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-23T02:24:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-23T02:24:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-23T02:14:49.55-07:00\",\r\n \"lastModifiedTime\": \"2018-05-23T02:14:49.55-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-23T02:14:50.377-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-23T02:14:50.377-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1145"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "8624c4ca-bba6-41c9-b3ee-85e87e8cd813"
+ ],
+ "x-ms-location": [
+ "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-05?api-version=2017-05-15-preview"
+ ],
+ "ocp-location": [
+ "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-05?api-version=2017-05-15-preview"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1198"
+ ],
+ "x-ms-correlation-request-id": [
+ "14a7e444-02cf-47f2-8887-68af5e636e88"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180523T091450Z:14a7e444-02cf-47f2-8887-68af5e636e88"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 23 May 2018 09:14:50 GMT"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-05?api-version=2017-05-15-preview"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-05?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDU/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "768d9ffc-4426-45bd-8647-5e191483d495"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "427704bf-1915-46f9-a2e3-3a11fac34846"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-05\",\r\n \"name\": \"mo-onetime-05\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"windows\": null,\r\n \"linux\": {\r\n \"includedPackageClassifications\": \"Critical, Security\",\r\n \"excludedPackageNameMasks\": [\r\n \"Mask01\",\r\n \"Mask02\"\r\n ]\r\n },\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": null,\r\n \"nonAzureComputerNames\": [\r\n \"server-01\",\r\n \"server-02\"\r\n ]\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-23T02:24:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-23T02:24:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-23T02:24:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-23T02:14:49.55-07:00\",\r\n \"lastModifiedTime\": \"2018-05-23T02:14:49.55-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-23T02:14:50.377-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-23T02:14:50.377-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1145"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "427704bf-1915-46f9-a2e3-3a11fac34846"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14997"
+ ],
+ "x-ms-correlation-request-id": [
+ "b560cbdb-5d2a-4422-abfc-c060755cc2eb"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180523T091450Z:b560cbdb-5d2a-4422-abfc-c060755cc2eb"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 23 May 2018 09:14:50 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-05?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDU/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "4e315098-b1a3-4652-920e-a14b2fe4c7b9"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "5efb1366-f2c3-4248-96fe-dd67f86bb281"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-05\",\r\n \"name\": \"mo-onetime-05\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"windows\": null,\r\n \"linux\": {\r\n \"includedPackageClassifications\": \"Critical, Security\",\r\n \"excludedPackageNameMasks\": [\r\n \"Mask01\",\r\n \"Mask02\"\r\n ]\r\n },\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": null,\r\n \"nonAzureComputerNames\": [\r\n \"server-01\",\r\n \"server-02\"\r\n ]\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-23T02:24:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-23T02:24:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-23T02:24:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-23T02:14:49.55-07:00\",\r\n \"lastModifiedTime\": \"2018-05-23T02:14:49.55-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-23T02:14:50.377-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-23T02:14:50.377-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1145"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "5efb1366-f2c3-4248-96fe-dd67f86bb281"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14980"
+ ],
+ "x-ms-correlation-request-id": [
+ "2387d980-0913-4c7f-b642-eb9548e977dc"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180523T091455Z:2387d980-0913-4c7f-b642-eb9548e977dc"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 23 May 2018 09:14:55 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-05?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDU/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "b9e0b9f9-e387-4512-8512-cdae10a1e872"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "7ff94e51-e597-4322-b0a1-fd3b7bf09c68"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-05\",\r\n \"name\": \"mo-onetime-05\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"windows\": null,\r\n \"linux\": {\r\n \"includedPackageClassifications\": \"Critical, Security\",\r\n \"excludedPackageNameMasks\": [\r\n \"Mask01\",\r\n \"Mask02\"\r\n ]\r\n },\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": null,\r\n \"nonAzureComputerNames\": [\r\n \"server-01\",\r\n \"server-02\"\r\n ]\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-23T02:24:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-23T02:24:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-23T02:24:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-23T02:14:49.55-07:00\",\r\n \"lastModifiedTime\": \"2018-05-23T02:14:49.55-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Failed\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": {\r\n \"code\": null,\r\n \"message\": \"You have requested to create an update configuration on a machine that is not registered for Update Management. Assure that the machine is registered for Update Management. Machine Name(s) or Id(s): server-01,server-02.\"\r\n },\r\n \"creationTime\": \"2018-05-23T02:14:50.377-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-23T02:15:00.783-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1382"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "7ff94e51-e597-4322-b0a1-fd3b7bf09c68"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14986"
+ ],
+ "x-ms-correlation-request-id": [
+ "7eed48a5-e5cf-4b1a-84c5-f0aa1b0ff35b"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180523T091501Z:7eed48a5-e5cf-4b1a-84c5-f0aa1b0ff35b"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 23 May 2018 09:15:00 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "422b6c61-95b0-4213-b3be-7282315df71d"
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/CreateLinuxOneTimeSUCWithAllOption.json b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/CreateLinuxOneTimeSUCWithAllOption.json
new file mode 100644
index 000000000000..108bac75474b
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/CreateLinuxOneTimeSUCWithAllOption.json
@@ -0,0 +1,383 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-04?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDQ/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"linux\": {\r\n \"includedPackageClassifications\": \"Security,Critical\",\r\n \"excludedPackageNameMasks\": [\r\n \"Mask01\",\r\n \"Mask02\"\r\n ]\r\n },\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-02\"\r\n ],\r\n \"nonAzureComputerNames\": [\r\n \"server-01\",\r\n \"server-02\"\r\n ]\r\n },\r\n \"scheduleInfo\": {\r\n \"startTime\": \"2018-05-23T02:20:53.1042555-07:00\",\r\n \"expiryTime\": \"9999-12-31T15:59:59.9999999-08:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": false,\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"frequency\": \"Onetime\",\r\n \"creationTime\": \"0001-01-01T00:00:00-08:00\",\r\n \"lastModifiedTime\": \"0001-01-01T00:00:00-08:00\"\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "1114"
+ ],
+ "x-ms-client-request-id": [
+ "bf086711-e7fd-4854-bac7-1b0fb377c57d"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "a953327d-f4c7-4357-8de7-c2ad73aae097"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-04\",\r\n \"name\": \"mo-onetime-04\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"windows\": null,\r\n \"linux\": {\r\n \"includedPackageClassifications\": \"Critical, Security\",\r\n \"excludedPackageNameMasks\": [\r\n \"Mask01\",\r\n \"Mask02\"\r\n ]\r\n },\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-02\"\r\n ],\r\n \"nonAzureComputerNames\": [\r\n \"server-01\",\r\n \"server-02\"\r\n ]\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-23T02:20:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-23T02:20:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-23T02:20:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-23T02:10:54.837-07:00\",\r\n \"lastModifiedTime\": \"2018-05-23T02:10:54.837-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-23T02:10:55.507-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-23T02:10:55.507-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1414"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "a953327d-f4c7-4357-8de7-c2ad73aae097"
+ ],
+ "x-ms-location": [
+ "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-04?api-version=2017-05-15-preview"
+ ],
+ "ocp-location": [
+ "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-04?api-version=2017-05-15-preview"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1198"
+ ],
+ "x-ms-correlation-request-id": [
+ "e8a78f72-d9f5-44d5-a5f1-0a328f630227"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180523T091055Z:e8a78f72-d9f5-44d5-a5f1-0a328f630227"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 23 May 2018 09:10:55 GMT"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-04?api-version=2017-05-15-preview"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-04?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDQ/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "9e4f95d4-1108-4256-bc82-1ffcedd31ad8"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "494c5093-4462-44e5-8e3b-7aef68816276"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-04\",\r\n \"name\": \"mo-onetime-04\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"windows\": null,\r\n \"linux\": {\r\n \"includedPackageClassifications\": \"Critical, Security\",\r\n \"excludedPackageNameMasks\": [\r\n \"Mask01\",\r\n \"Mask02\"\r\n ]\r\n },\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-02\"\r\n ],\r\n \"nonAzureComputerNames\": [\r\n \"server-01\",\r\n \"server-02\"\r\n ]\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-23T02:20:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-23T02:20:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-23T02:20:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-23T02:10:54.837-07:00\",\r\n \"lastModifiedTime\": \"2018-05-23T02:10:54.837-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-23T02:10:55.507-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-23T02:10:55.507-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1414"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "494c5093-4462-44e5-8e3b-7aef68816276"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14997"
+ ],
+ "x-ms-correlation-request-id": [
+ "16cbe1c6-d850-4017-b9cf-28aab5dc906a"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180523T091055Z:16cbe1c6-d850-4017-b9cf-28aab5dc906a"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 23 May 2018 09:10:55 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-04?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDQ/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "94561f4e-5d15-4ece-9c7d-e666b232dace"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "21ac4448-d4d3-4072-8a77-2ece6e1674e1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-04\",\r\n \"name\": \"mo-onetime-04\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"windows\": null,\r\n \"linux\": {\r\n \"includedPackageClassifications\": \"Critical, Security\",\r\n \"excludedPackageNameMasks\": [\r\n \"Mask01\",\r\n \"Mask02\"\r\n ]\r\n },\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-02\"\r\n ],\r\n \"nonAzureComputerNames\": [\r\n \"server-01\",\r\n \"server-02\"\r\n ]\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-23T02:20:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-23T02:20:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-23T02:20:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-23T02:10:54.837-07:00\",\r\n \"lastModifiedTime\": \"2018-05-23T02:10:54.837-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-23T02:10:55.507-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-23T02:10:55.507-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1414"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "21ac4448-d4d3-4072-8a77-2ece6e1674e1"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14996"
+ ],
+ "x-ms-correlation-request-id": [
+ "063c92ea-c8c6-42a8-a39c-73c345a53dca"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180523T091100Z:063c92ea-c8c6-42a8-a39c-73c345a53dca"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 23 May 2018 09:11:00 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-04?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDQ/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "6af35ab7-451a-41fa-97ef-bcd7855611d9"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "365095c6-6b0e-4b66-a942-b537322919b3"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-04\",\r\n \"name\": \"mo-onetime-04\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"windows\": null,\r\n \"linux\": {\r\n \"includedPackageClassifications\": \"Critical, Security\",\r\n \"excludedPackageNameMasks\": [\r\n \"Mask01\",\r\n \"Mask02\"\r\n ]\r\n },\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-02\"\r\n ],\r\n \"nonAzureComputerNames\": [\r\n \"server-01\",\r\n \"server-02\"\r\n ]\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-23T02:20:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-23T02:20:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-23T02:20:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-23T02:10:54.837-07:00\",\r\n \"lastModifiedTime\": \"2018-05-23T02:10:54.837-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-23T02:10:55.507-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-23T02:10:55.507-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1414"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "365095c6-6b0e-4b66-a942-b537322919b3"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14995"
+ ],
+ "x-ms-correlation-request-id": [
+ "da51e4df-cadf-4be9-8f09-38f1f19e6132"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180523T091106Z:da51e4df-cadf-4be9-8f09-38f1f19e6132"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 23 May 2018 09:11:05 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-04?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDQ/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "e50225ab-99fd-488f-b971-2e3e03fbbe4b"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "b224c4af-5f96-4b5e-aded-28bd404d5b0b"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-04\",\r\n \"name\": \"mo-onetime-04\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"windows\": null,\r\n \"linux\": {\r\n \"includedPackageClassifications\": \"Critical, Security\",\r\n \"excludedPackageNameMasks\": [\r\n \"Mask01\",\r\n \"Mask02\"\r\n ]\r\n },\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-02\"\r\n ],\r\n \"nonAzureComputerNames\": [\r\n \"server-01\",\r\n \"server-02\"\r\n ]\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-23T02:20:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-23T02:20:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-23T02:20:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-23T02:10:54.837-07:00\",\r\n \"lastModifiedTime\": \"2018-05-23T02:10:54.837-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Failed\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": {\r\n \"code\": null,\r\n \"message\": \"You have requested to create an update configuration on a machine that is not registered for Update Management. Assure that the machine is registered for Update Management. Machine Name(s) or Id(s): server-01,server-02.\"\r\n },\r\n \"creationTime\": \"2018-05-23T02:10:55.507-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-23T02:11:07.163-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1651"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "b224c4af-5f96-4b5e-aded-28bd404d5b0b"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14994"
+ ],
+ "x-ms-correlation-request-id": [
+ "3f50746c-a9e0-4f03-93a8-d984b354aa92"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180523T091111Z:3f50746c-a9e0-4f03-93a8-d984b354aa92"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 23 May 2018 09:11:10 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "422b6c61-95b0-4213-b3be-7282315df71d"
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/CreateLinuxOneTimeSUCWithDefaults.json b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/CreateLinuxOneTimeSUCWithDefaults.json
new file mode 100644
index 000000000000..96c11a05773c
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/CreateLinuxOneTimeSUCWithDefaults.json
@@ -0,0 +1,383 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-02?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDI/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"linux\": {},\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-02\"\r\n ]\r\n },\r\n \"scheduleInfo\": {\r\n \"startTime\": \"2018-05-26T01:56:47.9570699-07:00\",\r\n \"expiryTime\": \"9999-12-31T15:59:59.9999999-08:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": false,\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"frequency\": \"Onetime\",\r\n \"creationTime\": \"0001-01-01T00:00:00-08:00\",\r\n \"lastModifiedTime\": \"0001-01-01T00:00:00-08:00\"\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "864"
+ ],
+ "x-ms-client-request-id": [
+ "deabad1d-3fa3-4c94-8256-219f8e509a96"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "51a36b47-c887-4120-bd6e-b341a6b9b532"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-02\",\r\n \"name\": \"mo-onetime-02\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"windows\": null,\r\n \"linux\": {\r\n \"includedPackageClassifications\": \"Unclassified\",\r\n \"excludedPackageNameMasks\": null\r\n },\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-26T01:56:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-26T01:56:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-26T01:56:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-26T01:46:48.953-07:00\",\r\n \"lastModifiedTime\": \"2018-05-26T01:46:48.953-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-26T01:46:49.64-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-26T01:46:49.64-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1370"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "51a36b47-c887-4120-bd6e-b341a6b9b532"
+ ],
+ "x-ms-location": [
+ "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-02?api-version=2017-05-15-preview"
+ ],
+ "ocp-location": [
+ "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-02?api-version=2017-05-15-preview"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "52dad109-707a-408e-b281-ddba4afb96f6"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180526T084649Z:52dad109-707a-408e-b281-ddba4afb96f6"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Sat, 26 May 2018 08:46:49 GMT"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-02?api-version=2017-05-15-preview"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-02?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDI/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "ed3b5882-96c2-4101-b35c-22930ef966ee"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "47338d8d-2c5f-4f19-807a-f7de451ffec0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-02\",\r\n \"name\": \"mo-onetime-02\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"windows\": null,\r\n \"linux\": {\r\n \"includedPackageClassifications\": \"Unclassified\",\r\n \"excludedPackageNameMasks\": null\r\n },\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-26T01:56:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-26T01:56:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-26T01:56:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-26T01:46:48.953-07:00\",\r\n \"lastModifiedTime\": \"2018-05-26T01:46:48.953-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-26T01:46:49.64-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-26T01:46:49.64-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1370"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "47338d8d-2c5f-4f19-807a-f7de451ffec0"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14985"
+ ],
+ "x-ms-correlation-request-id": [
+ "aad82943-60ab-47fd-a44d-97e01a5b79b8"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180526T084649Z:aad82943-60ab-47fd-a44d-97e01a5b79b8"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Sat, 26 May 2018 08:46:49 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-02?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDI/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "a3992b4b-c0be-4481-b503-83e951ee9d53"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "44fefee6-4649-49d6-b4c8-a646b30b076d"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-02\",\r\n \"name\": \"mo-onetime-02\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"windows\": null,\r\n \"linux\": {\r\n \"includedPackageClassifications\": \"Unclassified\",\r\n \"excludedPackageNameMasks\": null\r\n },\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-26T01:56:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-26T01:56:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-26T01:56:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-26T01:46:48.953-07:00\",\r\n \"lastModifiedTime\": \"2018-05-26T01:46:48.953-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-26T01:46:49.64-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-26T01:46:49.64-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1370"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "44fefee6-4649-49d6-b4c8-a646b30b076d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14984"
+ ],
+ "x-ms-correlation-request-id": [
+ "f931e4b6-fe1c-4f12-8b63-21d871975689"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180526T084655Z:f931e4b6-fe1c-4f12-8b63-21d871975689"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Sat, 26 May 2018 08:46:54 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-02?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDI/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "11846ff9-c2b7-4e5a-b2ee-5c168d4c981a"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "ab3a47bd-3360-46f6-be7b-8105767183cf"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-02\",\r\n \"name\": \"mo-onetime-02\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"windows\": null,\r\n \"linux\": {\r\n \"includedPackageClassifications\": \"Unclassified\",\r\n \"excludedPackageNameMasks\": null\r\n },\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-26T01:56:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-26T01:56:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-26T01:56:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-26T01:46:48.953-07:00\",\r\n \"lastModifiedTime\": \"2018-05-26T01:46:48.953-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-26T01:46:49.64-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-26T01:46:49.64-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1370"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "ab3a47bd-3360-46f6-be7b-8105767183cf"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14956"
+ ],
+ "x-ms-correlation-request-id": [
+ "ad04d15c-6dca-40de-8463-624b462cb4c4"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180526T084700Z:ad04d15c-6dca-40de-8463-624b462cb4c4"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Sat, 26 May 2018 08:46:59 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-02?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDI/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "0ddefb75-77ba-4902-b1d7-6ccc44906ebc"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "52073ca2-e059-4df7-a769-9939496db809"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-02\",\r\n \"name\": \"mo-onetime-02\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"windows\": null,\r\n \"linux\": {\r\n \"includedPackageClassifications\": \"Unclassified\",\r\n \"excludedPackageNameMasks\": null\r\n },\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-26T01:56:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-26T01:56:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-26T01:56:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-26T01:46:48.953-07:00\",\r\n \"lastModifiedTime\": \"2018-05-26T01:46:48.953-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-26T01:46:49.64-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-26T01:47:01.127-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1368"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "52073ca2-e059-4df7-a769-9939496db809"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14951"
+ ],
+ "x-ms-correlation-request-id": [
+ "71a56ad2-30f0-4696-b576-73e6f33b521e"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180526T084705Z:71a56ad2-30f0-4696-b576-73e6f33b521e"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Sat, 26 May 2018 08:47:04 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "422b6c61-95b0-4213-b3be-7282315df71d"
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/CreateLinuxWeeklySUC.json b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/CreateLinuxWeeklySUC.json
new file mode 100644
index 000000000000..7a4f3a054bc9
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/CreateLinuxWeeklySUC.json
@@ -0,0 +1,455 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-weekly-01?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLXdlZWtseS0wMT9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"linux\": {\r\n \"includedPackageClassifications\": \"Other,Security\",\r\n \"excludedPackageNameMasks\": [\r\n \"Mask-exc-01\",\r\n \"Mask-exc-02\"\r\n ]\r\n },\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-02\"\r\n ]\r\n },\r\n \"scheduleInfo\": {\r\n \"startTime\": \"2018-05-25T17:00:34.6815872-07:00\",\r\n \"expiryTime\": \"9999-12-31T15:59:59.9999999-08:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": false,\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Week\",\r\n \"advancedSchedule\": {\r\n \"weekDays\": [\r\n \"Friday\"\r\n ]\r\n },\r\n \"creationTime\": \"0001-01-01T00:00:00-08:00\",\r\n \"lastModifiedTime\": \"0001-01-01T00:00:00-08:00\"\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "1146"
+ ],
+ "x-ms-client-request-id": [
+ "86c10525-973d-4620-8a95-3a9567fbf782"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "d1703cff-35aa-4be4-a9a4-16c64eef420d"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-weekly-01\",\r\n \"name\": \"mo-weekly-01\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"windows\": null,\r\n \"linux\": {\r\n \"includedPackageClassifications\": \"Security, Other\",\r\n \"excludedPackageNameMasks\": [\r\n \"Mask-exc-01\",\r\n \"Mask-exc-02\"\r\n ]\r\n },\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-25T17:00:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"9999-12-31T15:59:00-08:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-31T17:00:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Week\",\r\n \"creationTime\": \"2018-05-25T16:50:36.05-07:00\",\r\n \"lastModifiedTime\": \"2018-05-25T16:50:36.05-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": {\r\n \"monthDays\": null,\r\n \"monthlyOccurrences\": null,\r\n \"weekDays\": [\r\n \"Friday\"\r\n ]\r\n }\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-25T16:50:36.677-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-25T16:50:36.677-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1452"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "d1703cff-35aa-4be4-a9a4-16c64eef420d"
+ ],
+ "x-ms-location": [
+ "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-weekly-01?api-version=2017-05-15-preview"
+ ],
+ "ocp-location": [
+ "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-weekly-01?api-version=2017-05-15-preview"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1197"
+ ],
+ "x-ms-correlation-request-id": [
+ "b54ee69e-79f1-4023-90a4-c4b3f906157d"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180525T235036Z:b54ee69e-79f1-4023-90a4-c4b3f906157d"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 25 May 2018 23:50:36 GMT"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-weekly-01?api-version=2017-05-15-preview"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-weekly-01?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLXdlZWtseS0wMT9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "55cfc263-33c9-414a-ab19-3601b57b1c25"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "1d8a6b66-267f-4d75-8956-a923c5f8b4ef"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-weekly-01\",\r\n \"name\": \"mo-weekly-01\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"windows\": null,\r\n \"linux\": {\r\n \"includedPackageClassifications\": \"Security, Other\",\r\n \"excludedPackageNameMasks\": [\r\n \"Mask-exc-01\",\r\n \"Mask-exc-02\"\r\n ]\r\n },\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-25T17:00:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"9999-12-31T15:59:00-08:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-31T17:00:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Week\",\r\n \"creationTime\": \"2018-05-25T16:50:36.05-07:00\",\r\n \"lastModifiedTime\": \"2018-05-25T16:50:36.05-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": {\r\n \"monthDays\": null,\r\n \"monthlyOccurrences\": null,\r\n \"weekDays\": [\r\n \"Friday\"\r\n ]\r\n }\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-25T16:50:36.677-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-25T16:50:36.677-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1452"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "1d8a6b66-267f-4d75-8956-a923c5f8b4ef"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14981"
+ ],
+ "x-ms-correlation-request-id": [
+ "ae350b15-10cb-4947-aab2-dd4a3552565c"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180525T235037Z:ae350b15-10cb-4947-aab2-dd4a3552565c"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 25 May 2018 23:50:36 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-weekly-01?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLXdlZWtseS0wMT9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "bb21e046-faa1-4114-9f33-cb9e73e83561"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "4e5c00eb-1dab-48b2-8e4d-ee9d32c2acdb"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-weekly-01\",\r\n \"name\": \"mo-weekly-01\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"windows\": null,\r\n \"linux\": {\r\n \"includedPackageClassifications\": \"Security, Other\",\r\n \"excludedPackageNameMasks\": [\r\n \"Mask-exc-01\",\r\n \"Mask-exc-02\"\r\n ]\r\n },\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-25T17:00:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"9999-12-31T15:59:00-08:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-31T17:00:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Week\",\r\n \"creationTime\": \"2018-05-25T16:50:36.05-07:00\",\r\n \"lastModifiedTime\": \"2018-05-25T16:50:36.05-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": {\r\n \"monthDays\": null,\r\n \"monthlyOccurrences\": null,\r\n \"weekDays\": [\r\n \"Friday\"\r\n ]\r\n }\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-25T16:50:36.677-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-25T16:50:36.677-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1452"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "4e5c00eb-1dab-48b2-8e4d-ee9d32c2acdb"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14980"
+ ],
+ "x-ms-correlation-request-id": [
+ "a2af3a33-9987-46a8-b243-cf5aa5b09c6c"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180525T235042Z:a2af3a33-9987-46a8-b243-cf5aa5b09c6c"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 25 May 2018 23:50:41 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-weekly-01?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLXdlZWtseS0wMT9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "f7fc6134-7905-4a7d-ad0f-1fc0523c003d"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "19457cbe-d80e-455a-9d00-388dcfc7143f"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-weekly-01\",\r\n \"name\": \"mo-weekly-01\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"windows\": null,\r\n \"linux\": {\r\n \"includedPackageClassifications\": \"Security, Other\",\r\n \"excludedPackageNameMasks\": [\r\n \"Mask-exc-01\",\r\n \"Mask-exc-02\"\r\n ]\r\n },\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-25T17:00:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"9999-12-31T15:59:00-08:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-31T17:00:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Week\",\r\n \"creationTime\": \"2018-05-25T16:50:36.05-07:00\",\r\n \"lastModifiedTime\": \"2018-05-25T16:50:36.05-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": {\r\n \"monthDays\": null,\r\n \"monthlyOccurrences\": null,\r\n \"weekDays\": [\r\n \"Friday\"\r\n ]\r\n }\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-25T16:50:36.677-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-25T16:50:36.677-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1452"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "19457cbe-d80e-455a-9d00-388dcfc7143f"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14978"
+ ],
+ "x-ms-correlation-request-id": [
+ "3a29cc4b-567e-4668-83f5-e54777238fcc"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180525T235047Z:3a29cc4b-567e-4668-83f5-e54777238fcc"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 25 May 2018 23:50:46 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-weekly-01?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLXdlZWtseS0wMT9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "3a077362-5833-437e-8627-a09cb8f18ed6"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "1c541772-c35d-4ddc-904b-02b280e7feb4"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-weekly-01\",\r\n \"name\": \"mo-weekly-01\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"windows\": null,\r\n \"linux\": {\r\n \"includedPackageClassifications\": \"Security, Other\",\r\n \"excludedPackageNameMasks\": [\r\n \"Mask-exc-01\",\r\n \"Mask-exc-02\"\r\n ]\r\n },\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-25T17:00:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"9999-12-31T15:59:00-08:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-31T17:00:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Week\",\r\n \"creationTime\": \"2018-05-25T16:50:36.05-07:00\",\r\n \"lastModifiedTime\": \"2018-05-25T16:50:36.05-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": {\r\n \"monthDays\": null,\r\n \"monthlyOccurrences\": null,\r\n \"weekDays\": [\r\n \"Friday\"\r\n ]\r\n }\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-25T16:50:36.677-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-25T16:50:36.677-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1452"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "1c541772-c35d-4ddc-904b-02b280e7feb4"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14975"
+ ],
+ "x-ms-correlation-request-id": [
+ "050c91cc-0ec1-4e5a-b6c7-fbb1d6707c2f"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180525T235053Z:050c91cc-0ec1-4e5a-b6c7-fbb1d6707c2f"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 25 May 2018 23:50:52 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-weekly-01?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLXdlZWtseS0wMT9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "c5d63223-9676-4552-8670-80feb5b3d5bf"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "7fddb114-0899-4fef-ae0d-bd1e1e5eb3d7"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-weekly-01\",\r\n \"name\": \"mo-weekly-01\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"windows\": null,\r\n \"linux\": {\r\n \"includedPackageClassifications\": \"Security, Other\",\r\n \"excludedPackageNameMasks\": [\r\n \"Mask-exc-01\",\r\n \"Mask-exc-02\"\r\n ]\r\n },\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-25T17:00:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"9999-12-31T15:59:00-08:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-31T17:00:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Week\",\r\n \"creationTime\": \"2018-05-25T16:50:36.05-07:00\",\r\n \"lastModifiedTime\": \"2018-05-25T16:50:36.05-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": {\r\n \"monthDays\": null,\r\n \"monthlyOccurrences\": null,\r\n \"weekDays\": [\r\n \"Friday\"\r\n ]\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-25T16:50:36.677-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-25T16:50:52.957-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1449"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "7fddb114-0899-4fef-ae0d-bd1e1e5eb3d7"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14994"
+ ],
+ "x-ms-correlation-request-id": [
+ "48dfca75-fe0f-4cab-948b-ef260a2d24e4"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180525T235058Z:48dfca75-fe0f-4cab-948b-ef260a2d24e4"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 25 May 2018 23:50:57 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "422b6c61-95b0-4213-b3be-7282315df71d"
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/CreateOneTimeSoftwareUpdateConfigurationWithDefaults.json b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/CreateOneTimeSoftwareUpdateConfigurationWithDefaults.json
new file mode 100644
index 000000000000..9b3cecc54b08
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/CreateOneTimeSoftwareUpdateConfigurationWithDefaults.json
@@ -0,0 +1,815 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDE/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {},\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ]\r\n },\r\n \"scheduleInfo\": {\r\n \"startTime\": \"2018-05-22T16:16:15.1983466-07:00\",\r\n \"expiryTime\": \"9999-12-31T15:59:59.9999999-08:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": false,\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"frequency\": \"Onetime\",\r\n \"creationTime\": \"0001-01-01T00:00:00-08:00\",\r\n \"lastModifiedTime\": \"0001-01-01T00:00:00-08:00\"\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "868"
+ ],
+ "x-ms-client-request-id": [
+ "acc91c53-527e-49c8-988f-6112132b2eca"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "b0953911-dfa0-4477-a8b8-d1f7fbae200d"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01\",\r\n \"name\": \"mo-onetime-01\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Unclassified\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-22T16:16:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-22T16:16:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-22T16:16:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-22T16:06:16.777-07:00\",\r\n \"lastModifiedTime\": \"2018-05-22T16:06:16.777-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-22T16:06:17.417-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-22T16:06:17.417-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1366"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "b0953911-dfa0-4477-a8b8-d1f7fbae200d"
+ ],
+ "x-ms-location": [
+ "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01?api-version=2017-05-15-preview"
+ ],
+ "ocp-location": [
+ "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01?api-version=2017-05-15-preview"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "65cf9f3b-3aa4-4394-957e-0fb72fb0bd1f"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180522T230617Z:65cf9f3b-3aa4-4394-957e-0fb72fb0bd1f"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Tue, 22 May 2018 23:06:17 GMT"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01?api-version=2017-05-15-preview"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDE/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "0a807402-f088-4d0b-98c5-3041d934ddf6"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "8cb7b458-0cad-4d5d-89c9-84d43fa96860"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01\",\r\n \"name\": \"mo-onetime-01\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Unclassified\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-22T16:16:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-22T16:16:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-22T16:16:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-22T16:06:16.777-07:00\",\r\n \"lastModifiedTime\": \"2018-05-22T16:06:16.777-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-22T16:06:17.417-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-22T16:06:17.417-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1366"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "8cb7b458-0cad-4d5d-89c9-84d43fa96860"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14994"
+ ],
+ "x-ms-correlation-request-id": [
+ "1946d6de-13e6-45c1-bd03-17205437891d"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180522T230617Z:1946d6de-13e6-45c1-bd03-17205437891d"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Tue, 22 May 2018 23:06:17 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDE/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "506328da-b5ba-4c1c-8e68-6d60e99ad6fc"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "e617b537-0b2f-4565-83cb-787a977faeec"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01\",\r\n \"name\": \"mo-onetime-01\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Unclassified\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-22T16:16:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-22T16:16:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-22T16:16:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-22T16:06:16.777-07:00\",\r\n \"lastModifiedTime\": \"2018-05-22T16:06:16.777-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-22T16:06:17.417-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-22T16:06:17.417-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1366"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "e617b537-0b2f-4565-83cb-787a977faeec"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14993"
+ ],
+ "x-ms-correlation-request-id": [
+ "1b29e09e-9528-4bc1-8e70-74fb3e56367d"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180522T230622Z:1b29e09e-9528-4bc1-8e70-74fb3e56367d"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Tue, 22 May 2018 23:06:22 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDE/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "c9fbb089-0690-49ba-a5f0-cbfb3c0b829f"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "40b14a94-9b16-40fd-b457-eca3ae37ac45"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01\",\r\n \"name\": \"mo-onetime-01\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Unclassified\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-22T16:16:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-22T16:16:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-22T16:16:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-22T16:06:16.777-07:00\",\r\n \"lastModifiedTime\": \"2018-05-22T16:06:16.777-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-22T16:06:17.417-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-22T16:06:17.417-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1366"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "40b14a94-9b16-40fd-b457-eca3ae37ac45"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14992"
+ ],
+ "x-ms-correlation-request-id": [
+ "1dafc7c3-6b8e-4fbd-bb24-8047ec862b34"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180522T230627Z:1dafc7c3-6b8e-4fbd-bb24-8047ec862b34"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Tue, 22 May 2018 23:06:27 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDE/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "15960380-b377-4583-9341-a1afc6e445a8"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "64c5ae02-42df-4ce5-8a4e-db4e78f9d949"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01\",\r\n \"name\": \"mo-onetime-01\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Unclassified\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-22T16:16:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-22T16:16:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-22T16:16:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-22T16:06:16.777-07:00\",\r\n \"lastModifiedTime\": \"2018-05-22T16:06:16.777-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-22T16:06:17.417-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-22T16:06:17.417-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1366"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "64c5ae02-42df-4ce5-8a4e-db4e78f9d949"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14991"
+ ],
+ "x-ms-correlation-request-id": [
+ "163d4db6-01e5-4648-adc2-80e84bf9bfc5"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180522T230633Z:163d4db6-01e5-4648-adc2-80e84bf9bfc5"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Tue, 22 May 2018 23:06:32 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDE/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "fab22372-85b7-4e7f-9f3a-982b0003eda5"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "52c3fd28-debc-483d-aae9-ded5071ac09b"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01\",\r\n \"name\": \"mo-onetime-01\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Unclassified\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-22T16:16:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-22T16:16:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-22T16:16:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-22T16:06:16.777-07:00\",\r\n \"lastModifiedTime\": \"2018-05-22T16:06:16.777-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-22T16:06:17.417-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-22T16:06:17.417-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1366"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "52c3fd28-debc-483d-aae9-ded5071ac09b"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14990"
+ ],
+ "x-ms-correlation-request-id": [
+ "0c0b17d3-ff9f-43be-a9fe-df6474501a20"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180522T230638Z:0c0b17d3-ff9f-43be-a9fe-df6474501a20"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Tue, 22 May 2018 23:06:37 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDE/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "a5db3e7b-f715-48b9-8715-ca3a88118545"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "ab888aba-9ac9-405f-9f61-d7be758f95cb"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01\",\r\n \"name\": \"mo-onetime-01\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Unclassified\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-22T16:16:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-22T16:16:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-22T16:16:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-22T16:06:16.777-07:00\",\r\n \"lastModifiedTime\": \"2018-05-22T16:06:16.777-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-22T16:06:17.417-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-22T16:06:17.417-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1366"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "ab888aba-9ac9-405f-9f61-d7be758f95cb"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14989"
+ ],
+ "x-ms-correlation-request-id": [
+ "535def93-4ec3-48e0-a1c5-b767eba2fcbe"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180522T230643Z:535def93-4ec3-48e0-a1c5-b767eba2fcbe"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Tue, 22 May 2018 23:06:42 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDE/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "d7c72c3b-b300-4f4c-a243-e86aeb9e445c"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "701817e0-1c81-4808-ab69-ae6419d93a48"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01\",\r\n \"name\": \"mo-onetime-01\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Unclassified\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-22T16:16:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-22T16:16:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-22T16:16:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-22T16:06:16.777-07:00\",\r\n \"lastModifiedTime\": \"2018-05-22T16:06:16.777-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-22T16:06:17.417-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-22T16:06:17.417-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1366"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "701817e0-1c81-4808-ab69-ae6419d93a48"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14988"
+ ],
+ "x-ms-correlation-request-id": [
+ "3654da3b-8e93-4805-998b-293d99e9ec1b"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180522T230648Z:3654da3b-8e93-4805-998b-293d99e9ec1b"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Tue, 22 May 2018 23:06:47 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDE/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "9c838695-28ea-4bb3-aabb-d1450c6aeaed"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "dab0919c-9930-4154-a2ec-2b3811f0f7f0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01\",\r\n \"name\": \"mo-onetime-01\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Unclassified\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-22T16:16:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-22T16:16:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-22T16:16:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-22T16:06:16.777-07:00\",\r\n \"lastModifiedTime\": \"2018-05-22T16:06:16.777-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-22T16:06:17.417-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-22T16:06:17.417-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1366"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "dab0919c-9930-4154-a2ec-2b3811f0f7f0"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14987"
+ ],
+ "x-ms-correlation-request-id": [
+ "3e3db4ef-a253-453b-ba43-71f2473bd4f9"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180522T230653Z:3e3db4ef-a253-453b-ba43-71f2473bd4f9"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Tue, 22 May 2018 23:06:53 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDE/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "9684f1ee-52a6-4205-bb63-85c4f74d7e65"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "fb1da2ee-519d-44c6-b27d-3dcc043b32ab"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01\",\r\n \"name\": \"mo-onetime-01\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Unclassified\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-22T16:16:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-22T16:16:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-22T16:16:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-22T16:06:16.777-07:00\",\r\n \"lastModifiedTime\": \"2018-05-22T16:06:16.777-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-22T16:06:17.417-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-22T16:06:17.417-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1366"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "fb1da2ee-519d-44c6-b27d-3dcc043b32ab"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14986"
+ ],
+ "x-ms-correlation-request-id": [
+ "b77c9b6e-26bc-4e65-aeca-a935ccfde57f"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180522T230658Z:b77c9b6e-26bc-4e65-aeca-a935ccfde57f"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Tue, 22 May 2018 23:06:58 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDE/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "2a2a861d-0ec4-4a13-b7ec-707503e4ce4e"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "c8e9c7b1-23a9-4e1a-8b57-023b1a93b4bb"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01\",\r\n \"name\": \"mo-onetime-01\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Unclassified\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-22T16:16:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-22T16:16:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-22T16:16:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-22T16:06:16.777-07:00\",\r\n \"lastModifiedTime\": \"2018-05-22T16:06:16.777-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-22T16:06:17.417-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-22T16:07:03.717-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1363"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "c8e9c7b1-23a9-4e1a-8b57-023b1a93b4bb"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14985"
+ ],
+ "x-ms-correlation-request-id": [
+ "a1cf574f-1673-465a-91e7-dd38d13a31c7"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180522T230704Z:a1cf574f-1673-465a-91e7-dd38d13a31c7"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Tue, 22 May 2018 23:07:03 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "422b6c61-95b0-4213-b3be-7282315df71d"
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/CreateWindowsMonthlySUC.json b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/CreateWindowsMonthlySUC.json
new file mode 100644
index 000000000000..c86f3ea67141
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/CreateWindowsMonthlySUC.json
@@ -0,0 +1,383 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-monthly-01?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW1vbnRobHktMDE/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "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 \"KB-01\",\r\n \"KB-02\"\r\n ]\r\n },\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ]\r\n },\r\n \"scheduleInfo\": {\r\n \"startTime\": \"2018-05-25T17:18:53.3386614-07:00\",\r\n \"expiryTime\": \"9999-12-31T15:59:59.9999999-08:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": false,\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Month\",\r\n \"advancedSchedule\": {\r\n \"monthDays\": [\r\n 2,\r\n 5\r\n ]\r\n },\r\n \"creationTime\": \"0001-01-01T00:00:00-08:00\",\r\n \"lastModifiedTime\": \"0001-01-01T00:00:00-08:00\"\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "1142"
+ ],
+ "x-ms-client-request-id": [
+ "21a46420-ea07-4c85-8fc3-49d939e2736f"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "09044806-989d-469f-9f6b-7efab8956308"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-monthly-01\",\r\n \"name\": \"mo-monthly-01\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security\",\r\n \"excludedKbNumbers\": [\r\n \"KB-01\",\r\n \"KB-02\"\r\n ]\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-25T17:18:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"9999-12-31T15:59:00-08:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-06-01T17:18:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Month\",\r\n \"creationTime\": \"2018-05-25T17:08:55.023-07:00\",\r\n \"lastModifiedTime\": \"2018-05-25T17:08:55.023-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": {\r\n \"monthDays\": [\r\n 2,\r\n 5\r\n ],\r\n \"monthlyOccurrences\": null,\r\n \"weekDays\": null\r\n }\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-25T17:08:56.21-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-25T17:08:56.21-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1435"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "09044806-989d-469f-9f6b-7efab8956308"
+ ],
+ "x-ms-location": [
+ "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-monthly-01?api-version=2017-05-15-preview"
+ ],
+ "ocp-location": [
+ "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-monthly-01?api-version=2017-05-15-preview"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "60062d9b-f381-43ad-817d-09055cea7113"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180526T000856Z:60062d9b-f381-43ad-817d-09055cea7113"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Sat, 26 May 2018 00:08:56 GMT"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-monthly-01?api-version=2017-05-15-preview"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-monthly-01?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW1vbnRobHktMDE/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "5795f551-c082-46d3-9ad8-c1d4d0abdd7d"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "a16e1e80-4acb-415d-b82d-75689f47c914"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-monthly-01\",\r\n \"name\": \"mo-monthly-01\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security\",\r\n \"excludedKbNumbers\": [\r\n \"KB-01\",\r\n \"KB-02\"\r\n ]\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-25T17:18:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"9999-12-31T15:59:00-08:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-06-01T17:18:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Month\",\r\n \"creationTime\": \"2018-05-25T17:08:55.023-07:00\",\r\n \"lastModifiedTime\": \"2018-05-25T17:08:55.023-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": {\r\n \"monthDays\": [\r\n 2,\r\n 5\r\n ],\r\n \"monthlyOccurrences\": null,\r\n \"weekDays\": null\r\n }\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-25T17:08:56.21-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-25T17:08:56.21-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1435"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "a16e1e80-4acb-415d-b82d-75689f47c914"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14981"
+ ],
+ "x-ms-correlation-request-id": [
+ "97f57d8b-c9a4-4630-9afb-720b34a3744d"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180526T000856Z:97f57d8b-c9a4-4630-9afb-720b34a3744d"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Sat, 26 May 2018 00:08:56 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-monthly-01?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW1vbnRobHktMDE/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "4392bb51-7150-4d9d-ae94-adbf5585869c"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "5a34b652-10bd-4960-8e69-9cc05fab5199"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-monthly-01\",\r\n \"name\": \"mo-monthly-01\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security\",\r\n \"excludedKbNumbers\": [\r\n \"KB-01\",\r\n \"KB-02\"\r\n ]\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-25T17:18:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"9999-12-31T15:59:00-08:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-06-01T17:18:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Month\",\r\n \"creationTime\": \"2018-05-25T17:08:55.023-07:00\",\r\n \"lastModifiedTime\": \"2018-05-25T17:08:55.023-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": {\r\n \"monthDays\": [\r\n 2,\r\n 5\r\n ],\r\n \"monthlyOccurrences\": null,\r\n \"weekDays\": null\r\n }\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-25T17:08:56.21-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-25T17:08:56.21-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1435"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "5a34b652-10bd-4960-8e69-9cc05fab5199"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14978"
+ ],
+ "x-ms-correlation-request-id": [
+ "aa64786d-5cfe-4163-b410-183eb5544766"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180526T000901Z:aa64786d-5cfe-4163-b410-183eb5544766"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Sat, 26 May 2018 00:09:01 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-monthly-01?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW1vbnRobHktMDE/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "8a3ddf23-291f-4623-91a4-b2ed6bff2294"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "b5865139-c525-4d1a-98a7-41c3c49e07a7"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-monthly-01\",\r\n \"name\": \"mo-monthly-01\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security\",\r\n \"excludedKbNumbers\": [\r\n \"KB-01\",\r\n \"KB-02\"\r\n ]\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-25T17:18:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"9999-12-31T15:59:00-08:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-06-01T17:18:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Month\",\r\n \"creationTime\": \"2018-05-25T17:08:55.023-07:00\",\r\n \"lastModifiedTime\": \"2018-05-25T17:08:55.023-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": {\r\n \"monthDays\": [\r\n 2,\r\n 5\r\n ],\r\n \"monthlyOccurrences\": null,\r\n \"weekDays\": null\r\n }\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-25T17:08:56.21-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-25T17:08:56.21-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1435"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "b5865139-c525-4d1a-98a7-41c3c49e07a7"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14977"
+ ],
+ "x-ms-correlation-request-id": [
+ "de2434c6-75ab-4bbd-bb4a-19eb0c16aacf"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180526T000906Z:de2434c6-75ab-4bbd-bb4a-19eb0c16aacf"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Sat, 26 May 2018 00:09:06 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-monthly-01?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW1vbnRobHktMDE/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "5c08974b-c93c-4592-9264-0cc265fb26c8"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "39320344-1520-4de8-813d-19d068bbab95"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-monthly-01\",\r\n \"name\": \"mo-monthly-01\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security\",\r\n \"excludedKbNumbers\": [\r\n \"KB-01\",\r\n \"KB-02\"\r\n ]\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-25T17:18:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"9999-12-31T15:59:00-08:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-06-01T17:18:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Month\",\r\n \"creationTime\": \"2018-05-25T17:08:55.023-07:00\",\r\n \"lastModifiedTime\": \"2018-05-25T17:08:55.023-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": {\r\n \"monthDays\": [\r\n 2,\r\n 5\r\n ],\r\n \"monthlyOccurrences\": null,\r\n \"weekDays\": null\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-25T17:08:56.21-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-25T17:09:07.807-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1433"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "39320344-1520-4de8-813d-19d068bbab95"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14976"
+ ],
+ "x-ms-correlation-request-id": [
+ "73f335c6-7f22-45f7-ba49-ba72fa8ef389"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180526T000911Z:73f335c6-7f22-45f7-ba49-ba72fa8ef389"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Sat, 26 May 2018 00:09:11 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "422b6c61-95b0-4213-b3be-7282315df71d"
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/CreateWindowsOneTimeSUCWithAllOption.json b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/CreateWindowsOneTimeSUCWithAllOption.json
new file mode 100644
index 000000000000..b1e37f624ce5
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/CreateWindowsOneTimeSUCWithAllOption.json
@@ -0,0 +1,239 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-03?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDM/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Security,UpdateRollup\",\r\n \"excludedKbNumbers\": [\r\n \"KB01\",\r\n \"KB02\"\r\n ]\r\n },\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": [\r\n \"server-01\",\r\n \"server-02\"\r\n ]\r\n },\r\n \"scheduleInfo\": {\r\n \"startTime\": \"2018-05-26T02:09:46.8386622-07:00\",\r\n \"expiryTime\": \"9999-12-31T15:59:59.9999999-08:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": false,\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"frequency\": \"Onetime\",\r\n \"creationTime\": \"0001-01-01T00:00:00-08:00\",\r\n \"lastModifiedTime\": \"0001-01-01T00:00:00-08:00\"\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "1110"
+ ],
+ "x-ms-client-request-id": [
+ "c3c7b7f2-3046-40ba-a044-ebda3e972758"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "b95bde27-0a44-4343-85d9-23d7dec0a6bf"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-03\",\r\n \"name\": \"mo-onetime-03\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Security, UpdateRollup\",\r\n \"excludedKbNumbers\": [\r\n \"KB01\",\r\n \"KB02\"\r\n ]\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": [\r\n \"server-01\",\r\n \"server-02\"\r\n ]\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-26T02:09:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-26T02:09:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-26T02:09:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-26T01:59:48.033-07:00\",\r\n \"lastModifiedTime\": \"2018-05-26T01:59:48.033-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-26T01:51:29.737-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-26T01:59:48.99-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1407"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "b95bde27-0a44-4343-85d9-23d7dec0a6bf"
+ ],
+ "x-ms-location": [
+ "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-03?api-version=2017-05-15-preview"
+ ],
+ "ocp-location": [
+ "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-03?api-version=2017-05-15-preview"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1189"
+ ],
+ "x-ms-correlation-request-id": [
+ "ad1dccbc-afcd-470c-8f5a-a2e6ac4dec34"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180526T085948Z:ad1dccbc-afcd-470c-8f5a-a2e6ac4dec34"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Sat, 26 May 2018 08:59:48 GMT"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-03?api-version=2017-05-15-preview"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-03?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDM/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "acccb38b-a048-4b73-98db-7978092695d4"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "a184e87a-2b74-4a4d-b2e4-56ff8ec196f7"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-03\",\r\n \"name\": \"mo-onetime-03\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Security, UpdateRollup\",\r\n \"excludedKbNumbers\": [\r\n \"KB01\",\r\n \"KB02\"\r\n ]\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": [\r\n \"server-01\",\r\n \"server-02\"\r\n ]\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-26T02:01:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-26T02:01:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-26T02:01:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-26T01:51:29.283-07:00\",\r\n \"lastModifiedTime\": \"2018-05-26T01:51:29.283-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-26T01:51:29.737-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-26T01:59:48.99-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1407"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "a184e87a-2b74-4a4d-b2e4-56ff8ec196f7"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14931"
+ ],
+ "x-ms-correlation-request-id": [
+ "cce58ff1-3bd8-462b-849e-b15961ac1313"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180526T085949Z:cce58ff1-3bd8-462b-849e-b15961ac1313"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Sat, 26 May 2018 08:59:49 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-03?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDM/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "15b5ca84-3260-4468-a118-1051d7da02ac"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "1812cf6c-d1cc-4a6f-9dc3-c79538c953e9"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-03\",\r\n \"name\": \"mo-onetime-03\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Security, UpdateRollup\",\r\n \"excludedKbNumbers\": [\r\n \"KB01\",\r\n \"KB02\"\r\n ]\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": [\r\n \"server-01\",\r\n \"server-02\"\r\n ]\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-26T02:01:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-26T02:01:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-26T02:01:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-26T01:51:29.283-07:00\",\r\n \"lastModifiedTime\": \"2018-05-26T01:51:29.283-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Failed\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": {\r\n \"code\": null,\r\n \"message\": \"You have requested to create an update configuration on a machine that is not registered for Update Management. Assure that the machine is registered for Update Management. Machine Name(s) or Id(s): server-01,server-02.\"\r\n },\r\n \"creationTime\": \"2018-05-26T01:51:29.737-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-26T01:59:50.317-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1645"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "1812cf6c-d1cc-4a6f-9dc3-c79538c953e9"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14930"
+ ],
+ "x-ms-correlation-request-id": [
+ "5380492a-acc9-46e9-9ba5-adbf162064f8"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180526T085954Z:5380492a-acc9-46e9-9ba5-adbf162064f8"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Sat, 26 May 2018 08:59:54 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "422b6c61-95b0-4213-b3be-7282315df71d"
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/CreateWindowsOneTimeSUCWithDefaults.json b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/CreateWindowsOneTimeSUCWithDefaults.json
new file mode 100644
index 000000000000..f528ce243a60
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/CreateWindowsOneTimeSUCWithDefaults.json
@@ -0,0 +1,383 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDE/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {},\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ]\r\n },\r\n \"scheduleInfo\": {\r\n \"startTime\": \"2018-05-23T01:27:08.5880106-07:00\",\r\n \"expiryTime\": \"9999-12-31T15:59:59.9999999-08:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": false,\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"frequency\": \"Onetime\",\r\n \"creationTime\": \"0001-01-01T00:00:00-08:00\",\r\n \"lastModifiedTime\": \"0001-01-01T00:00:00-08:00\"\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "868"
+ ],
+ "x-ms-client-request-id": [
+ "305f18e8-f4a9-45ca-b53c-f9c548121d72"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "516b98f1-a45b-4034-8186-09e16ad6e93e"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01\",\r\n \"name\": \"mo-onetime-01\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Unclassified\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-23T01:27:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-23T01:27:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-23T01:27:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-23T01:17:10.813-07:00\",\r\n \"lastModifiedTime\": \"2018-05-23T01:17:10.813-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-23T01:17:11.16-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-23T01:17:11.16-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1364"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "516b98f1-a45b-4034-8186-09e16ad6e93e"
+ ],
+ "x-ms-location": [
+ "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01?api-version=2017-05-15-preview"
+ ],
+ "ocp-location": [
+ "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01?api-version=2017-05-15-preview"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "efea84dc-65b2-4fe4-a764-5d0a050fac32"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180523T081711Z:efea84dc-65b2-4fe4-a764-5d0a050fac32"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 23 May 2018 08:17:10 GMT"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01?api-version=2017-05-15-preview"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDE/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "abc5a967-1bd3-4071-a023-8680aa6cb4b3"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "47cfd511-89a7-4333-887f-545015befa8b"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01\",\r\n \"name\": \"mo-onetime-01\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Unclassified\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-23T01:27:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-23T01:27:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-23T01:27:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-23T01:17:10.813-07:00\",\r\n \"lastModifiedTime\": \"2018-05-23T01:17:10.813-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-23T01:17:11.16-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-23T01:17:11.16-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1364"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "47cfd511-89a7-4333-887f-545015befa8b"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14999"
+ ],
+ "x-ms-correlation-request-id": [
+ "3ff8394f-205d-45ec-9b7e-afc5bb2e4103"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180523T081711Z:3ff8394f-205d-45ec-9b7e-afc5bb2e4103"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 23 May 2018 08:17:10 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDE/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "99ab8795-f436-4e89-88f3-8ea90206f34c"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "9c578e70-4baa-4b27-83ce-7a0080680a91"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01\",\r\n \"name\": \"mo-onetime-01\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Unclassified\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-23T01:27:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-23T01:27:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-23T01:27:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-23T01:17:10.813-07:00\",\r\n \"lastModifiedTime\": \"2018-05-23T01:17:10.813-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-23T01:17:11.16-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-23T01:17:11.16-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1364"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "9c578e70-4baa-4b27-83ce-7a0080680a91"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14998"
+ ],
+ "x-ms-correlation-request-id": [
+ "1c8917dc-3ad2-414d-9754-35b03b439d86"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180523T081716Z:1c8917dc-3ad2-414d-9754-35b03b439d86"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 23 May 2018 08:17:15 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDE/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "679a2d89-c68c-49fa-a8b8-821253c4f3d5"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "ac41f53a-1a70-4a7e-b514-84784c0300af"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01\",\r\n \"name\": \"mo-onetime-01\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Unclassified\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-23T01:27:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-23T01:27:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-23T01:27:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-23T01:17:10.813-07:00\",\r\n \"lastModifiedTime\": \"2018-05-23T01:17:10.813-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-23T01:17:11.16-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-23T01:17:11.16-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1364"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "ac41f53a-1a70-4a7e-b514-84784c0300af"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14997"
+ ],
+ "x-ms-correlation-request-id": [
+ "c5ee7fd6-2565-4f86-97c4-41797b0b8283"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180523T081721Z:c5ee7fd6-2565-4f86-97c4-41797b0b8283"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 23 May 2018 08:17:20 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLW9uZXRpbWUtMDE/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "45b500db-a79c-46d6-bc2c-20d70eb17bbe"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "a791c4dd-2960-4dc1-b351-b02c894a6b73"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01\",\r\n \"name\": \"mo-onetime-01\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Unclassified\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-23T01:27:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-23T01:27:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-23T01:27:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-23T01:17:10.813-07:00\",\r\n \"lastModifiedTime\": \"2018-05-23T01:17:10.813-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-23T01:17:11.16-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-23T01:17:22.27-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1361"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "a791c4dd-2960-4dc1-b351-b02c894a6b73"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14996"
+ ],
+ "x-ms-correlation-request-id": [
+ "6ef046a6-babe-4fd9-b503-041dc3873662"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180523T081726Z:6ef046a6-babe-4fd9-b503-041dc3873662"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Wed, 23 May 2018 08:17:26 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "422b6c61-95b0-4213-b3be-7282315df71d"
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/DeleteSUC.json b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/DeleteSUC.json
new file mode 100644
index 000000000000..b85960b7b301
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/DeleteSUC.json
@@ -0,0 +1,452 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-delete-it?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLWRlbGV0ZS1pdD9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {},\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ]\r\n },\r\n \"scheduleInfo\": {\r\n \"startTime\": \"2018-05-24T00:48:40.7904393-07:00\",\r\n \"expiryTime\": \"9999-12-31T15:59:59.9999999-08:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": false,\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"frequency\": \"Onetime\",\r\n \"creationTime\": \"0001-01-01T00:00:00-08:00\",\r\n \"lastModifiedTime\": \"0001-01-01T00:00:00-08:00\"\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "868"
+ ],
+ "x-ms-client-request-id": [
+ "eb2dcf6f-279a-4b47-b0ac-346b453acd67"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "8bc6b0fc-09c7-40e4-9d63-e65e7b43db62"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-delete-it\",\r\n \"name\": \"mo-delete-it\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Unclassified\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-24T00:48:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-24T00:48:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-24T00:48:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-24T00:38:42.613-07:00\",\r\n \"lastModifiedTime\": \"2018-05-24T00:38:42.613-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-24T00:38:43.053-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-24T00:38:43.053-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1364"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "8bc6b0fc-09c7-40e4-9d63-e65e7b43db62"
+ ],
+ "x-ms-location": [
+ "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-delete-it?api-version=2017-05-15-preview"
+ ],
+ "ocp-location": [
+ "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-delete-it?api-version=2017-05-15-preview"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1194"
+ ],
+ "x-ms-correlation-request-id": [
+ "e0d775d7-29ea-468f-a505-627d13fc9fa7"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180524T073843Z:e0d775d7-29ea-468f-a505-627d13fc9fa7"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 07:38:42 GMT"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-delete-it?api-version=2017-05-15-preview"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-delete-it?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLWRlbGV0ZS1pdD9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "95c29b75-fc95-4169-84f5-860b73278947"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "4fbf5bcb-0641-4855-833d-c62119030756"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-delete-it\",\r\n \"name\": \"mo-delete-it\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Unclassified\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-24T00:48:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-24T00:48:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-24T00:48:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-24T00:38:42.613-07:00\",\r\n \"lastModifiedTime\": \"2018-05-24T00:38:42.613-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-24T00:38:43.053-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-24T00:38:43.053-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1364"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "4fbf5bcb-0641-4855-833d-c62119030756"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14969"
+ ],
+ "x-ms-correlation-request-id": [
+ "7245e01a-400d-4281-890f-e07850e387d4"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180524T073843Z:7245e01a-400d-4281-890f-e07850e387d4"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 07:38:42 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-delete-it?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLWRlbGV0ZS1pdD9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "bb893d06-b6c0-4e76-a522-e1a639237f87"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "24137305-48fe-46d2-90e2-6136a6443835"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-delete-it\",\r\n \"name\": \"mo-delete-it\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Unclassified\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-24T00:48:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-24T00:48:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-24T00:48:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-24T00:38:42.613-07:00\",\r\n \"lastModifiedTime\": \"2018-05-24T00:38:42.613-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-24T00:38:43.053-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-24T00:38:43.053-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1364"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "24137305-48fe-46d2-90e2-6136a6443835"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14968"
+ ],
+ "x-ms-correlation-request-id": [
+ "ad09e61b-e492-4010-8487-d561ef097516"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180524T073848Z:ad09e61b-e492-4010-8487-d561ef097516"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 07:38:48 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-delete-it?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLWRlbGV0ZS1pdD9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "3084183b-676d-4fa7-a4e3-ff1e0d8cb741"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "3389ae63-f0fb-4ebb-b7e6-ff6ba814f1ed"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-delete-it\",\r\n \"name\": \"mo-delete-it\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Unclassified\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-24T00:48:00-07:00\",\r\n \"startTimeOffsetMinutes\": 0.0,\r\n \"expiryTime\": \"2018-05-24T00:48:00-07:00\",\r\n \"expiryTimeOffsetMinutes\": 0.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-24T00:48:00-07:00\",\r\n \"nextRunOffsetMinutes\": 0.0,\r\n \"interval\": null,\r\n \"frequency\": \"OneTime\",\r\n \"creationTime\": \"2018-05-24T00:38:42.613-07:00\",\r\n \"lastModifiedTime\": \"2018-05-24T00:38:42.613-07:00\",\r\n \"timeZone\": \"UTC\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"createdBy\": \"{scrubbed}\",\r\n \"error\": null,\r\n \"creationTime\": \"2018-05-24T00:38:43.053-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-24T00:38:54.32-07:00\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1360"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "3389ae63-f0fb-4ebb-b7e6-ff6ba814f1ed"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14967"
+ ],
+ "x-ms-correlation-request-id": [
+ "c7df91ca-7934-4dcb-81cd-49109859e4a3"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180524T073854Z:c7df91ca-7934-4dcb-81cd-49109859e4a3"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 07:38:53 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-delete-it?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLWRlbGV0ZS1pdD9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "948e276f-a9e0-41a8-9c10-3e9784068b53"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "9e1d3356-af7f-46ac-b0a5-41f03466fb65"
+ ]
+ },
+ "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"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "9e1d3356-af7f-46ac-b0a5-41f03466fb65"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14990"
+ ],
+ "x-ms-correlation-request-id": [
+ "06ca9a12-b7e7-4a07-bbe7-b3ac75bf8ee0"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180524T074019Z:06ca9a12-b7e7-4a07-bbe7-b3ac75bf8ee0"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 07:40:19 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 404
+ },
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-delete-it?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL21vLWRlbGV0ZS1pdD9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "a1d2e49f-4de7-4644-a80a-875e4887e03b"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "afdccb24-b92b-46c9-8fb3-2b219279b16d"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "afdccb24-b92b-46c9-8fb3-2b219279b16d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-deletes": [
+ "14999"
+ ],
+ "x-ms-correlation-request-id": [
+ "7ecc87ef-636d-4998-8b47-3731ce3c2243"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180524T073907Z:7ecc87ef-636d-4998-8b47-3731ce3c2243"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 07:39:07 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "422b6c61-95b0-4213-b3be-7282315df71d"
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/GetAllMachineRuns.json b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/GetAllMachineRuns.json
new file mode 100644
index 000000000000..561d2219295a
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/GetAllMachineRuns.json
@@ -0,0 +1,80 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationMachineRuns?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25NYWNoaW5lUnVucz9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "8d501a04-d25a-4709-907c-751a1036587f"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "c6e268f4-41a4-49f5-8d99-6f6452234bed"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationMachineRuns/89b4ef82-8983-4e14-a16d-063eb4acd7a1\",\r\n \"name\": \"89b4ef82-8983-4e14-a16d-063eb4acd7a1\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"tst2\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"d23dd1fa-e67e-4146-8376-1c5583a90612\",\r\n \"sourceComputerId\": \"7dcab1aa-2114-443a-b19f-e98840f1b524\",\r\n \"startTime\": \"2018-05-24T01:21:50.9964021-07:00\",\r\n \"endTime\": \"2018-05-24T01:22:28.59-07:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2018-05-24T01:21:50.9964021-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-24T01:22:55.357-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationMachineRuns/64cfd4a5-cc3f-4e0f-827b-2ad031ec656f\",\r\n \"name\": \"64cfd4a5-cc3f-4e0f-827b-2ad031ec656f\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"tst\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"344c2bba-2c6c-4474-b300-a5b5bbacdc84\",\r\n \"sourceComputerId\": \"7dcab1aa-2114-443a-b19f-e98840f1b524\",\r\n \"startTime\": \"2018-05-24T01:19:47.1012016-07:00\",\r\n \"endTime\": \"2018-05-24T01:22:27.59-07:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2018-05-24T01:19:47.1012016-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-24T01:22:52.37-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationMachineRuns/c671c326-c861-4bd5-91f2-90e9d042b0ca\",\r\n \"name\": \"c671c326-c861-4bd5-91f2-90e9d042b0ca\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-02\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-02\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Linux\",\r\n \"correlationId\": \"cc554c70-3057-4c00-bcd9-456296dba85d\",\r\n \"sourceComputerId\": \"cf90df3d-d71b-4ab4-8109-af447b8a8451\",\r\n \"startTime\": \"2018-05-23T00:59:45.1068255-07:00\",\r\n \"endTime\": \"2018-05-23T01:00:16.17-07:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2018-05-23T00:59:45.1068255-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-23T01:00:52.64-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationMachineRuns/3490cac2-5835-42ba-be52-84940267cf3f\",\r\n \"name\": \"3490cac2-5835-42ba-be52-84940267cf3f\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-02\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Linux\",\r\n \"correlationId\": \"cc554c70-3057-4c00-bcd9-456296dba85d\",\r\n \"sourceComputerId\": \"60d6ca1a-5253-4a7f-822f-b825cd6a775c\",\r\n \"startTime\": \"2018-05-23T00:59:41.0442129-07:00\",\r\n \"endTime\": \"2018-05-23T01:00:13.777-07:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2018-05-23T00:59:41.0442129-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-23T01:00:52.42-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationMachineRuns/28ee02c0-debd-4bf3-b2e0-7e985527882d\",\r\n \"name\": \"28ee02c0-debd-4bf3-b2e0-7e985527882d\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-02\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-02\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Linux\",\r\n \"correlationId\": \"a99b37d2-f257-4090-b45f-ef66b95bc52b\",\r\n \"sourceComputerId\": \"cf90df3d-d71b-4ab4-8109-af447b8a8451\",\r\n \"startTime\": \"2018-05-22T16:43:30.6679728-07:00\",\r\n \"endTime\": \"2018-05-22T16:45:43.08-07:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2018-05-22T16:43:30.6679728-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-22T16:46:35.237-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationMachineRuns/fda676de-e04d-4bbe-b485-9726c991b4fb\",\r\n \"name\": \"fda676de-e04d-4bbe-b485-9726c991b4fb\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-02\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Linux\",\r\n \"correlationId\": \"a99b37d2-f257-4090-b45f-ef66b95bc52b\",\r\n \"sourceComputerId\": \"60d6ca1a-5253-4a7f-822f-b825cd6a775c\",\r\n \"startTime\": \"2018-05-22T16:43:26.7928431-07:00\",\r\n \"endTime\": \"2018-05-22T16:45:39.58-07:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2018-05-22T16:43:26.7928431-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-22T16:46:35.033-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationMachineRuns/05a4ca89-6171-4dec-ab7b-5f35b33a4767\",\r\n \"name\": \"05a4ca89-6171-4dec-ab7b-5f35b33a4767\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"ec9ce57f-da18-44be-b33b-651a0f93cb52\",\r\n \"sourceComputerId\": \"91739da1-3376-4b0b-94c2-f6bd3259a194\",\r\n \"startTime\": \"2018-05-22T16:37:48.5910468-07:00\",\r\n \"endTime\": \"2018-05-22T16:38:31.81-07:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2018-05-22T16:37:48.5910468-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-22T16:38:54.67-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationMachineRuns/ae802dda-78bf-4548-96b6-4179cea7c254\",\r\n \"name\": \"ae802dda-78bf-4548-96b6-4179cea7c254\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"ec9ce57f-da18-44be-b33b-651a0f93cb52\",\r\n \"sourceComputerId\": \"7dcab1aa-2114-443a-b19f-e98840f1b524\",\r\n \"startTime\": \"2018-05-22T16:37:43.0127735-07:00\",\r\n \"endTime\": \"2018-05-22T16:38:21.823-07:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2018-05-22T16:37:43.0127735-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-22T16:38:54.48-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationMachineRuns/ef0a67ee-660f-4ef3-8c5e-e0ab0557cad4\",\r\n \"name\": \"ef0a67ee-660f-4ef3-8c5e-e0ab0557cad4\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"ac9396c7-a837-43d4-be97-fbfe46c80baa\",\r\n \"sourceComputerId\": \"91739da1-3376-4b0b-94c2-f6bd3259a194\",\r\n \"startTime\": \"2018-05-22T15:00:52.525765-07:00\",\r\n \"endTime\": \"2018-05-22T15:02:20.827-07:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2018-05-22T15:00:52.525765-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-22T15:02:57.937-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationMachineRuns/9aa772b6-2c70-4fc4-b964-9e78b0c83e84\",\r\n \"name\": \"9aa772b6-2c70-4fc4-b964-9e78b0c83e84\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"ac9396c7-a837-43d4-be97-fbfe46c80baa\",\r\n \"sourceComputerId\": \"7dcab1aa-2114-443a-b19f-e98840f1b524\",\r\n \"startTime\": \"2018-05-22T15:00:48.150513-07:00\",\r\n \"endTime\": \"2018-05-22T15:02:18.67-07:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2018-05-22T15:00:48.150513-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-22T15:02:57.763-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationMachineRuns/b30dd65b-466f-4824-a8eb-4a2b86665c59\",\r\n \"name\": \"b30dd65b-466f-4824-a8eb-4a2b86665c59\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-03\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"6f68eb1a-0585-4c76-9a9f-bf4f0b47110c\",\r\n \"sourceComputerId\": \"91739da1-3376-4b0b-94c2-f6bd3259a194\",\r\n \"startTime\": \"2018-05-18T15:21:43.580369-07:00\",\r\n \"endTime\": \"2018-05-18T16:32:02.487-07:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2018-05-18T15:21:43.580369-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-18T16:32:50.397-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationMachineRuns/80d3b42c-e9b2-4ad3-925e-cae3643e8c8d\",\r\n \"name\": \"80d3b42c-e9b2-4ad3-925e-cae3643e8c8d\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-03\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"6f68eb1a-0585-4c76-9a9f-bf4f0b47110c\",\r\n \"sourceComputerId\": \"7dcab1aa-2114-443a-b19f-e98840f1b524\",\r\n \"startTime\": \"2018-05-18T15:21:39.6114858-07:00\",\r\n \"endTime\": \"2018-05-18T16:43:47.497-07:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2018-05-18T15:21:39.6114858-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-18T16:43:51.763-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationMachineRuns/a9e808fd-3335-4078-9219-2c8180fdb739\",\r\n \"name\": \"a9e808fd-3335-4078-9219-2c8180fdb739\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-02\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"b4ec6c22-92bf-4f8a-b2d9-20d8446e618a\",\r\n \"sourceComputerId\": \"91739da1-3376-4b0b-94c2-f6bd3259a194\",\r\n \"startTime\": \"2018-05-17T01:06:43.5484446-07:00\",\r\n \"endTime\": \"2018-05-17T01:08:16.49-07:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2018-05-17T01:06:43.5484446-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-17T01:08:48.38-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationMachineRuns/aafb3b65-41c2-4feb-8de6-ea12c7371b85\",\r\n \"name\": \"aafb3b65-41c2-4feb-8de6-ea12c7371b85\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-02\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"b4ec6c22-92bf-4f8a-b2d9-20d8446e618a\",\r\n \"sourceComputerId\": \"7dcab1aa-2114-443a-b19f-e98840f1b524\",\r\n \"startTime\": \"2018-05-17T01:06:39.2826316-07:00\",\r\n \"endTime\": \"2018-05-17T01:08:22.363-07:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2018-05-17T01:06:39.2826316-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-17T01:08:48.177-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationMachineRuns/0033d6d6-828d-4712-adab-293cc4fc8809\",\r\n \"name\": \"0033d6d6-828d-4712-adab-293cc4fc8809\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"46568d26-0182-49b2-8bfd-af3455780397\",\r\n \"sourceComputerId\": \"91739da1-3376-4b0b-94c2-f6bd3259a194\",\r\n \"startTime\": \"2018-05-16T19:06:44.5706119-07:00\",\r\n \"endTime\": \"2018-05-16T19:08:21.993-07:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2018-05-16T19:06:44.5706119-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-16T19:08:49.2-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationMachineRuns/37a4b092-68c0-4e4b-8240-a760796e240b\",\r\n \"name\": \"37a4b092-68c0-4e4b-8240-a760796e240b\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"46568d26-0182-49b2-8bfd-af3455780397\",\r\n \"sourceComputerId\": \"7dcab1aa-2114-443a-b19f-e98840f1b524\",\r\n \"startTime\": \"2018-05-16T19:06:41.1173871-07:00\",\r\n \"endTime\": \"2018-05-16T19:08:13.323-07:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2018-05-16T19:06:41.1173871-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-16T19:08:48.997-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationMachineRuns/42fad310-f76e-47af-a0e1-8194b49a6baa\",\r\n \"name\": \"42fad310-f76e-47af-a0e1-8194b49a6baa\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"65ea299d-9db8-4c8f-9a5f-b695a1ba77cb\",\r\n \"sourceComputerId\": \"91739da1-3376-4b0b-94c2-f6bd3259a194\",\r\n \"startTime\": \"2018-05-16T15:06:45.2829431-07:00\",\r\n \"endTime\": \"2018-05-16T16:13:30.187-07:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2018-05-16T15:06:45.2829431-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-16T16:13:51.297-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationMachineRuns/c35bd244-21d5-4dc0-8b70-0239c3b55f11\",\r\n \"name\": \"c35bd244-21d5-4dc0-8b70-0239c3b55f11\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"65ea299d-9db8-4c8f-9a5f-b695a1ba77cb\",\r\n \"sourceComputerId\": \"7dcab1aa-2114-443a-b19f-e98840f1b524\",\r\n \"startTime\": \"2018-05-16T15:06:39.267128-07:00\",\r\n \"endTime\": \"2018-05-16T16:13:21.873-07:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2018-05-16T15:06:39.267128-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-16T16:13:51.077-07:00\"\r\n }\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "17258"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "c6e268f4-41a4-49f5-8d99-6f6452234bed"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14986"
+ ],
+ "x-ms-correlation-request-id": [
+ "42c6e833-2cc9-49df-8968-3d3d264b044d"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180524T090912Z:42c6e833-2cc9-49df-8968-3d3d264b044d"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 09:09:11 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "422b6c61-95b0-4213-b3be-7282315df71d"
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/GetAllMachineRunsWithFilters.json b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/GetAllMachineRunsWithFilters.json
new file mode 100644
index 000000000000..03ad3a4c6ac8
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/GetAllMachineRunsWithFilters.json
@@ -0,0 +1,80 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationMachineRuns?api-version=2017-05-15-preview&$filter=properties%2FcorrelationId%20eq%20b4ec6c22-92bf-4f8a-b2d9-20d8446e618a%20and%20properties%2Fstatus%20eq%20'Succeeded'%20and%20properties%2FtargetComputer%20eq%20'%2Fsubscriptions%2F422b6c61-95b0-4213-b3be-7282315df71d%2FresourceGroups%2Fmo-compute%2Fproviders%2FMicrosoft.Compute%2FvirtualMachines%2Fmo-vm-w-01'",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25NYWNoaW5lUnVucz9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXcmJGZpbHRlcj1wcm9wZXJ0aWVzJTJGY29ycmVsYXRpb25JZCUyMGVxJTIwYjRlYzZjMjItOTJiZi00ZjhhLWIyZDktMjBkODQ0NmU2MThhJTIwYW5kJTIwcHJvcGVydGllcyUyRnN0YXR1cyUyMGVxJTIwJTI3U3VjY2VlZGVkJTI3JTIwYW5kJTIwcHJvcGVydGllcyUyRnRhcmdldENvbXB1dGVyJTIwZXElMjAlMjclMkZzdWJzY3JpcHRpb25zJTJGNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkJTJGcmVzb3VyY2VHcm91cHMlMkZtby1jb21wdXRlJTJGcHJvdmlkZXJzJTJGTWljcm9zb2Z0LkNvbXB1dGUlMkZ2aXJ0dWFsTWFjaGluZXMlMkZtby12bS13LTAxJTI3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "295dc60d-b3aa-44ab-8064-92ea98c4a665"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "416479c8-a3d4-43ae-a88e-a1a4635ca5c6"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationMachineRuns/aafb3b65-41c2-4feb-8de6-ea12c7371b85\",\r\n \"name\": \"aafb3b65-41c2-4feb-8de6-ea12c7371b85\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-02\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"b4ec6c22-92bf-4f8a-b2d9-20d8446e618a\",\r\n \"sourceComputerId\": \"7dcab1aa-2114-443a-b19f-e98840f1b524\",\r\n \"startTime\": \"2018-05-17T01:06:39.2826316-07:00\",\r\n \"endTime\": \"2018-05-17T01:08:22.363-07:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2018-05-17T01:06:39.2826316-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-17T01:08:48.177-07:00\"\r\n }\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "972"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "416479c8-a3d4-43ae-a88e-a1a4635ca5c6"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14992"
+ ],
+ "x-ms-correlation-request-id": [
+ "3672d473-d962-4a0e-9c41-d4d36f722669"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180524T092013Z:3672d473-d962-4a0e-9c41-d4d36f722669"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 09:20:13 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "422b6c61-95b0-4213-b3be-7282315df71d"
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/GetAllMachineRunsWithFiltersNoResults.json b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/GetAllMachineRunsWithFiltersNoResults.json
new file mode 100644
index 000000000000..7a3839891891
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/GetAllMachineRunsWithFiltersNoResults.json
@@ -0,0 +1,80 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationMachineRuns?api-version=2017-05-15-preview&$filter=properties%2FcorrelationId%20eq%20b4ec6c22-92bf-4f8a-b2d9-20d8446e618a%20and%20properties%2Fstatus%20eq%20'Succeeded'%20and%20properties%2FtargetComputer%20eq%20'foo'",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25NYWNoaW5lUnVucz9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXcmJGZpbHRlcj1wcm9wZXJ0aWVzJTJGY29ycmVsYXRpb25JZCUyMGVxJTIwYjRlYzZjMjItOTJiZi00ZjhhLWIyZDktMjBkODQ0NmU2MThhJTIwYW5kJTIwcHJvcGVydGllcyUyRnN0YXR1cyUyMGVxJTIwJTI3U3VjY2VlZGVkJTI3JTIwYW5kJTIwcHJvcGVydGllcyUyRnRhcmdldENvbXB1dGVyJTIwZXElMjAlMjdmb28lMjc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "90f15ac1-de71-46c0-99e5-6faec764d0fe"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "af7613a5-8c1b-4571-8f18-a249c215448a"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": []\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "12"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "af7613a5-8c1b-4571-8f18-a249c215448a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14949"
+ ],
+ "x-ms-correlation-request-id": [
+ "8bccc958-1308-48e1-92fd-9d1b61ce723d"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180524T091754Z:8bccc958-1308-48e1-92fd-9d1b61ce723d"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 09:17:53 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "422b6c61-95b0-4213-b3be-7282315df71d"
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/GetAllRuns.json b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/GetAllRuns.json
new file mode 100644
index 000000000000..d11701bec6cc
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/GetAllRuns.json
@@ -0,0 +1,80 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationRuns?api-version=2017-05-15-preview&$filter=properties%2FstartTime%20ge%200001-01-01T08:00:00.0000000Z",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25SdW5zP2FwaS12ZXJzaW9uPTIwMTctMDUtMTUtcHJldmlldyYkZmlsdGVyPXByb3BlcnRpZXMlMkZzdGFydFRpbWUlMjBnZSUyMDAwMDEtMDEtMDFUMDglM0EwMCUzQTAwLjAwMDAwMDBa",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "9792311c-3b66-4a94-96a1-bce7d76dfb25"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "ff2dae42-510e-4689-bb96-f5596a346e3d"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationRuns/eb74a03a-b8ef-44a0-be0d-89681afa9c8d\",\r\n \"name\": \"eb74a03a-b8ef-44a0-be0d-89681afa9c8d\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-02\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Linux\",\r\n \"startTime\": \"2018-05-26T01:56:37.7118994-07:00\",\r\n \"endTime\": \"2018-05-26T01:57:09.073-07:00\",\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2018-05-26T01:56:37.7118994-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-26T01:57:46.95-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationRuns/afaec58b-2918-4751-aae1-436ab23f6ef0\",\r\n \"name\": \"afaec58b-2918-4751-aae1-436ab23f6ef0\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-02\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Linux\",\r\n \"startTime\": \"2018-05-25T03:10:36.1432048-07:00\",\r\n \"endTime\": \"2018-05-25T03:12:24.207-07:00\",\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2018-05-25T03:10:36.1432048-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-25T03:12:47.3-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationRuns/80b87e34-e894-41e9-9c50-62283a08f20e\",\r\n \"name\": \"80b87e34-e894-41e9-9c50-62283a08f20e\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2018-05-25T03:08:38.8262264-07:00\",\r\n \"endTime\": \"2018-05-25T03:10:00.373-07:00\",\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2018-05-25T03:08:38.8262264-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-25T03:10:48.173-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationRuns/d23dd1fa-e67e-4146-8376-1c5583a90612\",\r\n \"name\": \"d23dd1fa-e67e-4146-8376-1c5583a90612\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"tst2\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2018-05-24T01:21:50.3088776-07:00\",\r\n \"endTime\": \"2018-05-24T01:22:28.59-07:00\",\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2018-05-24T01:21:50.3088776-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-24T01:22:55.763-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationRuns/344c2bba-2c6c-4474-b300-a5b5bbacdc84\",\r\n \"name\": \"344c2bba-2c6c-4474-b300-a5b5bbacdc84\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"tst\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2018-05-24T01:19:46.4605625-07:00\",\r\n \"endTime\": \"2018-05-24T01:22:27.59-07:00\",\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2018-05-24T01:19:46.4605625-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-24T01:22:52.653-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationRuns/cc554c70-3057-4c00-bcd9-456296dba85d\",\r\n \"name\": \"cc554c70-3057-4c00-bcd9-456296dba85d\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-02\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Linux\",\r\n \"startTime\": \"2018-05-23T00:59:40.3722822-07:00\",\r\n \"endTime\": \"2018-05-23T01:00:16.17-07:00\",\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2018-05-23T00:59:40.3722822-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-23T01:00:52.92-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationRuns/a99b37d2-f257-4090-b45f-ef66b95bc52b\",\r\n \"name\": \"a99b37d2-f257-4090-b45f-ef66b95bc52b\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-02\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Linux\",\r\n \"startTime\": \"2018-05-22T16:43:26.4490825-07:00\",\r\n \"endTime\": \"2018-05-22T16:45:43.08-07:00\",\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2018-05-22T16:43:26.4490825-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-22T16:46:35.503-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationRuns/ec9ce57f-da18-44be-b33b-651a0f93cb52\",\r\n \"name\": \"ec9ce57f-da18-44be-b33b-651a0f93cb52\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2018-05-22T16:37:42.4033504-07:00\",\r\n \"endTime\": \"2018-05-22T16:38:31.81-07:00\",\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2018-05-22T16:37:42.4033504-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-22T16:38:54.92-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationRuns/ac9396c7-a837-43d4-be97-fbfe46c80baa\",\r\n \"name\": \"ac9396c7-a837-43d4-be97-fbfe46c80baa\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2018-05-22T15:00:47.43173-07:00\",\r\n \"endTime\": \"2018-05-22T15:02:20.827-07:00\",\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2018-05-22T15:00:47.43173-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-22T15:02:58.203-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationRuns/6f68eb1a-0585-4c76-9a9f-bf4f0b47110c\",\r\n \"name\": \"6f68eb1a-0585-4c76-9a9f-bf4f0b47110c\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-03\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2018-05-18T15:21:38.6895879-07:00\",\r\n \"endTime\": \"2018-05-18T16:43:47.497-07:00\",\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2018-05-18T15:21:38.6895879-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-18T16:43:52.03-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationRuns/b4ec6c22-92bf-4f8a-b2d9-20d8446e618a\",\r\n \"name\": \"b4ec6c22-92bf-4f8a-b2d9-20d8446e618a\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-02\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2018-05-17T01:06:38.2982099-07:00\",\r\n \"endTime\": \"2018-05-17T01:08:22.363-07:00\",\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2018-05-17T01:06:38.2982099-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-17T01:08:48.693-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationRuns/46568d26-0182-49b2-8bfd-af3455780397\",\r\n \"name\": \"46568d26-0182-49b2-8bfd-af3455780397\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2018-05-16T19:06:40.1642148-07:00\",\r\n \"endTime\": \"2018-05-16T19:08:21.993-07:00\",\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2018-05-16T19:06:40.1642148-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-16T19:08:49.48-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationRuns/65ea299d-9db8-4c8f-9a5f-b695a1ba77cb\",\r\n \"name\": \"65ea299d-9db8-4c8f-9a5f-b695a1ba77cb\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"mo-onetime-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2018-05-16T15:06:38.3452247-07:00\",\r\n \"endTime\": \"2018-05-16T16:13:30.187-07:00\",\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2018-05-16T15:06:38.3452247-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-16T16:13:51.577-07:00\"\r\n }\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "8652"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "ff2dae42-510e-4689-bb96-f5596a346e3d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14996"
+ ],
+ "x-ms-correlation-request-id": [
+ "9a647304-3278-4405-a067-ed38ad044502"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180526T090433Z:9a647304-3278-4405-a067-ed38ad044502"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Sat, 26 May 2018 09:04:32 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "422b6c61-95b0-4213-b3be-7282315df71d"
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/GetAllRunsWithFilters.json b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/GetAllRunsWithFilters.json
new file mode 100644
index 000000000000..27c2f204e4ed
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/GetAllRunsWithFilters.json
@@ -0,0 +1,80 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationRuns?api-version=2017-05-15-preview&$filter=properties%2FosType%20eq%20'Windows'%20and%20properties%2Fstatus%20eq%20'Succeeded'%20and%20properties%2FstartTime%20ge%202018-05-22T23:40:00.0000000Z",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25SdW5zP2FwaS12ZXJzaW9uPTIwMTctMDUtMTUtcHJldmlldyYkZmlsdGVyPXByb3BlcnRpZXMlMkZvc1R5cGUlMjBlcSUyMCUyN1dpbmRvd3MlMjclMjBhbmQlMjBwcm9wZXJ0aWVzJTJGc3RhdHVzJTIwZXElMjAlMjdTdWNjZWVkZWQlMjclMjBhbmQlMjBwcm9wZXJ0aWVzJTJGc3RhcnRUaW1lJTIwZ2UlMjAyMDE4LTA1LTIyVDIzJTNBNDAlM0EwMC4wMDAwMDAwWg==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "a28239dd-24ac-41d4-8afc-b0dba1375e59"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "314525bf-021e-4207-9d29-cd17d451d274"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationRuns/d23dd1fa-e67e-4146-8376-1c5583a90612\",\r\n \"name\": \"d23dd1fa-e67e-4146-8376-1c5583a90612\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"tst2\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2018-05-24T01:21:50.3088776-07:00\",\r\n \"endTime\": \"2018-05-24T01:22:28.59-07:00\",\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2018-05-24T01:21:50.3088776-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-24T01:22:55.763-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationRuns/344c2bba-2c6c-4474-b300-a5b5bbacdc84\",\r\n \"name\": \"344c2bba-2c6c-4474-b300-a5b5bbacdc84\",\r\n \"type\": null,\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"tst\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2018-05-24T01:19:46.4605625-07:00\",\r\n \"endTime\": \"2018-05-24T01:22:27.59-07:00\",\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2018-05-24T01:19:46.4605625-07:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2018-05-24T01:22:52.653-07:00\"\r\n }\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1326"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "314525bf-021e-4207-9d29-cd17d451d274"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14954"
+ ],
+ "x-ms-correlation-request-id": [
+ "55af7687-c188-4b07-b84e-a83730403472"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180524T083515Z:55af7687-c188-4b07-b84e-a83730403472"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 08:35:14 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "422b6c61-95b0-4213-b3be-7282315df71d"
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/GetAllRunsWithFiltersNoResults.json b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/GetAllRunsWithFiltersNoResults.json
new file mode 100644
index 000000000000..3012f7076af7
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/GetAllRunsWithFiltersNoResults.json
@@ -0,0 +1,80 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurationRuns?api-version=2017-05-15-preview&$filter=properties%2FosType%20eq%20'Windows'%20and%20properties%2Fstatus%20eq%20'Failed'%20and%20properties%2FstartTime%20ge%202018-05-22T23:40:00.0000000Z",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25SdW5zP2FwaS12ZXJzaW9uPTIwMTctMDUtMTUtcHJldmlldyYkZmlsdGVyPXByb3BlcnRpZXMlMkZvc1R5cGUlMjBlcSUyMCUyN1dpbmRvd3MlMjclMjBhbmQlMjBwcm9wZXJ0aWVzJTJGc3RhdHVzJTIwZXElMjAlMjdGYWlsZWQlMjclMjBhbmQlMjBwcm9wZXJ0aWVzJTJGc3RhcnRUaW1lJTIwZ2UlMjAyMDE4LTA1LTIyVDIzJTNBNDAlM0EwMC4wMDAwMDAwWg==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "eb655c8b-6f99-467b-9337-f6e868528662"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "f79b1534-fb3e-47f0-946d-37c9db2379ba"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": []\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "12"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "f79b1534-fb3e-47f0-946d-37c9db2379ba"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14958"
+ ],
+ "x-ms-correlation-request-id": [
+ "350cdb2b-f665-4cba-8c3b-5745a9a54826"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180524T082747Z:350cdb2b-f665-4cba-8c3b-5745a9a54826"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 08:27:46 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "422b6c61-95b0-4213-b3be-7282315df71d"
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/GetAllSUCs.json b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/GetAllSUCs.json
new file mode 100644
index 000000000000..d5bd4ff8078c
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/GetAllSUCs.json
@@ -0,0 +1,80 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations?api-version=2017-05-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zP2FwaS12ZXJzaW9uPTIwMTctMDUtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "a0078fd9-1bde-4011-8149-9082ae21ac0f"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "8d2de1ae-9d4c-4017-b109-bc9e46c5a1dc"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-03\",\r\n \"name\": \"mo-onetime-03\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Security, UpdateRollup\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-02\"\r\n ],\r\n \"nonAzureComputerNames\": [\r\n \"server-01\",\r\n \"server-02\"\r\n ]\r\n },\r\n \"frequency\": \"OneTime\",\r\n \"startTime\": \"2018-05-25T03:06:00-07:00\",\r\n \"creationTime\": \"2018-05-25T02:56:19.06-07:00\",\r\n \"lastModifiedTime\": \"2018-05-25T02:56:32.233-07:00\",\r\n \"provisioningState\": \"Failed\",\r\n \"nextRun\": null\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-01\",\r\n \"name\": \"mo-onetime-01\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Unclassified\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-w-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"OneTime\",\r\n \"startTime\": \"2018-05-25T03:05:00-07:00\",\r\n \"creationTime\": \"2018-05-25T02:55:20.45-07:00\",\r\n \"lastModifiedTime\": \"2018-05-25T02:55:31.73-07:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": null\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-02\",\r\n \"name\": \"mo-onetime-02\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"windows\": null,\r\n \"linux\": {\r\n \"includedPackageClassifications\": \"Unclassified\",\r\n \"excludedPackageNameMasks\": null\r\n },\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"OneTime\",\r\n \"startTime\": \"2018-05-25T03:04:00-07:00\",\r\n \"creationTime\": \"2018-05-25T02:54:50.29-07:00\",\r\n \"lastModifiedTime\": \"2018-05-25T02:55:01.337-07:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": null\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-05\",\r\n \"name\": \"mo-onetime-05\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"windows\": null,\r\n \"linux\": {\r\n \"includedPackageClassifications\": \"Critical, Security\",\r\n \"excludedPackageNameMasks\": null\r\n },\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": null,\r\n \"nonAzureComputerNames\": [\r\n \"server-01\",\r\n \"server-02\"\r\n ]\r\n },\r\n \"frequency\": \"OneTime\",\r\n \"startTime\": \"2018-05-23T02:24:00-07:00\",\r\n \"creationTime\": \"2018-05-23T02:14:50.377-07:00\",\r\n \"lastModifiedTime\": \"2018-05-25T02:54:31.1-07:00\",\r\n \"provisioningState\": \"Failed\",\r\n \"nextRun\": null\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/mo-onetime-04\",\r\n \"name\": \"mo-onetime-04\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"windows\": null,\r\n \"linux\": {\r\n \"includedPackageClassifications\": \"Critical, Security\",\r\n \"excludedPackageNameMasks\": null\r\n },\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-01\",\r\n \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-compute/providers/Microsoft.Compute/virtualMachines/mo-vm-l-02\"\r\n ],\r\n \"nonAzureComputerNames\": [\r\n \"server-01\",\r\n \"server-02\"\r\n ]\r\n },\r\n \"frequency\": \"OneTime\",\r\n \"startTime\": \"2018-05-23T02:20:00-07:00\",\r\n \"creationTime\": \"2018-05-23T02:10:55.507-07:00\",\r\n \"lastModifiedTime\": \"2018-05-25T02:53:52.02-07:00\",\r\n \"provisioningState\": \"Failed\",\r\n \"nextRun\": null\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/tst2\",\r\n \"name\": \"tst2\",\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/422b6c61-95b0-4213-b3be-7282315df71d/resourcegroups/mo-compute/providers/microsoft.compute/virtualmachines/mo-vm-w-01\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"OneTime\",\r\n \"startTime\": \"2018-05-24T01:21:00-07:00\",\r\n \"creationTime\": \"2018-05-24T00:51:45.707-07:00\",\r\n \"lastModifiedTime\": \"2018-05-24T00:51:46.097-07:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": null\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/tst\",\r\n \"name\": \"tst\",\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/422b6c61-95b0-4213-b3be-7282315df71d/resourcegroups/mo-compute/providers/microsoft.compute/virtualmachines/mo-vm-w-01\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"OneTime\",\r\n \"startTime\": \"2018-05-24T01:19:00-07:00\",\r\n \"creationTime\": \"2018-05-24T00:50:18.11-07:00\",\r\n \"lastModifiedTime\": \"2018-05-24T00:50:18.44-07:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": null\r\n }\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "6207"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "8d2de1ae-9d4c-4017-b109-bc9e46c5a1dc"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14984"
+ ],
+ "x-ms-correlation-request-id": [
+ "63b4c5af-9fc9-481c-9b91-ba56c976abb1"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180526T084407Z:63b4c5af-9fc9-481c-9b91-ba56c976abb1"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Sat, 26 May 2018 08:44:06 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "422b6c61-95b0-4213-b3be-7282315df71d"
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/GetAllSUCsForVM.json b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/GetAllSUCsForVM.json
new file mode 100644
index 000000000000..7c6e16a50bc2
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation.Test/SessionRecords/Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests/GetAllSUCsForVM.json
@@ -0,0 +1,80 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations?api-version=2017-05-15-preview&$filter=properties%2FupdateConfiguration%2FazureVirtualMachines%2Fany(m:%20m%20eq%20'%2Fsubscriptions%2F422b6c61-95b0-4213-b3be-7282315df71d%2FresourceGroups%2Fmo-compute%2Fproviders%2FMicrosoft.Compute%2FvirtualMachines%2Fmo-vm-w-01')",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDIyYjZjNjEtOTViMC00MjEzLWIzYmUtNzI4MjMxNWRmNzFkL3Jlc291cmNlR3JvdXBzL21vLXJlc291cmNlcy1ldXMvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRvbWF0aW9uL2F1dG9tYXRpb25BY2NvdW50cy9tby1hYWEtZXVzMi9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zP2FwaS12ZXJzaW9uPTIwMTctMDUtMTUtcHJldmlldyYkZmlsdGVyPXByb3BlcnRpZXMlMkZ1cGRhdGVDb25maWd1cmF0aW9uJTJGYXp1cmVWaXJ0dWFsTWFjaGluZXMlMkZhbnklMjhtJTNBJTIwbSUyMGVxJTIwJTI3JTJGc3Vic2NyaXB0aW9ucyUyRjQyMmI2YzYxLTk1YjAtNDIxMy1iM2JlLTcyODIzMTVkZjcxZCUyRnJlc291cmNlR3JvdXBzJTJGbW8tY29tcHV0ZSUyRnByb3ZpZGVycyUyRk1pY3Jvc29mdC5Db21wdXRlJTJGdmlydHVhbE1hY2hpbmVzJTJGbW8tdm0tdy0wMSUyNyUyOQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "a27b8e45-c8f1-4d38-826d-da485c7ea2f7"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.7.2650.0",
+ "OSName/Windows10Enterprise",
+ "OSVersion/6.3.16299",
+ "Microsoft.Azure.Management.Automation.AutomationClient/3.0.2.0"
+ ],
+ "x-ms-activity-id": [
+ "7368cf00-df46-47e6-9db9-2493419e680a"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/tst\",\r\n \"name\": \"tst\",\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/422b6c61-95b0-4213-b3be-7282315df71d/resourcegroups/mo-compute/providers/microsoft.compute/virtualmachines/mo-vm-w-01\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"OneTime\",\r\n \"startTime\": \"2018-05-24T01:19:00-07:00\",\r\n \"creationTime\": \"2018-05-24T00:50:18.11-07:00\",\r\n \"lastModifiedTime\": \"2018-05-24T00:50:18.44-07:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": \"2018-05-24T01:19:00-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/mo-resources-eus/providers/Microsoft.Automation/automationAccounts/mo-aaa-eus2/softwareUpdateConfigurations/tst2\",\r\n \"name\": \"tst2\",\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/422b6c61-95b0-4213-b3be-7282315df71d/resourcegroups/mo-compute/providers/microsoft.compute/virtualmachines/mo-vm-w-01\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"OneTime\",\r\n \"startTime\": \"2018-05-24T01:21:00-07:00\",\r\n \"creationTime\": \"2018-05-24T00:51:45.707-07:00\",\r\n \"lastModifiedTime\": \"2018-05-24T00:51:46.097-07:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": \"2018-05-24T01:21:00-07:00\"\r\n }\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1763"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "7368cf00-df46-47e6-9db9-2493419e680a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14998"
+ ],
+ "x-ms-correlation-request-id": [
+ "189a329e-aeb3-4635-a9f9-a5b7483103c9"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20180524T075429Z:189a329e-aeb3-4635-a9f9-a5b7483103c9"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 24 May 2018 07:54:29 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-AspNet-Version": [
+ "4.0.30319"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "422b6c61-95b0-4213-b3be-7282315df71d"
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/packages.config b/src/ResourceManager/Automation/Commands.Automation.Test/packages.config
index eab14706e8d2..f5039559edb2 100644
--- a/src/ResourceManager/Automation/Commands.Automation.Test/packages.config
+++ b/src/ResourceManager/Automation/Commands.Automation.Test/packages.config
@@ -6,7 +6,7 @@
-
+
@@ -23,4 +23,4 @@
-
+
\ No newline at end of file
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationSchedule.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationSchedule.cs
index d1b7cd8e7be3..cb834b987661 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationSchedule.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationSchedule.cs
@@ -136,6 +136,12 @@ public NewAzureAutomationSchedule()
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The schedule time zone.")]
public string TimeZone { get; set; }
+ ///
+ /// Passed to indicate that the schedule object returned by the cmdlet is to be used for update management
+ ///
+ [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Indicates that this schedule object will be used for scheduling an update deployment")]
+ public SwitchParameter ForUpdate { get; set; }
+
///
/// Execute this cmdlet.
///
@@ -175,7 +181,13 @@ protected override void AutomationProcessRecord()
break;
}
- Schedule createdSchedule = this.AutomationClient.CreateSchedule(this.ResourceGroupName, this.AutomationAccountName, schedule);
+ Schedule createdSchedule = schedule;
+
+ if (!this.ForUpdate.IsPresent)
+ {
+ createdSchedule = this.AutomationClient.CreateSchedule(this.ResourceGroupName, this.AutomationAccountName, schedule);
+ }
+
this.WriteObject(createdSchedule);
}
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationSoftwareUpdateConfiguration.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationSoftwareUpdateConfiguration.cs
new file mode 100644
index 000000000000..c215aab95c8c
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationSoftwareUpdateConfiguration.cs
@@ -0,0 +1,254 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Linq;
+using System.Management.Automation;
+using System.Security.Permissions;
+using Microsoft.Azure.Commands.Automation.Common;
+using Microsoft.Azure.Commands.Automation.Model;
+using Microsoft.Azure.Commands.Automation.Properties;
+using DayOfWeek = Microsoft.Azure.Commands.Automation.Model.DayOfWeek;
+using Microsoft.Azure.Management.Automation.Models;
+
+namespace Microsoft.Azure.Commands.Automation.Cmdlet
+{
+ ///
+ /// Creates an azure automation Schedule.
+ ///
+ [Cmdlet(VerbsCommon.New, "AzureRmAutomationSchedule", DefaultParameterSetName = AutomationCmdletParameterSets.ByDaily)]
+ [OutputType(typeof(Schedule))]
+ public class NewAzureAutomationSoftwareUpdateConfiguration : AzureAutomationBaseCmdlet
+ {
+ private const string COMMA = ",";
+ private const string Windows = "Windows";
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public NewAzureAutomationSoftwareUpdateConfiguration()
+ {
+ this.ExpiryTime = Constants.DefaultScheduleExpiryTime;
+ }
+
+ [Parameter(Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The software update configuration name.")]
+ [ValidateNotNullOrEmpty]
+ public string Name { get; set; }
+
+ [Parameter(Position = 3, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The schedule start time.")]
+ [ValidateNotNull]
+ public DateTimeOffset StartTime { get; set; }
+
+ [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The software update configuration description.")]
+ public string Description { get; set; }
+
+ [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The schedule time zone.")]
+ public string TimeZone { get; set; }
+
+ [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Maximum duration of the software update configuration run.")]
+ public TimeSpan MaximumDuration { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByHourlyWindows, Mandatory = false, HelpMessage = "The schedule expiry time.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByDailyWindows, Mandatory = false, HelpMessage = "The schedule expiry time.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByWeeklyWindows, Mandatory = false, HelpMessage = "The schedule expiry time.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByMonthlyDaysOfMonthWindows, Mandatory = false, HelpMessage = "The schedule expiry time.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByMonthlyDayOfWeekWindows, Mandatory = false, HelpMessage = "The schedule expiry time.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByHourlyLinux, Mandatory = false, HelpMessage = "The schedule expiry time.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByDailyLinux, Mandatory = false, HelpMessage = "The schedule expiry time.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByWeeklyLinux, Mandatory = false, HelpMessage = "The schedule expiry time.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByMonthlyDaysOfMonthLinux, Mandatory = false, HelpMessage = "The schedule expiry time.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByMonthlyDayOfWeekLinux, Mandatory = false, HelpMessage = "The schedule expiry time.")]
+ public DateTimeOffset ExpiryTime { get; set; }
+
+ [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "List of azure virtual machine resource Ids.")]
+ public string[] AzureVMs { get; set; }
+
+ [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "List of non-azure computer names.")]
+ public string[] NonAzureComputers { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByOneTimeWindows, Mandatory = true, HelpMessage = "To create a one time schedule.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByOneTimeLinux, Mandatory = true, HelpMessage = "To create a one time schedule.")]
+ public SwitchParameter OneTime { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByHourlyWindows, Mandatory = true, HelpMessage = "The hourly schedule hour interval.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByHourlyLinux, Mandatory = true, HelpMessage = "The hourly schedule hour interval.")]
+ [ValidateRange(1, byte.MaxValue)]
+ public byte HourInterval { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByDailyWindows, Mandatory = true, HelpMessage = "The daily schedule day interval.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByDailyLinux, Mandatory = true, HelpMessage = "The daily schedule day interval.")]
+ [ValidateRange(1, byte.MaxValue)]
+ public byte DayInterval { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByWeeklyWindows, Mandatory = true, HelpMessage = "The weekly schedule week interval.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByWeeklyLinux, Mandatory = true, HelpMessage = "The weekly schedule week interval.")]
+ [ValidateRange(1, byte.MaxValue)]
+ public byte WeekInterval { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByWeeklyWindows, Mandatory = false, HelpMessage = "The list of days of week for the weekly schedule.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByWeeklyLinux, Mandatory = false, HelpMessage = "The list of days of week for the weekly schedule.")]
+ public System.DayOfWeek[] DaysOfWeek { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByMonthlyDaysOfMonthWindows, Mandatory = true, HelpMessage = "The monthly schedule month interval.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByMonthlyDayOfWeekWindows, Mandatory = true, HelpMessage = "The monthly schedule month interval.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByMonthlyDaysOfMonthLinux, Mandatory = true, HelpMessage = "The monthly schedule month interval.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByMonthlyDayOfWeekLinux, Mandatory = true, HelpMessage = "The monthly schedule month interval.")]
+ [ValidateRange(1, byte.MaxValue)]
+ public byte MonthInterval { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByMonthlyDaysOfMonthWindows, Mandatory = false, HelpMessage = "The list of days of month for the monthly schedule.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByMonthlyDaysOfMonthLinux, Mandatory = false, HelpMessage = "The list of days of month for the monthly schedule.")]
+ public DaysOfMonth[] DaysOfMonth { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByMonthlyDayOfWeekWindows, Mandatory = false, HelpMessage = "The day of week for the monthly occurrence.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByMonthlyDayOfWeekLinux, Mandatory = false, HelpMessage = "The day of week for the monthly occurrence.")]
+ public System.DayOfWeek? DayOfWeek { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByMonthlyDayOfWeekWindows, Mandatory = false, HelpMessage = "The Occurrence of the week within the month.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByMonthlyDayOfWeekLinux, Mandatory = false, HelpMessage = "The Occurrence of the week within the month.")]
+ public DayOfWeekOccurrence DayOfWeekOccurrence { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByOneTimeWindows, Mandatory = true, HelpMessage = "To create a one time schedule.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByHourlyWindows, Mandatory = true, HelpMessage = "The hourly schedule hour interval.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByDailyWindows, Mandatory = true, HelpMessage = "The daily schedule day interval.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByWeeklyWindows, Mandatory = true, HelpMessage = "The weekly schedule week interval.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByMonthlyDaysOfMonthWindows, Mandatory = false, HelpMessage = "The list of days of month for the monthly schedule.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByMonthlyDayOfWeekWindows, Mandatory = false, HelpMessage = "The Occurrence of the week within the month.")]
+ [ValidateSet("Unclassified", "Critical", "Security", "UpdateRollup", "FeaturePack", "ServicePack", "Definition", "Tools", "Updates")]
+ public string[] IncludedUpdateClassifications { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByOneTimeWindows, Mandatory = true, HelpMessage = "To create a one time schedule.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByHourlyWindows, Mandatory = true, HelpMessage = "The hourly schedule hour interval.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByDailyWindows, Mandatory = true, HelpMessage = "The daily schedule day interval.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByWeeklyWindows, Mandatory = true, HelpMessage = "The weekly schedule week interval.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByMonthlyDaysOfMonthWindows, Mandatory = false, HelpMessage = "The list of days of month for the monthly schedule.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByMonthlyDayOfWeekWindows, Mandatory = false, HelpMessage = "The Occurrence of the week within the month.")]
+ public string[] ExcludedKbNumbers { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByOneTimeLinux, Mandatory = true, HelpMessage = "To create a one time schedule.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByHourlyLinux, Mandatory = true, HelpMessage = "The hourly schedule hour interval.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByDailyLinux, Mandatory = true, HelpMessage = "The daily schedule day interval.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByWeeklyLinux, Mandatory = true, HelpMessage = "The weekly schedule week interval.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByMonthlyDaysOfMonthLinux, Mandatory = false, HelpMessage = "The list of days of month for the monthly schedule.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByMonthlyDayOfWeekLinux, Mandatory = false, HelpMessage = "The Occurrence of the week within the month.")]
+ [ValidateSet("Unclassified", "Critical", "Security", "Other")]
+ public string[] IncludedPackageClassifications { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByOneTimeLinux, Mandatory = true, HelpMessage = "To create a one time schedule.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByHourlyLinux, Mandatory = true, HelpMessage = "The hourly schedule hour interval.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByDailyLinux, Mandatory = true, HelpMessage = "The daily schedule day interval.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByWeeklyLinux, Mandatory = true, HelpMessage = "The weekly schedule week interval.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByMonthlyDaysOfMonthLinux, Mandatory = false, HelpMessage = "The list of days of month for the monthly schedule.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByMonthlyDayOfWeekLinux, Mandatory = false, HelpMessage = "The Occurrence of the week within the month.")]
+ public string[] ExcludedPackageNameMasks { get; set; }
+
+ [PermissionSet(SecurityAction.Demand, Name = "FullTrust")]
+ protected override void AutomationProcessRecord()
+ {
+ // must pass some target machines
+ if((this.AzureVMs == null || !this.AzureVMs.Any()) && (this.NonAzureComputers == null|| !this.NonAzureComputers.Any()))
+ {
+ throw new ArgumentException(Resources.MonthlyScheduleNeedsDayOfWeekAndOccurrence2);
+ }
+
+ var updateConfiguration = new UpdateConfiguration()
+ {
+ Duration = this.MaximumDuration,
+ AzureVirtualMachines = this.AzureVMs,
+ NonAzureComputerNames = this.NonAzureComputers,
+ OperatingSystem = this.IsWindows ? OperatingSystemType.Windows : OperatingSystemType.Linux
+ };
+
+ if(this.IsWindows)
+ {
+ updateConfiguration.Windows = new WindowsProperties
+ {
+ ExcludedKbNumbers = this.ExcludedKbNumbers,
+ IncludedUpdateClassifications = string.Join(",", this.IncludedUpdateClassifications)
+ };
+ }
+ else
+ {
+ updateConfiguration.Linux = new LinuxProperties
+ {
+ IncludedPackageClassifications = string.Join(COMMA, this.IncludedPackageClassifications),
+ ExcludedPackageNameMasks = this.ExcludedPackageNameMasks
+ };
+ }
+
+ var suc = new SoftwareUpdateConfiguration()
+ {
+ UpdateConfiguration = updateConfiguration,
+ ScheduleInfo = new ScheduleProperties
+ {
+ StartTime = this.StartTime,
+ ExpiryTime = this.ExpiryTime,
+ }
+ };
+
+
+ this.WriteObject(suc);
+ }
+
+ private bool IsWindows
+ {
+ get
+ {
+ return this.ParameterSetName.Contains(Windows);
+ }
+ }
+
+ private ScheduleProperties CreateScheduleProperties()
+ {
+ var scheduleProperties = new ScheduleProperties
+ {
+ StartTime = this.StartTime,
+ ExpiryTime = this.ExpiryTime,
+ TimeZone = this.TimeZone,
+ AdvancedSchedule = new AdvancedSchedule()
+ };
+
+ switch (this.ParameterSetName)
+ {
+ case AutomationCmdletParameterSets.ByOneTime:
+ scheduleProperties.Frequency = Management.Automation.Models.ScheduleFrequency.OneTime;
+ break;
+ case AutomationCmdletParameterSets.ByDaily:
+ scheduleProperties.Frequency = Management.Automation.Models.ScheduleFrequency.Day;
+ scheduleProperties.Interval = this.DayInterval;
+ break;
+ case AutomationCmdletParameterSets.ByHourly:
+ scheduleProperties.Frequency = Management.Automation.Models.ScheduleFrequency.Hour;
+ scheduleProperties.Interval = this.HourInterval;
+ break;
+ case AutomationCmdletParameterSets.ByWeekly:
+ scheduleProperties.Frequency = Management.Automation.Models.ScheduleFrequency.Week;
+ scheduleProperties.Interval = this.WeekInterval;
+ scheduleProperties.AdvancedSchedule = this.DaysOfWeek == null ? null : new AdvancedSchedule
+ {
+ WeekDays = this.DaysOfWeek.Select(day => day.ToString()).ToList()
+ };
+ break;
+ case AutomationCmdletParameterSets.ByMonthlyDayOfWeek:
+ scheduleProperties.Frequency = Management.Automation.Models.ScheduleFrequency.Month;
+ scheduleProperties.Interval = this.MonthInterval;
+ schedule = this.CreateMonthlyScheduleModel();
+ break;
+ case AutomationCmdletParameterSets.ByMonthlyDaysOfMonth:
+ scheduleProperties.Frequency = Management.Automation.Models.ScheduleFrequency.Month;
+ schedule = this.CreateMonthlyScheduleModel();
+ break;
+ }
+ }
+ }
+}
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/UpdateManagement/GetAzureAutomationSoftwareUpdateConfiguration.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/UpdateManagement/GetAzureAutomationSoftwareUpdateConfiguration.cs
new file mode 100644
index 000000000000..b1cfdade0376
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/UpdateManagement/GetAzureAutomationSoftwareUpdateConfiguration.cs
@@ -0,0 +1,56 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+namespace Microsoft.Azure.Commands.Automation.Cmdlet
+{
+ using System.Collections.Generic;
+ using System.Management.Automation;
+ using System.Security.Permissions;
+ using Microsoft.Azure.Commands.Automation.Common;
+ using Model.UpdateManagement;
+
+ [Cmdlet(VerbsCommon.Get, "AzureRmAutomationSoftwareUpdateConfiguration", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
+ [OutputType(typeof(SoftwareUpdateConfiguration))]
+ public class GetAzureAutomationSoftwareUpdateConfiguration : AzureAutomationBaseCmdlet
+ {
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByName, Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Name of the software update configuration.")]
+ [ValidateNotNullOrEmpty]
+ public string Name { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByVMId, Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Azure resource Id of the virtual machine.")]
+ [ValidateNotNullOrEmpty]
+ public string AzureVMResourceId { get; set; }
+
+ [PermissionSet(SecurityAction.Demand, Name = "FullTrust")]
+ protected override void AutomationProcessRecord()
+ {
+ IEnumerable result = null;
+ switch(this.ParameterSetName)
+ {
+ case AutomationCmdletParameterSets.ByName:
+ result = new SoftwareUpdateConfiguration[] {
+ this.AutomationClient.GetSoftwareUpdateConfigurationByName(this.ResourceGroupName, this.AutomationAccountName, this.Name)
+ };
+ break;
+ case AutomationCmdletParameterSets.ByVMId:
+ result = this.AutomationClient.ListSoftwareUpdateConfigurations(this.ResourceGroupName, this.AutomationAccountName, this.AzureVMResourceId);
+ break;
+ default:
+ result = this.AutomationClient.ListSoftwareUpdateConfigurations(this.ResourceGroupName, this.AutomationAccountName);
+ break;
+ }
+ this.GenerateCmdletOutput(result);
+ }
+ }
+}
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/UpdateManagement/GetAzureAutomationSoftwareUpdateMachineRun.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/UpdateManagement/GetAzureAutomationSoftwareUpdateMachineRun.cs
new file mode 100644
index 000000000000..b215883b83e9
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/UpdateManagement/GetAzureAutomationSoftwareUpdateMachineRun.cs
@@ -0,0 +1,92 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+namespace Microsoft.Azure.Commands.Automation.Cmdlet
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Management.Automation;
+ using System.Security.Permissions;
+ using Microsoft.Azure.Commands.Automation.Common;
+ using Microsoft.Azure.Commands.Automation.Model.UpdateManagement;
+
+ [Cmdlet(VerbsCommon.Get, "AzureRmAutomationSoftwareUpdateMachineRun", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
+ [OutputType(typeof(SoftwareUpdateMachineRun))]
+ public class GetAzureAutomationSoftwareUpdateMachineRun : AzureAutomationBaseCmdlet
+ {
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ById, Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Id of the software update machine run.")]
+ [ValidateNotNullOrEmpty]
+ public Guid Id { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.BySucrId, Position = 2, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Id of the software update run.")]
+ [ValidateNotNullOrEmpty]
+ public Guid SoftwareUpdateRunId { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.BySucr, Position = 2, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The software update run.")]
+ [ValidateNotNull]
+ public SoftwareUpdateRun SoftwareUpdateRun { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByAll, Position = 2, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Status of the machine run.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.BySucr, Position = 3, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Status of the machine run.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.BySucrId, Position = 3, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Status of the machine run.")]
+ public SoftwareUpdateMachineRunStatus? Status { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByAll, Position = 2, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "target computer for the machine run. Can be either a non-azure computer name or an azure VM resource id.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.BySucr, Position = 4, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "target computer for the machine run. Can be either a non-azure computer name or an azure VM resource id.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.BySucrId, Position = 4, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "target computer for the machine run. Can be either a non-azure computer name or an azure VM resource id.")]
+ public string TargetComputer { get; set; }
+
+ [PermissionSet(SecurityAction.Demand, Name = "FullTrust")]
+ protected override void AutomationProcessRecord()
+ {
+ IEnumerable result = null;
+ switch (this.ParameterSetName)
+ {
+ case AutomationCmdletParameterSets.ById:
+ result = new SoftwareUpdateMachineRun[] {
+ this.AutomationClient.GetSoftwareUpdateMachineRunById(
+ this.ResourceGroupName,
+ this.AutomationAccountName,
+ this.Id)
+ };
+ break;
+ case AutomationCmdletParameterSets.BySucr:
+ result = this.AutomationClient.ListSoftwareUpdateMachineRuns(
+ this.ResourceGroupName,
+ this.AutomationAccountName,
+ this.SoftwareUpdateRun.RunId,
+ this.TargetComputer,
+ this.Status);
+ break;
+ case AutomationCmdletParameterSets.BySucrId:
+ result = this.AutomationClient.ListSoftwareUpdateMachineRuns(
+ this.ResourceGroupName,
+ this.AutomationAccountName,
+ this.SoftwareUpdateRunId,
+ this.TargetComputer,
+ this.Status);
+ break;
+ default:
+ result = this.AutomationClient.ListSoftwareUpdateMachineRuns(
+ this.ResourceGroupName,
+ this.AutomationAccountName,
+ null, this.TargetComputer,
+ this.Status);
+ break;
+ }
+
+ this.GenerateCmdletOutput(result);
+ }
+ }
+}
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/UpdateManagement/GetAzureAutomationSoftwareUpdateRun.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/UpdateManagement/GetAzureAutomationSoftwareUpdateRun.cs
new file mode 100644
index 000000000000..baeec43dfd5a
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/UpdateManagement/GetAzureAutomationSoftwareUpdateRun.cs
@@ -0,0 +1,89 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+namespace Microsoft.Azure.Commands.Automation.Cmdlet
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Management.Automation;
+ using System.Security.Permissions;
+ using Microsoft.Azure.Commands.Automation.Common;
+ using Microsoft.Azure.Commands.Automation.Model.UpdateManagement;
+
+ [Cmdlet(VerbsCommon.Get, "AzureRmAutomationSoftwareUpdateRun", DefaultParameterSetName = AutomationCmdletParameterSets.ByAll)]
+ [OutputType(typeof(SoftwareUpdateRun))]
+ public class GetAzureAutomationSoftwareUpdateRun : AzureAutomationBaseCmdlet
+ {
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ById, Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Id of the software update configuration run.")]
+ [ValidateNotNullOrEmpty]
+ public Guid Id { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.BySucName, Position = 2, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Name of the software update configuration triggered the run.")]
+ [ValidateNotNullOrEmpty]
+ public string SoftwareUpdateConfigurationName { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.BySuc, Position = 2, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The software update configuration triggered the run.")]
+ [ValidateNotNull]
+ public SoftwareUpdateConfiguration SoftwareUpdateConfiguration { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByAll, Position = 3, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The operating system of the run.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.BySuc, Position = 3, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The operating system of the run.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.BySucName, Position = 3, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The operating system of the run.")]
+ public OperatingSystemType? OperatingSystem { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByAll, Position = 3, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Status of the run.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.BySuc, Position = 4, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Status of the run.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.BySucName, Position = 4, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Status of the run.")]
+ public SoftwareUpdateRunStatus? Status { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.ByAll, Position = 3, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Minimum start time of the run.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.BySuc, Position = 5, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Minimum start time of the run.")]
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.BySucName, Position = 5, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Minimum start time of the run.")]
+ public DateTimeOffset StartTime { get; set; }
+
+ [PermissionSet(SecurityAction.Demand, Name = "FullTrust")]
+ protected override void AutomationProcessRecord()
+ {
+ IEnumerable result = null;
+ switch (this.ParameterSetName)
+ {
+ case AutomationCmdletParameterSets.ById:
+ result = new SoftwareUpdateRun[] {
+ this.AutomationClient.GetSoftwareUpdateRunById(this.ResourceGroupName, this.AutomationAccountName, this.Id)
+ };
+ break;
+ case AutomationCmdletParameterSets.BySuc:
+ result = this.AutomationClient.ListSoftwareUpdateRuns(
+ this.ResourceGroupName,
+ this.AutomationAccountName,
+ this.SoftwareUpdateConfiguration.Name, this.OperatingSystem, this.StartTime, this.Status);
+ break;
+ case AutomationCmdletParameterSets.BySucName:
+ result = this.AutomationClient.ListSoftwareUpdateRuns(
+ this.ResourceGroupName,
+ this.AutomationAccountName,
+ this.SoftwareUpdateConfigurationName, this.OperatingSystem, this.StartTime, this.Status);
+ break;
+ default:
+ result = this.AutomationClient.ListSoftwareUpdateRuns(
+ this.ResourceGroupName,
+ this.AutomationAccountName,
+ null, this.OperatingSystem, this.StartTime, this.Status);
+ break;
+ }
+
+ this.GenerateCmdletOutput(result);
+ }
+ }
+}
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/UpdateManagement/NewAzureAutomationSoftwareUpdateConfiguration.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/UpdateManagement/NewAzureAutomationSoftwareUpdateConfiguration.cs
new file mode 100644
index 000000000000..f8ab96a824bc
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/UpdateManagement/NewAzureAutomationSoftwareUpdateConfiguration.cs
@@ -0,0 +1,110 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+namespace Microsoft.Azure.Commands.Automation.Cmdlet.UpdateManagement
+{
+ using System;
+ using System.Management.Automation;
+ using System.Security.Permissions;
+ using Microsoft.Azure.Commands.Automation.Common;
+ using Microsoft.Azure.Commands.Automation.Model;
+ using Microsoft.Azure.Commands.Automation.Model.UpdateManagement;
+ using System.Linq;
+ using Properties;
+
+ [Cmdlet(VerbsCommon.New, "AzureRmAutomationSoftwareUpdateConfiguration")]
+ [OutputType(typeof(SoftwareUpdateConfiguration))]
+ public class NewAzureAutomationSoftwareUpdateConfiguration : AzureAutomationBaseCmdlet
+ {
+ [Parameter(Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Schedule object used for software update configuration.")]
+ [ValidateNotNull]
+ public Schedule Schedule { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.Windows, Position = 3, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Indicates that the software update configuration targeting windows operating system machines.")]
+ public SwitchParameter Windows { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.Linux, Position = 3, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Indicates that the software update configuration targeting Linux operating system machines.")]
+ public SwitchParameter Linux { get; set; }
+
+ [Parameter(Position = 4, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Resource Ids for azure virtual machines.")]
+ public string[] AzureVMResourceIds { get; set; }
+
+ [Parameter(Position = 5, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Non-Azure computer names.")]
+ public string[] NonAzureComputers { get; set; }
+
+ [Parameter(Position = 6, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Maximum duration for the update.")]
+ public TimeSpan Duration { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.Windows, Position = 7, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Included Windows Update classifications.")]
+ public WindowsUpdateClasses[] IncludedUpdateClassifications { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.Windows, Position = 8, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "KB numbers of excluded updates.")]
+ public string[] ExcludedKbNumbers { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.Windows, Position = 9, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "KB numbers of included updates.")]
+ public string[] IncludedKbNumbers { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.Linux, Position = 7, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Included Linux package classifications.")]
+ public LinuxPackageClasses[] IncludedPackageClassifications { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.Linux, Position = 8, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Excluded Linux package masks.")]
+ public string[] ExcludedPackageNameMasks { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.Linux, Position = 9, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Included Linux package masks.")]
+ public string[] IncludedPackageNameMasks { get; set; }
+
+ private bool IsWindows { get { return this.ParameterSetName == AutomationCmdletParameterSets.Windows; } }
+
+ ///
+ /// Execute this cmdlet.
+ ///
+ [PermissionSet(SecurityAction.Demand, Name = "FullTrust")]
+ protected override void AutomationProcessRecord()
+ {
+ if((this.AzureVMResourceIds == null || !this.AzureVMResourceIds.Any()) && (this.NonAzureComputers == null || !this.NonAzureComputers.Any()))
+ {
+ throw new PSArgumentException(Resources.SoftwareUpdateConfigurationHasNoTargetComputers);
+ }
+
+ var suc = new SoftwareUpdateConfiguration()
+ {
+ Name = this.Schedule.Name,
+ Description = this.Schedule.Description,
+ ScheduleConfiguration = this.Schedule,
+ UpdateConfiguration = new UpdateConfiguration
+ {
+ OperatingSystem = this.IsWindows ? OperatingSystemType.Windows : OperatingSystemType.Linux,
+ Windows = !this.IsWindows ? null : new WindowsConfiguration
+ {
+ ExcludedKbNumbers = this.ExcludedKbNumbers,
+ IncludedKbNumbers = this.IncludedKbNumbers,
+ IncludedUpdateClassifications = this.IncludedUpdateClassifications
+ },
+ Linux = this.IsWindows ? null : new LinuxConfiguration
+ {
+ ExcludedPackageNameMasks = this.ExcludedPackageNameMasks,
+ IncludedPackageClassifications = this.IncludedPackageClassifications,
+ IncludedPackageNameMasks = this.IncludedPackageNameMasks
+ },
+ Duration = this.Duration,
+ AzureVirtualMachines = this.AzureVMResourceIds,
+ NonAzureComputers = this.NonAzureComputers
+ }
+ };
+
+ suc = this.AutomationClient.CreateSoftwareUpdateConfiguration(this.ResourceGroupName, this.AutomationAccountName, suc);
+ this.WriteObject(suc);
+ }
+ }
+}
diff --git a/src/ResourceManager/Automation/Commands.Automation/Cmdlet/UpdateManagement/RemoveAzureAutomationSoftwareUpdateConfiguration.cs b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/UpdateManagement/RemoveAzureAutomationSoftwareUpdateConfiguration.cs
new file mode 100644
index 000000000000..b79fb0162bb8
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation/Cmdlet/UpdateManagement/RemoveAzureAutomationSoftwareUpdateConfiguration.cs
@@ -0,0 +1,59 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using Microsoft.Azure.Commands.Automation.Common;
+using Microsoft.Azure.Commands.Automation.Properties;
+using System.Management.Automation;
+using System.Security.Permissions;
+using Microsoft.Azure.Commands.Automation.Model.UpdateManagement;
+
+namespace Microsoft.Azure.Commands.Automation.Cmdlet.UpdateManagement
+{
+ ///
+ /// Removes a Certificate for automation.
+ ///
+ [Cmdlet(VerbsCommon.Remove, "AzureRmAutomationSoftwareUpdateConfiguration", SupportsShouldProcess = true,
+ DefaultParameterSetName = AutomationCmdletParameterSets.BySucName)]
+ public class RemoveAzureAutomationSoftwareUpdateConfiguration : AzureAutomationBaseCmdlet
+ {
+ ///
+ /// Gets or sets the certificate name.
+ ///
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.BySucName, Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Name of the software update configuration to remove.")]
+ [ValidateNotNullOrEmpty]
+ public string Name { get; set; }
+
+ [Parameter(ParameterSetName = AutomationCmdletParameterSets.BySuc, Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The software update configuration to remove.")]
+ [ValidateNotNullOrEmpty]
+ public SoftwareUpdateConfiguration SoftwareUpdateConfiguration { get; set; }
+
+ ///
+ /// Execute this cmdlet.
+ ///
+ [PermissionSet(SecurityAction.Demand, Name = "FullTrust")]
+ protected override void AutomationProcessRecord()
+ {
+ string name = this.ParameterSetName == AutomationCmdletParameterSets.BySucName ? this.Name : this.SoftwareUpdateConfiguration.Name;
+
+ ConfirmAction(
+ string.Format(Resources.RemoveAzureAutomationResourceDescription, "SoftwareUpdateConfiguration"),
+ Name,
+ () =>
+ {
+ this.AutomationClient.DeleteSoftwareUpdateConfiguration(this.ResourceGroupName, this.AutomationAccountName, name);
+ });
+ }
+ }
+}
diff --git a/src/ResourceManager/Automation/Commands.Automation/Commands.Automation.csproj b/src/ResourceManager/Automation/Commands.Automation/Commands.Automation.csproj
index a820dff4be13..6f8ec0704f89 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Commands.Automation.csproj
+++ b/src/ResourceManager/Automation/Commands.Automation/Commands.Automation.csproj
@@ -130,8 +130,14 @@
+
+
+
+
+
+
@@ -177,6 +183,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -194,9 +214,7 @@
PreserveNewest
-
- Designer
-
+
@@ -223,9 +241,10 @@
-
+
False
- ..\..\..\packages\Microsoft.Azure.Management.Automation.3.0.2-preview\lib\net452\Microsoft.Azure.Management.Automation.dll
+ ..\..\..\packages\Microsoft.Azure.Management.Automation.3.0.3-preview\lib\net452\Microsoft.Azure.Management.Automation.dll
+ True
diff --git a/src/ResourceManager/Automation/Commands.Automation/Common/AutomationCmdletParameterSet.cs b/src/ResourceManager/Automation/Commands.Automation/Common/AutomationCmdletParameterSet.cs
index 5517cae28697..c3a02586e583 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Common/AutomationCmdletParameterSet.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Common/AutomationCmdletParameterSet.cs
@@ -67,6 +67,66 @@ internal static class AutomationCmdletParameterSets
///
internal const string ByMonthlyDayOfWeek = "ByMonthlyDayOfWeek";
+ ///
+ /// The one time schedule parameter set.
+ ///
+ internal const string ByOneTimeWindows = "ByOneTimeWindows";
+
+ ///
+ /// The daily schedule parameter set.
+ ///
+ internal const string ByDailyWindows = "ByDailyWindows";
+
+ ///
+ /// The hourly schedule parameter set.
+ ///
+ internal const string ByHourlyWindows = "ByHourlyWindows";
+
+ ///
+ /// The weekly schedule parameter set.
+ ///
+ internal const string ByWeeklyWindows = "ByWeeklyWindows";
+
+ ///
+ /// The monthly schedule parameter set.
+ ///
+ internal const string ByMonthlyDaysOfMonthWindows = "ByMonthlyDaysOfMonthWindows";
+
+ ///
+ /// The monthly schedule parameter set.
+ ///
+ internal const string ByMonthlyDayOfWeekWindows = "ByMonthlyDayOfWeekWindows";
+
+ ///
+ /// The one time schedule parameter set.
+ ///
+ internal const string ByOneTimeLinux = "ByOneTimeLinux";
+
+ ///
+ /// The daily schedule parameter set.
+ ///
+ internal const string ByDailyLinux = "ByDailyLinux";
+
+ ///
+ /// The hourly schedule parameter set.
+ ///
+ internal const string ByHourlyLinux = "ByHourlyLinux";
+
+ ///
+ /// The weekly schedule parameter set.
+ ///
+ internal const string ByWeeklyLinux = "ByWeeklyLinux";
+
+ ///
+ /// The monthly schedule parameter set.
+ ///
+ internal const string ByMonthlyDaysOfMonthLinux = "ByMonthlyDaysOfMonthLinux";
+
+ ///
+ /// The monthly schedule parameter set.
+ ///
+ internal const string ByMonthlyDayOfWeekLinux = "ByMonthlyDayOfWeekLinux";
+
///
/// The Job Id parameter set.
///
@@ -166,5 +226,40 @@ internal static class AutomationCmdletParameterSets
/// Parameter set for ByInputObject
///
internal const string ByInputObject = "ByInputObject";
+
+ ///
+ /// Parameter set for ByVMId
+ ///
+ internal const string ByVMId = "ByVMId";
+
+ ///
+ /// Parameter set for By SoftwareUpdateConfiguration Name
+ ///
+ internal const string BySucName = "BySucName";
+
+ ///
+ /// Parameter set for By SoftwareUpdateConfiguration object
+ ///
+ internal const string BySuc = "BySuc";
+
+ ///
+ /// Parameter set for By SoftwareUpdateConfigurationRun Id
+ ///
+ internal const string BySucrId = "BySucrId";
+
+ ///
+ /// Parameter set for By SoftwareUpdateConfigurationRun object
+ ///
+ internal const string BySucr = "BySucr";
+
+ ///
+ /// Parameter set for By SoftwareUpdateConfiguration targeting windows
+ ///
+ internal const string Windows = "Windows";
+
+ ///
+ /// Parameter set for By SoftwareUpdateConfiguration targeting Linux
+ ///
+ internal const string Linux = "Linux";
}
}
diff --git a/src/ResourceManager/Automation/Commands.Automation/Common/AutomationPSClientSoftwareUpdateConfiguration.cs b/src/ResourceManager/Automation/Commands.Automation/Common/AutomationPSClientSoftwareUpdateConfiguration.cs
new file mode 100644
index 000000000000..30edd5c295cf
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation/Common/AutomationPSClientSoftwareUpdateConfiguration.cs
@@ -0,0 +1,199 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+namespace Microsoft.Azure.Commands.Automation.Common
+{
+ using System;
+ using System.Linq;
+ using System.Collections.Generic;
+ using Microsoft.Azure.Commands.Automation.Model.UpdateManagement;
+ using Microsoft.Azure.Management.Automation;
+ using Sdk = Management.Automation.Models;
+
+ public partial class AutomationPSClient : IAutomationPSClient
+ {
+ #region Software Update Configuration
+
+ public SoftwareUpdateConfiguration CreateSoftwareUpdateConfiguration(string resourceGroupName, string automationAccountName, SoftwareUpdateConfiguration configuration)
+ {
+ using (var request = new RequestSettings(this.automationManagementClient))
+ {
+ var updateConfig = configuration.UpdateConfiguration;
+
+ var sucParameters = new Sdk.SoftwareUpdateConfiguration()
+ {
+ ScheduleInfo = new Sdk.ScheduleProperties()
+ {
+ StartTime = configuration.ScheduleConfiguration.StartTime.ToUniversalTime(),
+ ExpiryTime = configuration.ScheduleConfiguration.ExpiryTime.ToUniversalTime(),
+ Frequency = configuration.ScheduleConfiguration.Frequency.ToString(),
+ Interval = configuration.ScheduleConfiguration.Interval,
+ IsEnabled = configuration.ScheduleConfiguration.IsEnabled,
+ TimeZone = configuration.ScheduleConfiguration.TimeZone,
+ AdvancedSchedule = configuration.ScheduleConfiguration.GetAdvancedSchedule()
+ },
+ UpdateConfiguration = new Sdk.UpdateConfiguration()
+ {
+ OperatingSystem = updateConfig.OperatingSystem == OperatingSystemType.Windows ?
+ Sdk.OperatingSystemType.Windows : Sdk.OperatingSystemType.Linux,
+ Windows = updateConfig.OperatingSystem == OperatingSystemType.Linux ? null : new Sdk.WindowsProperties()
+ {
+ IncludedUpdateClassifications = updateConfig.Windows != null && updateConfig.Windows.IncludedUpdateClassifications != null
+ ? string.Join(",", updateConfig.Windows.IncludedUpdateClassifications.Select(c => c.ToString()))
+ : null,
+ ExcludedKbNumbers = updateConfig.Windows != null ? updateConfig.Windows.ExcludedKbNumbers : null
+ },
+ Linux = updateConfig.OperatingSystem == OperatingSystemType.Windows ? null : new Sdk.LinuxProperties()
+ {
+ IncludedPackageClassifications = updateConfig.Linux != null && updateConfig.Linux.IncludedPackageClassifications != null
+ ? string.Join(",", updateConfig.Linux.IncludedPackageClassifications.Select(c=>c.ToString()))
+ : null,
+ ExcludedPackageNameMasks = updateConfig.Linux != null ? updateConfig.Linux.ExcludedPackageNameMasks : null
+ },
+ Duration = updateConfig.Duration,
+ AzureVirtualMachines = updateConfig.AzureVirtualMachines,
+ NonAzureComputerNames = updateConfig.NonAzureComputers
+ }
+ };
+
+ var suc = this.automationManagementClient.SoftwareUpdateConfigurations.Create(resourceGroupName, automationAccountName, configuration.Name, sucParameters);
+ return new SoftwareUpdateConfiguration(resourceGroupName, automationAccountName, suc);
+ }
+ }
+
+ public SoftwareUpdateConfiguration GetSoftwareUpdateConfigurationByName(string resourceGroupName, string automationAccountName, string name)
+ {
+ Requires.Argument("resourceGroupName", resourceGroupName).NotNullOrEmpty();
+ Requires.Argument("automationAccountName", automationAccountName).NotNullOrEmpty();
+ Requires.Argument("name", name).NotNullOrEmpty();
+
+ using (var request = new RequestSettings(this.automationManagementClient))
+ {
+ var suc = this.automationManagementClient.SoftwareUpdateConfigurations.GetByName(resourceGroupName, automationAccountName, name);
+ return suc == null ? null : new SoftwareUpdateConfiguration(resourceGroupName, automationAccountName, suc);
+ }
+ }
+
+ public IEnumerable ListSoftwareUpdateConfigurations(string resourceGroupName, string automationAccountName, string azureVirtualMachineId = null)
+ {
+ Requires.Argument("resourceGroupName", resourceGroupName).NotNullOrEmpty();
+ Requires.Argument("automationAccountName", automationAccountName).NotNullOrEmpty();
+
+ Sdk.SoftwareUpdateConfigurationListResult result;
+
+ using (var request = new RequestSettings(this.automationManagementClient))
+ {
+ if (string.IsNullOrWhiteSpace(azureVirtualMachineId))
+ {
+ result = this.automationManagementClient.SoftwareUpdateConfigurations.List(resourceGroupName, automationAccountName);
+ }
+ else
+ {
+ result = this.automationManagementClient.SoftwareUpdateConfigurations.ListByAzureVirtualMachine(resourceGroupName, automationAccountName, azureVirtualMachineId);
+ }
+
+ return result.Value.Select(item => new SoftwareUpdateConfiguration(resourceGroupName, automationAccountName, item)).ToList();
+ }
+ }
+
+ public void DeleteSoftwareUpdateConfiguration(string resourceGroupName, string automationAccountName, string name)
+ {
+ Requires.Argument("resourceGroupName", resourceGroupName).NotNullOrEmpty();
+ Requires.Argument("automationAccountName", automationAccountName).NotNullOrEmpty();
+ Requires.Argument("name", name).NotNullOrEmpty();
+
+ using (var request = new RequestSettings(this.automationManagementClient))
+ {
+ this.automationManagementClient.SoftwareUpdateConfigurations.Delete(resourceGroupName, automationAccountName, name);
+ }
+ }
+
+ #endregion
+
+ #region Software Update Configuration Run
+
+ public SoftwareUpdateRun GetSoftwareUpdateRunById(string resourceGroupName, string automationAccountName, Guid id)
+ {
+ Requires.Argument("resourceGroupName", resourceGroupName).NotNullOrEmpty();
+ Requires.Argument("automationAccountName", automationAccountName).NotNullOrEmpty();
+
+ using (var request = new RequestSettings(this.automationManagementClient))
+ {
+ var sucr = this.automationManagementClient.SoftwareUpdateConfigurationRuns.GetById(resourceGroupName, automationAccountName, id);
+ return new SoftwareUpdateRun(resourceGroupName, automationAccountName, sucr);
+ }
+ }
+
+ public IEnumerable ListSoftwareUpdateRuns(
+ string resourceGroupName,
+ string automationAccountName,
+ string softwareUpdateConfigurationName = null,
+ OperatingSystemType? operatingSystem = null,
+ DateTimeOffset? startTime = null,
+ SoftwareUpdateRunStatus? status = null)
+ {
+ Requires.Argument("resourceGroupName", resourceGroupName).NotNullOrEmpty();
+ Requires.Argument("automationAccountName", automationAccountName).NotNullOrEmpty();
+
+ using (var request = new RequestSettings(this.automationManagementClient))
+ {
+ var sucrs = this.automationManagementClient.SoftwareUpdateConfigurationRuns.ListAll(
+ resourceGroupName,
+ automationAccountName,
+ softwareUpdateConfigurationName,
+ operatingSystem.ToString(),
+ status.ToString(),
+ startTime.HasValue ? startTime.Value.DateTime.ToUniversalTime() : (DateTime?)null);
+ return sucrs.Value.Select(sucr => new SoftwareUpdateRun(resourceGroupName, automationAccountName, sucr));
+ }
+ }
+ #endregion
+
+ #region Software Update Configuration Machine Run
+ public SoftwareUpdateMachineRun GetSoftwareUpdateMachineRunById(string resourceGroupName, string automationAccountName, Guid id)
+ {
+ Requires.Argument("resourceGroupName", resourceGroupName).NotNullOrEmpty();
+ Requires.Argument("automationAccountName", automationAccountName).NotNullOrEmpty();
+
+ using (var request = new RequestSettings(this.automationManagementClient))
+ {
+ var sucmr = this.automationManagementClient.SoftwareUpdateConfigurationMachineRuns.GetById(resourceGroupName, automationAccountName, id);
+ return new SoftwareUpdateMachineRun(resourceGroupName, automationAccountName, sucmr);
+ }
+ }
+
+ public IEnumerable ListSoftwareUpdateMachineRuns(
+ string resourceGroupName,
+ string automationAccountName,
+ Guid? softwareUpdateConfigurationRunId = null,
+ string targetComputer = null,
+ SoftwareUpdateMachineRunStatus? status = null)
+ {
+ Requires.Argument("resourceGroupName", resourceGroupName).NotNullOrEmpty();
+ Requires.Argument("automationAccountName", automationAccountName).NotNullOrEmpty();
+
+ using (var request = new RequestSettings(this.automationManagementClient))
+ {
+ var sucmrs = this.automationManagementClient.SoftwareUpdateConfigurationMachineRuns.ListAll(
+ resourceGroupName,
+ automationAccountName,
+ softwareUpdateConfigurationRunId,
+ status.ToString(),
+ targetComputer);
+ return sucmrs.Value.Select(item => new SoftwareUpdateMachineRun(resourceGroupName, automationAccountName, item));
+ }
+ }
+ #endregion
+ }
+}
diff --git a/src/ResourceManager/Automation/Commands.Automation/Common/IAutomationPSClient.cs b/src/ResourceManager/Automation/Commands.Automation/Common/IAutomationPSClient.cs
index a034c70c0018..e861d0293e1c 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Common/IAutomationPSClient.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Common/IAutomationPSClient.cs
@@ -13,6 +13,7 @@
// ----------------------------------------------------------------------------------
using Microsoft.Azure.Commands.Automation.Model;
+using Microsoft.Azure.Commands.Automation.Model.UpdateManagement;
using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
using System;
using System.Collections;
@@ -328,5 +329,43 @@ IEnumerable GetJobStream(string resourceGroupName, string automationA
void DeleteConnectionType(string resourceGroupName, string automationAccountName, string name);
#endregion
+
+ #region Update Management
+
+ #region Software Update Configuration
+ SoftwareUpdateConfiguration CreateSoftwareUpdateConfiguration(string resourceGroupName, string automationAccountName, SoftwareUpdateConfiguration configuration);
+
+ SoftwareUpdateConfiguration GetSoftwareUpdateConfigurationByName(string resourceGroupName, string automationAccountName, string name);
+
+ IEnumerable ListSoftwareUpdateConfigurations(string resourceGroupName, string automationAccountName, string azureVirtualMachineId = null);
+
+ void DeleteSoftwareUpdateConfiguration(string resourceGroupName, string automationAccountName, string name);
+
+ #endregion
+
+ #region Software Update Configuration Run
+ SoftwareUpdateRun GetSoftwareUpdateRunById(string resourceGroupName, string automationAccountName, Guid Id);
+
+ IEnumerable ListSoftwareUpdateRuns(
+ string resourceGroupName,
+ string automationAccountName,
+ string softwareUpdateConfigurationName = null,
+ OperatingSystemType? operatingSystem = null,
+ DateTimeOffset? startTime = null,
+ SoftwareUpdateRunStatus? status = null);
+ #endregion
+
+ #region Software Update Configuration Machine Run
+ SoftwareUpdateMachineRun GetSoftwareUpdateMachineRunById(string resourceGroupName, string automationAccountName, Guid Id);
+
+ IEnumerable ListSoftwareUpdateMachineRuns(
+ string resourceGroupName,
+ string automationAccountName,
+ Guid? softwareUpdateRunId = null,
+ string targetComputer = null,
+ SoftwareUpdateMachineRunStatus? status = null);
+ #endregion
+
+ #endregion
}
}
diff --git a/src/ResourceManager/Automation/Commands.Automation/Model/Schedule.cs b/src/ResourceManager/Automation/Commands.Automation/Model/Schedule.cs
index da7cabf1c901..d0d86c2ad386 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Model/Schedule.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Model/Schedule.cs
@@ -163,7 +163,7 @@ public AdvancedSchedule GetAdvancedSchedule()
///
/// The .
///
- private bool IsNullOrEmptyList(IList list)
+ private static bool IsNullOrEmptyList(IList list)
{
return list == null || list.Count == 0;
}
@@ -177,9 +177,9 @@ private bool IsNullOrEmptyList(IList list)
///
/// The .
///
- private bool IsMonthlyOccurrenceNull(Azure.Management.Automation.Models.AdvancedSchedule advancedSchedule)
+ private static bool IsMonthlyOccurrenceNull(Azure.Management.Automation.Models.AdvancedSchedule advancedSchedule)
{
- return advancedSchedule == null || this.IsNullOrEmptyList(advancedSchedule.MonthlyOccurrences);
+ return advancedSchedule == null || IsNullOrEmptyList(advancedSchedule.MonthlyOccurrences);
}
///
@@ -227,11 +227,16 @@ private bool AdvancedScheduleIsNull(Schedule schedule)
///
private WeeklyScheduleOptions CreateWeeklyScheduleOptions(Microsoft.Azure.Management.Automation.Models.Schedule schedule)
{
- return schedule.AdvancedSchedule == null
+ return CreateWeeklyScheduleOptions(schedule.AdvancedSchedule);
+ }
+
+ private static WeeklyScheduleOptions CreateWeeklyScheduleOptions(Microsoft.Azure.Management.Automation.Models.AdvancedSchedule advSchedule)
+ {
+ return advSchedule == null
? null
: new WeeklyScheduleOptions()
{
- DaysOfWeek = schedule.AdvancedSchedule.WeekDays
+ DaysOfWeek = advSchedule.WeekDays
};
}
@@ -245,20 +250,26 @@ private WeeklyScheduleOptions CreateWeeklyScheduleOptions(Microsoft.Azure.Manage
/// The .
///
private MonthlyScheduleOptions CreateMonthlyScheduleOptions(
- Microsoft.Azure.Management.Automation.Models.Schedule schedule)
+ Microsoft.Azure.Management.Automation.Models.Schedule schedule)
+ {
+ return CreateMonthlyScheduleOptions(schedule.AdvancedSchedule);
+ }
+
+ private static MonthlyScheduleOptions CreateMonthlyScheduleOptions(
+ Microsoft.Azure.Management.Automation.Models.AdvancedSchedule advSchedule)
{
- return schedule.AdvancedSchedule == null
- || (schedule.AdvancedSchedule.MonthDays == null && schedule.AdvancedSchedule.MonthlyOccurrences == null)
+ return advSchedule == null
+ || (advSchedule.MonthDays == null && advSchedule.MonthlyOccurrences == null)
? null
: new MonthlyScheduleOptions()
{
- DaysOfMonth = this.GetDaysOfMonth(schedule.AdvancedSchedule.MonthDays),
- DayOfWeek = this.IsMonthlyOccurrenceNull(schedule.AdvancedSchedule)
+ DaysOfMonth = GetDaysOfMonth(advSchedule.MonthDays),
+ DayOfWeek = IsMonthlyOccurrenceNull(advSchedule)
? null
: new DayOfWeek()
{
- Day = schedule.AdvancedSchedule.MonthlyOccurrences.First().Day,
- Occurrence = this.GetDayOfWeekOccurrence(schedule.AdvancedSchedule.MonthlyOccurrences.First().Occurrence)
+ Day = advSchedule.MonthlyOccurrences.First().Day,
+ Occurrence = GetDayOfWeekOccurrence(advSchedule.MonthlyOccurrences.First().Occurrence)
}
};
}
@@ -272,7 +283,7 @@ private MonthlyScheduleOptions CreateMonthlyScheduleOptions(
///
/// The .
///
- private string GetDayOfWeekOccurrence(int? dayOfWeekOccurrence)
+ private static string GetDayOfWeekOccurrence(int? dayOfWeekOccurrence)
{
return dayOfWeekOccurrence.HasValue
? Enum.GetName(typeof(DayOfWeekOccurrence), dayOfWeekOccurrence)
@@ -288,7 +299,7 @@ private string GetDayOfWeekOccurrence(int? dayOfWeekOccurrence)
///
/// The .
///
- private IList GetDaysOfMonth(IList daysOfMonth)
+ private static IList GetDaysOfMonth(IList daysOfMonth)
{
return daysOfMonth.Select(value => (DaysOfMonth)value).ToList();
}
diff --git a/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/BaseArmProperties.cs b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/BaseArmProperties.cs
new file mode 100644
index 000000000000..59eb1af2f505
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/BaseArmProperties.cs
@@ -0,0 +1,27 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+namespace Microsoft.Azure.Commands.Automation.Model.UpdateManagement
+{
+ public class BaseArmProperties : BaseProperties
+ {
+ public string Id { get; set; }
+
+ public string Type { get; set; }
+
+ public string CreatedBy { get; set; }
+
+ public string LastModifiedBy { get; set; }
+ }
+}
diff --git a/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/ComputerType.cs b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/ComputerType.cs
new file mode 100644
index 000000000000..d009362a6941
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/ComputerType.cs
@@ -0,0 +1,22 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+namespace Microsoft.Azure.Commands.Automation.Model.UpdateManagement
+{
+ public enum ComputerType
+ {
+ AzureVirtualMachines,
+ NonAzureComputerNames
+ }
+}
diff --git a/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/ErrorInfo.cs b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/ErrorInfo.cs
new file mode 100644
index 000000000000..b57d21f656bd
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/ErrorInfo.cs
@@ -0,0 +1,23 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+namespace Microsoft.Azure.Commands.Automation.Model.UpdateManagement
+{
+ public class ErrorInfo
+ {
+ public string Code { get; set; }
+
+ public string Message { get; set; }
+ }
+}
diff --git a/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/LinuxConfiguration.cs b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/LinuxConfiguration.cs
new file mode 100644
index 000000000000..b3ab8fd21f95
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/LinuxConfiguration.cs
@@ -0,0 +1,27 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+namespace Microsoft.Azure.Commands.Automation.Model.UpdateManagement
+{
+ using System.Collections.Generic;
+
+ public class LinuxConfiguration
+ {
+ public IList IncludedPackageClassifications { get; set; }
+
+ public IList ExcludedPackageNameMasks { get; set; }
+
+ public IList IncludedPackageNameMasks { get; set; }
+ }
+}
diff --git a/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/LinuxPackageClasses.cs b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/LinuxPackageClasses.cs
new file mode 100644
index 000000000000..1127719e587d
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/LinuxPackageClasses.cs
@@ -0,0 +1,24 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+namespace Microsoft.Azure.Commands.Automation.Model.UpdateManagement
+{
+ public enum LinuxPackageClasses
+ {
+ Unclassified = 0x00,
+ Critical = 0x01,
+ Security = 0x02,
+ Other = 0x04
+ }
+}
diff --git a/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/OperatingSystemType.cs b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/OperatingSystemType.cs
new file mode 100644
index 000000000000..9575fbfef74f
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/OperatingSystemType.cs
@@ -0,0 +1,22 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+namespace Microsoft.Azure.Commands.Automation.Model.UpdateManagement
+{
+ public enum OperatingSystemType
+ {
+ Windows,
+ Linux
+ }
+}
diff --git a/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/SoftwareUpdateConfiguration.cs b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/SoftwareUpdateConfiguration.cs
new file mode 100644
index 000000000000..a1fb9e03d5b8
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/SoftwareUpdateConfiguration.cs
@@ -0,0 +1,121 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+namespace Microsoft.Azure.Commands.Automation.Model.UpdateManagement
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+ using Sdk = Microsoft.Azure.Management.Automation.Models;
+
+ public class SoftwareUpdateConfiguration : BaseArmProperties
+ {
+ public UpdateConfiguration UpdateConfiguration { get; set; }
+
+ public Schedule ScheduleConfiguration { get; set; }
+
+ public string ProvisioningState { get; set; }
+
+ public ErrorInfo ErrorInfo { get; set; }
+
+ internal SoftwareUpdateConfiguration() { }
+
+ internal SoftwareUpdateConfiguration(string ResourceGroupName, string automationAccountName, Sdk.SoftwareUpdateConfigurationCollectionItem suc)
+ {
+ this.ResourceGroupName = ResourceGroupName;
+ AutomationAccountName = automationAccountName;
+ Name = suc.Name;
+ CreationTime = suc.CreationTime;
+ ScheduleConfiguration = new Schedule
+ {
+ Frequency = (ScheduleFrequency)Enum.Parse(typeof(ScheduleFrequency), suc.Frequency, true),
+ StartTime = suc.StartTime,
+ NextRun = suc.NextRun
+ };
+ UpdateConfiguration = new UpdateConfiguration()
+ {
+ Duration = suc.UpdateConfiguration.Duration,
+ AzureVirtualMachines = suc.UpdateConfiguration.AzureVirtualMachines
+ };
+ LastModifiedTime = suc.LastModifiedTime;
+ ProvisioningState = suc.ProvisioningState;
+ }
+
+ internal SoftwareUpdateConfiguration(string resourceGroupName, string automationAccountName, Sdk.SoftwareUpdateConfiguration suc)
+ {
+ this.ResourceGroupName = resourceGroupName;
+ this.AutomationAccountName = automationAccountName;
+ this.CreatedBy = suc.CreatedBy;
+ this.CreationTime = suc.CreationTime;
+ this.Description = suc.ScheduleInfo.Description;
+ this.ErrorInfo = suc.Error == null ? null : new ErrorInfo
+ {
+ Code = suc.Error.Code,
+ Message = suc.Error.Message
+ };
+ this.LastModifiedBy = suc.LastModifiedBy;
+ this.LastModifiedTime = suc.LastModifiedTime;
+ this.Name = suc.Name;
+ this.ProvisioningState = suc.ProvisioningState;
+ var schedule = new Sdk.Schedule
+ {
+ CreationTime = suc.ScheduleInfo.CreationTime,
+ Description = suc.ScheduleInfo.Description,
+ ExpiryTime = suc.ScheduleInfo.ExpiryTime,
+ ExpiryTimeOffsetMinutes = suc.ScheduleInfo.ExpiryTimeOffsetMinutes,
+ Frequency = suc.ScheduleInfo.Frequency,
+ Interval = suc.ScheduleInfo.Interval,
+ IsEnabled = suc.ScheduleInfo.IsEnabled,
+ LastModifiedTime = suc.ScheduleInfo.LastModifiedTime,
+ AdvancedSchedule = suc.ScheduleInfo.AdvancedSchedule,
+ StartTime = suc.ScheduleInfo.StartTime,
+ TimeZone = suc.ScheduleInfo.TimeZone,
+ NextRun = suc.ScheduleInfo.NextRun,
+ NextRunOffsetMinutes = suc.ScheduleInfo.NextRunOffsetMinutes
+ };
+
+ this.ScheduleConfiguration = new Schedule(resourceGroupName, automationAccountName, schedule);
+
+ this.UpdateConfiguration = new UpdateConfiguration
+ {
+ OperatingSystem = (OperatingSystemType)suc.UpdateConfiguration.OperatingSystem,
+ AzureVirtualMachines = suc.UpdateConfiguration.AzureVirtualMachines,
+ NonAzureComputers = suc.UpdateConfiguration.NonAzureComputerNames,
+ Duration = suc.UpdateConfiguration.Duration,
+ Linux = suc.UpdateConfiguration.OperatingSystem == Sdk.OperatingSystemType.Windows ? null :
+ new LinuxConfiguration
+ {
+ IncludedPackageClassifications = StringToEnumList(suc.UpdateConfiguration.Linux.IncludedPackageClassifications),
+ IncludedPackageNameMasks = suc.UpdateConfiguration.Linux.IncludedPackageNameMasks,
+ ExcludedPackageNameMasks = suc.UpdateConfiguration.Linux.ExcludedPackageNameMasks
+ },
+ Windows = suc.UpdateConfiguration.OperatingSystem == Sdk.OperatingSystemType.Linux ? null :
+ new WindowsConfiguration
+ {
+ IncludedUpdateClassifications = StringToEnumList(suc.UpdateConfiguration.Windows.IncludedUpdateClassifications),
+ IncludedKbNumbers = suc.UpdateConfiguration.Windows.IncludedKbNumbers,
+ ExcludedKbNumbers = suc.UpdateConfiguration.Windows.ExcludedKbNumbers
+ }
+ };
+ }
+
+ private static IList StringToEnumList(string classes)
+ {
+ return classes.Split(new[] { ',' })
+ .Select(p => p.Trim())
+ .Select(p => (T)Enum.Parse(typeof(T), p, true))
+ .ToList();
+ }
+ }
+}
diff --git a/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/SoftwareUpdateMachineRun.cs b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/SoftwareUpdateMachineRun.cs
new file mode 100644
index 000000000000..9a7a620ff9bf
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/SoftwareUpdateMachineRun.cs
@@ -0,0 +1,51 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+namespace Microsoft.Azure.Commands.Automation.Model.UpdateManagement
+{
+ using System;
+ using Management.Automation.Models;
+
+ public class SoftwareUpdateMachineRun : BaseArmProperties
+ {
+ internal SoftwareUpdateMachineRun(string resourceGroupName, string automationAccountName, SoftwareUpdateConfigurationMachineRun sucmr)
+ {
+ this.ResourceGroupName = resourceGroupName;
+ this.AutomationAccountName = automationAccountName;
+ this.CreatedBy = sucmr.CreatedBy;
+ this.CreationTime = sucmr.CreationTime;
+ this.LastModifiedBy = sucmr.LastModifiedBy;
+ this.LastModifiedTime = sucmr.LastModifiedTime;
+ this.MachineRunId = Guid.Parse(sucmr.Name);
+ this.Name = sucmr.Name;
+ this.OperatingSystem = (OperatingSystemType)Enum.Parse(typeof(OperatingSystemType), sucmr.OsType, true);
+ this.SoftwareUpdateRunId = sucmr.CorrelationId.Value;
+ this.TargetComputerType = (ComputerType)Enum.Parse(typeof(ComputerType), sucmr.TargetComputerType, true);
+ this.TargetComputer = sucmr.TargetComputer;
+ this.Status = (SoftwareUpdateMachineRunStatus)Enum.Parse(typeof(SoftwareUpdateMachineRunStatus), sucmr.Status, true);
+ }
+
+ public Guid MachineRunId { get; set; }
+
+ public string TargetComputer { get; set; }
+
+ public ComputerType TargetComputerType { get; set; }
+
+ public Guid SoftwareUpdateRunId { get; set; }
+
+ public OperatingSystemType OperatingSystem { get; set; }
+
+ public SoftwareUpdateMachineRunStatus Status { get; set; }
+ }
+}
diff --git a/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/SoftwareUpdateMachineRunStatus.cs b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/SoftwareUpdateMachineRunStatus.cs
new file mode 100644
index 000000000000..81ff06852bf7
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/SoftwareUpdateMachineRunStatus.cs
@@ -0,0 +1,26 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+namespace Microsoft.Azure.Commands.Automation.Model.UpdateManagement
+{
+ public enum SoftwareUpdateMachineRunStatus
+ {
+ NotStarted,
+ InProgress,
+ Succeeded,
+ Failed,
+ MaintenanceWindowExceeded,
+ FailedToStart
+ }
+}
diff --git a/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/SoftwareUpdateRun.cs b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/SoftwareUpdateRun.cs
new file mode 100644
index 000000000000..56c40b1c792c
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/SoftwareUpdateRun.cs
@@ -0,0 +1,58 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+namespace Microsoft.Azure.Commands.Automation.Model.UpdateManagement
+{
+ using System;
+ using System.Xml;
+ using Management.Automation.Models;
+
+ public class SoftwareUpdateRun : BaseArmProperties
+ {
+ internal SoftwareUpdateRun(string resourceGroupName, string automationAccountName, SoftwareUpdateConfigurationRun sucr)
+ {
+ this.ResourceGroupName = resourceGroupName;
+ this.AutomationAccountName = automationAccountName;
+ this.ComputerCount = sucr.ComputerCount.HasValue ? sucr.ComputerCount.Value : 0; // TODO: why do we have this nullable still?
+ this.ConfiguredDuration = XmlConvert.ToTimeSpan(sucr.ConfiguredDuration);
+ this.CreatedBy = sucr.CreatedBy;
+ this.CreationTime = sucr.CreationTime;
+ this.EndTime = sucr.EndTime;
+ this.FailedCount = sucr.FailedCount.HasValue ? sucr.FailedCount.Value : 0;
+ this.LastModifiedBy = sucr.LastModifiedBy;
+ this.LastModifiedTime = sucr.LastModifiedTime;
+ this.Name = sucr.Name;
+ this.OperatingSystem = (OperatingSystemType)Enum.Parse(typeof(OperatingSystemType), sucr.OsType, true);
+ this.RunId = Guid.Parse(sucr.Name);
+ this.SoftwareUpdateConfigurationName = sucr.SoftwareUpdateConfiguration.Name;
+ this.StartTime = sucr.StartTime;
+ }
+
+ public Guid RunId { get; set; }
+
+ public string SoftwareUpdateConfigurationName { get; set; }
+
+ public TimeSpan ConfiguredDuration { get; set; }
+
+ public OperatingSystemType OperatingSystem { get; set; }
+
+ public DateTimeOffset StartTime { get; set; }
+
+ public DateTimeOffset? EndTime { get; set; }
+
+ public int ComputerCount { get; set; }
+
+ public int FailedCount { get; set; }
+ }
+}
diff --git a/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/SoftwareUpdateRunStatus.cs b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/SoftwareUpdateRunStatus.cs
new file mode 100644
index 000000000000..45cfc7b0d4c0
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/SoftwareUpdateRunStatus.cs
@@ -0,0 +1,25 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+namespace Microsoft.Azure.Commands.Automation.Model.UpdateManagement
+{
+ public enum SoftwareUpdateRunStatus
+ {
+ NotStarted,
+ InProgress,
+ Succeeded,
+ Failed,
+ MaintenanceWindowExceeded
+ }
+}
diff --git a/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/UpdateConfiguration.cs b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/UpdateConfiguration.cs
new file mode 100644
index 000000000000..240e65d6d382
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/UpdateConfiguration.cs
@@ -0,0 +1,34 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+namespace Microsoft.Azure.Commands.Automation.Model.UpdateManagement
+{
+ using System;
+ using System.Collections.Generic;
+
+ public class UpdateConfiguration
+ {
+ public OperatingSystemType OperatingSystem { get; set; }
+
+ public WindowsConfiguration Windows { get; set; }
+
+ public LinuxConfiguration Linux { get; set; }
+
+ public TimeSpan? Duration { get; set; }
+
+ public IList AzureVirtualMachines { get; set; }
+
+ public IList NonAzureComputers { get; set; }
+ }
+}
diff --git a/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/WindowsConfiguration.cs b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/WindowsConfiguration.cs
new file mode 100644
index 000000000000..496aae3b5a21
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/WindowsConfiguration.cs
@@ -0,0 +1,27 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+namespace Microsoft.Azure.Commands.Automation.Model.UpdateManagement
+{
+ using System.Collections.Generic;
+
+ public class WindowsConfiguration
+ {
+ public IList IncludedUpdateClassifications { get; set; }
+
+ public IList ExcludedKbNumbers { get; set; }
+
+ public IList IncludedKbNumbers { get; set; }
+ }
+}
diff --git a/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/WindowsUpdateClasses.cs b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/WindowsUpdateClasses.cs
new file mode 100644
index 000000000000..04cc06efd31b
--- /dev/null
+++ b/src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/WindowsUpdateClasses.cs
@@ -0,0 +1,29 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+namespace Microsoft.Azure.Commands.Automation.Model.UpdateManagement
+{
+ public enum WindowsUpdateClasses
+ {
+ Unclassified = 0x00,
+ Critical = 0x01,
+ Security = 0x02,
+ UpdateRollup = 0x04,
+ FeaturePack = 0x08,
+ ServicePack = 0x10,
+ Definition = 0x20,
+ Tools = 0x40,
+ Updates = 0x80
+ }
+}
diff --git a/src/ResourceManager/Automation/Commands.Automation/Properties/Resources.Designer.cs b/src/ResourceManager/Automation/Commands.Automation/Properties/Resources.Designer.cs
index ae5ccf43cf98..c6121e52945d 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Properties/Resources.Designer.cs
+++ b/src/ResourceManager/Automation/Commands.Automation/Properties/Resources.Designer.cs
@@ -789,6 +789,15 @@ internal static string SetnodeconfigurationWarning {
}
}
+ ///
+ /// Looks up a localized string similar to Software update configuration has no target computers..
+ ///
+ internal static string SoftwareUpdateConfigurationHasNoTargetComputers {
+ get {
+ return ResourceManager.GetString("SoftwareUpdateConfigurationHasNoTargetComputers", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Starting a node configuration deployment..
///
diff --git a/src/ResourceManager/Automation/Commands.Automation/Properties/Resources.resx b/src/ResourceManager/Automation/Commands.Automation/Properties/Resources.resx
index f1f32a8364bd..ee3ef9986849 100644
--- a/src/ResourceManager/Automation/Commands.Automation/Properties/Resources.resx
+++ b/src/ResourceManager/Automation/Commands.Automation/Properties/Resources.resx
@@ -467,4 +467,7 @@
No JobId passed. Please pass a valid JobId.
+
+ Software update configuration has no target computers.
+
\ No newline at end of file
diff --git a/src/ResourceManager/Automation/Commands.Automation/packages.config b/src/ResourceManager/Automation/Commands.Automation/packages.config
index 83746fc7417d..a8cd30e65904 100644
--- a/src/ResourceManager/Automation/Commands.Automation/packages.config
+++ b/src/ResourceManager/Automation/Commands.Automation/packages.config
@@ -1,4 +1,7 @@
-
-
+
+
+
+
+
\ No newline at end of file