Skip to content

Commit b68c455

Browse files
author
Hanyun Tao
committed
update
1 parent d71c8a9 commit b68c455

File tree

8 files changed

+43
-15
lines changed

8 files changed

+43
-15
lines changed

src/ResourceManager/FrontDoor/Commands.FrontDoor.Test/Commands.FrontDoor.Test.csproj

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@
3939
<ItemGroup>
4040
<None Include="MSSharedLibKey.snk" />
4141
<Compile Include="Properties\AssemblyInfo.cs" />
42-
<None Include="packages.config">
43-
<SubType>Designer</SubType>
44-
</None>
42+
<None Include="packages.config" />
4543
<None Include="ScenarioTests\Common.ps1">
4644
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
4745
</None>
@@ -73,16 +71,25 @@
7371
<ItemGroup>
7472
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
7573
</ItemGroup>
76-
<ItemGroup>
77-
<Reference Include="Microsoft.Azure.Management.FrontDoor, Version=0.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
78-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.FrontDoor.0.9.0-preview\lib\net452\Microsoft.Azure.Management.FrontDoor.dll</HintPath>
79-
</Reference>
80-
</ItemGroup>
8174
<ItemGroup>
8275
<Compile Include="ScenarioTests\WebApplicationFireWallPolicyTests.cs" />
8376
<Compile Include="ScenarioTests\FrontDoorTests.cs" />
8477
<Compile Include="ScenarioTests\TestController.cs" />
8578
</ItemGroup>
86-
<ItemGroup />
79+
<ItemGroup>
80+
<Reference Include="Microsoft.Azure.Management.FrontDoor, Version=0.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
81+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.FrontDoor.0.9.0-preview\lib\net452\Microsoft.Azure.Management.FrontDoor.dll</HintPath>
82+
</Reference>
83+
<Reference Include="Microsoft.Rest.ClientRuntime, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
84+
<HintPath>..\..\..\packages\Microsoft.Rest.ClientRuntime.2.3.14\lib\net452\Microsoft.Rest.ClientRuntime.dll</HintPath>
85+
</Reference>
86+
<Reference Include="Microsoft.Rest.ClientRuntime.Azure, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
87+
<HintPath>..\..\..\packages\Microsoft.Rest.ClientRuntime.Azure.3.3.16\lib\net452\Microsoft.Rest.ClientRuntime.Azure.dll</HintPath>
88+
</Reference>
89+
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
90+
<HintPath>..\..\..\packages\Newtonsoft.Json.6.0.8\lib\net45\Newtonsoft.Json.dll</HintPath>
91+
</Reference>
92+
<Reference Include="System.Runtime" />
93+
</ItemGroup>
8794
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
8895
</Project>

