Skip to content

Commit 905d3bb

Browse files
Merge pull request #12 from Bpoe/dev
Add Subscription ID property
2 parents abe5f8b + 9b4d8c1 commit 905d3bb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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)