Skip to content

Commit d6182f2

Browse files
cmdlets dont support shouldProcess, update staticanalysis
1 parent d8202e2 commit d6182f2

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/Network/Network/Cortex/VirtualHubRouteTable/AddAzureRmVirtualHubRouteCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace Microsoft.Azure.Commands.Network
2323
[Cmdlet(
2424
VerbsCommon.Add,
2525
ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VirtualHubRoute",
26-
SupportsShouldProcess = true),
26+
SupportsShouldProcess = false),
2727
OutputType(typeof(PSVirtualHubRoute))]
2828
public class AddAzureRmVirtualHubRouteCommand : VirtualHubRouteTableBaseCmdlet
2929
{

src/Network/Network/Cortex/VirtualHubRouteTable/AddAzureRmVirtualHubRouteTableCommand.cs

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

2323
[Cmdlet(VerbsCommon.Add,
2424
ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VirtualHubRouteTable",
25-
SupportsShouldProcess = true),
25+
SupportsShouldProcess = false),
2626
OutputType(typeof(PSVirtualHubRouteTable))]
2727
public class AddAzureRmVirtualHubRouteTableCommand : VirtualHubRouteTableBaseCmdlet
2828
{

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,4 +307,6 @@
307307
"Microsoft.Azure.PowerShell.Cmdlets.Network.dll","Microsoft.Azure.Commands.Network.NewAzFirewallPolicyApplicationRuleCommand","New-AzFirewallPolicyApplicationRule","1","8100","New-AzFirewallPolicyApplicationRule 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"
308308
"Microsoft.Azure.PowerShell.Cmdlets.Network.dll","Microsoft.Azure.Commands.Network.NewAzureFirewallPolicyFilterRuleCollectionCommand","New-AzFirewallPolicyFilterRuleCollection","1","8100","New-AzFirewallPolicyFilterRuleCollection 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"
309309
"Microsoft.Azure.PowerShell.Cmdlets.Network.dll","Microsoft.Azure.Commands.Network.NewAzureFirewallPolicyNatRuleCollectionsCommand","New-AzFirewallPolicyNatRuleCollection","1","8100","New-AzFirewallPolicyNatRuleCollection 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"
310-
"Microsoft.Azure.PowerShell.Cmdlets.Network.dll","Microsoft.Azure.Commands.Network.NewAzureFirewallPolicyNetworkRuleCommand","New-AzFirewallPolicyNetworkRule","1","8100","New-AzFirewallPolicyNetworkRule 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"
310+
"Microsoft.Azure.PowerShell.Cmdlets.Network.dll","Microsoft.Azure.Commands.Network.NewAzureFirewallPolicyNetworkRuleCommand","New-AzFirewallPolicyNetworkRule","1","8100","New-AzFirewallPolicyNetworkRule 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"
311+
"Microsoft.Azure.PowerShell.Cmdlets.Network.dll","Microsoft.Azure.Commands.Network.AddAzureRmVirtualHubRouteCommand","Add-AzVirtualHubRoute","1","8100","Add-AzVirtualHubRoute Does not support ShouldProcess but the cmdlet verb Add indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue"
312+
"Microsoft.Azure.PowerShell.Cmdlets.Network.dll","Microsoft.Azure.Commands.Network.AddAzureRmVirtualHubRouteTableCommand","Add-AzVirtualHubRouteTable","1","8100","Add-AzVirtualHubRouteTable Does not support ShouldProcess but the cmdlet verb Add indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue"

0 commit comments

Comments
 (0)