Skip to content

Commit 1be464e

Browse files
committed
Update help text.
1 parent 4f75a2e commit 1be464e

File tree

3 files changed

+11
-74
lines changed

3 files changed

+11
-74
lines changed

src/ResourceManager/SubscriptionDefinition/Commands.SubscriptionDefinition.Test/ScenarioTests/TestController.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,6 @@ public void RunPsTestWorkflow(
115115

116116
using (var context = MockContext.Start(callingClassType, mockName))
117117
{
118-
// NOTE: Uncomment to force interactive login when you need to record tests.
119-
// var x = Rest.Azure.Authentication.UserTokenProvider.LoginWithPromptAsync(new Rest.Azure.Authentication.ActiveDirectoryClientSettings(clientId: "1950a258-227b-4e31-a9cf-717495945fc2", clientRedirectUri: new Uri("urn:ietf:wg:oauth:2.0:oob")), "[email protected]").Result;
120-
121118
_csmTestFactory = new CSMTestEnvironmentFactory();
122119

123120
if (initialize != null)

src/ResourceManager/SubscriptionDefinition/Commands.SubscriptionDefinition/help/Get-AzureRmSubscriptionDefinition.md

Lines changed: 5 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -11,65 +11,35 @@ Get a subscription definition.
1111

1212
## SYNTAX
1313

14-
### Subscription (Default)
14+
### Get subscription definitions.
1515
```
1616
Get-AzureRmSubscriptionDefinition
1717
```
1818

19-
### Management group
20-
```
21-
Get-AzureRmSubscriptionDefinition -ManagementGroupId <String> [-Name <String>]
22-
```
23-
24-
## DESCRIPTION
25-
The **Get-AzureRmSubscriptionDefinition** cmdlet gets one or more subscription definitions within the specified scope.
26-
2719
## EXAMPLES
2820

2921
### Example 1
3022
```
3123
PS C:\> Get-AzureRmSubscriptionDefinition
3224
```
3325

34-
Gets the subscription definition for the subscription in the current context.
26+
Gets all subscription definitions.
3527

3628
### Example 2
3729
```
38-
PS C:\> Get-AzureRmSubscription | Get-AzureRmSubscriptionDefinition
39-
```
40-
41-
Gets the subscription definitions for all subscriptions in the current tenant.
42-
43-
### Example 3
44-
```
45-
PS C:\> Get-AzureRmSubscriptionDefinition -ManagementGroupId 3d0a564b-2803-4019-9f99-0a497dfeea91
30+
PS C:\> Get-AzureRmSubscriptionDefinition -Name MySubDef
4631
```
4732

48-
Gets the subscription definitions within management group 3d0a564b-2803-4019-9f99-0a497dfeea91.
33+
Gets a subscription definition with the name MySubDef.
4934

5035
## PARAMETERS
5136

52-
### -ManagementGroupId
53-
The id of the management group in which to retrieve subscription definitions.
54-
55-
```yaml
56-
Type: String
57-
Parameter Sets: ByManagementGroup
58-
Aliases:
59-
60-
Required: True
61-
Position: 0
62-
Default value: None
63-
Accept pipeline input: False
64-
Accept wildcard characters: False
65-
```
66-
6737
### -Name
6838
The name of the subscription definition to retrieve.
6939

7040
```yaml
7141
Type: String
72-
Parameter Sets: ByManagementGroup
42+
Parameter Sets: (All)
7343
Aliases:
7444

7545
Required: False
@@ -79,21 +49,6 @@ Accept pipeline input: False
7949
Accept wildcard characters: False
8050
```
8151
82-
### -Subscription
83-
The subscription for which to retrieve the subscription definition.
84-
85-
```yaml
86-
Type: IAzureSubscription
87-
Parameter Sets: BySubscription
88-
Aliases:
89-
90-
Required: False
91-
Position: Named
92-
Default value: Subscription in current context
93-
Accept pipeline input: True
94-
Accept wildcard characters: False
95-
```
96-
9752
### CommonParameters
9853
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).
9954

src/ResourceManager/SubscriptionDefinition/Commands.SubscriptionDefinition/help/New-AzureRmSubscriptionDefinition.md

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,45 +13,30 @@ Creates a subscription definition.
1313

1414
### Create subscription definition
1515
```
16-
New-AzureRmSubscriptionDefinition -ManagementGroupId <String> -Name <String> -OfferType <String>
16+
New-AzureRmSubscriptionDefinition -Name <String> -OfferType <String> [-SubscriptionDisplayName <String>]
1717
```
1818

1919
## DESCRIPTION
20-
The **New-AzureRmSubscriptionDefinition** cmdlet creates a subscription definitions within the specified management group.
20+
The **New-AzureRmSubscriptionDefinition** cmdlet creates a subscription definition.
2121

2222
## EXAMPLES
2323

2424
### Example 1
2525
```
26-
PS C:\> New-AzureRmSubscriptionDefinition -ManagementGroupId 3d0a564b-2803-4019-9f99-0a497dfeea91 -Name MySubDef -OfferType MS-AZR-0017P
26+
PS C:\> New-AzureRmSubscriptionDefinition -Name MySubDef -OfferType MS-AZR-0017P
2727
```
2828

2929
Creates a subscription definition with a default subscription display name.
3030

3131
### Example 2
3232
```
33-
PS C:\> New-AzureRmSubscriptionDefinition -ManagementGroupId 3d0a564b-2803-4019-9f99-0a497dfeea91 -Name MySubDef -OfferType MS-AZR-0017P -SubscriptionDisplayName MyPaygoSub
33+
PS C:\> New-AzureRmSubscriptionDefinition -Name MySubDef -OfferType MS-AZR-0017P -SubscriptionDisplayName MyPaygoSub
3434
```
3535

3636
Creates a subscription definition with a custom subscription display name.
3737

3838
## PARAMETERS
3939

40-
### -ManagementGroupId
41-
The id of the management group in which to create the subscription definition.
42-
43-
```yaml
44-
Type: String
45-
Parameter Sets: (All)
46-
Aliases:
47-
48-
Required: True
49-
Position: Named
50-
Default value: None
51-
Accept pipeline input: False
52-
Accept wildcard characters: False
53-
```
54-
5540
### -Name
5641
The name of the subscription definition to create.
5742

@@ -75,7 +60,7 @@ Type: String
7560
Parameter Sets: (All)
7661
Aliases:
7762

78-
Required: False
63+
Required: True
7964
Position: Named
8065
Default value: None
8166
Accept pipeline input: False
@@ -90,7 +75,7 @@ Type: String
9075
Parameter Sets: (All)
9176
Aliases:
9277

93-
Required: True
78+
Required: False
9479
Position: Named
9580
Default value: Name
9681
Accept pipeline input: False

0 commit comments

Comments
 (0)