Skip to content

Commit 1352d2a

Browse files
authored
Merge pull request Azure#4941 from SteGriff/patch-1
Fix returned fields in Get-AzureRmSubscription docs
2 parents 305506e + b091d34 commit 1352d2a

File tree

1 file changed

+26
-18
lines changed

1 file changed

+26
-18
lines changed

src/ResourceManager/Profile/Commands.Profile/help/Get-AzureRmSubscription.md

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ access.
3535
```
3636
PS C:\>Get-AzureRmSubscription
3737
38-
Subscription Name : Contoso Subscription 1
39-
SubscriptionId : xxxx-xxxx-xxxx-xxxx
40-
TenantId : yyyy-yyyy-yyyy-yyyy
38+
Name : Contoso Subscription 1
39+
Id : xxxx-xxxx-xxxx-xxxx
40+
TenantId : yyyy-yyyy-yyyy-yyyy
41+
State : Enabled
4142
```
4243

4344
This command gets all subscriptions in all tenants that are authorized for
@@ -47,13 +48,15 @@ the current account.
4748
```
4849
PS C:\>Get-AzureRmSubscription -TenantId "xxxx-xxxx-xxxx-xxxx"
4950
50-
Subscription Name : Contoso Subscription 1
51-
SubscriptionId : yyyy-yyyy-yyyy-yyyy
52-
TenantId : xxxx-xxxx-xxxx-xxxx
51+
Name : Contoso Subscription 1
52+
Id : yyyy-yyyy-yyyy-yyyy
53+
TenantId : xxxx-xxxx-xxxx-xxxx
54+
State : Enabled
5355
54-
Subscription Name : Contoso Subscription 2
55-
SubscriptionId : yyyy-yyyy-yyyy-yyyy
56-
TenantId : xxxx-xxxx-xxxx-xxxx
56+
Name : Contoso Subscription 2
57+
Id : yyyy-yyyy-yyyy-yyyy
58+
TenantId : xxxx-xxxx-xxxx-xxxx
59+
State : Enabled
5760
```
5861

5962
List all subscriptions in the given tenant that are authorized for the
@@ -63,13 +66,15 @@ current account.
6366
```
6467
PS C:\>Get-AzureRmSubscription
6568
66-
Subscription Name : Contoso Subscription 1
67-
SubscriptionId : yyyy-yyyy-yyyy-yyyy
68-
TenantId : xxxx-xxxx-xxxx-xxxx
69+
Name : Contoso Subscription 1
70+
Id : yyyy-yyyy-yyyy-yyyy
71+
TenantId : xxxx-xxxx-xxxx-xxxx
72+
State : Enabled
6973
70-
Subscription Name : Contoso Subscription 2
71-
SubscriptionId : yyyy-yyyy-yyyy-yyyy
72-
TenantId : xxxx-xxxx-xxxx-xxxx
74+
Name : Contoso Subscription 2
75+
Id : yyyy-yyyy-yyyy-yyyy
76+
TenantId : xxxx-xxxx-xxxx-xxxx
77+
State : Enabled
7378
```
7479

7580
This command gets all subscriptions in the current tenant that are
@@ -79,9 +84,12 @@ authorized for the current user.
7984
```
8085
PS C:\>Get-AzureRmSubscription -SubscriptionId "xxxx-xxxx-xxxx-xxxx" -TenantId "yyyy-yyyy-yyyy-yyyy" | Set-AzureRmContext
8186
82-
Subscription Name : Contoso Subscription 1
83-
SubscriptionId : xxxx-xxxx-xxxx-xxxx
84-
TenantId : yyyy-yyyy-yyyy-yyyy
87+
Environment : AzureCloud
88+
89+
TenantId : yyyy-yyyy-yyyy-yyyy
90+
SubscriptionId : xxxx-xxxx-xxxx-xxxx
91+
SubscriptionName : Contoso Subscription 1
92+
CurrentStorageAccount :
8593
```
8694

8795
This command gets the specified subscription, and then sets the current

0 commit comments

Comments
 (0)