Skip to content

Commit 6dfedfd

Browse files
author
Hovsep Mkrtchyan
committed
Fixed "Get-AzureRmContext should show SubscriptionName" Azure#1639
1 parent f924008 commit 6dfedfd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ResourceManager/Profile/Commands.Profile/Microsoft.Azure.Commands.Profile.format.ps1xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
<Label>SubscriptionId</Label>
2727
<ScriptBlock>$_.Context.Subscription.ToString()</ScriptBlock>
2828
</ListItem>
29+
<ListItem>
30+
<Label>SubscriptionName</Label>
31+
<ScriptBlock>$_.Context.Subscription.SubscriptionName.ToString()</ScriptBlock>
32+
</ListItem>
2933
<ListItem>
3034
<Label>CurrentStorageAccount</Label>
3135
<ScriptBlock>if ($_.Context.Subscription -ne $null -and $_.Context.Subscription.CurrentStorageAccountName -ne $null) {$_.Context.Subscription.CurrentStorageAccountName} else {$null} </ScriptBlock>
@@ -58,6 +62,10 @@
5862
<Label>SubscriptionId</Label>
5963
<ScriptBlock>$_.Subscription.ToString()</ScriptBlock>
6064
</ListItem>
65+
<ListItem>
66+
<Label>SubscriptionName</Label>
67+
<ScriptBlock>$_.Subscription.SubscriptionName.ToString()</ScriptBlock>
68+
</ListItem>
6169
<ListItem>
6270
<Label>CurrentStorageAccount</Label>
6371
<ScriptBlock>if ($_.Subscription -ne $null -and $_.Subscription.CurrentStorageAccountName -ne $null) {$_.Subscription.CurrentStorageAccountName} else {$null} </ScriptBlock>

0 commit comments

Comments
 (0)