src/ResourceManager/FrontDoor/Commands.FrontDoor/Cmdlets/NewAzureRmFrontDoorFireWallPolicy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public override void ExecuteCmdlet()
8484
Name,
8585
ResourceGroupName));
8686
}
87-
var updateParameters = new Management.FrontDoor.Models.WebApplicationFirewallPolicy
87+
var updateParameters = new Management.FrontDoor.Models.WebApplicationFirewallPolicy1
8888
{
8989
Location = "global",
9090
CustomRules = new Management.FrontDoor.Models.CustomRules {

src/ResourceManager/FrontDoor/Commands.FrontDoor/Cmdlets/SetAzureRmFrontDoorFIreWallPolicy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2727
using Microsoft.Azure.Commands.ResourceManager;
2828
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
29-
using SdkPolicy = Microsoft.Azure.Management.FrontDoor.Models.WebApplicationFirewallPolicy;
29+
using SdkPolicy = Microsoft.Azure.Management.FrontDoor.Models.WebApplicationFirewallPolicy1;
3030
namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets
3131
{
3232
/// <summary>

src/ResourceManager/FrontDoor/Commands.FrontDoor/Commands.FrontDoor.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,7 @@
114114
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
115115
</None>
116116
<None Include="MSSharedLibKey.snk" />
117-
<None Include="packages.config">
118-
<SubType>Designer</SubType>
119-
</None>
117+
<None Include="packages.config" />
120118
<None Include="StartupScripts\*.ps1" />
121119
</ItemGroup>
122120
<ItemGroup>

src/ResourceManager/FrontDoor/Commands.FrontDoor/Helpers/ModelExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
using SdkHealthProbeSetting = Microsoft.Azure.Management.FrontDoor.Models.HealthProbeSettingsModel;
2828
using SdkLoadBalancingSetting = Microsoft.Azure.Management.FrontDoor.Models.LoadBalancingSettingsModel;
2929
using SdkFrontendEndpoint = Microsoft.Azure.Management.FrontDoor.Models.FrontendEndpoint;
30-
using SdkFirewallPolicy = Microsoft.Azure.Management.FrontDoor.Models.WebApplicationFirewallPolicy;
30+
using SdkFirewallPolicy = Microsoft.Azure.Management.FrontDoor.Models.WebApplicationFirewallPolicy1;
3131
using SdkResourceState = Microsoft.Azure.Management.FrontDoor.Models.FrontDoorResourceState;
3232
using SdkCacheConfiguration = Microsoft.Azure.Management.FrontDoor.Models.CacheConfiguration;
3333
using SdkRefId = Microsoft.Azure.Management.FrontDoor.Models.SubResource;
Binary file not shown.
Binary file not shown.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
"AssemblyFileName","ClassName","Target","Severity","ProblemId","Description","Remediation"
2+
"c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.FrontDoor\Microsoft.Azure.Commands.FrontDoor.dll","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewAzureRmFrontDoorRuleGroupOverrideObject","New-AzureRmFrontDoorRuleGroupOverrideObject","1","8100","New-AzureRmFrontDoorRuleGroupOverrideObject 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"
3+
"c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.FrontDoor\Microsoft.Azure.Commands.FrontDoor.dll","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewAzureRmFrontDoorManagedRuleObject","New-AzureRmFrontDoorManagedRuleObject","1","8100","New-AzureRmFrontDoorManagedRuleObject 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"
4+
"c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.FrontDoor\Microsoft.Azure.Commands.FrontDoor.dll","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewAzureRmFrontDoorMatchConditionObject","New-AzureRmFrontDoorMatchConditionObject","1","8100","New-AzureRmFrontDoorMatchConditionObject 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"
5+
"c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.FrontDoor\Microsoft.Azure.Commands.FrontDoor.dll","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewAzureRmFrontDoorCustomRuleObject","New-AzureRmFrontDoorCustomRuleObject","1","8100","New-AzureRmFrontDoorCustomRuleObject 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"
6+
"c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.FrontDoor\Microsoft.Azure.Commands.FrontDoor.dll","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewAzureRmFrontDoorBackendObject","New-AzureRmFrontDoorBackendObject","1","8100","New-AzureRmFrontDoorBackendObject 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"
7+
"c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.FrontDoor\Microsoft.Azure.Commands.FrontDoor.dll","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewAzureRmFrontDoorBackendPoolObject","New-AzureRmFrontDoorBackendPoolObject","1","8100","New-AzureRmFrontDoorBackendPoolObject 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"
8+
"c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.FrontDoor\Microsoft.Azure.Commands.FrontDoor.dll","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewAzureRmFrontDoorFrontendEndpointObject","New-AzureRmFrontDoorFrontendEndpointObject","1","8100","New-AzureRmFrontDoorFrontendEndpointObject 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"
9+
"c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.FrontDoor\Microsoft.Azure.Commands.FrontDoor.dll","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewAzureRmFrontDoorHealthProbeSettingObject","New-AzureRmFrontDoorHealthProbeSettingObject","1","8100","New-AzureRmFrontDoorHealthProbeSettingObject 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"
10+
"c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.FrontDoor\Microsoft.Azure.Commands.FrontDoor.dll","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewAzureRmFrontDoorLoadBalancingSettingObject","New-AzureRmFrontDoorLoadBalancingSettingObject","1","8100","New-AzureRmFrontDoorLoadBalancingSettingObject 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"
11+
"c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.FrontDoor\Microsoft.Azure.Commands.FrontDoor.dll","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewAzureRmFrontDoorLoadBalancingSettingObject","New-AzureRmFrontDoorLoadBalancingSettingObject","1","8410","Parameter AdditionalLatencyInMilliseconds of cmdlet New-AzureRmFrontDoorLoadBalancingSettingObject 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."
12+
"c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.FrontDoor\Microsoft.Azure.Commands.FrontDoor.dll","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewAzureRmFrontDoorRoutingRuleObject","New-AzureRmFrontDoorRoutingRuleObject","1","8100","New-AzureRmFrontDoorRoutingRuleObject 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"
13+
"c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.FrontDoor\Microsoft.Azure.Commands.FrontDoor.dll","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewAzureRmFrontDoorRuleGroupOverrideObject","New-AzureRmFrontDoorRuleGroupOverrideObject","1","8100","New-AzureRmFrontDoorRuleGroupOverrideObject 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"
14+
"c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.FrontDoor\Microsoft.Azure.Commands.FrontDoor.dll","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewAzureRmFrontDoorManagedRuleObject","New-AzureRmFrontDoorManagedRuleObject","1","8100","New-AzureRmFrontDoorManagedRuleObject 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"
15+
"c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.FrontDoor\Microsoft.Azure.Commands.FrontDoor.dll","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewAzureRmFrontDoorMatchConditionObject","New-AzureRmFrontDoorMatchConditionObject","1","8100","New-AzureRmFrontDoorMatchConditionObject 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"
16+
"c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.FrontDoor\Microsoft.Azure.Commands.FrontDoor.dll","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewAzureRmFrontDoorCustomRuleObject","New-AzureRmFrontDoorCustomRuleObject","1","8100","New-AzureRmFrontDoorCustomRuleObject 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"
17+
"c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.FrontDoor\Microsoft.Azure.Commands.FrontDoor.dll","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewAzureRmFrontDoorBackendObject","New-AzureRmFrontDoorBackendObject","1","8100","New-AzureRmFrontDoorBackendObject 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"
18+
"c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.FrontDoor\Microsoft.Azure.Commands.FrontDoor.dll","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewAzureRmFrontDoorBackendPoolObject","New-AzureRmFrontDoorBackendPoolObject","1","8100","New-AzureRmFrontDoorBackendPoolObject 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"
19+
"c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.FrontDoor\Microsoft.Azure.Commands.FrontDoor.dll","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewAzureRmFrontDoorFrontendEndpointObject","New-AzureRmFrontDoorFrontendEndpointObject","1","8100","New-AzureRmFrontDoorFrontendEndpointObject 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"
20+
"c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.FrontDoor\Microsoft.Azure.Commands.FrontDoor.dll","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewAzureRmFrontDoorHealthProbeSettingObject","New-AzureRmFrontDoorHealthProbeSettingObject","1","8100","New-AzureRmFrontDoorHealthProbeSettingObject 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"
21+
"c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.FrontDoor\Microsoft.Azure.Commands.FrontDoor.dll","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewAzureRmFrontDoorLoadBalancingSettingObject","New-AzureRmFrontDoorLoadBalancingSettingObject","1","8100","New-AzureRmFrontDoorLoadBalancingSettingObject 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"
22+
"c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.FrontDoor\Microsoft.Azure.Commands.FrontDoor.dll","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewAzureRmFrontDoorLoadBalancingSettingObject","New-AzureRmFrontDoorLoadBalancingSettingObject","1","8410","Parameter AdditionalLatencyInMilliseconds of cmdlet New-AzureRmFrontDoorLoadBalancingSettingObject 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."
23+
"c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.FrontDoor\Microsoft.Azure.Commands.FrontDoor.dll","Microsoft.Azure.Commands.FrontDoor.Cmdlets.NewAzureRmFrontDoorRoutingRuleObject","New-AzureRmFrontDoorRoutingRuleObject","1","8100","New-AzureRmFrontDoorRoutingRuleObject 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"

0 commit comments

Comments
 (0)