From 0e28a0dae95d891a7e742f7b0882dd51ac45bde8 Mon Sep 17 00:00:00 2001 From: Matt Westphal Date: Mon, 15 Jun 2015 15:42:12 -0700 Subject: [PATCH 01/40] added project shell --- src/AzurePowershell.sln | 6 ++ .../Commands.UsageAggregates.csproj | 61 +++++++++++++++++++ .../Properties/AssemblyInfo.cs | 42 +++++++++++++ 3 files changed, 109 insertions(+) create mode 100644 src/ResourceManager/Commerce/Commands.UsageAggregates/Commands.UsageAggregates.csproj create mode 100644 src/ResourceManager/Commerce/Commands.UsageAggregates/Properties/AssemblyInfo.cs diff --git a/src/AzurePowershell.sln b/src/AzurePowershell.sln index 3d9784916d2f..28ad27f1f934 100644 --- a/src/AzurePowershell.sln +++ b/src/AzurePowershell.sln @@ -218,6 +218,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.OperationalInsight EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.OperationalInsights.Test", "ResourceManager\OperationalInsights\Commands.OperationalInsights.Test\Commands.OperationalInsights.Test.csproj", "{11387E0A-4DB6-49B8-BDBC-EE020D85D10F}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.UsageAggregates", "ResourceManager\Commerce\Commands.UsageAggregates\Commands.UsageAggregates.csproj", "{1A131D3A-EAC4-420C-A1C0-5490ED68EF67}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -536,6 +538,10 @@ Global {11387E0A-4DB6-49B8-BDBC-EE020D85D10F}.Debug|Any CPU.Build.0 = Debug|Any CPU {11387E0A-4DB6-49B8-BDBC-EE020D85D10F}.Release|Any CPU.ActiveCfg = Release|Any CPU {11387E0A-4DB6-49B8-BDBC-EE020D85D10F}.Release|Any CPU.Build.0 = Release|Any CPU + {1A131D3A-EAC4-420C-A1C0-5490ED68EF67}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1A131D3A-EAC4-420C-A1C0-5490ED68EF67}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1A131D3A-EAC4-420C-A1C0-5490ED68EF67}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1A131D3A-EAC4-420C-A1C0-5490ED68EF67}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates/Commands.UsageAggregates.csproj b/src/ResourceManager/Commerce/Commands.UsageAggregates/Commands.UsageAggregates.csproj new file mode 100644 index 000000000000..cbaa96527487 --- /dev/null +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates/Commands.UsageAggregates.csproj @@ -0,0 +1,61 @@ + + + + + Debug + AnyCPU + {1A131D3A-EAC4-420C-A1C0-5490ED68EF67} + Library + Properties + Microsoft.Azure.Commands.UsageAggregates + Microsoft.Azure.Commands.UsageAggregates + v4.5 + 512 + ..\..\..\ + true + /assemblyCompareMode:StrongNameIgnoringVersion + + + true + full + false + ..\..\..\Package\Debug\ResourceManager\AzureResourceManager\UsageAggregates + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + ..\..\..\Package\Release\ResourceManager\AzureResourceManager\UsageAggregates + TRACE + prompt + 4 + + + + + + + + + + + + + + + + {5ee72c53-1720-4309-b54b-5fb79703195f} + Commands.Common + + + + + + + This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + \ No newline at end of file diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates/Properties/AssemblyInfo.cs b/src/ResourceManager/Commerce/Commands.UsageAggregates/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..942b2b547188 --- /dev/null +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates/Properties/AssemblyInfo.cs @@ -0,0 +1,42 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Microsoft Azure Powershell - UsageAggregates")] +[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)] +[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)] +[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)] + + +[assembly: ComVisible(false)] +[assembly: CLSCompliant(false)] + +[assembly: Guid("4fc77441-aa7b-4539-9e0c-e716797751a5")] + +[assembly: AssemblyVersion(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyVersion)] +[assembly: AssemblyFileVersion(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyFileVersion)] +#if SIGN +[assembly: InternalsVisibleTo("Microsoft.Azure.Commands.ResourceManager.Automation.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] +#else +[assembly: InternalsVisibleTo("Microsoft.Azure.Commands.ResourceManager.Automation.Test")] +#endif + + From bc68a156190ab9dc438e0012edfeb9ae62234830 Mon Sep 17 00:00:00 2001 From: Matt Westphal Date: Mon, 15 Jun 2015 16:00:59 -0700 Subject: [PATCH 02/40] added test project --- src/AzurePowershell.sln | 7 +++ .../Commands.UsageAggregates.Test.csproj | 62 +++++++++++++++++++ .../Properties/AssemblyInfo.cs | 35 +++++++++++ 3 files changed, 104 insertions(+) create mode 100644 src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj create mode 100644 src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Properties/AssemblyInfo.cs diff --git a/src/AzurePowershell.sln b/src/AzurePowershell.sln index 28ad27f1f934..ddb9724df823 100644 --- a/src/AzurePowershell.sln +++ b/src/AzurePowershell.sln @@ -220,6 +220,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.OperationalInsight EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.UsageAggregates", "ResourceManager\Commerce\Commands.UsageAggregates\Commands.UsageAggregates.csproj", "{1A131D3A-EAC4-420C-A1C0-5490ED68EF67}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.UsageAggregates.Test", "ResourceManager\Commerce\Commands.UsageAggregates.Test\Commands.UsageAggregates.Test.csproj", "{F220C306-29A3-4511-8518-A58A55C60D07}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -542,6 +544,10 @@ Global {1A131D3A-EAC4-420C-A1C0-5490ED68EF67}.Debug|Any CPU.Build.0 = Debug|Any CPU {1A131D3A-EAC4-420C-A1C0-5490ED68EF67}.Release|Any CPU.ActiveCfg = Release|Any CPU {1A131D3A-EAC4-420C-A1C0-5490ED68EF67}.Release|Any CPU.Build.0 = Release|Any CPU + {F220C306-29A3-4511-8518-A58A55C60D07}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F220C306-29A3-4511-8518-A58A55C60D07}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F220C306-29A3-4511-8518-A58A55C60D07}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F220C306-29A3-4511-8518-A58A55C60D07}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -585,5 +591,6 @@ Global {BEC9ECE9-A3D6-4B24-A682-1FA890647D9D} = {95C16AED-FD57-42A0-86C3-2CF4300A4817} {7D1D3B56-4EB4-4819-86FD-43330DED8EE7} = {95C16AED-FD57-42A0-86C3-2CF4300A4817} {11387E0A-4DB6-49B8-BDBC-EE020D85D10F} = {95C16AED-FD57-42A0-86C3-2CF4300A4817} + {F220C306-29A3-4511-8518-A58A55C60D07} = {95C16AED-FD57-42A0-86C3-2CF4300A4817} EndGlobalSection EndGlobal diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj new file mode 100644 index 000000000000..c678729e0f25 --- /dev/null +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj @@ -0,0 +1,62 @@ + + + + + Debug + AnyCPU + {F220C306-29A3-4511-8518-A58A55C60D07} + Library + Properties + Commands.UsageAggregates.Test + Commands.UsageAggregates.Test + v4.5 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + {3b48a77b-5956-4a62-9081-92ba04b02b27} + Commands.Common.Test + + + {5ee72c53-1720-4309-b54b-5fb79703195f} + Commands.Common + + + + + \ No newline at end of file diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..c7736f381777 --- /dev/null +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Properties/AssemblyInfo.cs @@ -0,0 +1,35 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System.Reflection; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Microsoft.Azure.Commands.UsageAggregates.Test")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Microsoft.Azure.Commands.UsageAggregates.Test")] +[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +[assembly: ComVisible(false)] + +[assembly: Guid("e1252a92-e377-4295-ab57-7e06fb319d5e")] + +[assembly: AssemblyVersion(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyVersion)] +[assembly: AssemblyFileVersion(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyFileVersion)] From 0f7274e218abeba7b5773ea55f850544176319d6 Mon Sep 17 00:00:00 2001 From: Matt Westphal Date: Mon, 15 Jun 2015 16:54:06 -0700 Subject: [PATCH 03/40] adding appropriate nuget packages --- .../Commands.UsageAggregates.csproj | 57 +++++++++++++++++++ .../GetUsageAggregatesCommand.cs | 25 ++++++++ .../Commands.UsageAggregates/packages.config | 13 +++++ 3 files changed, 95 insertions(+) create mode 100644 src/ResourceManager/Commerce/Commands.UsageAggregates/GetUsageAggregatesCommand.cs create mode 100644 src/ResourceManager/Commerce/Commands.UsageAggregates/packages.config diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates/Commands.UsageAggregates.csproj b/src/ResourceManager/Commerce/Commands.UsageAggregates/Commands.UsageAggregates.csproj index cbaa96527487..e2e1f3e099d1 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates/Commands.UsageAggregates.csproj +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates/Commands.UsageAggregates.csproj @@ -33,8 +33,55 @@ 4 + + ..\..\..\packages\Hyak.Common.1.0.2\lib\net45\Hyak.Common.dll + True + + + ..\..\..\packages\Microsoft.Azure.Commerce.UsageAggregates.1.0.0-preview\lib\net40\Microsoft.Azure.Commerce.UsageAggregates.dll + True + + + ..\..\..\packages\Microsoft.Azure.Common.2.0.4\lib\net45\Microsoft.Azure.Common.dll + True + + + ..\..\..\packages\Microsoft.Azure.Common.2.0.4\lib\net45\Microsoft.Azure.Common.NetFramework.dll + True + + + ..\..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.dll + True + + + ..\..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.dll + True + + + ..\..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll + True + + + ..\..\..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll + True + + + ..\..\..\packages\System.Management.Automation.6.1.7601.17515\lib\net45\System.Management.Automation.dll + True + + + + + ..\..\..\packages\Microsoft.Net.Http.2.2.22\lib\net45\System.Net.Http.Extensions.dll + True + + + ..\..\..\packages\Microsoft.Net.Http.2.2.22\lib\net45\System.Net.Http.Primitives.dll + True + + @@ -42,6 +89,7 @@ + @@ -50,6 +98,10 @@ Commands.Common + + + + @@ -58,4 +110,9 @@ + + + + + \ No newline at end of file diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates/GetUsageAggregatesCommand.cs b/src/ResourceManager/Commerce/Commands.UsageAggregates/GetUsageAggregatesCommand.cs new file mode 100644 index 000000000000..59933eb26d2b --- /dev/null +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates/GetUsageAggregatesCommand.cs @@ -0,0 +1,25 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + + +namespace Microsoft.Azure.Commands.UsageAggregates +{ + using System.Collections.Generic; + using System.Management.Automation; + + [Cmdlet(VerbsCommon.Get, "UsageAggregates", DefaultParameterSetName = BaseParameterSetName), OutputType(typeof(List))] + public class GetUsageAggregatesCommand + { + } +} diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates/packages.config b/src/ResourceManager/Commerce/Commands.UsageAggregates/packages.config new file mode 100644 index 000000000000..07440aa6501a --- /dev/null +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates/packages.config @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file From db2f4e62a4ce4c11fe85876558d3682d2f014b45 Mon Sep 17 00:00:00 2001 From: Matt Westphal Date: Mon, 15 Jun 2015 18:06:40 -0700 Subject: [PATCH 04/40] Added enough code to build with the commerce package --- .../Commands.UsageAggregates.Test.csproj | 19 +++++-- .../packages.config | 7 +++ .../Commands.UsageAggregates.csproj | 24 ++++++--- .../GetUsageAggregatesCommand.cs | 51 +++++++++++++++++-- .../Commands.UsageAggregates/packages.config | 7 +-- 5 files changed, 90 insertions(+), 18 deletions(-) create mode 100644 src/ResourceManager/Commerce/Commands.UsageAggregates.Test/packages.config diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj index c678729e0f25..7aaa234cd19b 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj @@ -11,6 +11,9 @@ Commands.UsageAggregates.Test v4.5 512 + ..\..\..\ + true + e1db6d57 true @@ -42,16 +45,24 @@ - - {3b48a77b-5956-4a62-9081-92ba04b02b27} - Commands.Common.Test - {5ee72c53-1720-4309-b54b-5fb79703195f} Commands.Common + + + + + + + This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + + \ No newline at end of file diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs index a0d70b1e3d7c..aa17d804f497 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs @@ -12,11 +12,19 @@ // limitations under the License. // ---------------------------------------------------------------------------------- +using Microsoft.Azure.Commands.Resources.Test.ScenarioTests; +using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests { public class UsageAggregatesTests { + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestGetNonExistingResourceGroup() + { + ResourcesController.NewInstance.RunPsTest("Test-GetUsageAggregatesWithDefaultParameters"); + } } } diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.ps1 b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.ps1 new file mode 100644 index 000000000000..4838d7d62a60 --- /dev/null +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.ps1 @@ -0,0 +1,30 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.SYNOPSIS +Tests retrieving some usage data +#> +function Test-GetUsageAggregatesWithDefaultParameters() +{ + try + { + $result = Get-UsageAggregates -reportedStartDate = "5/1/2015" -reportedEndDate = "5/2/2015" + Write-Debug $result + } + catch + { + + } +} \ No newline at end of file From 526ee382faae2c4671f1ccf3c9cbf92ff9fb0d91 Mon Sep 17 00:00:00 2001 From: Matt Westphal Date: Tue, 16 Jun 2015 16:45:38 -0700 Subject: [PATCH 07/40] everything compiles, now to get the test to work --- .../Commands.UsageAggregates.Test.csproj | 85 +++++++++++++------ .../Properties/AssemblyInfo.cs | 6 +- .../ScenarioTests/UsageAggregatesTestBase.cs | 62 ++++++++++++++ .../ScenarioTests/UsageAggregatesTests.cs | 15 ++-- ...tUsageAggregatesWithDefaultParameters.json | 3 + .../packages.config | 15 ++-- 6 files changed, 144 insertions(+), 42 deletions(-) create mode 100644 src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTestBase.cs create mode 100644 src/ResourceManager/Commerce/Commands.UsageAggregates.Test/SessionRecords/Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests.UsageAggregatesTests/GetUsageAggregatesWithDefaultParameters.json diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj index c15aa481db69..1de96ee336d0 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj @@ -1,6 +1,5 @@  - Debug @@ -14,7 +13,7 @@ 512 ..\..\..\ true - 94503ee5 + b0a291ee true @@ -34,54 +33,89 @@ 4 + + ..\..\..\packages\Hyak.Common.1.0.2\lib\net45\Hyak.Common.dll + True + + + ..\..\..\packages\Microsoft.Azure.Commerce.UsageAggregates.1.0.0-preview\lib\net40\Microsoft.Azure.Commerce.UsageAggregates.dll + True + + + ..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.dll + True + + + ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.0.26-preview\lib\net45\Microsoft.Azure.Common.Authentication.dll + True + + + ..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll + True + + + ..\..\..\packages\Microsoft.Azure.Test.Framework.1.0.5571.32271-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll + True + + + ..\..\..\packages\Microsoft.Azure.Test.HttpRecorder.1.0.5513.27084-prerelease\lib\net45\Microsoft.Azure.Test.HttpRecorder.dll + True + + + ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.14.201151115\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll + True + + + ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.14.201151115\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms.dll + True + + + ..\..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ReferenceAssemblies\v4.0\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll + + + ..\..\..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll + True + + + ..\..\..\packages\System.Management.Automation_PowerShell_3.0.6.3.9600.17400\lib\net40\System.Management.Automation.dll + True + - - ..\..\..\packages\xunit.abstractions.2.0.0\lib\net35\xunit.abstractions.dll - True - - - ..\..\..\packages\xunit.assert.2.0.0\lib\portable-net45+win+wpa81+wp80+monotouch+monoandroid+Xamarin.iOS\xunit.assert.dll - True - - - ..\..\..\packages\xunit.extensibility.core.2.0.0\lib\portable-net45+win+wpa81+wp80+monotouch+monoandroid+Xamarin.iOS\xunit.core.dll - True - + - - {5ee72c53-1720-4309-b54b-5fb79703195f} - Commands.Common - - {c1bda476-a5cc-4394-914d-48b0ec31a710} + {C1BDA476-A5CC-4394-914D-48B0EC31A710} Commands.ScenarioTests.Common - - {4C2FE49A-09E1-4979-AD46-CD64FD04C8F7} - Commands.Resources.Test - {1a131d3a-eac4-420c-a1c0-5490ed68ef67} Commands.UsageAggregates + PreserveNewest + + PreserveNewest + + + + @@ -90,13 +124,12 @@ This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - xcopy "$(SolutionDir)Package\$(ConfigurationName)\*.*" $(TargetDir) /Y /E + + \ No newline at end of file diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Properties/AssemblyInfo.cs index c7736f381777..0ca05ff08c1d 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Properties/AssemblyInfo.cs @@ -23,7 +23,7 @@ [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Microsoft.Azure.Commands.UsageAggregates.Test")] -[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)] +[assembly: AssemblyCopyright("Copyright © Microsoft")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -31,5 +31,5 @@ [assembly: Guid("e1252a92-e377-4295-ab57-7e06fb319d5e")] -[assembly: AssemblyVersion(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyVersion)] -[assembly: AssemblyFileVersion(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyFileVersion)] +[assembly: AssemblyVersion("0.1.0")] +[assembly: AssemblyFileVersion("0.1.0")] \ No newline at end of file diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTestBase.cs b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTestBase.cs new file mode 100644 index 000000000000..78b32c2d01d6 --- /dev/null +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTestBase.cs @@ -0,0 +1,62 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using Microsoft.Azure.Commerce.UsageAggregates; +using Microsoft.Azure.Common.Authentication; +using Microsoft.Azure.Test; +using Microsoft.WindowsAzure.Commands.ScenarioTest; + +namespace Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests +{ + public abstract class UsageAggregatesTestBase : IDisposable + { + private EnvironmentSetupHelper helper; + + protected UsageAggregatesTestBase() + { + helper = new EnvironmentSetupHelper(); + } + + protected void SetupManagementClients() + { + var usageManagementClient = GetUsageAggregatesManagementClient(); + helper.SetupManagementClients(usageManagementClient); + } + + protected void RunPowerShellTest(params string[] scripts) + { + using (UndoContext context = UndoContext.Current) + { + context.Start(TestUtilities.GetCallingClass(2), TestUtilities.GetCurrentMethodName(2)); + + SetupManagementClients(); + + helper.SetupEnvironment(AzureModule.AzureResourceManager); + helper.SetupModules(AzureModule.AzureResourceManager, "ScenarioTests\\" + this.GetType().Name + ".ps1"); + + helper.RunPowerShellTest(scripts); + } + } + + protected UsageAggregationManagementClient GetUsageAggregatesManagementClient() + { + return TestBase.GetServiceClient(new CSMTestEnvironmentFactory()); + } + + public void Dispose() + { + } + } +} diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs index aa17d804f497..7f1e06986286 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs @@ -12,19 +12,18 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.Resources.Test.ScenarioTests; -using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Xunit; +using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests { - public class UsageAggregatesTests + [TestClass] + public class UsageAggregatesTests : UsageAggregatesTestBase { - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestGetNonExistingResourceGroup() + + [TestMethod] + public void GetUsageAggregatesWithDefaultParameters() { - ResourcesController.NewInstance.RunPsTest("Test-GetUsageAggregatesWithDefaultParameters"); + RunPowerShellTest("Test-GetUsageAggregatesWithDefaultParameters"); } } } diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/SessionRecords/Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests.UsageAggregatesTests/GetUsageAggregatesWithDefaultParameters.json b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/SessionRecords/Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests.UsageAggregatesTests/GetUsageAggregatesWithDefaultParameters.json new file mode 100644 index 000000000000..d177980a92be --- /dev/null +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/SessionRecords/Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests.UsageAggregatesTests/GetUsageAggregatesWithDefaultParameters.json @@ -0,0 +1,3 @@ +{ + +} diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/packages.config b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/packages.config index 588958a7fa87..a205eae65f36 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/packages.config +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/packages.config @@ -1,12 +1,17 @@  + + + + + + + + - - - - - + + \ No newline at end of file From 386d598883b49a3990b9b6d566218d507fd3d2e5 Mon Sep 17 00:00:00 2001 From: Matt Westphal Date: Tue, 16 Jun 2015 17:58:06 -0700 Subject: [PATCH 08/40] got to compile with xUnit and show the tests --- .../Commands.UsageAggregates.Test.csproj | 16 ++++++++++++---- .../ScenarioTests/UsageAggregatesTests.cs | 6 +++--- .../packages.config | 3 +++ 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj index 1de96ee336d0..f1962786a998 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj @@ -1,5 +1,7 @@  + + Debug @@ -13,7 +15,7 @@ 512 ..\..\..\ true - b0a291ee + b6536f44 true @@ -69,9 +71,6 @@ ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.14.201151115\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms.dll True - - ..\..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ReferenceAssemblies\v4.0\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll - ..\..\..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll True @@ -88,6 +87,14 @@ + + False + ..\..\..\packages\xunit.1.9.2\lib\net20\xunit.dll + + + False + ..\..\..\packages\xunit.extensions.1.9.2\lib\net20\xunit.extensions.dll + @@ -126,6 +133,7 @@ + diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs index 7f1e06986286..963669918e83 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs @@ -12,15 +12,15 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.VisualStudio.TestTools.UnitTesting; +using Xunit; namespace Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests { - [TestClass] + public class UsageAggregatesTests : UsageAggregatesTestBase { - [TestMethod] + [Fact] public void GetUsageAggregatesWithDefaultParameters() { RunPowerShellTest("Test-GetUsageAggregatesWithDefaultParameters"); diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/packages.config b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/packages.config index a205eae65f36..122cfa29d2f9 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/packages.config +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/packages.config @@ -14,4 +14,7 @@ + + + \ No newline at end of file From eb4f8d20716373bb8ef758297f5dee8bfed9ced5 Mon Sep 17 00:00:00 2001 From: Matt Westphal Date: Tue, 16 Jun 2015 18:56:18 -0700 Subject: [PATCH 09/40] small mods --- .../Commands.UsageAggregates.Test.csproj | 4 ++++ .../Commands.UsageAggregates/GetUsageAggregatesCommand.cs | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj index f1962786a998..c3c132319372 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj @@ -102,6 +102,10 @@ + + {3b48a77b-5956-4a62-9081-92ba04b02b27} + Commands.Common.Test + {C1BDA476-A5CC-4394-914D-48B0EC31A710} Commands.ScenarioTests.Common diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates/GetUsageAggregatesCommand.cs b/src/ResourceManager/Commerce/Commands.UsageAggregates/GetUsageAggregatesCommand.cs index ef6326d9646a..ba3924a3577d 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates/GetUsageAggregatesCommand.cs +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates/GetUsageAggregatesCommand.cs @@ -27,10 +27,10 @@ namespace Microsoft.Azure.Commands.UsageAggregates [Cmdlet(VerbsCommon.Get, "UsageAggregates"), OutputType(typeof(UsageAggregationGetResponse))] public class GetUsageAggregatesCommand : AzurePSCmdlet { - [Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "The start of the time range to retrieve data for.")] + [Parameter(Mandatory = true, HelpMessage = "The start of the time range to retrieve data for.")] public DateTime ReportedStartTime { get; set; } - [Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "The end of the time range to retrieve data for.")] + [Parameter(Mandatory = true, HelpMessage = "The end of the time range to retrieve data for.")] public DateTime ReportedEndTime { get; set; } private AggregationGranularity aggregationGranularity = AggregationGranularity.Daily; From d8d9326ad4b833dec456769d4b346db7d7fc7b46 Mon Sep 17 00:00:00 2001 From: Matt Westphal Date: Wed, 17 Jun 2015 11:37:38 -0700 Subject: [PATCH 10/40] minor updates, skipping the tests for now --- .../Commands.UsageAggregates.Test.csproj | 7 +++---- .../ScenarioTests/UsageAggregatesTests.cs | 2 +- .../GetUsageAggregatesWithDefaultParameters.json | 3 --- 3 files changed, 4 insertions(+), 8 deletions(-) delete mode 100644 src/ResourceManager/Commerce/Commands.UsageAggregates.Test/SessionRecords/Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests.UsageAggregatesTests/GetUsageAggregatesWithDefaultParameters.json diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj index c3c132319372..758b44d458bc 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj @@ -121,14 +121,13 @@ PreserveNewest - - PreserveNewest - - + + + diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs index 963669918e83..15800f45d96d 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests public class UsageAggregatesTests : UsageAggregatesTestBase { - [Fact] + [Fact (Skip="Not enough information from the documentation to get past all the runtime errors for the test framework")] public void GetUsageAggregatesWithDefaultParameters() { RunPowerShellTest("Test-GetUsageAggregatesWithDefaultParameters"); diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/SessionRecords/Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests.UsageAggregatesTests/GetUsageAggregatesWithDefaultParameters.json b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/SessionRecords/Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests.UsageAggregatesTests/GetUsageAggregatesWithDefaultParameters.json deleted file mode 100644 index d177980a92be..000000000000 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/SessionRecords/Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests.UsageAggregatesTests/GetUsageAggregatesWithDefaultParameters.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - -} From 2e1f65b3a5a850d479f99755df3af179a2cfb472 Mon Sep 17 00:00:00 2001 From: Matt Westphal Date: Wed, 17 Jun 2015 12:58:28 -0700 Subject: [PATCH 11/40] re adding tests --- .../ScenarioTests/UsageAggregatesTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs index 15800f45d96d..d82e3ed7c216 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests public class UsageAggregatesTests : UsageAggregatesTestBase { - [Fact (Skip="Not enough information from the documentation to get past all the runtime errors for the test framework")] + [Fact ] public void GetUsageAggregatesWithDefaultParameters() { RunPowerShellTest("Test-GetUsageAggregatesWithDefaultParameters"); From bc0c76a185c3c973a5b8ddda5151a32a43b5c62e Mon Sep 17 00:00:00 2001 From: Matt Westphal Date: Wed, 17 Jun 2015 14:06:42 -0700 Subject: [PATCH 12/40] trying out different way to call the powershell --- .../Commands.UsageAggregates.Test.csproj | 1 + .../Common/UsageAggregatesTestController.cs | 122 ++++++++++++++++++ .../ScenarioTests/UsageAggregatesTests.cs | 10 +- 3 files changed, 129 insertions(+), 4 deletions(-) create mode 100644 src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Common/UsageAggregatesTestController.cs diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj index 758b44d458bc..c81b889feb8c 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj @@ -97,6 +97,7 @@ + diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Common/UsageAggregatesTestController.cs b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Common/UsageAggregatesTestController.cs new file mode 100644 index 000000000000..5db3b5e4d830 --- /dev/null +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Common/UsageAggregatesTestController.cs @@ -0,0 +1,122 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Microsoft.Azure.Test; +using System; +using System.Linq; +using Microsoft.Azure.Commerce.UsageAggregates; +using Microsoft.Azure.Common.Authentication; + +namespace Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests +{ + public sealed class UsageAggregatesTestController + { + private CSMTestEnvironmentFactory csmTestFactory; + private readonly EnvironmentSetupHelper helper; + + public static UsageAggregatesTestController NewInstance + { + get + { + return new UsageAggregatesTestController(); + } + } + + public UsageAggregatesTestController() + { + helper = new EnvironmentSetupHelper(); + } + + public void RunPsTest(params string[] scripts) + { + var callingClassType = TestUtilities.GetCallingClass(2); + var mockName = TestUtilities.GetCurrentMethodName(2); + + RunPsTestWorkflow( + () => scripts, + // no custom initializer + null, + // no custom cleanup + null, + callingClassType, + mockName); + } + + public void RunPsTestWorkflow( + Func scriptBuilder, + Action initialize, + Action cleanup, + string callingClassType, + string mockName) + { + using (UndoContext context = UndoContext.Current) + { + context.Start(callingClassType, mockName); + + csmTestFactory = new CSMTestEnvironmentFactory(); + + if(initialize != null) + { + initialize(csmTestFactory); + } + + SetupManagementClients(); + + helper.SetupEnvironment(AzureModule.AzureResourceManager); + + var callingClassName = callingClassType + .Split(new[] { "." }, StringSplitOptions.RemoveEmptyEntries) + .Last(); + helper.SetupModules( + AzureModule.AzureResourceManager, + "ScenarioTests\\" + callingClassName + ".ps1"); + + try + { + if (scriptBuilder != null) + { + var psScripts = scriptBuilder(); + + if (psScripts != null) + { + helper.RunPowerShellTest(psScripts); + } + } + } + finally + { + if(cleanup !=null) + { + cleanup(); + } + } + } + } + + private void SetupManagementClients() + { + var usageManagementClient = GetUsageAggregatesManagementClient(); + + helper.SetupManagementClients(usageManagementClient); + } + + private UsageAggregationManagementClient GetUsageAggregatesManagementClient() + { + return TestBase.GetServiceClient(new CSMTestEnvironmentFactory()); + } + + + } +} diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs index d82e3ed7c216..27c2a3c4c503 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs @@ -12,18 +12,20 @@ // limitations under the License. // ---------------------------------------------------------------------------------- +using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests { - public class UsageAggregatesTests : UsageAggregatesTestBase + public class UsageAggregatesTests { - [Fact ] - public void GetUsageAggregatesWithDefaultParameters() + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestGetUsageAggregatesWithDefaultParameters() { - RunPowerShellTest("Test-GetUsageAggregatesWithDefaultParameters"); + UsageAggregatesTestController.NewInstance.RunPsTest("Test-GetUsageAggregatesWithDefaultParameters"); } } } From a592a9c0f887b3ec8d465157aa44d485b323b046 Mon Sep 17 00:00:00 2001 From: caln-microsoft Date: Wed, 17 Jun 2015 20:39:58 -0700 Subject: [PATCH 13/40] Adding GetRestorePoints cmdlet --- .../Commands.Sql.Test.csproj | 6 +- .../ScenarioTests/DatabaseBackupTests.cs | 37 ++++++ .../ScenarioTests/DatabaseBackupTests.ps1 | 105 ++++++++++++++++++ .../AzureSqlDatabaseBackupAttributeTests.cs | 39 +++++++ .../Sql/Commands.Sql.Test/packages.config | 2 +- .../Sql/Commands.Sql/Commands.Sql.csproj | 11 +- .../Sql/Commands.Sql/packages.config | 2 +- 7 files changed, 194 insertions(+), 8 deletions(-) create mode 100644 src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/DatabaseBackupTests.cs create mode 100644 src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/DatabaseBackupTests.ps1 create mode 100644 src/ResourceManager/Sql/Commands.Sql.Test/UnitTests/AzureSqlDatabaseBackupAttributeTests.cs diff --git a/src/ResourceManager/Sql/Commands.Sql.Test/Commands.Sql.Test.csproj b/src/ResourceManager/Sql/Commands.Sql.Test/Commands.Sql.Test.csproj index 692a62eb92dd..0af3d8662e60 100644 --- a/src/ResourceManager/Sql/Commands.Sql.Test/Commands.Sql.Test.csproj +++ b/src/ResourceManager/Sql/Commands.Sql.Test/Commands.Sql.Test.csproj @@ -47,6 +47,9 @@ ..\..\..\packages\Hyak.Common.1.0.2\lib\net45\Hyak.Common.dll + + ..\..\..\packages\Microsoft.Azure.Management.Sql.0.29.0-prerelease\lib\net40\Microsoft.Azure.Management.Sql.dll + ..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.dll @@ -64,9 +67,6 @@ False ..\..\..\packages\Microsoft.Azure.Management.Authorization.0.18.2-preview\lib\net40\Microsoft.Azure.Management.Authorization.dll - - ..\..\..\packages\Microsoft.Azure.Management.Sql.0.28.0-prerelease\lib\net40\Microsoft.Azure.Management.Sql.dll - False ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.0-preview\lib\net40\Microsoft.Azure.ResourceManager.dll diff --git a/src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/DatabaseBackupTests.cs b/src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/DatabaseBackupTests.cs new file mode 100644 index 000000000000..db7368753fa3 --- /dev/null +++ b/src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/DatabaseBackupTests.cs @@ -0,0 +1,37 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using Microsoft.Azure.Commands.ScenarioTest.SqlTests; +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Xunit; + +namespace Microsoft.Azure.Commands.Sql.Test.ScenarioTests +{ + public class DatabaseBackupTests : SqlTestsBase + { + [Fact] + [Trait(Category.Sql, Category.CheckIn)] + public void TestDatabasePauseResume() + { + RunPowerShellTest("Test-ListDatabaseRestorePoints"); + } + + [Fact] + [Trait(Category.Sql, Category.CheckIn)] + public void TestDatabasePauseResumePiped() + { + RunPowerShellTest("Test-ListDatabaseRestorePointsPiped"); + } + } +} diff --git a/src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/DatabaseBackupTests.ps1 b/src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/DatabaseBackupTests.ps1 new file mode 100644 index 000000000000..317d03b59c48 --- /dev/null +++ b/src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/DatabaseBackupTests.ps1 @@ -0,0 +1,105 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# + .SYNOPSIS + Test getting restore points from databases. +#> +function Test-ListDatabaseRestorePoints +{ + # Setup + $location = "Japan East" + $serverVersion = "12.0"; + $rg = Create-ResourceGroupForTest + + try + { + $server = Create-ServerForTest $rg $serverVersion $location + + # Create data warehouse database with all parameters. + $databaseName = Get-DatabaseName + $dwdb = New-AzureSqlDatabase -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $databaseName ` + -Edition DataWarehouse -RequestedServiceObjectiveName DW100 + + $databaseName = Get-DatabaseName + $standarddb = New-AzureSqlDatabase -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $databaseName ` + -Edition Standard -RequestedServiceObjectiveName S0 + + # Get restore points from data warehouse database. + $restorePoints = Get-AzureSqlDatabaseRestorePoints -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $dwdb.DatabaseName + $restorePoint = $restorePoints[0] + Assert-AreEqual $restorePoint.RestorePointType Discrete + Assert-NotNull $restorePoint.RestorePointCreationDate + Assert-Null $restorePoint.EarliestRestoreDate + Assert-AreEqual $restorePoint.SizeBytes 0 + + # Get restore points from standard database. + $restorePoints = Resume-AzureSqlDatabase -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $standarddb.DatabaseName + $restorePoint = $restorePoints[0] + Assert-AreEqual $restorePoint.RestorePointType Continuous + Assert-Null $restorePoint.RestorePointCreationDate + Assert-NotNull $restorePoint.EarliestRestoreDate + Assert-AreEqual $restorePoint.SizeBytes 0 + } + finally + { + Remove-ResourceGroupForTest $rg + } +} + +<# + .SYNOPSIS + Test getting restore points from databases via piped cmdlets. +#> +function Test-ListDatabaseRestorePointsPiped +{ + # Setup + $location = "Japan East" + $serverVersion = "12.0"; + $rg = Create-ResourceGroupForTest + + try + { + $server = Create-ServerForTest $rg $serverVersion $location + + # Create data warehouse database with all parameters. + $databaseName = Get-DatabaseName + $dwdb = New-AzureSqlDatabase -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $databaseName ` + -Edition DataWarehouse -RequestedServiceObjectiveName DW100 + + $databaseName = Get-DatabaseName + $standarddb = New-AzureSqlDatabase -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $databaseName ` + -Edition Standard -RequestedServiceObjectiveName S0 + + # Get restore points from data warehouse database. + $restorePoints = $dwdb | Get-AzureSqlDatabaseRestorePoints + $restorePoint = $restorePoints[0] + Assert-AreEqual $restorePoint.RestorePointType Discrete + Assert-NotNull $restorePoint.RestorePointCreationDate + Assert-Null $restorePoint.EarliestRestoreDate + Assert-AreEqual $restorePoint.SizeBytes 0 + + # Get restore points from standard database. + $restorePoints = $standarddb | Resume-AzureSqlDatabase + $restorePoint = $restorePoints[0] + Assert-AreEqual $restorePoint.RestorePointType Continuous + Assert-Null $restorePoint.RestorePointCreationDate + Assert-NotNull $restorePoint.EarliestRestoreDate + Assert-AreEqual $restorePoint.SizeBytes 0 + } + finally + { + Remove-ResourceGroupForTest $rg + } +} \ No newline at end of file diff --git a/src/ResourceManager/Sql/Commands.Sql.Test/UnitTests/AzureSqlDatabaseBackupAttributeTests.cs b/src/ResourceManager/Sql/Commands.Sql.Test/UnitTests/AzureSqlDatabaseBackupAttributeTests.cs new file mode 100644 index 000000000000..a50727919547 --- /dev/null +++ b/src/ResourceManager/Sql/Commands.Sql.Test/UnitTests/AzureSqlDatabaseBackupAttributeTests.cs @@ -0,0 +1,39 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Management.Automation; + +using Microsoft.Azure.Commands.Sql.Backup.Cmdlet; +using Microsoft.Azure.Commands.Sql.Test.Utilities; +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Xunit; + +namespace Microsoft.Azure.Commands.Sql.Test.UnitTests +{ + public class AzureSqlDatabaseBackupAttributeTests + { + [Fact] + [Trait(Category.Sql, Category.CheckIn)] + public void SuspendAzureSqlDatabaseAttributes() + { + Type type = typeof(GetAzureSqlDatabaseRestorePoints); + UnitTestHelper.CheckCmdletModifiesData(type, supportsShouldProcess: false); + UnitTestHelper.CheckConfirmImpact(type, ConfirmImpact.None); + + UnitTestHelper.CheckCmdletParameterAttributes(type, "ServerName", isMandatory: true, valueFromPipelineByName: true); + UnitTestHelper.CheckCmdletParameterAttributes(type, "DatabaseName", isMandatory: true, valueFromPipelineByName: true); + } + } +} diff --git a/src/ResourceManager/Sql/Commands.Sql.Test/packages.config b/src/ResourceManager/Sql/Commands.Sql.Test/packages.config index c9b295cd7381..ead0e7892672 100644 --- a/src/ResourceManager/Sql/Commands.Sql.Test/packages.config +++ b/src/ResourceManager/Sql/Commands.Sql.Test/packages.config @@ -5,9 +5,9 @@ + - diff --git a/src/ResourceManager/Sql/Commands.Sql/Commands.Sql.csproj b/src/ResourceManager/Sql/Commands.Sql/Commands.Sql.csproj index 5b493a848501..88eb46a6f112 100644 --- a/src/ResourceManager/Sql/Commands.Sql/Commands.Sql.csproj +++ b/src/ResourceManager/Sql/Commands.Sql/Commands.Sql.csproj @@ -51,6 +51,11 @@ false + + + + + @@ -192,6 +197,9 @@ False ..\..\..\packages\Hyak.Common.1.0.2\lib\net45\Hyak.Common.dll + + ..\..\..\packages\Microsoft.Azure.Management.Sql.0.29.0-prerelease\lib\net40\Microsoft.Azure.Management.Sql.dll + False ..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.dll @@ -204,9 +212,6 @@ False ..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll - - ..\..\..\packages\Microsoft.Azure.Management.Sql.0.28.0-prerelease\lib\net40\Microsoft.Azure.Management.Sql.dll - False ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.0-preview\lib\net40\Microsoft.Azure.ResourceManager.dll diff --git a/src/ResourceManager/Sql/Commands.Sql/packages.config b/src/ResourceManager/Sql/Commands.Sql/packages.config index 747449307efa..79b77cf3fd69 100644 --- a/src/ResourceManager/Sql/Commands.Sql/packages.config +++ b/src/ResourceManager/Sql/Commands.Sql/packages.config @@ -5,7 +5,7 @@ - + From ecb546b7f2993d449a49d692c104a792c31ae36d Mon Sep 17 00:00:00 2001 From: caln-microsoft Date: Wed, 17 Jun 2015 21:00:00 -0700 Subject: [PATCH 14/40] Adding backup tests to Commands.Sql.Test.csproj --- .../Sql/Commands.Sql.Test/Commands.Sql.Test.csproj | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ResourceManager/Sql/Commands.Sql.Test/Commands.Sql.Test.csproj b/src/ResourceManager/Sql/Commands.Sql.Test/Commands.Sql.Test.csproj index 0af3d8662e60..8a69fbc290f8 100644 --- a/src/ResourceManager/Sql/Commands.Sql.Test/Commands.Sql.Test.csproj +++ b/src/ResourceManager/Sql/Commands.Sql.Test/Commands.Sql.Test.csproj @@ -150,11 +150,13 @@ Resources.resx + PreserveNewest + PreserveNewest @@ -175,6 +177,7 @@ + From fd1001f3a9d8c5072623022f0e1a34382dd95756 Mon Sep 17 00:00:00 2001 From: caln-microsoft Date: Wed, 17 Jun 2015 21:19:10 -0700 Subject: [PATCH 15/40] Adding backup cmdlet support and Get-SqlAzureDatabaseRestorePoints --- .../Sql/Commands.Sql/Commands.Sql.csproj | 10 +- .../AzureSqlDatabaseRestorePointCmdletBase.cs | 48 ++++++++++ .../GetAzureSqlDatabaseRestorePoints.cs | 68 ++++++++++++++ .../AzureSqlDatabaseRestorePointModel.cs | 67 ++++++++++++++ .../Services/AzureSqlDatabaseBackupAdapter.cs | 92 +++++++++++++++++++ .../AzureSqlDatabaseBackupCommunicator.cs | 88 ++++++++++++++++++ 6 files changed, 368 insertions(+), 5 deletions(-) create mode 100644 src/ResourceManager/Sql/Commands.Sql/Database Backup/Cmdlet/AzureSqlDatabaseRestorePointCmdletBase.cs create mode 100644 src/ResourceManager/Sql/Commands.Sql/Database Backup/Cmdlet/GetAzureSqlDatabaseRestorePoints.cs create mode 100644 src/ResourceManager/Sql/Commands.Sql/Database Backup/Model/AzureSqlDatabaseRestorePointModel.cs create mode 100644 src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupAdapter.cs create mode 100644 src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupCommunicator.cs diff --git a/src/ResourceManager/Sql/Commands.Sql/Commands.Sql.csproj b/src/ResourceManager/Sql/Commands.Sql/Commands.Sql.csproj index 88eb46a6f112..36208f4cf778 100644 --- a/src/ResourceManager/Sql/Commands.Sql/Commands.Sql.csproj +++ b/src/ResourceManager/Sql/Commands.Sql/Commands.Sql.csproj @@ -51,11 +51,11 @@ false - - - - - + + + + + diff --git a/src/ResourceManager/Sql/Commands.Sql/Database Backup/Cmdlet/AzureSqlDatabaseRestorePointCmdletBase.cs b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Cmdlet/AzureSqlDatabaseRestorePointCmdletBase.cs new file mode 100644 index 000000000000..95fc88a4fb7e --- /dev/null +++ b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Cmdlet/AzureSqlDatabaseRestorePointCmdletBase.cs @@ -0,0 +1,48 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System.Collections.Generic; +using System.Management.Automation; +using Microsoft.Azure.Commands.Sql.Backup.Model; +using Microsoft.Azure.Commands.Sql.Backup.Services; +using Microsoft.Azure.Commands.Sql.Common; +using Microsoft.Azure.Commands.Sql.Database.Model; +using Microsoft.Azure.Commands.Sql.Database.Services; + +namespace Microsoft.Azure.Commands.Sql.Backup.Cmdlet +{ + public abstract class AzureSqlDatabaseRestorePointCmdletBase + : AzureSqlCmdletBase, AzureSqlDatabaseBackupAdapter> + { + /// + /// Gets or sets the name of the database server to use. + /// + [Parameter(Mandatory = true, + ValueFromPipelineByPropertyName = true, + Position = 1, + HelpMessage = "The name of the Azure SQL Database Server the database is in.")] + [ValidateNotNullOrEmpty] + public string ServerName { get; set; } + + /// + /// Initializes the adapter + /// + /// + /// + protected override AzureSqlDatabaseBackupAdapter InitModelAdapter(Azure.Common.Authentication.Models.AzureSubscription subscription) + { + return new AzureSqlDatabaseBackupAdapter(Profile, subscription); + } + } +} diff --git a/src/ResourceManager/Sql/Commands.Sql/Database Backup/Cmdlet/GetAzureSqlDatabaseRestorePoints.cs b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Cmdlet/GetAzureSqlDatabaseRestorePoints.cs new file mode 100644 index 000000000000..b141c42f8bd0 --- /dev/null +++ b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Cmdlet/GetAzureSqlDatabaseRestorePoints.cs @@ -0,0 +1,68 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System.Collections.Generic; +using System.Management.Automation; + +using Microsoft.Azure.Commands.Sql.Backup.Model; +using Microsoft.Azure.Commands.Sql.Database.Model; + +namespace Microsoft.Azure.Commands.Sql.Backup.Cmdlet +{ + [Cmdlet(VerbsCommon.Get, "AzureSqlDatabaseRestorePoints", + ConfirmImpact = ConfirmImpact.None)] + public class GetAzureSqlDatabaseRestorePoints : AzureSqlDatabaseRestorePointCmdletBase + { + /// + /// Gets or sets the name of the database to use. + /// + [Parameter(Mandatory = true, + ValueFromPipelineByPropertyName = true, + Position = 2, + HelpMessage = "The name of the Azure SQL Database to retrieve restore points from.")] + [ValidateNotNullOrEmpty] + public string DatabaseName { get; set; } + + /// + /// Get the entities from the service + /// + /// The list of entities + protected override IEnumerable GetEntity() + { + IEnumerable results; + results = ModelAdapter.ListRestorePoints(this.ResourceGroupName, this.ServerName, this.DatabaseName); + return results; + } + + /// + /// No user input to apply to model + /// + /// Model retrieved from service + /// The model that was passed in + protected override IEnumerable ApplyUserInputToModel(IEnumerable model) + { + return model; + } + + /// + /// No changes to persist to server + /// + /// The output of apply user input to model + /// The input entity + protected override IEnumerable PersistChanges(IEnumerable entity) + { + return entity; + } + } +} diff --git a/src/ResourceManager/Sql/Commands.Sql/Database Backup/Model/AzureSqlDatabaseRestorePointModel.cs b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Model/AzureSqlDatabaseRestorePointModel.cs new file mode 100644 index 000000000000..e3ff2f66c220 --- /dev/null +++ b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Model/AzureSqlDatabaseRestorePointModel.cs @@ -0,0 +1,67 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Collections.Generic; + +namespace Microsoft.Azure.Commands.Sql.Backup.Model +{ + /// + /// Represents an Azure Sql Database restore point + /// + public class AzureSqlDatabaseRestorePointModel + { + /// + /// Gets or sets the name of the resource group + /// + public string ResourceGroupName { get; set; } + + /// + /// Gets or sets the name of the server + /// + public string ServerName { get; set; } + + /// + /// Gets or sets the name of the database + /// + public string DatabaseName { get; set; } + + /// + /// Gets or sets the location of the database + /// + public string Location { get; set; } + + /// + /// Gets the restore point type of the Azure SQL Database restore point. Possible values are: DISCRETE and CONTINUOUS. + /// + public string RestorePointType { get; set; } + + /// + /// Earliest restore time. Populated when restorePointType = CONTINUOUS. Null otherwise. + /// + public DateTime? RestorePointCreationDate { get; set; } + + /// + /// Earliest restore time. Populated when restorePointType = DISCRETE. Null otherwise. + /// + public DateTime? EarliestRestoreDate { get; set; } + + /// + /// Backup size in blob storage of the restore point. + /// For discrete restore point, the value is the database snap size; for continuous restore point, the value is the + /// total backup storage usage of the database. + /// + public int SizeBytes { get; set; } + } +} diff --git a/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupAdapter.cs b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupAdapter.cs new file mode 100644 index 000000000000..02a0d7a59539 --- /dev/null +++ b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupAdapter.cs @@ -0,0 +1,92 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; + +using Microsoft.Azure.Commands.Sql.Backup.Model; +using Microsoft.Azure.Commands.Sql.Common; +using Microsoft.Azure.Commands.Sql.Database.Model; +using Microsoft.Azure.Commands.Sql.Database.Services; +using Microsoft.Azure.Commands.Sql.ElasticPool.Services; +using Microsoft.Azure.Commands.Sql.Properties; +using Microsoft.Azure.Commands.Sql.Server.Adapter; +using Microsoft.Azure.Commands.Sql.Services; +using Microsoft.Azure.Common.Authentication.Models; +using Microsoft.Azure.Management.Sql; +using Microsoft.Azure.Management.Sql.Models; + +namespace Microsoft.Azure.Commands.Sql.Backup.Services +{ + /// + /// Adapter for database activation operations + /// + public class AzureSqlDatabaseBackupAdapter + { + /// + /// Gets or sets the AzureSqlDatabaseBackupCommunicator which has all the needed management clients + /// + private AzureSqlDatabaseBackupCommunicator Communicator { get; set; } + + /// + /// Gets or sets the Azure profile + /// + public AzureProfile Profile { get; set; } + + /// + /// Gets or sets the Azure Subscription + /// + private AzureSubscription _subscription { get; set; } + + /// + /// Constructs a database backup adapter + /// + /// The current azure profile + /// The current azure subscription + public AzureSqlDatabaseBackupAdapter(AzureProfile Profile, AzureSubscription subscription) + { + this.Profile = Profile; + this._subscription = subscription; + Communicator = new AzureSqlDatabaseBackupCommunicator(Profile, subscription); + } + + /// + /// Lists the restore points for a given Sql Azure Database. + /// + /// The name of the resource group + /// The name of the Azure SQL Server + /// The name of the Azure SQL database + /// List of restore points + internal IEnumerable ListRestorePoints(string resourceGroup, string serverName, string databaseName) + { + var resp = Communicator.ListRestorePoints(resourceGroup, serverName, databaseName, Util.GenerateTracingId()); + return resp.Select((restorePoint) => + { + return new AzureSqlDatabaseRestorePointModel() + { + ResourceGroupName = resourceGroup, + ServerName = serverName, + DatabaseName = databaseName, + Location = restorePoint.Location, + RestorePointType = restorePoint.Properties.RestorePointType, + RestorePointCreationDate = restorePoint.Properties.RestorePointCreationDate, + EarliestRestoreDate = restorePoint.Properties.EarliestRestoreDate, + SizeBytes = restorePoint.Properties.SizeBytes + }; + }).ToList(); + } + } +} diff --git a/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupCommunicator.cs b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupCommunicator.cs new file mode 100644 index 000000000000..a9d1234961e8 --- /dev/null +++ b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupCommunicator.cs @@ -0,0 +1,88 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Collections.Generic; + +using Microsoft.Azure.Common.Authentication; +using Microsoft.Azure.Common.Authentication.Models; +using Microsoft.Azure.Management.Resources; +using Microsoft.Azure.Management.Sql; +using Microsoft.Azure.Management.Sql.Models; +using Microsoft.Azure.Commands.Sql.Common; +using Microsoft.WindowsAzure.Management.Storage; + +namespace Microsoft.Azure.Commands.Sql.Backup.Services +{ + /// + /// This class is responsible for all the REST communication with the database activation REST endpoints. + /// + public class AzureSqlDatabaseBackupCommunicator + { + /// + /// The Sql client to be used by this end points communicator + /// + private static SqlManagementClient SqlClient { get; set; } + + /// + /// Gets or set the Azure subscription + /// + private static AzureSubscription Subscription { get; set; } + + /// + /// Gets or sets the Azure profile + /// + public AzureProfile Profile { get; set; } + + /// + /// Creates a communicator for Azure Sql Databases + /// + /// + /// + public AzureSqlDatabaseBackupCommunicator(AzureProfile profile, AzureSubscription subscription) + { + Profile = profile; + if (subscription != Subscription) + { + Subscription = subscription; + SqlClient = null; + } + } + + /// + /// Gets all the restore points for a given Azure Sql Database. + /// + public IList ListRestorePoints(string resourceGroupName, string serverName, string databaseName, string clientRequestId) + { + return GetCurrentSqlClient(clientRequestId).Backup.ListRestorePoints(resourceGroupName, serverName, databaseName).RestorePoints; + } + + /// + /// Retrieve the SQL Management client for the currently selected subscription, adding the session and request + /// id tracing headers for the current cmdlet invocation. + /// + /// The SQL Management client for the currently selected subscription. + private SqlManagementClient GetCurrentSqlClient(String clientRequestId) + { + // Get the SQL management client for the current subscription + if (SqlClient == null) + { + SqlClient = AzureSession.ClientFactory.CreateClient(Profile, Subscription, AzureEnvironment.Endpoint.ResourceManager); + } + SqlClient.HttpClient.DefaultRequestHeaders.Remove(Constants.ClientRequestIdHeaderName); + SqlClient.HttpClient.DefaultRequestHeaders.Add(Constants.ClientRequestIdHeaderName, clientRequestId); + return SqlClient; + } + } +} \ No newline at end of file From f54875ce95abdd51882c19c71900c044f040087b Mon Sep 17 00:00:00 2001 From: Matt Westphal Date: Thu, 18 Jun 2015 12:16:23 -0700 Subject: [PATCH 16/40] adding script to import and test the new UsageAggregates module --- .../ScenarioTests/UsageAggregatesTests.cs | 4 ++-- .../Commands.UsageAggregates.csproj | 3 ++- .../Commands.UsageAggregates/TestTheCmdLet.ps1 | 16 ++++++++++++++++ .../Commands.UsageAggregates/packages.config | 2 +- 4 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 src/ResourceManager/Commerce/Commands.UsageAggregates/TestTheCmdLet.ps1 diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs index 27c2a3c4c503..158d39da641b 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs @@ -14,6 +14,7 @@ using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; +using Xunit.Sdk; namespace Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests { @@ -21,8 +22,7 @@ namespace Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests public class UsageAggregatesTests { - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] + [Fact(Skip = "New test/project can't get the testContext to be created. Need to come back and fix it.")] public void TestGetUsageAggregatesWithDefaultParameters() { UsageAggregatesTestController.NewInstance.RunPsTest("Test-GetUsageAggregatesWithDefaultParameters"); diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates/Commands.UsageAggregates.csproj b/src/ResourceManager/Commerce/Commands.UsageAggregates/Commands.UsageAggregates.csproj index 680b1afcea81..7fd37d070ed7 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates/Commands.UsageAggregates.csproj +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates/Commands.UsageAggregates.csproj @@ -38,7 +38,7 @@ True - ..\..\..\packages\Microsoft.Azure.Commerce.UsageAggregates.1.0.0-preview\lib\net40\Microsoft.Azure.Commerce.UsageAggregates.dll + ..\..\..\packages\Microsoft.Azure.Commerce.UsageAggregates.1.1.0-preview\lib\net40\Microsoft.Azure.Commerce.UsageAggregates.dll True @@ -109,6 +109,7 @@ + diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates/TestTheCmdLet.ps1 b/src/ResourceManager/Commerce/Commands.UsageAggregates/TestTheCmdLet.ps1 new file mode 100644 index 000000000000..50b462747c09 --- /dev/null +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates/TestTheCmdLet.ps1 @@ -0,0 +1,16 @@ +$subscription = + +Import-Module C:\GitHub\MyGitHub\azure-powershell\src\Package\Debug\ResourceManager\AzureResourceManager\UsageAggregates\Microsoft.Azure.Commands.UsageAggregates.dll + +Add-AzureAccount + +Set-AzureSubscription -SubscriptionId $subscription + +$agggregate = get-UsageAggregates -ReportedStartTime "5/2/2015" -ReportedEndTime "5/5/2015" + +Write-Host $agggregate.NextLink +Write-Host "Result count: " + $agggregate.UsageAggregations.Count + +$agggregate.UsageAggregations | ForEach-Object { + Write-Host $_.Name +} diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates/packages.config b/src/ResourceManager/Commerce/Commands.UsageAggregates/packages.config index 2094fe4d78e2..0b172eac0bd1 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates/packages.config +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates/packages.config @@ -1,7 +1,7 @@  - + From fa2ba22ef91b2d53175479eb42459f8c8ace2771 Mon Sep 17 00:00:00 2001 From: Matt Westphal Date: Thu, 18 Jun 2015 13:30:47 -0700 Subject: [PATCH 17/40] csproj was referencing a file that didn't exist --- .../Commands.UsageAggregates.Test.csproj | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj index c81b889feb8c..2b3dd1327673 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj @@ -117,7 +117,6 @@ - PreserveNewest From 0f9bc58fcef67f8803c981a9af39e17f49247433 Mon Sep 17 00:00:00 2001 From: Matt Westphal Date: Thu, 18 Jun 2015 17:28:02 -0700 Subject: [PATCH 18/40] got the tests to run --- .../Commands.UsageAggregates.Test.csproj | 12 ++-- .../ScenarioTests/UsageAggregatesTests.cs | 6 +- .../ScenarioTests/UsageAggregatesTests.ps1 | 11 +--- ...tUsageAggregatesWithDefaultParameters.json | 65 +++++++++++++++++++ .../packages.config | 2 +- .../AzureResourceManager.psd1 | 3 +- 6 files changed, 82 insertions(+), 17 deletions(-) create mode 100644 src/ResourceManager/Commerce/Commands.UsageAggregates.Test/SessionRecords/Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests.UsageAggregatesTests/TestGetUsageAggregatesWithDefaultParameters.json diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj index 2b3dd1327673..f8c2b4d896e7 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj @@ -15,7 +15,7 @@ 512 ..\..\..\ true - b6536f44 + df51711b true @@ -40,7 +40,7 @@ True - ..\..\..\packages\Microsoft.Azure.Commerce.UsageAggregates.1.0.0-preview\lib\net40\Microsoft.Azure.Commerce.UsageAggregates.dll + ..\..\..\packages\Microsoft.Azure.Commerce.UsageAggregates.1.1.0-preview\lib\net40\Microsoft.Azure.Commerce.UsageAggregates.dll True @@ -117,17 +117,19 @@ + PreserveNewest + + PreserveNewest + - - - + diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs index 158d39da641b..cdc61eebc9c5 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs @@ -12,6 +12,9 @@ // limitations under the License. // ---------------------------------------------------------------------------------- +using System; +using Microsoft.Azure.Test; +using Microsoft.Azure.Test.HttpRecorder; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; using Xunit.Sdk; @@ -22,7 +25,8 @@ namespace Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests public class UsageAggregatesTests { - [Fact(Skip = "New test/project can't get the testContext to be created. Need to come back and fix it.")] + //[Fact(Skip = "New test/project can't get the testContext to be created. Need to come back and fix it.")] + [Fact] public void TestGetUsageAggregatesWithDefaultParameters() { UsageAggregatesTestController.NewInstance.RunPsTest("Test-GetUsageAggregatesWithDefaultParameters"); diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.ps1 b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.ps1 index 4838d7d62a60..754f1c0a301c 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.ps1 +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.ps1 @@ -18,13 +18,6 @@ Tests retrieving some usage data #> function Test-GetUsageAggregatesWithDefaultParameters() { - try - { - $result = Get-UsageAggregates -reportedStartDate = "5/1/2015" -reportedEndDate = "5/2/2015" - Write-Debug $result - } - catch - { - - } + $result = Get-UsageAggregates -ReportedStartTime "5/1/2015" -ReportedEndTime "5/2/2015" + Write-Debug $result } \ No newline at end of file diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/SessionRecords/Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests.UsageAggregatesTests/TestGetUsageAggregatesWithDefaultParameters.json b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/SessionRecords/Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests.UsageAggregatesTests/TestGetUsageAggregatesWithDefaultParameters.json new file mode 100644 index 000000000000..f4ed30b24b83 --- /dev/null +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/SessionRecords/Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests.UsageAggregatesTests/TestGetUsageAggregatesWithDefaultParameters.json @@ -0,0 +1,65 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates?api-version=2015-06-01-preview&reportedstartTime=5%2F1%2F2015%2012:00:00%20AM&reportedEndTime=5%2F2%2F2015%2012:00:00%20AM,&showDetails=true&aggregationGranularity=Daily", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2FmMTgzMDktYThjOC00ODY1LTkwZDMtNTZiMTM1ZjFiMWQ2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tbWVyY2UvVXNhZ2VBZ2dyZWdhdGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEtcHJldmlldyZyZXBvcnRlZHN0YXJ0VGltZT01JTJGMSUyRjIwMTUlMjAxMiUzQTAwJTNBMDAlMjBBTSZyZXBvcnRlZEVuZFRpbWU9NSUyRjIlMkYyMDE1JTIwMTIlM0EwMCUzQTAwJTIwQU0sJnNob3dEZXRhaWxzPXRydWUmYWdncmVnYXRpb25HcmFudWxhcml0eT1EYWlseQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Commerce.UsageAggregates.UsageAggregationManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-27T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-28T17:00:00-07:00\",\r\n \"meterName\": \"Premium P3 Database Days\",\r\n \"meterRegion\": \"\",\r\n \"meterCategory\": \"Data Services\",\r\n \"meterSubCategory\": \"SQL Database\",\r\n \"unit\": \"Days\",\r\n \"meterId\": \"2a8f5aeb-d518-4417-a262-f168e3204a84\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Database\",\r\n \"meteredServiceType\": \"P3\",\r\n \"project\": \"g099cb0nz7 - audittest\"\r\n },\r\n \"quantity\": 0.41667\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-28T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"meterName\": \"Premium P3 Database Days\",\r\n \"meterRegion\": \"\",\r\n \"meterCategory\": \"Data Services\",\r\n \"meterSubCategory\": \"SQL Database\",\r\n \"unit\": \"Days\",\r\n \"meterId\": \"2a8f5aeb-d518-4417-a262-f168e3204a84\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Database\",\r\n \"meteredServiceType\": \"P3\",\r\n \"project\": \"g099cb0nz7 - audittest\"\r\n },\r\n \"quantity\": 0.708339\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Block Blob (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"0f521674-5ebd-4679-bd97-8bc2ac4a9040\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"cpusagecosmos2eastus\"\r\n },\r\n \"quantity\": 28.32397\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"cpusagecosmos2eastus\"\r\n },\r\n \"quantity\": 292.390825\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Block Blob (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"0f521674-5ebd-4679-bd97-8bc2ac4a9040\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"North Europe\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"cpusagecosmos2neuro\"\r\n },\r\n \"quantity\": 0.172185\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"Y3B1c2FnZXJlcGxheXRzdGVhc3R1czAw\"\r\n },\r\n \"quantity\": 0.050755\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"North Europe\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"cpusagecosmos2neuro\"\r\n },\r\n \"quantity\": 45.74936\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Azure Endpoints\",\r\n \"meterCategory\": \"Networking\",\r\n \"meterSubCategory\": \"Traffic Manager\",\r\n \"unit\": \"Azure Endpoints\",\r\n \"meterId\": \"4e9518b1-3f80-4e8c-be0e-ff53c44a243b\",\r\n \"infoFields\": {\r\n \"project\": \"cpusagereplaytest.trafficmanager.net\"\r\n },\r\n \"quantity\": 0.000336\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Compute Hours\",\r\n \"meterRegion\": \"US East\",\r\n \"meterCategory\": \"Cloud Services\",\r\n \"meterSubCategory\": \"A1 Cloud Services\",\r\n \"unit\": \"Hours\",\r\n \"meterId\": \"5e415bc9-7936-445b-9215-306205de24d3\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Compute\",\r\n \"meteredServiceType\": \"ComputeMedium\",\r\n \"project\": \"cp-usage-legacy-replaytest-east-us(20150430.2304\"\r\n },\r\n \"quantity\": 1.766702\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Storage Transactions (in 10,000s)\",\r\n \"meterCategory\": \"Data Management\",\r\n \"unit\": \"10,000s\",\r\n \"meterId\": \"964c283a-83a3-4dd4-8baf-59511998fe8b\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"cpusagecosmos2eastus\"\r\n },\r\n \"quantity\": 0.0025\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos08\"\r\n },\r\n \"quantity\": 0.00173\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos09\"\r\n },\r\n \"quantity\": 0.001715\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos04\"\r\n },\r\n \"quantity\": 0.00174\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos05\"\r\n },\r\n \"quantity\": 0.001735\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos06\"\r\n },\r\n \"quantity\": 0.00175\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos07\"\r\n },\r\n \"quantity\": 0.001715\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos00\"\r\n },\r\n \"quantity\": 0.002265\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos01\"\r\n },\r\n \"quantity\": 0.001735\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Storage Transactions (in 10,000s)\",\r\n \"meterCategory\": \"Data Management\",\r\n \"unit\": \"10,000s\",\r\n \"meterId\": \"964c283a-83a3-4dd4-8baf-59511998fe8b\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"Y3B1c2FnZXJlcGxheXRzdGVhc3R1czAx\"\r\n },\r\n \"quantity\": 3106.0967\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos02\"\r\n },\r\n \"quantity\": 0.00173\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos03\"\r\n },\r\n \"quantity\": 0.001735\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Data Transfer Out (GB)\",\r\n \"meterRegion\": \"Zone 1\",\r\n \"meterCategory\": \"Networking\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"9995d93a-7d35-4d3f-9c69-7a7fea447ef4\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Compute\",\r\n \"meteredServiceType\": \"External\",\r\n \"project\": \"cp-usage-legacy-replaytest-east-us(20150429.0534\"\r\n },\r\n \"quantity\": 0.068672\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Data Transfer Out (GB)\",\r\n \"meterRegion\": \"Zone 1\",\r\n \"meterCategory\": \"Networking\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"9995d93a-7d35-4d3f-9c69-7a7fea447ef4\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Compute\",\r\n \"meteredServiceType\": \"External\",\r\n \"project\": \"cp-usage-legacy-replaytest-east-us(20150430.2304\"\r\n },\r\n \"quantity\": 0.009477\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Compute Hours\",\r\n \"meterRegion\": \"US East\",\r\n \"meterCategory\": \"Cloud Services\",\r\n \"meterSubCategory\": \"A1 Cloud Services\",\r\n \"unit\": \"Hours\",\r\n \"meterId\": \"5e415bc9-7936-445b-9215-306205de24d3\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Compute\",\r\n \"meteredServiceType\": \"ComputeXLarge\",\r\n \"project\": \"cp-usage-replaytest-east-us(20150430.230416)\"\r\n },\r\n \"quantity\": 21.067088\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Compute Hours\",\r\n \"meterRegion\": \"US East\",\r\n \"meterCategory\": \"Cloud Services\",\r\n \"meterSubCategory\": \"A1 Cloud Services\",\r\n \"unit\": \"Hours\",\r\n \"meterId\": \"5e415bc9-7936-445b-9215-306205de24d3\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Compute\",\r\n \"meteredServiceType\": \"ComputeMedium\",\r\n \"project\": \"cp-usage-replaytest-east-us(20150430.230416)\"\r\n },\r\n \"quantity\": 3.50007\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Azure Endpoints\",\r\n \"meterCategory\": \"Networking\",\r\n \"meterSubCategory\": \"Traffic Manager\",\r\n \"unit\": \"Azure Endpoints\",\r\n \"meterId\": \"4e9518b1-3f80-4e8c-be0e-ff53c44a243b\",\r\n \"infoFields\": {\r\n \"project\": \"cpusagelegacyreplaytest.trafficmanager.net\"\r\n },\r\n \"quantity\": 0.000336\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Data Transfer Out (GB)\",\r\n \"meterRegion\": \"Zone 1\",\r\n \"meterCategory\": \"Networking\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"9995d93a-7d35-4d3f-9c69-7a7fea447ef4\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Compute\",\r\n \"meteredServiceType\": \"External\",\r\n \"project\": \"cp-usage-replaytest-east-us(20150429.053425)\"\r\n },\r\n \"quantity\": 8.905201\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Data Transfer In (GB)\",\r\n \"meterRegion\": \"Zone 1\",\r\n \"meterCategory\": \"Networking\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"32c3ebec-1646-49e3-8127-2cafbd3a04d8\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Compute\",\r\n \"meteredServiceType\": \"External\",\r\n \"project\": \"cp-usage-replaytest-east-us(20150430.230416)\"\r\n },\r\n \"quantity\": 0.902218\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Data Transfer Out (GB)\",\r\n \"meterRegion\": \"Zone 1\",\r\n \"meterCategory\": \"Networking\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"9995d93a-7d35-4d3f-9c69-7a7fea447ef4\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"North Europe\",\r\n \"meteredService\": \"HDInsight\",\r\n \"meteredServiceType\": \"External\",\r\n \"project\": \"ibrahimdtest5\",\r\n \"serviceInfo1\": \"3.2.3.522.1453646\"\r\n },\r\n \"quantity\": 0.009832\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Data Transfer Out (GB)\",\r\n \"meterRegion\": \"Zone 1\",\r\n \"meterCategory\": \"Networking\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"9995d93a-7d35-4d3f-9c69-7a7fea447ef4\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Compute\",\r\n \"meteredServiceType\": \"External\",\r\n \"project\": \"cp-usage-replaytest-east-us(20150430.230416)\"\r\n },\r\n \"quantity\": 0.723732\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"usagesyncagentcosmoseus\"\r\n },\r\n \"quantity\": 0.00201\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Compute Hours\",\r\n \"meterCategory\": \"Business Analytics\",\r\n \"meterSubCategory\": \"A1 HDInsight\",\r\n \"unit\": \"Hours\",\r\n \"meterId\": \"b0b01749-c39b-4275-b283-6a92aabc3347\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"North Europe\",\r\n \"meteredServiceType\": \"A3 Cloud Services\",\r\n \"project\": \"ibrahimdtest5\",\r\n \"serviceInfo1\": \"3.2.3.522.1453646\"\r\n },\r\n \"quantity\": 180.0\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"DNS Queries (1M)\",\r\n \"meterCategory\": \"Networking\",\r\n \"meterSubCategory\": \"Traffic Manager\",\r\n \"unit\": \"1M Queries\",\r\n \"meterId\": \"c7a0c9f2-b08a-4f54-955f-c2ba8c7b0837\",\r\n \"infoFields\": {\r\n \"project\": \"cpusagereplaytest.trafficmanager.net\"\r\n },\r\n \"quantity\": 1.5E-05\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Storage Transactions (in 10,000s)\",\r\n \"meterCategory\": \"Data Management\",\r\n \"unit\": \"10,000s\",\r\n \"meterId\": \"964c283a-83a3-4dd4-8baf-59511998fe8b\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"Y3B1c2FnZXJlcGxheXRzdGVhc3R1czAw\"\r\n },\r\n \"quantity\": 3050.4862\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Storage Transactions (in 10,000s)\",\r\n \"meterCategory\": \"Data Management\",\r\n \"unit\": \"10,000s\",\r\n \"meterId\": \"964c283a-83a3-4dd4-8baf-59511998fe8b\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"North Europe\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"cpusagecosmos2neuro\"\r\n },\r\n \"quantity\": 0.4028\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Compute Hours\",\r\n \"meterRegion\": \"US East\",\r\n \"meterCategory\": \"Cloud Services\",\r\n \"meterSubCategory\": \"A1 Cloud Services\",\r\n \"unit\": \"Hours\",\r\n \"meterId\": \"5e415bc9-7936-445b-9215-306205de24d3\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Compute\",\r\n \"meteredServiceType\": \"ComputeMedium\",\r\n \"project\": \"cp-usage-legacy-replaytest-east-us(20150429.0534\"\r\n },\r\n \"quantity\": 16.366674\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"Y3B1c2FnZXJlcGxheXRzdGVhc3R1czAx\"\r\n },\r\n \"quantity\": 0.05185\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"usagetestservicecosmos\"\r\n },\r\n \"quantity\": 8.863235\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Compute Hours\",\r\n \"meterRegion\": \"US East\",\r\n \"meterCategory\": \"Cloud Services\",\r\n \"meterSubCategory\": \"A1 Cloud Services\",\r\n \"unit\": \"Hours\",\r\n \"meterId\": \"5e415bc9-7936-445b-9215-306205de24d3\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Compute\",\r\n \"meteredServiceType\": \"ComputeXLarge\",\r\n \"project\": \"cp-usage-replaytest-east-us(20150429.053425)\"\r\n },\r\n \"quantity\": 173.866784\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Data Transfer In (GB)\",\r\n \"meterRegion\": \"Zone 1\",\r\n \"meterCategory\": \"Networking\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"32c3ebec-1646-49e3-8127-2cafbd3a04d8\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Compute\",\r\n \"meteredServiceType\": \"External\",\r\n \"project\": \"cp-usage-legacy-replaytest-east-us(20150429.0534\"\r\n },\r\n \"quantity\": 0.06547\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Block Blob (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"0f521674-5ebd-4679-bd97-8bc2ac4a9040\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"Y3B1c2FnZXJlcGxheXRzdGVhc3R1cw==\"\r\n },\r\n \"quantity\": 12.91053\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Premium P3 Database Days\",\r\n \"meterRegion\": \"\",\r\n \"meterCategory\": \"Data Services\",\r\n \"meterSubCategory\": \"SQL Database\",\r\n \"unit\": \"Days\",\r\n \"meterId\": \"2a8f5aeb-d518-4417-a262-f168e3204a84\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Database\",\r\n \"meteredServiceType\": \"P3\",\r\n \"project\": \"g099cb0nz7 - audittest\"\r\n },\r\n \"quantity\": 0.166668\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"Y3B1c2FnZXJlcGxheXRzdGVhc3R1cw==\"\r\n },\r\n \"quantity\": 0.02549\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Compute Hours\",\r\n \"meterRegion\": \"US East\",\r\n \"meterCategory\": \"Cloud Services\",\r\n \"meterSubCategory\": \"A1 Cloud Services\",\r\n \"unit\": \"Hours\",\r\n \"meterId\": \"5e415bc9-7936-445b-9215-306205de24d3\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Compute\",\r\n \"meteredServiceType\": \"ComputeMedium\",\r\n \"project\": \"cp-usage-replaytest-east-us(20150429.053425)\"\r\n },\r\n \"quantity\": 29.000019\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Data Transfer In (GB)\",\r\n \"meterRegion\": \"Zone 1\",\r\n \"meterCategory\": \"Networking\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"32c3ebec-1646-49e3-8127-2cafbd3a04d8\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Compute\",\r\n \"meteredServiceType\": \"External\",\r\n \"project\": \"cp-usage-legacy-replaytest-east-us(20150430.2304\"\r\n },\r\n \"quantity\": 0.00831\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Data Transfer In (GB)\",\r\n \"meterRegion\": \"Zone 1\",\r\n \"meterCategory\": \"Networking\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"32c3ebec-1646-49e3-8127-2cafbd3a04d8\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Compute\",\r\n \"meteredServiceType\": \"External\",\r\n \"project\": \"cp-usage-replaytest-east-us(20150429.053425)\"\r\n },\r\n \"quantity\": 11.427402\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Storage Transactions (in 10,000s)\",\r\n \"meterCategory\": \"Data Management\",\r\n \"unit\": \"10,000s\",\r\n \"meterId\": \"964c283a-83a3-4dd4-8baf-59511998fe8b\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"Y3B1c2FnZXJlcGxheXRzdGVhc3R1cw==\"\r\n },\r\n \"quantity\": 1394.7031\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos14\"\r\n },\r\n \"quantity\": 0.001735\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Block Blob (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"0f521674-5ebd-4679-bd97-8bc2ac4a9040\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos16\"\r\n },\r\n \"quantity\": 0.004385\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos15\"\r\n },\r\n \"quantity\": 0.001725\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Block Blob (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"0f521674-5ebd-4679-bd97-8bc2ac4a9040\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos17\"\r\n },\r\n \"quantity\": 0.0021\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos17\"\r\n },\r\n \"quantity\": 1E-05\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos10\"\r\n },\r\n \"quantity\": 0.00173\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos11\"\r\n },\r\n \"quantity\": 0.00175\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos12\"\r\n },\r\n \"quantity\": 0.001725\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos13\"\r\n },\r\n \"quantity\": 0.001725\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Data Transfer In (GB)\",\r\n \"meterRegion\": \"Zone 1\",\r\n \"meterCategory\": \"Networking\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"32c3ebec-1646-49e3-8127-2cafbd3a04d8\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"North Europe\",\r\n \"meteredService\": \"HDInsight\",\r\n \"meteredServiceType\": \"External\",\r\n \"project\": \"ibrahimdtest5\",\r\n \"serviceInfo1\": \"3.2.3.522.1453646\"\r\n },\r\n \"quantity\": 0.002332\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-29T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"meterName\": \"Compute Hours\",\r\n \"meterCategory\": \"Business Analytics\",\r\n \"meterSubCategory\": \"A1 HDInsight\",\r\n \"unit\": \"Hours\",\r\n \"meterId\": \"b0b01749-c39b-4275-b283-6a92aabc3347\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"North Europe\",\r\n \"meteredServiceType\": \"A1 Cloud Services\",\r\n \"project\": \"ibrahimdtest5\",\r\n \"serviceInfo1\": \"3.2.3.522.1453646\"\r\n },\r\n \"quantity\": 27.0\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Block Blob (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"0f521674-5ebd-4679-bd97-8bc2ac4a9040\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"cpusagecosmos2eastus\"\r\n },\r\n \"quantity\": 107.631086\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"cpusagecosmos2eastus\"\r\n },\r\n \"quantity\": 1111.085135\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Block Blob (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"0f521674-5ebd-4679-bd97-8bc2ac4a9040\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"North Europe\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"cpusagecosmos2neuro\"\r\n },\r\n \"quantity\": 0.654303\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"Y3B1c2FnZXJlcGxheXRzdGVhc3R1czAw\"\r\n },\r\n \"quantity\": 0.192869\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"North Europe\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"cpusagecosmos2neuro\"\r\n },\r\n \"quantity\": 173.847568\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Azure Endpoints\",\r\n \"meterCategory\": \"Networking\",\r\n \"meterSubCategory\": \"Traffic Manager\",\r\n \"unit\": \"Azure Endpoints\",\r\n \"meterId\": \"4e9518b1-3f80-4e8c-be0e-ff53c44a243b\",\r\n \"infoFields\": {\r\n \"project\": \"cpusagereplaytest.trafficmanager.net\"\r\n },\r\n \"quantity\": 0.025872\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Compute Hours\",\r\n \"meterRegion\": \"US East\",\r\n \"meterCategory\": \"Cloud Services\",\r\n \"meterSubCategory\": \"A1 Cloud Services\",\r\n \"unit\": \"Hours\",\r\n \"meterId\": \"5e415bc9-7936-445b-9215-306205de24d3\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Compute\",\r\n \"meteredServiceType\": \"ComputeMedium\",\r\n \"project\": \"cp-usage-legacy-replaytest-east-us(20150430.2304\"\r\n },\r\n \"quantity\": 30.0\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Storage Transactions (in 10,000s)\",\r\n \"meterCategory\": \"Data Management\",\r\n \"unit\": \"10,000s\",\r\n \"meterId\": \"964c283a-83a3-4dd4-8baf-59511998fe8b\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"cpusagecosmos2eastus\"\r\n },\r\n \"quantity\": 0.0097\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos08\"\r\n },\r\n \"quantity\": 0.006574\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos09\"\r\n },\r\n \"quantity\": 0.006517\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos04\"\r\n },\r\n \"quantity\": 0.006612\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos05\"\r\n },\r\n \"quantity\": 0.006593\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos06\"\r\n },\r\n \"quantity\": 0.00665\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos07\"\r\n },\r\n \"quantity\": 0.006517\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos00\"\r\n },\r\n \"quantity\": 0.008607\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos01\"\r\n },\r\n \"quantity\": 0.006593\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Storage Transactions (in 10,000s)\",\r\n \"meterCategory\": \"Data Management\",\r\n \"unit\": \"10,000s\",\r\n \"meterId\": \"964c283a-83a3-4dd4-8baf-59511998fe8b\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"Y3B1c2FnZXJlcGxheXRzdGVhc3R1czAx\"\r\n },\r\n \"quantity\": 11643.8089\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos02\"\r\n },\r\n \"quantity\": 0.006574\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos03\"\r\n },\r\n \"quantity\": 0.006593\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Compute Hours\",\r\n \"meterRegion\": \"US East\",\r\n \"meterCategory\": \"Cloud Services\",\r\n \"meterSubCategory\": \"A1 Cloud Services\",\r\n \"unit\": \"Hours\",\r\n \"meterId\": \"5e415bc9-7936-445b-9215-306205de24d3\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Compute\",\r\n \"meteredServiceType\": \"ComputeXLarge\",\r\n \"project\": \"cp-usage-replaytest-east-us(20150430.230416)\"\r\n },\r\n \"quantity\": 360.0\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Data Transfer Out (GB)\",\r\n \"meterRegion\": \"Zone 1\",\r\n \"meterCategory\": \"Networking\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"9995d93a-7d35-4d3f-9c69-7a7fea447ef4\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Compute\",\r\n \"meteredServiceType\": \"External\",\r\n \"project\": \"cp-usage-legacy-replaytest-east-us(20150430.2304\"\r\n },\r\n \"quantity\": 0.180173\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Azure Endpoints\",\r\n \"meterCategory\": \"Networking\",\r\n \"meterSubCategory\": \"Traffic Manager\",\r\n \"unit\": \"Azure Endpoints\",\r\n \"meterId\": \"4e9518b1-3f80-4e8c-be0e-ff53c44a243b\",\r\n \"infoFields\": {\r\n \"project\": \"cpusagelegacyreplaytest.trafficmanager.net\"\r\n },\r\n \"quantity\": 0.025872\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Compute Hours\",\r\n \"meterRegion\": \"US East\",\r\n \"meterCategory\": \"Cloud Services\",\r\n \"meterSubCategory\": \"A1 Cloud Services\",\r\n \"unit\": \"Hours\",\r\n \"meterId\": \"5e415bc9-7936-445b-9215-306205de24d3\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Compute\",\r\n \"meteredServiceType\": \"ComputeMedium\",\r\n \"project\": \"cp-usage-replaytest-east-us(20150430.230416)\"\r\n },\r\n \"quantity\": 60.0\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Data Transfer In (GB)\",\r\n \"meterRegion\": \"Zone 1\",\r\n \"meterCategory\": \"Networking\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"32c3ebec-1646-49e3-8127-2cafbd3a04d8\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Compute\",\r\n \"meteredServiceType\": \"External\",\r\n \"project\": \"cp-usage-replaytest-east-us(20150430.230416)\"\r\n },\r\n \"quantity\": 3.493697\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Data Transfer Out (GB)\",\r\n \"meterRegion\": \"Zone 1\",\r\n \"meterCategory\": \"Networking\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"9995d93a-7d35-4d3f-9c69-7a7fea447ef4\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"North Europe\",\r\n \"meteredService\": \"HDInsight\",\r\n \"meteredServiceType\": \"External\",\r\n \"project\": \"ibrahimdtest5\",\r\n \"serviceInfo1\": \"3.2.3.522.1453646\"\r\n },\r\n \"quantity\": 0.01965\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Data Transfer Out (GB)\",\r\n \"meterRegion\": \"Zone 1\",\r\n \"meterCategory\": \"Networking\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"9995d93a-7d35-4d3f-9c69-7a7fea447ef4\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Compute\",\r\n \"meteredServiceType\": \"External\",\r\n \"project\": \"cp-usage-replaytest-east-us(20150430.230416)\"\r\n },\r\n \"quantity\": 2.748611\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"usagesyncagentcosmoseus\"\r\n },\r\n \"quantity\": 0.007638\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Compute Hours\",\r\n \"meterCategory\": \"Business Analytics\",\r\n \"meterSubCategory\": \"A1 HDInsight\",\r\n \"unit\": \"Hours\",\r\n \"meterId\": \"b0b01749-c39b-4275-b283-6a92aabc3347\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"North Europe\",\r\n \"meteredServiceType\": \"A3 Cloud Services\",\r\n \"project\": \"ibrahimdtest5\",\r\n \"serviceInfo1\": \"3.2.3.522.1453646\"\r\n },\r\n \"quantity\": 300.0\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"DNS Queries (1M)\",\r\n \"meterCategory\": \"Networking\",\r\n \"meterSubCategory\": \"Traffic Manager\",\r\n \"unit\": \"1M Queries\",\r\n \"meterId\": \"c7a0c9f2-b08a-4f54-955f-c2ba8c7b0837\",\r\n \"infoFields\": {\r\n \"project\": \"cpusagereplaytest.trafficmanager.net\"\r\n },\r\n \"quantity\": 0.000504\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Storage Transactions (in 10,000s)\",\r\n \"meterCategory\": \"Data Management\",\r\n \"unit\": \"10,000s\",\r\n \"meterId\": \"964c283a-83a3-4dd4-8baf-59511998fe8b\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"Y3B1c2FnZXJlcGxheXRzdGVhc3R1czAw\"\r\n },\r\n \"quantity\": 11373.8102\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Storage Transactions (in 10,000s)\",\r\n \"meterCategory\": \"Data Management\",\r\n \"unit\": \"10,000s\",\r\n \"meterId\": \"964c283a-83a3-4dd4-8baf-59511998fe8b\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"North Europe\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"cpusagecosmos2neuro\"\r\n },\r\n \"quantity\": 1.5291\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Base Unit\",\r\n \"meterCategory\": \"Service Bus\",\r\n \"meterSubCategory\": \"Standard Messaging\",\r\n \"unit\": \"Units\",\r\n \"meterId\": \"d5034e45-00c1-48c6-8c00-c866f788e033\",\r\n \"infoFields\": {\r\n \"meteredService\": \"ServiceBus\"\r\n },\r\n \"quantity\": 0.032258064516129031\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"Y3B1c2FnZXJlcGxheXRzdGVhc3R1czAx\"\r\n },\r\n \"quantity\": 0.19703\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"usagetestservicecosmos\"\r\n },\r\n \"quantity\": 33.680293\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Block Blob (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"0f521674-5ebd-4679-bd97-8bc2ac4a9040\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"Y3B1c2FnZXJlcGxheXRzdGVhc3R1cw==\"\r\n },\r\n \"quantity\": 49.06319\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Premium P3 Database Days\",\r\n \"meterRegion\": \"\",\r\n \"meterCategory\": \"Data Services\",\r\n \"meterSubCategory\": \"SQL Database\",\r\n \"unit\": \"Days\",\r\n \"meterId\": \"2a8f5aeb-d518-4417-a262-f168e3204a84\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Database\",\r\n \"meteredServiceType\": \"P3\",\r\n \"project\": \"g099cb0nz7 - audittest\"\r\n },\r\n \"quantity\": 0.83334\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"Y3B1c2FnZXJlcGxheXRzdGVhc3R1cw==\"\r\n },\r\n \"quantity\": 0.097012\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Data Transfer In (GB)\",\r\n \"meterRegion\": \"Zone 1\",\r\n \"meterCategory\": \"Networking\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"32c3ebec-1646-49e3-8127-2cafbd3a04d8\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Compute\",\r\n \"meteredServiceType\": \"External\",\r\n \"project\": \"cp-usage-legacy-replaytest-east-us(20150430.2304\"\r\n },\r\n \"quantity\": 0.146518\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"DNS Queries (1M)\",\r\n \"meterCategory\": \"Networking\",\r\n \"meterSubCategory\": \"Traffic Manager\",\r\n \"unit\": \"1M Queries\",\r\n \"meterId\": \"c7a0c9f2-b08a-4f54-955f-c2ba8c7b0837\",\r\n \"infoFields\": {\r\n \"project\": \"cpusagelegacyreplaytest.trafficmanager.net\"\r\n },\r\n \"quantity\": 2E-06\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Storage Transactions (in 10,000s)\",\r\n \"meterCategory\": \"Data Management\",\r\n \"unit\": \"10,000s\",\r\n \"meterId\": \"964c283a-83a3-4dd4-8baf-59511998fe8b\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"Y3B1c2FnZXJlcGxheXRzdGVhc3R1cw==\"\r\n },\r\n \"quantity\": 4766.1839\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos14\"\r\n },\r\n \"quantity\": 0.006593\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Block Blob (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"0f521674-5ebd-4679-bd97-8bc2ac4a9040\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos16\"\r\n },\r\n \"quantity\": 0.016663\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos15\"\r\n },\r\n \"quantity\": 0.006555\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Block Blob (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"0f521674-5ebd-4679-bd97-8bc2ac4a9040\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos17\"\r\n },\r\n \"quantity\": 0.00798\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos17\"\r\n },\r\n \"quantity\": 3.8E-05\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos10\"\r\n },\r\n \"quantity\": 0.006574\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos11\"\r\n },\r\n \"quantity\": 0.00665\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos12\"\r\n },\r\n \"quantity\": 0.006555\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Standard IO - Table/ Queue (GB)\",\r\n \"meterCategory\": \"Storage\",\r\n \"meterSubCategory\": \"Geo Redundant\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"30ab1dae-8172-4b24-aa5b-3666d3f0fde1\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"East US\",\r\n \"meteredService\": \"Storage\",\r\n \"project\": \"ocpomshzusgcosmos13\"\r\n },\r\n \"quantity\": 0.006555\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Data Transfer In (GB)\",\r\n \"meterRegion\": \"Zone 1\",\r\n \"meterCategory\": \"Networking\",\r\n \"unit\": \"GB\",\r\n \"meterId\": \"32c3ebec-1646-49e3-8127-2cafbd3a04d8\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"North Europe\",\r\n \"meteredService\": \"HDInsight\",\r\n \"meteredServiceType\": \"External\",\r\n \"project\": \"ibrahimdtest5\",\r\n \"serviceInfo1\": \"3.2.3.522.1453646\"\r\n },\r\n \"quantity\": 0.004922\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/3af18309-a8c8-4865-90d3-56b135f1b1d6/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20150501_0000\",\r\n \"name\": \"Daily_BRSDT_20150501_0000\",\r\n \"type\": \"Microsoft.Commerce/UsageAggregate\",\r\n \"properties\": {\r\n \"subscriptionId\": \"3af18309-a8c8-4865-90d3-56b135f1b1d6\",\r\n \"usageStartTime\": \"2015-04-30T17:00:00-07:00\",\r\n \"usageEndTime\": \"2015-05-01T17:00:00-07:00\",\r\n \"meterName\": \"Compute Hours\",\r\n \"meterCategory\": \"Business Analytics\",\r\n \"meterSubCategory\": \"A1 HDInsight\",\r\n \"unit\": \"Hours\",\r\n \"meterId\": \"b0b01749-c39b-4275-b283-6a92aabc3347\",\r\n \"infoFields\": {\r\n \"meteredRegion\": \"North Europe\",\r\n \"meteredServiceType\": \"A1 Cloud Services\",\r\n \"project\": \"ibrahimdtest5\",\r\n \"serviceInfo1\": \"3.2.3.522.1453646\"\r\n },\r\n \"quantity\": 45.0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "73205" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "a5d0f474-201c-4d42-bfed-26eb105e0164" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "1fea84b5-c0ae-44f9-ad1e-345ad448683c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150619T001515Z:1fea84b5-c0ae-44f9-ad1e-345ad448683c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 00:15:14 GMT" + ], + "Server": [ + "Microsoft-IIS/8.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "3af18309-a8c8-4865-90d3-56b135f1b1d6" + } +} \ No newline at end of file diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/packages.config b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/packages.config index 122cfa29d2f9..5995367896a6 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/packages.config +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/packages.config @@ -1,7 +1,7 @@  - + diff --git a/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1 b/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1 index 172170299444..764e616195d8 100644 --- a/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1 +++ b/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1 @@ -98,7 +98,8 @@ NestedModules = @( '.\ResourceManager\Microsoft.Azure.Commands.ResourceManager.Cmdlets.dll', '.\ApiManagement\Microsoft.Azure.Commands.ApiManagement.dll', '.\StorageManagement\Microsoft.Azure.Commands.Management.Storage.dll', - '.\OperationalInsights\Microsoft.Azure.Commands.OperationalInsights.dll' + '.\OperationalInsights\Microsoft.Azure.Commands.OperationalInsights.dll', + '.\UsageAggregates\Microsoft.Azure.Commands.UsageAggregates.dll' ) # Functions to export from this module From f982719c19368508d259447c5f87779077cf863a Mon Sep 17 00:00:00 2001 From: Matt Westphal Date: Thu, 18 Jun 2015 17:29:33 -0700 Subject: [PATCH 19/40] remove unused files --- .../ScenarioTests/UsageAggregatesTests.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs index cdc61eebc9c5..69834d226140 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs @@ -12,12 +12,7 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using System; -using Microsoft.Azure.Test; -using Microsoft.Azure.Test.HttpRecorder; -using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; -using Xunit.Sdk; namespace Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests { @@ -25,8 +20,7 @@ namespace Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests public class UsageAggregatesTests { - //[Fact(Skip = "New test/project can't get the testContext to be created. Need to come back and fix it.")] - [Fact] + [Fact] public void TestGetUsageAggregatesWithDefaultParameters() { UsageAggregatesTestController.NewInstance.RunPsTest("Test-GetUsageAggregatesWithDefaultParameters"); From 4b7b931aafdc1e1cd8f25283febd9a0842c7c2a4 Mon Sep 17 00:00:00 2001 From: Matt Westphal Date: Thu, 18 Jun 2015 17:44:30 -0700 Subject: [PATCH 20/40] removed app.config --- .../Commands.UsageAggregates.Test.csproj | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj index f8c2b4d896e7..9216876c0933 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj @@ -117,7 +117,6 @@ - PreserveNewest From 06043778110a55ab19702a583d5e93be51cecc82 Mon Sep 17 00:00:00 2001 From: caln-microsoft Date: Thu, 18 Jun 2015 18:05:32 -0700 Subject: [PATCH 21/40] Styling fixes for Get-AzureSqlDatabaseRestorePoints --- .../Commands.Sql.Test/Commands.Sql.Test.csproj | 4 +++- .../ScenarioTests/DatabaseBackupTests.ps1 | 17 ++++------------- .../AzureSqlDatabaseBackupAttributeTests.cs | 2 +- .../AzureSqlDatabaseRestorePointCmdletBase.cs | 10 ++++++++++ .../Cmdlet/GetAzureSqlDatabaseRestorePoints.cs | 14 +------------- .../Model/AzureSqlDatabaseRestorePointModel.cs | 2 +- .../Services/AzureSqlDatabaseBackupAdapter.cs | 2 +- .../AzureSqlDatabaseBackupCommunicator.cs | 14 +++++++++----- 8 files changed, 30 insertions(+), 35 deletions(-) diff --git a/src/ResourceManager/Sql/Commands.Sql.Test/Commands.Sql.Test.csproj b/src/ResourceManager/Sql/Commands.Sql.Test/Commands.Sql.Test.csproj index 8a69fbc290f8..c7995b29dd3a 100644 --- a/src/ResourceManager/Sql/Commands.Sql.Test/Commands.Sql.Test.csproj +++ b/src/ResourceManager/Sql/Commands.Sql.Test/Commands.Sql.Test.csproj @@ -156,7 +156,9 @@ PreserveNewest - + + PreserveNewest + PreserveNewest diff --git a/src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/DatabaseBackupTests.ps1 b/src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/DatabaseBackupTests.ps1 index 317d03b59c48..4c8416d062a5 100644 --- a/src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/DatabaseBackupTests.ps1 +++ b/src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/DatabaseBackupTests.ps1 @@ -36,15 +36,11 @@ function Test-ListDatabaseRestorePoints $standarddb = New-AzureSqlDatabase -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $databaseName ` -Edition Standard -RequestedServiceObjectiveName S0 - # Get restore points from data warehouse database. + # Get restore points from data warehouse database. There should be none. $restorePoints = Get-AzureSqlDatabaseRestorePoints -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $dwdb.DatabaseName - $restorePoint = $restorePoints[0] - Assert-AreEqual $restorePoint.RestorePointType Discrete - Assert-NotNull $restorePoint.RestorePointCreationDate - Assert-Null $restorePoint.EarliestRestoreDate - Assert-AreEqual $restorePoint.SizeBytes 0 + Assert-True $restorePoints.IsEmpty - # Get restore points from standard database. + # Get restore points from standard database.There should be 1. $restorePoints = Resume-AzureSqlDatabase -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $standarddb.DatabaseName $restorePoint = $restorePoints[0] Assert-AreEqual $restorePoint.RestorePointType Continuous @@ -83,12 +79,7 @@ function Test-ListDatabaseRestorePointsPiped -Edition Standard -RequestedServiceObjectiveName S0 # Get restore points from data warehouse database. - $restorePoints = $dwdb | Get-AzureSqlDatabaseRestorePoints - $restorePoint = $restorePoints[0] - Assert-AreEqual $restorePoint.RestorePointType Discrete - Assert-NotNull $restorePoint.RestorePointCreationDate - Assert-Null $restorePoint.EarliestRestoreDate - Assert-AreEqual $restorePoint.SizeBytes 0 + Assert-True $restorePoints.IsEmpty # Get restore points from standard database. $restorePoints = $standarddb | Resume-AzureSqlDatabase diff --git a/src/ResourceManager/Sql/Commands.Sql.Test/UnitTests/AzureSqlDatabaseBackupAttributeTests.cs b/src/ResourceManager/Sql/Commands.Sql.Test/UnitTests/AzureSqlDatabaseBackupAttributeTests.cs index a50727919547..808798500c87 100644 --- a/src/ResourceManager/Sql/Commands.Sql.Test/UnitTests/AzureSqlDatabaseBackupAttributeTests.cs +++ b/src/ResourceManager/Sql/Commands.Sql.Test/UnitTests/AzureSqlDatabaseBackupAttributeTests.cs @@ -26,7 +26,7 @@ public class AzureSqlDatabaseBackupAttributeTests { [Fact] [Trait(Category.Sql, Category.CheckIn)] - public void SuspendAzureSqlDatabaseAttributes() + public void GetAzureSqlDatabaseRestorePointsAttributes() { Type type = typeof(GetAzureSqlDatabaseRestorePoints); UnitTestHelper.CheckCmdletModifiesData(type, supportsShouldProcess: false); diff --git a/src/ResourceManager/Sql/Commands.Sql/Database Backup/Cmdlet/AzureSqlDatabaseRestorePointCmdletBase.cs b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Cmdlet/AzureSqlDatabaseRestorePointCmdletBase.cs index 95fc88a4fb7e..31845874cf41 100644 --- a/src/ResourceManager/Sql/Commands.Sql/Database Backup/Cmdlet/AzureSqlDatabaseRestorePointCmdletBase.cs +++ b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Cmdlet/AzureSqlDatabaseRestorePointCmdletBase.cs @@ -35,6 +35,16 @@ public abstract class AzureSqlDatabaseRestorePointCmdletBase [ValidateNotNullOrEmpty] public string ServerName { get; set; } + /// + /// Gets or sets the name of the database to use. + /// + [Parameter(Mandatory = true, + ValueFromPipelineByPropertyName = true, + Position = 2, + HelpMessage = "The name of the Azure SQL Database to retrieve restore points from.")] + [ValidateNotNullOrEmpty] + public string DatabaseName { get; set; } + /// /// Initializes the adapter /// diff --git a/src/ResourceManager/Sql/Commands.Sql/Database Backup/Cmdlet/GetAzureSqlDatabaseRestorePoints.cs b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Cmdlet/GetAzureSqlDatabaseRestorePoints.cs index b141c42f8bd0..0cdaa64a81fc 100644 --- a/src/ResourceManager/Sql/Commands.Sql/Database Backup/Cmdlet/GetAzureSqlDatabaseRestorePoints.cs +++ b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Cmdlet/GetAzureSqlDatabaseRestorePoints.cs @@ -24,25 +24,13 @@ namespace Microsoft.Azure.Commands.Sql.Backup.Cmdlet ConfirmImpact = ConfirmImpact.None)] public class GetAzureSqlDatabaseRestorePoints : AzureSqlDatabaseRestorePointCmdletBase { - /// - /// Gets or sets the name of the database to use. - /// - [Parameter(Mandatory = true, - ValueFromPipelineByPropertyName = true, - Position = 2, - HelpMessage = "The name of the Azure SQL Database to retrieve restore points from.")] - [ValidateNotNullOrEmpty] - public string DatabaseName { get; set; } - /// /// Get the entities from the service /// /// The list of entities protected override IEnumerable GetEntity() { - IEnumerable results; - results = ModelAdapter.ListRestorePoints(this.ResourceGroupName, this.ServerName, this.DatabaseName); - return results; + return ModelAdapter.ListRestorePoints(this.ResourceGroupName, this.ServerName, this.DatabaseName); } /// diff --git a/src/ResourceManager/Sql/Commands.Sql/Database Backup/Model/AzureSqlDatabaseRestorePointModel.cs b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Model/AzureSqlDatabaseRestorePointModel.cs index e3ff2f66c220..226b2d740b6d 100644 --- a/src/ResourceManager/Sql/Commands.Sql/Database Backup/Model/AzureSqlDatabaseRestorePointModel.cs +++ b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Model/AzureSqlDatabaseRestorePointModel.cs @@ -58,7 +58,7 @@ public class AzureSqlDatabaseRestorePointModel public DateTime? EarliestRestoreDate { get; set; } /// - /// Backup size in blob storage of the restore point. + /// Size of the backup in blob storage. /// For discrete restore point, the value is the database snap size; for continuous restore point, the value is the /// total backup storage usage of the database. /// diff --git a/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupAdapter.cs b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupAdapter.cs index 02a0d7a59539..f6a9cf3adc68 100644 --- a/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupAdapter.cs +++ b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupAdapter.cs @@ -32,7 +32,7 @@ namespace Microsoft.Azure.Commands.Sql.Backup.Services { /// - /// Adapter for database activation operations + /// Adapter for database backup operations /// public class AzureSqlDatabaseBackupAdapter { diff --git a/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupCommunicator.cs b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupCommunicator.cs index a9d1234961e8..a56dd2597220 100644 --- a/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupCommunicator.cs +++ b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupCommunicator.cs @@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.Sql.Backup.Services { /// - /// This class is responsible for all the REST communication with the database activation REST endpoints. + /// This class is responsible for all the REST communication with the database backup REST endpoints. /// public class AzureSqlDatabaseBackupCommunicator { @@ -46,10 +46,10 @@ public class AzureSqlDatabaseBackupCommunicator public AzureProfile Profile { get; set; } /// - /// Creates a communicator for Azure Sql Databases + /// Creates a communicator for Azure Sql Database backup REST endpoints. /// - /// - /// + /// Azure profile + /// Associated subscription public AzureSqlDatabaseBackupCommunicator(AzureProfile profile, AzureSubscription subscription) { Profile = profile; @@ -61,8 +61,12 @@ public AzureSqlDatabaseBackupCommunicator(AzureProfile profile, AzureSubscriptio } /// - /// Gets all the restore points for a given Azure Sql Database. + /// Lists the restore points for a given Sql Azure Database. /// + /// The name of the resource group + /// The name of the Azure SQL Server + /// The name of the Azure SQL database + /// List of restore points public IList ListRestorePoints(string resourceGroupName, string serverName, string databaseName, string clientRequestId) { return GetCurrentSqlClient(clientRequestId).Backup.ListRestorePoints(resourceGroupName, serverName, databaseName).RestorePoints; From 72858ceb90d69c16fca966f1918c41370e7e6039 Mon Sep 17 00:00:00 2001 From: caln-microsoft Date: Thu, 18 Jun 2015 18:07:30 -0700 Subject: [PATCH 22/40] Adding Get-AzureSqlDatabaseRestorePoints powershell support --- .../AzureSqlDatabaseRestorePointCmdletBase.cs | 58 ++++++++++++ .../GetAzureSqlDatabaseRestorePoints.cs | 56 +++++++++++ .../AzureSqlDatabaseRestorePointModel.cs | 67 ++++++++++++++ .../Services/AzureSqlDatabaseBackupAdapter.cs | 92 +++++++++++++++++++ .../AzureSqlDatabaseBackupCommunicator.cs | 92 +++++++++++++++++++ 5 files changed, 365 insertions(+) create mode 100644 src/ResourceManager/Sql/Commands.Sql/Database Backup/Cmdlet/AzureSqlDatabaseRestorePointCmdletBase.cs create mode 100644 src/ResourceManager/Sql/Commands.Sql/Database Backup/Cmdlet/GetAzureSqlDatabaseRestorePoints.cs create mode 100644 src/ResourceManager/Sql/Commands.Sql/Database Backup/Model/AzureSqlDatabaseRestorePointModel.cs create mode 100644 src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupAdapter.cs create mode 100644 src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupCommunicator.cs diff --git a/src/ResourceManager/Sql/Commands.Sql/Database Backup/Cmdlet/AzureSqlDatabaseRestorePointCmdletBase.cs b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Cmdlet/AzureSqlDatabaseRestorePointCmdletBase.cs new file mode 100644 index 000000000000..31845874cf41 --- /dev/null +++ b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Cmdlet/AzureSqlDatabaseRestorePointCmdletBase.cs @@ -0,0 +1,58 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System.Collections.Generic; +using System.Management.Automation; +using Microsoft.Azure.Commands.Sql.Backup.Model; +using Microsoft.Azure.Commands.Sql.Backup.Services; +using Microsoft.Azure.Commands.Sql.Common; +using Microsoft.Azure.Commands.Sql.Database.Model; +using Microsoft.Azure.Commands.Sql.Database.Services; + +namespace Microsoft.Azure.Commands.Sql.Backup.Cmdlet +{ + public abstract class AzureSqlDatabaseRestorePointCmdletBase + : AzureSqlCmdletBase, AzureSqlDatabaseBackupAdapter> + { + /// + /// Gets or sets the name of the database server to use. + /// + [Parameter(Mandatory = true, + ValueFromPipelineByPropertyName = true, + Position = 1, + HelpMessage = "The name of the Azure SQL Database Server the database is in.")] + [ValidateNotNullOrEmpty] + public string ServerName { get; set; } + + /// + /// Gets or sets the name of the database to use. + /// + [Parameter(Mandatory = true, + ValueFromPipelineByPropertyName = true, + Position = 2, + HelpMessage = "The name of the Azure SQL Database to retrieve restore points from.")] + [ValidateNotNullOrEmpty] + public string DatabaseName { get; set; } + + /// + /// Initializes the adapter + /// + /// + /// + protected override AzureSqlDatabaseBackupAdapter InitModelAdapter(Azure.Common.Authentication.Models.AzureSubscription subscription) + { + return new AzureSqlDatabaseBackupAdapter(Profile, subscription); + } + } +} diff --git a/src/ResourceManager/Sql/Commands.Sql/Database Backup/Cmdlet/GetAzureSqlDatabaseRestorePoints.cs b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Cmdlet/GetAzureSqlDatabaseRestorePoints.cs new file mode 100644 index 000000000000..0cdaa64a81fc --- /dev/null +++ b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Cmdlet/GetAzureSqlDatabaseRestorePoints.cs @@ -0,0 +1,56 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System.Collections.Generic; +using System.Management.Automation; + +using Microsoft.Azure.Commands.Sql.Backup.Model; +using Microsoft.Azure.Commands.Sql.Database.Model; + +namespace Microsoft.Azure.Commands.Sql.Backup.Cmdlet +{ + [Cmdlet(VerbsCommon.Get, "AzureSqlDatabaseRestorePoints", + ConfirmImpact = ConfirmImpact.None)] + public class GetAzureSqlDatabaseRestorePoints : AzureSqlDatabaseRestorePointCmdletBase + { + /// + /// Get the entities from the service + /// + /// The list of entities + protected override IEnumerable GetEntity() + { + return ModelAdapter.ListRestorePoints(this.ResourceGroupName, this.ServerName, this.DatabaseName); + } + + /// + /// No user input to apply to model + /// + /// Model retrieved from service + /// The model that was passed in + protected override IEnumerable ApplyUserInputToModel(IEnumerable model) + { + return model; + } + + /// + /// No changes to persist to server + /// + /// The output of apply user input to model + /// The input entity + protected override IEnumerable PersistChanges(IEnumerable entity) + { + return entity; + } + } +} diff --git a/src/ResourceManager/Sql/Commands.Sql/Database Backup/Model/AzureSqlDatabaseRestorePointModel.cs b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Model/AzureSqlDatabaseRestorePointModel.cs new file mode 100644 index 000000000000..226b2d740b6d --- /dev/null +++ b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Model/AzureSqlDatabaseRestorePointModel.cs @@ -0,0 +1,67 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Collections.Generic; + +namespace Microsoft.Azure.Commands.Sql.Backup.Model +{ + /// + /// Represents an Azure Sql Database restore point + /// + public class AzureSqlDatabaseRestorePointModel + { + /// + /// Gets or sets the name of the resource group + /// + public string ResourceGroupName { get; set; } + + /// + /// Gets or sets the name of the server + /// + public string ServerName { get; set; } + + /// + /// Gets or sets the name of the database + /// + public string DatabaseName { get; set; } + + /// + /// Gets or sets the location of the database + /// + public string Location { get; set; } + + /// + /// Gets the restore point type of the Azure SQL Database restore point. Possible values are: DISCRETE and CONTINUOUS. + /// + public string RestorePointType { get; set; } + + /// + /// Earliest restore time. Populated when restorePointType = CONTINUOUS. Null otherwise. + /// + public DateTime? RestorePointCreationDate { get; set; } + + /// + /// Earliest restore time. Populated when restorePointType = DISCRETE. Null otherwise. + /// + public DateTime? EarliestRestoreDate { get; set; } + + /// + /// Size of the backup in blob storage. + /// For discrete restore point, the value is the database snap size; for continuous restore point, the value is the + /// total backup storage usage of the database. + /// + public int SizeBytes { get; set; } + } +} diff --git a/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupAdapter.cs b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupAdapter.cs new file mode 100644 index 000000000000..f6a9cf3adc68 --- /dev/null +++ b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupAdapter.cs @@ -0,0 +1,92 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; + +using Microsoft.Azure.Commands.Sql.Backup.Model; +using Microsoft.Azure.Commands.Sql.Common; +using Microsoft.Azure.Commands.Sql.Database.Model; +using Microsoft.Azure.Commands.Sql.Database.Services; +using Microsoft.Azure.Commands.Sql.ElasticPool.Services; +using Microsoft.Azure.Commands.Sql.Properties; +using Microsoft.Azure.Commands.Sql.Server.Adapter; +using Microsoft.Azure.Commands.Sql.Services; +using Microsoft.Azure.Common.Authentication.Models; +using Microsoft.Azure.Management.Sql; +using Microsoft.Azure.Management.Sql.Models; + +namespace Microsoft.Azure.Commands.Sql.Backup.Services +{ + /// + /// Adapter for database backup operations + /// + public class AzureSqlDatabaseBackupAdapter + { + /// + /// Gets or sets the AzureSqlDatabaseBackupCommunicator which has all the needed management clients + /// + private AzureSqlDatabaseBackupCommunicator Communicator { get; set; } + + /// + /// Gets or sets the Azure profile + /// + public AzureProfile Profile { get; set; } + + /// + /// Gets or sets the Azure Subscription + /// + private AzureSubscription _subscription { get; set; } + + /// + /// Constructs a database backup adapter + /// + /// The current azure profile + /// The current azure subscription + public AzureSqlDatabaseBackupAdapter(AzureProfile Profile, AzureSubscription subscription) + { + this.Profile = Profile; + this._subscription = subscription; + Communicator = new AzureSqlDatabaseBackupCommunicator(Profile, subscription); + } + + /// + /// Lists the restore points for a given Sql Azure Database. + /// + /// The name of the resource group + /// The name of the Azure SQL Server + /// The name of the Azure SQL database + /// List of restore points + internal IEnumerable ListRestorePoints(string resourceGroup, string serverName, string databaseName) + { + var resp = Communicator.ListRestorePoints(resourceGroup, serverName, databaseName, Util.GenerateTracingId()); + return resp.Select((restorePoint) => + { + return new AzureSqlDatabaseRestorePointModel() + { + ResourceGroupName = resourceGroup, + ServerName = serverName, + DatabaseName = databaseName, + Location = restorePoint.Location, + RestorePointType = restorePoint.Properties.RestorePointType, + RestorePointCreationDate = restorePoint.Properties.RestorePointCreationDate, + EarliestRestoreDate = restorePoint.Properties.EarliestRestoreDate, + SizeBytes = restorePoint.Properties.SizeBytes + }; + }).ToList(); + } + } +} diff --git a/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupCommunicator.cs b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupCommunicator.cs new file mode 100644 index 000000000000..a56dd2597220 --- /dev/null +++ b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupCommunicator.cs @@ -0,0 +1,92 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Collections.Generic; + +using Microsoft.Azure.Common.Authentication; +using Microsoft.Azure.Common.Authentication.Models; +using Microsoft.Azure.Management.Resources; +using Microsoft.Azure.Management.Sql; +using Microsoft.Azure.Management.Sql.Models; +using Microsoft.Azure.Commands.Sql.Common; +using Microsoft.WindowsAzure.Management.Storage; + +namespace Microsoft.Azure.Commands.Sql.Backup.Services +{ + /// + /// This class is responsible for all the REST communication with the database backup REST endpoints. + /// + public class AzureSqlDatabaseBackupCommunicator + { + /// + /// The Sql client to be used by this end points communicator + /// + private static SqlManagementClient SqlClient { get; set; } + + /// + /// Gets or set the Azure subscription + /// + private static AzureSubscription Subscription { get; set; } + + /// + /// Gets or sets the Azure profile + /// + public AzureProfile Profile { get; set; } + + /// + /// Creates a communicator for Azure Sql Database backup REST endpoints. + /// + /// Azure profile + /// Associated subscription + public AzureSqlDatabaseBackupCommunicator(AzureProfile profile, AzureSubscription subscription) + { + Profile = profile; + if (subscription != Subscription) + { + Subscription = subscription; + SqlClient = null; + } + } + + /// + /// Lists the restore points for a given Sql Azure Database. + /// + /// The name of the resource group + /// The name of the Azure SQL Server + /// The name of the Azure SQL database + /// List of restore points + public IList ListRestorePoints(string resourceGroupName, string serverName, string databaseName, string clientRequestId) + { + return GetCurrentSqlClient(clientRequestId).Backup.ListRestorePoints(resourceGroupName, serverName, databaseName).RestorePoints; + } + + /// + /// Retrieve the SQL Management client for the currently selected subscription, adding the session and request + /// id tracing headers for the current cmdlet invocation. + /// + /// The SQL Management client for the currently selected subscription. + private SqlManagementClient GetCurrentSqlClient(String clientRequestId) + { + // Get the SQL management client for the current subscription + if (SqlClient == null) + { + SqlClient = AzureSession.ClientFactory.CreateClient(Profile, Subscription, AzureEnvironment.Endpoint.ResourceManager); + } + SqlClient.HttpClient.DefaultRequestHeaders.Remove(Constants.ClientRequestIdHeaderName); + SqlClient.HttpClient.DefaultRequestHeaders.Add(Constants.ClientRequestIdHeaderName, clientRequestId); + return SqlClient; + } + } +} \ No newline at end of file From e0843685fc40378b38506a2b374bcb1552bfb990 Mon Sep 17 00:00:00 2001 From: Matt Westphal Date: Thu, 18 Jun 2015 18:12:46 -0700 Subject: [PATCH 23/40] added our tests to the powershell test tagets --- AzurePowershell.Test.targets | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/AzurePowershell.Test.targets b/AzurePowershell.Test.targets index 96f0d68a8d60..9fd5b0885a91 100644 --- a/AzurePowershell.Test.targets +++ b/AzurePowershell.Test.targets @@ -28,6 +28,7 @@ .\src\ServiceManagement\HDInsight\Commands.HDInsight.Test\bin\Debug\Microsoft.WindowsAzure.Commands.HDInsight.Test.dll .\src\ServiceManagement\Storage\Commands.Storage.Test\bin\Debug\Microsoft.WindowsAzure.Commands.Storage.Test.dll .\src\ResourceManager\KeyVault\Commands.KeyVault.Test\bin\Debug\Microsoft.Azure.Commands.KeyVault.Test.dll + .\src\ResourceManager\Commerce\Commands.UsageAggregates.Test\bin\Debug\Commands.UsageAggregates.Test.dll "!Functional&!Scenario&!AzureRTScenario&!Sequential&!PIRTest&!Preview&!ADDomain&!Network&!AzureRTUpload&!AzureRTCleanUp" All "OneSDK&CIT" @@ -241,6 +242,13 @@ + + + + + + From 9f9e6bc9836de6e4a8eeac4eff322131fba23f8c Mon Sep 17 00:00:00 2001 From: Matt Westphal Date: Thu, 18 Jun 2015 18:42:06 -0700 Subject: [PATCH 24/40] added another place for the targets file --- AzurePowershell.Test.targets | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AzurePowershell.Test.targets b/AzurePowershell.Test.targets index 9fd5b0885a91..db03e7680c0e 100644 --- a/AzurePowershell.Test.targets +++ b/AzurePowershell.Test.targets @@ -55,13 +55,14 @@ + - + From 11a805b63ef2baec25406d802acd2d7412667070 Mon Sep 17 00:00:00 2001 From: Matt Westphal Date: Thu, 18 Jun 2015 19:42:04 -0700 Subject: [PATCH 25/40] updated name of dll for the test project to align with others --- AzurePowershell.Test.targets | 4 ++-- .../Commands.UsageAggregates.Test.csproj | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AzurePowershell.Test.targets b/AzurePowershell.Test.targets index db03e7680c0e..a60bf40611b9 100644 --- a/AzurePowershell.Test.targets +++ b/AzurePowershell.Test.targets @@ -28,7 +28,7 @@ .\src\ServiceManagement\HDInsight\Commands.HDInsight.Test\bin\Debug\Microsoft.WindowsAzure.Commands.HDInsight.Test.dll .\src\ServiceManagement\Storage\Commands.Storage.Test\bin\Debug\Microsoft.WindowsAzure.Commands.Storage.Test.dll .\src\ResourceManager\KeyVault\Commands.KeyVault.Test\bin\Debug\Microsoft.Azure.Commands.KeyVault.Test.dll - .\src\ResourceManager\Commerce\Commands.UsageAggregates.Test\bin\Debug\Commands.UsageAggregates.Test.dll + .\src\ResourceManager\Commerce\Commands.UsageAggregates.Test\bin\Debug\Microsoft.Azure.Commands.UsageAggregates.Test.dll "!Functional&!Scenario&!AzureRTScenario&!Sequential&!PIRTest&!Preview&!ADDomain&!Network&!AzureRTUpload&!AzureRTCleanUp" All "OneSDK&CIT" @@ -55,7 +55,7 @@ - + diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj index 9216876c0933..e34e875862ae 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj @@ -10,7 +10,7 @@ Library Properties Commands.UsageAggregates.Test - Commands.UsageAggregates.Test + Microsoft.Azure.Commands.UsageAggregates.Test v4.5 512 ..\..\..\ From 2bf9e8ea7525abf4d7232c9d8cb542c4f9361fb3 Mon Sep 17 00:00:00 2001 From: Matt Westphal Date: Fri, 19 Jun 2015 14:25:50 -0700 Subject: [PATCH 26/40] Updated code based on pull request feedback --- .../ScenarioTests/UsageAggregatesTests.cs | 2 -- .../GetUsageAggregatesCommand.cs | 9 +++++---- .../Commerce/Commands.UsageAggregates/TestTheCmdLet.ps1 | 5 +++-- .../Commands.Resources/AzureResourceManager.psd1 | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs index 69834d226140..38355838a685 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs @@ -16,10 +16,8 @@ namespace Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests { - public class UsageAggregatesTests { - [Fact] public void TestGetUsageAggregatesWithDefaultParameters() { diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates/GetUsageAggregatesCommand.cs b/src/ResourceManager/Commerce/Commands.UsageAggregates/GetUsageAggregatesCommand.cs index ba3924a3577d..f53927fff024 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates/GetUsageAggregatesCommand.cs +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates/GetUsageAggregatesCommand.cs @@ -27,6 +27,8 @@ namespace Microsoft.Azure.Commands.UsageAggregates [Cmdlet(VerbsCommon.Get, "UsageAggregates"), OutputType(typeof(UsageAggregationGetResponse))] public class GetUsageAggregatesCommand : AzurePSCmdlet { + private UsageAggregationManagementClient _theClient; + [Parameter(Mandatory = true, HelpMessage = "The start of the time range to retrieve data for.")] public DateTime ReportedStartTime { get; set; } @@ -50,16 +52,15 @@ public bool ShowDetails { [Parameter(Mandatory = false, HelpMessage = "Retrieved from previous calls, this is the bookmark used for progress when the responses are paged.")] public string ContinuationToken { get; set; } - private UsageAggregationManagementClient theClient; public override void ExecuteCmdlet() { - if (theClient == null) + if (_theClient == null) { - theClient = AzureSession.ClientFactory.CreateClient(Profile, + _theClient = AzureSession.ClientFactory.CreateClient(Profile, Profile.Context.Subscription, AzureEnvironment.Endpoint.ResourceManager); } - UsageAggregationGetResponse aggregations = theClient.UsageAggregates.Get(ReportedStartTime, + UsageAggregationGetResponse aggregations = _theClient.UsageAggregates.Get(ReportedStartTime, ReportedEndTime, AggregationGranularity, ShowDetails, ContinuationToken); diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates/TestTheCmdLet.ps1 b/src/ResourceManager/Commerce/Commands.UsageAggregates/TestTheCmdLet.ps1 index 50b462747c09..5fea7b035480 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates/TestTheCmdLet.ps1 +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates/TestTheCmdLet.ps1 @@ -1,6 +1,7 @@ -$subscription = +# sample script to help the developer verify changes using PowerShell and importing the dll. +$subscription = "" -Import-Module C:\GitHub\MyGitHub\azure-powershell\src\Package\Debug\ResourceManager\AzureResourceManager\UsageAggregates\Microsoft.Azure.Commands.UsageAggregates.dll +Import-Module ""Microsoft.Azure.Commands.UsageAggregates.dll Add-AzureAccount diff --git a/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1 b/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1 index 764e616195d8..c7a3c31aab83 100644 --- a/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1 +++ b/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1 @@ -99,7 +99,7 @@ NestedModules = @( '.\ApiManagement\Microsoft.Azure.Commands.ApiManagement.dll', '.\StorageManagement\Microsoft.Azure.Commands.Management.Storage.dll', '.\OperationalInsights\Microsoft.Azure.Commands.OperationalInsights.dll', - '.\UsageAggregates\Microsoft.Azure.Commands.UsageAggregates.dll' + '.\UsageAggregates\Microsoft.Azure.Commands.UsageAggregates.dll' ) # Functions to export from this module From a1f7e7850d67e95a0d9db401510e45540c27d855 Mon Sep 17 00:00:00 2001 From: Matt Westphal Date: Fri, 19 Jun 2015 14:45:47 -0700 Subject: [PATCH 27/40] added Get-usageaggregates to changelog.txt --- ChangeLog.txt | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 27759dd0ef3c..24ea8f9bf619 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,4 +1,17 @@ -2015.06.05 version 0.9.3 +2015.06.25 version 0.9.4 +* Added Batch cmdlets + * Start-AzureBatchPoolResize + * Stop-AzureBatchPoolResize +* RedisCache cmdlets + * Set-AzureRedisCache - Added support for scaling, using RedisConfiguration instead of MaxMemoryPolicy #513 + * New-AzureRedisCache - Using RedisConfiguration instead of MaxMemoryPolicy #513 +* Azure Key Vault cmdlets + * Updated Key Vault package versions + * Fixed bugs related to secrets +* Added UsageAggregates cmdlets + * Get-UsageAggregates + +2015.06.05 version 0.9.3 * Fixed bug in Websites cmdlets related to slots #454 * Fix bug in Set-AzureResource cmdlet #456 * Fix for new azure resource of Microsoft.Storage #457 From 9d4cd925c7c6087d4934434217b8532b7cf1af79 Mon Sep 17 00:00:00 2001 From: caln-microsoft Date: Fri, 19 Jun 2015 15:15:03 -0700 Subject: [PATCH 28/40] Updated ListRestorePoints test and removed SizeBytes from RestorePointProperties --- .../Commands.Sql.Test.csproj | 3 + .../ScenarioTests/DatabaseBackupTests.cs | 9 +- .../ScenarioTests/DatabaseBackupTests.ps1 | 57 +- .../TestListDatabaseRestorePoints.json | 2505 +++++++++++++++++ .../AzureSqlDatabaseRestorePointModel.cs | 7 - .../Services/AzureSqlDatabaseBackupAdapter.cs | 3 +- 6 files changed, 2518 insertions(+), 66 deletions(-) create mode 100644 src/ResourceManager/Sql/Commands.Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.DatabaseBackupTests/TestListDatabaseRestorePoints.json diff --git a/src/ResourceManager/Sql/Commands.Sql.Test/Commands.Sql.Test.csproj b/src/ResourceManager/Sql/Commands.Sql.Test/Commands.Sql.Test.csproj index c7995b29dd3a..bba744cb5655 100644 --- a/src/ResourceManager/Sql/Commands.Sql.Test/Commands.Sql.Test.csproj +++ b/src/ResourceManager/Sql/Commands.Sql.Test/Commands.Sql.Test.csproj @@ -342,6 +342,9 @@ PreserveNewest + + PreserveNewest + PreserveNewest diff --git a/src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/DatabaseBackupTests.cs b/src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/DatabaseBackupTests.cs index db7368753fa3..e85c4ae2773d 100644 --- a/src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/DatabaseBackupTests.cs +++ b/src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/DatabaseBackupTests.cs @@ -22,16 +22,9 @@ public class DatabaseBackupTests : SqlTestsBase { [Fact] [Trait(Category.Sql, Category.CheckIn)] - public void TestDatabasePauseResume() + public void TestListDatabaseRestorePoints() { RunPowerShellTest("Test-ListDatabaseRestorePoints"); } - - [Fact] - [Trait(Category.Sql, Category.CheckIn)] - public void TestDatabasePauseResumePiped() - { - RunPowerShellTest("Test-ListDatabaseRestorePointsPiped"); - } } } diff --git a/src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/DatabaseBackupTests.ps1 b/src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/DatabaseBackupTests.ps1 index 4c8416d062a5..aa36544ac001 100644 --- a/src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/DatabaseBackupTests.ps1 +++ b/src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/DatabaseBackupTests.ps1 @@ -12,53 +12,11 @@ # limitations under the License. # ---------------------------------------------------------------------------------- -<# - .SYNOPSIS - Test getting restore points from databases. -#> -function Test-ListDatabaseRestorePoints -{ - # Setup - $location = "Japan East" - $serverVersion = "12.0"; - $rg = Create-ResourceGroupForTest - - try - { - $server = Create-ServerForTest $rg $serverVersion $location - - # Create data warehouse database with all parameters. - $databaseName = Get-DatabaseName - $dwdb = New-AzureSqlDatabase -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $databaseName ` - -Edition DataWarehouse -RequestedServiceObjectiveName DW100 - - $databaseName = Get-DatabaseName - $standarddb = New-AzureSqlDatabase -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $databaseName ` - -Edition Standard -RequestedServiceObjectiveName S0 - - # Get restore points from data warehouse database. There should be none. - $restorePoints = Get-AzureSqlDatabaseRestorePoints -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $dwdb.DatabaseName - Assert-True $restorePoints.IsEmpty - - # Get restore points from standard database.There should be 1. - $restorePoints = Resume-AzureSqlDatabase -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $standarddb.DatabaseName - $restorePoint = $restorePoints[0] - Assert-AreEqual $restorePoint.RestorePointType Continuous - Assert-Null $restorePoint.RestorePointCreationDate - Assert-NotNull $restorePoint.EarliestRestoreDate - Assert-AreEqual $restorePoint.SizeBytes 0 - } - finally - { - Remove-ResourceGroupForTest $rg - } -} - <# .SYNOPSIS Test getting restore points from databases via piped cmdlets. #> -function Test-ListDatabaseRestorePointsPiped +function Test-ListDatabaseRestorePoints { # Setup $location = "Japan East" @@ -78,16 +36,17 @@ function Test-ListDatabaseRestorePointsPiped $standarddb = New-AzureSqlDatabase -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $databaseName ` -Edition Standard -RequestedServiceObjectiveName S0 - # Get restore points from data warehouse database. - Assert-True $restorePoints.IsEmpty + # Get restore points from data warehouse database normally. + $restorePoints = Get-AzureSqlDatabaseRestorePoints -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $dwdb.DatabaseName + Assert-Null $restorePoints # Since the data warehouse database has just been created, it should not have any discrete restore points. - # Get restore points from standard database. - $restorePoints = $standarddb | Resume-AzureSqlDatabase + # Get restore points from standard database piped. + $restorePoints = $standarddb | Get-AzureSqlDatabaseRestorePoints + Assert-AreEqual $restorePoints.Count 1 # Standard databases should only have 1 continuous restore point. $restorePoint = $restorePoints[0] Assert-AreEqual $restorePoint.RestorePointType Continuous Assert-Null $restorePoint.RestorePointCreationDate - Assert-NotNull $restorePoint.EarliestRestoreDate - Assert-AreEqual $restorePoint.SizeBytes 0 + Assert-True { $restorePoint.EarliestRestoreDate -le [DateTime]::UtcNow } } finally { diff --git a/src/ResourceManager/Sql/Commands.Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.DatabaseBackupTests/TestListDatabaseRestorePoints.json b/src/ResourceManager/Sql/Commands.Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.DatabaseBackupTests/TestListDatabaseRestorePoints.json new file mode 100644 index 000000000000..cc8ffe27ad71 --- /dev/null +++ b/src/ResourceManager/Sql/Commands.Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.DatabaseBackupTests/TestListDatabaseRestorePoints.json @@ -0,0 +1,2505 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourcegroups/onesdk6354?api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlZ3JvdXBzL29uZXNkazYzNTQ/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1wcmV2aWV3", + "RequestMethod": "HEAD", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "102" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-request-id": [ + "943204be-cd3d-4912-bbb0-17bc6cc9c98f" + ], + "x-ms-correlation-request-id": [ + "943204be-cd3d-4912-bbb0-17bc6cc9c98f" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T192912Z:943204be-cd3d-4912-bbb0-17bc6cc9c98f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:29:12 GMT" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourcegroups/onesdk6354?api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlZ3JvdXBzL29uZXNkazYzNTQ/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1wcmV2aWV3", + "RequestMethod": "HEAD", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-request-id": [ + "1a6dc83b-8740-44af-93b8-3ef0c86bfec2" + ], + "x-ms-correlation-request-id": [ + "1a6dc83b-8740-44af-93b8-3ef0c86bfec2" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193538Z:1a6dc83b-8740-44af-93b8-3ef0c86bfec2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:35:38 GMT" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourcegroups/onesdk6354?api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlZ3JvdXBzL29uZXNkazYzNTQ/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354\",\r\n \"name\": \"onesdk6354\",\r\n \"location\": \"japaneast\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "176" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "38606dcb-049f-4f43-ae12-8514058733a9" + ], + "x-ms-correlation-request-id": [ + "38606dcb-049f-4f43-ae12-8514058733a9" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T192913Z:38606dcb-049f-4f43-ae12-8514058733a9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:29:12 GMT" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/resources?api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcmVzb3VyY2VzP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "12" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-request-id": [ + "519fba0e-5616-49e9-b2be-627d5af719db" + ], + "x-ms-correlation-request-id": [ + "519fba0e-5616-49e9-b2be-627d5af719db" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T192913Z:519fba0e-5616-49e9-b2be-627d5af719db" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:29:12 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourcegroups/onesdk6354/providers/Microsoft.Authorization/permissions?api-version=2014-07-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlZ3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3Blcm1pc3Npb25zP2FwaS12ZXJzaW9uPTIwMTQtMDctMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Authorization.AuthorizationManagementClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"actions\": [\r\n \"*\"\r\n ],\r\n \"notActions\": []\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "45" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "centralus:efd78b5b-8ac7-499d-9723-a8915e051691" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "38036dcd-d01f-4ad9-9e37-a27173e5e0c6" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T192914Z:38036dcd-d01f-4ad9-9e37-a27173e5e0c6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:29:13 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "e930782b-36d5-47c8-a763-22a612cfff29" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"Resource not found.\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "69" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "1354d0ba-544f-4a75-b288-18923f08048d" + ], + "x-ms-correlation-request-id": [ + "1354d0ba-544f-4a75-b288-18923f08048d" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T192914Z:1354d0ba-544f-4a75-b288-18923f08048d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:29:14 GMT" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "07644308-a247-46ee-a1c9-b6e9ba4ea380" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938\",\r\n \"name\": \"onesdk7938\",\r\n \"type\": \"Microsoft.Sql/servers\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"onesdk7938.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"testusername\",\r\n \"administratorLoginPassword\": null,\r\n \"externalAdministratorLogin\": null,\r\n \"externalAdministratorSid\": null,\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "465" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "x-ms-request-id": [ + "0d7ff9bc-90ca-4390-b0b1-0c647c639bf7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "640920c9-931e-49c3-b784-1216269373d6" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T192952Z:640920c9-931e-49c3-b784-1216269373d6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:29:51 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "fd9d4695-9100-404f-85e8-777589e51bc4" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938\",\r\n \"name\": \"onesdk7938\",\r\n \"type\": \"Microsoft.Sql/servers\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"onesdk7938.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"testusername\",\r\n \"administratorLoginPassword\": null,\r\n \"externalAdministratorLogin\": null,\r\n \"externalAdministratorSid\": null,\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "465" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "x-ms-request-id": [ + "009797b1-e86d-4db2-8231-7ec245791834" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-correlation-request-id": [ + "cdb6972e-6d47-4f51-b599-93d34d004661" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193429Z:cdb6972e-6d47-4f51-b599-93d34d004661" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:34:29 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"version\": \"12.0\",\r\n \"administratorLogin\": \"testusername\",\r\n \"administratorLoginPassword\": \"t357ingP@s5w0rd!\"\r\n },\r\n \"location\": \"Japan East\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "178" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "3fe31441-222d-4724-87f8-46dca1e2e02c" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938\",\r\n \"name\": \"onesdk7938\",\r\n \"type\": \"Microsoft.Sql/servers\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"onesdk7938.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"testusername\",\r\n \"administratorLoginPassword\": \"t357ingP@s5w0rd!\",\r\n \"externalAdministratorLogin\": null,\r\n \"externalAdministratorSid\": null,\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "479" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "x-ms-request-id": [ + "f17e5787-9851-492d-ab99-b62b4592da8d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "67cfa399-3edd-422a-ad91-ef55c050ae2b" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T192952Z:67cfa399-3edd-422a-ad91-ef55c050ae2b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:29:51 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4L2RhdGFiYXNlcy9vbmVzZGs3NTUzP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "4cc8de49-f204-4427-a52c-c24987424bda" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"Resource not found.\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "69" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "5ee91d22-934a-461d-a6b6-d788600ba6df" + ], + "x-ms-correlation-request-id": [ + "5ee91d22-934a-461d-a6b6-d788600ba6df" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T192952Z:5ee91d22-934a-461d-a6b6-d788600ba6df" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:29:51 GMT" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4L2RhdGFiYXNlcy9vbmVzZGs3NTUzP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"edition\": \"DataWarehouse\",\r\n \"maxSizeBytes\": \"0\",\r\n \"requestedServiceObjectiveName\": \"DW100\"\r\n },\r\n \"location\": \"Japan East\",\r\n \"tags\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "177" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "7407a6cd-d29e-4c4c-bb2f-d87949d9e916" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2015-06-19T12:29:53.851-07:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Retry-After": [ + "30" + ], + "x-ms-request-id": [ + "a20c74ae-0629-4b92-9a80-63d8c8dc5482" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "206b3aef-5ae4-4264-9468-f506fb51ff78" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T192954Z:206b3aef-5ae4-4264-9468-f506fb51ff78" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:29:53 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4L2RhdGFiYXNlcy9vbmVzZGs3NTUzL29wZXJhdGlvblJlc3VsdHMvYTIwYzc0YWUtMDYyOS00YjkyLTlhODAtNjNkOGM4ZGM1NDgyP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "7407a6cd-d29e-4c4c-bb2f-d87949d9e916" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2015-06-19T19:29:53.82Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json" + ], + "Retry-After": [ + "30" + ], + "x-ms-request-id": [ + "88f51d21-6e6d-4eb1-8d50-fa813731eb35" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "9815a440-95f9-4371-9997-9e2b95b56ebc" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T192955Z:9815a440-95f9-4371-9997-9e2b95b56ebc" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:29:54 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4L2RhdGFiYXNlcy9vbmVzZGs3NTUzL29wZXJhdGlvblJlc3VsdHMvYTIwYzc0YWUtMDYyOS00YjkyLTlhODAtNjNkOGM4ZGM1NDgyP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "7407a6cd-d29e-4c4c-bb2f-d87949d9e916" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2015-06-19T19:29:53.82Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json" + ], + "Retry-After": [ + "30" + ], + "x-ms-request-id": [ + "e2e69a7c-d1df-4536-b795-fe7209fd96f0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "25789c53-4f65-4e41-b6d4-03df3e12018f" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193026Z:25789c53-4f65-4e41-b6d4-03df3e12018f" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:30:26 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4L2RhdGFiYXNlcy9vbmVzZGs3NTUzL29wZXJhdGlvblJlc3VsdHMvYTIwYzc0YWUtMDYyOS00YjkyLTlhODAtNjNkOGM4ZGM1NDgyP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "7407a6cd-d29e-4c4c-bb2f-d87949d9e916" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2015-06-19T19:29:53.82Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json" + ], + "Retry-After": [ + "30" + ], + "x-ms-request-id": [ + "cb3da5c2-960b-4658-a9a2-9bb47dd56fce" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "8aa74c32-8bbb-4d5b-a9a5-87d12e0b170a" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193042Z:8aa74c32-8bbb-4d5b-a9a5-87d12e0b170a" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:30:41 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4L2RhdGFiYXNlcy9vbmVzZGs3NTUzL29wZXJhdGlvblJlc3VsdHMvYTIwYzc0YWUtMDYyOS00YjkyLTlhODAtNjNkOGM4ZGM1NDgyP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "7407a6cd-d29e-4c4c-bb2f-d87949d9e916" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2015-06-19T19:29:53.82Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json" + ], + "Retry-After": [ + "30" + ], + "x-ms-request-id": [ + "ae9baba3-0069-4049-99cb-3f7d669e8896" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "2b72fe51-750e-4595-b421-f9f583990727" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193058Z:2b72fe51-750e-4595-b421-f9f583990727" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:30:57 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4L2RhdGFiYXNlcy9vbmVzZGs3NTUzL29wZXJhdGlvblJlc3VsdHMvYTIwYzc0YWUtMDYyOS00YjkyLTlhODAtNjNkOGM4ZGM1NDgyP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "7407a6cd-d29e-4c4c-bb2f-d87949d9e916" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2015-06-19T19:29:53.82Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json" + ], + "Retry-After": [ + "30" + ], + "x-ms-request-id": [ + "1b66935a-4d6c-46b0-8e84-ca82249d4a58" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "134b8c32-e486-4e4e-bafc-66ac8a061595" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193114Z:134b8c32-e486-4e4e-bafc-66ac8a061595" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:31:13 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4L2RhdGFiYXNlcy9vbmVzZGs3NTUzL29wZXJhdGlvblJlc3VsdHMvYTIwYzc0YWUtMDYyOS00YjkyLTlhODAtNjNkOGM4ZGM1NDgyP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "7407a6cd-d29e-4c4c-bb2f-d87949d9e916" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2015-06-19T19:29:53.82Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json" + ], + "Retry-After": [ + "30" + ], + "x-ms-request-id": [ + "0613557d-1e55-4e0f-b36e-ae2e2c44f961" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "7aa7ea31-9c2a-489a-8679-43e9d2b5063d" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193130Z:7aa7ea31-9c2a-489a-8679-43e9d2b5063d" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:31:29 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4L2RhdGFiYXNlcy9vbmVzZGs3NTUzL29wZXJhdGlvblJlc3VsdHMvYTIwYzc0YWUtMDYyOS00YjkyLTlhODAtNjNkOGM4ZGM1NDgyP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "7407a6cd-d29e-4c4c-bb2f-d87949d9e916" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2015-06-19T19:29:53.82Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json" + ], + "Retry-After": [ + "30" + ], + "x-ms-request-id": [ + "f55cc5aa-c3dc-4050-a2d3-bf9c5f4b4024" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "2efd2d89-e482-4851-8a3b-12b952a51904" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193145Z:2efd2d89-e482-4851-8a3b-12b952a51904" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:31:45 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4L2RhdGFiYXNlcy9vbmVzZGs3NTUzL29wZXJhdGlvblJlc3VsdHMvYTIwYzc0YWUtMDYyOS00YjkyLTlhODAtNjNkOGM4ZGM1NDgyP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "7407a6cd-d29e-4c4c-bb2f-d87949d9e916" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2015-06-19T19:29:53.82Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json" + ], + "Retry-After": [ + "30" + ], + "x-ms-request-id": [ + "9eeec913-99f3-4104-a9f8-3e0c0a933c25" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "26827f51-9ee0-4a3d-b3cf-443a35f0e281" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193202Z:26827f51-9ee0-4a3d-b3cf-443a35f0e281" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:32:02 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4L2RhdGFiYXNlcy9vbmVzZGs3NTUzL29wZXJhdGlvblJlc3VsdHMvYTIwYzc0YWUtMDYyOS00YjkyLTlhODAtNjNkOGM4ZGM1NDgyP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "7407a6cd-d29e-4c4c-bb2f-d87949d9e916" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2015-06-19T19:29:53.82Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json" + ], + "Retry-After": [ + "30" + ], + "x-ms-request-id": [ + "6e73ef86-785a-4802-80de-004f70a27754" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-correlation-request-id": [ + "26c02787-6aa4-4c5d-9ab4-e0891e2da177" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193218Z:26c02787-6aa4-4c5d-9ab4-e0891e2da177" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:32:18 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4L2RhdGFiYXNlcy9vbmVzZGs3NTUzL29wZXJhdGlvblJlc3VsdHMvYTIwYzc0YWUtMDYyOS00YjkyLTlhODAtNjNkOGM4ZGM1NDgyP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "7407a6cd-d29e-4c4c-bb2f-d87949d9e916" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2015-06-19T19:29:53.82Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json" + ], + "Retry-After": [ + "30" + ], + "x-ms-request-id": [ + "b2e7a1a4-06a1-48df-8f22-52eb9d326d66" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-correlation-request-id": [ + "1af63676-b680-45e7-8f50-71327b4b880d" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193234Z:1af63676-b680-45e7-8f50-71327b4b880d" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:32:33 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4L2RhdGFiYXNlcy9vbmVzZGs3NTUzL29wZXJhdGlvblJlc3VsdHMvYTIwYzc0YWUtMDYyOS00YjkyLTlhODAtNjNkOGM4ZGM1NDgyP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "7407a6cd-d29e-4c4c-bb2f-d87949d9e916" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2015-06-19T19:29:53.82Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json" + ], + "Retry-After": [ + "30" + ], + "x-ms-request-id": [ + "af5507a0-5631-445c-98ca-58613b31a7b0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "86b4cd45-4b7b-48dc-9e72-a7893ebd2503" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193250Z:86b4cd45-4b7b-48dc-9e72-a7893ebd2503" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:32:49 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4L2RhdGFiYXNlcy9vbmVzZGs3NTUzL29wZXJhdGlvblJlc3VsdHMvYTIwYzc0YWUtMDYyOS00YjkyLTlhODAtNjNkOGM4ZGM1NDgyP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "7407a6cd-d29e-4c4c-bb2f-d87949d9e916" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2015-06-19T19:29:53.82Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json" + ], + "Retry-After": [ + "30" + ], + "x-ms-request-id": [ + "29d6efdb-49df-46f4-8a3d-f07bf625cace" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "9bd24bde-2881-43b5-9995-ad12363b849c" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193306Z:9bd24bde-2881-43b5-9995-ad12363b849c" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:33:06 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4L2RhdGFiYXNlcy9vbmVzZGs3NTUzL29wZXJhdGlvblJlc3VsdHMvYTIwYzc0YWUtMDYyOS00YjkyLTlhODAtNjNkOGM4ZGM1NDgyP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "7407a6cd-d29e-4c4c-bb2f-d87949d9e916" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2015-06-19T19:29:53.82Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json" + ], + "Retry-After": [ + "30" + ], + "x-ms-request-id": [ + "ca032dfd-46e9-49fd-af3d-0b105b495f3b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "cd31cc45-ad1c-48a8-b72f-8d19689bd629" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193322Z:cd31cc45-ad1c-48a8-b72f-8d19689bd629" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:33:22 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4L2RhdGFiYXNlcy9vbmVzZGs3NTUzL29wZXJhdGlvblJlc3VsdHMvYTIwYzc0YWUtMDYyOS00YjkyLTlhODAtNjNkOGM4ZGM1NDgyP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "7407a6cd-d29e-4c4c-bb2f-d87949d9e916" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2015-06-19T19:29:53.82Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json" + ], + "Retry-After": [ + "30" + ], + "x-ms-request-id": [ + "64c2bbb3-aabf-4d8f-817d-9fd464ed42f4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "095d5e4b-d2f4-4a40-b96b-ae8a5ed663be" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193338Z:095d5e4b-d2f4-4a40-b96b-ae8a5ed663be" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:33:38 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4L2RhdGFiYXNlcy9vbmVzZGs3NTUzL29wZXJhdGlvblJlc3VsdHMvYTIwYzc0YWUtMDYyOS00YjkyLTlhODAtNjNkOGM4ZGM1NDgyP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "7407a6cd-d29e-4c4c-bb2f-d87949d9e916" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2015-06-19T19:29:53.82Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json" + ], + "Retry-After": [ + "30" + ], + "x-ms-request-id": [ + "389f7e09-e5c7-4137-a253-ddb911a9beb6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-correlation-request-id": [ + "9ac4bb72-d8e9-41d8-b96b-b53ce1d17535" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193357Z:9ac4bb72-d8e9-41d8-b96b-b53ce1d17535" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:33:56 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4L2RhdGFiYXNlcy9vbmVzZGs3NTUzL29wZXJhdGlvblJlc3VsdHMvYTIwYzc0YWUtMDYyOS00YjkyLTlhODAtNjNkOGM4ZGM1NDgyP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "7407a6cd-d29e-4c4c-bb2f-d87949d9e916" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2015-06-19T19:29:53.82Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json" + ], + "Retry-After": [ + "30" + ], + "x-ms-request-id": [ + "871a6de8-c513-4ed6-a71b-857e17315c5b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "06da82ea-2d7d-42de-b9b5-888732551d8d" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193413Z:06da82ea-2d7d-42de-b9b5-888732551d8d" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:34:12 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/operationResults/a20c74ae-0629-4b92-9a80-63d8c8dc5482?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4L2RhdGFiYXNlcy9vbmVzZGs3NTUzL29wZXJhdGlvblJlc3VsdHMvYTIwYzc0YWUtMDYyOS00YjkyLTlhODAtNjNkOGM4ZGM1NDgyP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "7407a6cd-d29e-4c4c-bb2f-d87949d9e916" + ] + }, + "ResponseBody": "{\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553\",\r\n \"name\": \"onesdk7553\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user,datawarehouse\",\r\n \"properties\": {\r\n \"databaseId\": \"8316cddc-8ec2-4d7c-9e55-e937b6c047bb\",\r\n \"edition\": \"DataWarehouse\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"DW100\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2015-06-19T19:29:53.96Z\",\r\n \"currentServiceObjectiveId\": \"4e63cb0e-91b9-46fd-b05c-51fdd2367618\",\r\n \"requestedServiceObjectiveId\": \"4e63cb0e-91b9-46fd-b05c-51fdd2367618\",\r\n \"requestedServiceObjectiveName\": null,\r\n \"defaultSecondaryLocation\": \"North Europe\",\r\n \"earliestRestoreDate\": null,\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "822" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "x-ms-request-id": [ + "0dbb44c7-3ebc-4a65-b5a7-36c51a832098" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-correlation-request-id": [ + "64c16535-8826-496c-be3d-fc20006b23cd" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193429Z:64c16535-8826-496c-be3d-fc20006b23cd" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:34:28 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk6247?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4L2RhdGFiYXNlcy9vbmVzZGs2MjQ3P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "b3b0d0e4-4112-4213-920a-4f66f8190c16" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"Resource not found.\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "69" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "4d640382-d4e8-4be7-9159-633257f41988" + ], + "x-ms-correlation-request-id": [ + "4d640382-d4e8-4be7-9159-633257f41988" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193429Z:4d640382-d4e8-4be7-9159-633257f41988" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:34:28 GMT" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk6247?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4L2RhdGFiYXNlcy9vbmVzZGs2MjQ3P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"edition\": \"Standard\",\r\n \"maxSizeBytes\": \"0\",\r\n \"requestedServiceObjectiveName\": \"S0\"\r\n },\r\n \"location\": \"Japan East\",\r\n \"tags\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "169" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "3e0032c6-4b7a-47bd-b395-378a7baf1b70" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2015-06-19T12:34:30.938-07:00\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Retry-After": [ + "30" + ], + "x-ms-request-id": [ + "55f10879-c355-4feb-b225-ac6bb433cd66" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "fb0415ad-222e-4c1b-bf8c-6b7822814d1c" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193431Z:fb0415ad-222e-4c1b-bf8c-6b7822814d1c" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:34:30 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk6247/operationResults/55f10879-c355-4feb-b225-ac6bb433cd66?api-version=2014-04-01-Preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk6247/operationResults/55f10879-c355-4feb-b225-ac6bb433cd66?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4L2RhdGFiYXNlcy9vbmVzZGs2MjQ3L29wZXJhdGlvblJlc3VsdHMvNTVmMTA4NzktYzM1NS00ZmViLWIyMjUtYWM2YmI0MzNjZDY2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "3e0032c6-4b7a-47bd-b395-378a7baf1b70" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2015-06-19T19:34:30.923Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json" + ], + "Retry-After": [ + "30" + ], + "x-ms-request-id": [ + "8e0fd90e-50e1-4891-be75-3936bf5df4d3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14977" + ], + "x-ms-correlation-request-id": [ + "1aa1ec0e-9650-409a-a0f1-f63c74874890" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193432Z:1aa1ec0e-9650-409a-a0f1-f63c74874890" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:34:32 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk6247/operationResults/55f10879-c355-4feb-b225-ac6bb433cd66?api-version=2014-04-01-Preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk6247/operationResults/55f10879-c355-4feb-b225-ac6bb433cd66?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4L2RhdGFiYXNlcy9vbmVzZGs2MjQ3L29wZXJhdGlvblJlc3VsdHMvNTVmMTA4NzktYzM1NS00ZmViLWIyMjUtYWM2YmI0MzNjZDY2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "3e0032c6-4b7a-47bd-b395-378a7baf1b70" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2015-06-19T19:34:30.923Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json" + ], + "Retry-After": [ + "30" + ], + "x-ms-request-id": [ + "1f391828-e326-462c-976e-4edcbd8c76c5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-correlation-request-id": [ + "c0684d4e-0869-46f0-96da-98b806b29bcc" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193503Z:c0684d4e-0869-46f0-96da-98b806b29bcc" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:35:03 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk6247/operationResults/55f10879-c355-4feb-b225-ac6bb433cd66?api-version=2014-04-01-Preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk6247/operationResults/55f10879-c355-4feb-b225-ac6bb433cd66?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4L2RhdGFiYXNlcy9vbmVzZGs2MjQ3L29wZXJhdGlvblJlc3VsdHMvNTVmMTA4NzktYzM1NS00ZmViLWIyMjUtYWM2YmI0MzNjZDY2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "3e0032c6-4b7a-47bd-b395-378a7baf1b70" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2015-06-19T19:34:30.923Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json" + ], + "Retry-After": [ + "30" + ], + "x-ms-request-id": [ + "41a739de-9c76-4d30-922e-292c419d22aa" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14975" + ], + "x-ms-correlation-request-id": [ + "44ed6bf9-f757-48c8-befa-f4abe6194046" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193519Z:44ed6bf9-f757-48c8-befa-f4abe6194046" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:35:18 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk6247/operationResults/55f10879-c355-4feb-b225-ac6bb433cd66?api-version=2014-04-01-Preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk6247/operationResults/55f10879-c355-4feb-b225-ac6bb433cd66?api-version=2014-04-01-Preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4L2RhdGFiYXNlcy9vbmVzZGs2MjQ3L29wZXJhdGlvblJlc3VsdHMvNTVmMTA4NzktYzM1NS00ZmViLWIyMjUtYWM2YmI0MzNjZDY2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "3e0032c6-4b7a-47bd-b395-378a7baf1b70" + ] + }, + "ResponseBody": "{\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk6247\",\r\n \"name\": \"onesdk6247\",\r\n \"type\": \"Microsoft.Sql/servers/databases\",\r\n \"location\": \"Japan East\",\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"databaseId\": \"52dc2f9e-fc25-47fc-b8f4-908d9897173f\",\r\n \"edition\": \"Standard\",\r\n \"status\": \"Online\",\r\n \"serviceLevelObjective\": \"S0\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": \"268435456000\",\r\n \"creationDate\": \"2015-06-19T19:34:31.063Z\",\r\n \"currentServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveId\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"requestedServiceObjectiveName\": null,\r\n \"defaultSecondaryLocation\": \"North Europe\",\r\n \"earliestRestoreDate\": \"2015-06-19T19:45:23.23Z\",\r\n \"elasticPoolName\": null,\r\n \"containmentState\": 2\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "822" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "x-ms-request-id": [ + "8d545204-626a-450e-baac-59f7bb2f291b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14974" + ], + "x-ms-correlation-request-id": [ + "253d97f5-9f6b-4dfc-8f1a-10ab50b3d47d" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193535Z:253d97f5-9f6b-4dfc-8f1a-10ab50b3d47d" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:35:34 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk7553/restorePoints?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4L2RhdGFiYXNlcy9vbmVzZGs3NTUzL3Jlc3RvcmVQb2ludHM/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "216a41a3-60cc-4be4-b5ca-6f0cb85a4634" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "12" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "x-ms-request-id": [ + "dcf7b308-8487-4011-878b-a741ba5ab8b5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14973" + ], + "x-ms-correlation-request-id": [ + "d2d31ee9-02bd-44b9-a077-5f76b4283b0e" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193536Z:d2d31ee9-02bd-44b9-a077-5f76b4283b0e" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:35:36 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk6247/restorePoints?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlR3JvdXBzL29uZXNkazYzNTQvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9vbmVzZGs3OTM4L2RhdGFiYXNlcy9vbmVzZGs2MjQ3L3Jlc3RvcmVQb2ludHM/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Sql.SqlManagementClient/0.9.0.0" + ], + "x-ms-client-request-id": [ + "08d07e1c-758f-47c4-9ab2-eeefd63279d3" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourceGroups/onesdk6354/providers/Microsoft.Sql/servers/onesdk7938/databases/onesdk6247/restorepoints/ContinuousRestorePoint\",\r\n \"name\": \"ContinuousRestorePoint\",\r\n \"location\": \"Japan East\",\r\n \"type\": \"Microsoft.Sql/servers/databases/restorePoints\",\r\n \"properties\": {\r\n \"restorePointType\": \"CONTINUOUS\",\r\n \"earliestRestoreDate\": \"2015-06-19T19:45:23.23Z\",\r\n \"restorePointCreationDate\": null\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "437" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "x-ms-request-id": [ + "615e70fe-e731-4b0a-839d-3755140c81bf" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14972" + ], + "x-ms-correlation-request-id": [ + "1c73cbe0-790f-4812-9b66-111292550b68" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193537Z:1c73cbe0-790f-4812-9b66-111292550b68" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:35:37 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/resourcegroups/onesdk6354?api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL3Jlc291cmNlZ3JvdXBzL29uZXNkazYzNTQ/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1wcmV2aWV3", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "814e0f79-0df5-400a-8694-da0401926dfc" + ], + "x-ms-correlation-request-id": [ + "814e0f79-0df5-400a-8694-da0401926dfc" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193540Z:814e0f79-0df5-400a-8694-da0401926dfc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:35:40 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1PTkVTREs2MzU0LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2014-04-01-preview" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1PTkVTREs2MzU0LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFQVGtWVFJFczJNelUwTFVwQlVFRk9SVUZUVkNJc0ltcHZZa3h2WTJGMGFXOXVJam9pYW1Gd1lXNWxZWE4wSW4wP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2014-04-01-preview" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-request-id": [ + "a1ff94b0-f55a-4263-b8d4-ee754ba3ad80" + ], + "x-ms-correlation-request-id": [ + "a1ff94b0-f55a-4263-b8d4-ee754ba3ad80" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193541Z:a1ff94b0-f55a-4263-b8d4-ee754ba3ad80" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:35:40 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1PTkVTREs2MzU0LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2014-04-01-preview" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1PTkVTREs2MzU0LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFQVGtWVFJFczJNelUwTFVwQlVFRk9SVUZUVkNJc0ltcHZZa3h2WTJGMGFXOXVJam9pYW1Gd1lXNWxZWE4wSW4wP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2014-04-01-preview" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "cdb5d43d-1b24-4ad2-b38c-778fc2f4b488" + ], + "x-ms-correlation-request-id": [ + "cdb5d43d-1b24-4ad2-b38c-778fc2f4b488" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193556Z:cdb5d43d-1b24-4ad2-b38c-778fc2f4b488" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:35:56 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1PTkVTREs2MzU0LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2014-04-01-preview" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1PTkVTREs2MzU0LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFQVGtWVFJFczJNelUwTFVwQlVFRk9SVUZUVkNJc0ltcHZZa3h2WTJGMGFXOXVJam9pYW1Gd1lXNWxZWE4wSW4wP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2014-04-01-preview" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-request-id": [ + "85893316-8181-4ce6-b611-05644cb64501" + ], + "x-ms-correlation-request-id": [ + "85893316-8181-4ce6-b611-05644cb64501" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193612Z:85893316-8181-4ce6-b611-05644cb64501" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:36:11 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1PTkVTREs2MzU0LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2014-04-01-preview" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1PTkVTREs2MzU0LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFQVGtWVFJFczJNelUwTFVwQlVFRk9SVUZUVkNJc0ltcHZZa3h2WTJGMGFXOXVJam9pYW1Gd1lXNWxZWE4wSW4wP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2014-04-01-preview" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-request-id": [ + "9dcff8f0-48c6-428f-a0bf-15e6503190a9" + ], + "x-ms-correlation-request-id": [ + "9dcff8f0-48c6-428f-a0bf-15e6503190a9" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193629Z:9dcff8f0-48c6-428f-a0bf-15e6503190a9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:36:29 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1PTkVTREs2MzU0LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2014-04-01-preview" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1PTkVTREs2MzU0LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFQVGtWVFJFczJNelUwTFVwQlVFRk9SVUZUVkNJc0ltcHZZa3h2WTJGMGFXOXVJam9pYW1Gd1lXNWxZWE4wSW4wP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2014-04-01-preview" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-request-id": [ + "c7d24e62-68b7-447b-8a46-0d23aaa4178c" + ], + "x-ms-correlation-request-id": [ + "c7d24e62-68b7-447b-8a46-0d23aaa4178c" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193645Z:c7d24e62-68b7-447b-8a46-0d23aaa4178c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:36:44 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1PTkVTREs2MzU0LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2014-04-01-preview" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1PTkVTREs2MzU0LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFQVGtWVFJFczJNelUwTFVwQlVFRk9SVUZUVkNJc0ltcHZZa3h2WTJGMGFXOXVJam9pYW1Gd1lXNWxZWE4wSW4wP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2014-04-01-preview" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-request-id": [ + "bbf2d3a0-e06f-4892-829b-be5736f8d820" + ], + "x-ms-correlation-request-id": [ + "bbf2d3a0-e06f-4892-829b-be5736f8d820" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193701Z:bbf2d3a0-e06f-4892-829b-be5736f8d820" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:37:01 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1PTkVTREs2MzU0LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2014-04-01-preview" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1dc9187a-986d-4888-8dcf-af0bd43df99e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1PTkVTREs2MzU0LUpBUEFORUFTVCIsImpvYkxvY2F0aW9uIjoiamFwYW5lYXN0In0?api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWRjOTE4N2EtOTg2ZC00ODg4LThkY2YtYWYwYmQ0M2RmOTllL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFQVGtWVFJFczJNelUwTFVwQlVFRk9SVUZUVkNJc0ltcHZZa3h2WTJGMGFXOXVJam9pYW1Gd1lXNWxZWE4wSW4wP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2014-04-01-preview" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-request-id": [ + "946ec16a-f18d-45fc-9e98-ed73282960a2" + ], + "x-ms-correlation-request-id": [ + "946ec16a-f18d-45fc-9e98-ed73282960a2" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150619T193717Z:946ec16a-f18d-45fc-9e98-ed73282960a2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 19 Jun 2015 19:37:17 GMT" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "Test-ListDatabaseRestorePoints": [ + "onesdk6354", + "onesdk7938", + "onesdk7553", + "onesdk6247" + ] + }, + "Variables": { + "SubscriptionId": "1dc9187a-986d-4888-8dcf-af0bd43df99e" + } +} \ No newline at end of file diff --git a/src/ResourceManager/Sql/Commands.Sql/Database Backup/Model/AzureSqlDatabaseRestorePointModel.cs b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Model/AzureSqlDatabaseRestorePointModel.cs index 226b2d740b6d..2311a7c77ed9 100644 --- a/src/ResourceManager/Sql/Commands.Sql/Database Backup/Model/AzureSqlDatabaseRestorePointModel.cs +++ b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Model/AzureSqlDatabaseRestorePointModel.cs @@ -56,12 +56,5 @@ public class AzureSqlDatabaseRestorePointModel /// Earliest restore time. Populated when restorePointType = DISCRETE. Null otherwise. /// public DateTime? EarliestRestoreDate { get; set; } - - /// - /// Size of the backup in blob storage. - /// For discrete restore point, the value is the database snap size; for continuous restore point, the value is the - /// total backup storage usage of the database. - /// - public int SizeBytes { get; set; } } } diff --git a/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupAdapter.cs b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupAdapter.cs index f6a9cf3adc68..2d74562b2ecf 100644 --- a/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupAdapter.cs +++ b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupAdapter.cs @@ -83,8 +83,7 @@ internal IEnumerable ListRestorePoints(string Location = restorePoint.Location, RestorePointType = restorePoint.Properties.RestorePointType, RestorePointCreationDate = restorePoint.Properties.RestorePointCreationDate, - EarliestRestoreDate = restorePoint.Properties.EarliestRestoreDate, - SizeBytes = restorePoint.Properties.SizeBytes + EarliestRestoreDate = restorePoint.Properties.EarliestRestoreDate }; }).ToList(); } From bf82141de3a03b7fe542e8284673219e70e608d9 Mon Sep 17 00:00:00 2001 From: Matt Westphal Date: Fri, 19 Jun 2015 15:47:46 -0700 Subject: [PATCH 29/40] added UsageAggregates to the installer --- setup/azurecmdfiles.wxi | 38 + setup/azurepowershell.sln | 9 +- .../Commands.UsageAggregates.Test.csproj | 1 - .../ScenarioTests/UsageAggregatesTestBase.cs | 62 - .../ScenarioTests/UsageAggregatesTests.cs | 2 + .../Commands.UsageAggregates.csproj | 31 +- ...zure.Commands.UsageAggregates.dll-help.xml | 2009 +++++++++++++++++ 7 files changed, 2057 insertions(+), 95 deletions(-) delete mode 100644 src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTestBase.cs create mode 100644 src/ResourceManager/Commerce/Commands.UsageAggregates/Microsoft.Azure.Commands.UsageAggregates.dll-help.xml diff --git a/setup/azurecmdfiles.wxi b/setup/azurecmdfiles.wxi index b82d97f7848c..ca79a4a4e7d3 100644 --- a/setup/azurecmdfiles.wxi +++ b/setup/azurecmdfiles.wxi @@ -1881,6 +1881,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -4507,6 +4536,15 @@ + + + + + + + + + diff --git a/setup/azurepowershell.sln b/setup/azurepowershell.sln index d6782b6e5edc..00d02770f5b4 100644 --- a/setup/azurepowershell.sln +++ b/setup/azurepowershell.sln @@ -1,8 +1,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 2013 -VisualStudioVersion = 12.0.30110.0 +VisualStudioVersion = 12.0.31101.0 MinimumVisualStudioVersion = 10.0.40219.1 - Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "azurepowershell", "azurepowershell.wixproj", "{36D6E303-E057-4963-A093-C7AAE0FD92B3}" ProjectSection(ProjectDependencies) = postProject {EA5BD11B-10B3-433D-A250-92AE76669D8D} = {EA5BD11B-10B3-433D-A250-92AE76669D8D} @@ -16,10 +15,8 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {36D6E303-E057-4963-A093-C7AAE0FD92B3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {36D6E303-E057-4963-A093-C7AAE0FD92B3}.Debug|Any CPU.Build.0 = Debug|Any CPU - {36D6E303-E057-4963-A093-C7AAE0FD92B3}.Release|Any CPU.ActiveCfg = Release|Any CPU - {36D6E303-E057-4963-A093-C7AAE0FD92B3}.Release|Any CPU.Build.0 = Release|Any CPU + {36D6E303-E057-4963-A093-C7AAE0FD92B3}.Debug|Any CPU.ActiveCfg = Debug|x86 + {36D6E303-E057-4963-A093-C7AAE0FD92B3}.Release|Any CPU.ActiveCfg = Release|x86 {EA5BD11B-10B3-433D-A250-92AE76669D8D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {EA5BD11B-10B3-433D-A250-92AE76669D8D}.Debug|Any CPU.Build.0 = Debug|Any CPU {EA5BD11B-10B3-433D-A250-92AE76669D8D}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj index e34e875862ae..3254f044b368 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj @@ -99,7 +99,6 @@ - diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTestBase.cs b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTestBase.cs deleted file mode 100644 index 78b32c2d01d6..000000000000 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTestBase.cs +++ /dev/null @@ -1,62 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System; -using Microsoft.Azure.Commerce.UsageAggregates; -using Microsoft.Azure.Common.Authentication; -using Microsoft.Azure.Test; -using Microsoft.WindowsAzure.Commands.ScenarioTest; - -namespace Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests -{ - public abstract class UsageAggregatesTestBase : IDisposable - { - private EnvironmentSetupHelper helper; - - protected UsageAggregatesTestBase() - { - helper = new EnvironmentSetupHelper(); - } - - protected void SetupManagementClients() - { - var usageManagementClient = GetUsageAggregatesManagementClient(); - helper.SetupManagementClients(usageManagementClient); - } - - protected void RunPowerShellTest(params string[] scripts) - { - using (UndoContext context = UndoContext.Current) - { - context.Start(TestUtilities.GetCallingClass(2), TestUtilities.GetCurrentMethodName(2)); - - SetupManagementClients(); - - helper.SetupEnvironment(AzureModule.AzureResourceManager); - helper.SetupModules(AzureModule.AzureResourceManager, "ScenarioTests\\" + this.GetType().Name + ".ps1"); - - helper.RunPowerShellTest(scripts); - } - } - - protected UsageAggregationManagementClient GetUsageAggregatesManagementClient() - { - return TestBase.GetServiceClient(new CSMTestEnvironmentFactory()); - } - - public void Dispose() - { - } - } -} diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs index 38355838a685..eeab9bd60eeb 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/ScenarioTests/UsageAggregatesTests.cs @@ -12,6 +12,7 @@ // limitations under the License. // ---------------------------------------------------------------------------------- +using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests @@ -19,6 +20,7 @@ namespace Microsoft.Azure.Commands.UsageAggregates.Test.ScenarioTests public class UsageAggregatesTests { [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetUsageAggregatesWithDefaultParameters() { UsageAggregatesTestController.NewInstance.RunPsTest("Test-GetUsageAggregatesWithDefaultParameters"); diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates/Commands.UsageAggregates.csproj b/src/ResourceManager/Commerce/Commands.UsageAggregates/Commands.UsageAggregates.csproj index 7fd37d070ed7..fd65cdd2f81c 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates/Commands.UsageAggregates.csproj +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates/Commands.UsageAggregates.csproj @@ -49,10 +49,6 @@ ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.0.26-preview\lib\net45\Microsoft.Azure.Common.Authentication.dll True - - ..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll - True - ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.14.201151115\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll True @@ -61,18 +57,6 @@ ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.14.201151115\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms.dll True - - ..\..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.dll - True - - - ..\..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.dll - True - - - ..\..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll - True - ..\..\..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll True @@ -81,19 +65,9 @@ - - ..\..\..\packages\Microsoft.Net.Http.2.2.22\lib\net45\System.Net.Http.Extensions.dll - True - - - ..\..\..\packages\Microsoft.Net.Http.2.2.22\lib\net45\System.Net.Http.Primitives.dll - True - - - @@ -111,6 +85,11 @@ + + + PreserveNewest + + diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates/Microsoft.Azure.Commands.UsageAggregates.dll-help.xml b/src/ResourceManager/Commerce/Commands.UsageAggregates/Microsoft.Azure.Commands.UsageAggregates.dll-help.xml new file mode 100644 index 000000000000..9d7bf40300b9 --- /dev/null +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates/Microsoft.Azure.Commands.UsageAggregates.dll-help.xml @@ -0,0 +1,2009 @@ + + + + + Add-AzureTrafficManagerEndpoint + + Adds an endpoint to a Traffic Manager profile. + + + + + Add + AzureTrafficManagerEndpoint + + + + + The Add-AzureTrafficManagerEndpoint cmdlet adds an endpoint to a Microsoft Azure Traffic Manager profile. After you add an endpoint, pass the result to the Set-AzureTrafficManagerProfile cmdlet by using the pipeline operator. That cmdlet connects to Azure to save your changes. + + + + Add-AzureTrafficManagerEndpoint + + DomainName + + Specifies the domain name of the endpoint to add. + + String + + + Location + + Specifies the location of the endpoint the cmdlet adds. This must be an Azure location.This parameter must contain a value for endpoints of the type "Any" in a profile that has the load balancing method set to "Performance". You can find a list of possible values for this parameter under Name by calling List Locations. For more information, see List Locations at http://msdn.microsoft.com/en-us/library/gg441293.aspx. + + String + + + Type + + Specifies the type of endpoint. Valid values are: + +-- CloudService +-- AzureWebsite +-- Any +-- TrafficManager + +If there is more than one AzureWebsite endpoint, the endpoints must be in different datacenters. + + String + + + Status + + Specifies the status of the monitoring endpoint. Valid values are: + +-- Enabled +-- Disabled + +If you specify a value of Enabled, Traffic Manager monitors the endpoint and the load-balancing method considers it when managing traffic. + + String + + + Weight + + Specifies the weight of the endpoint the cmdlet adds. The valid value range for this parameter is [1,1000].This parameter is only used for RoundRobin load balancing policies. + + Nullable`1[Int32] + + + MinChildEndpoints + + Specifies the minimum amount of endpoints the nested profile has to have online for this endpoint to be considered online. The valid value for this parameter should be bigger than 0.This parameter is only used for TrafficManager endpoint types. + + Nullable`1[Int32] + + + TrafficManagerProfile + + Specifies the Traffic Manager profile object to which to add the endpoint. + + IProfileWithDefinition + + + + + + DomainName + + Specifies the domain name of the endpoint to add. + + String + + String + + + none + + + Location + + Specifies the location of the endpoint the cmdlet adds. This must be an Azure location.This parameter must contain a value for endpoints of the type "Any" in a profile that has the load balancing method set to "Performance". You can find a list of possible values for this parameter under Name by calling List Locations. For more information, see List Locations at http://msdn.microsoft.com/en-us/library/gg441293.aspx. + + String + + String + + + none + + + Type + + Specifies the type of endpoint. Valid values are: + +-- CloudService +-- AzureWebsite +-- Any +-- TrafficManager + +If there is more than one AzureWebsite endpoint, the endpoints must be in different datacenters. + + String + + String + + + none + + + Status + + Specifies the status of the monitoring endpoint. Valid values are: + +-- Enabled +-- Disabled + +If you specify a value of Enabled, Traffic Manager monitors the endpoint and the load-balancing method considers it when managing traffic. + + String + + String + + + none + + + Weight + + Specifies the weight of the endpoint the cmdlet adds. The valid value range for this parameter is [1,1000].This parameter is only used for RoundRobin load balancing policies. + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + MinChildEndpoints + + Specifies the minimum amount of endpoints the nested profile has to have online for this endpoint to be considered online. The valid value for this parameter should be bigger than 0.This parameter is only used for TrafficManager endpoint types. + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + TrafficManagerProfile + + Specifies the Traffic Manager profile object to which to add the endpoint. + + IProfileWithDefinition + + IProfileWithDefinition + + + none + + + + + + + + + + + + + + + + + + Microsoft.WindowsAzure.Commands.Utilities.TrafficManager.Models.IProfileWithDefinition + + + + + + + + + + + + + + + + + + + -------------------------- Example 1: Add an endpoint to a profile -------------------------- + + + + PS C:\>$TrafficManagerProfile = Get-AzureTrafficManagerProfile -Name "ContosoProfile" +PS C:\> Add-AzureTrafficManagerEndpoint -TrafficManagerProfile $TrafficManagerProfile -DomainName "Contoso02App.cloudapp.net" -Status "Enabled" -Type "CloudService" | Set-AzureTrafficManagerProfile + + The first command uses the Get-AzureTrafficManagerProfile cmdlet to get the profile named ContosoProfile, and then stores it in the $TrafficManagerProfile variable. + + + + The second command adds an endpoint to Traffic Manager profile that is stored in $TrafficManagerProfile. The endpoint has the domain name Contoso02App.couldapp.net. The command also specifies whether it is enabled and its type. The command passes the profile object to the Set-AzureTrafficManagerProfile cmdlet to connect to Azure to save your changes. + + + + + -------------------------- Example 2: Add an endpoint that has a specified location and weight -------------------------- + + + + PS C:\>Add-AzureTrafficManagerEndpoint -TrafficManagerProfile ContosoTrafficManagerProfile -DomainName " Contoso02App.cloudapp.net" -Status Enabled -Type CloudService -Weight 2 -Location myLocation | Set-AzureTrafficManagerProfile + + This command adds an endpoint to a Traffic Manager profile. The endpoint has the domain name Contoso02App.couldapp.net. The command also specifies whether it is enabled and its type. The command also specifies the weight and location for the endpoint. The command passes the profile object to Set-AzureTrafficManagerProfile to connect to Azure to save your changes. + + + + + + + + + + + Online Version: + http://go.microsoft.com/fwlink/?LinkID=398281 + + + Remove-AzureTrafficManagerEndpoint + + + + Set-AzureTrafficManagerEndpoint + + + + Get-AzureTrafficManagerProfile + + + + Set-AzureTrafficManagerProfile + + + + + + + + Disable-AzureTrafficManagerProfile + + Disables a Traffic Manager profile. + + + + + Disable + AzureTrafficManagerProfile + + + + + The Disable-AzureTrafficManagerProfile cmdlet disables a Microsoft Azure Traffic Manager profile. You can use the PassThru parameter to display whether the operation succeeds. + + + + Disable-AzureTrafficManagerProfile + + Name + + Specifies the name of the Traffic Manager profile to disable. + + String + + + PassThru + + Returns $True if the operation succeeded; otherwise, $False. By default, this cmdlet does not generate any output. + + SwitchParameter + + + + + + Name + + Specifies the name of the Traffic Manager profile to disable. + + String + + String + + + none + + + PassThru + + Returns $True if the operation succeeded; otherwise, $False. By default, this cmdlet does not generate any output. + + SwitchParameter + + SwitchParameter + + + none + + + + + + + + + + + + + + + + + + System.Boolean + + + + + + + + + + + + + + + + + + + -------------------------- Example 1: Disable a Traffic Manager profile and display the results -------------------------- + + + + PS C:\>Disable-AzureTrafficManagerProfile -Name "MyProfile" -PassThru +True + + This command disables the Traffic Manager profile named MyProfile. The command specifies the PassThru parameter to display whether the command succeeded. + + + + + + + + + -------------------------- Example 2: Disable a Traffic Manager profile and display no results -------------------------- + + + + PS C:\>Disable-AzureTrafficManagerProfile -Name "MyProfile" + + This command disables the Traffic Manager profile named MyProfile but does not display whether the command succeeded. + + + + + + + + + + + Online Version: + http://go.microsoft.com/fwlink/?LinkID=398282 + + + Enable-AzureTrafficManagerProfile + + + + Get-AzureTrafficManagerProfile + + + + New-AzureTrafficManagerProfile + + + + Remove-AzureTrafficManagerProfile + + + + Set-AzureTrafficManagerProfile + + + + + + + + Enable-AzureTrafficManagerProfile + + Enables a Traffic Manager profile. + + + + + Enable + AzureTrafficManagerProfile + + + + + The Enable-AzureTrafficManagerProfile cmdlet enables a Microsoft Azure Traffic Manager profile. Specify the PassThru parameter to display whether the operation succeeds. + + + + Enable-AzureTrafficManagerProfile + + Name + + Specifies the name of the Traffic Manager profile to enable. + + String + + + PassThru + + Returns $True if the operation succeeded; otherwise, $False. By default, this cmdlet does not generate any output. + + SwitchParameter + + + + + + Name + + Specifies the name of the Traffic Manager profile to enable. + + String + + String + + + none + + + PassThru + + Returns $True if the operation succeeded; otherwise, $False. By default, this cmdlet does not generate any output. + + SwitchParameter + + SwitchParameter + + + none + + + + + + + + + + + + + + + + + + System.Boolean + + + + + + + + + + + + + + + + + + + -------------------------- Example 1: Enable a Traffic Manager profile -------------------------- + + + + PS C:\>Enable-AzureTrafficManagerProfile -Name "MyProfile" + + This command enables the Traffic Manager profile named MyProfile. + + + + + + + + + -------------------------- Example 2: Enable a Traffic Manager profile and display the results -------------------------- + + + + PS C:\>Enable-AzureTrafficManagerProfile -Name "MyProfile" -PassThru +True + + This command enables the Traffic Manager profile named MyProfile and displays whether the command succeeded. + + + + + + + + + + + Online Version: + http://go.microsoft.com/fwlink/?LinkID=398283 + + + Disable-AzureTrafficManagerProfile + + + + Get-AzureTrafficManagerProfile + + + + New-AzureTrafficManagerProfile + + + + Remove-AzureTrafficManagerProfile + + + + Set-AzureTrafficManagerProfile + + + + + + + + Get-AzureTrafficManagerProfile + + Gets the details of a Traffic Manager profile. + + + + + Get + AzureTrafficManagerProfile + + + + + The Get-AzureTrafficManagerProfile cmdlet gets the details of a Microsoft Azure Traffic Manager profile. If you do not specify the Name parameter, the cmdlet lists the Traffic Manager profiles in the current subscription. + + + + Get-AzureTrafficManagerProfile + + Name + + Specifies the name of the Traffic Manager profile to get. + + String + + + + + + Name + + Specifies the name of the Traffic Manager profile to get. + + String + + String + + + none + + + + + + + + + + + + + + + + + + Microsoft.WindowsAzure.Commands.Utilities.TrafficManager.Models.IProfileWithDefinition + + + + + + + + + + + + + + + + + + + -------------------------- Example 1: Get the list of Traffic Manager profiles in a subscription -------------------------- + + + + PS C:\>Get-AzureTrafficManagerProfile + + This command gets the list of Traffic Manager profiles in your subscription. + + + + + + + + + -------------------------- Example 2: Get a Traffic Manager profile -------------------------- + + + + PS C:\>Get-AzureTrafficManagerProfile -Name "MyProfile" + + This command gets the Traffic Manager profile named MyProfile. + + + + + + + + + -------------------------- Example 3: Add an endpoint to a Traffic Manager profile -------------------------- + + + + PS C:\>Get-AzureTrafficManagerProfile -Name "MyProfile" | Add-AzureTrafficManagerEndpoint -DomainName "Myapp2.cloudapp.net" -TrafficManagerProfile $MyTrafficManagerProfile -Type "CloudService" -Status "Enabled" | Set-AzureTrafficManagerProfile + + This command adds an endpoint to a Traffic Manager profile, and then saves the profile. + + + + + + + + + + + Online Version: + http://go.microsoft.com/fwlink/?LinkID=398284 + + + Add-AzureTrafficManagerEndpoint + + + + Disable-AzureTrafficManagerProfile + + + + Enable-AzureTrafficManagerProfile + + + + New-AzureTrafficManagerProfile + + + + Remove-AzureTrafficManagerProfile + + + + Set-AzureTrafficManagerProfile + + + + + + + + New-AzureTrafficManagerProfile + + Creates a Traffic Manager profile. + + + + + New + AzureTrafficManagerProfile + + + + + The New-AzureTrafficManagerProfile cmdlet creates a Microsoft Azure Traffic Manager profile.After you create a profile where you set the LoadBalancingMethod value to "Failover", you can determine the failover order of the endpoints you add to your profile with the Add-AzureTrafficManagerEndpoint cmdlet. For more information, see Example 2 below. + + + + New-AzureTrafficManagerProfile + + Name + + Specifies the name of the Traffic Manager profile to create. + + String + + + DomainName + + Specifies the domain name of the Traffic Manager profile. This must be a subdomain of trafficmanager.net. + + String + + + LoadBalancingMethod + + Specifies the load balancing method to use to distribute the connection. +Valid values are: + +-- Performance +-- Failover +-- RoundRobin + + String + + + MonitorPort + + Specifies the port used to monitor endpoint health. Valid values are integer values greater than 0 and less than or equal to 65,535. + + Int32 + + + MonitorProtocol + + Specifies the protocol to use to monitor endpoint health. +Valid values are: + +-- Http + +-- Https + + String + + + MonitorRelativePath + + Specifies the path relative to the endpoint domain name to probe for health state. The path must meet the following restrictions: + +-- The path must be from 1 through 1000 characters. + +-- It must start with a forward slash, /. + +-- It must contain no XML elements, <>. + +-- It must contain no double slashes, //. + +-- It must contain no invalid HTML escape characters. For example, %XY. + + String + + + Ttl + + Specifies the DNS Time-to-Live (TTL) that informs the Local DNS resolvers how long to cache DNS entries. Valid values are integers from 30 through 999,999. + + Int32 + + + + + + Name + + Specifies the name of the Traffic Manager profile to create. + + String + + String + + + none + + + DomainName + + Specifies the domain name of the Traffic Manager profile. This must be a subdomain of trafficmanager.net. + + String + + String + + + none + + + LoadBalancingMethod + + Specifies the load balancing method to use to distribute the connection. +Valid values are: + +-- Performance +-- Failover +-- RoundRobin + + String + + String + + + none + + + MonitorPort + + Specifies the port used to monitor endpoint health. Valid values are integer values greater than 0 and less than or equal to 65,535. + + Int32 + + Int32 + + + none + + + MonitorProtocol + + Specifies the protocol to use to monitor endpoint health. +Valid values are: + +-- Http + +-- Https + + String + + String + + + none + + + MonitorRelativePath + + Specifies the path relative to the endpoint domain name to probe for health state. The path must meet the following restrictions: + +-- The path must be from 1 through 1000 characters. + +-- It must start with a forward slash, /. + +-- It must contain no XML elements, <>. + +-- It must contain no double slashes, //. + +-- It must contain no invalid HTML escape characters. For example, %XY. + + String + + String + + + none + + + Ttl + + Specifies the DNS Time-to-Live (TTL) that informs the Local DNS resolvers how long to cache DNS entries. Valid values are integers from 30 through 999,999. + + Int32 + + Int32 + + + none + + + + + + + + + + + + + + + + + + Microsoft.WindowsAzure.Commands.Utilities.TrafficManager.Models.IProfileWithDefinition + + + + + + + + + + + + + + + + + + + -------------------------- Example 1: Create a Traffic Manager profile -------------------------- + + + + PS C:\>New-AzureTrafficManagerProfile -Name "MyProfile" -DomainName "My.profile.trafficmanager.net" -LoadBalancingMethod "RoundRobin" -Ttl 30 -MonitorProtocol "Http" -MonitorPort 80 -MonitorRelativePath "/" + + This command creates a Traffic Manager profile named MyProfile in the specified Traffic Manager domain with a Round Robin load balancing method, a TTL of 30 seconds, HTTP monitoring protocol, monitoring port 80, and with the specified path. + + + + + + + + + -------------------------- Example 2: Reorder endpoints to desired failover order -------------------------- + + + + PS C:\>$Profile = Get-AzureTrafficManagerProfile -Name "MyProfile" +PS C:\> $Profile.Endpoints[0],$Profile.Endpoints[1] = $Profile.Endpoints[1],$Profile.Endpoints[0] +PS C:\> $Profile = Set-AzureTrafficManagerProfile + + This example reorders the endpoints added to MyProfile to the desired failover order. + + + + The first command gets the Traffic Manager profile object named MyProfile and stores the object in the $Profile variable.The second command re-orders the endpoints from the endpoints array to the order in which failover should occur.The last command updates the Traffic Manager profile stored in $Profile with the new endpoint order. + + + + + + + Online Version: + http://go.microsoft.com/fwlink/?LinkID=398285 + + + Disable-AzureTrafficManagerProfile + + + + Enable-AzureTrafficManagerProfile + + + + Get-AzureTrafficManagerProfile + + + + Remove-AzureTrafficManagerProfile + + + + Set-AzureTrafficManagerProfile + + + + + + + + Remove-AzureTrafficManagerEndpoint + + Removes an endpoint from a Traffic Manager profile. + + + + + Remove + AzureTrafficManagerEndpoint + + + + + The Remove-AzureTrafficManagerEndpoint cmdlet removes an endpoint from a Microsoft Azure Traffic Manager profile. After you remove an endpoint, pass the result to the Set-AzureTrafficManagerProfile cmdlet by using the pipeline operator. That cmdlet connects to Azure to save your changes. + + + + Remove-AzureTrafficManagerEndpoint + + DomainName + + Specifies the domain name of the endpoint to remove. + + String + + + Force + + + + SwitchParameter + + + TrafficManagerProfile + + Specifies the Traffic Manager profile object from which to remove the endpoint. + + IProfileWithDefinition + + + + + + DomainName + + Specifies the domain name of the endpoint to remove. + + String + + String + + + none + + + Force + + + + SwitchParameter + + SwitchParameter + + + + + + TrafficManagerProfile + + Specifies the Traffic Manager profile object from which to remove the endpoint. + + IProfileWithDefinition + + IProfileWithDefinition + + + none + + + + + + + + + + + + + + + + + + Microsoft.WindowsAzure.Commands.Utilities.TrafficManager.Models.IProfileWithDefinition + + + + + + + + + + + + + + + + + + + -------------------------- Example 1: Remove an endpoint from a profile -------------------------- + + + + PS C:\>$TrafficManagerProfile = Get-AzureTrafficManagerProfile -Name "ContosoProfile" +PS C:\> Remove-AzureTrafficManagerEndpoint -TrafficManagerProfile $TrafficManagerProfile -DomainName "Contoso02App.cloudapp.net" | Set-AzureTrafficManagerProfile + + The first command uses the Get-AzureTrafficManagerProfile cmdlet to get the profile named ContosoProfile, and then stores it in the $TrafficManagerProfile variable. + + + + The second command removes an endpoint that has the domain name Contoso02App.cloudapp.net from the Traffic Manager profile that is stored in $TrafficManagerProfile. The command passes the profile object to the Set-AzureTrafficManagerProfile cmdlet to connect to Azure to save your changes. + + + + + + + Online Version: + http://go.microsoft.com/fwlink/?LinkID=398286 + + + Add-AzureTrafficManagerEndpoint + + + + Set-AzureTrafficManagerEndpoint + + + + Get-AzureTrafficManagerProfile + + + + Set-AzureTrafficManagerProfile + + + + + + + + Remove-AzureTrafficManagerProfile + + Removes a Traffic Manager profile. + + + + + Remove + AzureTrafficManagerProfile + + + + + The Remove-AzureTrafficManagerProfile cmdlet removes a Microsoft Azure Traffic Manager profile from the current subscription. + + + + Remove-AzureTrafficManagerProfile + + Name + + Specifies the name of the Traffic Manager profile to delete. + + String + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + + PassThru + + Returns $True if the operation succeeded; otherwise, $False. By default, this cmdlet does not generate any output. + + SwitchParameter + + + + + + Name + + Specifies the name of the Traffic Manager profile to delete. + + String + + String + + + none + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + SwitchParameter + + + none + + + PassThru + + Returns $True if the operation succeeded; otherwise, $False. By default, this cmdlet does not generate any output. + + SwitchParameter + + SwitchParameter + + + none + + + + + + + + + + + + + + + + + + System.Boolean + + + + + + + + + + + + + + + + + + + -------------------------- Example 1: Remove a Traffic Manager profile -------------------------- + + + + PS C:\>Remove-AzureTrafficManagerProfile -Name "MyProfile" + + This command removes the Traffic Manager profile named MyProfile. + + + + + + + + + -------------------------- Example 2: Remove a Traffic Manager profile -------------------------- + + + + PS C:\>Remove-AzureTrafficManagerProfile -Name "MyProfile" -Force -PassThru + + This command removes the Traffic Manager profile named MyProfile without prompting you for confirmation, and returns the results. + + + + + + + + + + + Online Version: + http://go.microsoft.com/fwlink/?LinkID=398286 + + + Disable-AzureTrafficManagerProfile + + + + Enable-AzureTrafficManagerProfile + + + + Get-AzureTrafficManagerProfile + + + + New-AzureTrafficManagerProfile + + + + Set-AzureTrafficManagerProfile + + + + + + + + Set-AzureTrafficManagerEndpoint + + Updates the properties of an endpoint in a Traffic Manager profile. + + + + + Set + AzureTrafficManagerEndpoint + + + + + The Set-AzureTrafficManagerEndpoint cmdlet updates the properties of an endpoint in a Microsoft Azure Traffic Manager profile. If the endpoint does not exist in the current profile, this cmdlet creates it. After you add an endpoint, pass the result to the Set-AzureTrafficManagerProfile cmdlet by using the pipeline operator. That cmdlet connects to Azure to save your changes. + + + + Set-AzureTrafficManagerEndpoint + + DomainName + + Specifies the domain name of the endpoint to modify. + + String + + + Location + + Specifies the location of the endpoint the cmdlet adds. This must be an Azure location.This parameter must contain a value for endpoints of the type "Any" in a profile that has the load balancing method set to "Performance". You can find a list of possible values for this parameter under Name by calling List Locations. For more information, see List Locations at http://msdn.microsoft.com/en-us/library/gg441293.aspx. + + String + + + Type + + Specifies the type of endpoint. Valid values are: + +-- CloudService +-- AzureWebsite +-- Any +-- TrafficManager + +If there is more than one AzureWebsite endpoint, the endpoints must be in different datacenters. + + String + + + Status + + Specifies the status of the monitoring endpoint. Valid values are: + +-- Enabled +-- Disabled + +If you specify a value of Enabled, Traffic Manager monitors the endpoint and the load-balancing method considers it when managing traffic. + + String + + + Weight + + Specifies the weight of the endpoint the cmdlet adds. The valid value range for this parameter is [1,1000].This parameter is only used for RoundRobin load balancing policies. + + Nullable`1[Int32] + + + MinChildEndpoints + + + + Nullable`1[Int32] + + + TrafficManagerProfile + + Specifies the Traffic Manager profile object for which to modify the endpoint. + + IProfileWithDefinition + + + + + + DomainName + + Specifies the domain name of the endpoint to modify. + + String + + String + + + none + + + Location + + Specifies the location of the endpoint the cmdlet adds. This must be an Azure location.This parameter must contain a value for endpoints of the type "Any" in a profile that has the load balancing method set to "Performance". You can find a list of possible values for this parameter under Name by calling List Locations. For more information, see List Locations at http://msdn.microsoft.com/en-us/library/gg441293.aspx. + + String + + String + + + none + + + Type + + Specifies the type of endpoint. Valid values are: + +-- CloudService +-- AzureWebsite +-- Any +-- TrafficManager + +If there is more than one AzureWebsite endpoint, the endpoints must be in different datacenters. + + String + + String + + + none + + + Status + + Specifies the status of the monitoring endpoint. Valid values are: + +-- Enabled +-- Disabled + +If you specify a value of Enabled, Traffic Manager monitors the endpoint and the load-balancing method considers it when managing traffic. + + String + + String + + + none + + + Weight + + Specifies the weight of the endpoint the cmdlet adds. The valid value range for this parameter is [1,1000].This parameter is only used for RoundRobin load balancing policies. + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + MinChildEndpoints + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + TrafficManagerProfile + + Specifies the Traffic Manager profile object for which to modify the endpoint. + + IProfileWithDefinition + + IProfileWithDefinition + + + none + + + + + + + + + + + + + + + + + + Microsoft.WindowsAzure.Commands.Utilities.TrafficManager.Models.IProfileWithDefinition + + + + + + + + + + + + + + + + + + + -------------------------- Example 1: Update an endpoint for a profile -------------------------- + + + + PS C:\>$TrafficManagerProfile = Get-AzureTrafficManagerProfile -Name "ContosoProfile" +PS C:\> Set-AzureTrafficManagerEndpoint -TrafficManagerProfile $TrafficManagerProfile -DomainName "ContosoApp02.cloudapp.net" -Status "Enabled" -Type "CloudService" -Weight 2 -Location myLocation | Set-AzureTrafficManagerProfile + + The first command uses the Get-AzureTrafficManagerProfile cmdlet to get the profile named ContosoProfile, and then stores it in the $TrafficManagerProfile variable. + + + + The second command updates the endpoint in the Traffic Manager profile that is stored in $TrafficManagerProfile. The endpoint has the domain name ContosoApp02.cloudapp.net. The command also specifies the status, type, weight, and location of the endpoint. The command passes the modified profile to the Set-AzureTrafficManagerProfile cmdlet to connect to Azure to save your changes. + + + + + + + Online Version: + http://go.microsoft.com/fwlink/?LinkID=398288 + + + Add-AzureTrafficManagerEndpoint + + + + Remove-AzureTrafficManagerEndpoint + + + + Get-AzureTrafficManagerProfile + + + + Set-AzureTrafficManagerProfile + + + + + + + + Set-AzureTrafficManagerProfile + + Updates the properties of a Traffic Manager profile. + + + + + Set + AzureTrafficManagerProfile + + + + + The Set-AzureTrafficManagerProfile cmdlet updates the properties of a Microsoft Azure Traffic Manager profile.For profiles for which you have set the LoadBalancingMethod value to "Failover", you can determine the failover order of the endpoints you have added to your profile with the Add-AzureTrafficManagerEndpoint cmdlet. For more information, see Example 3 below. + + + + Set-AzureTrafficManagerProfile + + Name + + Specifies the name of the Traffic Manager profile to update. + + String + + + LoadBalancingMethod + + Specifies the load balancing method to use to distribute the connection. Valid values are: + +-- Performance +-- Failover +-- RoundRobin + + String + + + MonitorPort + + Specifies the port used to monitor endpoint health. Valid values are integer values greater than 0 and less than or equal to 65,535. + + Nullable`1[Int32] + + + MonitorProtocol + + Specifies the protocol to use to monitor endpoint health. +Valid values are: + +-- Http +-- Https + + String + + + MonitorRelativePath + + Specifies the path relative to the endpoint domain name to probe for health state. The path must meet the following restrictions: + +-- The path must be from 1 through 1000 characters. +-- It must start with a forward slash, /. +-- It must contain no XML elements, <>. +-- It must contain no double slashes, //. +-- It must contain no invalid HTML escape characters. For example, %XY. + + String + + + Ttl + + Specifies the DNS Time-to-Live (TTL) that informs the Local DNS resolvers how long to cache DNS entries. Valid values are an integer from 30 through 999,999. + + Nullable`1[Int32] + + + TrafficManagerProfile + + Specifies the Traffic Manager profile object you use to set the profile. + + IProfileWithDefinition + + + + + + Name + + Specifies the name of the Traffic Manager profile to update. + + String + + String + + + none + + + LoadBalancingMethod + + Specifies the load balancing method to use to distribute the connection. Valid values are: + +-- Performance +-- Failover +-- RoundRobin + + String + + String + + + none + + + MonitorPort + + Specifies the port used to monitor endpoint health. Valid values are integer values greater than 0 and less than or equal to 65,535. + + Nullable`1[Int32] + + Nullable`1[Int32] + + + none + + + MonitorProtocol + + Specifies the protocol to use to monitor endpoint health. +Valid values are: + +-- Http +-- Https + + String + + String + + + none + + + MonitorRelativePath + + Specifies the path relative to the endpoint domain name to probe for health state. The path must meet the following restrictions: + +-- The path must be from 1 through 1000 characters. +-- It must start with a forward slash, /. +-- It must contain no XML elements, <>. +-- It must contain no double slashes, //. +-- It must contain no invalid HTML escape characters. For example, %XY. + + String + + String + + + none + + + Ttl + + Specifies the DNS Time-to-Live (TTL) that informs the Local DNS resolvers how long to cache DNS entries. Valid values are an integer from 30 through 999,999. + + Nullable`1[Int32] + + Nullable`1[Int32] + + + none + + + TrafficManagerProfile + + Specifies the Traffic Manager profile object you use to set the profile. + + IProfileWithDefinition + + IProfileWithDefinition + + + none + + + + + + + + + + + + + + + + + + Microsoft.WindowsAzure.Commands.Utilities.TrafficManager.Models.IProfileWithDefinition + + + + + + + + + + + + + + + + + + + -------------------------- Example 1: Set the TTL for a Traffic Manager profile -------------------------- + + + + PS C:\>Set-AzureTrafficManagerProfile -TrafficManagerProfile $MyTrafficManagerProfile -Ttl 60 + + This command sets the TTL to 60 seconds for the Traffic Manager profile object MyTrafficManagerProfile. + + + + + + + + + -------------------------- Example 2: Set several values for a profile -------------------------- + + + + PS C:\>Get-AzureTrafficManagerProfile -Name "MyProfile" | Set-AzureTrafficManagerProfile -LoadBalancingMethod "RoundRobin" -Ttl 30 -MonitorProtocol "Http" -MonitorPort 80 -MonitorRelativePath "/" + + This command gets a Traffic Manager profile named MyProfile by using the Get-AzureTrafficManagerProfile cmdlet. The profile uses the RoundRobin load balancing method, a TTL of 30 seconds, the monitor protocol HTTP, the monitor port, and the relative path for a Traffic Manager profile. + + + + + + + + + -------------------------- Example 3: Reorder endpoints to desired failover order -------------------------- + + + + PS C:\>$Profile = Get-AzureTrafficManagerProfile -Name "MyProfile" +PS C:\> $Profile.Endpoints[0],$Profile.Endpoints[1] = $Profile.Endpoints[1],$Profile.Endpoints[0] +PS C:\> $Profile = Set-AzureTrafficManagerProfile + + This example reorders the endpoints added to MyProfile to the desired failover order. + + + + The first command gets the Traffic Manager profile object named MyProfile and stores the object in the $Profile variable.The second command re-orders the endpoints from the endpoints array to the order in which failover should occur.The last command updates the Traffic Manager profile stored in $Profile with the new endpoint order. + + + + + + + Online Version: + http://go.microsoft.com/fwlink/?LinkID=398289 + + + Disable-AzureTrafficManagerProfile + + + + Enable-AzureTrafficManagerProfile + + + + Get-AzureTrafficManagerProfile + + + + New-AzureTrafficManagerProfile + + + + Remove-AzureTrafficManagerProfile + + + + + + + + Test-AzureTrafficManagerDomainName + + Checks whether a domain name is available as a Traffic Manager profile. + + + + + Test + AzureTrafficManagerDomainName + + + + + The Test-AzureTrafficManagerDomainName cmdlet checks whether a domain name is available as a Microsoft Azure Traffic Manager profile. If the domain name is available, this cmdlet returns a value of $True. + + + + Test-AzureTrafficManagerDomainName + + DomainName + + Specifies the domain name to test. You must include the following string: + +.trafficmanager.net + + String + + + + + + DomainName + + Specifies the domain name to test. You must include the following string: + +.trafficmanager.net + + String + + String + + + none + + + + + + + + + + + + + + + + + + System.Boolean + + + + + + + + + + + + + + + + + + + -------------------------- Example 1: Check whether a domain name is available -------------------------- + + + + PS C:\>Test-AzureTrafficManagerDomainName -DomainName "ContosoApp.trafficmanager.net" +$True + + This command checks whether the domain name ContosoApp.trafficmanager.net is available as a Traffic Manager profile. + + + + + + + + + + + Online Version: + http://go.microsoft.com/fwlink/?LinkID=398290 + + + + \ No newline at end of file From 9a56c1e478cc459d17942b59e36ee3b672af1f76 Mon Sep 17 00:00:00 2001 From: caln-microsoft Date: Fri, 19 Jun 2015 15:48:24 -0700 Subject: [PATCH 30/40] Updated Get-SqlAzureRestorePoints test comments --- .../Commands.Sql.Test/ScenarioTests/DatabaseBackupTests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/DatabaseBackupTests.ps1 b/src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/DatabaseBackupTests.ps1 index aa36544ac001..b3fb074af985 100644 --- a/src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/DatabaseBackupTests.ps1 +++ b/src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/DatabaseBackupTests.ps1 @@ -36,11 +36,11 @@ function Test-ListDatabaseRestorePoints $standarddb = New-AzureSqlDatabase -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $databaseName ` -Edition Standard -RequestedServiceObjectiveName S0 - # Get restore points from data warehouse database normally. + # Get restore points from data warehouse database. $restorePoints = Get-AzureSqlDatabaseRestorePoints -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $dwdb.DatabaseName Assert-Null $restorePoints # Since the data warehouse database has just been created, it should not have any discrete restore points. - # Get restore points from standard database piped. + # Get restore points from standard database through pipe. $restorePoints = $standarddb | Get-AzureSqlDatabaseRestorePoints Assert-AreEqual $restorePoints.Count 1 # Standard databases should only have 1 continuous restore point. $restorePoint = $restorePoints[0] From 0ec00086db02cc64aa316e34e24f7f1b50b4fc23 Mon Sep 17 00:00:00 2001 From: Matt Westphal Date: Fri, 19 Jun 2015 15:59:56 -0700 Subject: [PATCH 31/40] fixed csproj, was using wrong filename for help. didn't click save before committing --- .../Commands.UsageAggregates.csproj | 3 +- ...ure.Commands.UsageAggregates.dll-help.psd1 | 86 + ...zure.Commands.UsageAggregates.dll-help.xml | 3248 +++++++---------- 3 files changed, 1339 insertions(+), 1998 deletions(-) create mode 100644 src/ResourceManager/Commerce/Commands.UsageAggregates/Microsoft.Azure.Commands.UsageAggregates.dll-help.psd1 diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates/Commands.UsageAggregates.csproj b/src/ResourceManager/Commerce/Commands.UsageAggregates/Commands.UsageAggregates.csproj index fd65cdd2f81c..34e896bc9229 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates/Commands.UsageAggregates.csproj +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates/Commands.UsageAggregates.csproj @@ -82,11 +82,12 @@ + - + PreserveNewest diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates/Microsoft.Azure.Commands.UsageAggregates.dll-help.psd1 b/src/ResourceManager/Commerce/Commands.UsageAggregates/Microsoft.Azure.Commands.UsageAggregates.dll-help.psd1 new file mode 100644 index 000000000000..e20f473f93f8 --- /dev/null +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates/Microsoft.Azure.Commands.UsageAggregates.dll-help.psd1 @@ -0,0 +1,86 @@ +# +# Module manifest for module 'Azure' +# +# Generated by: Microsoft Corporation +# +# Generated on: 5/23/2012 +# + +@{ + +# Version number of this module. +ModuleVersion = '0.8.8' + +# ID used to uniquely identify this module +GUID = '6F8303B1-9298-4E15-AE38-C923C665237A' + +# Author of this module +Author = 'Microsoft Corporation' + +# Company or vendor of this module +CompanyName = 'Microsoft Corporation' + +# Copyright statement for this module +Copyright = '?Microsoft Corporation. All rights reserved.' + +# Description of the functionality provided by this module +Description = '' + +# Minimum version of the Windows PowerShell engine required by this module +PowerShellVersion = '3.0' + +# Name of the Windows PowerShell host required by this module +PowerShellHostName = '' + +# Minimum version of the Windows PowerShell host required by this module +PowerShellHostVersion = '' + +# Minimum version of the .NET Framework required by this module +DotNetFrameworkVersion = '4.0' + +# Minimum version of the common language runtime (CLR) required by this module +CLRVersion='4.0' + +# Processor architecture (None, X86, Amd64, IA64) required by this module +ProcessorArchitecture = 'None' + +# Modules that must be imported into the global environment prior to importing this module +RequiredModules = @() + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = @() + +# Script files (.ps1) that are run in the caller's environment prior to importing this module +ScriptsToProcess = @() + +# Type files (.ps1xml) to be loaded when importing this module +TypesToProcess = @() + +# Format files (.ps1xml) to be loaded when importing this module +FormatsToProcess = @() + +# Modules to import as nested modules of the module specified in ModuleToProcess +NestedModules = '..\..\..\Package\Debug\ResourceManager\AzureResourceManager\UsageAggregates\Microsoft.Azure.Commands.UsageAggregates.dll' + +# Functions to export from this module +FunctionsToExport = '*' + +# Cmdlets to export from this module +CmdletsToExport = '*' + +# Variables to export from this module +VariablesToExport = '*' + +# Aliases to export from this module +AliasesToExport = @() + +# List of all modules packaged with this module +ModuleList = @() + +# List of all files packaged with this module +FileList = @() + +# Private data to pass to the module specified in ModuleToProcess +PrivateData = '' + +} diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates/Microsoft.Azure.Commands.UsageAggregates.dll-help.xml b/src/ResourceManager/Commerce/Commands.UsageAggregates/Microsoft.Azure.Commands.UsageAggregates.dll-help.xml index 9d7bf40300b9..19b3ef6ad123 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates/Microsoft.Azure.Commands.UsageAggregates.dll-help.xml +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates/Microsoft.Azure.Commands.UsageAggregates.dll-help.xml @@ -1,2009 +1,1263 @@ - - - - - Add-AzureTrafficManagerEndpoint - - Adds an endpoint to a Traffic Manager profile. - - - - - Add - AzureTrafficManagerEndpoint - - - - - The Add-AzureTrafficManagerEndpoint cmdlet adds an endpoint to a Microsoft Azure Traffic Manager profile. After you add an endpoint, pass the result to the Set-AzureTrafficManagerProfile cmdlet by using the pipeline operator. That cmdlet connects to Azure to save your changes. - - - - Add-AzureTrafficManagerEndpoint - - DomainName - - Specifies the domain name of the endpoint to add. - - String - - - Location - - Specifies the location of the endpoint the cmdlet adds. This must be an Azure location.This parameter must contain a value for endpoints of the type "Any" in a profile that has the load balancing method set to "Performance". You can find a list of possible values for this parameter under Name by calling List Locations. For more information, see List Locations at http://msdn.microsoft.com/en-us/library/gg441293.aspx. - - String - - - Type - - Specifies the type of endpoint. Valid values are: - --- CloudService --- AzureWebsite --- Any --- TrafficManager - -If there is more than one AzureWebsite endpoint, the endpoints must be in different datacenters. - - String - - - Status - - Specifies the status of the monitoring endpoint. Valid values are: + + + + + + Add-AzureTrafficManagerEndpointConfig + + Adds an endpoint to an Azure Traffic Manager profile. + + + + + Add + AzureTrafficManagerEndpointConfig + + + + The Add-AzureTrafficManagerEndpointConfig cmdlet adds an endpoint to a local Azure Traffic Manager profile object. You can get a profile by using the New-AzureTrafficManagerProfile or Get-AzureTrafficManagerProfile cmdlets. + This cmdlet operates on the local profile object. Commit your changes to the profile for Traffic Manager by using the Set-AzureTrafficManagerProfile cmdlet. + + + + Add-AzureTrafficManagerEndpointConfig + + EndpointLocation + + Specifies the location of the external endpoint. Specify this parameter for profiles that have a value of Performance for the TrafficRoutingMethod parameter. + You must specify for endpoints of the type ExternalEndpoints in a profile that has the load balancing method of Performance. + You can find a list of possible values for this parameter by using the List Locations operation. For more information, see List Locations (http://msdn.microsoft.com/en-us/library/gg441293.aspx) at the Microsoft Developer Network. + + String + + + Priority + + Specifies the priority that Traffic Manager assigns to the endpoint. Specify this parameter only if the Traffic Manager profile is configured for priority traffic routing. Valid values are integers from 1 through 1000. Lower values represent higher priority. + If you specify a priority, you must specify priorities on all endpoints, and no two endpoints can share the same priority value. If you do not specify priorities, Traffic Manager assigns endpoints with default priority values, starting with one (1), in the order the profile lists the endpoints. + + UInt32 + + + Profile + + Specifies an Azure profile. + + AzureProfile + + + Weight + + Specifies the weight that Traffic Manager assigns to the endpoint. Valid values are integers from 1 through 1000. The default value is one (1). Specify this parameter only if the Traffic Manager profile has a value of Weighted for the TrafficRoutingMethod parameter. + + UInt32 + + + EndpointName + + Specifies the name of the Traffic Manager endpoint that this cmdlet adds. + + String + + + EndpointStatus + + Specifies the status of the endpoint. If the status is Enabled, the endpoint is probed for endpoint health and is included in the traffic routing method. Valid values are: -- Enabled --- Disabled - -If you specify a value of Enabled, Traffic Manager monitors the endpoint and the load-balancing method considers it when managing traffic. - - String - - - Weight - - Specifies the weight of the endpoint the cmdlet adds. The valid value range for this parameter is [1,1000].This parameter is only used for RoundRobin load balancing policies. - - Nullable`1[Int32] - - - MinChildEndpoints - - Specifies the minimum amount of endpoints the nested profile has to have online for this endpoint to be considered online. The valid value for this parameter should be bigger than 0.This parameter is only used for TrafficManager endpoint types. - - Nullable`1[Int32] - - - TrafficManagerProfile - - Specifies the Traffic Manager profile object to which to add the endpoint. - - IProfileWithDefinition - - - - - - DomainName - - Specifies the domain name of the endpoint to add. - - String - - String - - - none - - - Location - - Specifies the location of the endpoint the cmdlet adds. This must be an Azure location.This parameter must contain a value for endpoints of the type "Any" in a profile that has the load balancing method set to "Performance". You can find a list of possible values for this parameter under Name by calling List Locations. For more information, see List Locations at http://msdn.microsoft.com/en-us/library/gg441293.aspx. - - String - - String - - - none - - - Type - - Specifies the type of endpoint. Valid values are: - --- CloudService --- AzureWebsite --- Any --- TrafficManager - -If there is more than one AzureWebsite endpoint, the endpoints must be in different datacenters. - - String - - String - - - none - - - Status - - Specifies the status of the monitoring endpoint. Valid values are: - --- Enabled --- Disabled - -If you specify a value of Enabled, Traffic Manager monitors the endpoint and the load-balancing method considers it when managing traffic. - - String - - String - - - none - - - Weight - - Specifies the weight of the endpoint the cmdlet adds. The valid value range for this parameter is [1,1000].This parameter is only used for RoundRobin load balancing policies. - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - MinChildEndpoints - - Specifies the minimum amount of endpoints the nested profile has to have online for this endpoint to be considered online. The valid value for this parameter should be bigger than 0.This parameter is only used for TrafficManager endpoint types. - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - TrafficManagerProfile - - Specifies the Traffic Manager profile object to which to add the endpoint. - - IProfileWithDefinition - - IProfileWithDefinition - - - none - - - - - - - - - - - - - - - - - - Microsoft.WindowsAzure.Commands.Utilities.TrafficManager.Models.IProfileWithDefinition - - - - - - - - - - - - - - - - - - - -------------------------- Example 1: Add an endpoint to a profile -------------------------- - - - - PS C:\>$TrafficManagerProfile = Get-AzureTrafficManagerProfile -Name "ContosoProfile" -PS C:\> Add-AzureTrafficManagerEndpoint -TrafficManagerProfile $TrafficManagerProfile -DomainName "Contoso02App.cloudapp.net" -Status "Enabled" -Type "CloudService" | Set-AzureTrafficManagerProfile - - The first command uses the Get-AzureTrafficManagerProfile cmdlet to get the profile named ContosoProfile, and then stores it in the $TrafficManagerProfile variable. - - - - The second command adds an endpoint to Traffic Manager profile that is stored in $TrafficManagerProfile. The endpoint has the domain name Contoso02App.couldapp.net. The command also specifies whether it is enabled and its type. The command passes the profile object to the Set-AzureTrafficManagerProfile cmdlet to connect to Azure to save your changes. - - - - - -------------------------- Example 2: Add an endpoint that has a specified location and weight -------------------------- - - - - PS C:\>Add-AzureTrafficManagerEndpoint -TrafficManagerProfile ContosoTrafficManagerProfile -DomainName " Contoso02App.cloudapp.net" -Status Enabled -Type CloudService -Weight 2 -Location myLocation | Set-AzureTrafficManagerProfile - - This command adds an endpoint to a Traffic Manager profile. The endpoint has the domain name Contoso02App.couldapp.net. The command also specifies whether it is enabled and its type. The command also specifies the weight and location for the endpoint. The command passes the profile object to Set-AzureTrafficManagerProfile to connect to Azure to save your changes. - - - - - - - - - - - Online Version: - http://go.microsoft.com/fwlink/?LinkID=398281 - - - Remove-AzureTrafficManagerEndpoint - - - - Set-AzureTrafficManagerEndpoint - - - - Get-AzureTrafficManagerProfile - - - - Set-AzureTrafficManagerProfile - - - - - - - - Disable-AzureTrafficManagerProfile - - Disables a Traffic Manager profile. - - - - - Disable - AzureTrafficManagerProfile - - - - - The Disable-AzureTrafficManagerProfile cmdlet disables a Microsoft Azure Traffic Manager profile. You can use the PassThru parameter to display whether the operation succeeds. - - - - Disable-AzureTrafficManagerProfile - - Name - - Specifies the name of the Traffic Manager profile to disable. - - String - - - PassThru - - Returns $True if the operation succeeded; otherwise, $False. By default, this cmdlet does not generate any output. - - SwitchParameter - - - - - - Name - - Specifies the name of the Traffic Manager profile to disable. - - String - - String - - - none - - - PassThru - - Returns $True if the operation succeeded; otherwise, $False. By default, this cmdlet does not generate any output. - - SwitchParameter - - SwitchParameter - - - none - - - - - - - - - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - - - - - - -------------------------- Example 1: Disable a Traffic Manager profile and display the results -------------------------- - - - - PS C:\>Disable-AzureTrafficManagerProfile -Name "MyProfile" -PassThru -True - - This command disables the Traffic Manager profile named MyProfile. The command specifies the PassThru parameter to display whether the command succeeded. - - - - - - - - - -------------------------- Example 2: Disable a Traffic Manager profile and display no results -------------------------- - - - - PS C:\>Disable-AzureTrafficManagerProfile -Name "MyProfile" - - This command disables the Traffic Manager profile named MyProfile but does not display whether the command succeeded. - - - - - - - - - - - Online Version: - http://go.microsoft.com/fwlink/?LinkID=398282 - - - Enable-AzureTrafficManagerProfile - - - - Get-AzureTrafficManagerProfile - - - - New-AzureTrafficManagerProfile - - - - Remove-AzureTrafficManagerProfile - - - - Set-AzureTrafficManagerProfile - - - - - - - - Enable-AzureTrafficManagerProfile - - Enables a Traffic Manager profile. - - - - - Enable - AzureTrafficManagerProfile - - - - - The Enable-AzureTrafficManagerProfile cmdlet enables a Microsoft Azure Traffic Manager profile. Specify the PassThru parameter to display whether the operation succeeds. - - - - Enable-AzureTrafficManagerProfile - - Name - - Specifies the name of the Traffic Manager profile to enable. - - String - - - PassThru - - Returns $True if the operation succeeded; otherwise, $False. By default, this cmdlet does not generate any output. - - SwitchParameter - - - - - - Name - - Specifies the name of the Traffic Manager profile to enable. - - String - - String - - - none - - - PassThru - - Returns $True if the operation succeeded; otherwise, $False. By default, this cmdlet does not generate any output. - - SwitchParameter - - SwitchParameter - - - none - - - - - - - - - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - - - - - - -------------------------- Example 1: Enable a Traffic Manager profile -------------------------- - - - - PS C:\>Enable-AzureTrafficManagerProfile -Name "MyProfile" - - This command enables the Traffic Manager profile named MyProfile. - - - - - - - - - -------------------------- Example 2: Enable a Traffic Manager profile and display the results -------------------------- - - - - PS C:\>Enable-AzureTrafficManagerProfile -Name "MyProfile" -PassThru -True - - This command enables the Traffic Manager profile named MyProfile and displays whether the command succeeded. - - - - - - - - - - - Online Version: - http://go.microsoft.com/fwlink/?LinkID=398283 - - - Disable-AzureTrafficManagerProfile - - - - Get-AzureTrafficManagerProfile - - - - New-AzureTrafficManagerProfile - - - - Remove-AzureTrafficManagerProfile - - - - Set-AzureTrafficManagerProfile - - - - - - - - Get-AzureTrafficManagerProfile - - Gets the details of a Traffic Manager profile. - - - - - Get - AzureTrafficManagerProfile - - - - - The Get-AzureTrafficManagerProfile cmdlet gets the details of a Microsoft Azure Traffic Manager profile. If you do not specify the Name parameter, the cmdlet lists the Traffic Manager profiles in the current subscription. - - - - Get-AzureTrafficManagerProfile - - Name - - Specifies the name of the Traffic Manager profile to get. - - String - - - - - - Name - - Specifies the name of the Traffic Manager profile to get. - - String - - String - - - none - - - - - - - - - - - - - - - - - - Microsoft.WindowsAzure.Commands.Utilities.TrafficManager.Models.IProfileWithDefinition - - - - - - - - - - - - - - - - - - - -------------------------- Example 1: Get the list of Traffic Manager profiles in a subscription -------------------------- - - - - PS C:\>Get-AzureTrafficManagerProfile - - This command gets the list of Traffic Manager profiles in your subscription. - - - - - - - - - -------------------------- Example 2: Get a Traffic Manager profile -------------------------- - - - - PS C:\>Get-AzureTrafficManagerProfile -Name "MyProfile" - - This command gets the Traffic Manager profile named MyProfile. - - - - - - - - - -------------------------- Example 3: Add an endpoint to a Traffic Manager profile -------------------------- - - - - PS C:\>Get-AzureTrafficManagerProfile -Name "MyProfile" | Add-AzureTrafficManagerEndpoint -DomainName "Myapp2.cloudapp.net" -TrafficManagerProfile $MyTrafficManagerProfile -Type "CloudService" -Status "Enabled" | Set-AzureTrafficManagerProfile - - This command adds an endpoint to a Traffic Manager profile, and then saves the profile. - - - - - - - - - - - Online Version: - http://go.microsoft.com/fwlink/?LinkID=398284 - - - Add-AzureTrafficManagerEndpoint - - - - Disable-AzureTrafficManagerProfile - - - - Enable-AzureTrafficManagerProfile - - - - New-AzureTrafficManagerProfile - - - - Remove-AzureTrafficManagerProfile - - - - Set-AzureTrafficManagerProfile - - - - - - - - New-AzureTrafficManagerProfile - - Creates a Traffic Manager profile. - - - - - New - AzureTrafficManagerProfile - - - - - The New-AzureTrafficManagerProfile cmdlet creates a Microsoft Azure Traffic Manager profile.After you create a profile where you set the LoadBalancingMethod value to "Failover", you can determine the failover order of the endpoints you add to your profile with the Add-AzureTrafficManagerEndpoint cmdlet. For more information, see Example 2 below. - - - - New-AzureTrafficManagerProfile - - Name - - Specifies the name of the Traffic Manager profile to create. - - String - - - DomainName - - Specifies the domain name of the Traffic Manager profile. This must be a subdomain of trafficmanager.net. - - String - - - LoadBalancingMethod - - Specifies the load balancing method to use to distribute the connection. -Valid values are: - --- Performance --- Failover --- RoundRobin - - String - - - MonitorPort - - Specifies the port used to monitor endpoint health. Valid values are integer values greater than 0 and less than or equal to 65,535. - - Int32 - - - MonitorProtocol - - Specifies the protocol to use to monitor endpoint health. -Valid values are: - --- Http - --- Https - - String - - - MonitorRelativePath - - Specifies the path relative to the endpoint domain name to probe for health state. The path must meet the following restrictions: - --- The path must be from 1 through 1000 characters. - --- It must start with a forward slash, /. - --- It must contain no XML elements, <>. - --- It must contain no double slashes, //. - --- It must contain no invalid HTML escape characters. For example, %XY. - - String - - - Ttl - - Specifies the DNS Time-to-Live (TTL) that informs the Local DNS resolvers how long to cache DNS entries. Valid values are integers from 30 through 999,999. - - Int32 - - - - - - Name - - Specifies the name of the Traffic Manager profile to create. - - String - - String - - - none - - - DomainName - - Specifies the domain name of the Traffic Manager profile. This must be a subdomain of trafficmanager.net. - - String - - String - - - none - - - LoadBalancingMethod - - Specifies the load balancing method to use to distribute the connection. -Valid values are: - --- Performance --- Failover --- RoundRobin - - String - - String - - - none - - - MonitorPort - - Specifies the port used to monitor endpoint health. Valid values are integer values greater than 0 and less than or equal to 65,535. - - Int32 - - Int32 - - - none - - - MonitorProtocol - - Specifies the protocol to use to monitor endpoint health. -Valid values are: - --- Http - --- Https - - String - - String - - - none - - - MonitorRelativePath - - Specifies the path relative to the endpoint domain name to probe for health state. The path must meet the following restrictions: - --- The path must be from 1 through 1000 characters. - --- It must start with a forward slash, /. - --- It must contain no XML elements, <>. - --- It must contain no double slashes, //. - --- It must contain no invalid HTML escape characters. For example, %XY. - - String - - String - - - none - - - Ttl - - Specifies the DNS Time-to-Live (TTL) that informs the Local DNS resolvers how long to cache DNS entries. Valid values are integers from 30 through 999,999. - - Int32 - - Int32 - - - none - - - - - - - - - - - - - - - - - - Microsoft.WindowsAzure.Commands.Utilities.TrafficManager.Models.IProfileWithDefinition - - - - - - - - - - - - - - - - - - - -------------------------- Example 1: Create a Traffic Manager profile -------------------------- - - - - PS C:\>New-AzureTrafficManagerProfile -Name "MyProfile" -DomainName "My.profile.trafficmanager.net" -LoadBalancingMethod "RoundRobin" -Ttl 30 -MonitorProtocol "Http" -MonitorPort 80 -MonitorRelativePath "/" - - This command creates a Traffic Manager profile named MyProfile in the specified Traffic Manager domain with a Round Robin load balancing method, a TTL of 30 seconds, HTTP monitoring protocol, monitoring port 80, and with the specified path. - - - - - - - - - -------------------------- Example 2: Reorder endpoints to desired failover order -------------------------- - - - - PS C:\>$Profile = Get-AzureTrafficManagerProfile -Name "MyProfile" -PS C:\> $Profile.Endpoints[0],$Profile.Endpoints[1] = $Profile.Endpoints[1],$Profile.Endpoints[0] -PS C:\> $Profile = Set-AzureTrafficManagerProfile - - This example reorders the endpoints added to MyProfile to the desired failover order. - - - - The first command gets the Traffic Manager profile object named MyProfile and stores the object in the $Profile variable.The second command re-orders the endpoints from the endpoints array to the order in which failover should occur.The last command updates the Traffic Manager profile stored in $Profile with the new endpoint order. - - - - - - - Online Version: - http://go.microsoft.com/fwlink/?LinkID=398285 - - - Disable-AzureTrafficManagerProfile - - - - Enable-AzureTrafficManagerProfile - - - - Get-AzureTrafficManagerProfile - - - - Remove-AzureTrafficManagerProfile - - - - Set-AzureTrafficManagerProfile - - - - - - - - Remove-AzureTrafficManagerEndpoint - - Removes an endpoint from a Traffic Manager profile. - - - - - Remove - AzureTrafficManagerEndpoint - - - - - The Remove-AzureTrafficManagerEndpoint cmdlet removes an endpoint from a Microsoft Azure Traffic Manager profile. After you remove an endpoint, pass the result to the Set-AzureTrafficManagerProfile cmdlet by using the pipeline operator. That cmdlet connects to Azure to save your changes. - - - - Remove-AzureTrafficManagerEndpoint - - DomainName - - Specifies the domain name of the endpoint to remove. - - String - - - Force - - - - SwitchParameter - - - TrafficManagerProfile - - Specifies the Traffic Manager profile object from which to remove the endpoint. - - IProfileWithDefinition - - - - - - DomainName - - Specifies the domain name of the endpoint to remove. - - String - - String - - - none - - - Force - - - - SwitchParameter - - SwitchParameter - - - - - - TrafficManagerProfile - - Specifies the Traffic Manager profile object from which to remove the endpoint. - - IProfileWithDefinition - - IProfileWithDefinition - - - none - - - - - - - - - - - - - - - - - - Microsoft.WindowsAzure.Commands.Utilities.TrafficManager.Models.IProfileWithDefinition - - - - - - - - - - - - - - - - - - - -------------------------- Example 1: Remove an endpoint from a profile -------------------------- - - - - PS C:\>$TrafficManagerProfile = Get-AzureTrafficManagerProfile -Name "ContosoProfile" -PS C:\> Remove-AzureTrafficManagerEndpoint -TrafficManagerProfile $TrafficManagerProfile -DomainName "Contoso02App.cloudapp.net" | Set-AzureTrafficManagerProfile - - The first command uses the Get-AzureTrafficManagerProfile cmdlet to get the profile named ContosoProfile, and then stores it in the $TrafficManagerProfile variable. - - - - The second command removes an endpoint that has the domain name Contoso02App.cloudapp.net from the Traffic Manager profile that is stored in $TrafficManagerProfile. The command passes the profile object to the Set-AzureTrafficManagerProfile cmdlet to connect to Azure to save your changes. - - - - - - - Online Version: - http://go.microsoft.com/fwlink/?LinkID=398286 - - - Add-AzureTrafficManagerEndpoint - - - - Set-AzureTrafficManagerEndpoint - - - - Get-AzureTrafficManagerProfile - - - - Set-AzureTrafficManagerProfile - - - - - - - - Remove-AzureTrafficManagerProfile - - Removes a Traffic Manager profile. - - - - - Remove - AzureTrafficManagerProfile - - - - - The Remove-AzureTrafficManagerProfile cmdlet removes a Microsoft Azure Traffic Manager profile from the current subscription. - - - - Remove-AzureTrafficManagerProfile - - Name - - Specifies the name of the Traffic Manager profile to delete. - - String - - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter - - - PassThru - - Returns $True if the operation succeeded; otherwise, $False. By default, this cmdlet does not generate any output. - - SwitchParameter - - - - - - Name - - Specifies the name of the Traffic Manager profile to delete. - - String - - String - - - none - - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter - - SwitchParameter - - - none - - - PassThru - - Returns $True if the operation succeeded; otherwise, $False. By default, this cmdlet does not generate any output. - - SwitchParameter - - SwitchParameter - - - none - - - - - - - - - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - - - - - - -------------------------- Example 1: Remove a Traffic Manager profile -------------------------- - - - - PS C:\>Remove-AzureTrafficManagerProfile -Name "MyProfile" - - This command removes the Traffic Manager profile named MyProfile. - - - - - - - - - -------------------------- Example 2: Remove a Traffic Manager profile -------------------------- - - - - PS C:\>Remove-AzureTrafficManagerProfile -Name "MyProfile" -Force -PassThru - - This command removes the Traffic Manager profile named MyProfile without prompting you for confirmation, and returns the results. - - - - - - - - - - - Online Version: - http://go.microsoft.com/fwlink/?LinkID=398286 - - - Disable-AzureTrafficManagerProfile - - - - Enable-AzureTrafficManagerProfile - - - - Get-AzureTrafficManagerProfile - - - - New-AzureTrafficManagerProfile - - - - Set-AzureTrafficManagerProfile - - - - - - - - Set-AzureTrafficManagerEndpoint - - Updates the properties of an endpoint in a Traffic Manager profile. - - - - - Set - AzureTrafficManagerEndpoint - - - - - The Set-AzureTrafficManagerEndpoint cmdlet updates the properties of an endpoint in a Microsoft Azure Traffic Manager profile. If the endpoint does not exist in the current profile, this cmdlet creates it. After you add an endpoint, pass the result to the Set-AzureTrafficManagerProfile cmdlet by using the pipeline operator. That cmdlet connects to Azure to save your changes. - - - - Set-AzureTrafficManagerEndpoint - - DomainName - - Specifies the domain name of the endpoint to modify. - - String - - - Location - - Specifies the location of the endpoint the cmdlet adds. This must be an Azure location.This parameter must contain a value for endpoints of the type "Any" in a profile that has the load balancing method set to "Performance". You can find a list of possible values for this parameter under Name by calling List Locations. For more information, see List Locations at http://msdn.microsoft.com/en-us/library/gg441293.aspx. - - String - - - Type - - Specifies the type of endpoint. Valid values are: - --- CloudService --- AzureWebsite --- Any --- TrafficManager +-- Disabled + + + Enabled + Disabled + + + + Target + + Specifies the fully qualified DNS name of the endpoint. Traffic Manager returns this value in DNS responses when it directs traffic to this endpoint. + + String + + + TrafficManagerProfile + + Specifies a local TrafficManagerProfile object. This cmdlet modifies this local object. + + TrafficManagerProfile + + + Type + + Specifies the type of endpoint that this cmdlet adds to the Azure Traffic Manager profile. Valid values are: -If there is more than one AzureWebsite endpoint, the endpoints must be in different datacenters. - - String - - - Status - - Specifies the status of the monitoring endpoint. Valid values are: +-- AzureEndpoints +-- ExternalEndpoints +-- NestedEndpoints + Azure Resource Manager is currently in Preview. The only supported type is ExternalEndpoints. + + + AzureEndpoints + ExternalEndpoints + NestedEndpoints + + + + + + + EndpointLocation + + Specifies the location of the external endpoint. Specify this parameter for profiles that have a value of Performance for the TrafficRoutingMethod parameter. + You must specify for endpoints of the type ExternalEndpoints in a profile that has the load balancing method of Performance. + You can find a list of possible values for this parameter by using the List Locations operation. For more information, see List Locations (http://msdn.microsoft.com/en-us/library/gg441293.aspx) at the Microsoft Developer Network. + + String + + String + + + none + + + EndpointName + + Specifies the name of the Traffic Manager endpoint that this cmdlet adds. + + String + + String + + + none + + + EndpointStatus + + Specifies the status of the endpoint. If the status is Enabled, the endpoint is probed for endpoint health and is included in the traffic routing method. Valid values are: -- Enabled --- Disabled +-- Disabled + + String + + String + + + none + + + Priority + + Specifies the priority that Traffic Manager assigns to the endpoint. Specify this parameter only if the Traffic Manager profile is configured for priority traffic routing. Valid values are integers from 1 through 1000. Lower values represent higher priority. + If you specify a priority, you must specify priorities on all endpoints, and no two endpoints can share the same priority value. If you do not specify priorities, Traffic Manager assigns endpoints with default priority values, starting with one (1), in the order the profile lists the endpoints. + + UInt32 + + UInt32 + + + none + + + Profile + + Specifies an Azure profile. + + AzureProfile + + AzureProfile + + + none + + + Target + + Specifies the fully qualified DNS name of the endpoint. Traffic Manager returns this value in DNS responses when it directs traffic to this endpoint. + + String + + String + + + none + + + TrafficManagerProfile + + Specifies a local TrafficManagerProfile object. This cmdlet modifies this local object. + + TrafficManagerProfile + + TrafficManagerProfile + + + none + + + Type + + Specifies the type of endpoint that this cmdlet adds to the Azure Traffic Manager profile. Valid values are: -If you specify a value of Enabled, Traffic Manager monitors the endpoint and the load-balancing method considers it when managing traffic. - - String - - - Weight - - Specifies the weight of the endpoint the cmdlet adds. The valid value range for this parameter is [1,1000].This parameter is only used for RoundRobin load balancing policies. - - Nullable`1[Int32] - - - MinChildEndpoints - - - - Nullable`1[Int32] - - - TrafficManagerProfile - - Specifies the Traffic Manager profile object for which to modify the endpoint. - - IProfileWithDefinition - - - - - - DomainName - - Specifies the domain name of the endpoint to modify. - - String - - String - - - none - - - Location - - Specifies the location of the endpoint the cmdlet adds. This must be an Azure location.This parameter must contain a value for endpoints of the type "Any" in a profile that has the load balancing method set to "Performance". You can find a list of possible values for this parameter under Name by calling List Locations. For more information, see List Locations at http://msdn.microsoft.com/en-us/library/gg441293.aspx. - - String - - String - - - none - - - Type - - Specifies the type of endpoint. Valid values are: +-- AzureEndpoints +-- ExternalEndpoints +-- NestedEndpoints + Azure Resource Manager is currently in Preview. The only supported type is ExternalEndpoints. + + String + + String + + + none + + + Weight + + Specifies the weight that Traffic Manager assigns to the endpoint. Valid values are integers from 1 through 1000. The default value is one (1). Specify this parameter only if the Traffic Manager profile has a value of Weighted for the TrafficRoutingMethod parameter. + + UInt32 + + UInt32 + + + none + + + + + + Microsoft.Azure.Commands.Network.TrafficManagerProfile + + + + + + + + You can pipe a TrafficManagerProfile object to this cmdlet. + + + + + + + Microsoft.Azure.Commands.Network.TrafficManagerProfile + + + + + + + + This cmdlet returns a modified TrafficManagerProfile object. + + + + + + + + Example 1: Add an endpoint to a profile + + + + + PS C:\>$TrafficManagerProfile = Get-AzureTrafficManagerProfile -Name "ContosoProfile" -ResourceGroupName "ResourceGroup11" +PS C:\> Add-AzureTrafficManagerEndpointConfig -EndpointName "contoso" -EndpointStatus Enabled -Target "www.contoso.com" -TrafficManagerProfile $TrafficManagerProfile -Type ExternalEndpoints -EndpointLocation "North Europe" -Priority 1 -Weight 10 +PS C:\> Set-AzureTrafficManagerProfile -TrafficManagerProfile $TrafficManagerProfile + + + The first command gets an Azure Traffic Manager profile by using the Get-AzureTrafficManagerProfile cmdlet. The command stores the local profile in the $TrafficManagerProfile variable. + The second command adds an endpoint named contoso to the profile stored in $TrafficManagerProfile. The command includes configuration data for the endpoint. This command changes only the local object. + The final command updates the Traffic Manager profile named ContosoProfile to match the local value in $TrafficManagerProfile. + + + + + + + + + + + + + Remove-AzureTrafficManagerEndpointConfig + + + + Get-AzureTrafficManagerProfile + + + + Set-AzureTrafficManagerProfile + + + + + + + Get-AzureTrafficManagerProfile + + Gets an Azure Traffic Manager profile. + + + + + Get + AzureTrafficManagerProfile + + + + The Get-AzureTrafficManagerProfile cmdlet gets a Traffic Manager profile from Azure Traffic Manager, and returns an object that represents that profile. You can modify the local object, and then apply changes to the profile by using the Set-AzureTrafficManagerProfile cmdlet. + + + + Get-AzureTrafficManagerProfile + + Profile + + Specifies an Azure profile. + + AzureProfile + + + Name + + Specifies the name of the Traffic Manager profile to get. + + String + + + ResourceGroupName + + Specifies the name of a resource group that contains the Traffic Manager profile. + + String + + + + + + Name + + Specifies the name of the Traffic Manager profile to get. + + String + + String + + + none + + + Profile + + Specifies an Azure profile. + + AzureProfile + + AzureProfile + + + none + + + ResourceGroupName + + Specifies the name of a resource group that contains the Traffic Manager profile. + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + Microsoft.Azure.Commands.Network.TrafficManagerProfile + + + + + + + + This cmdlet returns a TrafficManagerProfile object. You can modify this object, and then apply changes to Traffic Manager by using Set-AzureTrafficManagerProfile. + + + + + + + + Example 1: Get a profile + + + + + PS C:\>Get-AzureTrafficManagerProfile -Name "ContosoProfile" -ResourceGroupName "ResourceGroup11" + + + This command gets the profile named ContosoProfile in ResourceGroup11. + + + + + + + + + + + + + New-AzureTrafficManagerProfile + + + + Remove-AzureTrafficManagerProfile + + + + Set-AzureTrafficManagerProfile + + + + + + + New-AzureTrafficManagerProfile + + Creates an Azure Traffic Manager profile. + + + + + New + AzureTrafficManagerProfile + + + + The New-AzureTrafficManagerProfile cmdlet creates an Azure Traffic Manager profile. Specify a name and required settings. This cmdlet returns a local object that represents the new profile. + This cmdlet does not configure Traffic Manager endpoints. Update the local profile object by using the Add-AzureTrafficManagerEndpointConfig cmdlet. Then upload changes to Traffic Manager by using the Set-AzureTrafficManagerProfile cmdlet. + + + + New-AzureTrafficManagerProfile + + Profile + + Specifies an Azure profile. + + AzureProfile + + + MonitorPath + + Specifies the path used to monitor endpoint health. Specify a value relative to the endpoint domain name. + + String + + + MonitorPort + + Specifies the TCP port that is used to monitor endpoint health. Valid values are integers from 1 through 65535. + + UInt32 + + + MonitorProtocol + + Specifies the protocol to use to monitor endpoint health. Valid values are: --- CloudService --- AzureWebsite --- Any --- TrafficManager - -If there is more than one AzureWebsite endpoint, the endpoints must be in different datacenters. - - String - - String - - - none - - - Status - - Specifies the status of the monitoring endpoint. Valid values are: - --- Enabled --- Disabled - -If you specify a value of Enabled, Traffic Manager monitors the endpoint and the load-balancing method considers it when managing traffic. - - String - - String - - - none - - - Weight - - Specifies the weight of the endpoint the cmdlet adds. The valid value range for this parameter is [1,1000].This parameter is only used for RoundRobin load balancing policies. - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - MinChildEndpoints - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - TrafficManagerProfile - - Specifies the Traffic Manager profile object for which to modify the endpoint. - - IProfileWithDefinition - - IProfileWithDefinition - - - none - - - - - - - - - - - - - - - - - - Microsoft.WindowsAzure.Commands.Utilities.TrafficManager.Models.IProfileWithDefinition - - - - - - - - - - - - - - - - - - - -------------------------- Example 1: Update an endpoint for a profile -------------------------- - - - - PS C:\>$TrafficManagerProfile = Get-AzureTrafficManagerProfile -Name "ContosoProfile" -PS C:\> Set-AzureTrafficManagerEndpoint -TrafficManagerProfile $TrafficManagerProfile -DomainName "ContosoApp02.cloudapp.net" -Status "Enabled" -Type "CloudService" -Weight 2 -Location myLocation | Set-AzureTrafficManagerProfile - - The first command uses the Get-AzureTrafficManagerProfile cmdlet to get the profile named ContosoProfile, and then stores it in the $TrafficManagerProfile variable. - - - - The second command updates the endpoint in the Traffic Manager profile that is stored in $TrafficManagerProfile. The endpoint has the domain name ContosoApp02.cloudapp.net. The command also specifies the status, type, weight, and location of the endpoint. The command passes the modified profile to the Set-AzureTrafficManagerProfile cmdlet to connect to Azure to save your changes. - - - - - - - Online Version: - http://go.microsoft.com/fwlink/?LinkID=398288 - - - Add-AzureTrafficManagerEndpoint - - - - Remove-AzureTrafficManagerEndpoint - - - - Get-AzureTrafficManagerProfile - - - - Set-AzureTrafficManagerProfile - - - - - - - - Set-AzureTrafficManagerProfile - - Updates the properties of a Traffic Manager profile. - - - - - Set - AzureTrafficManagerProfile - - - - - The Set-AzureTrafficManagerProfile cmdlet updates the properties of a Microsoft Azure Traffic Manager profile.For profiles for which you have set the LoadBalancingMethod value to "Failover", you can determine the failover order of the endpoints you have added to your profile with the Add-AzureTrafficManagerEndpoint cmdlet. For more information, see Example 3 below. - - - - Set-AzureTrafficManagerProfile - - Name - - Specifies the name of the Traffic Manager profile to update. - - String - - - LoadBalancingMethod - - Specifies the load balancing method to use to distribute the connection. Valid values are: +-- HTTP +-- HTTPS + + + HTTP + HTTPS + + + + Name + + Specifies a name for the Traffic Manager profile that this cmdlet creates. + + String + + + RelativeDnsName + + Specifies the relative DNS name that this Traffic Manager profile provides. Traffic Manager combines this value and the DNS domain name that Azure Traffic Manager uses to form the fully qualified domain name (FQDN) of the profile. + + String + + + ResourceGroupName + + Specifies the name of a resource group. This cmdlet creates a Traffic Manager profile in the group that this parameter specifies. + + String + + + TrafficRoutingMethod + + Specifies the traffic routing method. This method determines which endpoint Traffic Manager returns in response to incoming DNS queries. Valid values are: -- Performance --- Failover --- RoundRobin - - String - - - MonitorPort - - Specifies the port used to monitor endpoint health. Valid values are integer values greater than 0 and less than or equal to 65,535. - - Nullable`1[Int32] - - - MonitorProtocol - - Specifies the protocol to use to monitor endpoint health. -Valid values are: - --- Http --- Https - - String - - - MonitorRelativePath - - Specifies the path relative to the endpoint domain name to probe for health state. The path must meet the following restrictions: +-- Weighted +-- Priority + + + Performance + Weighted + Priority + + + + Ttl + + Specifies a Time to Live (TTL) value. + + UInt32 + + + + + + MonitorPath + + Specifies the path used to monitor endpoint health. Specify a value relative to the endpoint domain name. + + String + + String + + + none + + + MonitorPort + + Specifies the TCP port that is used to monitor endpoint health. Valid values are integers from 1 through 65535. + + UInt32 + + UInt32 + + + none + + + MonitorProtocol + + Specifies the protocol to use to monitor endpoint health. Valid values are: --- The path must be from 1 through 1000 characters. --- It must start with a forward slash, /. --- It must contain no XML elements, <>. --- It must contain no double slashes, //. --- It must contain no invalid HTML escape characters. For example, %XY. - - String - - - Ttl - - Specifies the DNS Time-to-Live (TTL) that informs the Local DNS resolvers how long to cache DNS entries. Valid values are an integer from 30 through 999,999. - - Nullable`1[Int32] - - - TrafficManagerProfile - - Specifies the Traffic Manager profile object you use to set the profile. - - IProfileWithDefinition - - - - - - Name - - Specifies the name of the Traffic Manager profile to update. - - String - - String - - - none - - - LoadBalancingMethod - - Specifies the load balancing method to use to distribute the connection. Valid values are: +-- HTTP +-- HTTPS + + String + + String + + + none + + + Name + + Specifies a name for the Traffic Manager profile that this cmdlet creates. + + String + + String + + + none + + + Profile + + Specifies an Azure profile. + + AzureProfile + + AzureProfile + + + none + + + RelativeDnsName + + Specifies the relative DNS name that this Traffic Manager profile provides. Traffic Manager combines this value and the DNS domain name that Azure Traffic Manager uses to form the fully qualified domain name (FQDN) of the profile. + + String + + String + + + none + + + ResourceGroupName + + Specifies the name of a resource group. This cmdlet creates a Traffic Manager profile in the group that this parameter specifies. + + String + + String + + + none + + + TrafficRoutingMethod + + Specifies the traffic routing method. This method determines which endpoint Traffic Manager returns in response to incoming DNS queries. Valid values are: -- Performance --- Failover --- RoundRobin - - String - - String - - - none - - - MonitorPort - - Specifies the port used to monitor endpoint health. Valid values are integer values greater than 0 and less than or equal to 65,535. - - Nullable`1[Int32] - - Nullable`1[Int32] - - - none - - - MonitorProtocol - - Specifies the protocol to use to monitor endpoint health. -Valid values are: - --- Http --- Https - - String - - String - - - none - - - MonitorRelativePath - - Specifies the path relative to the endpoint domain name to probe for health state. The path must meet the following restrictions: - --- The path must be from 1 through 1000 characters. --- It must start with a forward slash, /. --- It must contain no XML elements, <>. --- It must contain no double slashes, //. --- It must contain no invalid HTML escape characters. For example, %XY. - - String - - String - - - none - - - Ttl - - Specifies the DNS Time-to-Live (TTL) that informs the Local DNS resolvers how long to cache DNS entries. Valid values are an integer from 30 through 999,999. - - Nullable`1[Int32] - - Nullable`1[Int32] - - - none - - - TrafficManagerProfile - - Specifies the Traffic Manager profile object you use to set the profile. - - IProfileWithDefinition - - IProfileWithDefinition - - - none - - - - - - - - - - - - - - - - - - Microsoft.WindowsAzure.Commands.Utilities.TrafficManager.Models.IProfileWithDefinition - - - - - - - - - - - - - - - - - - - -------------------------- Example 1: Set the TTL for a Traffic Manager profile -------------------------- - - - - PS C:\>Set-AzureTrafficManagerProfile -TrafficManagerProfile $MyTrafficManagerProfile -Ttl 60 - - This command sets the TTL to 60 seconds for the Traffic Manager profile object MyTrafficManagerProfile. - - - - - - - - - -------------------------- Example 2: Set several values for a profile -------------------------- - - - - PS C:\>Get-AzureTrafficManagerProfile -Name "MyProfile" | Set-AzureTrafficManagerProfile -LoadBalancingMethod "RoundRobin" -Ttl 30 -MonitorProtocol "Http" -MonitorPort 80 -MonitorRelativePath "/" - - This command gets a Traffic Manager profile named MyProfile by using the Get-AzureTrafficManagerProfile cmdlet. The profile uses the RoundRobin load balancing method, a TTL of 30 seconds, the monitor protocol HTTP, the monitor port, and the relative path for a Traffic Manager profile. - - - - - - - - - -------------------------- Example 3: Reorder endpoints to desired failover order -------------------------- - - - - PS C:\>$Profile = Get-AzureTrafficManagerProfile -Name "MyProfile" -PS C:\> $Profile.Endpoints[0],$Profile.Endpoints[1] = $Profile.Endpoints[1],$Profile.Endpoints[0] -PS C:\> $Profile = Set-AzureTrafficManagerProfile - - This example reorders the endpoints added to MyProfile to the desired failover order. - - - - The first command gets the Traffic Manager profile object named MyProfile and stores the object in the $Profile variable.The second command re-orders the endpoints from the endpoints array to the order in which failover should occur.The last command updates the Traffic Manager profile stored in $Profile with the new endpoint order. - - - - - - - Online Version: - http://go.microsoft.com/fwlink/?LinkID=398289 - - - Disable-AzureTrafficManagerProfile - - - - Enable-AzureTrafficManagerProfile - - - - Get-AzureTrafficManagerProfile - - - - New-AzureTrafficManagerProfile - - - - Remove-AzureTrafficManagerProfile - - - - - - - - Test-AzureTrafficManagerDomainName - - Checks whether a domain name is available as a Traffic Manager profile. - - - - - Test - AzureTrafficManagerDomainName - - - - - The Test-AzureTrafficManagerDomainName cmdlet checks whether a domain name is available as a Microsoft Azure Traffic Manager profile. If the domain name is available, this cmdlet returns a value of $True. - - - - Test-AzureTrafficManagerDomainName - - DomainName - - Specifies the domain name to test. You must include the following string: - -.trafficmanager.net - - String - - - - - - DomainName - - Specifies the domain name to test. You must include the following string: - -.trafficmanager.net - - String - - String - - - none - - - - - - - - - - - - - - - - - - System.Boolean - - - - - - - - - - - - - - - - - - - -------------------------- Example 1: Check whether a domain name is available -------------------------- - - - - PS C:\>Test-AzureTrafficManagerDomainName -DomainName "ContosoApp.trafficmanager.net" -$True - - This command checks whether the domain name ContosoApp.trafficmanager.net is available as a Traffic Manager profile. - - - - - - - - - - - Online Version: - http://go.microsoft.com/fwlink/?LinkID=398290 - - - - \ No newline at end of file +-- Weighted +-- Priority + + String + + String + + + none + + + Ttl + + Specifies a Time to Live (TTL) value. + + UInt32 + + UInt32 + + + none + + + + + + + + + + + + + + + + + + + + + + + Microsoft.Azure.Commands.Network.TrafficManagerProfile + + + + + + + + This cmdlet returns a new TrafficManagerProfile object. + + + + + + + + Example 1: Create a profile + + + + + PS C:\>New-AzureTrafficManagerProfile -Name "ContosoProfile" -ResourceGroupName "ResourceGroup11" -ProfileStatus Enabled -TrafficRoutingMethod Performance -RelativeDnsName "contosoapp" -TTL 30 -MonitorProtocol HTTP -MonitorPort 80 -MonitorPath "/default.aspx" + + + This command creates an Azure Traffic Manager profile named ContosoProfile in resource group ResourceGroup11. The DNS FQDN is contosoapp.trafficmanager.net. + + + + + + + + + + + + + Get-AzureTrafficManagerProfile + + + + Remove-AzureTrafficManagerProfile + + + + Set-AzureTrafficManagerProfile + + + + Add-AzureTrafficManagerEndpointConfig + + + + + + + Remove-AzureTrafficManagerEndpointConfig + + Removes an endpoint from an Azure Traffic Manager profile. + + + + + Remove + AzureTrafficManagerEndpointConfig + + + + The Remove-AzureTrafficManagerEndpointConfig cmdlet removes an endpoint from a local Azure Traffic Manager profile object. You can get a profile by using the New-AzureTrafficManagerProfile or Get-AzureTrafficManagerProfile cmdlets. + This cmdlet operates on the local profile object. Commit your changes to the profile for Traffic Manager by using the Set-AzureTrafficManagerProfile cmdlet. + + + + Remove-AzureTrafficManagerEndpointConfig + + Profile + + Specifies an Azure profile. + + AzureProfile + + + EndpointName + + Specifies the name of the Traffic Manager endpoint that this cmdlet removes. + + String + + + TrafficManagerProfile + + Specifies a local TrafficManagerProfile object. This cmdlet modifies this local object. + + TrafficManagerProfile + + + + + + EndpointName + + Specifies the name of the Traffic Manager endpoint that this cmdlet removes. + + String + + String + + + none + + + Profile + + Specifies an Azure profile. + + AzureProfile + + AzureProfile + + + none + + + TrafficManagerProfile + + Specifies a local TrafficManagerProfile object. This cmdlet modifies this local object. + + TrafficManagerProfile + + TrafficManagerProfile + + + none + + + + + + Microsoft.Azure.Commands.Network.TrafficManagerProfile + + + + + + + + You can pipe a TrafficManagerProfile object to this cmdlet. + + + + + + + Microsoft.Azure.Commands.Network.TrafficManagerProfile + + + + + + + + This cmdlet returns a modified TrafficManagerProfile object. + + + + + + + + Example 1: Remove a profile + + + + + PS C:\>$TrafficManagerProfile = Get-AzureTrafficManagerProfile -Name "ContosoProfile" -ResourceGroupName "ResourceGroup11" +PS C:\> Remove-AzureTrafficManagerEndpointConfig -EndpointName "contoso" -TrafficManagerProfile $TrafficManagerProfile +PS C:\> Set-AzureTrafficManagerProfile -TrafficManagerProfile $TrafficManagerProfile + + + The first command gets an Azure Traffic Manager profile by using the Get-AzureTrafficManagerProfile cmdlet. The command stores the local profile in the $TrafficManagerProfile variable. + The second command removes an endpoint named contoso from the profile stored in $TrafficManagerProfile. This command changes only the local object. + The final command updates the Traffic Manager profile named ContosoProfile to match the local value in $TrafficManagerProfile. + + + + + + + + + + + Example 2: Remove a profile by using the pipeline + + + + + PS C:\>Get-AzureTrafficManagerProfile -Name "ContosoProfile" -ResourceGroupName "ResourceGroup11" | Remove-AzureTrafficManagerEndpointConfig -EndpointName "contoso" | Set-AzureTrafficManagerProfile + + + This command gets a profile, and then passes the local profile to Remove-AzureTrafficManagerEndpointConfig by using the pipeline operator. That cmdlet removes an endpoint named contoso from that profile, and then passes the result to Set-AzureTrafficManagerProfile. The final cmdlet updates the Traffic Manager profile to match the local value. + + + + + + + + + + + + + Add-AzureTrafficManagerEndpointConfig + + + + Get-AzureTrafficManagerProfile + + + + Set-AzureTrafficManagerProfile + + + + + + + Remove-AzureTrafficManagerProfile + + Deletes an Azure Traffic Manager profile. + + + + + Remove + AzureTrafficManagerProfile + + + + The Remove-AzureTrafficManagerProfile cmdlet deletes an Azure Traffic Manager profile. You can specify a profile to delete by name, or you can specify a profile object. You can delete a profile object from Traffic Manager by using the pipeline or as a parameter value. + + + + Remove-AzureTrafficManagerProfile + + Force + + Forces the command to run without asking for user confirmation. + + + + Profile + + Specifies an Azure profile. + + AzureProfile + + + Name + + Specifies the name of the Traffic Manager profile that this cmdlet deletes. + + String + + + ResourceGroupName + + Specifies the name of a resource group. This cmdlet deletes a Traffic Manager profile in the group that this parameter specifies. + + String + + + + Remove-AzureTrafficManagerProfile + + Force + + Forces the command to run without asking for user confirmation. + + + + Profile + + Specifies an Azure profile. + + AzureProfile + + + TrafficManagerProfile + + Specifies a TrafficManagerProfile object to delete. + + TrafficManagerProfile + + + + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + SwitchParameter + + + none + + + Name + + Specifies the name of the Traffic Manager profile that this cmdlet deletes. + + String + + String + + + none + + + Profile + + Specifies an Azure profile. + + AzureProfile + + AzureProfile + + + none + + + ResourceGroupName + + Specifies the name of a resource group. This cmdlet deletes a Traffic Manager profile in the group that this parameter specifies. + + String + + String + + + none + + + TrafficManagerProfile + + Specifies a TrafficManagerProfile object to delete. + + TrafficManagerProfile + + TrafficManagerProfile + + + none + + + + + + Microsoft.Azure.Commands.Network.TrafficManagerProfile + + + + + + + + You can pipe a TrafficManagerProfile object to this cmdlet. + + + + + + + Boolean + + + + + + + + This cmdlet returns a value of $True, if it succeeds or, if the deletion fails, a value of $False. + + + + + + + + Example 1: Delete a profile specified by name + + + + + PS C:\>Remove-AzureTrafficManagerProfile -Name "ContosoProfile" -ResourceGroupName "ResourceGroup11" + + + This command deletes the profile named ContosoProfile in ResourceGroup11. + + + + + + + + + + + Example 2: Delete a profile by using the pipeline + + + + + PS C:\>Get-AzureTrafficManagerProfile -Name "ContosoProfile" -ResourceGroupName "ResourceGroup11" | Remove-AzureTrafficManagerProfile + + + This command gets the profile named ContosoProfile in ResourceGroup11, and then passes that profile to the current cmdlet by using the pipeline operator. The current command deletes that profile. + + + + + + + + + + + + + Get-AzureTrafficManagerProfile + + + + New-AzureTrafficManagerProfile + + + + Set-AzureTrafficManagerProfile + + + + + + + Set-AzureTrafficManagerProfile + + Updates an Azure Traffic Manager profile. + + + + + Set + AzureTrafficManagerProfile + + + + The Set-AzureTrafficManagerProfile cmdlet updates an Azure Traffic Manager profile. This cmdlet updates the settings of the profile from a local profile object. You can pass a profile object to Traffic Manager by using the pipeline or as a parameter value. + + + + Set-AzureTrafficManagerProfile + + Profile + + Specifies an Azure profile. + + AzureProfile + + + TrafficManagerProfile + + Specifies a local TrafficManagerProfile object. This cmdlet updates Traffic Manager to match this local object. + + TrafficManagerProfile + + + + + + Profile + + Specifies an Azure profile. + + AzureProfile + + AzureProfile + + + none + + + TrafficManagerProfile + + Specifies a local TrafficManagerProfile object. This cmdlet updates Traffic Manager to match this local object. + + TrafficManagerProfile + + TrafficManagerProfile + + + none + + + + + + Microsoft.Azure.Commands.Network.TrafficManagerProfile + + + + + + + + You can pipe a TrafficManagerProfile object to this cmdlet. + + + + + + + Microsoft.Azure.Commands.Network.TrafficManagerProfile + + + + + + + + This cmdlet returns a TrafficManagerProfile object. + + + + + + + + Example 1: Update a profile + + + + + PS C:\>$TrafficManagerProfile = Get-AzureTrafficManagerProfile -Name "ContosoProfile" -ResourceGroupName "ResourceGroup11" +PS C:\> Set-AzureTrafficManagerProfile -TrafficManagerProfile $TrafficManagerProfile + + + The first command gets an Azure Traffic Manager profile by using the Get-AzureTrafficManagerProfile cmdlet. The command stores the profile locally in the $TrafficManagerProfile variable. After you get that profile, you can change it locally. + The second command updates the Traffic Manager profile named ContosoProfile to match the local value in $TrafficManagerProfile. + + + + + + + + + + + + + Get-AzureTrafficManagerProfile + + + + New-AzureTrafficManagerProfile + + + + Remove-AzureTrafficManagerProfile + + + + + From db579db6484c9c0e9b95b67efa0401024d1fa20f Mon Sep 17 00:00:00 2001 From: Matt Westphal Date: Fri, 19 Jun 2015 16:48:29 -0700 Subject: [PATCH 32/40] updated help file correctly for Get-UsageAggregates --- .../GetUsageAggregatesCommand.cs | 14 +- ...zure.Commands.UsageAggregates.dll-help.xml | 1094 +---------------- 2 files changed, 41 insertions(+), 1067 deletions(-) diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates/GetUsageAggregatesCommand.cs b/src/ResourceManager/Commerce/Commands.UsageAggregates/GetUsageAggregatesCommand.cs index f53927fff024..38023fe9eb55 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates/GetUsageAggregatesCommand.cs +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates/GetUsageAggregatesCommand.cs @@ -28,25 +28,25 @@ namespace Microsoft.Azure.Commands.UsageAggregates public class GetUsageAggregatesCommand : AzurePSCmdlet { private UsageAggregationManagementClient _theClient; - + private AggregationGranularity _aggregationGranularity = AggregationGranularity.Daily; + private bool _showDetails = true; + [Parameter(Mandatory = true, HelpMessage = "The start of the time range to retrieve data for.")] public DateTime ReportedStartTime { get; set; } [Parameter(Mandatory = true, HelpMessage = "The end of the time range to retrieve data for.")] public DateTime ReportedEndTime { get; set; } - private AggregationGranularity aggregationGranularity = AggregationGranularity.Daily; [Parameter(Mandatory = false, HelpMessage = "Value is either daily (default) or hourly to tell the API how to return the results grouped by day or hour.")] public AggregationGranularity AggregationGranularity { - get { return aggregationGranularity; } - set { aggregationGranularity = value;} + get { return _aggregationGranularity; } + set { _aggregationGranularity = value;} } - private bool showDetails = true; [Parameter(Mandatory = false, HelpMessage = "When set to true (default), the aggregates are broken down into the instance metadata which is more granular.")] public bool ShowDetails { - get { return showDetails; } - set { showDetails = value; } + get { return _showDetails; } + set { _showDetails = value; } } [Parameter(Mandatory = false, HelpMessage = "Retrieved from previous calls, this is the bookmark used for progress when the responses are paged.")] diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates/Microsoft.Azure.Commands.UsageAggregates.dll-help.xml b/src/ResourceManager/Commerce/Commands.UsageAggregates/Microsoft.Azure.Commands.UsageAggregates.dll-help.xml index 19b3ef6ad123..d3f1011253e1 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates/Microsoft.Azure.Commands.UsageAggregates.dll-help.xml +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates/Microsoft.Azure.Commands.UsageAggregates.dll-help.xml @@ -1,106 +1,62 @@ - - Add-AzureTrafficManagerEndpointConfig + Get-UsageAggregation - Adds an endpoint to an Azure Traffic Manager profile. + Enables you to query aggregate Azure subscription consumption data by. - Add - AzureTrafficManagerEndpointConfig + Get + UsageAggregation - The Add-AzureTrafficManagerEndpointConfig cmdlet adds an endpoint to a local Azure Traffic Manager profile object. You can get a profile by using the New-AzureTrafficManagerProfile or Get-AzureTrafficManagerProfile cmdlets. - This cmdlet operates on the local profile object. Commit your changes to the profile for Traffic Manager by using the Set-AzureTrafficManagerProfile cmdlet. + The Get-UsageAggregation cmdlet to query aggregate Azure subscription consumption data by: +• Start and end date/time +• Aggregation granularity (ie: daily, hourly) +• Instance level detail (ie: for multiple instances of the same resource) +For more information, see Azure Billing REST API Referencehttps://msdn.microsoft.com/library/azure/1ea5b323-54bb-423d-916f-190de96c6a3c(https://msdn.microsoft.com/library/azure/1ea5b323-54bb-423d-916f-190de96c6a3c) at the Microsoft Developer Network. - Add-AzureTrafficManagerEndpointConfig - - EndpointLocation + Get-UsageAggregation + + ReportedStartTime - Specifies the location of the external endpoint. Specify this parameter for profiles that have a value of Performance for the TrafficRoutingMethod parameter. - You must specify for endpoints of the type ExternalEndpoints in a profile that has the load balancing method of Performance. - You can find a list of possible values for this parameter by using the List Locations operation. For more information, see List Locations (http://msdn.microsoft.com/en-us/library/gg441293.aspx) at the Microsoft Developer Network. + The start of the time range to retrieve data for. - String + [DateTime] - - Priority + + ReportedEndTime - Specifies the priority that Traffic Manager assigns to the endpoint. Specify this parameter only if the Traffic Manager profile is configured for priority traffic routing. Valid values are integers from 1 through 1000. Lower values represent higher priority. - If you specify a priority, you must specify priorities on all endpoints, and no two endpoints can share the same priority value. If you do not specify priorities, Traffic Manager assigns endpoints with default priority values, starting with one (1), in the order the profile lists the endpoints. + The end of the time range to retrieve data for. - UInt32 + [DateTime] - Profile + AggregationGranularity - Specifies an Azure profile. + Value is either daily (default) or hourly to tell the API how to return the results grouped by day or hour. - AzureProfile + AggregationGranularity - Weight - - Specifies the weight that Traffic Manager assigns to the endpoint. Valid values are integers from 1 through 1000. The default value is one (1). Specify this parameter only if the Traffic Manager profile has a value of Weighted for the TrafficRoutingMethod parameter. - - UInt32 - - - EndpointName - - Specifies the name of the Traffic Manager endpoint that this cmdlet adds. - - String - - - EndpointStatus - - Specifies the status of the endpoint. If the status is Enabled, the endpoint is probed for endpoint health and is included in the traffic routing method. Valid values are: - --- Enabled --- Disabled - - - Enabled - Disabled - - - - Target - - Specifies the fully qualified DNS name of the endpoint. Traffic Manager returns this value in DNS responses when it directs traffic to this endpoint. - - String - - - TrafficManagerProfile + ShowDetails - Specifies a local TrafficManagerProfile object. This cmdlet modifies this local object. + When set to true (default), the aggregates are broken down into the instance metadata which is more granular. - TrafficManagerProfile + Boolean - - Type + + ContinuationToken - Specifies the type of endpoint that this cmdlet adds to the Azure Traffic Manager profile. Valid values are: - --- AzureEndpoints --- ExternalEndpoints --- NestedEndpoints - Azure Resource Manager is currently in Preview. The only supported type is ExternalEndpoints. + Retrieved from previous calls, this is the bookmark used for progress when the responses are paged. - - AzureEndpoints - ExternalEndpoints - NestedEndpoints - + String @@ -259,984 +215,16 @@ - Example 1: Add an endpoint to a profile - - - - - PS C:\>$TrafficManagerProfile = Get-AzureTrafficManagerProfile -Name "ContosoProfile" -ResourceGroupName "ResourceGroup11" -PS C:\> Add-AzureTrafficManagerEndpointConfig -EndpointName "contoso" -EndpointStatus Enabled -Target "www.contoso.com" -TrafficManagerProfile $TrafficManagerProfile -Type ExternalEndpoints -EndpointLocation "North Europe" -Priority 1 -Weight 10 -PS C:\> Set-AzureTrafficManagerProfile -TrafficManagerProfile $TrafficManagerProfile - - - The first command gets an Azure Traffic Manager profile by using the Get-AzureTrafficManagerProfile cmdlet. The command stores the local profile in the $TrafficManagerProfile variable. - The second command adds an endpoint named contoso to the profile stored in $TrafficManagerProfile. The command includes configuration data for the endpoint. This command changes only the local object. - The final command updates the Traffic Manager profile named ContosoProfile to match the local value in $TrafficManagerProfile. - - - - - - - - - - - - - Remove-AzureTrafficManagerEndpointConfig - - - - Get-AzureTrafficManagerProfile - - - - Set-AzureTrafficManagerProfile - - - - - - - Get-AzureTrafficManagerProfile - - Gets an Azure Traffic Manager profile. - - - - - Get - AzureTrafficManagerProfile - - - - The Get-AzureTrafficManagerProfile cmdlet gets a Traffic Manager profile from Azure Traffic Manager, and returns an object that represents that profile. You can modify the local object, and then apply changes to the profile by using the Set-AzureTrafficManagerProfile cmdlet. - - - - Get-AzureTrafficManagerProfile - - Profile - - Specifies an Azure profile. - - AzureProfile - - - Name - - Specifies the name of the Traffic Manager profile to get. - - String - - - ResourceGroupName - - Specifies the name of a resource group that contains the Traffic Manager profile. - - String - - - - - - Name - - Specifies the name of the Traffic Manager profile to get. - - String - - String - - - none - - - Profile - - Specifies an Azure profile. - - AzureProfile - - AzureProfile - - - none - - - ResourceGroupName - - Specifies the name of a resource group that contains the Traffic Manager profile. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - Microsoft.Azure.Commands.Network.TrafficManagerProfile - - - - - - - - This cmdlet returns a TrafficManagerProfile object. You can modify this object, and then apply changes to Traffic Manager by using Set-AzureTrafficManagerProfile. - - - - - - - - Example 1: Get a profile - - - - - PS C:\>Get-AzureTrafficManagerProfile -Name "ContosoProfile" -ResourceGroupName "ResourceGroup11" - - - This command gets the profile named ContosoProfile in ResourceGroup11. - - - - - - - - - - - - - New-AzureTrafficManagerProfile - - - - Remove-AzureTrafficManagerProfile - - - - Set-AzureTrafficManagerProfile - - - - - - - New-AzureTrafficManagerProfile - - Creates an Azure Traffic Manager profile. - - - - - New - AzureTrafficManagerProfile - - - - The New-AzureTrafficManagerProfile cmdlet creates an Azure Traffic Manager profile. Specify a name and required settings. This cmdlet returns a local object that represents the new profile. - This cmdlet does not configure Traffic Manager endpoints. Update the local profile object by using the Add-AzureTrafficManagerEndpointConfig cmdlet. Then upload changes to Traffic Manager by using the Set-AzureTrafficManagerProfile cmdlet. - - - - New-AzureTrafficManagerProfile - - Profile - - Specifies an Azure profile. - - AzureProfile - - - MonitorPath - - Specifies the path used to monitor endpoint health. Specify a value relative to the endpoint domain name. - - String - - - MonitorPort - - Specifies the TCP port that is used to monitor endpoint health. Valid values are integers from 1 through 65535. - - UInt32 - - - MonitorProtocol - - Specifies the protocol to use to monitor endpoint health. Valid values are: - --- HTTP --- HTTPS - - - HTTP - HTTPS - - - - Name - - Specifies a name for the Traffic Manager profile that this cmdlet creates. - - String - - - RelativeDnsName - - Specifies the relative DNS name that this Traffic Manager profile provides. Traffic Manager combines this value and the DNS domain name that Azure Traffic Manager uses to form the fully qualified domain name (FQDN) of the profile. - - String - - - ResourceGroupName - - Specifies the name of a resource group. This cmdlet creates a Traffic Manager profile in the group that this parameter specifies. - - String - - - TrafficRoutingMethod - - Specifies the traffic routing method. This method determines which endpoint Traffic Manager returns in response to incoming DNS queries. Valid values are: - --- Performance --- Weighted --- Priority - - - Performance - Weighted - Priority - - - - Ttl - - Specifies a Time to Live (TTL) value. - - UInt32 - - - - - - MonitorPath - - Specifies the path used to monitor endpoint health. Specify a value relative to the endpoint domain name. - - String - - String - - - none - - - MonitorPort - - Specifies the TCP port that is used to monitor endpoint health. Valid values are integers from 1 through 65535. - - UInt32 - - UInt32 - - - none - - - MonitorProtocol - - Specifies the protocol to use to monitor endpoint health. Valid values are: - --- HTTP --- HTTPS - - String - - String - - - none - - - Name - - Specifies a name for the Traffic Manager profile that this cmdlet creates. - - String - - String - - - none - - - Profile - - Specifies an Azure profile. - - AzureProfile - - AzureProfile - - - none - - - RelativeDnsName - - Specifies the relative DNS name that this Traffic Manager profile provides. Traffic Manager combines this value and the DNS domain name that Azure Traffic Manager uses to form the fully qualified domain name (FQDN) of the profile. - - String - - String - - - none - - - ResourceGroupName - - Specifies the name of a resource group. This cmdlet creates a Traffic Manager profile in the group that this parameter specifies. - - String - - String - - - none - - - TrafficRoutingMethod - - Specifies the traffic routing method. This method determines which endpoint Traffic Manager returns in response to incoming DNS queries. Valid values are: - --- Performance --- Weighted --- Priority - - String - - String - - - none - - - Ttl - - Specifies a Time to Live (TTL) value. - - UInt32 - - UInt32 - - - none - - - - - - - - - - - - - - - - - - - - - - - Microsoft.Azure.Commands.Network.TrafficManagerProfile - - - - - - - - This cmdlet returns a new TrafficManagerProfile object. - - - - - - - - Example 1: Create a profile - - - - - PS C:\>New-AzureTrafficManagerProfile -Name "ContosoProfile" -ResourceGroupName "ResourceGroup11" -ProfileStatus Enabled -TrafficRoutingMethod Performance -RelativeDnsName "contosoapp" -TTL 30 -MonitorProtocol HTTP -MonitorPort 80 -MonitorPath "/default.aspx" - - - This command creates an Azure Traffic Manager profile named ContosoProfile in resource group ResourceGroup11. The DNS FQDN is contosoapp.trafficmanager.net. - - - - - - - - - - - - - Get-AzureTrafficManagerProfile - - - - Remove-AzureTrafficManagerProfile - - - - Set-AzureTrafficManagerProfile - - - - Add-AzureTrafficManagerEndpointConfig - - - - - - - Remove-AzureTrafficManagerEndpointConfig - - Removes an endpoint from an Azure Traffic Manager profile. - - - - - Remove - AzureTrafficManagerEndpointConfig - - - - The Remove-AzureTrafficManagerEndpointConfig cmdlet removes an endpoint from a local Azure Traffic Manager profile object. You can get a profile by using the New-AzureTrafficManagerProfile or Get-AzureTrafficManagerProfile cmdlets. - This cmdlet operates on the local profile object. Commit your changes to the profile for Traffic Manager by using the Set-AzureTrafficManagerProfile cmdlet. - - - - Remove-AzureTrafficManagerEndpointConfig - - Profile - - Specifies an Azure profile. - - AzureProfile - - - EndpointName - - Specifies the name of the Traffic Manager endpoint that this cmdlet removes. - - String - - - TrafficManagerProfile - - Specifies a local TrafficManagerProfile object. This cmdlet modifies this local object. - - TrafficManagerProfile - - - - - - EndpointName - - Specifies the name of the Traffic Manager endpoint that this cmdlet removes. - - String - - String - - - none - - - Profile - - Specifies an Azure profile. - - AzureProfile - - AzureProfile - - - none - - - TrafficManagerProfile - - Specifies a local TrafficManagerProfile object. This cmdlet modifies this local object. - - TrafficManagerProfile - - TrafficManagerProfile - - - none - - - - - - Microsoft.Azure.Commands.Network.TrafficManagerProfile - - - - - - - - You can pipe a TrafficManagerProfile object to this cmdlet. - - - - - - - Microsoft.Azure.Commands.Network.TrafficManagerProfile - - - - - - - - This cmdlet returns a modified TrafficManagerProfile object. - - - - - - - - Example 1: Remove a profile - - - - - PS C:\>$TrafficManagerProfile = Get-AzureTrafficManagerProfile -Name "ContosoProfile" -ResourceGroupName "ResourceGroup11" -PS C:\> Remove-AzureTrafficManagerEndpointConfig -EndpointName "contoso" -TrafficManagerProfile $TrafficManagerProfile -PS C:\> Set-AzureTrafficManagerProfile -TrafficManagerProfile $TrafficManagerProfile - - - The first command gets an Azure Traffic Manager profile by using the Get-AzureTrafficManagerProfile cmdlet. The command stores the local profile in the $TrafficManagerProfile variable. - The second command removes an endpoint named contoso from the profile stored in $TrafficManagerProfile. This command changes only the local object. - The final command updates the Traffic Manager profile named ContosoProfile to match the local value in $TrafficManagerProfile. - - - - - - - - - - - Example 2: Remove a profile by using the pipeline - - - - - PS C:\>Get-AzureTrafficManagerProfile -Name "ContosoProfile" -ResourceGroupName "ResourceGroup11" | Remove-AzureTrafficManagerEndpointConfig -EndpointName "contoso" | Set-AzureTrafficManagerProfile - - - This command gets a profile, and then passes the local profile to Remove-AzureTrafficManagerEndpointConfig by using the pipeline operator. That cmdlet removes an endpoint named contoso from that profile, and then passes the result to Set-AzureTrafficManagerProfile. The final cmdlet updates the Traffic Manager profile to match the local value. - - - - - - - - - - - - - Add-AzureTrafficManagerEndpointConfig - - - - Get-AzureTrafficManagerProfile - - - - Set-AzureTrafficManagerProfile - - - - - - - Remove-AzureTrafficManagerProfile - - Deletes an Azure Traffic Manager profile. - - - - - Remove - AzureTrafficManagerProfile - - - - The Remove-AzureTrafficManagerProfile cmdlet deletes an Azure Traffic Manager profile. You can specify a profile to delete by name, or you can specify a profile object. You can delete a profile object from Traffic Manager by using the pipeline or as a parameter value. - - - - Remove-AzureTrafficManagerProfile - - Force - - Forces the command to run without asking for user confirmation. - - - - Profile - - Specifies an Azure profile. - - AzureProfile - - - Name - - Specifies the name of the Traffic Manager profile that this cmdlet deletes. - - String - - - ResourceGroupName - - Specifies the name of a resource group. This cmdlet deletes a Traffic Manager profile in the group that this parameter specifies. - - String - - - - Remove-AzureTrafficManagerProfile - - Force - - Forces the command to run without asking for user confirmation. - - - - Profile - - Specifies an Azure profile. - - AzureProfile - - - TrafficManagerProfile - - Specifies a TrafficManagerProfile object to delete. - - TrafficManagerProfile - - - - - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter - - SwitchParameter - - - none - - - Name - - Specifies the name of the Traffic Manager profile that this cmdlet deletes. - - String - - String - - - none - - - Profile - - Specifies an Azure profile. - - AzureProfile - - AzureProfile - - - none - - - ResourceGroupName - - Specifies the name of a resource group. This cmdlet deletes a Traffic Manager profile in the group that this parameter specifies. - - String - - String - - - none - - - TrafficManagerProfile - - Specifies a TrafficManagerProfile object to delete. - - TrafficManagerProfile - - TrafficManagerProfile - - - none - - - - - - Microsoft.Azure.Commands.Network.TrafficManagerProfile - - - - - - - - You can pipe a TrafficManagerProfile object to this cmdlet. - - - - - - - Boolean - - - - - - - - This cmdlet returns a value of $True, if it succeeds or, if the deletion fails, a value of $False. - - - - - - - - Example 1: Delete a profile specified by name - - - - - PS C:\>Remove-AzureTrafficManagerProfile -Name "ContosoProfile" -ResourceGroupName "ResourceGroup11" - - - This command deletes the profile named ContosoProfile in ResourceGroup11. - - - - - - - - - - - Example 2: Delete a profile by using the pipeline - - - - - PS C:\>Get-AzureTrafficManagerProfile -Name "ContosoProfile" -ResourceGroupName "ResourceGroup11" | Remove-AzureTrafficManagerProfile - - - This command gets the profile named ContosoProfile in ResourceGroup11, and then passes that profile to the current cmdlet by using the pipeline operator. The current command deletes that profile. - - - - - - - - - - - - - Get-AzureTrafficManagerProfile - - - - New-AzureTrafficManagerProfile - - - - Set-AzureTrafficManagerProfile - - - - - - - Set-AzureTrafficManagerProfile - - Updates an Azure Traffic Manager profile. - - - - - Set - AzureTrafficManagerProfile - - - - The Set-AzureTrafficManagerProfile cmdlet updates an Azure Traffic Manager profile. This cmdlet updates the settings of the profile from a local profile object. You can pass a profile object to Traffic Manager by using the pipeline or as a parameter value. - - - - Set-AzureTrafficManagerProfile - - Profile - - Specifies an Azure profile. - - AzureProfile - - - TrafficManagerProfile - - Specifies a local TrafficManagerProfile object. This cmdlet updates Traffic Manager to match this local object. - - TrafficManagerProfile - - - - - - Profile - - Specifies an Azure profile. - - AzureProfile - - AzureProfile - - - none - - - TrafficManagerProfile - - Specifies a local TrafficManagerProfile object. This cmdlet updates Traffic Manager to match this local object. - - TrafficManagerProfile - - TrafficManagerProfile - - - none - - - - - - Microsoft.Azure.Commands.Network.TrafficManagerProfile - - - - - - - - You can pipe a TrafficManagerProfile object to this cmdlet. - - - - - - - Microsoft.Azure.Commands.Network.TrafficManagerProfile - - - - - - - - This cmdlet returns a TrafficManagerProfile object. - - - - - - - - Example 1: Update a profile + Example 1: Retrieves data for subscription - PS C:\>$TrafficManagerProfile = Get-AzureTrafficManagerProfile -Name "ContosoProfile" -ResourceGroupName "ResourceGroup11" -PS C:\> Set-AzureTrafficManagerProfile -TrafficManagerProfile $TrafficManagerProfile - + PS C:\>Set-AzureSubscription -SubscriptionId $subscription +PS C:\>$useAggregation = Get-UsageAggregation -ReportedStartTime "5/2/2015" -ReportedEndTime "5/5/2015" - The first command gets an Azure Traffic Manager profile by using the Get-AzureTrafficManagerProfile cmdlet. The command stores the profile locally in the $TrafficManagerProfile variable. After you get that profile, you can change it locally. - The second command updates the Traffic Manager profile named ContosoProfile to match the local value in $TrafficManagerProfile. - - + The final command retrieves the usage data for the subscription for the specificed dates of 5/2/2015 and 5/5/2015. + @@ -1245,19 +233,5 @@ PS C:\> Set-AzureTrafficManagerProfile -TrafficManagerProfile $TrafficManager - - - Get-AzureTrafficManagerProfile - - - - New-AzureTrafficManagerProfile - - - - Remove-AzureTrafficManagerProfile - - - - + From 66f51fa2ae6e7a4a0ed49f2fadda7b8c2526ed00 Mon Sep 17 00:00:00 2001 From: ldattilo Date: Fri, 19 Jun 2015 17:04:42 -0700 Subject: [PATCH 33/40] Edit help file. --- ...zure.Commands.UsageAggregates.dll-help.xml | 320 +++++------------- 1 file changed, 87 insertions(+), 233 deletions(-) diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates/Microsoft.Azure.Commands.UsageAggregates.dll-help.xml b/src/ResourceManager/Commerce/Commands.UsageAggregates/Microsoft.Azure.Commands.UsageAggregates.dll-help.xml index d3f1011253e1..7f8f2c2a4a37 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates/Microsoft.Azure.Commands.UsageAggregates.dll-help.xml +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates/Microsoft.Azure.Commands.UsageAggregates.dll-help.xml @@ -1,237 +1,91 @@ - - - Get-UsageAggregation - - Enables you to query aggregate Azure subscription consumption data by. - - - - - Get - UsageAggregation - - - - The Get-UsageAggregation cmdlet to query aggregate Azure subscription consumption data by: -• Start and end date/time -• Aggregation granularity (ie: daily, hourly) -• Instance level detail (ie: for multiple instances of the same resource) -For more information, see Azure Billing REST API Referencehttps://msdn.microsoft.com/library/azure/1ea5b323-54bb-423d-916f-190de96c6a3c(https://msdn.microsoft.com/library/azure/1ea5b323-54bb-423d-916f-190de96c6a3c) at the Microsoft Developer Network. - - - - Get-UsageAggregation - - ReportedStartTime - - The start of the time range to retrieve data for. - - [DateTime] - - - ReportedEndTime - - The end of the time range to retrieve data for. - - [DateTime] - - - AggregationGranularity - - Value is either daily (default) or hourly to tell the API how to return the results grouped by day or hour. - - AggregationGranularity - - - ShowDetails - - When set to true (default), the aggregates are broken down into the instance metadata which is more granular. - - Boolean - - - ContinuationToken - - Retrieved from previous calls, this is the bookmark used for progress when the responses are paged. - - String - - - - - - EndpointLocation + + + Get-UsageAggregation + + Enables you to query aggregate Azure subscription consumption data. + + + + + Get + UsageAggregation + + - Specifies the location of the external endpoint. Specify this parameter for profiles that have a value of Performance for the TrafficRoutingMethod parameter. - You must specify for endpoints of the type ExternalEndpoints in a profile that has the load balancing method of Performance. - You can find a list of possible values for this parameter by using the List Locations operation. For more information, see List Locations (http://msdn.microsoft.com/en-us/library/gg441293.aspx) at the Microsoft Developer Network. + + The Get-UsageAggregation cmdlet to query aggregate Azure subscription consumption data by: + • Start and end date/time + • Aggregation granularity (ie: daily, hourly) + • Instance level detail (ie: for multiple instances of the same resource) + For more information, see + Azure Billing REST API Reference + https://msdn.microsoft.com/library/azure/1ea5b323-54bb-423d-916f-190de96c6a3c + (https://msdn.microsoft.com/library/azure/1ea5b323-54bb-423d-916f-190de96c6a3c) at the Microsoft Developer Network. + - String - - String - - - none - - - EndpointName - - Specifies the name of the Traffic Manager endpoint that this cmdlet adds. - - String - - String - - - none - - - EndpointStatus - - Specifies the status of the endpoint. If the status is Enabled, the endpoint is probed for endpoint health and is included in the traffic routing method. Valid values are: - --- Enabled --- Disabled - - String - - String - - - none - - - Priority - - Specifies the priority that Traffic Manager assigns to the endpoint. Specify this parameter only if the Traffic Manager profile is configured for priority traffic routing. Valid values are integers from 1 through 1000. Lower values represent higher priority. - If you specify a priority, you must specify priorities on all endpoints, and no two endpoints can share the same priority value. If you do not specify priorities, Traffic Manager assigns endpoints with default priority values, starting with one (1), in the order the profile lists the endpoints. - - UInt32 - - UInt32 - - - none - - - Profile - - Specifies an Azure profile. - - AzureProfile - - AzureProfile - - - none - - - Target - - Specifies the fully qualified DNS name of the endpoint. Traffic Manager returns this value in DNS responses when it directs traffic to this endpoint. - - String - - String - - - none - - - TrafficManagerProfile - - Specifies a local TrafficManagerProfile object. This cmdlet modifies this local object. - - TrafficManagerProfile - - TrafficManagerProfile - - - none - - - Type - - Specifies the type of endpoint that this cmdlet adds to the Azure Traffic Manager profile. Valid values are: - --- AzureEndpoints --- ExternalEndpoints --- NestedEndpoints - Azure Resource Manager is currently in Preview. The only supported type is ExternalEndpoints. - - String - - String - - - none - - - Weight - - Specifies the weight that Traffic Manager assigns to the endpoint. Valid values are integers from 1 through 1000. The default value is one (1). Specify this parameter only if the Traffic Manager profile has a value of Weighted for the TrafficRoutingMethod parameter. - - UInt32 - - UInt32 - - - none - - - - - - Microsoft.Azure.Commands.Network.TrafficManagerProfile - - - - - - - - You can pipe a TrafficManagerProfile object to this cmdlet. - - - - - - - Microsoft.Azure.Commands.Network.TrafficManagerProfile - - - - - - - - This cmdlet returns a modified TrafficManagerProfile object. - - - - - - - - Example 1: Retrieves data for subscription - - - - - PS C:\>Set-AzureSubscription -SubscriptionId $subscription -PS C:\>$useAggregation = Get-UsageAggregation -ReportedStartTime "5/2/2015" -ReportedEndTime "5/5/2015" - - The final command retrieves the usage data for the subscription for the specificed dates of 5/2/2015 and 5/5/2015. - - - - - - - - - - - + + + Get-UsageAggregation + + ReportedStartTime + + The start of the time range to retrieve data for. + + DateTime + + + ReportedEndTime + + The end of the time range to retrieve data for. + + DateTime + + + AggregationGranularity + + Value is either daily (default) or hourly to tell the API how to return the results grouped by day or hour. + + AggregationGranularity + + + ShowDetails + + When set to true (default), the aggregates are broken down into the instance metadata which is more granular. + + Boolean + + + ContinuationToken + + Retrieved from previous calls, this is the bookmark used for progress when the responses are paged. + + String + + + + + + Example 1: Retrieves data for subscription + + + + + + PS C:\>Set-AzureSubscription -SubscriptionId $subscription + PS C:\>Get-UsageAggregation -ReportedStartTime "5/2/2015" -ReportedEndTime "5/5/2015" + + + The final command retrieves the usage data for the subscription for the specificed dates of 5/2/2015 and 5/5/2015. + + + + + + + + + + + From 7405c66d4b4a946ab4faa768e8922e30ae98109a Mon Sep 17 00:00:00 2001 From: Jack Ma Date: Fri, 19 Jun 2015 17:26:55 -0700 Subject: [PATCH 34/40] ADF PowerShell update for sprint 50 --- .../Commands.DataFactories.Test.csproj | 2 +- .../DataFactories/Commands.DataFactories.Test/packages.config | 2 +- .../Commands.DataFactories/Commands.DataFactories.csproj | 2 +- .../DataFactories/Commands.DataFactories/packages.config | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories.Test/Commands.DataFactories.Test.csproj b/src/ResourceManager/DataFactories/Commands.DataFactories.Test/Commands.DataFactories.Test.csproj index d38771eab2a5..83c909fa7316 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories.Test/Commands.DataFactories.Test.csproj +++ b/src/ResourceManager/DataFactories/Commands.DataFactories.Test/Commands.DataFactories.Test.csproj @@ -64,7 +64,7 @@ ..\..\..\packages\Microsoft.Azure.Management.Authorization.0.18.2-preview\lib\net40\Microsoft.Azure.Management.Authorization.dll - ..\..\..\packages\Microsoft.Azure.Management.DataFactories.0.15.10-preview\lib\net40\Microsoft.Azure.Management.DataFactories.dll + ..\..\..\packages\Microsoft.Azure.Management.DataFactories.0.15.12-preview\lib\net40\Microsoft.Azure.Management.DataFactories.dll False diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories.Test/packages.config b/src/ResourceManager/DataFactories/Commands.DataFactories.Test/packages.config index 17b6f5fde259..525a1ef47387 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories.Test/packages.config +++ b/src/ResourceManager/DataFactories/Commands.DataFactories.Test/packages.config @@ -6,7 +6,7 @@ - + diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/Commands.DataFactories.csproj b/src/ResourceManager/DataFactories/Commands.DataFactories/Commands.DataFactories.csproj index 239ece82a8fe..748f235f2329 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/Commands.DataFactories.csproj +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/Commands.DataFactories.csproj @@ -63,7 +63,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.DataFactories.0.15.10-preview\lib\net40\Microsoft.Azure.Management.DataFactories.dll + ..\..\..\packages\Microsoft.Azure.Management.DataFactories.0.15.12-preview\lib\net40\Microsoft.Azure.Management.DataFactories.dll False diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/packages.config b/src/ResourceManager/DataFactories/Commands.DataFactories/packages.config index a9cefe6f1f5e..baf97ea46f5e 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/packages.config +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/packages.config @@ -4,7 +4,7 @@ - + From e6554d9c190aee36357c320827a1345757e867ae Mon Sep 17 00:00:00 2001 From: Matt Westphal Date: Fri, 19 Jun 2015 17:29:34 -0700 Subject: [PATCH 35/40] updated help file with formatting from help editor --- ...zure.Commands.UsageAggregates.dll-help.xml | 294 ++++++++++++------ 1 file changed, 203 insertions(+), 91 deletions(-) diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates/Microsoft.Azure.Commands.UsageAggregates.dll-help.xml b/src/ResourceManager/Commerce/Commands.UsageAggregates/Microsoft.Azure.Commands.UsageAggregates.dll-help.xml index 7f8f2c2a4a37..d9ced1185768 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates/Microsoft.Azure.Commands.UsageAggregates.dll-help.xml +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates/Microsoft.Azure.Commands.UsageAggregates.dll-help.xml @@ -1,91 +1,203 @@ - - - - - Get-UsageAggregation - - Enables you to query aggregate Azure subscription consumption data. - - - - - Get - UsageAggregation - - - - - The Get-UsageAggregation cmdlet to query aggregate Azure subscription consumption data by: - • Start and end date/time - • Aggregation granularity (ie: daily, hourly) - • Instance level detail (ie: for multiple instances of the same resource) - For more information, see - Azure Billing REST API Reference - https://msdn.microsoft.com/library/azure/1ea5b323-54bb-423d-916f-190de96c6a3c - (https://msdn.microsoft.com/library/azure/1ea5b323-54bb-423d-916f-190de96c6a3c) at the Microsoft Developer Network. - - - - - Get-UsageAggregation - - ReportedStartTime - - The start of the time range to retrieve data for. - - DateTime - - - ReportedEndTime - - The end of the time range to retrieve data for. - - DateTime - - - AggregationGranularity - - Value is either daily (default) or hourly to tell the API how to return the results grouped by day or hour. - - AggregationGranularity - - - ShowDetails - - When set to true (default), the aggregates are broken down into the instance metadata which is more granular. - - Boolean - - - ContinuationToken - - Retrieved from previous calls, this is the bookmark used for progress when the responses are paged. - - String - - - - - - Example 1: Retrieves data for subscription - - - - - - PS C:\>Set-AzureSubscription -SubscriptionId $subscription - PS C:\>Get-UsageAggregation -ReportedStartTime "5/2/2015" -ReportedEndTime "5/5/2015" - - - The final command retrieves the usage data for the subscription for the specificed dates of 5/2/2015 and 5/5/2015. - - - - - - - - - - - + + + + + Get-UsageAggregates + + Enables you to query aggregate Azure subscription consumption data. + + + + + Get + UsageAggregates + + + + +The Get-UsageAggregation cmdlet to query aggregate Azure subscription consumption data by: +• Start and end date/time +• Aggregation granularity (ie: daily, hourly) +• Instance level detail (ie: for multiple instances of the same resource) +For more information, see Azure Billing REST API Reference (https://msdn.microsoft.com/library/azure/1ea5b323-54bb-423d-916f-190de96c6a3c) at the Microsoft Developer Network. + + + + Get-UsageAggregates + + ReportedStartTime + + + + DateTime + + + ReportedEndTime + + + + DateTime + + + AggregationGranularity + + + + AggregationGranularity + + + ShowDetails + + + + Boolean + + + ContinuationToken + + + + String + + + Profile + + + + AzureProfile + + + + + + ReportedStartTime + + + + DateTime + + DateTime + + + + + + ReportedEndTime + + + + DateTime + + DateTime + + + + + + AggregationGranularity + + + + AggregationGranularity + + AggregationGranularity + + + + + + ShowDetails + + + + Boolean + + Boolean + + + + + + ContinuationToken + + + + String + + String + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1: Retrieves data for subscription -------------------------- + + PS C:\> + + PS C:\>Set-AzureSubscription -SubscriptionId $subscription +PS C:\>Get-UsageAggregates -ReportedStartTime "5/2/2015" -ReportedEndTime "5/5/2015" + + The final command retrieves the usage data for the subscription for the specificed dates of 5/2/2015 and 5/5/2015. + + + + + + + + + + + + + + + + + \ No newline at end of file From 9ce45b4582f7a89a6d9621b2d2eb92005127d18c Mon Sep 17 00:00:00 2001 From: caln-microsoft Date: Fri, 19 Jun 2015 17:42:22 -0700 Subject: [PATCH 36/40] Fixed refactoring error --- .../Services/AzureSqlDatabaseBackupCommunicator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupCommunicator.cs b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupCommunicator.cs index a56dd2597220..a4e216db5ac4 100644 --- a/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupCommunicator.cs +++ b/src/ResourceManager/Sql/Commands.Sql/Database Backup/Services/AzureSqlDatabaseBackupCommunicator.cs @@ -69,7 +69,7 @@ public AzureSqlDatabaseBackupCommunicator(AzureProfile profile, AzureSubscriptio /// List of restore points public IList ListRestorePoints(string resourceGroupName, string serverName, string databaseName, string clientRequestId) { - return GetCurrentSqlClient(clientRequestId).Backup.ListRestorePoints(resourceGroupName, serverName, databaseName).RestorePoints; + return GetCurrentSqlClient(clientRequestId).DatabaseBackup.ListRestorePoints(resourceGroupName, serverName, databaseName).RestorePoints; } /// From 31811ed3926397259fe1835e488164fd8f0ea75e Mon Sep 17 00:00:00 2001 From: caln-microsoft Date: Fri, 19 Jun 2015 18:15:53 -0700 Subject: [PATCH 37/40] Changed ChangeLog for Azure Sql Data Warehouse functionality --- ChangeLog.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ChangeLog.txt b/ChangeLog.txt index 03e6681e714f..dc6fbb464f29 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -2,6 +2,13 @@ * Added Batch cmdlets * Start-AzureBatchPoolResize * Stop-AzureBatchPoolResize +* Azure SQL Database + * Added cmdlets for pause/resume functionality and retrieving restore points for restoring backups: + * Suspend-AzureSqlDatabase + * Resume-AzureSqlDatabase + * Get-AzureSqlDatabaseRestorePoints + * Changed cmdlets: + * New-AzureSqlDatabase - Can now create Azure Sql Data Warehouse databases 2015.06.05 version 0.9.3 * Fixed bug in Websites cmdlets related to slots #454 From 588077608d97aa28a41eaf53054fe337f6efb104 Mon Sep 17 00:00:00 2001 From: Matt Westphal Date: Fri, 19 Jun 2015 18:28:10 -0700 Subject: [PATCH 38/40] fixed merge error --- ChangeLog.txt | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 24ea8f9bf619..719b7103a9b1 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,13 +1,17 @@ -2015.06.25 version 0.9.4 -* Added Batch cmdlets - * Start-AzureBatchPoolResize - * Stop-AzureBatchPoolResize -* RedisCache cmdlets - * Set-AzureRedisCache - Added support for scaling, using RedisConfiguration instead of MaxMemoryPolicy #513 - * New-AzureRedisCache - Using RedisConfiguration instead of MaxMemoryPolicy #513 -* Azure Key Vault cmdlets - * Updated Key Vault package versions - * Fixed bugs related to secrets +2015.06.25 version 0.9.4 +* Added Batch cmdlets + * Start-AzureBatchPoolResize + * Stop-AzureBatchPoolResize +* RedisCache cmdlets + * Set-AzureRedisCache - Added support for scaling, using RedisConfiguration instead of MaxMemoryPolicy #513 + * New-AzureRedisCache - Using RedisConfiguration instead of MaxMemoryPolicy #513 +* Azure Key Vault cmdlets + * Updated Key Vault package versions + * Fixed bugs related to secrets +* Azure Resource Manager + * Added Test-AzureResourceGroup and Test-AzureResource cmdlets + * Refactored Resource Lock cmdlets + * Removed unnecessary code when getting a resource * Added UsageAggregates cmdlets * Get-UsageAggregates From e15552f4324a025a7c673a4d5e37d0ae0d198e59 Mon Sep 17 00:00:00 2001 From: Matt Westphal Date: Fri, 19 Jun 2015 19:23:12 -0700 Subject: [PATCH 39/40] updated package versions --- .../Commands.UsageAggregates.Test.csproj | 7 +++++-- .../Commerce/Commands.UsageAggregates.Test/packages.config | 2 +- .../Commands.UsageAggregates.csproj | 4 ++-- .../Commerce/Commands.UsageAggregates/packages.config | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj index 3254f044b368..f6d77d57833b 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj @@ -40,7 +40,7 @@ True - ..\..\..\packages\Microsoft.Azure.Commerce.UsageAggregates.1.1.0-preview\lib\net40\Microsoft.Azure.Commerce.UsageAggregates.dll + ..\..\..\packages\Microsoft.Azure.Commerce.UsageAggregates.1.1.1-preview\lib\net40\Microsoft.Azure.Commerce.UsageAggregates.dll True @@ -116,7 +116,10 @@ - + + + Designer + PreserveNewest diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/packages.config b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/packages.config index 5995367896a6..5dd93edd0617 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/packages.config +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/packages.config @@ -1,7 +1,7 @@  - + diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates/Commands.UsageAggregates.csproj b/src/ResourceManager/Commerce/Commands.UsageAggregates/Commands.UsageAggregates.csproj index 34e896bc9229..a191bab861fe 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates/Commands.UsageAggregates.csproj +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates/Commands.UsageAggregates.csproj @@ -37,8 +37,8 @@ ..\..\..\packages\Hyak.Common.1.0.2\lib\net45\Hyak.Common.dll True - - ..\..\..\packages\Microsoft.Azure.Commerce.UsageAggregates.1.1.0-preview\lib\net40\Microsoft.Azure.Commerce.UsageAggregates.dll + + ..\..\..\packages\Microsoft.Azure.Commerce.UsageAggregates.1.1.1-preview\lib\net40\Microsoft.Azure.Commerce.UsageAggregates.dll True diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates/packages.config b/src/ResourceManager/Commerce/Commands.UsageAggregates/packages.config index 0b172eac0bd1..aa7de454e7e2 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates/packages.config +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates/packages.config @@ -1,7 +1,7 @@  - + From 55c528a2c9041f5fb621ae5ff034aee894f078ce Mon Sep 17 00:00:00 2001 From: Matt Westphal Date: Fri, 19 Jun 2015 19:26:56 -0700 Subject: [PATCH 40/40] removed app.config --- .../Commands.UsageAggregates.Test.csproj | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj index f6d77d57833b..10cae9f1ff63 100644 --- a/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj +++ b/src/ResourceManager/Commerce/Commands.UsageAggregates.Test/Commands.UsageAggregates.Test.csproj @@ -116,7 +116,6 @@ - Designer