1
1
---
2
2
external help file : Microsoft.Azure.Commands.Profile.dll-Help.xml
3
- online version :
3
+ online version :
4
4
schema : 2.0.0
5
5
---
6
6
@@ -22,20 +22,24 @@ Get-AzureRmSubscription [-SubscriptionName <String>] [-TenantId <String>] [<Comm
22
22
```
23
23
24
24
## DESCRIPTION
25
- The Get-AzureRmSubscription cmdlet gets the subscription ID, subscription name, and home tenant for subscriptions that the current account can access.
25
+
26
+ The Get-AzureRmSubscription cmdlet gets the subscription ID, subscription
27
+ name, and home tenant for subscriptions that the current account can
28
+ access.
26
29
27
30
## EXAMPLES
28
31
29
32
### Example 1: Get all subscriptions in all tenants
30
33
```
31
- PS C:\>Get-AzureRmSubscription -All
34
+ PS C:\>Get-AzureRmSubscription
32
35
33
36
Subscription Name : Contoso Subscription 1
34
37
SubscriptionId : xxxx-xxxx-xxxx-xxxx
35
38
TenantId : yyyy-yyyy-yyyy-yyyy
36
39
```
37
40
38
- This command gets all subscriptions in all tenants that are authorized for the current account.
41
+ This command gets all subscriptions in all tenants that are authorized for
42
+ the current account.
39
43
40
44
### Example 2: Get all subscriptions for a specific tenant
41
45
```
@@ -50,7 +54,8 @@ SubscriptionId : yyyy-yyyy-yyyy-yyyy
50
54
TenantId : xxxx-xxxx-xxxx-xxxx
51
55
```
52
56
53
- List all subscriptions in the given tenant that are authorized for the current account.
57
+ List all subscriptions in the given tenant that are authorized for the
58
+ current account.
54
59
55
60
### Example 3: Get all subscriptions in the current tenant
56
61
```
@@ -65,7 +70,8 @@ SubscriptionId : yyyy-yyyy-yyyy-yyyy
65
70
TenantId : xxxx-xxxx-xxxx-xxxx
66
71
```
67
72
68
- This command gets all subscriptions in the current tenant that are authorized for the current user.
73
+ This command gets all subscriptions in the current tenant that are
74
+ authorized for the current user.
69
75
70
76
### Example 4: Change the current context to use a specific subscription
71
77
```
@@ -76,8 +82,9 @@ SubscriptionId : xxxx-xxxx-xxxx-xxxx
76
82
TenantId : yyyy-yyyy-yyyy-yyyy
77
83
```
78
84
79
- This command gets the specified subscription, and then sets the current context to use it.
80
- All subsequent cmdlets in this session use the new subscription (Contoso Subscription 1) by default.
85
+ This command gets the specified subscription, and then sets the current
86
+ context to use it. All subsequent cmdlets in this session use the new
87
+ subscription (Contoso Subscription 1) by default.
81
88
82
89
## PARAMETERS
83
90
@@ -87,7 +94,7 @@ Specifies the ID of the subscription to get.
87
94
``` yaml
88
95
Type : String
89
96
Parameter Sets : ListByIdInTenant
90
- Aliases :
97
+ Aliases :
91
98
92
99
Required : False
93
100
Position : Named
@@ -102,7 +109,7 @@ Specifies the name of the subscription to get.
102
109
` ` ` yaml
103
110
Type : String
104
111
Parameter Sets : ListByNameInTenant
105
- Aliases :
112
+ Aliases :
106
113
107
114
Required : False
108
115
Position : Named
@@ -117,7 +124,7 @@ Specifies the ID of the tenant that contains subscriptions to get.
117
124
` ` ` yaml
118
125
Type : String
119
126
Parameter Sets : (All)
120
- Aliases :
127
+ Aliases :
121
128
122
129
Required : False
123
130
Position : Named
@@ -127,7 +134,11 @@ Accept wildcard characters: False
127
134
` ` `
128
135
129
136
### CommonParameters
130
- This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
137
+ This cmdlet supports the common parameters: -Debug, -ErrorAction,
138
+ -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable,
139
+ -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and
140
+ -WarningVariable. For more information, see
141
+ [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
131
142
132
143
## INPUTS
133
144
@@ -138,4 +149,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
138
149
## NOTES
139
150
140
151
## RELATED LINKS
141
-
0 commit comments