Skip to content

Commit c884264

Browse files
authored
Add Default parameter set for Remove-AzecurityPartnerProvider (#11831)
1 parent 5f68728 commit c884264

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Network/Network/SecurityPartnerProvider/RemoveAzureSecurityPartnerProviderCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
namespace Microsoft.Azure.Commands.Network
2323
{
24-
[Cmdlet(VerbsCommon.Remove, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SecurityPartnerProvider", SupportsShouldProcess = true), OutputType(typeof(bool))]
24+
[Cmdlet(VerbsCommon.Remove, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SecurityPartnerProvider", DefaultParameterSetName= SecurityPartnerProviderParameterSetName.ByName, SupportsShouldProcess = true), OutputType(typeof(bool))]
2525
public class RemoveAzureSecurityPartnerProviderCommand : SecurityPartnerProviderBaseCmdlet
2626
{
2727
[Alias("ResourceName")]

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,4 +338,3 @@
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."
339339
"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"
340340
"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."
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)