Skip to content

Commit

Permalink
Merge pull request Azure#19 from pomortaz/dev
Browse files Browse the repository at this point in the history
Adding tenant ID to the output properties of Get-AzureSubscription cmdlet
  • Loading branch information
Hovsep committed Jan 2, 2015
2 parents 79990d6 + 299e79a commit 6731e94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Common/Commands.Profile/Models/PsAzureSubscription.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ public class PSAzureSubscription
public bool IsDefault { get; set; }
public bool IsCurrent { get; set; }
public string CurrentStorageAccountName { get; set; }
public string TenantId { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ private PSAzureSubscription ConstructPsAzureSubscription(AzureSubscription subsc
psObject.IsDefault = subscription.IsPropertySet(AzureSubscription.Property.Default);
psObject.IsCurrent = AzureSession.CurrentContext.Subscription != null && AzureSession.CurrentContext.Subscription.Id == subscription.Id;
psObject.CurrentStorageAccountName = subscription.GetProperty(AzureSubscription.Property.StorageAccount);
psObject.TenantId = subscription.GetPropertyAsArray(AzureSubscription.Property.Tenants).FirstOrDefault();
return psObject;
}

Expand Down

0 comments on commit 6731e94

Please sign in to comment.