Skip to content

Commit c429e40

Browse files
authored
Merge pull request #8014 from MiYanni/az-cleanup-9-mermod
9: Merges several modules together
2 parents 6d1a683 + ecd7d92 commit c429e40

File tree

362 files changed

+226
-2030
lines changed

Some content is hidden

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

362 files changed

+226
-2030
lines changed

src/ResourceManager/Billing/Billing.sln

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.Billing.Test.Netco
1010
EndProject
1111
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.Profile.Netcore", "..\Profile\Commands.Profile\Commands.Profile.Netcore.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}"
1212
EndProject
13+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.Consumption.Netcore", "Commands.Consumption\Commands.Consumption.Netcore.csproj", "{91E87DBE-3946-4A11-B8DD-84C6FC60181E}"
14+
EndProject
15+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.UsageAggregates.Netcore", "Commands.UsageAggregates\Commands.UsageAggregates.Netcore.csproj", "{EE4A7A8F-D8BB-420C-A135-10CCF6FAEA54}"
16+
EndProject
17+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.Consumption.Test.Netcore", "Commands.Consumption.Test\Commands.Consumption.Test.Netcore.csproj", "{6F8F77FD-4505-40DE-8CF4-E6C4C8509210}"
18+
EndProject
19+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.UsageAggregates.Test.Netcore", "Commands.UsageAggregates.Test\Commands.UsageAggregates.Test.Netcore.csproj", "{87F7A1CA-3292-4DD8-904F-0685DBC6CDB5}"
20+
EndProject
1321
Global
1422
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1523
Debug|Any CPU = Debug|Any CPU
@@ -28,12 +36,30 @@ Global
2836
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
2937
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
3038
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU
39+
{91E87DBE-3946-4A11-B8DD-84C6FC60181E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
40+
{91E87DBE-3946-4A11-B8DD-84C6FC60181E}.Debug|Any CPU.Build.0 = Debug|Any CPU
41+
{91E87DBE-3946-4A11-B8DD-84C6FC60181E}.Release|Any CPU.ActiveCfg = Release|Any CPU
42+
{91E87DBE-3946-4A11-B8DD-84C6FC60181E}.Release|Any CPU.Build.0 = Release|Any CPU
43+
{EE4A7A8F-D8BB-420C-A135-10CCF6FAEA54}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
44+
{EE4A7A8F-D8BB-420C-A135-10CCF6FAEA54}.Debug|Any CPU.Build.0 = Debug|Any CPU
45+
{EE4A7A8F-D8BB-420C-A135-10CCF6FAEA54}.Release|Any CPU.ActiveCfg = Release|Any CPU
46+
{EE4A7A8F-D8BB-420C-A135-10CCF6FAEA54}.Release|Any CPU.Build.0 = Release|Any CPU
47+
{6F8F77FD-4505-40DE-8CF4-E6C4C8509210}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
48+
{6F8F77FD-4505-40DE-8CF4-E6C4C8509210}.Debug|Any CPU.Build.0 = Debug|Any CPU
49+
{6F8F77FD-4505-40DE-8CF4-E6C4C8509210}.Release|Any CPU.ActiveCfg = Release|Any CPU
50+
{6F8F77FD-4505-40DE-8CF4-E6C4C8509210}.Release|Any CPU.Build.0 = Release|Any CPU
51+
{87F7A1CA-3292-4DD8-904F-0685DBC6CDB5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
52+
{87F7A1CA-3292-4DD8-904F-0685DBC6CDB5}.Debug|Any CPU.Build.0 = Debug|Any CPU
53+
{87F7A1CA-3292-4DD8-904F-0685DBC6CDB5}.Release|Any CPU.ActiveCfg = Release|Any CPU
54+
{87F7A1CA-3292-4DD8-904F-0685DBC6CDB5}.Release|Any CPU.Build.0 = Release|Any CPU
3155
EndGlobalSection
3256
GlobalSection(SolutionProperties) = preSolution
3357
HideSolutionNode = FALSE
3458
EndGlobalSection
3559
GlobalSection(NestedProjects) = preSolution
3660
{9A685061-0EF3-4963-AC60-88610F6D309E} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
61+
{6F8F77FD-4505-40DE-8CF4-E6C4C8509210} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
62+
{87F7A1CA-3292-4DD8-904F-0685DBC6CDB5} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
3763
EndGlobalSection
3864
GlobalSection(ExtensibilityGlobals) = postSolution
3965
SolutionGuid = {777688CD-FAC7-4964-B41E-6647EBB5C6D1}

src/ResourceManager/Billing/Commands.Billing/Az.Billing.psd1

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ DotNetFrameworkVersion = '4.7.2'
5454
RequiredModules = @(@{ModuleName = 'Az.Profile'; ModuleVersion = '0.6.0'; })
5555

5656
# Assemblies that must be loaded prior to importing this module
57-
RequiredAssemblies = '.\Microsoft.Azure.Management.Billing.dll'
57+
RequiredAssemblies = '.\Microsoft.Azure.Management.Billing.dll',
58+
'.\Microsoft.Azure.Management.Consumption.dll',
59+
'.\Microsoft.Azure.Commerce.UsageAggregates.dll'
5860

5961
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
6062
# ScriptsToProcess = @()
@@ -63,17 +65,27 @@ RequiredAssemblies = '.\Microsoft.Azure.Management.Billing.dll'
6365
# TypesToProcess = @()
6466

6567
# Format files (.ps1xml) to be loaded when importing this module
66-
FormatsToProcess = '.\Microsoft.Azure.Commands.Billing.Format.ps1xml'
68+
FormatsToProcess = '.\Microsoft.Azure.Commands.Billing.Format.ps1xml',
69+
'.\Microsoft.Azure.Commands.Consumption.Format.ps1xml',
70+
'.\Microsoft.Azure.Commands.UsageAggregates.Format.ps1xml'
6771

6872
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
69-
NestedModules = @('.\Microsoft.Azure.Commands.Billing.dll')
73+
NestedModules = @('.\Microsoft.Azure.Commands.Billing.dll',
74+
'.\Microsoft.Azure.Commands.Consumption.dll',
75+
'.\Microsoft.Azure.Commands.UsageAggregates.dll')
7076

7177
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
7278
FunctionsToExport = @()
7379

7480
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
7581
CmdletsToExport = 'Get-AzBillingInvoice', 'Get-AzBillingPeriod',
76-
'Get-AzEnrollmentAccount'
82+
'Get-AzEnrollmentAccount', 'Get-AzConsumptionBudget', 'Get-AzConsumptionMarketplace',
83+
'Get-AzConsumptionPriceSheet',
84+
'Get-AzConsumptionReservationDetail',
85+
'Get-AzConsumptionReservationSummary',
86+
'Get-AzConsumptionUsageDetail', 'New-AzConsumptionBudget',
87+
'Remove-AzConsumptionBudget', 'Set-AzConsumptionBudget',
88+
'Get-UsageAggregates'
7789

7890
# Variables to export from this module
7991
# VariablesToExport = @()
@@ -96,7 +108,7 @@ PrivateData = @{
96108
PSData = @{
97109

98110
# Tags applied to this module. These help with module discovery in online galleries.
99-
Tags = 'Azure', 'ResourceManager', 'ARM', 'Billing'
111+
Tags = 'Azure', 'ResourceManager', 'ARM', 'Billing', 'Consumption', 'UsageAggregates'
100112

101113
# A URL to the license for this module.
102114
LicenseUri = 'https://aka.ms/azps-license'

src/ResourceManager/Consumption/Commands.Consumption.Test/ScenarioTests/TestController.cs renamed to src/ResourceManager/Billing/Commands.Consumption.Test/ScenarioTests/TestController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public void RunPsTestWorkflow(
9999
var callingClassName = callingClassType.Split(new[] { "." }, StringSplitOptions.RemoveEmptyEntries).Last();
100100
_helper.SetupModules(AzureModule.AzureResourceManager,
101101
_helper.RMProfileModule,
102-
_helper.GetRMModulePath("AzureRM.Consumption.psd1"),
102+
_helper.GetRMModulePath("AzureRM.Billing.psd1"),
103103
"ScenarioTests\\" + callingClassName + ".ps1",
104104
"AzureRM.Resources.ps1");
105105
try

src/ResourceManager/Consumption/Commands.Consumption/Commands.Consumption.Netcore.csproj renamed to src/ResourceManager/Billing/Commands.Consumption/Commands.Consumption.Netcore.csproj

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1111
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
1212
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
13-
<OutputPath>$(ProjectDir)..\..\..\Package\$(Configuration)\ResourceManager\AzureResourceManager\Az.Consumption\</OutputPath>
13+
<OutputPath>$(ProjectDir)..\..\..\Package\$(Configuration)\ResourceManager\AzureResourceManager\Az.Billing\</OutputPath>
1414
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1515
<WarningsAsErrors />
1616
</PropertyGroup>
@@ -31,12 +31,6 @@
3131
<PackageReference Include="Microsoft.Azure.Management.Consumption" Version="3.0.2" />
3232
</ItemGroup>
3333

34-
<ItemGroup>
35-
<None Include="Az.Consumption.psd1">
36-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
37-
</None>
38-
</ItemGroup>
39-
4034
<ItemGroup>
4135
<Compile Update="Properties\Resources.Designer.cs">
4236
<DesignTime>true</DesignTime>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void RunPsTest(XunitTracingInterceptor logger, params string[] scripts)
5353
_helper.SetupModules(AzureModule.AzureResourceManager,
5454
"ScenarioTests\\" + callingClassName + ".ps1",
5555
_helper.RMProfileModule,
56-
_helper.GetRMModulePath(@"AzureRM.UsageAggregates.psd1"));
56+
_helper.GetRMModulePath(@"AzureRM.Billing.psd1"));
5757

5858
_helper.RunPowerShellTest(scripts);
5959
}
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1111
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
1212
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
13-
<OutputPath>$(ProjectDir)..\..\..\Package\$(Configuration)\ResourceManager\AzureResourceManager\Az.UsageAggregates\</OutputPath>
13+
<OutputPath>$(ProjectDir)..\..\..\Package\$(Configuration)\ResourceManager\AzureResourceManager\Az.Billing\</OutputPath>
1414
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1515
<WarningsAsErrors />
1616
</PropertyGroup>
@@ -31,12 +31,6 @@
3131
<PackageReference Include="Microsoft.Azure.Commerce.UsageAggregates" Version="1.5.3" />
3232
</ItemGroup>
3333

34-
<ItemGroup>
35-
<None Include="Az.UsageAggregates.psd1">
36-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
37-
</None>
38-
</ItemGroup>
39-
4034
<ItemGroup>
4135
<Compile Update="Properties\Resources.Designer.cs">
4236
<DesignTime>true</DesignTime>

src/ResourceManager/Consumption/Commands.Consumption/Az.Consumption.psd1

Lines changed: 0 additions & 137 deletions
This file was deleted.

src/ResourceManager/Consumption/Commands.Consumption/ChangeLog.md

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)