Skip to content

Fix returned fields in Get-AzureRmSubscription docs #4941

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 15, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ access.
```
PS C:\>Get-AzureRmSubscription

Subscription Name : Contoso Subscription 1
SubscriptionId : xxxx-xxxx-xxxx-xxxx
TenantId : yyyy-yyyy-yyyy-yyyy
Name : Contoso Subscription 1
Id : xxxx-xxxx-xxxx-xxxx
TenantId : yyyy-yyyy-yyyy-yyyy
State : Enabled
```

This command gets all subscriptions in all tenants that are authorized for
Expand All @@ -47,13 +48,15 @@ the current account.
```
PS C:\>Get-AzureRmSubscription -TenantId "xxxx-xxxx-xxxx-xxxx"

Subscription Name : Contoso Subscription 1
SubscriptionId : yyyy-yyyy-yyyy-yyyy
TenantId : xxxx-xxxx-xxxx-xxxx
Name : Contoso Subscription 1
Id : yyyy-yyyy-yyyy-yyyy
TenantId : xxxx-xxxx-xxxx-xxxx
State : Enabled

Subscription Name : Contoso Subscription 2
SubscriptionId : yyyy-yyyy-yyyy-yyyy
TenantId : xxxx-xxxx-xxxx-xxxx
Name : Contoso Subscription 2
Id : yyyy-yyyy-yyyy-yyyy
TenantId : xxxx-xxxx-xxxx-xxxx
State : Enabled
```

List all subscriptions in the given tenant that are authorized for the
Expand All @@ -63,13 +66,15 @@ current account.
```
PS C:\>Get-AzureRmSubscription

Subscription Name : Contoso Subscription 1
SubscriptionId : yyyy-yyyy-yyyy-yyyy
TenantId : xxxx-xxxx-xxxx-xxxx
Name : Contoso Subscription 1
Id : yyyy-yyyy-yyyy-yyyy
TenantId : xxxx-xxxx-xxxx-xxxx
State : Enabled

Subscription Name : Contoso Subscription 2
SubscriptionId : yyyy-yyyy-yyyy-yyyy
TenantId : xxxx-xxxx-xxxx-xxxx
Name : Contoso Subscription 2
Id : yyyy-yyyy-yyyy-yyyy
TenantId : xxxx-xxxx-xxxx-xxxx
State : Enabled
```

This command gets all subscriptions in the current tenant that are
Expand All @@ -79,9 +84,12 @@ authorized for the current user.
```
PS C:\>Get-AzureRmSubscription -SubscriptionId "xxxx-xxxx-xxxx-xxxx" -TenantId "yyyy-yyyy-yyyy-yyyy" | Set-AzureRmContext

Subscription Name : Contoso Subscription 1
SubscriptionId : xxxx-xxxx-xxxx-xxxx
TenantId : yyyy-yyyy-yyyy-yyyy
Environment : AzureCloud
Account : [email protected]
TenantId : yyyy-yyyy-yyyy-yyyy
SubscriptionId : xxxx-xxxx-xxxx-xxxx
SubscriptionName : Contoso Subscription 1
CurrentStorageAccount :
```

This command gets the specified subscription, and then sets the current
Expand Down