Skip to content

Commit

Permalink
Merge pull request #12 from Bpoe/dev
Browse files Browse the repository at this point in the history
Add Subscription ID property
  • Loading branch information
safeermohammed committed Jan 8, 2016
2 parents abe5f8b + 9b4d8c1 commit 905d3bb
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public AutomationAccount(string resourceGroupName, AutomationManagement.Models.A
this.ResourceGroupName = automationAccount.Id.Substring(1).Split(Convert.ToChar("/"))[3];
}

this.SubscriptionId = automationAccount.Id.Substring(1).Split(Convert.ToChar("/"))[1];

this.AutomationAccountName = automationAccount.Name;
this.Location = automationAccount.Location;

Expand All @@ -73,6 +75,11 @@ public AutomationAccount()
{
}

/// <summary>
/// Gets or sets the Subscription ID
/// </summary>
public string SubscriptionId { get; set; }

/// <summary>
/// Gets or sets the resource group name.
/// </summary>
Expand Down

0 comments on commit 905d3bb

Please sign in to comment.