Skip to content

Commit 0749c74

Browse files
Fix default parameter sets for HubBgpConnection cmdlets. Minor fixes to the help files for HubBgpConnection. (#15929)
Co-authored-by: Andrii Kalinichenko <[email protected]>
1 parent 42a38fb commit 0749c74

6 files changed

+65
-77
lines changed

src/Network/Network/Cortex/HubBgpConnection/NewAzVirtualHubBgpConnectionCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.Network
2424

2525
[Cmdlet(VerbsCommon.New,
2626
ResourceManager.Common.AzureRMConstants.AzurePrefix + "VirtualHubBgpConnection",
27-
DefaultParameterSetName = CortexParameterSetNames.ByVirtualHubName,
27+
DefaultParameterSetName = CortexParameterSetNames.ByVirtualHubName + CortexParameterSetNames.ByHubVirtualNetworkConnectionObject,
2828
SupportsShouldProcess = true),
2929
OutputType(typeof(PSBgpConnection))]
3030
public class NewAzVirtualHubBgpConnectionCommand : HubBgpConnectionBaseCmdlet

src/Network/Network/Cortex/HubBgpConnection/UpdateAzVirtualHubBgpConnectionCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.Network
2626

2727
[Cmdlet("Update",
2828
ResourceManager.Common.AzureRMConstants.AzurePrefix + "VirtualHubBgpConnection",
29-
DefaultParameterSetName = CortexParameterSetNames.ByVirtualHubName,
29+
DefaultParameterSetName = CortexParameterSetNames.ByVirtualHubName + CortexParameterSetNames.ByHubVirtualNetworkConnectionObject,
3030
SupportsShouldProcess = true),
3131
OutputType(typeof(PSBgpConnection))]
3232
public class UpdateAzVirtualHubBgpConnectionCommand : HubBgpConnectionBaseCmdlet

src/Network/Network/help/Get-AzVirtualHubBgpConnection.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ This cmdlet lists all the Virtual WAN Hub BGP Connections starting with "test" u
8686
The credentials, account, tenant, and subscription used for communication with Azure.
8787

8888
```yaml
89-
Type: IAzureContextContainer
89+
Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
9090
Parameter Sets: (All)
9191
Aliases: AzContext, AzureRmContext, AzureCredential
9292

@@ -101,7 +101,7 @@ Accept wildcard characters: False
101101
The resource name.
102102
103103
```yaml
104-
Type: String
104+
Type: System.String
105105
Parameter Sets: ByVirtualHubName, ByVirtualHubObject
106106
Aliases: ResourceName, BgpConnectionName
107107

@@ -116,7 +116,7 @@ Accept wildcard characters: True
116116
The resource group name.
117117
118118
```yaml
119-
Type: String
119+
Type: System.String
120120
Parameter Sets: ByVirtualHubName
121121
Aliases:
122122

@@ -131,7 +131,7 @@ Accept wildcard characters: False
131131
The resource id.
132132
133133
```yaml
134-
Type: String
134+
Type: System.String
135135
Parameter Sets: ByHubBgpConnectionResourceId
136136
Aliases: BgpConnectionId
137137

@@ -161,7 +161,7 @@ Accept wildcard characters: False
161161
The virtual hub name.
162162
163163
```yaml
164-
Type: String
164+
Type: System.String
165165
Parameter Sets: ByVirtualHubName
166166
Aliases: ParentResourceName, ParentVirtualHubName
167167

src/Network/Network/help/New-AzVirtualHubBgpConnection.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,7 @@ The New-AzVirtualHubBgpConnection cmdlet creates a HubBgpConnection resource tha
1212

1313
## SYNTAX
1414

15-
### ByVirtualHubName (Default)
16-
```
17-
New-AzVirtualHubBgpConnection -PeerIp <String> -PeerAsn <UInt32> -Name <String> [-AsJob]
18-
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
19-
```
20-
21-
### ByVirtualHubNameByHubVirtualNetworkConnectionObject
15+
### ByVirtualHubNameByHubVirtualNetworkConnectionObject (Default)
2216
```
2317
New-AzVirtualHubBgpConnection -ResourceGroupName <String> -VirtualHubName <String> -PeerIp <String>
2418
-PeerAsn <UInt32> -Name <String> -VirtualHubVnetConnection <PSHubVirtualNetworkConnection> [-AsJob]

src/Network/Network/help/Remove-AzVirtualHubBgpConnection.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ The above will remove a Virtual WAN Hub BGP Connection using the BGP Connection
6969
Run cmdlet in the background
7070

7171
```yaml
72-
Type: SwitchParameter
72+
Type: System.Management.Automation.SwitchParameter
7373
Parameter Sets: (All)
7474
Aliases:
7575

@@ -80,26 +80,11 @@ Accept pipeline input: False
8080
Accept wildcard characters: False
8181
```
8282
83-
### -Confirm
84-
Prompts you for confirmation before running the cmdlet.
85-
86-
```yaml
87-
Type: SwitchParameter
88-
Parameter Sets: (All)
89-
Aliases: cf
90-
91-
Required: False
92-
Position: Named
93-
Default value: None
94-
Accept pipeline input: False
95-
Accept wildcard characters: False
96-
```
97-
9883
### -DefaultProfile
9984
The credentials, account, tenant, and subscription used for communication with Azure.
10085
10186
```yaml
102-
Type: IAzureContextContainer
87+
Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
10388
Parameter Sets: (All)
10489
Aliases: AzContext, AzureRmContext, AzureCredential
10590

@@ -114,7 +99,7 @@ Accept wildcard characters: False
11499
Do not ask for confirmation if you want to overwrite a resource
115100
116101
```yaml
117-
Type: SwitchParameter
102+
Type: System.Management.Automation.SwitchParameter
118103
Parameter Sets: (All)
119104
Aliases:
120105

@@ -129,7 +114,7 @@ Accept wildcard characters: False
129114
The virtual hub bgp connection resource.
130115
131116
```yaml
132-
Type: PSBgpConnection
117+
Type: Microsoft.Azure.Commands.Network.Models.PSBgpConnection
133118
Parameter Sets: ByHubBgpConnectionObject
134119
Aliases: VirtualHubBgpConnection
135120

@@ -144,7 +129,7 @@ Accept wildcard characters: False
144129
The resource name.
145130
146131
```yaml
147-
Type: String
132+
Type: System.String
148133
Parameter Sets: ByVirtualHubName, ByVirtualHubObject
149134
Aliases: ResourceName, BgpConnectionName
150135

@@ -159,7 +144,7 @@ Accept wildcard characters: False
159144
Returns an object representing the item on which this operation is being performed.
160145
161146
```yaml
162-
Type: SwitchParameter
147+
Type: System.Management.Automation.SwitchParameter
163148
Parameter Sets: (All)
164149
Aliases:
165150

@@ -174,7 +159,7 @@ Accept wildcard characters: False
174159
The resource group name.
175160
176161
```yaml
177-
Type: String
162+
Type: System.String
178163
Parameter Sets: ByVirtualHubName
179164
Aliases:
180165

@@ -189,7 +174,7 @@ Accept wildcard characters: False
189174
The resource id.
190175
191176
```yaml
192-
Type: String
177+
Type: System.String
193178
Parameter Sets: ByHubBgpConnectionResourceId
194179
Aliases: BgpConnectionId
195180

@@ -219,7 +204,7 @@ Accept wildcard characters: False
219204
The virtual hub name.
220205
221206
```yaml
222-
Type: String
207+
Type: System.String
223208
Parameter Sets: ByVirtualHubName
224209
Aliases: ParentResourceName, ParentVirtualHubName
225210

@@ -230,12 +215,27 @@ Accept pipeline input: False
230215
Accept wildcard characters: False
231216
```
232217
218+
### -Confirm
219+
Prompts you for confirmation before running the cmdlet.
220+
221+
```yaml
222+
Type: System.Management.Automation.SwitchParameter
223+
Parameter Sets: (All)
224+
Aliases: cf
225+
226+
Required: False
227+
Position: Named
228+
Default value: None
229+
Accept pipeline input: False
230+
Accept wildcard characters: False
231+
```
232+
233233
### -WhatIf
234234
Shows what would happen if the cmdlet runs.
235235
The cmdlet is not run.
236236
237237
```yaml
238-
Type: SwitchParameter
238+
Type: System.Management.Automation.SwitchParameter
239239
Parameter Sets: (All)
240240
Aliases: wi
241241

0 commit comments

Comments
 (0)