Skip to content

Commit 39c297d

Browse files
committed
added generated files and changes for what if
1 parent c40202f commit 39c297d

74 files changed

Lines changed: 11870 additions & 2000 deletions

File tree

Some content is hidden

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

DEPLOYMENT_STACKS_WHATIF_MODELS_GUIDE.md

Lines changed: 761 additions & 0 deletions
Large diffs are not rendered by default.

src/Resources/ResourceManager/Formatters/Color.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public class Color : IEquatable<Color>
3030

3131
public static Color Blue { get; } = new Color($"{Esc}[38;5;39m");
3232

33+
public static Color Cyan { get; } = new Color($"{Esc}[38;5;51m");
34+
3335
public static Color Gray { get; } = new Color($"{Esc}[38;5;246m");
3436

3537
public static Color Reset { get; } = new Color($"{Esc}[0m");

src/Resources/ResourceManager/Implementation/DeploymentStacks/GetAzManagementGroupDeploymentStackWhatIf.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ protected override PSDeploymentStackWhatIfParameters BuildWhatIfParameters()
9595
ResourcesCleanupAction = shouldDeleteResources ? "delete" : "detach",
9696
ResourceGroupsCleanupAction = shouldDeleteResourceGroups ? "delete" : "detach",
9797
ManagementGroupsCleanupAction = shouldDeleteManagementGroups ? "delete" : "detach",
98-
DenySettingsMode = DenySettingsMode?.ToString(),
98+
DenySettingsMode = DenySettingsMode != 0 ? DenySettingsMode.ToString() : null,
9999
DenySettingsExcludedPrincipals = DenySettingsExcludedPrincipal,
100100
DenySettingsExcludedActions = DenySettingsExcludedAction,
101101
DenySettingsApplyToChildScopes = DenySettingsApplyToChildScopes.IsPresent

src/Resources/ResourceManager/Implementation/DeploymentStacks/GetAzResourceGroupDeploymentStackWhatIf.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ protected override PSDeploymentStackWhatIfParameters BuildWhatIfParameters()
8787
ResourcesCleanupAction = shouldDeleteResources ? "delete" : "detach",
8888
ResourceGroupsCleanupAction = shouldDeleteResourceGroups ? "delete" : "detach",
8989
ManagementGroupsCleanupAction = shouldDeleteManagementGroups ? "delete" : "detach",
90-
DenySettingsMode = DenySettingsMode?.ToString(),
90+
DenySettingsMode = DenySettingsMode != 0 ? DenySettingsMode.ToString() : null,
9191
DenySettingsExcludedPrincipals = DenySettingsExcludedPrincipal,
9292
DenySettingsExcludedActions = DenySettingsExcludedAction,
9393
DenySettingsApplyToChildScopes = DenySettingsApplyToChildScopes.IsPresent

src/Resources/ResourceManager/Implementation/DeploymentStacks/GetAzSubscriptionDeploymentStackWhatIf.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ protected override PSDeploymentStackWhatIfParameters BuildWhatIfParameters()
8989
ResourcesCleanupAction = shouldDeleteResources ? "delete" : "detach",
9090
ResourceGroupsCleanupAction = shouldDeleteResourceGroups ? "delete" : "detach",
9191
ManagementGroupsCleanupAction = shouldDeleteManagementGroups ? "delete" : "detach",
92-
DenySettingsMode = DenySettingsMode?.ToString(),
92+
DenySettingsMode = DenySettingsMode != 0 ? DenySettingsMode.ToString() : null,
9393
DenySettingsExcludedPrincipals = DenySettingsExcludedPrincipal,
9494
DenySettingsExcludedActions = DenySettingsExcludedAction,
9595
DenySettingsApplyToChildScopes = DenySettingsApplyToChildScopes.IsPresent
Lines changed: 46 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,48 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<PsModuleName>Resources</PsModuleName>
5-
</PropertyGroup>
6-
7-
<Import Project="$(MSBuildThisFileDirectory)..\..\Az.props" />
8-
9-
<PropertyGroup>
10-
<AssemblyName>$(AzAssemblyPrefix)ResourceManager</AssemblyName>
11-
<RootNamespace>$(LegacyAssemblyPrefix)ResourceManager.Cmdlets</RootNamespace>
12-
</PropertyGroup>
13-
14-
<ItemGroup>
15-
<PackageReference Include="Microsoft.Azure.Management.ResourceManager" Version="3.17.3-preview" />
16-
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="2.2.0" />
17-
</ItemGroup>
18-
19-
<ItemGroup>
20-
<ProjectReference Include="..\Resources.Management.Sdk\Resources.Management.Sdk.csproj" />
21-
</ItemGroup>
22-
23-
<ItemGroup>
24-
<Compile Update="Properties\Resources.Designer.cs">
25-
<DesignTime>True</DesignTime>
26-
<AutoGen>True</AutoGen>
27-
<DependentUpon>Resources.resx</DependentUpon>
28-
</Compile>
29-
</ItemGroup>
30-
31-
<ItemGroup>
32-
<EmbeddedResource Update="Properties\Resources.resx">
33-
<Generator>ResXFileCodeGenerator</Generator>
34-
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
35-
</EmbeddedResource>
36-
</ItemGroup>
37-
38-
<ItemGroup>
39-
<None Update="ResourceManagerStartup.ps1" CopyToOutputDirectory="Never" />
40-
</ItemGroup>
41-
42-
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.Post.props" />
43-
44-
</Project>
3+
<PropertyGroup>
4+
<PsModuleName>Resources</PsModuleName>
5+
</PropertyGroup>
6+
7+
<Import Project="$(MSBuildThisFileDirectory)..\..\Az.props" />
8+
9+
<PropertyGroup>
10+
<AssemblyName>$(AzAssemblyPrefix)ResourceManager</AssemblyName>
11+
<RootNamespace>$(LegacyAssemblyPrefix)ResourceManager.Cmdlets</RootNamespace>
12+
</PropertyGroup>
13+
14+
<ItemGroup>
15+
<PackageReference Include="Microsoft.Azure.Management.ResourceManager" Version="3.17.3-preview" />
16+
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="2.2.0" />
17+
<!-- Update Azure.Core to support the new DeploymentStacks SDK (imported from Az.props) -->
18+
<PackageReference Update="Azure.Core" Version="1.51.1" />
19+
<!-- New Azure SDK for Deployment Stacks What-If operations -->
20+
<PackageReference Include="Azure.ResourceManager.Resources.DeploymentStacks" Version="1.0.0" />
21+
</ItemGroup>
22+
23+
<ItemGroup>
24+
<ProjectReference Include="..\Resources.Management.Sdk\Resources.Management.Sdk.csproj" />
25+
</ItemGroup>
26+
27+
<ItemGroup>
28+
<Compile Update="Properties\Resources.Designer.cs">
29+
<DesignTime>True</DesignTime>
30+
<AutoGen>True</AutoGen>
31+
<DependentUpon>Resources.resx</DependentUpon>
32+
</Compile>
33+
</ItemGroup>
34+
35+
<ItemGroup>
36+
<EmbeddedResource Update="Properties\Resources.resx">
37+
<Generator>ResXFileCodeGenerator</Generator>
38+
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
39+
</EmbeddedResource>
40+
</ItemGroup>
41+
42+
<ItemGroup>
43+
<None Update="ResourceManagerStartup.ps1" CopyToOutputDirectory="Never" />
44+
</ItemGroup>
45+
46+
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.Post.props" />
47+
48+
</Project>

0 commit comments

Comments
 (0)