Skip to content

Commit 48315d1

Browse files
authored
Merge pull request #7617 from pilor/remediations
PolicyInsights policy remediation cmdlets
2 parents 7dab610 + c86dc47 commit 48315d1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+88431
-103
lines changed

src/ResourceManager/PolicyInsights/Commands.PolicyInsights.Test/Commands.PolicyInsights.Test.Netcore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</PropertyGroup>
2525

2626
<ItemGroup Condition="'$(TargetFramework)' != 'net472'">
27-
<PackageReference Include="Microsoft.Azure.Management.PolicyInsights" Version="1.0.0" />
27+
<PackageReference Include="Microsoft.Azure.Management.PolicyInsights" Version="2.0.0" />
2828
</ItemGroup>
2929

3030
<ItemGroup>

src/ResourceManager/PolicyInsights/Commands.PolicyInsights.Test/Commands.PolicyInsights.Test.csproj

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,15 @@
4141
<CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
4242
</PropertyGroup>
4343
<ItemGroup>
44-
<Reference Include="Microsoft.Azure.Management.PolicyInsights, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
44+
<Reference Include="Microsoft.Azure.Management.PolicyInsights, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
4545
<SpecificVersion>False</SpecificVersion>
46-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.PolicyInsights.1.0.0\lib\net452\Microsoft.Azure.Management.PolicyInsights.dll</HintPath>
46+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.PolicyInsights.2.0.0\lib\net452\Microsoft.Azure.Management.PolicyInsights.dll</HintPath>
4747
<Private>True</Private>
4848
</Reference>
4949
</ItemGroup>
5050
<ItemGroup>
5151
<Compile Include="Properties\AssemblyInfo.cs" />
52+
<Compile Include="ScenarioTests\RemediationTests.cs" />
5253
<Compile Include="ScenarioTests\QueryOptionTests.cs" />
5354
<Compile Include="ScenarioTests\PolicyStateTests.cs" />
5455
<Compile Include="ScenarioTests\PolicyStateSummaryTests.cs" />
@@ -69,6 +70,9 @@
6970
<None Include="ScenarioTests\Common.ps1">
7071
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
7172
</None>
73+
<None Include="ScenarioTests\RemediationTests.ps1">
74+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
75+
</None>
7276
<None Include="ScenarioTests\PolicyStateSummaryTests.ps1">
7377
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
7478
</None>
@@ -198,6 +202,9 @@
198202
<None Include="SessionRecords\Microsoft.Azure.Commands.PolicyInsights.Test.ScenarioTests.QueryOptionTests\QueryResultsWithTop.json">
199203
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
200204
</None>
205+
<None Include="SessionRecords\Microsoft.Azure.Commands.PolicyInsights.Test.ScenarioTests.RemediationTests\*.json">
206+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
207+
</None>
201208
</ItemGroup>
202209
<ItemGroup>
203210
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />

0 commit comments

Comments
 (0)