Skip to content

Commit 1c36974

Browse files
committed
reset static analysis and fixed new cmdlet for default parameter
1 parent 1d49b58 commit 1c36974

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/Network/Network/VirtualNetworkGateway/NewAzRadiusServerCommand.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,25 @@
2121

2222
namespace Microsoft.Azure.Commands.Network
2323
{
24-
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "RadiusServer"), OutputType(typeof(PSRadiusServer))]
24+
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "RadiusServer", DefaultParameterSetName = "RadiusServer"), OutputType(typeof(PSRadiusServer))]
2525
public class NewAzRadiusServerCommand : NetworkBaseCmdlet
2626
{
2727
[Parameter(
28+
ParameterSetName = "RadiusServer",
2829
Mandatory = true,
2930
ValueFromPipelineByPropertyName = true,
3031
HelpMessage = "External radius server address")]
3132
public string RadiusServerAddress { get; set; }
3233

3334
[Parameter(
35+
ParameterSetName = "RadiusServer",
3436
Mandatory = true,
3537
ValueFromPipelineByPropertyName = true,
3638
HelpMessage = "External radius server secret")]
3739
public SecureString RadiusServerSecret { get; set; }
3840

3941
[Parameter(
42+
ParameterSetName = "RadiusServer",
4043
Mandatory = false,
4144
ValueFromPipelineByPropertyName = true,
4245
HelpMessage = "External radius server score")]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file: Microsoft.Azure.PowerShell.Cmdlets.Network.dll-Help.xml
33
Module Name: Az.Network
4-
online version:https://docs.microsoft.com/en-us/powershell/module/az.network/new-azradiusserver
4+
online version: https://docs.microsoft.com/en-us/powershell/module/az.network/new-azradiusserver
55
schema: 2.0.0
66
---
77

tools/StaticAnalysis/Exceptions/Az.Network/SignatureIssues.csv

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@
336336
"Microsoft.Azure.PowerShell.Cmdlets.Network.dll","Microsoft.Azure.Commands.Network.SetAzNetworkWatcherFlowLogCommand","Set-AzNetworkWatcherFlowLog","1","8410","Parameter EnableTrafficAnalytics of cmdlet Set-AzNetworkWatcherFlowLog does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name."
337337
"Microsoft.Azure.PowerShell.Cmdlets.Network.dll","Microsoft.Azure.Commands.Network.NewAzureVirtualNetworkGatewayCommand","New-AzVirtualNetworkGateway","1","8410","Parameter IpConfigurationBgpPeeringAddresses of cmdlet New-AzVirtualNetworkGateway does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name."
338338
"Microsoft.Azure.PowerShell.Cmdlets.Network.dll","Microsoft.Azure.Commands.Network.SetAzureVirtualNetworkGatewayCommand","Set-AzVirtualNetworkGateway","1","8410","Parameter IpConfigurationBgpPeeringAddresses of cmdlet Set-AzVirtualNetworkGateway does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name."
339-
"Microsoft.Azure.PowerShell.Cmdlets.Network.dll","Microsoft.Azure.Commands.Network.NewAzRadiusServerCommand","New-AzRadiusServer","1","8100","New-AzRadiusServer Does not support ShouldProcess but the cmdlet verb New indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue"
340339
"Microsoft.Azure.PowerShell.Cmdlets.Network.dll","Microsoft.Azure.Commands.Network.NetworkWatcher.NewNetworkWatcherConnectionMonitorProtocolConfigurationObject","New-AzNetworkWatcherConnectionMonitorProtocolConfigurationObject","1","8100","New-AzNetworkWatcherConnectionMonitorProtocolConfigurationObject Does not support ShouldProcess but the cmdlet verb New indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue"
341340
"Microsoft.Azure.PowerShell.Cmdlets.Network.dll","Microsoft.Azure.Commands.Network.NetworkWatcher.NewNetworkWatcherConnectionMonitorProtocolConfigurationObject","New-AzNetworkWatcherConnectionMonitorProtocolConfigurationObject","1","8510","Cmdlet 'New-AzNetworkWatcherConnectionMonitorProtocolConfigurationObject' has multiple parameter sets, but no defined default parameter set.","Define a default parameter set in the cmdlet attribute."
342-
"Microsoft.Azure.PowerShell.Cmdlets.Network.dll","Microsoft.Azure.Commands.Network.RemoveAzureSecurityPartnerProviderCommand","Remove-AzSecurityPartnerProvider","1","8510","Cmdlet 'Remove-AzSecurityPartnerProvider' has multiple parameter sets, but no defined default parameter set.","Define a default parameter set in the cmdlet attribute."
341+
"Microsoft.Azure.PowerShell.Cmdlets.Network.dll","Microsoft.Azure.Commands.Network.RemoveAzureSecurityPartnerProviderCommand","Remove-AzSecurityPartnerProvider","1","8510","Cmdlet 'Remove-AzSecurityPartnerProvider' has multiple parameter sets, but no defined default parameter set.","Define a default parameter set in the cmdlet attribute."

0 commit comments

Comments
 (0)