Skip to content

Commit eccfcfc

Browse files
fixed merged conflicts
2 parents dc4d17e + b6fb034 commit eccfcfc

File tree

4 files changed

+26
-11
lines changed

4 files changed

+26
-11
lines changed

src/ResourceManager/Automation/AzureRM.Automation.psd1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,13 @@ CmdletsToExport = 'Get-AzureRMAutomationHybridWorkerGroup',
129129
'Start-AzureRmAutomationDscNodeConfigurationDeployment',
130130
'Stop-AzureRmAutomationDscNodeConfigurationDeployment',
131131
'Get-AzureRmAutomationDscNodeConfigurationDeploymentSchedule',
132-
'Get-AzureRmAutomationDscNodeConfigurationDeployment'
132+
'Get-AzureRmAutomationDscNodeConfigurationDeployment',
133+
# Update Management Cmdlets
134+
'New-AzureRmAutomationSoftwareUpdateConfiguration',
135+
'Get-AzureRmAutomationSoftwareUpdateConfiguration',
136+
'Remove-AzureRmAutomationSoftwareUpdateConfiguration',
137+
'Get-AzureRmAutomationSoftwareUpdateRun',
138+
'Get-AzureRmAutomationSoftwareUpdateMachineRun'
133139

134140
# Variables to export from this module
135141
# VariablesToExport = @()

src/ResourceManager/Automation/Commands.Automation.Test/Commands.Automation.Test.csproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,6 @@
268268
<Content Include="SessionRecords\Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests\CreateLinuxOneTimeSUCWithDefaults.json">
269269
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
270270
</Content>
271-
<Content Include="SessionRecords\Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests\CreateOneTimeSoftwareUpdateConfigurationWithDefaults.json">
272-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
273-
</Content>
274271
<Content Include="SessionRecords\Microsoft.Azure.Commands.ResourceManager.Automation.Test.ScenarioTests.UpdateManagement.UpdateManagementTests\CreateWindowsOneTimeSUCWithAllOption.json">
275272
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
276273
</Content>

src/ResourceManager/Automation/Commands.Automation/Common/AutomationPSClient.cs

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,28 @@ private void SetClientIdHeader(string clientRequestId)
9090
public IEnumerable<Model.AutomationAccount> ListAutomationAccounts(string resourceGroupName, ref string nextLink)
9191
{
9292
Rest.Azure.IPage<AutomationManagement.Models.AutomationAccount> response;
93-
94-
if (string.IsNullOrEmpty(nextLink))
93+
if(!string.IsNullOrWhiteSpace(resourceGroupName))
9594
{
96-
response = this.automationManagementClient.AutomationAccount.List();
95+
if(string.IsNullOrWhiteSpace(nextLink))
96+
{
97+
response = this.automationManagementClient.AutomationAccount.ListByResourceGroup(resourceGroupName);
98+
}
99+
else
100+
{
101+
response = this.automationManagementClient.AutomationAccount.ListByResourceGroupNext(nextLink);
102+
}
103+
97104
}
98105
else
99106
{
100-
response = this.automationManagementClient.AutomationAccount.ListByResourceGroupNext(nextLink);
107+
if (string.IsNullOrWhiteSpace(nextLink))
108+
{
109+
response = this.automationManagementClient.AutomationAccount.List();
110+
}
111+
else
112+
{
113+
response = this.automationManagementClient.AutomationAccount.ListNext(nextLink);
114+
}
101115
}
102116

103117
nextLink = response.NextPageLink;

src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/SoftwareUpdateConfiguration.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.Automation.Model.UpdateManagement
1919
using System.Linq;
2020
using Sdk = Microsoft.Azure.Management.Automation.Models;
2121

22-
public class SoftwareUpdateConfiguration : BaseArmProperties
22+
public class SoftwareUpdateConfiguration : BaseProperties
2323
{
2424
public UpdateConfiguration UpdateConfiguration { get; set; }
2525

@@ -56,15 +56,13 @@ internal SoftwareUpdateConfiguration(string resourceGroupName, string automation
5656
{
5757
this.ResourceGroupName = resourceGroupName;
5858
this.AutomationAccountName = automationAccountName;
59-
this.CreatedBy = suc.CreatedBy;
6059
this.CreationTime = suc.CreationTime;
6160
this.Description = suc.ScheduleInfo.Description;
6261
this.ErrorInfo = suc.Error == null ? null : new ErrorInfo
6362
{
6463
Code = suc.Error.Code,
6564
Message = suc.Error.Message
6665
};
67-
this.LastModifiedBy = suc.LastModifiedBy;
6866
this.LastModifiedTime = suc.LastModifiedTime;
6967
this.Name = suc.Name;
7068
this.ProvisioningState = suc.ProvisioningState;

0 commit comments

Comments
 (0)