Skip to content

Commit 41ee02d

Browse files
committed
Update Profile parameter set names
1 parent 492cd1f commit 41ee02d

File tree

6 files changed

+16
-19
lines changed

6 files changed

+16
-19
lines changed

src/ResourceManager/Profile/Commands.Profile/Context/RemoveAzureRmContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.Profile.Context
2626
[OutputType(typeof(PSAzureContext))]
2727
public class RemoveAzureRmContext : AzureContextModificationCmdlet, IDynamicParameters
2828
{
29-
const string NamedContextParameterSet = "Named Context", InputObjectParameterSet = "Input Object";
29+
const string NamedContextParameterSet = "RemoveByName", InputObjectParameterSet = "RemoveByInputObject";
3030
[Parameter(Mandatory = true, ParameterSetName = InputObjectParameterSet, ValueFromPipeline = true, HelpMessage = "A context object, normally passed through the pipeline.")]
3131
[ValidateNotNullOrEmpty]
3232
public PSAzureContext InputObject { get; set; }

src/ResourceManager/Profile/Commands.Profile/Context/RenameAzureRmContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.Profile.Context
2626
[OutputType(typeof(PSAzureContext))]
2727
public class RenameAzureRmContext : AzureContextModificationCmdlet, IDynamicParameters
2828
{
29-
const string SourceParameterName = "SourceName", TargetParameterName = "TargetName", InputObjectParameterSet = "Input Object", NameParameterSet = "Context Name";
29+
const string SourceParameterName = "SourceName", TargetParameterName = "TargetName", InputObjectParameterSet = "RenameByInputObject", NameParameterSet = "RenameByName";
3030
[Parameter(Mandatory = true, ParameterSetName = InputObjectParameterSet, ValueFromPipeline = true, HelpMessage = "A context object, normally passed through the pipeline.")]
3131
[ValidateNotNullOrEmpty]
3232
public PSAzureContext InputObject { get; set; }

src/ResourceManager/Profile/Commands.Profile/Context/SelectAzureRmContext.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ namespace Microsoft.Azure.Commands.Profile.Context
2323
[OutputType(typeof(PSAzureContext))]
2424
public class SelectAzureRmContext : AzureContextModificationCmdlet, IDynamicParameters
2525
{
26-
public const string InputObjectParameterSet = "Input Object";
27-
public const string ContextNameParameterSet = "Context Name";
26+
public const string InputObjectParameterSet = "SelectByInputObject";
27+
public const string ContextNameParameterSet = "SelectByName";
2828
[Parameter(Mandatory =true, ParameterSetName = InputObjectParameterSet, ValueFromPipeline =true, HelpMessage ="A context object, normally passed through the pipeline.")]
2929
[ValidateNotNullOrEmpty]
3030
public PSAzureContext InputObject { get; set; }

src/ResourceManager/Profile/Commands.Profile/help/Remove-AzureRmContext.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ Remove a context from the set of available contexts
1212

1313
## SYNTAX
1414

15-
### Input Object (Default)
15+
### RemoveByInputObject (Default)
1616
```
1717
Remove-AzureRmContext -InputObject <PSAzureContext> [-Force] [-PassThru] [-Scope <ContextModificationScope>]
1818
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
1919
```
2020

21-
### Named Context
21+
### RemoveByName
2222
```
2323
Remove-AzureRmContext [-Force] [-PassThru] [-Scope <ContextModificationScope>]
2424
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [-Name] <String> [<CommonParameters>]
@@ -73,7 +73,7 @@ A context object, normally passed through the pipeline.
7373
7474
```yaml
7575
Type: PSAzureContext
76-
Parameter Sets: Input Object
76+
Parameter Sets: RemoveByInputObject
7777
Aliases:
7878

7979
Required: True
@@ -88,9 +88,8 @@ The name of the context
8888
8989
```yaml
9090
Type: String
91-
Parameter Sets: Named Context
91+
Parameter Sets: RemoveByName
9292
Aliases:
93-
Accepted values: Default
9493

9594
Required: True
9695
Position: 0

src/ResourceManager/Profile/Commands.Profile/help/Rename-AzureRmContext.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ Rename an Azure context. By default contexts are named by user account and subs
1212

1313
## SYNTAX
1414

15-
### Input Object (Default)
15+
### RenameByInputObject (Default)
1616
```
1717
Rename-AzureRmContext -InputObject <PSAzureContext> [-Force] [-PassThru] [-Scope <ContextModificationScope>]
1818
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [-TargetName] <String> [<CommonParameters>]
1919
```
2020

21-
### Context Name
21+
### RenameByName
2222
```
2323
Rename-AzureRmContext [-Force] [-PassThru] [-Scope <ContextModificationScope>]
2424
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [-SourceName] <String> [-TargetName] <String>
@@ -83,7 +83,7 @@ A context object, normally passed through the pipeline.
8383
8484
```yaml
8585
Type: PSAzureContext
86-
Parameter Sets: Input Object
86+
Parameter Sets: RenameByInputObject
8787
Aliases:
8888

8989
Required: True
@@ -129,9 +129,8 @@ The name of the context
129129
130130
```yaml
131131
Type: String
132-
Parameter Sets: Context Name
132+
Parameter Sets: RenameByName
133133
Aliases:
134-
Accepted values: Default
135134

136135
Required: True
137136
Position: 0

src/ResourceManager/Profile/Commands.Profile/help/Select-AzureRmContext.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ Select a subscription and account to target in Azure PowerShell cmdlets
1212

1313
## SYNTAX
1414

15-
### Input Object (Default)
15+
### SelectByInputObject (Default)
1616
```
1717
Select-AzureRmContext -InputObject <PSAzureContext> [-Scope <ContextModificationScope>]
1818
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
1919
```
2020

21-
### Context Name
21+
### SelectByName
2222
```
2323
Select-AzureRmContext [-Scope <ContextModificationScope>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
2424
[-Confirm] [-Name] <String> [<CommonParameters>]
@@ -59,7 +59,7 @@ A context object, normally passed through the pipeline.
5959
6060
```yaml
6161
Type: PSAzureContext
62-
Parameter Sets: Input Object
62+
Parameter Sets: SelectByInputObject
6363
Aliases:
6464

6565
Required: True
@@ -74,9 +74,8 @@ The name of the context
7474
7575
```yaml
7676
Type: String
77-
Parameter Sets: Context Name
77+
Parameter Sets: SelectByName
7878
Aliases:
79-
Accepted values: Default
8079

8180
Required: True
8281
Position: 0

0 commit comments

Comments
 (0)