Skip to content

Commit d72ac68

Browse files
Latest changes from team
2 parents 75c7647 + 6c9059d commit d72ac68

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationWebhook.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class NewAzureAutomationWebhook : AzureAutomationBaseCmdlet
6464
/// <summary>
6565
/// Gets or sets the Runbook parameters
6666
/// </summary>
67-
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true,
67+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = false,
6868
HelpMessage = "The Runbook parameters name/value.")]
6969
public IDictionary Parameters { get; set; }
7070

src/ResourceManager/Automation/Commands.Automation/Cmdlet/RegisterAzureAutomationScheduledRunbook.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class RegisterAzureAutomationScheduledRunbook : AzureAutomationBaseCmdlet
4747
/// <summary>
4848
/// Gets or sets the runbook parameters.
4949
/// </summary>
50-
[Parameter(ParameterSetName = AutomationCmdletParameterSets.ByRunbookNameAndScheduleName, Mandatory = false, ValueFromPipelineByPropertyName = true,
50+
[Parameter(ParameterSetName = AutomationCmdletParameterSets.ByRunbookNameAndScheduleName, Mandatory = false, ValueFromPipelineByPropertyName = false,
5151
HelpMessage = "The runbook parameters.")]
5252
public IDictionary Parameters { get; set; }
5353

src/ResourceManager/Automation/Commands.Automation/Cmdlet/StartAzureAutomationDscCompilationJob.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class StartAzureAutomationDscCompilationJob : AzureAutomationBaseCmdlet
4242
/// <summary>
4343
/// Gets or sets the configuration parameters.
4444
/// </summary>
45-
[Parameter(Mandatory = false, HelpMessage = "The compilation job parameters.")]
45+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = false, HelpMessage = "The compilation job parameters.")]
4646
public IDictionary Parameters { get; set; }
4747

4848
/// <summary>

src/ResourceManager/Automation/Commands.Automation/Cmdlet/StartAzureAutomationRunbook.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ public class StartAzureAutomationRunbook : AzureAutomationBaseCmdlet
6666
/// <summary>
6767
/// Gets or sets the runbook parameters.
6868
/// </summary>
69-
[Parameter(ParameterSetName = AutomationCmdletParameterSets.ByAsynchronousReturnJob, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The runbook parameters.")]
70-
[Parameter(ParameterSetName = AutomationCmdletParameterSets.BySynchronousReturnJobOutput, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The runbook parameters.")]
69+
[Parameter(ParameterSetName = AutomationCmdletParameterSets.ByAsynchronousReturnJob, Mandatory = false, HelpMessage = "The runbook parameters.")]
70+
[Parameter(ParameterSetName = AutomationCmdletParameterSets.BySynchronousReturnJobOutput, Mandatory = false, HelpMessage = "The runbook parameters.")]
7171
public IDictionary Parameters { get; set; }
7272

7373
/// <summary>

src/ResourceManager/Automation/Commands.Automation/Model/AutomationAccount.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ public AutomationAccount(string resourceGroupName, AutomationManagement.Models.A
4848
this.ResourceGroupName = automationAccount.Id.Substring(1).Split(Convert.ToChar("/"))[3];
4949
}
5050

51+
this.SubscriptionId = automationAccount.Id.Substring(1).Split(Convert.ToChar("/"))[1];
52+
5153
this.AutomationAccountName = automationAccount.Name;
5254
this.Location = automationAccount.Location;
5355

@@ -73,6 +75,11 @@ public AutomationAccount()
7375
{
7476
}
7577

78+
/// <summary>
79+
/// Gets or sets the Subscription ID
80+
/// </summary>
81+
public string SubscriptionId { get; set; }
82+
7683
/// <summary>
7784
/// Gets or sets the resource group name.
7885
/// </summary>

0 commit comments

Comments
 (0)