diff --git a/setup/azurecmdfiles.wxi b/setup/azurecmdfiles.wxi index fac096a42fd5..1343534e150d 100644 --- a/setup/azurecmdfiles.wxi +++ b/setup/azurecmdfiles.wxi @@ -1979,6 +1979,9 @@ + + + @@ -5365,6 +5368,7 @@ + diff --git a/src/Common/Commands.Common.Storage/Commands.Common.Storage.csproj b/src/Common/Commands.Common.Storage/Commands.Common.Storage.csproj index 4bffe1aba9a9..2cac1e4b0bbd 100644 --- a/src/Common/Commands.Common.Storage/Commands.Common.Storage.csproj +++ b/src/Common/Commands.Common.Storage/Commands.Common.Storage.csproj @@ -66,7 +66,7 @@ False - ..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/Common/Commands.Common.Storage/packages.config b/src/Common/Commands.Common.Storage/packages.config index b56918c5a130..f2ebb79ce6b4 100644 --- a/src/Common/Commands.Common.Storage/packages.config +++ b/src/Common/Commands.Common.Storage/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/Common/Commands.Common.Test/Commands.Common.Test.csproj b/src/Common/Commands.Common.Test/Commands.Common.Test.csproj index 3b7a1393492a..04be930b6358 100644 --- a/src/Common/Commands.Common.Test/Commands.Common.Test.csproj +++ b/src/Common/Commands.Common.Test/Commands.Common.Test.csproj @@ -65,7 +65,7 @@ False - ..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\packages\Microsoft.Azure.Test.HttpRecorder.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.HttpRecorder.dll diff --git a/src/Common/Commands.Common.Test/packages.config b/src/Common/Commands.Common.Test/packages.config index c7b1bd97af32..705bcc0a0611 100644 --- a/src/Common/Commands.Common.Test/packages.config +++ b/src/Common/Commands.Common.Test/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/Common/Commands.Common/Commands.Common.csproj b/src/Common/Commands.Common/Commands.Common.csproj index f593730325d3..2483d0c2e001 100644 --- a/src/Common/Commands.Common/Commands.Common.csproj +++ b/src/Common/Commands.Common/Commands.Common.csproj @@ -68,7 +68,7 @@ False - ..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/Common/Commands.Common/packages.config b/src/Common/Commands.Common/packages.config index 196cee0c4d8d..abdfbbed145e 100644 --- a/src/Common/Commands.Common/packages.config +++ b/src/Common/Commands.Common/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/Common/Commands.Profile/Commands.Profile.csproj b/src/Common/Commands.Profile/Commands.Profile.csproj index cb69741e46cc..f40f5ff69182 100644 --- a/src/Common/Commands.Profile/Commands.Profile.csproj +++ b/src/Common/Commands.Profile/Commands.Profile.csproj @@ -62,7 +62,7 @@ False - ..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll diff --git a/src/Common/Commands.Profile/packages.config b/src/Common/Commands.Profile/packages.config index b4a710776ebc..653d89f6ed0b 100644 --- a/src/Common/Commands.Profile/packages.config +++ b/src/Common/Commands.Profile/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/Common/Commands.ScenarioTest/Commands.ScenarioTest.csproj b/src/Common/Commands.ScenarioTest/Commands.ScenarioTest.csproj index b36d1111401a..4d6f265b39e5 100644 --- a/src/Common/Commands.ScenarioTest/Commands.ScenarioTest.csproj +++ b/src/Common/Commands.ScenarioTest/Commands.ScenarioTest.csproj @@ -55,7 +55,7 @@ False - ..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\packages\Microsoft.Azure.Test.Framework.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll diff --git a/src/Common/Commands.ScenarioTest/packages.config b/src/Common/Commands.ScenarioTest/packages.config index 53da7b2da613..2ff11273c825 100644 --- a/src/Common/Commands.ScenarioTest/packages.config +++ b/src/Common/Commands.ScenarioTest/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/Common/Commands.ScenarioTests.Common/Commands.ScenarioTests.Common.csproj b/src/Common/Commands.ScenarioTests.Common/Commands.ScenarioTests.Common.csproj index ca0fe4d9c269..0a021c9182e4 100644 --- a/src/Common/Commands.ScenarioTests.Common/Commands.ScenarioTests.Common.csproj +++ b/src/Common/Commands.ScenarioTests.Common/Commands.ScenarioTests.Common.csproj @@ -54,7 +54,7 @@ False - ..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\packages\Microsoft.Azure.Test.Framework.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll diff --git a/src/Common/Commands.ScenarioTests.Common/packages.config b/src/Common/Commands.ScenarioTests.Common/packages.config index 7d12141e37b7..c905cbbbdb5a 100644 --- a/src/Common/Commands.ScenarioTests.Common/packages.config +++ b/src/Common/Commands.ScenarioTests.Common/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands.ApiManagement.ServiceManagement.csproj b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands.ApiManagement.ServiceManagement.csproj index 4691f12d9df4..f0170c00d250 100644 --- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands.ApiManagement.ServiceManagement.csproj +++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands.ApiManagement.ServiceManagement.csproj @@ -72,7 +72,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/packages.config b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/packages.config index 982a18f9d94e..9a5e820371eb 100644 --- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/packages.config +++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/packages.config @@ -6,7 +6,7 @@ - + diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/Commands.ApiManagement.Test.csproj b/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/Commands.ApiManagement.Test.csproj index c65829bcde28..d2a09f55c46c 100644 --- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/Commands.ApiManagement.Test.csproj +++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/Commands.ApiManagement.Test.csproj @@ -65,7 +65,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/packages.config b/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/packages.config index 41dc79623a6c..94b4bd587827 100644 --- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/packages.config +++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands.ApiManagement.csproj b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands.ApiManagement.csproj index 26c834415061..b617d2252223 100644 --- a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands.ApiManagement.csproj +++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands.ApiManagement.csproj @@ -71,7 +71,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement/packages.config b/src/ResourceManager/ApiManagement/Commands.ApiManagement/packages.config index 982a18f9d94e..9a5e820371eb 100644 --- a/src/ResourceManager/ApiManagement/Commands.ApiManagement/packages.config +++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement/packages.config @@ -6,7 +6,7 @@ - + diff --git a/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/Commands.ApiManagement.ServiceManagement.Test.csproj b/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/Commands.ApiManagement.ServiceManagement.Test.csproj index 605ebfb7a4b4..351bccf6e609 100644 --- a/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/Commands.ApiManagement.ServiceManagement.Test.csproj +++ b/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/Commands.ApiManagement.ServiceManagement.Test.csproj @@ -65,7 +65,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/packages.config b/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/packages.config index 5637fb1b72db..3012e66b5419 100644 --- a/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/packages.config +++ b/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/Commands.ResourceManagement.Automation.Test.csproj b/src/ResourceManager/Automation/Commands.Automation.Test/Commands.ResourceManagement.Automation.Test.csproj index 52849def3b4d..4f40978789d4 100644 --- a/src/ResourceManager/Automation/Commands.Automation.Test/Commands.ResourceManagement.Automation.Test.csproj +++ b/src/ResourceManager/Automation/Commands.Automation.Test/Commands.ResourceManagement.Automation.Test.csproj @@ -62,7 +62,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.HttpRecorder.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.HttpRecorder.dll diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/packages.config b/src/ResourceManager/Automation/Commands.Automation.Test/packages.config index 08124b8e090e..31f4e44d7722 100644 --- a/src/ResourceManager/Automation/Commands.Automation.Test/packages.config +++ b/src/ResourceManager/Automation/Commands.Automation.Test/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ResourceManager/Automation/Commands.Automation/Commands.ResourceManagement.Automation.csproj b/src/ResourceManager/Automation/Commands.Automation/Commands.ResourceManagement.Automation.csproj index 585441f1d221..c9ff00b63ad3 100644 --- a/src/ResourceManager/Automation/Commands.Automation/Commands.ResourceManagement.Automation.csproj +++ b/src/ResourceManager/Automation/Commands.Automation/Commands.ResourceManagement.Automation.csproj @@ -65,7 +65,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll diff --git a/src/ResourceManager/Automation/Commands.Automation/packages.config b/src/ResourceManager/Automation/Commands.Automation/packages.config index bcfebd8b3501..0b329390e4e1 100644 --- a/src/ResourceManager/Automation/Commands.Automation/packages.config +++ b/src/ResourceManager/Automation/Commands.Automation/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/Commands.AzureBackup.Test.csproj b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/Commands.AzureBackup.Test.csproj index 569187754c5a..5e28bc7689e5 100644 --- a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/Commands.AzureBackup.Test.csproj +++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/Commands.AzureBackup.Test.csproj @@ -45,7 +45,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/packages.config b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/packages.config index 3692e89e3c49..347d88dceca1 100644 --- a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/packages.config +++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Commands.AzureBackup.csproj b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Commands.AzureBackup.csproj index 9562723b6b0a..8edddbb401fe 100644 --- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Commands.AzureBackup.csproj +++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Commands.AzureBackup.csproj @@ -62,7 +62,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/packages.config b/src/ResourceManager/AzureBackup/Commands.AzureBackup/packages.config index 745b22bb0fa2..2d0042531dd2 100644 --- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/packages.config +++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/Commands.Batch.Test.csproj b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Commands.Batch.Test.csproj index e477d83d2735..46099a6a1074 100644 --- a/src/ResourceManager/AzureBatch/Commands.Batch.Test/Commands.Batch.Test.csproj +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Commands.Batch.Test.csproj @@ -67,9 +67,8 @@ ..\..\..\packages\Microsoft.Azure.Management.Batch.1.4.0\lib\net40\Microsoft.Azure.Management.Batch.dll - - False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False @@ -117,10 +116,6 @@ False ..\..\..\packages\WindowsAzure.Storage.4.3.0\lib\net40\Microsoft.WindowsAzure.Storage.dll - - False - ..\..\..\packages\Hydra.SpecTestSupport.1.0.5417.13285-prerelease\lib\net45\Microsoft.WindowsAzure.Testing.dll - ..\..\..\packages\Moq.4.2.1402.2112\lib\net40\Moq.dll @@ -167,9 +162,15 @@ + + + + + + @@ -179,6 +180,7 @@ + @@ -271,6 +273,18 @@ Always + + Always + + + Always + + + Always + + + Always + Always @@ -340,6 +354,9 @@ Always + + Always + Always @@ -361,6 +378,9 @@ Always + + Always + Always @@ -379,6 +399,12 @@ Always + + Always + + + Always + Always @@ -501,4 +527,4 @@ --> - + \ No newline at end of file diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodes/ResetBatchComputeNodeCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodes/ResetBatchComputeNodeCommandTests.cs new file mode 100644 index 000000000000..7d17d9891e8e --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodes/ResetBatchComputeNodeCommandTests.cs @@ -0,0 +1,120 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Batch; +using Microsoft.Azure.Batch.Common; +using Microsoft.Azure.Batch.Protocol; +using Microsoft.Azure.Batch.Protocol.Models; +using Microsoft.Azure.Commands.Batch.Models; +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Moq; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Threading.Tasks; +using Xunit; +using BatchClient = Microsoft.Azure.Commands.Batch.Models.BatchClient; + +namespace Microsoft.Azure.Commands.Batch.Test.Pools +{ + public class ResetBatchComputeNodeCommandTests + { + private ResetBatchComputeNodeCommand cmdlet; + private Mock batchClientMock; + private Mock commandRuntimeMock; + + public ResetBatchComputeNodeCommandTests() + { + batchClientMock = new Mock(); + commandRuntimeMock = new Mock(); + cmdlet = new ResetBatchComputeNodeCommand() + { + CommandRuntime = commandRuntimeMock.Object, + BatchClient = batchClientMock.Object, + }; + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void ResetBatchComputeNodeParametersTest() + { + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.Id = null; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.PoolId = "testPool"; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.Id = "computeNode1"; + + // Don't go to the service on a Reimage ComputeNode call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + ComputeNodeReimageResponse response = new ComputeNodeReimageResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Verify no exceptions when required parameter is set + cmdlet.ExecuteCmdlet(); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void ResetComputeNodeRequestTest() + { + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + + cmdlet.PoolId = "testPool"; + cmdlet.Id = "computeNode1"; + cmdlet.ReimageOption = ComputeNodeReimageOption.Terminate; + + ComputeNodeReimageOption? requestReimageOption = null; + + // Don't go to the service on a Reimage ComputeNode call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + requestReimageOption = request.TypedParameters.ComputeNodeReimageOption; + + ComputeNodeReimageResponse response = new ComputeNodeReimageResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + cmdlet.ExecuteCmdlet(); + + // Verify that the reimage option was properly set on the outgoing request + Assert.Equal(cmdlet.ReimageOption, requestReimageOption); + } + } +} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodes/RestartBatchComputeNodeCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodes/RestartBatchComputeNodeCommandTests.cs new file mode 100644 index 000000000000..76a184a3588c --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodes/RestartBatchComputeNodeCommandTests.cs @@ -0,0 +1,120 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Batch; +using Microsoft.Azure.Batch.Common; +using Microsoft.Azure.Batch.Protocol; +using Microsoft.Azure.Batch.Protocol.Models; +using Microsoft.Azure.Commands.Batch.Models; +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Moq; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Threading.Tasks; +using Xunit; +using BatchClient = Microsoft.Azure.Commands.Batch.Models.BatchClient; + +namespace Microsoft.Azure.Commands.Batch.Test.Pools +{ + public class RestartBatchComputeNodeCommandTests + { + private RestartBatchComputeNodeCommand cmdlet; + private Mock batchClientMock; + private Mock commandRuntimeMock; + + public RestartBatchComputeNodeCommandTests() + { + batchClientMock = new Mock(); + commandRuntimeMock = new Mock(); + cmdlet = new RestartBatchComputeNodeCommand() + { + CommandRuntime = commandRuntimeMock.Object, + BatchClient = batchClientMock.Object, + }; + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void RestartBatchComputeNodeParametersTest() + { + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.Id = null; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.PoolId = "testPool"; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.Id = "computeNode1"; + + // Don't go to the service on a Reboot ComputeNode call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + ComputeNodeRebootResponse response = new ComputeNodeRebootResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Verify no exceptions when required parameter is set + cmdlet.ExecuteCmdlet(); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void RestartComputeNodeRequestTest() + { + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + + cmdlet.PoolId = "testPool"; + cmdlet.Id = "computeNode1"; + cmdlet.RebootOption = ComputeNodeRebootOption.Terminate; + + ComputeNodeRebootOption? requestRebootOption = null; + + // Don't go to the service on a Reboot ComputeNode call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + requestRebootOption = request.TypedParameters.ComputeNodeRebootOption; + + ComputeNodeRebootResponse response = new ComputeNodeRebootResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + cmdlet.ExecuteCmdlet(); + + // Verify that the reboot option was properly set on the outgoing request + Assert.Equal(cmdlet.RebootOption, requestRebootOption); + } + } +} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/JobSchedules/DisableBatchJobScheduleCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/JobSchedules/DisableBatchJobScheduleCommandTests.cs new file mode 100644 index 000000000000..88fac985d10a --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/JobSchedules/DisableBatchJobScheduleCommandTests.cs @@ -0,0 +1,79 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Batch; +using Microsoft.Azure.Batch.Protocol; +using Microsoft.Azure.Batch.Protocol.Models; +using Microsoft.Azure.Commands.Batch.Models; +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Moq; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Threading.Tasks; +using Xunit; +using BatchClient = Microsoft.Azure.Commands.Batch.Models.BatchClient; + +namespace Microsoft.Azure.Commands.Batch.Test.Pools +{ + public class DisableBatchJobScheduleCommandTests + { + private DisableBatchJobScheduleCommand cmdlet; + private Mock batchClientMock; + private Mock commandRuntimeMock; + + public DisableBatchJobScheduleCommandTests() + { + batchClientMock = new Mock(); + commandRuntimeMock = new Mock(); + cmdlet = new DisableBatchJobScheduleCommand() + { + CommandRuntime = commandRuntimeMock.Object, + BatchClient = batchClientMock.Object, + }; + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void DisableJobScheduleParametersTest() + { + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.Id = null; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.Id = "testJobSchedule"; + + // Don't go to the service on a Disable CloudJobSchedule call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + CloudJobScheduleDisableResponse response = new CloudJobScheduleDisableResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Verify no exceptions when required parameter is set + cmdlet.ExecuteCmdlet(); + } + } +} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/JobSchedules/EnableBatchJobScheduleCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/JobSchedules/EnableBatchJobScheduleCommandTests.cs new file mode 100644 index 000000000000..f55c3ca3f056 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/JobSchedules/EnableBatchJobScheduleCommandTests.cs @@ -0,0 +1,79 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Batch; +using Microsoft.Azure.Batch.Protocol; +using Microsoft.Azure.Batch.Protocol.Models; +using Microsoft.Azure.Commands.Batch.Models; +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Moq; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Threading.Tasks; +using Xunit; +using BatchClient = Microsoft.Azure.Commands.Batch.Models.BatchClient; + +namespace Microsoft.Azure.Commands.Batch.Test.Pools +{ + public class EnableBatchJobScheduleCommandTests + { + private EnableBatchJobScheduleCommand cmdlet; + private Mock batchClientMock; + private Mock commandRuntimeMock; + + public EnableBatchJobScheduleCommandTests() + { + batchClientMock = new Mock(); + commandRuntimeMock = new Mock(); + cmdlet = new EnableBatchJobScheduleCommand() + { + CommandRuntime = commandRuntimeMock.Object, + BatchClient = batchClientMock.Object, + }; + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void EnableJobScheduleParametersTest() + { + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.Id = null; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.Id = "testJobSchedule"; + + // Don't go to the service on an Enable CloudJobSchedule call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + CloudJobScheduleEnableResponse response = new CloudJobScheduleEnableResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Verify no exceptions when required parameter is set + cmdlet.ExecuteCmdlet(); + } + } +} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/Jobs/DisableBatchJobCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Jobs/DisableBatchJobCommandTests.cs new file mode 100644 index 000000000000..963b508c228e --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Jobs/DisableBatchJobCommandTests.cs @@ -0,0 +1,117 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Batch; +using Microsoft.Azure.Batch.Common; +using Microsoft.Azure.Batch.Protocol; +using Microsoft.Azure.Batch.Protocol.Models; +using Microsoft.Azure.Commands.Batch.Models; +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Moq; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Threading.Tasks; +using Xunit; +using BatchClient = Microsoft.Azure.Commands.Batch.Models.BatchClient; + +namespace Microsoft.Azure.Commands.Batch.Test.Pools +{ + public class DisableBatchJobCommandTests + { + private DisableBatchJobCommand cmdlet; + private Mock batchClientMock; + private Mock commandRuntimeMock; + + public DisableBatchJobCommandTests() + { + batchClientMock = new Mock(); + commandRuntimeMock = new Mock(); + cmdlet = new DisableBatchJobCommand() + { + CommandRuntime = commandRuntimeMock.Object, + BatchClient = batchClientMock.Object, + }; + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void DisableJobParametersTest() + { + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.Id = null; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.Id = "testJob"; + cmdlet.DisableJobOption = DisableJobOption.Terminate; + + // Don't go to the service on a Disable CloudJob call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + CloudJobDisableResponse response = new CloudJobDisableResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Verify no exceptions when required parameter is set + cmdlet.ExecuteCmdlet(); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void DisableJobRequestTest() + { + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + + DisableJobOption disableOption = DisableJobOption.Terminate; + DisableJobOption requestDisableOption = DisableJobOption.Requeue; + + cmdlet.Id = "testJob"; + cmdlet.DisableJobOption = disableOption; + + // Don't go to the service on an Enable AutoScale call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + requestDisableOption = request.TypedParameters.DisableJobOption; + + request.ServiceRequestFunc = (cancellationToken) => + { + CloudJobDisableResponse response = new CloudJobDisableResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + cmdlet.ExecuteCmdlet(); + + // Verify that the job disable option was properly set on the outgoing request + Assert.Equal(disableOption, requestDisableOption); + } + } +} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/Jobs/EnableBatchJobCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Jobs/EnableBatchJobCommandTests.cs new file mode 100644 index 000000000000..be930f5f878b --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Jobs/EnableBatchJobCommandTests.cs @@ -0,0 +1,79 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Batch; +using Microsoft.Azure.Batch.Protocol; +using Microsoft.Azure.Batch.Protocol.Models; +using Microsoft.Azure.Commands.Batch.Models; +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Moq; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Threading.Tasks; +using Xunit; +using BatchClient = Microsoft.Azure.Commands.Batch.Models.BatchClient; + +namespace Microsoft.Azure.Commands.Batch.Test.Pools +{ + public class EnableBatchJobCommandTests + { + private EnableBatchJobCommand cmdlet; + private Mock batchClientMock; + private Mock commandRuntimeMock; + + public EnableBatchJobCommandTests() + { + batchClientMock = new Mock(); + commandRuntimeMock = new Mock(); + cmdlet = new EnableBatchJobCommand() + { + CommandRuntime = commandRuntimeMock.Object, + BatchClient = batchClientMock.Object, + }; + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void EnableJobParametersTest() + { + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.Id = null; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.Id = "testJob"; + + // Don't go to the service on an Enable CloudJob call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + CloudJobEnableResponse response = new CloudJobEnableResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Verify no exceptions when required parameter is set + cmdlet.ExecuteCmdlet(); + } + } +} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/Pools/SetBatchPoolOSVersionCommandTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Pools/SetBatchPoolOSVersionCommandTests.cs new file mode 100644 index 000000000000..99ce0b58efd3 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Pools/SetBatchPoolOSVersionCommandTests.cs @@ -0,0 +1,119 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Batch; +using Microsoft.Azure.Batch.Protocol; +using Microsoft.Azure.Batch.Protocol.Models; +using Microsoft.Azure.Commands.Batch.Models; +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Moq; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Threading.Tasks; +using Xunit; +using BatchClient = Microsoft.Azure.Commands.Batch.Models.BatchClient; + +namespace Microsoft.Azure.Commands.Batch.Test.Pools +{ + public class SetBatchPoolOSVersionCommandTests + { + private SetBatchPoolOSVersionCommand cmdlet; + private Mock batchClientMock; + private Mock commandRuntimeMock; + + public SetBatchPoolOSVersionCommandTests() + { + batchClientMock = new Mock(); + commandRuntimeMock = new Mock(); + cmdlet = new SetBatchPoolOSVersionCommand() + { + CommandRuntime = commandRuntimeMock.Object, + BatchClient = batchClientMock.Object, + }; + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void SetPoolOSVersionParametersTest() + { + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.Id = null; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.Id = "testPool"; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.TargetOSVersion = "targetOS"; + + // Don't go to the service on an Upgrage OS call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + CloudPoolUpgradeOSResponse response = new CloudPoolUpgradeOSResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Verify no exceptions when required parameter is set + cmdlet.ExecuteCmdlet(); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void SetPoolOSVersionRequestTest() + { + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + + string targetOS = "targetOS"; + string requestTargetOS = null; + + cmdlet.Id = "testPool"; + cmdlet.TargetOSVersion = targetOS; + + // Don't go to the service on an Enable AutoScale call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + requestTargetOS = request.TypedParameters.TargetOSVersion; + + request.ServiceRequestFunc = (cancellationToken) => + { + CloudPoolUpgradeOSResponse response = new CloudPoolUpgradeOSResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + cmdlet.ExecuteCmdlet(); + + // Verify that the target OS was properly set on the outgoing request + Assert.Equal(targetOS, requestTargetOS); + } + } +} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ComputeNodeTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ComputeNodeTests.cs index 51c28d77cd9d..37b2ac826a94 100644 --- a/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ComputeNodeTests.cs +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ComputeNodeTests.cs @@ -103,6 +103,70 @@ public void TestListComputeNodePipeline() TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestRebootComputeNodeById() + { + TestRebootComputeNode(false); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestRebootComputeNodePipeline() + { + TestRebootComputeNode(true); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestReimageComputeNodeById() + { + TestReimageComputeNode(false); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestReimageComputeNodePipeline() + { + TestReimageComputeNode(true); + } + + private void TestRebootComputeNode(bool usePipeline) + { + BatchController controller = BatchController.NewInstance; + BatchAccountContext context = null; + string computeNodeId = null; + controller.RunPsTestWorkflow( + () => { return new string[] { string.Format("Test-RebootComputeNode '{0}' '{1}' '{2}' '{3}'", accountName, poolId, computeNodeId, usePipeline ? 1 : 0) }; }, + () => + { + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); + computeNodeId = ScenarioTestHelpers.GetComputeNodeId(controller, context, poolId); + ScenarioTestHelpers.WaitForIdleComputeNode(controller, context, poolId, computeNodeId); + }, + null, + TestUtilities.GetCallingClass(), + usePipeline ? "TestRebootComputeNodePipeline" : "TestRebootComputeNodeById"); + } + + private void TestReimageComputeNode(bool usePipeline) + { + BatchController controller = BatchController.NewInstance; + BatchAccountContext context = null; + string computeNodeId = null; + controller.RunPsTestWorkflow( + () => { return new string[] { string.Format("Test-ReimageComputeNode '{0}' '{1}' '{2}' '{3}'", accountName, poolId, computeNodeId, usePipeline ? 1 : 0) }; }, + () => + { + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); + computeNodeId = ScenarioTestHelpers.GetComputeNodeId(controller, context, poolId); + ScenarioTestHelpers.WaitForIdleComputeNode(controller, context, poolId, computeNodeId); + }, + null, + TestUtilities.GetCallingClass(), + usePipeline ? "TestReimageComputeNodePipeline" : "TestReimageComputeNodeById"); + } } // Cmdlets that use the HTTP Recorder interceptor for use with scenario tests @@ -115,4 +179,24 @@ public override void ExecuteCmdlet() base.ExecuteCmdlet(); } } + + [Cmdlet(VerbsLifecycle.Restart, "AzureBatchComputeNode_ST", DefaultParameterSetName = Constants.IdParameterSet)] + public class RestartBatchComputeNodeScenarioTestCommand : RestartBatchComputeNodeCommand + { + public override void ExecuteCmdlet() + { + AdditionalBehaviors = new List() { ScenarioTestHelpers.CreateHttpRecordingInterceptor() }; + base.ExecuteCmdlet(); + } + } + + [Cmdlet(VerbsCommon.Reset, "AzureBatchComputeNode_ST", DefaultParameterSetName = Constants.IdParameterSet)] + public class ResetBatchComputeNodeScenarioTestCommand : ResetBatchComputeNodeCommand + { + public override void ExecuteCmdlet() + { + AdditionalBehaviors = new List() { ScenarioTestHelpers.CreateHttpRecordingInterceptor() }; + base.ExecuteCmdlet(); + } + } } diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ComputeNodeTests.ps1 b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ComputeNodeTests.ps1 index b958e463f5cd..34ead7348f91 100644 --- a/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ComputeNodeTests.ps1 +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ComputeNodeTests.ps1 @@ -115,4 +115,56 @@ function Test-ListComputeNodePipeline $computeNodes = Get-AzureBatchPool_ST -Id $poolId -BatchContext $context | Get-AzureBatchComputeNode_ST -BatchContext $context Assert-AreEqual $count $computeNodes.Count +} + +<# +.SYNOPSIS +Tests rebooting a compute node +#> +function Test-RebootComputeNode +{ + param([string]$accountName, [string]$poolId, [string]$computeNodeId, [string]$usePipeline) + + $context = Get-AzureBatchAccountKeys -Name $accountName + + $rebootOption = ([Microsoft.Azure.Batch.Common.ComputeNodeRebootOption]::Terminate) + + if ($usePipeline -eq '1') + { + Get-AzureBatchComputeNode_ST $poolId $computeNodeId -BatchContext $context | Restart-AzureBatchComputeNode_ST -RebootOption $rebootOption -BatchContext $context + } + else + { + Restart-AzureBatchComputeNode_ST $poolId $computeNodeId -RebootOption $rebootOption -BatchContext $context + } + + $computeNode = Get-AzureBatchComputeNode_ST -PoolId $poolId -Filter "id eq '$computeNodeId'" -BatchContext $context + + Assert-AreEqual 'Rebooting' $computeNode.State +} + +<# +.SYNOPSIS +Tests reimaging a compute node +#> +function Test-ReimageComputeNode +{ + param([string]$accountName, [string]$poolId, [string]$computeNodeId, [string]$usePipeline) + + $context = Get-AzureBatchAccountKeys -Name $accountName + + $reimageOption = ([Microsoft.Azure.Batch.Common.ComputeNodeReimageOption]::Terminate) + + if ($usePipeline -eq '1') + { + Get-AzureBatchComputeNode_ST $poolId $computeNodeId -BatchContext $context | Reset-AzureBatchComputeNode_ST -ReimageOption $reimageOption -BatchContext $context + } + else + { + Reset-AzureBatchComputeNode_ST $poolId $computeNodeId -ReimageOption $reimageOption -BatchContext $context + } + + $computeNode = Get-AzureBatchComputeNode_ST -PoolId $poolId -Filter "id eq '$computeNodeId'" -BatchContext $context + + Assert-AreEqual 'Reimaging' $computeNode.State } \ No newline at end of file diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobScheduleTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobScheduleTests.cs index e0db254cad21..fbcc0ce43708 100644 --- a/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobScheduleTests.cs +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobScheduleTests.cs @@ -183,6 +183,29 @@ public void TestDeleteJobSchedulePipeline() TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestDisableAndEnableJobSchedule() + { + BatchController controller = BatchController.NewInstance; + string jobScheduleId = "testDisableEnableJobSchedule"; + + BatchAccountContext context = null; + controller.RunPsTestWorkflow( + () => { return new string[] { string.Format("Test-DisableAndEnableJobSchedule '{0}' '{1}' '1'", accountName, jobScheduleId) }; }, + () => + { + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); + ScenarioTestHelpers.CreateTestJobSchedule(controller, context, jobScheduleId, null); + }, + () => + { + ScenarioTestHelpers.DeleteJobSchedule(controller, context, jobScheduleId); + }, + TestUtilities.GetCallingClass(), + TestUtilities.GetCurrentMethodName()); + } } // Cmdlets that use the HTTP Recorder interceptor for use with scenario tests @@ -215,4 +238,24 @@ public override void ExecuteCmdlet() base.ExecuteCmdlet(); } } + + [Cmdlet(VerbsLifecycle.Enable, "AzureBatchJobSchedule_ST")] + public class EnableBatchJobScheduleScenarioTestCommand : EnableBatchJobScheduleCommand + { + public override void ExecuteCmdlet() + { + AdditionalBehaviors = new List() { ScenarioTestHelpers.CreateHttpRecordingInterceptor() }; + base.ExecuteCmdlet(); + } + } + + [Cmdlet(VerbsLifecycle.Disable, "AzureBatchJobSchedule_ST")] + public class DisableBatchJobScheduleScenarioTestCommand : DisableBatchJobScheduleCommand + { + public override void ExecuteCmdlet() + { + AdditionalBehaviors = new List() { ScenarioTestHelpers.CreateHttpRecordingInterceptor() }; + base.ExecuteCmdlet(); + } + } } diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobScheduleTests.ps1 b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobScheduleTests.ps1 index 4a9d75364c82..21e0947eb889 100644 --- a/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobScheduleTests.ps1 +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobScheduleTests.ps1 @@ -354,4 +354,40 @@ function Test-DeleteJobSchedule # Verify the job schedule was deleted $jobSchedules = Get-AzureBatchJobSchedule_ST -BatchContext $context Assert-True { $jobSchedules -eq $null -or $jobSchedules[0].State.ToString().ToLower() -eq 'deleting' } +} + +<# +.SYNOPSIS +Tests disabling and enabling a job schedule +#> +function Test-DisableAndEnableJobSchedule +{ + param([string]$accountName, [string]$jobScheduleId) + + $context = Get-AzureBatchAccountKeys -Name $accountName + + # Verify the job schedule is Active + $jobSchedule = Get-AzureBatchJobSchedule_ST $jobScheduleId -BatchContext $context + Assert-AreEqual 'Active' $jobSchedule.State + + Disable-AzureBatchJobSchedule_ST $jobScheduleId -BatchContext $context + + # Verify the job schedule was Disabled + $jobSchedule = Get-AzureBatchJobSchedule_ST $jobScheduleId -BatchContext $context + Assert-AreEqual 'Disabled' $jobSchedule.State + + Enable-AzureBatchJobSchedule_ST $jobScheduleId -BatchContext $context + + # Verify the job schedule is again Active + $jobSchedule = Get-AzureBatchJobSchedule_ST -Filter "id eq '$jobScheduleId'" -BatchContext $context + Assert-AreEqual 'Active' $jobSchedule.State + + # Verify using the pipeline + $jobSchedule | Disable-AzureBatchJobSchedule_ST -BatchContext $context + $jobSchedule = Get-AzureBatchJobSchedule_ST $jobScheduleId -BatchContext $context + Assert-AreEqual 'Disabled' $jobSchedule.State + + $jobSchedule | Enable-AzureBatchJobSchedule_ST -BatchContext $context + $jobSchedule = Get-AzureBatchJobSchedule_ST -Filter "id eq '$jobScheduleId'" -BatchContext $context + Assert-AreEqual 'Active' $jobSchedule.State } \ No newline at end of file diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobTests.cs index df8b6eaa7331..a273df84216a 100644 --- a/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobTests.cs +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobTests.cs @@ -220,6 +220,29 @@ public void TestDeleteJobPipeline() TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestDisableAndEnableJob() + { + BatchController controller = BatchController.NewInstance; + string jobId = "testDisableEnableJob"; + + BatchAccountContext context = null; + controller.RunPsTestWorkflow( + () => { return new string[] { string.Format("Test-DisableAndEnableJob '{0}' '{1}' '1'", accountName, jobId) }; }, + () => + { + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId); + }, + () => + { + ScenarioTestHelpers.DeleteJob(controller, context, jobId); + }, + TestUtilities.GetCallingClass(), + TestUtilities.GetCurrentMethodName()); + } } // Cmdlets that use the HTTP Recorder interceptor for use with scenario tests @@ -252,4 +275,24 @@ public override void ExecuteCmdlet() base.ExecuteCmdlet(); } } + + [Cmdlet(VerbsLifecycle.Enable, "AzureBatchJob_ST")] + public class EnableBatchJobScenarioTestCommand : EnableBatchJobCommand + { + public override void ExecuteCmdlet() + { + AdditionalBehaviors = new List() { ScenarioTestHelpers.CreateHttpRecordingInterceptor() }; + base.ExecuteCmdlet(); + } + } + + [Cmdlet(VerbsLifecycle.Disable, "AzureBatchJob_ST")] + public class DisableBatchJobScenarioTestCommand : DisableBatchJobCommand + { + public override void ExecuteCmdlet() + { + AdditionalBehaviors = new List() { ScenarioTestHelpers.CreateHttpRecordingInterceptor() }; + base.ExecuteCmdlet(); + } + } } diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobTests.ps1 b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobTests.ps1 index 585b0231df5c..cba2f55693c4 100644 --- a/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobTests.ps1 +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobTests.ps1 @@ -351,4 +351,40 @@ function Test-DeleteJob # Verify the job was deleted $jobs = Get-AzureBatchJob_ST -BatchContext $context Assert-True { $jobs -eq $null -or $jobs[0].State.ToString().ToLower() -eq 'deleting' } +} + +<# +.SYNOPSIS +Tests disabling and enabling a job +#> +function Test-DisableAndEnableJob +{ + param([string]$accountName, [string]$jobId) + + $context = Get-AzureBatchAccountKeys -Name $accountName + + # Verify the job is Active + $job = Get-AzureBatchJob_ST $jobId -BatchContext $context + Assert-AreEqual 'Active' $job.State + + Disable-AzureBatchJob_ST $jobId Terminate -BatchContext $context + + # Verify the job was Disabled + $job = Get-AzureBatchJob_ST $jobId -BatchContext $context + Assert-AreEqual 'Disabled' $job.State + + Enable-AzureBatchJob_ST $jobId -BatchContext $context + + # Verify the job is again active + $job = Get-AzureBatchJob_ST -Filter "id eq '$jobId'" -BatchContext $context + Assert-AreEqual 'Active' $job.State + + # Verify using the pipeline + $job | Disable-AzureBatchJob_ST -DisableJobOption Terminate -BatchContext $context + $job = Get-AzureBatchJob_ST $jobId -BatchContext $context + Assert-AreEqual 'Disabled' $job.State + + $job | Enable-AzureBatchJob_ST -BatchContext $context + $job = Get-AzureBatchJob_ST -Filter "id eq '$jobId'" -BatchContext $context + Assert-AreEqual 'Active' $job.State } \ No newline at end of file diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/PoolTests.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/PoolTests.cs index 814d65353cb9..6f5d5769f890 100644 --- a/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/PoolTests.cs +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/PoolTests.cs @@ -386,6 +386,38 @@ public void TestEvaluateAutoScaleByPipeline() TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestChangeOSVersionById() + { + TestChangeOSVersion(false); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestChangeOSVersionPipeline() + { + TestChangeOSVersion(true); + } + + private void TestChangeOSVersion(bool usePipeline) + { + BatchController controller = BatchController.NewInstance; + BatchAccountContext context = null; + string newTargetOSVersion = null; + controller.RunPsTestWorkflow( + () => { return new string[] { string.Format("Test-ChangeOSVersion '{0}' '{1}' '{2}' '{3}'", commonAccountName, testPoolId, newTargetOSVersion, usePipeline ? 1 : 0) }; }, + () => + { + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, commonAccountName); + string currentTargetOSVersion = ScenarioTestHelpers.WaitForOSVersionChange(controller, context, testPoolId); + newTargetOSVersion = currentTargetOSVersion == "*" ? "WA-GUEST-OS-4.20_201505-01" : "*"; + }, + null, + TestUtilities.GetCallingClass(), + usePipeline ? "TestChangeOSVersionPipeline" : "TestChangeOSVersionById"); + } } // Cmdlets that use the HTTP Recorder interceptor for use with scenario tests @@ -468,4 +500,14 @@ public override void ExecuteCmdlet() base.ExecuteCmdlet(); } } + + [Cmdlet(VerbsCommon.Set, "AzureBatchPoolOSVersion_ST")] + public class SetBatchPoolOSVersionScenarioTestCommand : SetBatchPoolOSVersionCommand + { + public override void ExecuteCmdlet() + { + AdditionalBehaviors = new List() { ScenarioTestHelpers.CreateHttpRecordingInterceptor() }; + base.ExecuteCmdlet(); + } + } } diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/PoolTests.ps1 b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/PoolTests.ps1 index 43bd3e5f2570..2d1d35ca8e68 100644 --- a/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/PoolTests.ps1 +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/PoolTests.ps1 @@ -371,4 +371,31 @@ function Test-EvaluateAutoScale # Verify that the evaluation result matches expectation Assert-True { $evalResult.AutoScaleRun.Results.Contains($formula) } +} + +<# +.SYNOPSIS +Tests changing the pool OS version +#> +function Test-ChangeOSVersion +{ + param([string]$accountName, [string]$poolId, [string]$targetOSVersion, [string]$usePipeline) + + $context = Get-AzureBatchAccountKeys $accountName + + # Verify that we start with a different target OS + $pool = Get-AzureBatchPool_ST $poolId -BatchContext $context + Assert-AreNotEqual $targetOSVersion $pool.TargetOSVersion + + if ($usePipeline -eq '1') + { + Get-AzureBatchPool_ST -Filter "id eq '$poolId'" -BatchContext $context | Set-AzureBatchPoolOSVersion_ST -TargetOSVersion $targetOSVersion -BatchContext $context + } + else + { + Set-AzureBatchPoolOSVersion_ST $poolId $targetOSVersion -BatchContext $context + } + + $pool = Get-AzureBatchPool_ST $poolId -BatchContext $context + Assert-AreEqual $targetOSVersion $pool.TargetOSVersion } \ No newline at end of file diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ScenarioTestHelpers.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ScenarioTestHelpers.cs index bce1639dfcfe..6637f00829fe 100644 --- a/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ScenarioTestHelpers.cs +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ScenarioTestHelpers.cs @@ -133,6 +133,32 @@ public static void DisableAutoScale(BatchController controller, BatchAccountCont client.DisableAutoScale(parameters); } + public static string WaitForOSVersionChange(BatchController controller, BatchAccountContext context, string poolId) + { + RequestInterceptor interceptor = CreateHttpRecordingInterceptor(); + BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor }; + BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); + + ListPoolOptions options = new ListPoolOptions(context, behaviors) + { + PoolId = poolId + }; + + DateTime timeout = DateTime.Now.AddMinutes(2); + PSCloudPool pool = client.ListPools(options).First(); + while (pool.CurrentOSVersion != pool.TargetOSVersion) + { + if (DateTime.Now > timeout) + { + throw new TimeoutException("Timed out waiting for active state pool"); + } + Sleep(5000); + pool = client.ListPools(options).First(); + } + + return pool.TargetOSVersion; + } + public static void WaitForSteadyPoolAllocation(BatchController controller, BatchAccountContext context, string poolId) { RequestInterceptor interceptor = CreateHttpRecordingInterceptor(); @@ -371,6 +397,34 @@ public static string GetComputeNodeId(BatchController controller, BatchAccountCo return client.ListComputeNodes(options).First().Id; } + /// + /// Waits for a compute node to get to the idle state + /// + public static void WaitForIdleComputeNode(BatchController controller, BatchAccountContext context, string poolId, string computeNodeId) + { + RequestInterceptor interceptor = CreateHttpRecordingInterceptor(); + BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor }; + BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); + + ListComputeNodeOptions options = new ListComputeNodeOptions(context, poolId, null, behaviors) + { + ComputeNodeId = computeNodeId + }; + + DateTime timeout = DateTime.Now.AddMinutes(2); + PSComputeNode computeNode = client.ListComputeNodes(options).First(); + if (computeNode.State != ComputeNodeState.Idle) + { + if (DateTime.Now > timeout) + { + throw new TimeoutException("Timed out waiting for idle compute node"); + } + + Sleep(5000); + computeNode = client.ListComputeNodes(options).First(); + } + } + /// /// Creates a test user for use in Scenario tests. /// diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestRebootComputeNodeById.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestRebootComputeNodeById.json new file mode 100644 index 000000000000..087af81c1bf0 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestRebootComputeNodeById.json @@ -0,0 +1,644 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-request-id": [ + "e61f84ee-640e-45e7-8632-7339a89c343f" + ], + "x-ms-correlation-request-id": [ + "e61f84ee-640e-45e7-8632-7339a89c343f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T164457Z:e61f84ee-640e-45e7-8632-7339a89c343f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 16:44:56 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-request-id": [ + "80de9332-30b2-4211-9625-0dfb7227720d" + ], + "x-ms-correlation-request-id": [ + "80de9332-30b2-4211-9625-0dfb7227720d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T164459Z:80de9332-30b2-4211-9625-0dfb7227720d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 16:44:59 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Mon, 17 Aug 2015 16:44:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "781e4353-c489-40f3-bd97-c246fc0effed" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-request-id": [ + "2fc7fb4d-d0ff-4fe1-b6da-1251afdad7b5" + ], + "x-ms-correlation-request-id": [ + "2fc7fb4d-d0ff-4fe1-b6da-1251afdad7b5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T164458Z:2fc7fb4d-d0ff-4fe1-b6da-1251afdad7b5" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 16:44:57 GMT" + ], + "ETag": [ + "0x8D2A7232FAECE7A" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Mon, 17 Aug 2015 16:44:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "87ce9618-b76e-4306-87e1-b78039154f5b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-request-id": [ + "aab98827-26d7-4bc8-9af0-6bdb53adae3f" + ], + "x-ms-correlation-request-id": [ + "aab98827-26d7-4bc8-9af0-6bdb53adae3f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T164500Z:aab98827-26d7-4bc8-9af0-6bdb53adae3f" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 16:44:59 GMT" + ], + "ETag": [ + "0x8D2A7233090EBCA" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "a0dfc0a3-110c-4bc3-b69d-445c2d3778e3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "edf499c2-6835-4405-9006-6ab934a5f755" + ], + "x-ms-correlation-request-id": [ + "edf499c2-6835-4405-9006-6ab934a5f755" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T164458Z:edf499c2-6835-4405-9006-6ab934a5f755" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 16:44:58 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "a3ebe236-e97b-49ce-abaf-8d058f49fcad" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "1e7db45f-e6ca-4b07-a849-ddc4daf1f04d" + ], + "x-ms-correlation-request-id": [ + "1e7db45f-e6ca-4b07-a849-ddc4daf1f04d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T164500Z:1e7db45f-e6ca-4b07-a849-ddc4daf1f04d" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 16:44:59 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d34bb408-6545-4eaa-b051-18f5dbaa44fb" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:44:58 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-13T23:35:48.6804172Z\",\r\n \"lastBootTime\": \"2015-08-13T23:35:48.5094158Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-13T23:35:48.9114181Z\",\r\n \"endTime\": \"2015-08-13T23:35:50.3974279Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-3257026573_2-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_2-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-13T20:27:45.9148103Z\",\r\n \"lastBootTime\": \"2015-08-13T20:27:45.8127934Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.74.139\",\r\n \"affinityId\": \"TVM:tvm-3257026573_2-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-13T20:27:45.949802Z\",\r\n \"endTime\": \"2015-08-13T20:27:47.5898996Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-3257026573_3-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_3-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-13T20:32:52.3245045Z\",\r\n \"lastBootTime\": \"2015-08-13T20:32:52.0585047Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.118.157\",\r\n \"affinityId\": \"TVM:tvm-3257026573_3-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-13T20:32:52.4725155Z\",\r\n \"endTime\": \"2015-08-13T20:32:54.0355045Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c072185a-4144-4318-9c27-0a477c5a8147" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d34bb408-6545-4eaa-b051-18f5dbaa44fb" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 16:44:59 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f42017f3-0c18-47f4-810a-adaa90272780" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:44:59 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-13T23:35:48.6804172Z\",\r\n \"lastBootTime\": \"2015-08-13T23:35:48.5094158Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-13T23:35:48.9114181Z\",\r\n \"endTime\": \"2015-08-13T23:35:50.3974279Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "00ec0240-c179-4452-b9b3-594d54530c5d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f42017f3-0c18-47f4-810a-adaa90272780" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 16:44:59 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f42017f3-0c18-47f4-810a-adaa90272780" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:44:59 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-13T23:35:48.6804172Z\",\r\n \"lastBootTime\": \"2015-08-13T23:35:48.5094158Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-13T23:35:48.9114181Z\",\r\n \"endTime\": \"2015-08-13T23:35:50.3974279Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "00ec0240-c179-4452-b9b3-594d54530c5d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f42017f3-0c18-47f4-810a-adaa90272780" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 16:44:59 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?reboot&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9yZWJvb3QmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"nodeRebootOption\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "39" + ], + "client-request-id": [ + "896c8db6-4114-4cbb-8514-591e2b801de0" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:45:00 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "7e159877-d5a8-46cf-a981-de65942e7251" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "896c8db6-4114-4cbb-8514-591e2b801de0" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z" + ], + "Date": [ + "Mon, 17 Aug 2015 16:45:01 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testPool/nodes?$filter=id%20eq%20'tvm-3257026573_1-20150813t200938z'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4eiUyNyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3ac85c5e-dd51-4b62-8315-56d7a69aafd4" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:45:01 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"rebooting\",\r\n \"stateTransitionTime\": \"2015-08-17T16:45:01.1518559Z\",\r\n \"lastBootTime\": \"2015-08-13T23:35:48.5094158Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-13T23:35:48.9114181Z\",\r\n \"endTime\": \"2015-08-13T23:35:50.3974279Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "858a1fce-596a-4867-99a1-39a1e8eb1421" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3ac85c5e-dd51-4b62-8315-56d7a69aafd4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 16:45:01 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?$filter=id%20eq%20'tvm-3257026573_1-20150813t200938z'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4eiUyNyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3ac85c5e-dd51-4b62-8315-56d7a69aafd4" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:45:01 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"rebooting\",\r\n \"stateTransitionTime\": \"2015-08-17T16:45:01.1518559Z\",\r\n \"lastBootTime\": \"2015-08-13T23:35:48.5094158Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-13T23:35:48.9114181Z\",\r\n \"endTime\": \"2015-08-13T23:35:50.3974279Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "858a1fce-596a-4867-99a1-39a1e8eb1421" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3ac85c5e-dd51-4b62-8315-56d7a69aafd4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 16:45:01 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestRebootComputeNodePipeline.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestRebootComputeNodePipeline.json new file mode 100644 index 000000000000..62f5b7a85ba5 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestRebootComputeNodePipeline.json @@ -0,0 +1,797 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-request-id": [ + "04fdf80a-7a44-4bcb-a202-fc02450afab1" + ], + "x-ms-correlation-request-id": [ + "04fdf80a-7a44-4bcb-a202-fc02450afab1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T165233Z:04fdf80a-7a44-4bcb-a202-fc02450afab1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:33 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-request-id": [ + "0e2a9b05-ac34-4556-a6cd-1abc7d3747e2" + ], + "x-ms-correlation-request-id": [ + "0e2a9b05-ac34-4556-a6cd-1abc7d3747e2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T165236Z:0e2a9b05-ac34-4556-a6cd-1abc7d3747e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:35 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Mon, 17 Aug 2015 16:52:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "8a4e714a-8073-4f35-9399-424c7ec2f8ab" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-request-id": [ + "92b0e425-5701-4873-ad3b-d190d3598bd5" + ], + "x-ms-correlation-request-id": [ + "92b0e425-5701-4873-ad3b-d190d3598bd5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T165235Z:92b0e425-5701-4873-ad3b-d190d3598bd5" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:34 GMT" + ], + "ETag": [ + "0x8D2A7244011792D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Mon, 17 Aug 2015 16:52:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "a2042c08-35df-4f66-aba6-36debfe39889" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-request-id": [ + "9a992cc4-02f5-4090-8d6f-39e256f23715" + ], + "x-ms-correlation-request-id": [ + "9a992cc4-02f5-4090-8d6f-39e256f23715" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T165236Z:9a992cc4-02f5-4090-8d6f-39e256f23715" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:36 GMT" + ], + "ETag": [ + "0x8D2A72440D588D6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "7f478b0f-aad0-4acb-b253-040262b870bf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "c3f86bcb-6809-4b78-9293-e08f80490732" + ], + "x-ms-correlation-request-id": [ + "c3f86bcb-6809-4b78-9293-e08f80490732" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T165235Z:c3f86bcb-6809-4b78-9293-e08f80490732" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:34 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "97bd5103-930b-49ae-841d-698344d3beb9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "edffb3d9-bc39-4c01-b4e7-d7a3f86c6e47" + ], + "x-ms-correlation-request-id": [ + "edffb3d9-bc39-4c01-b4e7-d7a3f86c6e47" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T165236Z:edffb3d9-bc39-4c01-b4e7-d7a3f86c6e47" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:36 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bcc234e7-c24a-4459-96ff-d38210894671" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:52:35 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-17T16:47:07.7129021Z\",\r\n \"lastBootTime\": \"2015-08-17T16:47:07.6079015Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T16:47:07.7799021Z\",\r\n \"endTime\": \"2015-08-17T16:47:09.1159107Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-3257026573_2-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_2-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-13T20:27:45.9148103Z\",\r\n \"lastBootTime\": \"2015-08-13T20:27:45.8127934Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.74.139\",\r\n \"affinityId\": \"TVM:tvm-3257026573_2-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-13T20:27:45.949802Z\",\r\n \"endTime\": \"2015-08-13T20:27:47.5898996Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-3257026573_3-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_3-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-13T20:32:52.3245045Z\",\r\n \"lastBootTime\": \"2015-08-13T20:32:52.0585047Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.118.157\",\r\n \"affinityId\": \"TVM:tvm-3257026573_3-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-13T20:32:52.4725155Z\",\r\n \"endTime\": \"2015-08-13T20:32:54.0355045Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "59fc3f57-2f8b-402c-afd9-650d9181d881" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bcc234e7-c24a-4459-96ff-d38210894671" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:35 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7b03f8fe-8c10-40bc-aeac-aff07b6bc195" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:52:35 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-17T16:47:07.7129021Z\",\r\n \"lastBootTime\": \"2015-08-17T16:47:07.6079015Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T16:47:07.7799021Z\",\r\n \"endTime\": \"2015-08-17T16:47:09.1159107Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d0fb0afb-6d0c-4b9a-8afd-37f32dcc8715" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7b03f8fe-8c10-40bc-aeac-aff07b6bc195" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:35 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7b03f8fe-8c10-40bc-aeac-aff07b6bc195" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:52:35 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-17T16:47:07.7129021Z\",\r\n \"lastBootTime\": \"2015-08-17T16:47:07.6079015Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T16:47:07.7799021Z\",\r\n \"endTime\": \"2015-08-17T16:47:09.1159107Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d0fb0afb-6d0c-4b9a-8afd-37f32dcc8715" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7b03f8fe-8c10-40bc-aeac-aff07b6bc195" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:35 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "dd8a8067-679e-4cab-8f63-8961770181f6" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:52:36 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-17T16:47:07.7129021Z\",\r\n \"lastBootTime\": \"2015-08-17T16:47:07.6079015Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T16:47:07.7799021Z\",\r\n \"endTime\": \"2015-08-17T16:47:09.1159107Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "89f598b8-08ad-484d-88e0-e16241241109" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "dd8a8067-679e-4cab-8f63-8961770181f6" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:37 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?reboot&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9yZWJvb3QmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"nodeRebootOption\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "39" + ], + "client-request-id": [ + "331c94d4-93dc-470b-8785-4b0af0585376" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:52:36 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "1cdacfdd-28c9-430f-9fa3-673e83e9d475" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "331c94d4-93dc-470b-8785-4b0af0585376" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:37 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?reboot&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9yZWJvb3QmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"nodeRebootOption\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "39" + ], + "client-request-id": [ + "331c94d4-93dc-470b-8785-4b0af0585376" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:52:36 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "1cdacfdd-28c9-430f-9fa3-673e83e9d475" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "331c94d4-93dc-470b-8785-4b0af0585376" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:37 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testPool/nodes?$filter=id%20eq%20'tvm-3257026573_1-20150813t200938z'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4eiUyNyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "33e769c1-a254-49d1-9a22-503ac259a8e9" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:52:37 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"rebooting\",\r\n \"stateTransitionTime\": \"2015-08-17T16:52:36.8643332Z\",\r\n \"lastBootTime\": \"2015-08-17T16:47:07.6079015Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T16:47:07.7799021Z\",\r\n \"endTime\": \"2015-08-17T16:47:09.1159107Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "72d9184b-eacb-4a6c-b932-93c5d1d6a3f1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "33e769c1-a254-49d1-9a22-503ac259a8e9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:37 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?$filter=id%20eq%20'tvm-3257026573_1-20150813t200938z'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4eiUyNyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "33e769c1-a254-49d1-9a22-503ac259a8e9" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:52:37 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"rebooting\",\r\n \"stateTransitionTime\": \"2015-08-17T16:52:36.8643332Z\",\r\n \"lastBootTime\": \"2015-08-17T16:47:07.6079015Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T16:47:07.7799021Z\",\r\n \"endTime\": \"2015-08-17T16:47:09.1159107Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "72d9184b-eacb-4a6c-b932-93c5d1d6a3f1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "33e769c1-a254-49d1-9a22-503ac259a8e9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:37 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?$filter=id%20eq%20'tvm-3257026573_1-20150813t200938z'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4eiUyNyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "33e769c1-a254-49d1-9a22-503ac259a8e9" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 16:52:37 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"rebooting\",\r\n \"stateTransitionTime\": \"2015-08-17T16:52:36.8643332Z\",\r\n \"lastBootTime\": \"2015-08-17T16:47:07.6079015Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T16:47:07.7799021Z\",\r\n \"endTime\": \"2015-08-17T16:47:09.1159107Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "72d9184b-eacb-4a6c-b932-93c5d1d6a3f1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "33e769c1-a254-49d1-9a22-503ac259a8e9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 16:52:37 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestReimageComputeNodeById.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestReimageComputeNodeById.json new file mode 100644 index 000000000000..5638040c1552 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestReimageComputeNodeById.json @@ -0,0 +1,644 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-request-id": [ + "bc22b32e-33ce-4331-848d-1c523bdbfb9b" + ], + "x-ms-correlation-request-id": [ + "bc22b32e-33ce-4331-848d-1c523bdbfb9b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T170423Z:bc22b32e-33ce-4331-848d-1c523bdbfb9b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 17:04:23 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "7c60e61b-e41d-4781-96d3-0c993442292a" + ], + "x-ms-correlation-request-id": [ + "7c60e61b-e41d-4781-96d3-0c993442292a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T170426Z:7c60e61b-e41d-4781-96d3-0c993442292a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 17:04:26 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Mon, 17 Aug 2015 17:04:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "d0ed0d57-a630-471e-8b9d-293e63465c8c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-request-id": [ + "30be6536-ad3d-4c28-8de1-b5a07ae082b6" + ], + "x-ms-correlation-request-id": [ + "30be6536-ad3d-4c28-8de1-b5a07ae082b6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T170425Z:30be6536-ad3d-4c28-8de1-b5a07ae082b6" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 17:04:24 GMT" + ], + "ETag": [ + "0x8D2A725E82D6641" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Mon, 17 Aug 2015 17:04:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "34466208-43b6-4c32-aac1-bd6cd1662eea" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "f6abc03f-78a9-4ee9-b8d7-f6a889245264" + ], + "x-ms-correlation-request-id": [ + "f6abc03f-78a9-4ee9-b8d7-f6a889245264" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T170426Z:f6abc03f-78a9-4ee9-b8d7-f6a889245264" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 17:04:25 GMT" + ], + "ETag": [ + "0x8D2A725E9154C5D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "3fbafa55-de30-423f-9da7-0506c67e64e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "e6d89999-b299-408d-a288-734c32fee260" + ], + "x-ms-correlation-request-id": [ + "e6d89999-b299-408d-a288-734c32fee260" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T170425Z:e6d89999-b299-408d-a288-734c32fee260" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 17:04:24 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "4986ebc0-887d-4a5c-9c1b-5fa390341843" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-request-id": [ + "66715d49-7ebc-472f-85a1-6a0c9961c8f3" + ], + "x-ms-correlation-request-id": [ + "66715d49-7ebc-472f-85a1-6a0c9961c8f3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T170426Z:66715d49-7ebc-472f-85a1-6a0c9961c8f3" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 17:04:25 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9aa45970-34fa-4b61-b3cb-e741e0af13e4" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:04:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-17T16:54:46.5148352Z\",\r\n \"lastBootTime\": \"2015-08-17T16:54:46.4228021Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T16:54:46.5688003Z\",\r\n \"endTime\": \"2015-08-17T16:54:48.0816655Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-3257026573_2-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_2-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-13T20:27:45.9148103Z\",\r\n \"lastBootTime\": \"2015-08-13T20:27:45.8127934Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.74.139\",\r\n \"affinityId\": \"TVM:tvm-3257026573_2-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-13T20:27:45.949802Z\",\r\n \"endTime\": \"2015-08-13T20:27:47.5898996Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-3257026573_3-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_3-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-13T20:32:52.3245045Z\",\r\n \"lastBootTime\": \"2015-08-13T20:32:52.0585047Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.118.157\",\r\n \"affinityId\": \"TVM:tvm-3257026573_3-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-13T20:32:52.4725155Z\",\r\n \"endTime\": \"2015-08-13T20:32:54.0355045Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "a8cb9777-b4ea-44f7-85bb-642b0a6e7a9a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9aa45970-34fa-4b61-b3cb-e741e0af13e4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 17:04:25 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "5615a3da-8f5c-4ea1-8747-aabfb8a95d5f" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:04:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-17T16:54:46.5148352Z\",\r\n \"lastBootTime\": \"2015-08-17T16:54:46.4228021Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T16:54:46.5688003Z\",\r\n \"endTime\": \"2015-08-17T16:54:48.0816655Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "20ce9460-a5ca-44d5-a8c7-811aa4f51f88" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "5615a3da-8f5c-4ea1-8747-aabfb8a95d5f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 17:04:25 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "5615a3da-8f5c-4ea1-8747-aabfb8a95d5f" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:04:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-17T16:54:46.5148352Z\",\r\n \"lastBootTime\": \"2015-08-17T16:54:46.4228021Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T16:54:46.5688003Z\",\r\n \"endTime\": \"2015-08-17T16:54:48.0816655Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "20ce9460-a5ca-44d5-a8c7-811aa4f51f88" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "5615a3da-8f5c-4ea1-8747-aabfb8a95d5f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 17:04:25 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?reimage&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9yZWltYWdlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"nodeReimageOption\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "40" + ], + "client-request-id": [ + "1f3550d5-bbed-42f6-a02c-a8b868baf45b" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:04:26 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "2308327f-20a3-4eda-a7db-dc4bd3939dee" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1f3550d5-bbed-42f6-a02c-a8b868baf45b" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z" + ], + "Date": [ + "Mon, 17 Aug 2015 17:04:27 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testPool/nodes?$filter=id%20eq%20'tvm-3257026573_1-20150813t200938z'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4eiUyNyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8a7e5109-a292-40cd-83cf-fd076d6c283e" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:04:27 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"reimaging\",\r\n \"stateTransitionTime\": \"2015-08-17T17:04:27.4042443Z\",\r\n \"lastBootTime\": \"2015-08-17T16:54:46.4228021Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T16:54:46.5688003Z\",\r\n \"endTime\": \"2015-08-17T16:54:48.0816655Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "7ba82003-4349-4d18-9171-f732b53513f7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8a7e5109-a292-40cd-83cf-fd076d6c283e" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 17:04:27 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?$filter=id%20eq%20'tvm-3257026573_1-20150813t200938z'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4eiUyNyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8a7e5109-a292-40cd-83cf-fd076d6c283e" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:04:27 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"reimaging\",\r\n \"stateTransitionTime\": \"2015-08-17T17:04:27.4042443Z\",\r\n \"lastBootTime\": \"2015-08-17T16:54:46.4228021Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T16:54:46.5688003Z\",\r\n \"endTime\": \"2015-08-17T16:54:48.0816655Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "7ba82003-4349-4d18-9171-f732b53513f7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8a7e5109-a292-40cd-83cf-fd076d6c283e" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 17:04:27 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestReimageComputeNodePipeline.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestReimageComputeNodePipeline.json new file mode 100644 index 000000000000..b706b484f638 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestReimageComputeNodePipeline.json @@ -0,0 +1,797 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-request-id": [ + "ff21c9a5-c79b-4696-9f74-77ac5005efbb" + ], + "x-ms-correlation-request-id": [ + "ff21c9a5-c79b-4696-9f74-77ac5005efbb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T171753Z:ff21c9a5-c79b-4696-9f74-77ac5005efbb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:53 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-request-id": [ + "5a209db1-b874-415f-907b-97d10e721f57" + ], + "x-ms-correlation-request-id": [ + "5a209db1-b874-415f-907b-97d10e721f57" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T171755Z:5a209db1-b874-415f-907b-97d10e721f57" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:55 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Mon, 17 Aug 2015 17:17:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "febc5737-4220-470b-8194-9f10d3f24c4b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-request-id": [ + "395d56cc-f440-4b9d-9afc-987a313b0232" + ], + "x-ms-correlation-request-id": [ + "395d56cc-f440-4b9d-9afc-987a313b0232" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T171754Z:395d56cc-f440-4b9d-9afc-987a313b0232" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:53 GMT" + ], + "ETag": [ + "0x8D2A727CA9D8E78" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Mon, 17 Aug 2015 17:17:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "3a2b5e07-ef6e-415d-a98e-5b0c95333d94" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "996d1a95-4524-4151-8311-d605ae1012ca" + ], + "x-ms-correlation-request-id": [ + "996d1a95-4524-4151-8311-d605ae1012ca" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T171756Z:996d1a95-4524-4151-8311-d605ae1012ca" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:55 GMT" + ], + "ETag": [ + "0x8D2A727CB84C35A" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "04aca641-2d4a-4630-8c21-56060ab94b64" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "94967d21-f3c1-4343-afc0-e50fa785589d" + ], + "x-ms-correlation-request-id": [ + "94967d21-f3c1-4343-afc0-e50fa785589d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T171754Z:94967d21-f3c1-4343-afc0-e50fa785589d" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:54 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "7d82bd23-612f-4944-95aa-368c62b98c72" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "d5bfd9a1-b48f-4ad7-8420-3e1a6a81e54d" + ], + "x-ms-correlation-request-id": [ + "d5bfd9a1-b48f-4ad7-8420-3e1a6a81e54d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150817T171756Z:d5bfd9a1-b48f-4ad7-8420-3e1a6a81e54d" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:55 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f9ae4fea-8c5c-49b3-81f2-d94b39010488" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:17:54 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-17T17:10:43.5860086Z\",\r\n \"lastBootTime\": \"2015-08-17T17:10:43.4937439Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T17:10:43.733705Z\",\r\n \"endTime\": \"2015-08-17T17:10:45.5270336Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-3257026573_2-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_2-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-13T20:27:45.9148103Z\",\r\n \"lastBootTime\": \"2015-08-13T20:27:45.8127934Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.74.139\",\r\n \"affinityId\": \"TVM:tvm-3257026573_2-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-13T20:27:45.949802Z\",\r\n \"endTime\": \"2015-08-13T20:27:47.5898996Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-3257026573_3-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_3-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-13T20:32:52.3245045Z\",\r\n \"lastBootTime\": \"2015-08-13T20:32:52.0585047Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.118.157\",\r\n \"affinityId\": \"TVM:tvm-3257026573_3-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-13T20:32:52.4725155Z\",\r\n \"endTime\": \"2015-08-13T20:32:54.0355045Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "475d8cfe-1277-40f1-85fc-f47cf95d66bf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f9ae4fea-8c5c-49b3-81f2-d94b39010488" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:55 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "be8888fe-b2ba-4f34-ae7a-54e3f29de2ea" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:17:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-17T17:10:43.5860086Z\",\r\n \"lastBootTime\": \"2015-08-17T17:10:43.4937439Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T17:10:43.733705Z\",\r\n \"endTime\": \"2015-08-17T17:10:45.5270336Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "aaef215a-832e-4e00-a3ac-78680a72fa99" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "be8888fe-b2ba-4f34-ae7a-54e3f29de2ea" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:55 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "be8888fe-b2ba-4f34-ae7a-54e3f29de2ea" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:17:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-17T17:10:43.5860086Z\",\r\n \"lastBootTime\": \"2015-08-17T17:10:43.4937439Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T17:10:43.733705Z\",\r\n \"endTime\": \"2015-08-17T17:10:45.5270336Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "aaef215a-832e-4e00-a3ac-78680a72fa99" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "be8888fe-b2ba-4f34-ae7a-54e3f29de2ea" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:55 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "146bfd89-0899-4c25-9e4b-04bd23a3be32" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:17:56 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-08-17T17:10:43.5860086Z\",\r\n \"lastBootTime\": \"2015-08-17T17:10:43.4937439Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T17:10:43.733705Z\",\r\n \"endTime\": \"2015-08-17T17:10:45.5270336Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d3248ec0-5ca1-4fc4-9cb5-b2c83fefbe81" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "146bfd89-0899-4c25-9e4b-04bd23a3be32" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?reimage&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9yZWltYWdlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"nodeReimageOption\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "40" + ], + "client-request-id": [ + "e40e81e6-56d1-47b2-9985-56b548fc44d0" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:17:56 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "1f7dc128-824b-43f8-98df-fb262b3bdd0c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e40e81e6-56d1-47b2-9985-56b548fc44d0" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z?reimage&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4ej9yZWltYWdlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"nodeReimageOption\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "40" + ], + "client-request-id": [ + "e40e81e6-56d1-47b2-9985-56b548fc44d0" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:17:56 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "1f7dc128-824b-43f8-98df-fb262b3bdd0c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e40e81e6-56d1-47b2-9985-56b548fc44d0" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testPool/nodes?$filter=id%20eq%20'tvm-3257026573_1-20150813t200938z'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4eiUyNyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "aaffcf53-939a-4d0e-b1b1-b01dd59a9a1a" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:17:57 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"reimaging\",\r\n \"stateTransitionTime\": \"2015-08-17T17:17:56.7042869Z\",\r\n \"lastBootTime\": \"2015-08-17T17:10:43.4937439Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T17:10:43.733705Z\",\r\n \"endTime\": \"2015-08-17T17:10:45.5270336Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "765e7f25-27ac-4740-8ee5-c1d50cad8b11" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "aaffcf53-939a-4d0e-b1b1-b01dd59a9a1a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?$filter=id%20eq%20'tvm-3257026573_1-20150813t200938z'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4eiUyNyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "aaffcf53-939a-4d0e-b1b1-b01dd59a9a1a" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:17:57 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"reimaging\",\r\n \"stateTransitionTime\": \"2015-08-17T17:17:56.7042869Z\",\r\n \"lastBootTime\": \"2015-08-17T17:10:43.4937439Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T17:10:43.733705Z\",\r\n \"endTime\": \"2015-08-17T17:10:45.5270336Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "765e7f25-27ac-4740-8ee5-c1d50cad8b11" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "aaffcf53-939a-4d0e-b1b1-b01dd59a9a1a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?$filter=id%20eq%20'tvm-3257026573_1-20150813t200938z'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3R2bS0zMjU3MDI2NTczXzEtMjAxNTA4MTN0MjAwOTM4eiUyNyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "aaffcf53-939a-4d0e-b1b1-b01dd59a9a1a" + ], + "ocp-date": [ + "Mon, 17 Aug 2015 17:17:57 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-3257026573_1-20150813t200938z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-3257026573_1-20150813t200938z\",\r\n \"state\": \"reimaging\",\r\n \"stateTransitionTime\": \"2015-08-17T17:17:56.7042869Z\",\r\n \"lastBootTime\": \"2015-08-17T17:10:43.4937439Z\",\r\n \"allocationTime\": \"2015-08-13T20:09:38.3879059Z\",\r\n \"ipAddress\": \"100.112.90.76\",\r\n \"affinityId\": \"TVM:tvm-3257026573_1-20150813t200938z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-08-17T17:10:43.733705Z\",\r\n \"endTime\": \"2015-08-17T17:10:45.5270336Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "765e7f25-27ac-4740-8ee5-c1d50cad8b11" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "aaffcf53-939a-4d0e-b1b1-b01dd59a9a1a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Mon, 17 Aug 2015 17:17:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestDisableAndEnableJobSchedule.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestDisableAndEnableJobSchedule.json new file mode 100644 index 000000000000..3e3e0f58aadb --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestDisableAndEnableJobSchedule.json @@ -0,0 +1,2891 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-request-id": [ + "61a29d9c-b813-43fa-9d22-ce1d125fd919" + ], + "x-ms-correlation-request-id": [ + "61a29d9c-b813-43fa-9d22-ce1d125fd919" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150821T223851Z:61a29d9c-b813-43fa-9d22-ce1d125fd919" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:50 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "2dcad169-7b44-416a-8def-93685d768f2c" + ], + "x-ms-correlation-request-id": [ + "2dcad169-7b44-416a-8def-93685d768f2c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150821T223853Z:2dcad169-7b44-416a-8def-93685d768f2c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:53 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "e184d191-0bec-461f-841b-2be29fb39456" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-request-id": [ + "70aa6ce7-849e-48f7-ac32-7d7d5e6b09c7" + ], + "x-ms-correlation-request-id": [ + "70aa6ce7-849e-48f7-ac32-7d7d5e6b09c7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150821T223852Z:70aa6ce7-849e-48f7-ac32-7d7d5e6b09c7" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:51 GMT" + ], + "ETag": [ + "0x8D2AA7949F630AE" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "2130cad3-ccee-4dd6-bcd1-6b9d144dbb06" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "9e6257ff-1a01-430c-aa26-46d2cb52c3a1" + ], + "x-ms-correlation-request-id": [ + "9e6257ff-1a01-430c-aa26-46d2cb52c3a1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150821T223854Z:9e6257ff-1a01-430c-aa26-46d2cb52c3a1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:53 GMT" + ], + "ETag": [ + "0x8D2AA794AFADF6E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "64aacf2c-fa29-49ce-960a-98569e95162c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "38aaff54-8736-437b-909d-5af1539c40f8" + ], + "x-ms-correlation-request-id": [ + "38aaff54-8736-437b-909d-5af1539c40f8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150821T223852Z:38aaff54-8736-437b-909d-5af1539c40f8" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:51 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "beec90cd-db74-4890-abd3-016e0a55a2aa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-request-id": [ + "1f7a160b-aab1-4112-bc8b-bd5c6e16b1ba" + ], + "x-ms-correlation-request-id": [ + "1f7a160b-aab1-4112-bc8b-bd5c6e16b1ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150821T223854Z:1f7a160b-aab1-4112-bc8b-bd5c6e16b1ba" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:53 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"schedule\": {},\r\n \"jobSpecification\": {\r\n \"commonEnvironmentSettings\": [],\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "186" + ], + "client-request-id": [ + "9b019097-9288-4637-9118-7775a3bff46d" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:52 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:53 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "972fa2db-0706-4be6-841c-8836c3072161" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9b019097-9288-4637-9118-7775a3bff46d" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:53 GMT" + ], + "ETag": [ + "0x8D2AA794A8362F2" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3920b7ac-3138-466b-b5ef-9780b96d5a6a" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:54 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794A8362F2\",\r\n \"lastModified\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:53 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "caf46a71-cae7-4721-b402-f0ddc86eb325" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3920b7ac-3138-466b-b5ef-9780b96d5a6a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794A8362F2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3f925742-85a2-4a58-849f-d2bae4d30ad9" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:54 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794B997F95\",\r\n \"lastModified\": \"2015-08-21T22:38:54.8776853Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:54.8776853Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:54 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "247a3f92-a782-47f0-8841-566252d0364d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3f925742-85a2-4a58-849f-d2bae4d30ad9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794B997F95" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3f925742-85a2-4a58-849f-d2bae4d30ad9" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:54 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794B997F95\",\r\n \"lastModified\": \"2015-08-21T22:38:54.8776853Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:54.8776853Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:54 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "247a3f92-a782-47f0-8841-566252d0364d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3f925742-85a2-4a58-849f-d2bae4d30ad9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794B997F95" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3f925742-85a2-4a58-849f-d2bae4d30ad9" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:54 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794B997F95\",\r\n \"lastModified\": \"2015-08-21T22:38:54.8776853Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:54.8776853Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:54 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "247a3f92-a782-47f0-8841-566252d0364d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3f925742-85a2-4a58-849f-d2bae4d30ad9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794B997F95" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794BF7F860\",\r\n \"lastModified\": \"2015-08-21T22:38:55.496816Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "98707933-e0eb-42a2-97af-c4d50db5cf81" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BF7F860" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794BF7F860\",\r\n \"lastModified\": \"2015-08-21T22:38:55.496816Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "98707933-e0eb-42a2-97af-c4d50db5cf81" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BF7F860" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794BF7F860\",\r\n \"lastModified\": \"2015-08-21T22:38:55.496816Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "98707933-e0eb-42a2-97af-c4d50db5cf81" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BF7F860" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794BF7F860\",\r\n \"lastModified\": \"2015-08-21T22:38:55.496816Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "98707933-e0eb-42a2-97af-c4d50db5cf81" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BF7F860" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794BF7F860\",\r\n \"lastModified\": \"2015-08-21T22:38:55.496816Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "98707933-e0eb-42a2-97af-c4d50db5cf81" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BF7F860" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794BF7F860\",\r\n \"lastModified\": \"2015-08-21T22:38:55.496816Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "98707933-e0eb-42a2-97af-c4d50db5cf81" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BF7F860" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794BF7F860\",\r\n \"lastModified\": \"2015-08-21T22:38:55.496816Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "98707933-e0eb-42a2-97af-c4d50db5cf81" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b86e3dd-62db-4bba-b5ae-4f5a6991cbcd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BF7F860" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2Rpc2FibGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2205df0d-38cf-4256-a87e-6e84b1db84dc" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:54 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:54 GMT" + ], + "request-id": [ + "eb1ba061-57c4-477a-ad6d-58ff7f865095" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2205df0d-38cf-4256-a87e-6e84b1db84dc" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794B997F95" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2Rpc2FibGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2205df0d-38cf-4256-a87e-6e84b1db84dc" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:54 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:54 GMT" + ], + "request-id": [ + "eb1ba061-57c4-477a-ad6d-58ff7f865095" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2205df0d-38cf-4256-a87e-6e84b1db84dc" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794B997F95" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2Rpc2FibGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3b4ed0ff-dad2-4d36-b987-80b688a066de" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "7304ff2e-5695-4a5a-b574-7a576eb90cac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3b4ed0ff-dad2-4d36-b987-80b688a066de" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BF7F860" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2Rpc2FibGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3b4ed0ff-dad2-4d36-b987-80b688a066de" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "7304ff2e-5695-4a5a-b574-7a576eb90cac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3b4ed0ff-dad2-4d36-b987-80b688a066de" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BF7F860" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2Rpc2FibGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3b4ed0ff-dad2-4d36-b987-80b688a066de" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "7304ff2e-5695-4a5a-b574-7a576eb90cac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3b4ed0ff-dad2-4d36-b987-80b688a066de" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BF7F860" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2Rpc2FibGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3b4ed0ff-dad2-4d36-b987-80b688a066de" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "7304ff2e-5695-4a5a-b574-7a576eb90cac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3b4ed0ff-dad2-4d36-b987-80b688a066de" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BF7F860" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2Rpc2FibGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3b4ed0ff-dad2-4d36-b987-80b688a066de" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "7304ff2e-5695-4a5a-b574-7a576eb90cac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3b4ed0ff-dad2-4d36-b987-80b688a066de" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BF7F860" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2Rpc2FibGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3b4ed0ff-dad2-4d36-b987-80b688a066de" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "7304ff2e-5695-4a5a-b574-7a576eb90cac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3b4ed0ff-dad2-4d36-b987-80b688a066de" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BF7F860" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2VuYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "cda3d5c1-8592-47ba-b8d7-5135d7a74e2b" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "8fc52438-402e-40e4-9dc6-834165f93045" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "cda3d5c1-8592-47ba-b8d7-5135d7a74e2b" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BBDCD68" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2VuYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "cda3d5c1-8592-47ba-b8d7-5135d7a74e2b" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "8fc52438-402e-40e4-9dc6-834165f93045" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "cda3d5c1-8592-47ba-b8d7-5135d7a74e2b" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BBDCD68" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2VuYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "cda3d5c1-8592-47ba-b8d7-5135d7a74e2b" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "8fc52438-402e-40e4-9dc6-834165f93045" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "cda3d5c1-8592-47ba-b8d7-5135d7a74e2b" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BBDCD68" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2VuYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "cda3d5c1-8592-47ba-b8d7-5135d7a74e2b" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "8fc52438-402e-40e4-9dc6-834165f93045" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "cda3d5c1-8592-47ba-b8d7-5135d7a74e2b" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "ETag": [ + "0x8D2AA794BBDCD68" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2VuYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "5823ad95-4eed-4d02-bed6-b541e2188774" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "ETag": [ + "0x8D2AA794C2847D4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2VuYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "5823ad95-4eed-4d02-bed6-b541e2188774" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "ETag": [ + "0x8D2AA794C2847D4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2VuYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "5823ad95-4eed-4d02-bed6-b541e2188774" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "ETag": [ + "0x8D2AA794C2847D4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2VuYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "5823ad95-4eed-4d02-bed6-b541e2188774" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "ETag": [ + "0x8D2AA794C2847D4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2VuYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "5823ad95-4eed-4d02-bed6-b541e2188774" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "ETag": [ + "0x8D2AA794C2847D4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2VuYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "5823ad95-4eed-4d02-bed6-b541e2188774" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "ETag": [ + "0x8D2AA794C2847D4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2VuYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "5823ad95-4eed-4d02-bed6-b541e2188774" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "ETag": [ + "0x8D2AA794C2847D4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2VuYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "request-id": [ + "5823ad95-4eed-4d02-bed6-b541e2188774" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "254be1de-c665-410d-aaa0-6c44ff0403b2" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "ETag": [ + "0x8D2AA794C2847D4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "58326e79-4a10-4756-a9dc-43cbfd8ecd31" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794BBDCD68\",\r\n \"lastModified\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:54.8776853Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6aa114c3-8bfa-42b0-9e5c-4eda53baab9d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "58326e79-4a10-4756-a9dc-43cbfd8ecd31" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "58326e79-4a10-4756-a9dc-43cbfd8ecd31" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794BBDCD68\",\r\n \"lastModified\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:54.8776853Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6aa114c3-8bfa-42b0-9e5c-4eda53baab9d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "58326e79-4a10-4756-a9dc-43cbfd8ecd31" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "58326e79-4a10-4756-a9dc-43cbfd8ecd31" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794BBDCD68\",\r\n \"lastModified\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:54.8776853Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6aa114c3-8bfa-42b0-9e5c-4eda53baab9d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "58326e79-4a10-4756-a9dc-43cbfd8ecd31" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "58326e79-4a10-4756-a9dc-43cbfd8ecd31" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794BBDCD68\",\r\n \"lastModified\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:54.8776853Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6aa114c3-8bfa-42b0-9e5c-4eda53baab9d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "58326e79-4a10-4756-a9dc-43cbfd8ecd31" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "58326e79-4a10-4756-a9dc-43cbfd8ecd31" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794BBDCD68\",\r\n \"lastModified\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.1156072Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:54.8776853Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6aa114c3-8bfa-42b0-9e5c-4eda53baab9d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "58326e79-4a10-4756-a9dc-43cbfd8ecd31" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794C2847D4\",\r\n \"lastModified\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "47a18fac-69d4-4a66-b0ef-0fa6d3233353" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794C2847D4\",\r\n \"lastModified\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "47a18fac-69d4-4a66-b0ef-0fa6d3233353" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794C2847D4\",\r\n \"lastModified\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "47a18fac-69d4-4a66-b0ef-0fa6d3233353" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794C2847D4\",\r\n \"lastModified\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "47a18fac-69d4-4a66-b0ef-0fa6d3233353" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794C2847D4\",\r\n \"lastModified\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "47a18fac-69d4-4a66-b0ef-0fa6d3233353" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794C2847D4\",\r\n \"lastModified\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "47a18fac-69d4-4a66-b0ef-0fa6d3233353" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794C2847D4\",\r\n \"lastModified\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "47a18fac-69d4-4a66-b0ef-0fa6d3233353" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794C2847D4\",\r\n \"lastModified\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "47a18fac-69d4-4a66-b0ef-0fa6d3233353" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules?$filter=id%20eq%20'testDisableEnableJobSchedule'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDisableEnableJobSchedule\",\r\n \"eTag\": \"0x8D2AA794C2847D4\",\r\n \"lastModified\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"creationTime\": \"2015-08-21T22:38:53.0550514Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:38:55.8134228Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:38:55.496816Z\",\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJobSchedule:job-1\",\r\n \"id\": \"testDisableEnableJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "47a18fac-69d4-4a66-b0ef-0fa6d3233353" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "87fdae66-4cb9-4f8f-a156-f253165311ee" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1f994cfa-95a3-47a8-ba70-8ebbc19830a2" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "910b75c8-55d7-4888-b7a3-529bfb08edbb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1f994cfa-95a3-47a8-ba70-8ebbc19830a2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testDisableEnableJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGlzYWJsZUVuYWJsZUpvYlNjaGVkdWxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1f994cfa-95a3-47a8-ba70-8ebbc19830a2" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "910b75c8-55d7-4888-b7a3-529bfb08edbb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1f994cfa-95a3-47a8-ba70-8ebbc19830a2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:38:55 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestDisableAndEnableJob.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestDisableAndEnableJob.json new file mode 100644 index 000000000000..b260602bf5b9 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestDisableAndEnableJob.json @@ -0,0 +1,2939 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "98c49d97-2010-468c-89ee-7a7066a69b62" + ], + "x-ms-correlation-request-id": [ + "98c49d97-2010-468c-89ee-7a7066a69b62" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150821T224644Z:98c49d97-2010-468c-89ee-7a7066a69b62" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:44 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-request-id": [ + "be7cdc7e-06be-410f-84c3-724489a470fb" + ], + "x-ms-correlation-request-id": [ + "be7cdc7e-06be-410f-84c3-724489a470fb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150821T224647Z:be7cdc7e-06be-410f-84c3-724489a470fb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:46 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "dc0b5397-5919-4dc8-b95f-802c422b0ed5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-request-id": [ + "6541bb7e-fc2c-498f-a060-ec928750cb0e" + ], + "x-ms-correlation-request-id": [ + "6541bb7e-fc2c-498f-a060-ec928750cb0e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150821T224646Z:6541bb7e-fc2c-498f-a060-ec928750cb0e" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:45 GMT" + ], + "ETag": [ + "0x8D2AA7A6477BA57" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "97e6d423-50c8-4e47-b645-2d9eb4c38768" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-request-id": [ + "a3ef8dee-c75e-40a1-a5d4-a47fbb2b430f" + ], + "x-ms-correlation-request-id": [ + "a3ef8dee-c75e-40a1-a5d4-a47fbb2b430f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150821T224647Z:a3ef8dee-c75e-40a1-a5d4-a47fbb2b430f" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:46 GMT" + ], + "ETag": [ + "0x8D2AA7A6534ABC8" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "62cbc469-1e63-45ae-9f0f-20ca87ab06c8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-request-id": [ + "004d6246-bf6e-4ff3-a076-ad7bbc647bf2" + ], + "x-ms-correlation-request-id": [ + "004d6246-bf6e-4ff3-a076-ad7bbc647bf2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150821T224646Z:004d6246-bf6e-4ff3-a076-ad7bbc647bf2" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:45 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "1ab2a584-bd96-4dfa-ade7-a033c59380e4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-request-id": [ + "28ccbe67-779c-44c0-bc35-7cf9dde643ea" + ], + "x-ms-correlation-request-id": [ + "28ccbe67-779c-44c0-bc35-7cf9dde643ea" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150821T224647Z:28ccbe67-779c-44c0-bc35-7cf9dde643ea" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:47 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testDisableEnableJob\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "103" + ], + "client-request-id": [ + "88a632bf-6cae-4f86-bc8a-fb85cba097d8" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:46 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:46 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5ee5de7f-5fb1-4c03-9e55-767f3a5702ae" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "88a632bf-6cae-4f86-bc8a-fb85cba097d8" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:46 GMT" + ], + "ETag": [ + "0x8D2AA7A64E3B8C6" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "28461697-e412-4636-b6d8-aebd5f61f10b" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:47 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A64E3B8C6\",\r\n \"lastModified\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:46 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "08729fa5-a7fa-4879-8f6c-4cb6d58a03b3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "28461697-e412-4636-b6d8-aebd5f61f10b" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A64E3B8C6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "db9df0c3-8724-4422-94fc-a82c16e3f3fa" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A659AE6B0\",\r\n \"lastModified\": \"2015-08-21T22:46:48.0043696Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.0163695Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cddcb7b0-edc1-4f2a-b2ce-bb52a9e0b9b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "db9df0c3-8724-4422-94fc-a82c16e3f3fa" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A659AE6B0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "db9df0c3-8724-4422-94fc-a82c16e3f3fa" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A659AE6B0\",\r\n \"lastModified\": \"2015-08-21T22:46:48.0043696Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.0163695Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cddcb7b0-edc1-4f2a-b2ce-bb52a9e0b9b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "db9df0c3-8724-4422-94fc-a82c16e3f3fa" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A659AE6B0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "db9df0c3-8724-4422-94fc-a82c16e3f3fa" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A659AE6B0\",\r\n \"lastModified\": \"2015-08-21T22:46:48.0043696Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.0163695Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cddcb7b0-edc1-4f2a-b2ce-bb52a9e0b9b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "db9df0c3-8724-4422-94fc-a82c16e3f3fa" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A659AE6B0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A65EB217C\",\r\n \"lastModified\": \"2015-08-21T22:46:48.5301628Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cf5b0bc7-0508-462e-9912-55b7c693db2a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65EB217C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A65EB217C\",\r\n \"lastModified\": \"2015-08-21T22:46:48.5301628Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cf5b0bc7-0508-462e-9912-55b7c693db2a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65EB217C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A65EB217C\",\r\n \"lastModified\": \"2015-08-21T22:46:48.5301628Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cf5b0bc7-0508-462e-9912-55b7c693db2a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65EB217C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A65EB217C\",\r\n \"lastModified\": \"2015-08-21T22:46:48.5301628Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cf5b0bc7-0508-462e-9912-55b7c693db2a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65EB217C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A65EB217C\",\r\n \"lastModified\": \"2015-08-21T22:46:48.5301628Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cf5b0bc7-0508-462e-9912-55b7c693db2a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65EB217C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A65EB217C\",\r\n \"lastModified\": \"2015-08-21T22:46:48.5301628Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cf5b0bc7-0508-462e-9912-55b7c693db2a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65EB217C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A65EB217C\",\r\n \"lastModified\": \"2015-08-21T22:46:48.5301628Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"disabled\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cf5b0bc7-0508-462e-9912-55b7c693db2a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f63d797b-ca02-4bd7-9f9c-b584b48cfaca" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65EB217C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZGlzYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"disableTasks\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "35" + ], + "client-request-id": [ + "15041852-c71c-4e25-bb8a-445b2650eb7f" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:47 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "1d582ab1-37a2-499a-9531-2c2b284b6c19" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "15041852-c71c-4e25-bb8a-445b2650eb7f" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A659AE6B0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZGlzYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"disableTasks\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "35" + ], + "client-request-id": [ + "15041852-c71c-4e25-bb8a-445b2650eb7f" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:47 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "1d582ab1-37a2-499a-9531-2c2b284b6c19" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "15041852-c71c-4e25-bb8a-445b2650eb7f" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A659AE6B0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZGlzYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"disableTasks\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "35" + ], + "client-request-id": [ + "19512a8b-27b3-401d-b7a1-7cc740f5153c" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9777fe75-053f-41b5-8c1c-85814118983c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "19512a8b-27b3-401d-b7a1-7cc740f5153c" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65EB217C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZGlzYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"disableTasks\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "35" + ], + "client-request-id": [ + "19512a8b-27b3-401d-b7a1-7cc740f5153c" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9777fe75-053f-41b5-8c1c-85814118983c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "19512a8b-27b3-401d-b7a1-7cc740f5153c" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65EB217C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZGlzYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"disableTasks\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "35" + ], + "client-request-id": [ + "19512a8b-27b3-401d-b7a1-7cc740f5153c" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9777fe75-053f-41b5-8c1c-85814118983c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "19512a8b-27b3-401d-b7a1-7cc740f5153c" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65EB217C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZGlzYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"disableTasks\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "35" + ], + "client-request-id": [ + "19512a8b-27b3-401d-b7a1-7cc740f5153c" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9777fe75-053f-41b5-8c1c-85814118983c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "19512a8b-27b3-401d-b7a1-7cc740f5153c" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65EB217C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZGlzYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"disableTasks\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "35" + ], + "client-request-id": [ + "19512a8b-27b3-401d-b7a1-7cc740f5153c" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9777fe75-053f-41b5-8c1c-85814118983c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "19512a8b-27b3-401d-b7a1-7cc740f5153c" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65EB217C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?disable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZGlzYWJsZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"disableTasks\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "35" + ], + "client-request-id": [ + "19512a8b-27b3-401d-b7a1-7cc740f5153c" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9777fe75-053f-41b5-8c1c-85814118983c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "19512a8b-27b3-401d-b7a1-7cc740f5153c" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65EB217C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZW5hYmxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "38a703b4-8783-4a24-aa10-cff2088fa692" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ebea745b-731d-4103-8df5-408eae0ff40a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "38a703b4-8783-4a24-aa10-cff2088fa692" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65B72CB9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZW5hYmxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "38a703b4-8783-4a24-aa10-cff2088fa692" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ebea745b-731d-4103-8df5-408eae0ff40a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "38a703b4-8783-4a24-aa10-cff2088fa692" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65B72CB9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZW5hYmxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "38a703b4-8783-4a24-aa10-cff2088fa692" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ebea745b-731d-4103-8df5-408eae0ff40a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "38a703b4-8783-4a24-aa10-cff2088fa692" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65B72CB9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZW5hYmxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "38a703b4-8783-4a24-aa10-cff2088fa692" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ebea745b-731d-4103-8df5-408eae0ff40a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "38a703b4-8783-4a24-aa10-cff2088fa692" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A65B72CB9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZW5hYmxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d2281b7e-7842-404f-9d1a-fa0afd8b8024" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A66064A9E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZW5hYmxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d2281b7e-7842-404f-9d1a-fa0afd8b8024" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A66064A9E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZW5hYmxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d2281b7e-7842-404f-9d1a-fa0afd8b8024" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A66064A9E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZW5hYmxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d2281b7e-7842-404f-9d1a-fa0afd8b8024" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A66064A9E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZW5hYmxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d2281b7e-7842-404f-9d1a-fa0afd8b8024" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A66064A9E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZW5hYmxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d2281b7e-7842-404f-9d1a-fa0afd8b8024" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A66064A9E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZW5hYmxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d2281b7e-7842-404f-9d1a-fa0afd8b8024" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A66064A9E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?enable&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/ZW5hYmxlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d2281b7e-7842-404f-9d1a-fa0afd8b8024" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "63638c9a-f852-452e-8cb0-21c7311d02e3" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "ETag": [ + "0x8D2AA7A66064A9E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "783def14-17e8-4790-8499-2904f4669921" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A65B72CB9\",\r\n \"lastModified\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.0163695Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e57d7915-4215-4e46-b8e7-f2d11f3bac21" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "783def14-17e8-4790-8499-2904f4669921" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "783def14-17e8-4790-8499-2904f4669921" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A65B72CB9\",\r\n \"lastModified\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.0163695Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e57d7915-4215-4e46-b8e7-f2d11f3bac21" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "783def14-17e8-4790-8499-2904f4669921" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "783def14-17e8-4790-8499-2904f4669921" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A65B72CB9\",\r\n \"lastModified\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.0163695Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e57d7915-4215-4e46-b8e7-f2d11f3bac21" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "783def14-17e8-4790-8499-2904f4669921" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "783def14-17e8-4790-8499-2904f4669921" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A65B72CB9\",\r\n \"lastModified\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.0163695Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e57d7915-4215-4e46-b8e7-f2d11f3bac21" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "783def14-17e8-4790-8499-2904f4669921" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "783def14-17e8-4790-8499-2904f4669921" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A65B72CB9\",\r\n \"lastModified\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.1896633Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.0163695Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e57d7915-4215-4e46-b8e7-f2d11f3bac21" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "783def14-17e8-4790-8499-2904f4669921" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A66064A9E\",\r\n \"lastModified\": \"2015-08-21T22:46:48.708163Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.708163Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c98931c0-53fd-4860-857b-b524bd2b24bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A66064A9E\",\r\n \"lastModified\": \"2015-08-21T22:46:48.708163Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.708163Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c98931c0-53fd-4860-857b-b524bd2b24bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A66064A9E\",\r\n \"lastModified\": \"2015-08-21T22:46:48.708163Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.708163Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c98931c0-53fd-4860-857b-b524bd2b24bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A66064A9E\",\r\n \"lastModified\": \"2015-08-21T22:46:48.708163Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.708163Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c98931c0-53fd-4860-857b-b524bd2b24bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A66064A9E\",\r\n \"lastModified\": \"2015-08-21T22:46:48.708163Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.708163Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c98931c0-53fd-4860-857b-b524bd2b24bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A66064A9E\",\r\n \"lastModified\": \"2015-08-21T22:46:48.708163Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.708163Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c98931c0-53fd-4860-857b-b524bd2b24bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A66064A9E\",\r\n \"lastModified\": \"2015-08-21T22:46:48.708163Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.708163Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c98931c0-53fd-4860-857b-b524bd2b24bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A66064A9E\",\r\n \"lastModified\": \"2015-08-21T22:46:48.708163Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.708163Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c98931c0-53fd-4860-857b-b524bd2b24bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?$filter=id%20eq%20'testDisableEnableJob'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdERpc2FibGVFbmFibGVKb2IlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDisableEnableJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDisableEnableJob\",\r\n \"eTag\": \"0x8D2AA7A66064A9E\",\r\n \"lastModified\": \"2015-08-21T22:46:48.708163Z\",\r\n \"creationTime\": \"2015-08-21T22:46:46.7878771Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-21T22:46:48.708163Z\",\r\n \"previousState\": \"disabled\",\r\n \"previousStateTransitionTime\": \"2015-08-21T22:46:48.5411544Z\",\r\n \"priority\": 0,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-08-21T22:46:46.8038854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c98931c0-53fd-4860-857b-b524bd2b24bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7f050322-df71-41f9-b657-36b0b7591347" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "79a013b5-df30-48cf-8653-9e132c242de8" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "273346bd-5f65-4ce5-93a4-e6d376b0a622" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "79a013b5-df30-48cf-8653-9e132c242de8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDisableEnableJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERpc2FibGVFbmFibGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "79a013b5-df30-48cf-8653-9e132c242de8" + ], + "ocp-date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "273346bd-5f65-4ce5-93a4-e6d376b0a622" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "79a013b5-df30-48cf-8653-9e132c242de8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Fri, 21 Aug 2015 22:46:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestChangeOSVersionById.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestChangeOSVersionById.json new file mode 100644 index 000000000000..2206b8026b06 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestChangeOSVersionById.json @@ -0,0 +1,741 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-request-id": [ + "9633f949-46a5-4002-b257-1914b6b5dbe8" + ], + "x-ms-correlation-request-id": [ + "9633f949-46a5-4002-b257-1914b6b5dbe8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150813T225830Z:9633f949-46a5-4002-b257-1914b6b5dbe8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 13 Aug 2015 22:58:30 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-request-id": [ + "8571dbfe-f6cc-4da5-b616-a3aad3e6911f" + ], + "x-ms-correlation-request-id": [ + "8571dbfe-f6cc-4da5-b616-a3aad3e6911f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150813T225832Z:8571dbfe-f6cc-4da5-b616-a3aad3e6911f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 13 Aug 2015 22:58:32 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 22:58:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "8c795b27-c83a-463e-b215-c65c631b6d34" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "58361ab9-16e9-4f91-bf13-038da0e7dead" + ], + "x-ms-correlation-request-id": [ + "58361ab9-16e9-4f91-bf13-038da0e7dead" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150813T225831Z:58361ab9-16e9-4f91-bf13-038da0e7dead" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 13 Aug 2015 22:58:30 GMT" + ], + "ETag": [ + "0x8D2A432B5C69EB8" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 22:58:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "ac120aaf-2100-4a96-813c-5b64f78f4d68" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-request-id": [ + "967d661f-c302-4f56-8dfd-49cbe8580b7f" + ], + "x-ms-correlation-request-id": [ + "967d661f-c302-4f56-8dfd-49cbe8580b7f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150813T225833Z:967d661f-c302-4f56-8dfd-49cbe8580b7f" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 13 Aug 2015 22:58:32 GMT" + ], + "ETag": [ + "0x8D2A432B6C3670F" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "7e8bf0b2-88fc-419d-b828-d4510ae92a44" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "4fa6b8ed-08d6-49fe-9a9a-5d2a4cfdee3f" + ], + "x-ms-correlation-request-id": [ + "4fa6b8ed-08d6-49fe-9a9a-5d2a4cfdee3f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150813T225831Z:4fa6b8ed-08d6-49fe-9a9a-5d2a4cfdee3f" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 13 Aug 2015 22:58:30 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "5e833131-eb98-4910-b6cd-8ba474b91e51" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "8970f01d-dad4-4558-b185-5035070f7840" + ], + "x-ms-correlation-request-id": [ + "8970f01d-dad4-4558-b185-5035070f7840" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150813T225833Z:8970f01d-dad4-4558-b185-5035070f7840" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 13 Aug 2015 22:58:32 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "a67b9548-fd46-4626-91fa-f59f4ac4d1ef" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 22:58:31 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D2A42F3C68C674\",\r\n \"lastModified\": \"2015-08-13T22:33:39.6578932Z\",\r\n \"creationTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-13T20:09:39.4561146Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 22:33:39 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "0a493f1a-c96f-47a9-9f15-c4eebcfd1bd1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "a67b9548-fd46-4626-91fa-f59f4ac4d1ef" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 13 Aug 2015 22:58:31 GMT" + ], + "ETag": [ + "0x8D2A42F3C68C674" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d0e715aa-0840-45d8-8ca2-11a944e7f0e8" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 22:58:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D2A42F3C68C674\",\r\n \"lastModified\": \"2015-08-13T22:33:39.6578932Z\",\r\n \"creationTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-13T20:09:39.4561146Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 22:33:39 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b455a3d4-d393-46dc-9538-46526386752b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d0e715aa-0840-45d8-8ca2-11a944e7f0e8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 13 Aug 2015 22:58:33 GMT" + ], + "ETag": [ + "0x8D2A42F3C68C674" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3ae8e3f5-d979-4875-a0d0-c74c750c15bb" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 22:58:34 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D2A432B778A7BC\",\r\n \"lastModified\": \"2015-08-13T22:58:34.61191Z\",\r\n \"creationTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"state\": \"upgrading\",\r\n \"stateTransitionTime\": \"2015-08-13T22:58:34.61191Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-13T20:09:39.4561146Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"WA-GUEST-OS-4.20_201505-01\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 22:58:34 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9b3b1838-0572-4c17-ab44-bb8297389d47" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3ae8e3f5-d979-4875-a0d0-c74c750c15bb" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 13 Aug 2015 22:58:33 GMT" + ], + "ETag": [ + "0x8D2A432B778A7BC" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3ae8e3f5-d979-4875-a0d0-c74c750c15bb" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 22:58:34 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D2A432B778A7BC\",\r\n \"lastModified\": \"2015-08-13T22:58:34.61191Z\",\r\n \"creationTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"state\": \"upgrading\",\r\n \"stateTransitionTime\": \"2015-08-13T22:58:34.61191Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-13T20:09:39.4561146Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"WA-GUEST-OS-4.20_201505-01\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 22:58:34 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9b3b1838-0572-4c17-ab44-bb8297389d47" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3ae8e3f5-d979-4875-a0d0-c74c750c15bb" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 13 Aug 2015 22:58:33 GMT" + ], + "ETag": [ + "0x8D2A432B778A7BC" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3ae8e3f5-d979-4875-a0d0-c74c750c15bb" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 22:58:34 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D2A432B778A7BC\",\r\n \"lastModified\": \"2015-08-13T22:58:34.61191Z\",\r\n \"creationTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"state\": \"upgrading\",\r\n \"stateTransitionTime\": \"2015-08-13T22:58:34.61191Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-13T20:09:39.4561146Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"WA-GUEST-OS-4.20_201505-01\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 22:58:34 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9b3b1838-0572-4c17-ab44-bb8297389d47" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3ae8e3f5-d979-4875-a0d0-c74c750c15bb" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 13 Aug 2015 22:58:33 GMT" + ], + "ETag": [ + "0x8D2A432B778A7BC" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?upgradeos&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3VwZ3JhZGVvcyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"targetOSVersion\": \"WA-GUEST-OS-4.20_201505-01\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "55" + ], + "client-request-id": [ + "88701c4d-ffc2-4125-9208-860f368dc46e" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 22:58:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 13 Aug 2015 22:58:34 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5888a094-d1f0-4b84-a684-a87f4f1c4cce" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "88701c4d-ffc2-4125-9208-860f368dc46e" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Thu, 13 Aug 2015 22:58:33 GMT" + ], + "ETag": [ + "0x8D2A432B778A7BC" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testPool?upgradeos&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3VwZ3JhZGVvcyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"targetOSVersion\": \"WA-GUEST-OS-4.20_201505-01\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "55" + ], + "client-request-id": [ + "88701c4d-ffc2-4125-9208-860f368dc46e" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 22:58:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 13 Aug 2015 22:58:34 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5888a094-d1f0-4b84-a684-a87f4f1c4cce" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "88701c4d-ffc2-4125-9208-860f368dc46e" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Thu, 13 Aug 2015 22:58:33 GMT" + ], + "ETag": [ + "0x8D2A432B778A7BC" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestChangeOSVersionPipeline.json b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestChangeOSVersionPipeline.json new file mode 100644 index 000000000000..42d1dcb34afe --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestChangeOSVersionPipeline.json @@ -0,0 +1,955 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-request-id": [ + "c52e11d6-e254-4414-af45-92fbcb5f15bb" + ], + "x-ms-correlation-request-id": [ + "c52e11d6-e254-4414-af45-92fbcb5f15bb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150813T230615Z:c52e11d6-e254-4414-af45-92fbcb5f15bb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:15 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/Default-AzureBatch-WestUS/providers/Microsoft.Batch/batchAccounts/jaschneibatchtest\",\r\n \"name\": \"jaschneibatchtest\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "483" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-request-id": [ + "0de8c895-8fbc-4bb6-b4d7-0d5d1a122c6f" + ], + "x-ms-correlation-request-id": [ + "0de8c895-8fbc-4bb6-b4d7-0d5d1a122c6f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150813T230618Z:0de8c895-8fbc-4bb6-b4d7-0d5d1a122c6f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:17 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 23:06:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "f9573f14-f5f1-4cb5-bd70-e0b5d200fe94" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-request-id": [ + "5a260414-0ac8-49cd-8db3-d51d1400842c" + ], + "x-ms-correlation-request-id": [ + "5a260414-0ac8-49cd-8db3-d51d1400842c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150813T230617Z:5a260414-0ac8-49cd-8db3-d51d1400842c" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:16 GMT" + ], + "ETag": [ + "0x8D2A433CB2AF221" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "bd3215c6-df1b-43e4-8a47-5c936f3bf49c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-request-id": [ + "d5ff3ffe-85f5-40e1-8726-057e58d13c0b" + ], + "x-ms-correlation-request-id": [ + "d5ff3ffe-85f5-40e1-8726-057e58d13c0b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150813T230618Z:d5ff3ffe-85f5-40e1-8726-057e58d13c0b" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:17 GMT" + ], + "ETag": [ + "0x8D2A433CBD93B05" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "b841cbe3-8c8d-41e1-b348-ac2442d12795" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-request-id": [ + "9ef10238-b4c0-46c4-b9cd-11fed762933a" + ], + "x-ms-correlation-request-id": [ + "9ef10238-b4c0-46c4-b9cd-11fed762933a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150813T230617Z:9ef10238-b4c0-46c4-b9cd-11fed762933a" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:16 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "715e4ce2-248f-4563-a934-b427b56d5ae9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-request-id": [ + "746f5bb3-5dff-41ae-ada7-aae329994cfb" + ], + "x-ms-correlation-request-id": [ + "746f5bb3-5dff-41ae-ada7-aae329994cfb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150813T230618Z:746f5bb3-5dff-41ae-ada7-aae329994cfb" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e214b1b6-efd2-4b1c-a390-f0b2d75171a3" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 23:06:17 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D2A4333A2D8B79\",\r\n \"lastModified\": \"2015-08-13T23:02:13.9011961Z\",\r\n \"creationTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-13T20:09:39.4561146Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 23:02:13 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "8383b96e-4aa8-42f9-8d3f-c549267aae11" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e214b1b6-efd2-4b1c-a390-f0b2d75171a3" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "ETag": [ + "0x8D2A4333A2D8B79" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1bcde788-b497-4fa3-ba4e-bad734ded925" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D2A4333A2D8B79\",\r\n \"lastModified\": \"2015-08-13T23:02:13.9011961Z\",\r\n \"creationTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-13T20:09:39.4561146Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 23:02:13 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "804e0c2a-f692-4074-9842-347b085f9369" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1bcde788-b497-4fa3-ba4e-bad734ded925" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "ETag": [ + "0x8D2A4333A2D8B79" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "26af53a1-1e41-4974-9b57-881e880922e7" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 23:06:19 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D2A433CCA26F9D\",\r\n \"lastModified\": \"2015-08-13T23:06:19.6146077Z\",\r\n \"creationTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"state\": \"upgrading\",\r\n \"stateTransitionTime\": \"2015-08-13T23:06:19.6146077Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-13T20:09:39.4561146Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"WA-GUEST-OS-4.20_201505-01\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 23:06:19 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "351ec5b9-ad29-4234-8dff-2a10be731af6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "26af53a1-1e41-4974-9b57-881e880922e7" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "ETag": [ + "0x8D2A433CCA26F9D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "26af53a1-1e41-4974-9b57-881e880922e7" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 23:06:19 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D2A433CCA26F9D\",\r\n \"lastModified\": \"2015-08-13T23:06:19.6146077Z\",\r\n \"creationTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"state\": \"upgrading\",\r\n \"stateTransitionTime\": \"2015-08-13T23:06:19.6146077Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-13T20:09:39.4561146Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"WA-GUEST-OS-4.20_201505-01\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 23:06:19 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "351ec5b9-ad29-4234-8dff-2a10be731af6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "26af53a1-1e41-4974-9b57-881e880922e7" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "ETag": [ + "0x8D2A433CCA26F9D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "26af53a1-1e41-4974-9b57-881e880922e7" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 23:06:19 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D2A433CCA26F9D\",\r\n \"lastModified\": \"2015-08-13T23:06:19.6146077Z\",\r\n \"creationTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"state\": \"upgrading\",\r\n \"stateTransitionTime\": \"2015-08-13T23:06:19.6146077Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-13T20:09:39.4561146Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"WA-GUEST-OS-4.20_201505-01\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 23:06:19 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "351ec5b9-ad29-4234-8dff-2a10be731af6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "26af53a1-1e41-4974-9b57-881e880922e7" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "ETag": [ + "0x8D2A433CCA26F9D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "26af53a1-1e41-4974-9b57-881e880922e7" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 23:06:19 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D2A433CCA26F9D\",\r\n \"lastModified\": \"2015-08-13T23:06:19.6146077Z\",\r\n \"creationTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"state\": \"upgrading\",\r\n \"stateTransitionTime\": \"2015-08-13T23:06:19.6146077Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-13T20:09:39.4561146Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"WA-GUEST-OS-4.20_201505-01\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 13 Aug 2015 23:06:19 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "351ec5b9-ad29-4234-8dff-2a10be731af6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "26af53a1-1e41-4974-9b57-881e880922e7" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "ETag": [ + "0x8D2A433CCA26F9D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools?$filter=id%20eq%20'testPool'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RQb29sJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "be488cff-b6cf-4f11-aa37-e583a8ab4f83" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D2A4333A2D8B79\",\r\n \"lastModified\": \"2015-08-13T23:02:13.9011961Z\",\r\n \"creationTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-13T20:09:39.4561146Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "997aa7f8-602a-49c3-affb-d61afb41574b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "be488cff-b6cf-4f11-aa37-e583a8ab4f83" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools?$filter=id%20eq%20'testPool'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RQb29sJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "be488cff-b6cf-4f11-aa37-e583a8ab4f83" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D2A4333A2D8B79\",\r\n \"lastModified\": \"2015-08-13T23:02:13.9011961Z\",\r\n \"creationTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-08-13T20:08:04.98791Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-08-13T20:09:39.4561146Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "997aa7f8-602a-49c3-affb-d61afb41574b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "be488cff-b6cf-4f11-aa37-e583a8ab4f83" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?upgradeos&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3VwZ3JhZGVvcyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"targetOSVersion\": \"WA-GUEST-OS-4.20_201505-01\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "55" + ], + "client-request-id": [ + "4505ea5f-e672-48c6-8281-4d166c6cd54b" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 13 Aug 2015 23:06:19 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6f664e1b-c277-4fdc-96a2-896e24805daa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4505ea5f-e672-48c6-8281-4d166c6cd54b" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "ETag": [ + "0x8D2A433CCA26F9D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testPool?upgradeos&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3VwZ3JhZGVvcyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"targetOSVersion\": \"WA-GUEST-OS-4.20_201505-01\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "55" + ], + "client-request-id": [ + "4505ea5f-e672-48c6-8281-4d166c6cd54b" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 13 Aug 2015 23:06:19 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6f664e1b-c277-4fdc-96a2-896e24805daa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4505ea5f-e672-48c6-8281-4d166c6cd54b" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "ETag": [ + "0x8D2A433CCA26F9D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testPool?upgradeos&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3VwZ3JhZGVvcyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"targetOSVersion\": \"WA-GUEST-OS-4.20_201505-01\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "55" + ], + "client-request-id": [ + "4505ea5f-e672-48c6-8281-4d166c6cd54b" + ], + "ocp-date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 13 Aug 2015 23:06:19 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6f664e1b-c277-4fdc-96a2-896e24805daa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4505ea5f-e672-48c6-8281-4d166c6cd54b" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Thu, 13 Aug 2015 23:06:18 GMT" + ], + "ETag": [ + "0x8D2A433CCA26F9D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/packages.config b/src/ResourceManager/AzureBatch/Commands.Batch.Test/packages.config index 97d6e7c7ea10..201b91e8be67 100644 --- a/src/ResourceManager/AzureBatch/Commands.Batch.Test/packages.config +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/packages.config @@ -8,7 +8,7 @@ - + diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Commands.Batch.csproj b/src/ResourceManager/AzureBatch/Commands.Batch/Commands.Batch.csproj index 7678eb348fb9..85a73eef86da 100644 --- a/src/ResourceManager/AzureBatch/Commands.Batch/Commands.Batch.csproj +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Commands.Batch.csproj @@ -58,9 +58,8 @@ ..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll - - False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll @@ -155,9 +154,15 @@ + + + + + + @@ -191,6 +196,8 @@ + + @@ -242,6 +249,8 @@ + + @@ -250,6 +259,7 @@ + @@ -319,4 +329,4 @@ --> - + \ No newline at end of file diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/ComputeNodes/ResetBatchComputeNodeCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/ComputeNodes/ResetBatchComputeNodeCommand.cs new file mode 100644 index 000000000000..64e008d7c884 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch/ComputeNodes/ResetBatchComputeNodeCommand.cs @@ -0,0 +1,53 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Batch; +using Microsoft.Azure.Batch.Common; +using Microsoft.Azure.Commands.Batch.Models; +using System; +using System.Management.Automation; +using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; + +namespace Microsoft.Azure.Commands.Batch +{ + [Cmdlet(VerbsCommon.Reset, Constants.AzureBatchComputeNode, DefaultParameterSetName = Constants.IdParameterSet)] + public class ResetBatchComputeNodeCommand : BatchObjectModelCmdletBase + { + [Parameter(Position = 0, ParameterSetName = Constants.IdParameterSet, Mandatory = true, HelpMessage = "The id of the pool that contains the compute node.")] + [ValidateNotNullOrEmpty] + public string PoolId { get; set; } + + [Parameter(Position = 1, ParameterSetName = Constants.IdParameterSet, Mandatory = true, HelpMessage = "The id of the compute node to reimage.")] + [ValidateNotNullOrEmpty] + public string Id { get; set; } + + [Parameter(Position = 0, ParameterSetName = Constants.InputObjectParameterSet, ValueFromPipeline = true)] + [ValidateNotNullOrEmpty] + public PSComputeNode ComputeNode { get; set; } + + [Parameter] + [ValidateNotNullOrEmpty] + public ComputeNodeReimageOption? ReimageOption { get; set; } + + public override void ExecuteCmdlet() + { + ReimageComputeNodeParameters parameters = new ReimageComputeNodeParameters(this.BatchContext, this.PoolId, + this.Id, this.ComputeNode, this.AdditionalBehaviors) + { + ReimageOption = this.ReimageOption + }; + BatchClient.ReimageComputeNode(parameters); + } + } +} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/ComputeNodes/RestartBatchComputeNodeCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/ComputeNodes/RestartBatchComputeNodeCommand.cs new file mode 100644 index 000000000000..0688865951b6 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch/ComputeNodes/RestartBatchComputeNodeCommand.cs @@ -0,0 +1,53 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Batch; +using Microsoft.Azure.Batch.Common; +using Microsoft.Azure.Commands.Batch.Models; +using System; +using System.Management.Automation; +using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; + +namespace Microsoft.Azure.Commands.Batch +{ + [Cmdlet(VerbsLifecycle.Restart, Constants.AzureBatchComputeNode, DefaultParameterSetName = Constants.IdParameterSet)] + public class RestartBatchComputeNodeCommand : BatchObjectModelCmdletBase + { + [Parameter(Position = 0, ParameterSetName = Constants.IdParameterSet, Mandatory = true, HelpMessage = "The id of the pool that contains the compute node.")] + [ValidateNotNullOrEmpty] + public string PoolId { get; set; } + + [Parameter(Position = 1, ParameterSetName = Constants.IdParameterSet, Mandatory = true, HelpMessage = "The id of the compute node to reboot.")] + [ValidateNotNullOrEmpty] + public string Id { get; set; } + + [Parameter(Position = 0, ParameterSetName = Constants.InputObjectParameterSet, ValueFromPipeline = true)] + [ValidateNotNullOrEmpty] + public PSComputeNode ComputeNode { get; set; } + + [Parameter(Position = 2)] + [ValidateNotNullOrEmpty] + public ComputeNodeRebootOption? RebootOption { get; set; } + + public override void ExecuteCmdlet() + { + RebootComputeNodeParameters parameters = new RebootComputeNodeParameters(this.BatchContext, this.PoolId, + this.Id, this.ComputeNode, this.AdditionalBehaviors) + { + RebootOption = this.RebootOption + }; + BatchClient.RebootComputeNode(parameters); + } + } +} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/JobSchedules/DisableBatchJobScheduleCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/JobSchedules/DisableBatchJobScheduleCommand.cs new file mode 100644 index 000000000000..b4b44d2b0fb5 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch/JobSchedules/DisableBatchJobScheduleCommand.cs @@ -0,0 +1,33 @@ +// ---------------------------------------------------------------------------------- +// +// 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 Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; + +namespace Microsoft.Azure.Commands.Batch +{ + [Cmdlet(VerbsLifecycle.Disable, Constants.AzureBatchJobSchedule)] + public class DisableBatchJobScheduleCommand : BatchObjectModelCmdletBase + { + [Parameter(Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "The id of the job schedule to disable.")] + [ValidateNotNullOrEmpty] + public string Id { get; set; } + + public override void ExecuteCmdlet() + { + BatchClient.DisableJobSchedule(this.BatchContext, this.Id, this.AdditionalBehaviors); + } + } +} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/JobSchedules/EnableBatchJobScheduleCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/JobSchedules/EnableBatchJobScheduleCommand.cs new file mode 100644 index 000000000000..e2b4298bd8ea --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch/JobSchedules/EnableBatchJobScheduleCommand.cs @@ -0,0 +1,33 @@ +// ---------------------------------------------------------------------------------- +// +// 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 Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; + +namespace Microsoft.Azure.Commands.Batch +{ + [Cmdlet(VerbsLifecycle.Enable, Constants.AzureBatchJobSchedule)] + public class EnableBatchJobScheduleCommand : BatchObjectModelCmdletBase + { + [Parameter(Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "The id of the job schedule to enable.")] + [ValidateNotNullOrEmpty] + public string Id { get; set; } + + public override void ExecuteCmdlet() + { + BatchClient.EnableJobSchedule(this.BatchContext, this.Id, this.AdditionalBehaviors); + } + } +} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Jobs/DisableBatchJobCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Jobs/DisableBatchJobCommand.cs new file mode 100644 index 000000000000..f7b4b55e0dac --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Jobs/DisableBatchJobCommand.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.Batch.Common; +using Microsoft.Azure.Commands.Batch.Models; +using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; + +namespace Microsoft.Azure.Commands.Batch +{ + [Cmdlet(VerbsLifecycle.Disable, Constants.AzureBatchJob)] + public class DisableBatchJobCommand : BatchObjectModelCmdletBase + { + [Parameter(Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "The id of the job to disable.")] + [ValidateNotNullOrEmpty] + public string Id { get; set; } + + [Parameter(Position = 1, Mandatory = true, HelpMessage = "Specifies what to do with active tasks associated with the job.")] + public DisableJobOption DisableJobOption { get; set; } + + public override void ExecuteCmdlet() + { + DisableJobParameters parameters = new DisableJobParameters(this.BatchContext, this.Id, null, this.DisableJobOption, this.AdditionalBehaviors); + BatchClient.DisableJob(parameters); + } + } +} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Jobs/EnableBatchJobCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Jobs/EnableBatchJobCommand.cs new file mode 100644 index 000000000000..7f5ffe1ee6c7 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Jobs/EnableBatchJobCommand.cs @@ -0,0 +1,33 @@ +// ---------------------------------------------------------------------------------- +// +// 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 Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; + +namespace Microsoft.Azure.Commands.Batch +{ + [Cmdlet(VerbsLifecycle.Enable, Constants.AzureBatchJob)] + public class EnableBatchJobCommand : BatchObjectModelCmdletBase + { + [Parameter(Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "The id of the job to enable.")] + [ValidateNotNullOrEmpty] + public string Id { get; set; } + + public override void ExecuteCmdlet() + { + BatchClient.EnableJob(this.BatchContext, this.Id, this.AdditionalBehaviors); + } + } +} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Microsoft.Azure.Commands.Batch.dll-Help.xml b/src/ResourceManager/AzureBatch/Commands.Batch/Microsoft.Azure.Commands.Batch.dll-Help.xml index 2772f5652c65..d3b6ab87f9e2 100644 --- a/src/ResourceManager/AzureBatch/Commands.Batch/Microsoft.Azure.Commands.Batch.dll-Help.xml +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Microsoft.Azure.Commands.Batch.dll-Help.xml @@ -5,7 +5,7 @@ Get-AzureBatchAccountKeys - Gets the specified key of the specified Azure Batch accounts under the current subscription. + Gets the specified key of the specified Batch accounts under the current subscription. @@ -30,7 +30,7 @@ Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -59,7 +59,7 @@ Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -137,7 +137,7 @@ - Azure Batch Cmdlets + RMAzure_Batch_Cmdlets @@ -146,7 +146,7 @@ Get-AzureBatchAccount - Gets an Azure Batch account under the current subscription. + Gets a Batch account under the current subscription. @@ -185,7 +185,7 @@ Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -207,7 +207,7 @@ Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -278,19 +278,18 @@ - Example 1: Get a Batch account by name + Example 1: Get a batch account by name - - PS C:\>Get-AzureBatchAccount -AccountName "cmdletexample" - AccountName Location ResourceGroupName Tags TaskTenantUrl - ----------- -------- ----------------- ---- ------------- - cmdletexample westus CmdletExampleRG https://cmdletexample.westus.batch.azure.com - + PS C:\>Get-AzureBatchAccount -AccountName "pfuller" +AccountName Location ResourceGroupName Tags TaskTenantUrl +----------- -------- ----------------- ---- ------------- +pfuller westus CmdletExampleRG https://pfuller.westus.batch.azure.com + - This command gets the Batch account named cmdletexample. + This command gets the batch account named pfuller. @@ -301,20 +300,19 @@ - Example 2: Gets the Batch accounts associated with a resource group + Example 2: Gets the batch accounts associated with a resource group - - PS C:\>Get-AzureBatchAccount -ResourceGroupName "CmdletExampleRG" - AccountName Location ResourceGroupName Tags TaskTenantUrl - ----------- -------- ----------------- ---- ------------- - cmdletexample westus CmdletExampleRG https://cmdletexample.westus.batch.azure.com - cmdletexample2 westus CmdletExampleRG https://cmdletexample2.westus.batch.azure.com - + PS C:\>Get-AzureBatchAccount -ResourceGroupName "CmdletExampleRG" +AccountName Location ResourceGroupName Tags TaskTenantUrl +----------- -------- ----------------- ---- ------------- +cmdletexample westus CmdletExampleRG https://cmdletexample.westus.batch.azure.com +cmdletexample2 westus CmdletExampleRG https://cmdletexample.westus.batch.azure.com + - This command gets the Batch accounts associated with the CmdletExampleRG resource group. + This command gets the batch accounts associated with the CmdletExampleRG resource group. @@ -339,124 +337,131 @@ - Azure Batch Cmdlets + RMAzure_Batch_Cmdlets - Get-AzureBatchJob + Get-AzureBatchComputeNode - Gets Azure Batch jobs under the specified Batch account or job schedule. + Gets Batch compute nodes from a pool. Get - AzureBatchJob + AzureBatchComputeNode - The Get-AzureBatchJob cmdlet gets the Azure Batch jobs under the Batch account specified by the BatchAccountContext parameter. You can use the Id parameter to get a single job, or you can use the Filter parameter to get the jobs that match an OData filter. If you supply a job schedule id or PSCloudJobSchedule instance, only the jobs under that job schedule will be returned. + The Get-AzureBatchComputeNode cmdlet gets Azure Batch compute nodes under a pool. Specify either the pool ID or pool object. Specify the Id parameter to get a single compute node. Specify the Filter parameter to get the compute nodes that match an OData filter. - Get-AzureBatchJob + Get-AzureBatchComputeNode Filter - Specifies the OData filter clause to use when querying for jobs. If you do not specify a filter, and if you do not specify a job schedule, then all jobs under the Batch account will be returned. If not filter is specified, but a job schedule is specified, then all jobs under that job schedule will be returned. + Specifies an OData filter clause. This cmdlet returns compute nodes that match the filter that this parameter specifies. If you do not specify a filter, this cmdlet returns all compute nodes for the pool. String MaxCount - Specifies the maximum number of jobs to return. If you specify a value of 0 or less, then no upper limit will be used. If you do not specify a value, a default value of 1000 will be used. + Specifies the maximum number of compute nodes to return. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. Int32 Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - - JobScheduleId + + PoolId - Specifies the id of the job schedule which contains the jobs. + Specifies the ID of the pool that contains the compute nodes. - String + String - Get-AzureBatchJob + Get-AzureBatchComputeNode + PoolId + + Specifies the ID of the pool that contains the compute nodes. + + String + + Id - Specifies the id of the job. Wildcards are not permitted. + Specifies the ID of the compute node that this cmdlet gets from the pool. You cannot specify wildcard characters. String Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - Get-AzureBatchJob + Get-AzureBatchComputeNode - JobSchedule + Pool - Specifies the PSCloudJobSchedule object representing the job schedule which contains the jobs. Use the Get-AzureBatchJobSchedule cmdlet to get a PSCloudJobSchedule object. + Specifies the pool, as a PSCloudPool object, that contains the compute nodes. To obtain a PSCloudPool object, use the Get-AzureBatchPool cmdlet. - PSCloudJobSchedule + PSCloudPool Filter - Specifies the OData filter clause to use when querying for jobs. If you do not specify a filter, and if not job schedule is specified, then all jobs under the Batch account will be returned. If not filter is specified, and if a job schedule is specified, then all jobs under that job schedule will be returned. + Specifies an OData filter clause. This cmdlet returns compute nodes that match the filter that this parameter specifies. If you do not specify a filter, this cmdlet returns all compute nodes for the pool. String MaxCount - Specifies the maximum number of jobs to return. If you specify a value of 0 or less, then no upper limit will be used. If you do not specify a value, a default value of 1000 will be used. + Specifies the maximum number of compute nodes to return. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. Int32 Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -466,7 +471,7 @@ BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -478,7 +483,7 @@ Filter - Specifies the OData filter clause to use when querying for jobs. If you do not specify a filter, and if not job schedule is specified, then all jobs under the Batch account will be returned. If not filter is specified, and if a job schedule is specified, then all jobs under that job schedule will be returned. + Specifies an OData filter clause. This cmdlet returns compute nodes that match the filter that this parameter specifies. If you do not specify a filter, this cmdlet returns all compute nodes for the pool. String @@ -487,62 +492,62 @@ none - - MaxCount + + Id - Specifies the maximum number of jobs to return. If you specify a value of 0 or less, then no upper limit will be used. If you do not specify a value, a default value of 1000 will be used. + Specifies the ID of the compute node that this cmdlet gets from the pool. You cannot specify wildcard characters. - Int32 + String - Int32 + String none - - Id + + MaxCount - Specifies the id of the job. Wildcards are not permitted. + Specifies the maximum number of compute nodes to return. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. - String + Int32 - String + Int32 none - - Profile + + Pool - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the pool, as a PSCloudPool object, that contains the compute nodes. To obtain a PSCloudPool object, use the Get-AzureBatchPool cmdlet. - AzureProfile + PSCloudPool - AzureProfile + PSCloudPool none - - JobSchedule + + PoolId - Specifies the PSCloudJobSchedule object representing the job schedule which contains the jobs. Use the Get-AzureBatchJobSchedule cmdlet to get a PSCloudJobSchedule object. + Specifies the ID of the pool that contains the compute nodes. - PSCloudJobSchedule + String - PSCloudJobSchedule + String none - - JobScheduleId + + Profile - Specifies the id of the job schedule which contains the jobs. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile none @@ -568,7 +573,7 @@ - PSCloudJob + PSComputeNode @@ -585,37 +590,30 @@ - Example 1: Get a Batch job by id + Example 1: Get a compute node by ID - - PS C:\>Get-AzureBatchJob -Id "Job01" -BatchContext $Context - - CommonEnvironmentSettings : - Constraints : Microsoft.Azure.Commands.Batch.Models.PSJobConstraints - CreationTime : 7/25/2015 9:12:07 PM - DisplayName : - ETag : 0x8D29535B2941439 - ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSJobExecutionInformation - Id : Job01 - JobManagerTask : - JobPreparationTask : - JobReleaseTask : - LastModified : 7/25/2015 9:12:07 PM - Metadata : - PoolInformation : Microsoft.Azure.Commands.Batch.Models.PSPoolInformation - PreviousState : - PreviousStateTransitionTime : - Priority : 0 - State : Active - StateTransitionTime : 7/25/2015 9:12:07 PM - Statistics : - Url : https://cmdletexample.westus.batch.azure.com/jobs/Job01 - + PS C:\>Get-AzureBatchComputeNode -PoolId "Pool06" -Id "tvm-2316545714_1-20150725t213220z" -BatchContext $Context +Id : tvm-2316545714_1-20150725t213220z +Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool/nodes/tvm-2316545714_1-20150725t213220z +State : Idle +StateTransitionTime : 7/25/2015 9:36:53 PM +LastBootTime : 7/25/2015 9:36:53 PM +AllocationTime : 7/25/2015 9:32:20 PM +IPAddress : 10.14.121.1 +AffinityId : TVM:tvm-2316545714_1-20150725t213220z +VirtualMachineSize : small +TotalTasksRun : 1 +StartTaskInformation : +RecentTasks : {} +StartTask : +CertificateReferences : +Errors : + - This command gets the job with id Job01. + This command gets the compute node that has the ID tvm-2316545714_1-20150725t213220z from the pool that has the ID Pool06. Use the Get-AzureBatchAccountKeys cmdlet to assign a context to the $Context variable. @@ -626,37 +624,46 @@ - Example 2: Get all active jobs under a specified job schedule + Example 2: Get all idle compute nodes from a pool - - PS C:\>Get-AzureBatchJob -JobScheduleId "MyJobSchedule" -Filter "state eq 'active'" -BatchContext $Context + PS C:\>Get-AzureBatchComputeNode -PoolId "Pool06" -Filter "state eq 'idle'" -BatchContext $Context +Id : tvm-2316545714_1-20150725t213220z +Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool/nodes/tvm-2316545714_1-20150725t213220z +State : Idle +StateTransitionTime : 7/25/2015 9:36:53 PM +LastBootTime : 7/25/2015 9:36:53 PM +AllocationTime : 7/25/2015 9:32:20 PM +IPAddress : 10.14.121.1 +AffinityId : TVM:tvm-2316545714_1-20150725t213220z +VirtualMachineSize : small +TotalTasksRun : 1 +StartTaskInformation : +RecentTasks : {} +StartTask : +CertificateReferences : +Errors : - CommonEnvironmentSettings : - Constraints : Microsoft.Azure.Commands.Batch.Models.PSJobConstraints - CreationTime : 7/25/2015 9:15:44 PM - DisplayName : - ETag : 0x8D2953633DD13E1 - ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSJobExecutionInformation - Id : MyJobSchedule:job-1 - JobManagerTask : - JobPreparationTask : - JobReleaseTask : - LastModified : 7/25/2015 9:15:44 PM - Metadata : - PoolInformation : Microsoft.Azure.Commands.Batch.Models.PSPoolInformation - PreviousState : - PreviousStateTransitionTime : - Priority : 0 - State : Active - StateTransitionTime : 7/25/2015 9:15:44 PM - Statistics : - Url : https://cmdletexample.westus.batch.azure.com/jobs/MyJobSchedule:job-1 - +Id : tvm-2316545714_2-20150726t172920z +Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool/nodes/tvm-2316545714_2-20150726t172920z +State : Idle +StateTransitionTime : 7/26/2015 5:33:58 PM +LastBootTime : 7/26/2015 5:33:58 PM +AllocationTime : 7/26/2015 5:29:20 PM +IPAddress : 10.14.121.38 +AffinityId : TVM:tvm-2316545714_2-20150726t172920z +VirtualMachineSize : small +TotalTasksRun : 0 +StartTaskInformation : +RecentTasks : +StartTask : +CertificateReferences : +Errors : + - This command gets the active jobs under the job schedule with id MyJobSchedule. + This command gets all idle compute nodes that are contained in the pool that has the ID Pool06. The command specifies the idle state by using the Filter parameter. @@ -667,36 +674,46 @@ - Example 3: Gets all jobs under a job schedule using pipelining + Example 3: Get all compute nodes in a specified pool - - PS C:\>Get-AzureBatchJobSchedule -Id "MyJobSchedule" -BatchContext $Context | Get-AzureBatchJob -BatchContext $Context - CommonEnvironmentSettings : - Constraints : Microsoft.Azure.Commands.Batch.Models.PSJobConstraints - CreationTime : 7/25/2015 9:15:44 PM - DisplayName : - ETag : 0x8D2953633DD13E1 - ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSJobExecutionInformation - Id : MyJobSchedule:job-1 - JobManagerTask : - JobPreparationTask : - JobReleaseTask : - LastModified : 7/25/2015 9:15:44 PM - Metadata : - PoolInformation : Microsoft.Azure.Commands.Batch.Models.PSPoolInformation - PreviousState : - PreviousStateTransitionTime : - Priority : 0 - State : Active - StateTransitionTime : 7/25/2015 9:15:44 PM - Statistics : - Url : https://cmdletexample.westus.batch.azure.com/jobs/MyJobSchedule:job-1 - + PS C:\>Get-AzureBatchPool -Id "Pool07" -BatchContext $Context | Get-AzureBatchComputeNode -BatchContext $Context +Id : tvm-2316545714_1-20150725t213220z +Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool/nodes/tvm-2316545714_1-20150725t213220z +State : Idle +StateTransitionTime : 7/25/2015 9:36:53 PM +LastBootTime : 7/25/2015 9:36:53 PM +AllocationTime : 7/25/2015 9:32:20 PM +IPAddress : 10.14.121.1 +AffinityId : TVM:tvm-2316545714_1-20150725t213220z +VirtualMachineSize : small +TotalTasksRun : 1 +StartTaskInformation : +RecentTasks : {} +StartTask : +CertificateReferences : +Errors : + +Id : tvm-2316545714_2-20150726t172920z +Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool/nodes/tvm-2316545714_2-20150726t172920z +State : Idle +StateTransitionTime : 7/26/2015 5:33:58 PM +LastBootTime : 7/26/2015 5:33:58 PM +AllocationTime : 7/26/2015 5:29:20 PM +IPAddress : 10.14.121.38 +AffinityId : TVM:tvm-2316545714_2-20150726t172920z +VirtualMachineSize : small +TotalTasksRun : 0 +StartTaskInformation : +RecentTasks : +StartTask : +CertificateReferences : +Errors : + - This command gets all jobs under the job schedule with id MyJobSchedule. + This command gets the pool that has the ID Pool07 by using the Get-AzureBatchPool cmdlet. The command passes that pool to the current cmdlet by using the pipeline operator. That cmdlet gets all compute nodes from that pool. @@ -709,83 +726,91 @@ - Remove-AzureBatchJob + Get-AzureBatchNodeFile - Get-AzureBatchJobSchedule + Get-AzureBatchNodeFileContent + + + + Get-AzureBatchPool + + + + RMAzure_Batch_Cmdlets - Get-AzureBatchPool + Get-AzureBatchJobSchedule - Gets Azure Batch pools under the specified Batch account. + Gets Batch job schedules. Get - AzureBatchPool + AzureBatchJobSchedule - The Get-AzureBatchPool cmdlet gets the Azure Batch pools under the Batch account specified with the BatchContext parameter. You can use the Id parameter to get a single pool, or you can use the Filter parameter to get the pools that match an OData filter. + The Get-AzureBatchJobSchedule cmdlet gets Azure Batch job schedules for the Batch account specified by the BatchContext parameter. Specify an ID to get a single job schedule. Specify the Filter parameter to get the job schedules that match an OData filter. - Get-AzureBatchPool + Get-AzureBatchJobSchedule Filter - Specifies the OData filter clause to use when querying for pools. If you do not specify a filter, all pools under the Batch account specified with the BatchContext parameter are returned. + Specifies an OData filter clause. This cmdlet returns job schedules that match the filter that this parameter specifies. If you do not specify a filter, this cmdlet returns all job schedules for the Batch context. String MaxCount - Specifies the maximum number of pools to return. If you specify a value of 0 or less, no upper limit is used. If you do not specify a value, a default value of 1000 is used. + Specifies the maximum number of job schedules to return. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. Int32 Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - Get-AzureBatchPool + Get-AzureBatchJobSchedule Id - Specifies the id of the pool to retrieve. Wildcards are not permitted. + Specifies the ID of the job schedule that this cmdlet gets. You cannot specify wildcard characters. String Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -795,7 +820,7 @@ BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -807,7 +832,7 @@ Filter - Specifies the OData filter clause to use when querying for pools. If you do not specify a filter, all pools under the Batch account specified with the BatchContext parameter are returned. + Specifies an OData filter clause. This cmdlet returns job schedules that match the filter that this parameter specifies. If you do not specify a filter, this cmdlet returns all job schedules for the Batch context. String @@ -816,26 +841,26 @@ none - - MaxCount + + Id - Specifies the maximum number of pools to return. If you specify a value of 0 or less, no upper limit is used. If you do not specify a value, a default value of 1000 is used. + Specifies the ID of the job schedule that this cmdlet gets. You cannot specify wildcard characters. - Int32 + String - Int32 + String none - - Id + + MaxCount - Specifies the id of the pool to retrieve. Wildcards are not permitted. + Specifies the maximum number of job schedules to return. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. - String + Int32 - String + Int32 none @@ -843,7 +868,7 @@ Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -873,7 +898,7 @@ - PSCloudPool + PSCloudJobSchedule @@ -890,45 +915,30 @@ - Example 1: Get a pool by id + Example 1: Get a job schedule by specifying an ID - - PS C:\>Get-AzureBatchPool -Id "MyPool" -BatchContext $Context - - AllocationState : Resizing - AllocationStateTransitionTime : 7/25/2015 9:30:28 PM - AutoScaleEnabled : False - AutoScaleFormula : - AutoScaleRun : - CertificateReferences : - CreationTime : 7/25/2015 9:30:28 PM - CurrentDedicated : 0 - CurrentOSVersion : * - DisplayName : - ETag : 0x8D29538429CF04C - Id : MyPool - InterComputeNodeCommunicationEnabled : False - LastModified : 7/25/2015 9:30:28 PM - MaxTasksPerComputeNode : 1 - Metadata : - OSFamily : 4 - ResizeError : - ResizeTimeout : 00:05:00 - TaskSchedulingPolicy : Microsoft.Azure.Commands.Batch.Models.PSTaskSchedulingPolicy - StartTask : - State : Active - StateTransitionTime : 7/25/2015 9:30:28 PM - Statistics : - TargetDedicated : 1 - TargetOSVersion : * - Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool - VirtualMachineSize : small - + PS C:\>Get-AzureBatchJobSchedule -Id "JobSchedule23" -BatchContext $Context +CreationTime : 7/25/2015 9:15:43 PM +DisplayName : +ETag : 0x8D2953633427FCA +ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSJobScheduleExecutionInformation +Id : MyJobSchedule +JobSpecification : Microsoft.Azure.Commands.Batch.Models.PSJobSpecification +LastModified : 7/25/2015 9:15:43 PM +Metadata : +PreviousState : Invalid +PreviousStateTransitionTime : +Schedule : +State : Active +StateTransitionTime : 7/25/2015 9:15:43 PM +Statistics : +Url : https://cmdletexample.westus.batch.azure.com/jobschedules/JobSchedule23 + - This command gets the pool with id MyPool. + This command gets the job schedule that has the ID JobSchedule23. @@ -939,44 +949,46 @@ - Example 2: Get all pools using an OData filter + Example 2: Get job schedules by using a filter - - PS C:\>Get-AzureBatchPool -Filter "startswith(id,'My')" -BatchContext $Context - AllocationState : Resizing - AllocationStateTransitionTime : 7/25/2015 9:30:28 PM - AutoScaleEnabled : False - AutoScaleFormula : - AutoScaleRun : - CertificateReferences : - CreationTime : 7/25/2015 9:30:28 PM - CurrentDedicated : 0 - CurrentOSVersion : * - DisplayName : - ETag : 0x8D29538429CF04C - Id : MyPool - InterComputeNodeCommunicationEnabled : False - LastModified : 7/25/2015 9:30:28 PM - MaxTasksPerComputeNode : 1 - Metadata : - OSFamily : 4 - ResizeError : - ResizeTimeout : 00:05:00 - TaskSchedulingPolicy : Microsoft.Azure.Commands.Batch.Models.PSTaskSchedulingPolicy - StartTask : - State : Active - StateTransitionTime : 7/25/2015 9:30:28 PM - Statistics : - TargetDedicated : 1 - TargetOSVersion : * - Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool - VirtualMachineSize : small - + PS C:\>Get-AzureBatchJobSchedule -Filter "startswith(id,'Job')" -BatchContext $Context +CreationTime : 7/25/2015 9:15:43 PM +DisplayName : +ETag : 0x8D2953633427FCA +ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSJobScheduleExecutionInformation +Id : MyJobSchedule +JobSpecification : Microsoft.Azure.Commands.Batch.Models.PSJobSpecification +LastModified : 7/25/2015 9:15:43 PM +Metadata : +PreviousState : Invalid +PreviousStateTransitionTime : +Schedule : +State : Active +StateTransitionTime : 7/25/2015 9:15:43 PM +Statistics : +Url : https://cmdletexample.westus.batch.azure.com/jobschedules/JobSchedule23 + +CreationTime : 7/26/2015 5:39:33 PM +DisplayName : +ETag : 0x8D295E12B1084B4 +ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSJobScheduleExecutionInformation +Id : MyJobSchedule2 +JobSpecification : Microsoft.Azure.Commands.Batch.Models.PSJobSpecification +LastModified : 7/26/2015 5:39:33 PM +Metadata : +PreviousState : Invalid +PreviousStateTransitionTime : +Schedule : +State : Active +StateTransitionTime : 7/26/2015 5:39:33 PM +Statistics : +Url : https://cmdletexample.westus.batch.azure.com/jobschedules/JobSchedule17 + - This command gets the pools whose ids start with My by using the Filter parameter. + This command gets all job schedules that have IDs that start with Job by specifying the Filter parameter. @@ -989,180 +1001,142 @@ - New-AzureBatchPool + New-AzureBatchJobSchedule - Remove-AzureBatchPool + Remove-AzureBatchJobSchedule - Get-AzureBatchAccountKeys + RMAzure_Batch_Cmdlets - Get-AzureBatchRemoteDesktopProtocolFile + Get-AzureBatchJob - Gets a Remote Desktop Protocol file from the specified compute node. + Gets Batch jobs under the specified Batch account or job schedule. Get - AzureBatchRemoteDesktopProtocolFile + AzureBatchJob - The Get-AzureBatchRemoteDesktopProtocolFile cmdlet gets a Remote Desktop Protocol file from the specified compute node and saves it to the specified file location or to the user supplied stream. + The Get-AzureBatchJob cmdlet gets the Azure Batch jobs under the Batch account specified by the BatchAccountContext parameter. You can use the Id parameter to get a single job, or you can use the Filter parameter to get the jobs that match an OData filter. If you supply a job schedule ID or PSCloudJobSchedule instance, only the jobs under that job schedule will be returned. - Get-AzureBatchRemoteDesktopProtocolFile - - PoolId + Get-AzureBatchJob + + Filter - Specifies the id of the pool containing the compute node. + Specifies the OData filter clause to use when querying for jobs. If you do not specify a filter, and if you do not specify a job schedule, then all jobs under the Batch account will be returned. If not filter is specified, but a job schedule is specified, then all jobs under that job schedule will be returned. - String + String - - ComputeNodeId + + JobScheduleId - Specifies the id of the compute node to which the Remote Desktop Protocol file will point. + Specifies the ID of the job schedule which contains the jobs. String + + MaxCount + + Specifies the maximum number of jobs to return. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. + + Int32 + Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - - DestinationPath - - Specifies the file path where the Remote Desktop Protocol file is saved. - - String - - Get-AzureBatchRemoteDesktopProtocolFile - - PoolId - - Specifies the id of the pool containing the compute node. - - String - - - ComputeNodeId + Get-AzureBatchJob + + Id - Specifies the id of the compute node to which the Remote Desktop Protocol file will point. + Specifies the ID of the job. You cannot specify wildcard characters. String Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - - DestinationStream - - Specifies the stream into which the Remote Desktop Protocol file data is saved. This stream will not be closed or rewound by this call. - - Stream - - Get-AzureBatchRemoteDesktopProtocolFile + Get-AzureBatchJob - ComputeNode + JobSchedule - Specifies the PSComputeNode object representing the compute node in which the Remote Desktop Protocol file will point. You can use the Get-AzureBatchComputeNode cmdlet to get a PSComputeNode object. + Specifies the PSCloudJobSchedule object representing the job schedule which contains the jobs. Use the Get-AzureBatchJobSchedule cmdlet to get a PSCloudJobSchedule object. - PSComputeNode + PSCloudJobSchedule - Profile - - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. - - AzureProfile - - - BatchContext - - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. - - BatchAccountContext - - - DestinationPath + Filter - Specifies the file path where the Remote Desktop Protocol file is saved. + Specifies the OData filter clause to use when querying for jobs. If you do not specify a filter, and if you do not specify a job schedule, then all jobs under the Batch account will be returned. If not filter is specified, but a job schedule is specified, then all jobs under that job schedule will be returned. - String + String - - - Get-AzureBatchRemoteDesktopProtocolFile - - ComputeNode + + MaxCount - Specifies the PSComputeNode object representing the compute node in which the Remote Desktop Protocol file will point. You can use the Get-AzureBatchComputeNode cmdlet to get a PSComputeNode object. + Specifies the maximum number of jobs to return. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. - PSComputeNode + Int32 Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - - DestinationStream - - Specifies the stream into which the Remote Desktop Protocol file data is saved. This stream will not be closed or rewound by this call. - - Stream - - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -1171,74 +1145,74 @@ none - - DestinationPath + + Filter - Specifies the file path where the Remote Desktop Protocol file is saved. + Specifies the OData filter clause to use when querying for jobs. If you do not specify a filter, and if you do not specify a job schedule, then all jobs under the Batch account will be returned. If not filter is specified, but a job schedule is specified, then all jobs under that job schedule will be returned. - String + String String none - - DestinationStream + + Id - Specifies the stream into which the Remote Desktop Protocol file data is saved. This stream will not be closed or rewound by this call. + Specifies the ID of the job. You cannot specify wildcard characters. - Stream + String - Stream + String none - - PoolId + + JobSchedule - Specifies the id of the pool containing the compute node. + Specifies the PSCloudJobSchedule object representing the job schedule which contains the jobs. Use the Get-AzureBatchJobSchedule cmdlet to get a PSCloudJobSchedule object. - String + PSCloudJobSchedule - String + PSCloudJobSchedule none - - Profile + + JobScheduleId - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the ID of the job schedule which contains the jobs. - AzureProfile + String - AzureProfile + String none - - ComputeNode + + MaxCount - Specifies the PSComputeNode object representing the compute node in which the Remote Desktop Protocol file will point. You can use the Get-AzureBatchComputeNode cmdlet to get a PSComputeNode object. + Specifies the maximum number of jobs to return. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. - PSComputeNode + Int32 - PSComputeNode + Int32 none - - ComputeNodeId + + Profile - Specifies the id of the compute node to which the Remote Desktop Protocol file will point. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile none @@ -1264,8 +1238,7 @@ - - + PSCloudJob @@ -1282,16 +1255,35 @@ - Example 1: Get a Remote Desktop Protocol file from a specified compute node and save it to the specified path + Example 1: Get a Batch job by id - - PS C:\>Get-AzureBatchRemoteDesktopProtocolFile -PoolId "MyPool" -ComputeNodeId "MyComputeNode" -DestinationPath "C:\PowerShell\MyComputeNode.rdp" -BatchContext $Context - + PS C:\>Get-AzureBatchJob -Id "Job01" -BatchContext $Context +CommonEnvironmentSettings : +Constraints : Microsoft.Azure.Commands.Batch.Models.PSJobConstraints +CreationTime : 7/25/2015 9:12:07 PM +DisplayName : +ETag : 0x8D29535B2941439 +ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSJobExecutionInformation +Id : Job01 +JobManagerTask : +JobPreparationTask : +JobReleaseTask : +LastModified : 7/25/2015 9:12:07 PM +Metadata : +PoolInformation : Microsoft.Azure.Commands.Batch.Models.PSPoolInformation +PreviousState : +PreviousStateTransitionTime : +Priority : 0 +State : Active +StateTransitionTime : 7/25/2015 9:12:07 PM +Statistics : +Url : https://cmdletexample.westus.batch.azure.com/jobs/Job01 + - This command gets a Remote Desktop Protocol file from the compute node with id MyComputeNode in the pool with id MyPool. The file is saved to a file named C:\PowerShell\MyComputeNode.rdp. + This command gets the job with ID Job01. @@ -1302,16 +1294,35 @@ - Example 2: Get a Remote Desktop Protocol file from a specified compute node and save it to the specified path + Example 2: Get all active jobs under a specified job schedule - - PS C:\>Get-AzureBatchComputeNode -PoolId "MyPool" -Id "MyComputeNode02" -BatchContext $Context | Get-AzureBatchRemoteDesktopProtocolFile -DestinationPath "C:\PowerShell\MyComputeNode02.rdp" -BatchContext $Context - + PS C:\>Get-AzureBatchJob -JobScheduleId "MyJobSchedule" -Filter "state eq 'active'" -BatchContext $Context +CommonEnvironmentSettings : +Constraints : Microsoft.Azure.Commands.Batch.Models.PSJobConstraints +CreationTime : 7/25/2015 9:15:44 PM +DisplayName : +ETag : 0x8D2953633DD13E1 +ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSJobExecutionInformation +Id : MyJobSchedule:job-1 +JobManagerTask : +JobPreparationTask : +JobReleaseTask : +LastModified : 7/25/2015 9:15:44 PM +Metadata : +PoolInformation : Microsoft.Azure.Commands.Batch.Models.PSPoolInformation +PreviousState : +PreviousStateTransitionTime : +Priority : 0 +State : Active +StateTransitionTime : 7/25/2015 9:15:44 PM +Statistics : +Url : https://cmdletexample.westus.batch.azure.com/jobs/MyJobSchedule:job-1 + - This command gets a Remote Desktop Protocol file from the compute node with id MyComputeNode02 in the pool with id MyPool. The file is saved to a file named C:\PowerShell\MyComputeNode02.rdp. + This command gets the active jobs under the job schedule with ID MyJobSchedule. @@ -1322,16 +1333,35 @@ - Example 3: Get a Remote Desktop Protocol file from a specified compute node and save it to the supplied stream + Example 3: Gets all jobs under a job schedule using pipelining - - PS C:\>$Stream = New-Object System.IO.MemoryStream; Get-AzureBatchRemoteDesktopProtocolFile "MyPool" -ComputeNodeId "MyComputeNode03" -DestinationStream $Stream -BatchContext $Context - + PS C:\>Get-AzureBatchJobSchedule -Id "MyJobSchedule" -BatchContext $Context | Get-AzureBatchJob -BatchContext $Context +CommonEnvironmentSettings : +Constraints : Microsoft.Azure.Commands.Batch.Models.PSJobConstraints +CreationTime : 7/25/2015 9:15:44 PM +DisplayName : +ETag : 0x8D2953633DD13E1 +ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSJobExecutionInformation +Id : MyJobSchedule:job-1 +JobManagerTask : +JobPreparationTask : +JobReleaseTask : +LastModified : 7/25/2015 9:15:44 PM +Metadata : +PoolInformation : Microsoft.Azure.Commands.Batch.Models.PSPoolInformation +PreviousState : +PreviousStateTransitionTime : +Priority : 0 +State : Active +StateTransitionTime : 7/25/2015 9:15:44 PM +Statistics : +Url : https://cmdletexample.westus.batch.azure.com/jobs/MyJobSchedule:job-1 + - This command gets a Remote Desktop Protocol file from the compute node with id MyComputeNode03 in the pool with id MyPool. The file contents are then copied to the user supplied Stream. + This command gets all jobs under the job schedule with ID MyJobSchedule. @@ -1348,11 +1378,15 @@ - Get-AzureBatchComputeNode + Get-AzureBatchJobSchedule + + + + Remove-AzureBatchJob - Azure Batch Cmdlets + RMAzure_Batch_Cmdlets @@ -1361,7 +1395,7 @@ Get-AzureBatchNodeFileContent - Downloads the specified Azure Batch node file. + Gets a Batch node file. @@ -1371,187 +1405,187 @@ - The Get-AzureBatchNodeFileContent cmdlet gets the specified Azure Batch node file and saves it to the specified file location or to the user supplied stream. + The Get-AzureBatchNodeFileContent cmdlet gets an Azure Batch node file and saves it as a file or to a stream. Get-AzureBatchNodeFileContent - - PoolId + + Name - Specifies the id of the pool containing the compute node. + Specifies the name of the node file that this cmdlet retrieves. You cannot specify wildcard characters. String - - ComputeNodeId + + JobId - Specifies the id of the compute node containing the node file. + Specifies the ID of the job that contains the target task. String - - Name + + Profile - Specifies the name of the node file to download. You cannot use wildcards. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - Profile + TaskId - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the ID of the task. - AzureProfile + String BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext DestinationPath - Specifies the file path where the node file will be downloaded. + Specifies the file path where this cmdlet saves the node file. String Get-AzureBatchNodeFileContent - - PoolId - - Specifies the id of the pool containing the compute node. - - String - - - ComputeNodeId - - Specifies the id of the compute node containing the node file. - - String - - - Name - - Specifies the name of the node file to download. You cannot use wildcards. - - String - Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext DestinationStream - Specifies the stream into which the node file contents will be written. This stream will not be closed or rewound by this call. + Specifies the stream into which this cmdlet writes the node file contents. This cmdlet does not close or rewind this stream. Stream - - - Get-AzureBatchNodeFileContent - + JobId - Specifies the id of the job containing the specified target task. + Specifies the ID of the job that contains the target task. String - + + Name + + Specifies the name of the node file that this cmdlet retrieves. You cannot specify wildcard characters. + + String + + TaskId - Specifies the id of the task. + Specifies the ID of the task. String - + + + Get-AzureBatchNodeFileContent + + PoolId + + Specifies the ID of the pool that contains the compute node that contains the node file that this cmdlet gets. + + String + + + ComputeNodeId + + Specifies the ID of the compute node that contains the node file that this cmdlet returns. + + String + + Name - Specifies the name of the node file to download. You cannot specify wildcards. + Specifies the name of the node file that this cmdlet retrieves. You cannot specify wildcard characters. String Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - DestinationPath + DestinationStream - Specifies the file path where the node file will be saved. + Specifies the stream into which this cmdlet writes the node file contents. This cmdlet does not close or rewind this stream. - String + Stream Get-AzureBatchNodeFileContent - - JobId + + PoolId - Specifies the id of the job containing the specified target task. + Specifies the ID of the pool that contains the compute node that contains the node file that this cmdlet gets. - String + String - - TaskId + + ComputeNodeId - Specifies the id of the task. + Specifies the ID of the compute node that contains the node file that this cmdlet returns. String - + Name - Specifies the name of the node file to download. You cannot specify wildcards. + Specifies the name of the node file that this cmdlet retrieves. You cannot specify wildcard characters. String Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - DestinationStream + DestinationPath - Specifies the Stream into which the node file contents will be written. This stream will not be closed or rewound by this call. + Specifies the file path where this cmdlet saves the node file. - Stream + String @@ -1559,30 +1593,30 @@ InputObject - Specifies the PSNodeFile object representing the file to download. You can use the Get-AzureBatchNodeFile cmdlet to get a PSNodeFile object. + Specifies the file that this cmdlet gets, as a PSNodeFile object. To obtain a node file object, use the Get-AzureBatchNodeFile cmdlet. PSNodeFile Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - DestinationPath + DestinationStream - Specifies the file path where the node file will be saved. + Specifies the stream into which this cmdlet writes the node file contents. This cmdlet does not close or rewind this stream. - String + Stream @@ -1590,30 +1624,30 @@ InputObject - Specifies the PSNodeFile object representing the file to download. You can use the Get-AzureBatchNodeFile cmdlet to get a PSNodeFile object. + Specifies the file that this cmdlet gets, as a PSNodeFile object. To obtain a node file object, use the Get-AzureBatchNodeFile cmdlet. PSNodeFile Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - DestinationStream + DestinationPath - Specifies the Stream into which the node file contents will be written. This stream will not be closed or rewound by this call. + Specifies the file path where this cmdlet saves the node file. - Stream + String @@ -1621,7 +1655,7 @@ BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -1630,10 +1664,10 @@ none - + ComputeNodeId - Specifies the id of the compute node containing the node file. + Specifies the ID of the compute node that contains the node file that this cmdlet returns. String @@ -1645,7 +1679,7 @@ DestinationPath - Specifies the file path where the node file will be saved. + Specifies the file path where this cmdlet saves the node file. String @@ -1657,7 +1691,7 @@ DestinationStream - Specifies the Stream into which the node file contents will be written. This stream will not be closed or rewound by this call. + Specifies the stream into which this cmdlet writes the node file contents. This cmdlet does not close or rewind this stream. Stream @@ -1666,10 +1700,10 @@ none - + InputObject - Specifies the PSNodeFile object representing the file to download. You can use the Get-AzureBatchNodeFile cmdlet to get a PSNodeFile object. + Specifies the file that this cmdlet gets, as a PSNodeFile object. To obtain a node file object, use the Get-AzureBatchNodeFile cmdlet. PSNodeFile @@ -1681,7 +1715,7 @@ JobId - Specifies the id of the job containing the specified target task. + Specifies the ID of the job that contains the target task. String @@ -1690,10 +1724,10 @@ none - + Name - Specifies the name of the node file to download. You cannot specify wildcards. + Specifies the name of the node file that this cmdlet retrieves. You cannot specify wildcard characters. String @@ -1702,26 +1736,26 @@ none - - Profile + + PoolId - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the ID of the pool that contains the compute node that contains the node file that this cmdlet gets. - AzureProfile + String - AzureProfile + String none - - PoolId + + Profile - Specifies the id of the pool containing the compute node. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile none @@ -1729,7 +1763,7 @@ TaskId - Specifies the id of the task. + Specifies the ID of the task. String @@ -1777,16 +1811,15 @@ - Example 1: Get a Batch node file associated with a task and save it to a specified file path + Example 1: Get a Batch node file associated with a task and save the file - - PS C:\>Get-AzureBatchNodeFileContent -JobId "Job01" -TaskId "MyTask01" -Name "StdOut.txt" -DestinationPath "E:\PowerShell\StdOut.txt" -BatchContext $Context - + PS C:\>Get-AzureBatchNodeFileContent -JobId "Job01" -TaskId "Task01" -Name "StdOut.txt" -DestinationPath "E:\PowerShell\StdOut.txt" -BatchContext $Context + - This command gets the node file named StdOut.txt and saves it to the E:\PowerShell\StdOut.txt file path on the local computer. The StdOut.txt node file is associated with task MyTask01 under job Job01. + This command gets the node file that is named StdOut.txt, and saves it to the E:\PowerShell\StdOut.txt file path on the local computer. The StdOut.txt node file is associated with task that has the ID Task01 for the job that has the ID Job01. Use the Get-AzureBatchAccountKeys cmdlet to assign a context to the $Context variable. @@ -1797,16 +1830,15 @@ - Example 2: Get a Batch node file and save it to a specified file path using pipelining + Example 2: Get a Batch node file and save it to a specified file path using the pipeline - - PS C:\>Get-AzureBatchNodeFile -JobId "Job02" -TaskId "MyTask02" -Name "StdErr.txt" -BatchContext $Context | Get-AzureBatchNodeFileContent -DestinationPath "E:\PowerShell\StdOut.txt" -BatchContext $Context - + PS C:\>Get-AzureBatchNodeFile -JobId "Job02" -TaskId "Task02" -Name "StdErr.txt" -BatchContext $Context | Get-AzureBatchNodeFileContent -DestinationPath "E:\PowerShell\StdOut.txt" -BatchContext $Context + - This command gets the node file named StdErr.txt and saves it to the E:\PowerShell\StdOut.txt file path on the local computer. The StdOut.txt node file is associated with task MyTask02 under job Job02. + This command gets the node file that is named StdErr.txt by using the Get-AzureBatchNodeFile cmdlet. The command passes that file to the current cmdlet by using the pipeline operator. The current cmdlet saves that file to the E:\PowerShell\StdOut.txt file path on the local computer. The StdOut.txt node file is associated with the task that has the ID Task02 for the job that has the ID Job02. @@ -1817,16 +1849,17 @@ - Example 3: Get a Batch node file associated with a task and save it to a specified stream + Example 3: Get a Batch node file associated with a task and direct it to a stream - - PS C:\>$Stream = New-Object System.IO.MemoryStream; Get-AzureBatchNodeFileContent -JobId "Job03" -TaskId "MyTask11" -Name "stdout.txt" -DestinationStream $Stream -BatchContext $Context - + PS C:\>$Stream = New-Object -TypeName "System.IO.MemoryStream" +PS C:\> Get-AzureBatchNodeFileContent -JobId "Job03" -TaskId "Task11" -Name "stdout.txt" -DestinationStream $Stream -BatchContext $Context + - This command gets the node file named StdOut.txt from the task with id "MyTask11" under job Job03. The file contents are saved to the user supplied stream. + The first command creates a stream by using the New-Object cmdlet, and then stores it in the $Stream variable. + The second command gets the node file that is named StdOut.txt from the task that has the ID Task11 for the job that has the ID Job03. The command directs file contents to the stream in $Stream. @@ -1837,16 +1870,15 @@ - Example 4: Get a node file from a compute node and save it to a specified path + Example 4: Get a node file from a compute node and save it - - PS C:\>Get-AzureBatchNodeFileContent -PoolId "MyPool" -ComputeNodeId "ComputeNode01" -Name "Startup\StdOut.txt" -DestinationPath "E:\PowerShell\StdOut.txt" -BatchContext $Context - + PS C:\>Get-AzureBatchNodeFileContent -PoolId "Pool01" -ComputeNodeId "ComputeNode01" -Name "Startup\StdOut.txt" -DestinationPath "E:\PowerShell\StdOut.txt" -BatchContext $Context + - This command gets the node file Startup\StdOut.txt from the compute node with id ComputeNode01 in the pool with id MyPool. The file is saved to the E:\PowerShell\StdOut.txt file path on the local machine. + This command gets the node file Startup\StdOut.txt from the compute node that has the ID ComputeNode01 in the pool that has the ID Pool01. The command saves the file to the E:\PowerShell\StdOut.txt file path on the local computer. @@ -1857,16 +1889,15 @@ - Example 5: Get a node file from a compute node and save it to a specified path using pipelining + Example 5: Get a node file from a compute node and save it by using the pipeline - - PS C:\>Get-AzureBatchNodeFile -PoolId "MyPool" -ComputeNodeId "ComputeNode01" -Name "Startup\StdOut.txt" -BatchContext $Context | Get-AzureBatchNodeFileContent -DestinationPath "E:\PowerShell\StdOut.txt" -BatchContext $Context - + PS C:\>Get-AzureBatchNodeFile -PoolId "Pool01" -ComputeNodeId "ComputeNode01" -Name "Startup\StdOut.txt" -BatchContext $Context | Get-AzureBatchNodeFileContent -DestinationPath "E:\PowerShell\StdOut.txt" -BatchContext $Context + - This command gets the node file Startup\StdOut.txt from the compute node with id ComputeNode01 in the pool with id MyPool. The file is saved to the E:\PowerShell\StdOut.txt file path on the local machine. + This command gets the node file Startup\StdOut.txt by using Get-AzureBatchNodeFile from the compute node that has the ID ComputeNode01. The compute node is in the pool that has the ID Pool01. The command passes that node file to the current cmdlet. That cmdlet saves the file to the E:\PowerShell\StdOut.txt file path on the local computer. @@ -1877,16 +1908,17 @@ - Example 6: Get a node file from a compute node and save it to a specified stream + Example 6: Get a node file from a compute node and direct it to a stream - - PS C:\>$Stream = New-Object System.IO.MemoryStream; Get-AzureBatchNodeFileContent -PoolId "MyPool" -ComputeNodeId "ComputeNode01" -Name "startup\stdout.txt" -DestinationStream $Stream -BatchContext $Context - + PS C:\>$Stream = New-Object -TypeName "System.IO.MemoryStream" +PS C:\> Get-AzureBatchNodeFileContent -PoolId "Pool01" -ComputeNodeId "ComputeNode01" -Name "startup\stdout.txt" -DestinationStream $Stream -BatchContext $Context + - This command gets the node file Startup\StdOut.txt from the compute node with id ComputeNode01 in the pool with id MyPool. The file contents are saved to the user supplied stream. + The first command creates a stream by using the New-Object cmdlet, and then stores it in the $Stream variable. + The second command gets the node file that is named StdOut.txt from the compute node that has the ID ComputeNode01 in the pool that has the ID Pool01. The command directs file contents to the stream in $Stream. @@ -1899,15 +1931,15 @@ - Get-AzureBatchNodeFile + Get-AzureBatchAccountKeys - Get-AzureBatchAccountKeys + Get-AzureBatchNodeFile - Azure Batch Cmdlets + RMAzure_Batch_Cmdlets @@ -1916,7 +1948,7 @@ Get-AzureBatchNodeFile - Gets the properties of the Azure Batch node files of the specified task or compute node. + Gets the properties of Batch node files. @@ -1926,271 +1958,271 @@ - The Get-AzureBatchNodeFile cmdlet gets the properties of the Azure Batch node files of the specified task or compute node. + The Get-AzureBatchNodeFile cmdlet gets the properties of the Azure Batch node files of a task or compute node. To narrow your results, you can specify a filter. If you specify a task, but not a filter, this cmdlet returns properties for all node files for that task. If you specify a compute node, but not a filter, this cmdlet returns properties for all node files for that compute node. Get-AzureBatchNodeFile - - JobId + + PoolId - Specifies the id of the job containing the specified target task. + Specifies the ID of the pool that contains the compute node from which to get properties of node files. String - - TaskId + + ComputeNodeId - Specifies the id of the task. + Specifies the ID of the compute node that contains the Batch node files. String + + Name + + Specifies the name of the node file for which this cmdlet retrieves properties. You cannot specify wildcard characters. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + BatchContext + + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. + + BatchAccountContext + + + + Get-AzureBatchNodeFile Filter - Specifies the OData filter clause to use when querying for node files. If you do not specify a filter, and a task is specified, then all node files associated with the specified task will be returned. If you do not specify a filter, and a compute node is specified, then all node files of the compute node will be returned. + Specifies an OData filter clause. This cmdlet returns properties for node files that match the filter that this parameter specifies. String MaxCount - Specifies the maximum number of node files to return. If you specify a value of 0 or less, then no upper limit is used. If you do not specify a value, a default value of 1000 is used. + Specifies the maximum number of node files for which this cmdlet returns properties. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. Int32 Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile Recursive - Indicates that a recursive list of files is returned. Otherwise, returns only the files at the directory root. + Indicates that this cmdlet returns a recursive list of files. Otherwise, it returns only the files in the root folder. BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - - - Get-AzureBatchNodeFile JobId - Specifies the id of the job containing the specified target task. + Specifies the ID of the job that contains the target task. String TaskId - Specifies the id of the task. + Specifies the ID of the task for which this cmdlet gets properties of node files. String + + + Get-AzureBatchNodeFile Name - Specifies the name of the node file to retrieve. You cannot use wildcards. + Specifies the name of the node file for which this cmdlet retrieves properties. You cannot specify wildcard characters. String Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext + + JobId + + Specifies the ID of the job that contains the target task. + + String + + + TaskId + + Specifies the ID of the task for which this cmdlet gets properties of node files. + + String + Get-AzureBatchNodeFile Task - Specifies the PSCloudTask object representing the task that the node files are associated with. Use the Get-AzureBatchTask cmdlet to get a PSCloudTask object. + Specifies the task, as a PSCloudTask object, with which the node files are associated. To obtain a task object, use the Get-AzureBatchTask cmdlet. PSCloudTask Filter - Specifies the OData filter clause to use when querying for node files. If you do not specify a filter, and a task is specified, then all node files associated with the specified task will be returned. If you do not specify a filter, and a compute node is specified, then all node files of the compute node will be returned. + Specifies an OData filter clause. This cmdlet returns properties for node files that match the filter that this parameter specifies. String MaxCount - Specifies the maximum number of node files to return. If you specify a value of 0 or less, then no upper limit is used. If you do not specify a value, a default value of 1000 is used. + Specifies the maximum number of node files for which this cmdlet returns properties. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. Int32 Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile Recursive - Indicates that a recursive list of files is returned. Otherwise, returns only the files at the directory root. + Indicates that this cmdlet returns a recursive list of files. Otherwise, it returns only the files in the root folder. BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - + Get-AzureBatchNodeFile PoolId - Specifies the id of the pool that contains the compute node. + Specifies the ID of the pool that contains the compute node from which to get properties of node files. - String + String ComputeNodeId - Specifies the id of the compute node that contains the files. + Specifies the ID of the compute node that contains the Batch node files. String Filter - Specifies the OData filter clause to use when querying for node files. If you do not specify a filter, and a task is specified, then all node files associated with the specified task will be returned. If you do not specify a filter, and a compute node is specified, then all node files of the compute node will be returned. + Specifies an OData filter clause. This cmdlet returns properties for node files that match the filter that this parameter specifies. String MaxCount - Specifies the maximum number of node files to return. If you specify a value of 0 or less, then no upper limit will be used. If you do not specify a value, a default value of 1000 will be used. + Specifies the maximum number of node files for which this cmdlet returns properties. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. Int32 Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile Recursive - Indicates the cmdlet performs a recursive search of files. Otherwise, the cmdlet returns only the files at the directory root. + Indicates that this cmdlet returns a recursive list of files. Otherwise, it returns only the files in the root folder. BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext Get-AzureBatchNodeFile - - PoolId + + ComputeNode - Specifies the id of the pool that contains the compute node. + Specifies the compute node, as a PSComputeNode object, that contains the Batch node files. To obtain a compute node object, use the Get-AzureBatchComputeNode cmdlet. - String + PSComputeNode - - Name + + Filter - Specifies the name of the file to retrieve from the compute node. You cannot use wildcards. + Specifies an OData filter clause. This cmdlet returns properties for node files that match the filter that this parameter specifies. String + + MaxCount + + Specifies the maximum number of node files for which this cmdlet returns properties. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. + + Int32 + Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile - ComputeNodeId + Recursive - Specifies the id of the compute node that contains the files. + Indicates that this cmdlet returns a recursive list of files. Otherwise, it returns only the files in the root folder. - String - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. - - BatchAccountContext - - - - Get-AzureBatchNodeFile - - Filter - - Specifies the OData filter clause to use when querying for node files. If you do not specify a filter, and a task is specified, then all node files associated with the specified task will be returned. If you do not specify a filter, and a compute node is specified, then all node files of the compute node will be returned. - - String - - - ComputeNode - - Specifies the PSComputeNode object representing the compute node that contains the files. You can use the Get-AzureBatchComputeNode cmdlet to get a PSComputeNode object. - - PSComputeNode - - - MaxCount - - Specifies the maximum number of node files to return. If you specify a value of 0 or less, then no upper limit will be used. If you do not specify a value, a default value of 1000 will be used. - - Int32 - - - Profile - - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. - - AzureProfile - - - Recursive - - Indicates the cmdlet performs a recursive search of files. Otherwise, the cmdlet returns only the files at the directory root. - - - - BatchContext - - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -2200,7 +2232,7 @@ BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -2212,7 +2244,7 @@ ComputeNode - Specifies the PSComputeNode object representing the compute node that contains the files. You can use the Get-AzureBatchComputeNode cmdlet to get a PSComputeNode object. + Specifies the compute node, as a PSComputeNode object, that contains the Batch node files. To obtain a compute node object, use the Get-AzureBatchComputeNode cmdlet. PSComputeNode @@ -2224,7 +2256,7 @@ ComputeNodeId - Specifies the id of the compute node that contains the files. + Specifies the ID of the compute node that contains the Batch node files. String @@ -2236,7 +2268,7 @@ Filter - Specifies the OData filter clause to use when querying for node files. If you do not specify a filter, and a task is specified, then all node files associated with the specified task will be returned. If you do not specify a filter, and a compute node is specified, then all node files of the compute node will be returned. + Specifies an OData filter clause. This cmdlet returns properties for node files that match the filter that this parameter specifies. String @@ -2245,10 +2277,10 @@ none - + JobId - Specifies the id of the job containing the specified target task. + Specifies the ID of the job that contains the target task. String @@ -2260,7 +2292,7 @@ MaxCount - Specifies the maximum number of node files to return. If you specify a value of 0 or less, then no upper limit is used. If you do not specify a value, a default value of 1000 is used. + Specifies the maximum number of node files for which this cmdlet returns properties. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. Int32 @@ -2269,10 +2301,10 @@ none - + Name - Specifies the name of the node file to retrieve. You cannot use wildcards. + Specifies the name of the node file for which this cmdlet retrieves properties. You cannot specify wildcard characters. String @@ -2284,9 +2316,9 @@ PoolId - Specifies the id of the pool that contains the compute node. + Specifies the ID of the pool that contains the compute node from which to get properties of node files. - String + String String @@ -2296,7 +2328,7 @@ Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -2308,7 +2340,7 @@ Recursive - Indicates that a recursive list of files is returned. Otherwise, returns only the files at the directory root. + Indicates that this cmdlet returns a recursive list of files. Otherwise, it returns only the files in the root folder. SwitchParameter @@ -2320,7 +2352,7 @@ Task - Specifies the PSCloudTask object representing the task that the node files are associated with. Use the Get-AzureBatchTask cmdlet to get a PSCloudTask object. + Specifies the task, as a PSCloudTask object, with which the node files are associated. To obtain a task object, use the Get-AzureBatchTask cmdlet. PSCloudTask @@ -2329,10 +2361,10 @@ none - + TaskId - Specifies the id of the task. + Specifies the ID of the task for which this cmdlet gets properties of node files. String @@ -2379,22 +2411,20 @@ - Example 1: Get the properties of an Azure Batch node file associated with a task + Example 1: Get the properties of a node file associated with a task - - PS C:\>Get-AzureBatchNodeFile -JobId "Job-000001" -TaskId "MyTask" -Name "Stdout.txt" -BatchContext $Context - IsDirectory Name Properties Url + PS C:\>Get-AzureBatchNodeFile -JobId "Job-000001" -TaskId "Task26" -Name "Stdout.txt" -BatchContext $Context +IsDirectory Name Properties Url - ----------- ---- ---------- --- +----------- ---- ---------- --- - False StdOut.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... - - +False StdOut.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... + - This command gets the properties of the StdOut.txt node file associated with the task with id MyTask in job Job-000001. + This command gets the properties of the StdOut.txt node file associated with the task that has the ID Task26 in the job that has the ID Job-000001. Use the Get-AzureBatchAccountKeys cmdlet to assign a context to the $Context variable. @@ -2405,23 +2435,21 @@ - Example 2: Get the properties of all Azure Batch node files associated with a task using a filter + Example 2: Get the properties of node files associated with a task by using a filter - - PS C:\>Get-AzureBatchNodeFile -JobId "Job-00002" -TaskId "MyTask" -Filter "startswith(name,'St')" -BatchContext $Context - IsDirectory Name Properties Url - - ----------- ---- ---------- --- + PS C:\>Get-AzureBatchNodeFile -JobId "Job-00002" -TaskId "Task26" -Filter "startswith(name,'St')" -BatchContext $Context +IsDirectory Name Properties Url - False StdErr.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... - False StdOut.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... +----------- ---- ---------- --- - +False StdErr.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... +False StdOut.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... + - This command gets the properties of the node files whose names start with st and are associated with task MyTask under job Job-00002. + This command gets the properties of the node files whose names start with st and are associated with task that has the ID Task26 under job that has the ID Job-00002. @@ -2432,27 +2460,25 @@ - Example 3: Recursively get the properties of all Azure Batch node files associated with a task + Example 3: Recursively get the properties of node files associated with a task - - PS C:\>Get-AzureBatchTask "Job-00003" "MyTask3" -BatchContext $Context | Get-AzureBatchNodeFile -Recursive -BatchContext $Context + PS C:\>Get-AzureBatchTask "Job-00003" "Task31" -BatchContext $Context | Get-AzureBatchNodeFile -Recursive -BatchContext $Context +IsDirectory Name Properties Url - IsDirectory Name Properties Url +----------- ---- ---------- --- - ----------- ---- ---------- --- +False ProcessEnv.cmd Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... +False StdErr.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... +False StdOut.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... +True wd https://cmdletexample.westus.Batch.contoso... +False wd\newFile.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... - False ProcessEnv.cmd Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... - False StdErr.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... - False StdOut.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... - True wd https://cmdletexample.westus.Batch.contoso... - False wd\newFile.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... - - + - This command gets the properties of all files associated with the task with id MyTask3 in job Job-00003. Since the Recursive parameter is present, a recursive file search is performed, and the wd\newFile.txt node file is returned. + This command gets the properties of all files associated with the task that has the ID Task31 in job Job-00003. This command specifies the Recursive parameter. Therefore, the cmdlet performs a recursive file search is performed, and returns the wd\newFile.txt node file. @@ -2463,20 +2489,18 @@ - Example 4: Get a single file from a compute node in a specified pool + Example 4: Get a single file from a compute node - - PS C:\>Get-AzureBatchNodeFile -PoolId "myPool" -ComputeNodeId "ComputeNode01" -Name "Startup\StdOut.txt" -BatchContext $Context - IsDirectory Name Properties Url - ----------- ---- ---------- --- - False startup\stdout.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... - - + PS C:\>Get-AzureBatchNodeFile -PoolId "Pool22" -ComputeNodeId "ComputeNode01" -Name "Startup\StdOut.txt" -BatchContext $Context +IsDirectory Name Properties Url +----------- ---- ---------- --- +False startup\stdout.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... + - This command gets the file named Startup\StdOut.txt from the compute node with id ComputeNode01 in the pool MyPool. + This command gets the file that is named Startup\StdOut.txt from the compute node that has the ID ComputeNode01 in the pool that has the ID Pool22. @@ -2487,24 +2511,22 @@ - Example 5: Get all files under a specific directory from a compute node in a specified pool + Example 5: Get all files under a folder from a compute node - - PS C:\>Get-AzureBatchNodeFile -PoolId "MyPool" -ComputeNodeId "ComputeNode01" -Filter "startswith(name,'startup')" -Recursive -BatchContext $Context - IsDirectory Name Properties Url - ----------- ---- ---------- --- - True startup https://cmdletexample.westus.Batch.contoso... - False startup\ProcessEnv.cmd Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... - False startup\stderr.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... - False startup\stdout.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... - True startup\wd https://cmdletexample.westus.Batch.contoso... - - + PS C:\>Get-AzureBatchNodeFile -PoolId "Pool22" -ComputeNodeId "ComputeNode01" -Filter "startswith(name,'startup')" -Recursive -BatchContext $Context +IsDirectory Name Properties Url +----------- ---- ---------- --- +True startup https://cmdletexample.westus.Batch.contoso... +False startup\ProcessEnv.cmd Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... +False startup\stderr.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... +False startup\stdout.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... +True startup\wd https://cmdletexample.westus.Batch.contoso... + - This command gets all the files under the startup directory from the compute node with id ComputeNode01 in pool MyPool. + This command gets all the files under the startup folder from the compute node that has the ID ComputeNode01 in the pool that has the ID Pool22. This cmdlet specifies the Recursive parameter. @@ -2515,22 +2537,20 @@ - Example 6: Get all files from the root directory of a specific compute node + Example 6: Get files from the root folder of a compute node - - PS C:\>Get-AzureBatchComputeNode "MyPool" -Id "ComputeNode01" -BatchContext $Context | Get-AzureBatchNodeFile -BatchContext $Context - IsDirectory Name Properties Url - ----------- ---- ---------- --- - True shared https://cmdletexample.westus.Batch.contoso... - True startup https://cmdletexample.westus.Batch.contoso... - True workitems https://cmdletexample.westus.Batch.contoso... - - + PS C:\>Get-AzureBatchComputeNode "Pool22" -Id "ComputeNode01" -BatchContext $Context | Get-AzureBatchNodeFile -BatchContext $Context +IsDirectory Name Properties Url +----------- ---- ---------- --- +True shared https://cmdletexample.westus.Batch.contoso... +True startup https://cmdletexample.westus.Batch.contoso... +True workitems https://cmdletexample.westus.Batch.contoso... + - This command gets all the files at the root directory of the compute node with id ComputeNode01 in the pool with id MyPool. + This command gets all the files at the root folder of the compute node that has the ID ComputeNode01 in the pool that has the ID Pool22. @@ -2547,149 +2567,97 @@ - Get-AzureBatchTask + Get-AzureBatchComputeNode - Get-AzureBatchComputeNode + Get-AzureBatchTask - Azure Batch Cmdlets + RMAzure_Batch_Cmdlets - Get-AzureBatchTask + Get-AzureBatchPool - Gets the Azure Batch tasks for the specified job. + Gets Batch pools under the specified Batch account. Get - AzureBatchTask + AzureBatchPool - The Get-AzureBatchTask cmdlet gets the Azure Batch tasks for the job specified by either the JobId parameter or the Job parameter. You can use the Id parameter to get a single task, or you can use the Filter parameter to get the tasks that match an OData filter. + The Get-AzureBatchPool cmdlet gets the Azure Batch pools under the Batch account specified with the BatchContext parameter. You can use the Id parameter to get a single pool, or you can use the Filter parameter to get the pools that match an OData filter. - Get-AzureBatchTask - - JobId - - Specifies the id of the job which contains the tasks. - - String - + Get-AzureBatchPool Filter - Specifies the OData filter clause to use when querying for tasks. If you do not specify a filter, then all tasks under the job specified with either the JobId parameter or the Job parameter will be returned. + Specifies the OData filter clause to use when querying for pools. If you do not specify a filter, all pools under the Batch account specified with the BatchContext parameter are returned. String MaxCount - Specifies the maximum number of tasks to return. If you specify a value of 0 or less, then no upper limit is used. If no value is specified, a default value of 1000 is used. + Specifies the maximum number of pools to return. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. Int32 Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. - - AzureProfile - - - BatchContext - - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. - - BatchAccountContext - - - - Get-AzureBatchTask - - JobId - - Specifies the id of the job which contains the tasks. - - String - - - Id - - Specifies the id of the task to retrieve. Wildcards are not permitted. - - String - - - Profile - - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - Get-AzureBatchTask - - Job - - Specifies the PSCloudJob object representing the job which contains the tasks. Use the Get-AzureBatchJob cmdlet to get a PSCloudJob object. - - PSCloudJob - - - Filter + Get-AzureBatchPool + + Id - Specifies the OData filter clause to use when querying for tasks. If you do not specify a filter, then all tasks under the job specified with either the JobId parameter or the Job parameter will be returned. + Specifies the ID of the pool to retrieve. You cannot specify wildcard characters. String - - MaxCount - - Specifies the maximum number of tasks to return. If you specify a value of 0 or less, then no upper limit is used. If no value is specified, a default value of 1000 is used. - - Int32 - Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -2701,7 +2669,7 @@ Filter - Specifies the OData filter clause to use when querying for tasks. If you do not specify a filter, then all tasks under the job specified with either the JobId parameter or the Job parameter will be returned. + Specifies the OData filter clause to use when querying for pools. If you do not specify a filter, all pools under the Batch account specified with the BatchContext parameter are returned. String @@ -2710,24 +2678,12 @@ none - - Job - - Specifies the PSCloudJob object representing the job which contains the tasks. Use the Get-AzureBatchJob cmdlet to get a PSCloudJob object. - - PSCloudJob - - PSCloudJob - - - none - - - JobId + + Id - Specifies the id of the job which contains the tasks. + Specifies the ID of the pool to retrieve. You cannot specify wildcard characters. - String + String String @@ -2737,7 +2693,7 @@ MaxCount - Specifies the maximum number of tasks to return. If you specify a value of 0 or less, then no upper limit is used. If no value is specified, a default value of 1000 is used. + Specifies the maximum number of pools to return. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. Int32 @@ -2746,22 +2702,10 @@ none - - Id - - Specifies the id of the task to retrieve. Wildcards are not permitted. - - String - - String - - - none - Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -2791,7 +2735,7 @@ - PSCloudTask + PSCloudPool @@ -2808,36 +2752,44 @@ - Example 1: Get a task by id + Example 1: Get a pool by ID - - PS C:\>Get-AzureBatchTask -JobId "Job01" -Id "MyTask" -BatchContext $Context + PS C:\>Get-AzureBatchPool -Id "MyPool" -BatchContext $Context +AllocationState : Resizing +AllocationStateTransitionTime : 7/25/2015 9:30:28 PM +AutoScaleEnabled : False +AutoScaleFormula : +AutoScaleRun : +CertificateReferences : +CreationTime : 7/25/2015 9:30:28 PM +CurrentDedicated : 0 +CurrentOSVersion : * +DisplayName : +ETag : 0x8D29538429CF04C +Id : MyPool +InterComputeNodeCommunicationEnabled : False +LastModified : 7/25/2015 9:30:28 PM +MaxTasksPerComputeNode : 1 +Metadata : +OSFamily : 4 +ResizeError : +ResizeTimeout : 00:05:00 +TaskSchedulingPolicy : Microsoft.Azure.Commands.Batch.Models.PSTaskSchedulingPolicy +StartTask : +State : Active +StateTransitionTime : 7/25/2015 9:30:28 PM +Statistics : +TargetDedicated : 1 +TargetOSVersion : * +Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool +VirtualMachineSize : small - AffinityInformation : - CommandLine : cmd /c dir /s - ComputeNodeInformation : Microsoft.Azure.Commands.Batch.Models.PSComputeNodeInformation - Constraints : Microsoft.Azure.Commands.Batch.Models.PSTaskConstraints - CreationTime : 7/25/2015 11:24:52 PM - DisplayName : - EnvironmentSettings : - ETag : 0x8D295483E08BD9D - ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSTaskExecutionInformation - Id : MyTask - LastModified : 7/25/2015 11:24:52 PM - PreviousState : Running - PreviousStateTransitionTime : 7/25/2015 11:24:59 PM - ResourceFiles : - RunElevated : False - State : Completed - StateTransitionTime : 7/25/2015 11:24:59 PM - Statistics : - Url : https://cmdletexample.westus.batch.azure.com/jobs/Job01/tasks/MyTask - + - This command gets the task with id MyTask under job Job01. + This command gets the pool with ID MyPool. @@ -2848,53 +2800,43 @@ - Example 2: Get all completed tasks from a specified job + Example 2: Get all pools using an OData filter - - PS C:\>Get-AzureBatchTask -JobId "Job02" -Filter "state eq 'completed'" -BatchContext $Context - AffinityInformation : - CommandLine : cmd /c dir /s - ComputeNodeInformation : Microsoft.Azure.Commands.Batch.Models.PSComputeNodeInformation - Constraints : Microsoft.Azure.Commands.Batch.Models.PSTaskConstraints - CreationTime : 3/24/2015 10:21:51 PM - EnvironmentSettings : - ETag : 0x8D295483E08BD9D - ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSTaskExecutionInformation - Id : MyTask - LastModified : 3/24/2015 10:21:51 PM - PreviousState : Running - PreviousStateTransitionTime : 3/24/2015 10:22:00 PM - ResourceFiles : - RunElevated : False - State : Completed - StateTransitionTime : 3/24/2015 10:22:00 PM - Statistics : - Url : https://cmdletexample.westus.batch.azure.com/jobs/Job02/tasks/MyTask - - AffinityInformation : - CommandLine : cmd /c echo hello > newFile.txt - ComputeNodeInformation : Microsoft.Azure.Commands.Batch.Models.PSComputeNodeInformation - Constraints : Microsoft.Azure.Commands.Batch.Models.PSTaskConstraints - CreationTime : 3/24/2015 10:21:51 PM - EnvironmentSettings : - ETag : 0x8D295483E08BD9D - ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSTaskExecutionInformation - Id : MyTask2 - LastModified : 3/24/2015 10:23:35 PM - PreviousState : Running - PreviousStateTransitionTime : 3/24/2015 10:23:37 PM - ResourceFiles : - RunElevated : True - State : Completed - StateTransitionTime : 3/24/2015 10:23:37 PM - Statistics : - Url : https://cmdletexample.westus.batch.azure.com/jobs/Job02/tasks/MyTask2 - + PS C:\>Get-AzureBatchPool -Filter "startswith(id,'My')" -BatchContext $Context +AllocationState : Resizing +AllocationStateTransitionTime : 7/25/2015 9:30:28 PM +AutoScaleEnabled : False +AutoScaleFormula : +AutoScaleRun : +CertificateReferences : +CreationTime : 7/25/2015 9:30:28 PM +CurrentDedicated : 0 +CurrentOSVersion : * +DisplayName : +ETag : 0x8D29538429CF04C +Id : MyPool +InterComputeNodeCommunicationEnabled : False +LastModified : 7/25/2015 9:30:28 PM +MaxTasksPerComputeNode : 1 +Metadata : +OSFamily : 4 +ResizeError : +ResizeTimeout : 00:05:00 +TaskSchedulingPolicy : Microsoft.Azure.Commands.Batch.Models.PSTaskSchedulingPolicy +StartTask : +State : Active +StateTransitionTime : 7/25/2015 9:30:28 PM +Statistics : +TargetDedicated : 1 +TargetOSVersion : * +Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool +VirtualMachineSize : small + - This command gets the completed tasks from the job with id Job02. + This command gets the pools whose IDs start with My by using the Filter parameter. @@ -2907,153 +2849,184 @@ - New-AzureBatchTask + Get-AzureBatchAccountKeys - Remove-AzureBatchTask + New-AzureBatchPool - Get-AzureBatchAccountKeys + Remove-AzureBatchPool - Get-AzureBatchJob + RMAzure_Batch_Cmdlets - Get-AzureBatchComputeNode + Get-AzureBatchRemoteDesktopProtocolFile - Gets Azure Batch compute nodes under the specified pool. + Gets an RDP file from a compute node. Get - AzureBatchComputeNode + AzureBatchRemoteDesktopProtocolFile - The Get-AzureBatchComputeNode cmdlet gets Azure Batch compute nodes under the pool specified by either the PoolId or Pool parameters. You can use the Id parameter to get a single compute node, or you can use the Filter parameter to get the compute nodes that match an OData filter. + The Get-AzureBatchRemoteDesktopProtocolFile cmdlet gets a Remote Desktop Protocol (RDP) file from a compute node and saves it as a file or to a user supplied stream. - Get-AzureBatchComputeNode - - Filter + Get-AzureBatchRemoteDesktopProtocolFile + + PoolId - Specifies the OData filter clause to use when querying for compute nodes. If you do not specify a filter, then all compute nodes under the pool specified with either the PoolId or the Pool parameter will be returned. + Specifies the ID of the pool that contains the compute node from which this cmdlet gets an .rdp file. - String + String - - MaxCount + + ComputeNodeId - Specifies the maximum number of compute nodes to return. If you specify a value of 0 or less, then the cmdlet will not use an upper limit. If you do not specify a value, a default value of 1000 will be used. + Specifies the ID of the compute node to which the .rdp file points. - Int32 + String Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - - PoolId + + DestinationPath - Specifies the id of the pool which contains the compute nodes. + Specifies the file path where this cmdlet saves the .rdp file. - String + String - Get-AzureBatchComputeNode - + Get-AzureBatchRemoteDesktopProtocolFile + PoolId - Specifies the id of the pool which contains the compute nodes. + Specifies the ID of the pool that contains the compute node from which this cmdlet gets an .rdp file. - String + String - - Id + + ComputeNodeId - Specifies the id of the compute node to retrieve from the pool. You cannot specify wildcards. + Specifies the ID of the compute node to which the .rdp file points. String Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext + + DestinationStream + + Specifies the stream into which this cmdlet directs the RDP data. This cmdlet does not close or rewind this stream. + + Stream + - Get-AzureBatchComputeNode + Get-AzureBatchRemoteDesktopProtocolFile - Pool + ComputeNode - Specifies the PSCloudPool object representing the pool which contains the compute nodes. You can use the Get-AzureBatchPool cmdlet to get a PSCloudPool object. + Specifies a compute node, as a PSComputeNode object, to which the .rdp file points. To obtain a compute node object, use the Get-AzureBatchComputeNode cmdlet. - PSCloudPool + PSComputeNode - Filter + Profile - Specifies the OData filter clause to use when querying for compute nodes. If you do not specify a filter, then all compute nodes under the pool specified with either the PoolId or the Pool parameter will be returned. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - - MaxCount + + BatchContext - Specifies the maximum number of compute nodes to return. If you specify a value of 0 or less, then the cmdlet will not use an upper limit. If you do not specify a value, a default value of 1000 will be used. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. - Int32 + BatchAccountContext + + + DestinationPath + + Specifies the file path where this cmdlet saves the .rdp file. + + String + + + + Get-AzureBatchRemoteDesktopProtocolFile + + ComputeNode + + Specifies a compute node, as a PSComputeNode object, to which the .rdp file points. To obtain a compute node object, use the Get-AzureBatchComputeNode cmdlet. + + PSComputeNode Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext + + DestinationStream + + Specifies the stream into which this cmdlet directs the RDP data. This cmdlet does not close or rewind this stream. + + Stream + - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -3062,60 +3035,60 @@ none - - Filter + + ComputeNode - Specifies the OData filter clause to use when querying for compute nodes. If you do not specify a filter, then all compute nodes under the pool specified with either the PoolId or the Pool parameter will be returned. + Specifies a compute node, as a PSComputeNode object, to which the .rdp file points. To obtain a compute node object, use the Get-AzureBatchComputeNode cmdlet. - String + PSComputeNode - String + PSComputeNode none - - MaxCount + + ComputeNodeId - Specifies the maximum number of compute nodes to return. If you specify a value of 0 or less, then the cmdlet will not use an upper limit. If you do not specify a value, a default value of 1000 will be used. + Specifies the ID of the compute node to which the .rdp file points. - Int32 + String - Int32 + String none - - Id + + DestinationPath - Specifies the id of the compute node to retrieve from the pool. You cannot specify wildcards. + Specifies the file path where this cmdlet saves the .rdp file. - String + String String none - - Pool + + DestinationStream - Specifies the PSCloudPool object representing the pool which contains the compute nodes. You can use the Get-AzureBatchPool cmdlet to get a PSCloudPool object. + Specifies the stream into which this cmdlet directs the RDP data. This cmdlet does not close or rewind this stream. - PSCloudPool + Stream - PSCloudPool + Stream none - + PoolId - Specifies the id of the pool which contains the compute nodes. + Specifies the ID of the pool that contains the compute node from which this cmdlet gets an .rdp file. - String + String String @@ -3125,7 +3098,7 @@ Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -3155,7 +3128,8 @@ - PSComputeNode + + @@ -3172,32 +3146,15 @@ - Example 1: Get a compute node by id from a specified pool + Example 1: Get an RDP file from a specified compute node and save the file - - PS C:\>Get-AzureBatchComputeNode -PoolId "MyPool" -Id "tvm-2316545714_1-20150725t213220z" -BatchContext $Context - Id : tvm-2316545714_1-20150725t213220z - Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool/nodes/tvm-2316545714_1-20150725t213220z - State : Idle - StateTransitionTime : 7/25/2015 9:36:53 PM - LastBootTime : 7/25/2015 9:36:53 PM - AllocationTime : 7/25/2015 9:32:20 PM - IPAddress : 100.116.142.129 - AffinityId : TVM:tvm-2316545714_1-20150725t213220z - VirtualMachineSize : small - TotalTasksRun : 1 - StartTaskInformation : - RecentTasks : {} - StartTask : - CertificateReferences : - Errors : - - + PS C:\>Get-AzureBatchRemoteDesktopProtocolFile -PoolId "Pool06" -ComputeNodeId "ComputeNode01" -DestinationPath "C:\PowerShell\ComputeNode01.rdp" -BatchContext $Context + - This command gets the compute node with id tvm-2316545714_1-20150725t213220z from the pool with id MyPool. + This command gets an RDP file from the compute node that has the ID ComputeNode01 in the pool that has the ID Pool06. The command saves the .rdp file as C:\PowerShell\MyComputeNode.rdp. Use the Get-AzureBatchAccountKeys cmdlet to assign a context to the $Context variable. @@ -3208,47 +3165,15 @@ - Example 2: Get all idle compute nodes from a specified pool + Example 2: Get an RDP file from a compute node and save the file by using the pipeline - - PS C:\>Get-AzureBatchComputeNode -PoolId "MyPool" -Filter "state eq 'idle'" -BatchContext $Context - Id : tvm-2316545714_1-20150725t213220z - Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool/nodes/tvm-2316545714_1-20150725t213220z - State : Idle - StateTransitionTime : 7/25/2015 9:36:53 PM - LastBootTime : 7/25/2015 9:36:53 PM - AllocationTime : 7/25/2015 9:32:20 PM - IPAddress : 100.116.142.129 - AffinityId : TVM:tvm-2316545714_1-20150725t213220z - VirtualMachineSize : small - TotalTasksRun : 1 - StartTaskInformation : - RecentTasks : {} - StartTask : - CertificateReferences : - Errors : - - Id : tvm-2316545714_2-20150726t172920z - Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool/nodes/tvm-2316545714_2-20150726t172920z - State : Idle - StateTransitionTime : 7/26/2015 5:33:58 PM - LastBootTime : 7/26/2015 5:33:58 PM - AllocationTime : 7/26/2015 5:29:20 PM - IPAddress : 100.116.112.58 - AffinityId : TVM:tvm-2316545714_2-20150726t172920z - VirtualMachineSize : small - TotalTasksRun : 0 - StartTaskInformation : - RecentTasks : - StartTask : - CertificateReferences : - Errors : - + PS C:\>Get-AzureBatchComputeNode -PoolId "Pool06" -Id "ComputeNode02" -BatchContext $Context | Get-AzureBatchRemoteDesktopProtocolFile -DestinationPath "C:\PowerShell\MyComputeNode02.rdp" -BatchContext $Context + - This command gets all idle compute nodes contained in the pool with id MyPool. + This command gets the compute node that has the ID ComputeNode02 in the pool that has the ID Pool06. The command passes that compute node to the current cmdlet by using the pipeline operator. The current cmdlet gets an .rpd file from the compute node, and then saves the contents as a file that is named C:\PowerShell\MyComputeNode02.rdp. @@ -3259,47 +3184,17 @@ - Example 3: Get all compute nodes in a specified pool + Example 3: Get a RDP file from a specified compute node and direct it to a stream - - PS C:\>Get-AzureBatchPool -Id "MyPool" -BatchContext $Context | Get-AzureBatchComputeNode -BatchContext $Context - Id : tvm-2316545714_1-20150725t213220z - Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool/nodes/tvm-2316545714_1-20150725t213220z - State : Idle - StateTransitionTime : 7/25/2015 9:36:53 PM - LastBootTime : 7/25/2015 9:36:53 PM - AllocationTime : 7/25/2015 9:32:20 PM - IPAddress : 100.116.142.129 - AffinityId : TVM:tvm-2316545714_1-20150725t213220z - VirtualMachineSize : small - TotalTasksRun : 1 - StartTaskInformation : - RecentTasks : {} - StartTask : - CertificateReferences : - Errors : - - Id : tvm-2316545714_2-20150726t172920z - Url : https://cmdletexample.westus.batch.azure.com/pools/MyPool/nodes/tvm-2316545714_2-20150726t172920z - State : Idle - StateTransitionTime : 7/26/2015 5:33:58 PM - LastBootTime : 7/26/2015 5:33:58 PM - AllocationTime : 7/26/2015 5:29:20 PM - IPAddress : 100.116.112.58 - AffinityId : TVM:tvm-2316545714_2-20150726t172920z - VirtualMachineSize : small - TotalTasksRun : 0 - StartTaskInformation : - RecentTasks : - StartTask : - CertificateReferences : - Errors : - + PS C:\>$Stream = New-Object -TypeName "System.IO.MemoryStream" + PS C:\> Get-AzureBatchRemoteDesktopProtocolFile "Pool06" -ComputeNodeId "ComputeNode03" -DestinationStream $Stream -BatchContext $Context + - This command gets all compute nodes from the pool with id MyPool. + The first command creates a stream by using the New-Object cmdlet, and then stores it in the $Stream variable. + The second command gets an .rdp file from the compute node that has the ID ComputeNode03 in the pool that has the ID Pool06. The command directs file contents to the stream in $Stream. @@ -3312,101 +3207,149 @@ - Get-AzureBatchNodeFile - - - - Get-AzureBatchNodeFileContent + Get-AzureBatchAccountKeys - Get-AzureBatchPool + Get-AzureBatchComputeNode - Azure Batch Cmdlets + RMAzure_Batch_Cmdlets - Get-AzureBatchJobSchedule + Get-AzureBatchTask - Gets Azure Batch job schedules under the specified Batch account. + Gets the Batch tasks for the specified job. Get - AzureBatchJobSchedule + AzureBatchTask - The Get-AzureBatchJobSchedule cmdlet gets Azure Batch job schedules under the Batch account specified with the BatchContext parameter. You can use the Id parameter to get a single job schedule, or you can use the Filter parameter to get the job schedules that match an OData filter. + The Get-AzureBatchTask cmdlet gets the Azure Batch tasks for the job specified by either the JobId parameter or the Job parameter. You can use the Id parameter to get a single task, or you can use the Filter parameter to get the tasks that match an OData filter. - Get-AzureBatchJobSchedule + Get-AzureBatchTask + + JobId + + Specifies the ID of the job which contains the tasks. + + String + Filter - Specifies the OData filter clause to use when querying for job schedules. If no filter is specified, then all job schedules under the Batch account specified with the BatchContext parameter will be returned. + Specifies the OData filter clause to use when querying for tasks. If you do not specify a filter, then all tasks under the job specified with either the JobId parameter or the Job parameter will be returned. String MaxCount - Specifies the maximum number of job schedules to return. If you specify a value of 0 or less, then no upper limit is used. If no value is specified, a default value of 1000 is used. + Specifies the maximum number of tasks to return. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. Int32 Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - Get-AzureBatchJobSchedule - + Get-AzureBatchTask + + JobId + + Specifies the ID of the job which contains the tasks. + + String + + Id - Specifies the id of the job schedule to retrieve. Wildcards are not permitted. + Specifies the ID of the task to retrieve. You cannot specify wildcard characters. String Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile - + + BatchContext + + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. + + BatchAccountContext + + + + Get-AzureBatchTask + + Job + + Specifies the PSCloudJob object representing the job which contains the tasks. Use the Get-AzureBatchJob cmdlet to get a PSCloudJob object. + + PSCloudJob + + + Filter + + Specifies the OData filter clause to use when querying for tasks. If you do not specify a filter, then all tasks under the job specified with either the JobId parameter or the Job parameter will be returned. + + String + + + MaxCount + + Specifies the maximum number of tasks to return. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. + + Int32 + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -3418,7 +3361,7 @@ Filter - Specifies the OData filter clause to use when querying for job schedules. If no filter is specified, then all job schedules under the Batch account specified with the BatchContext parameter will be returned. + Specifies the OData filter clause to use when querying for tasks. If you do not specify a filter, then all tasks under the job specified with either the JobId parameter or the Job parameter will be returned. String @@ -3427,34 +3370,58 @@ none - - MaxCount + + Id - Specifies the maximum number of job schedules to return. If you specify a value of 0 or less, then no upper limit is used. If no value is specified, a default value of 1000 is used. + Specifies the ID of the task to retrieve. You cannot specify wildcard characters. - Int32 + String - Int32 + String none - - Id + + Job - Specifies the id of the job schedule to retrieve. Wildcards are not permitted. + Specifies the PSCloudJob object representing the job which contains the tasks. Use the Get-AzureBatchJob cmdlet to get a PSCloudJob object. - String + PSCloudJob + + PSCloudJob + + + none + + + JobId + + Specifies the ID of the job which contains the tasks. + + String String none + + MaxCount + + Specifies the maximum number of tasks to return. If you specify a value of zero (0) or less, the cmdlet does not use an upper limit. The default value is 1000. + + Int32 + + Int32 + + + none + Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -3484,7 +3451,7 @@ - PSCloudJobSchedule + PSCloudTask @@ -3501,33 +3468,34 @@ - Example 1: Get a job schedule by id + Example 1: Get a task by ID - - PS C:\>Get-AzureBatchJobSchedule -Id "MyJobSchedule" -BatchContext $Context - - CreationTime : 7/25/2015 9:15:43 PM - DisplayName : - ETag : 0x8D2953633427FCA - ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSJobScheduleExecutionInformation - Id : MyJobSchedule - JobSpecification : Microsoft.Azure.Commands.Batch.Models.PSJobSpecification - LastModified : 7/25/2015 9:15:43 PM - Metadata : - PreviousState : Invalid - PreviousStateTransitionTime : - Schedule : - State : Active - StateTransitionTime : 7/25/2015 9:15:43 PM - Statistics : - Url : https://cmdletexample.westus.batch.azure.com/jobschedules/MyJobSchedule - - + PS C:\>Get-AzureBatchTask -JobId "Job01" -Id "MyTask" -BatchContext $Context +AffinityInformation : +CommandLine : cmd /c dir /s +ComputeNodeInformation : Microsoft.Azure.Commands.Batch.Models.PSComputeNodeInformation +Constraints : Microsoft.Azure.Commands.Batch.Models.PSTaskConstraints +CreationTime : 7/25/2015 11:24:52 PM +DisplayName : +EnvironmentSettings : +ETag : 0x8D295483E08BD9D +ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSTaskExecutionInformation +Id : MyTask +LastModified : 7/25/2015 11:24:52 PM +PreviousState : Running +PreviousStateTransitionTime : 7/25/2015 11:24:59 PM +ResourceFiles : +RunElevated : False +State : Completed +StateTransitionTime : 7/25/2015 11:24:59 PM +Statistics : +Url : https://cmdletexample.westus.batch.azure.com/jobs/Job01/tasks/MyTask + - This command gets the job schedule with id MyJobSchedule. + This command gets the task with ID MyTask under job Job01. @@ -3538,49 +3506,52 @@ - Example 2: Get all job schedules by using an id filter + Example 2: Get all completed tasks from a specified job - - PS C:\>Get-AzureBatchJobSchedule -Filter "startswith(id,'My')" -BatchContext $Context - - CreationTime : 7/25/2015 9:15:43 PM - DisplayName : - ETag : 0x8D2953633427FCA - ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSJobScheduleExecutionInformation - Id : MyJobSchedule - JobSpecification : Microsoft.Azure.Commands.Batch.Models.PSJobSpecification - LastModified : 7/25/2015 9:15:43 PM - Metadata : - PreviousState : Invalid - PreviousStateTransitionTime : - Schedule : - State : Active - StateTransitionTime : 7/25/2015 9:15:43 PM - Statistics : - Url : https://cmdletexample.westus.batch.azure.com/jobschedules/MyJobSchedule + PS C:\>Get-AzureBatchTask -JobId "Job02" -Filter "state eq 'completed'" -BatchContext $Context +AffinityInformation : +CommandLine : cmd /c dir /s +ComputeNodeInformation : Microsoft.Azure.Commands.Batch.Models.PSComputeNodeInformation +Constraints : Microsoft.Azure.Commands.Batch.Models.PSTaskConstraints +CreationTime : 3/24/2015 10:21:51 PM +EnvironmentSettings : +ETag : 0x8D295483E08BD9D +ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSTaskExecutionInformation +Id : MyTask +LastModified : 3/24/2015 10:21:51 PM +PreviousState : Running +PreviousStateTransitionTime : 3/24/2015 10:22:00 PM +ResourceFiles : +RunElevated : False +State : Completed +StateTransitionTime : 3/24/2015 10:22:00 PM +Statistics : +Url : https://cmdletexample.westus.batch.azure.com/jobs/Job02/tasks/MyTask - CreationTime : 7/26/2015 5:39:33 PM - DisplayName : - ETag : 0x8D295E12B1084B4 - ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSJobScheduleExecutionInformation - Id : MyJobSchedule2 - JobSpecification : Microsoft.Azure.Commands.Batch.Models.PSJobSpecification - LastModified : 7/26/2015 5:39:33 PM - Metadata : - PreviousState : Invalid - PreviousStateTransitionTime : - Schedule : - State : Active - StateTransitionTime : 7/26/2015 5:39:33 PM - Statistics : - Url : https://cmdletexample.westus.batch.azure.com/jobschedules/MyJobSchedule2 - - +AffinityInformation : +CommandLine : cmd /c echo hello > newFile.txt +ComputeNodeInformation : Microsoft.Azure.Commands.Batch.Models.PSComputeNodeInformation +Constraints : Microsoft.Azure.Commands.Batch.Models.PSTaskConstraints +CreationTime : 3/24/2015 10:21:51 PM +EnvironmentSettings : +ETag : 0x8D295483E08BD9D +ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSTaskExecutionInformation +Id : MyTask2 +LastModified : 3/24/2015 10:23:35 PM +PreviousState : Running +PreviousStateTransitionTime : 3/24/2015 10:23:37 PM +ResourceFiles : +RunElevated : True +State : Completed +StateTransitionTime : 3/24/2015 10:23:37 PM +Statistics : +Url : https://cmdletexample.westus.batch.azure.com/jobs/Job02/tasks/MyTask2 + - This command gets all job schedules whose ids start with My by using the Filter parameter. + This command gets the completed tasks from the job with ID Job02. @@ -3593,15 +3564,23 @@ - New-AzureBatchJobSchedule + Get-AzureBatchAccountKeys - Remove-AzureBatchJobSchedule + Get-AzureBatchJob - Get-AzureBatchAccountKeys + New-AzureBatchTask + + + + Remove-AzureBatchTask + + + + RMAzure_Batch_Cmdlets @@ -3620,7 +3599,7 @@ - The New-AzureBatchAccountKey cmdlet regenerates the specified key of the specified Batch account. The cmdlet outputs a BatchAccountContext object with its PrimaryAccountKey and SecondaryAccountKey properties populated with the latest access keys. + The New-AzureBatchAccountKey cmdlet regenerates the specified key of the specified Azure Batch account. The cmdlet outputs a BatchAccountContext object with its PrimaryAccountKey and SecondaryAccountKey properties populated with the latest access keys. @@ -3635,7 +3614,7 @@ Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -3686,7 +3665,7 @@ Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -3745,17 +3724,16 @@ - Example 1: Regenerate the primary account key on a named Batch account + Example 1: Regenerate the primary account key on a named batch account - - PS C:\>New-AzureBatchAccountKey -AccountName "cmdletexample" -KeyType "Primary" - AccountName Location ResourceGroupName Tags TaskTenantUrl - ----------- -------- ----------------- ---- ------------- - cmdletexample westus CmdletExampleRG https://cmdletexample.westus.batch.azure.com - + PS C:\>New-AzureBatchAccountKey -AccountName "CmdletExample" -KeyType "Primary" +AccountName Location ResourceGroupName Tags TaskTenantUrl +----------- -------- ----------------- ---- ------------- +cmdletexample westus CmdletExample https://batch.core.contoso.net + This command regenerates the primary account key on the Batch account named CmdletExample. @@ -3773,13 +3751,17 @@ Get-AzureBatchAccountKeys + + RMAzure_Batch_Cmdlets + + New-AzureBatchAccount - Creates a new Azure Batch account. + Creates a new Batch account. @@ -3818,7 +3800,7 @@ Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -3859,7 +3841,7 @@ Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -3935,13 +3917,11 @@ - - PS C:\>New-AzureBatchAccount -AccountName "cmdletexample" -ResourceGroupName "CmdletExampleRG" -Location "WestUS" - - AccountName Location ResourceGroupName Tags TaskTenantUrl - ----------- -------- ----------------- ---- ------------- - cmdletexample westus CmdletExampleRG https://cmdletexample.westus.batch.azure.com - + PS C:\>New-AzureBatchAccount -AccountName "cmdletexample" -ResourceGroupName "CmdletExampleRG" -Location "WestUS" +AccountName Location ResourceGroupName Tags TaskTenantUrl +----------- -------- ----------------- ---- ------------- +cmdletexample WestUS CmdletExampleRG https://batch.core.contoso.net + This command creates a new Batch account named cmdletexample using the CmdletExampleRG resource group in the WestUS location. @@ -3968,293 +3948,143 @@ - Azure Batch Cmdlets + RMAzure_Batch_Cmdlets - New-AzureBatchPool + New-AzureBatchComputeNodeUser - Creates a new pool in the Azure Batch service under the specified account. + Creates a user account on a Batch compute node. New - AzureBatchPool + AzureBatchComputeNodeUser - The New-AzureBatchPool cmdlet creates a new pool in the Azure Batch service under the account specified by the BatchContext parameter. + The New-AzureBatchComputeNodeUser cmdlet creates a user account on an Azure Batch compute node. - New-AzureBatchPool + New-AzureBatchComputeNodeUser - Id + PoolId - Specifies the id of the pool to create. + Specifies the ID of the pool that contains the compute node on which to create the user account. String - - AutoScaleFormula - - - Specifies the formula for automatically scaling the pool. For more information on Autoscale formulas, see - https://msdn.microsoft.com/en-us/library/azure/dn820182.aspx - - - - - String - - - CertificateReferences + + ComputeNodeId - Specifies certificates associated with the pool. The Batch service installs the referenced certificates on each compute node of the pool. + Specifies the ID of the compute node on which this cmdlet creates a user account. - PSCertificateReference[] + String - DisplayName + ExpiryTime - The display name of the pool. + Specifies the expiry time for the new user account. - String + DateTime - InterComputeNodeCommunicationEnabled + IsAdmin - Sets up the pool for direct communication between dedicated compute nodes. + Indicates that the cmdlet creates a user account that has administrative credentials. - MaxTasksPerComputeNode + Profile - Specifies the maximum number of tasks that can run on a single compute node. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - Int32 + AzureProfile - - Metadata + + BatchContext - Specifies the metadata to add to the new pool. For each key/value pair, set the key to the metadata name, and the value to the metadata value. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. - IDictionary + BatchAccountContext - OSFamily + Name - - Specifies the operating system family of the compute nodes in the pool. For more information about operating system families and versions, see - http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/ - - . - + Specifies the name of the new local Windows account. String - - Profile + + Password - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the user account password. - AzureProfile + String + + + New-AzureBatchComputeNodeUser - TaskSchedulingPolicy + ComputeNode - Specifies the task scheduling policy (such as the ComputeNodeFillType). + Specifies the compute node, as a PSComputeNode object, on which this cmdlet creates a user account. - PSSchedulingPolicy + PSComputeNode - StartTask + ExpiryTime - Specifies the start task specification for the pool. The start task is run when a compute node joins the pool, or when the compute node is rebooted or reimaged. + Specifies the expiry time for the new user account. - PSStartTask + DateTime - TargetOSVersion + IsAdmin - - Specifies the target operating system version of the compute nodes in the pool. You can use "*" for the latest operating system version for the specified family. For more information about operating system families and versions, see - http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/ - - . - + Indicates that the cmdlet creates a user account that has administrative credentials. - String - - VirtualMachineSize + + Profile - - Specifies the size of the virtual machines in the pool. For more information on virtual machine sizes, see - https://msdn.microsoft.com/en-us/library/dn197896.aspx - - . - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - - - New-AzureBatchPool - - Id + + Name - Specifies the id of the pool to create. + Specifies the name of the new local Windows account. String - - CertificateReferences - - Specifies certificates associated with the pool. The Batch service installs the referenced certificates on each compute node (ComputeNode) of the pool. - - PSCertificateReference[] - - - DisplayName - - The display name of the pool. - - String - - - InterComputeNodeCommunicationEnabled - - Sets up the pool for direct communication between dedicated compute nodes. - - - - MaxTasksPerComputeNode - - Specifies the maximum number of tasks that can run on a single compute node. - - Int32 - - - Metadata - - Specifies the metadata to add to the new pool. For each key/value pair, set the key to the metadata name, and the value to the metadata value. - - IDictionary - - - OSFamily - - - Specifies the operating system family of the compute nodes in the pool. For more information about operating system families and versions, see - http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/ - - . - - - String - - - Profile - - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. - - AzureProfile - - - ResizeTimeout - - Specifies the timeout for allocating compute nodes to the pool. - - TimeSpan - - - TaskSchedulingPolicy - - Specifies the task scheduling policy (such as the ComputeNodeFillType). - - PSSchedulingPolicy - - - StartTask - - Specifies the start task specification for the pool. The start task is run when a compute node joins the pool, or when the compute node is rebooted or reimaged. - - PSStartTask - - - TargetDedicated - - Specifies the target number of compute nodes to allocate to the pool. - - Int32 - - - TargetOSVersion - - - Specifies the target operating system version of the compute nodes in the pool. You can use "*" for the latest operating system version for the specified family. For more information about operating system families and versions, see - http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/ - - . - - - String - - VirtualMachineSize + Password - - Specifies the size of the virtual machines in the pool. For more information on virtual machine sizes, see - https://msdn.microsoft.com/en-us/library/dn197896.aspx - - . - + Specifies the user account password. String - - BatchContext - - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. - - BatchAccountContext - - - AutoScaleFormula - - - Specifies the formula for automatically scaling the pool. For more information on Autoscale formulas, see - https://msdn.microsoft.com/en-us/library/azure/dn820182.aspx - - - - - String - - String - - - none - - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -4263,24 +4093,24 @@ none - - CertificateReferences + + ComputeNode - Specifies certificates associated with the pool. The Batch service installs the referenced certificates on each compute node (ComputeNode) of the pool. + Specifies the compute node, as a PSComputeNode object, on which this cmdlet creates a user account. - PSCertificateReference[] + PSComputeNode - PSCertificateReference[] + PSComputeNode none - - DisplayName + + ComputeNodeId - The display name of the pool. + Specifies the ID of the compute node on which this cmdlet creates a user account. - String + String String @@ -4288,45 +4118,45 @@ none - InterComputeNodeCommunicationEnabled + ExpiryTime - Sets up the pool for direct communication between dedicated compute nodes. + Specifies the expiry time for the new user account. - SwitchParameter + DateTime - SwitchParameter + DateTime none - MaxTasksPerComputeNode + IsAdmin - Specifies the maximum number of tasks that can run on a single compute node. + Indicates that the cmdlet creates a user account that has administrative credentials. - Int32 + SwitchParameter - Int32 + SwitchParameter none - - Metadata + + Name - Specifies the metadata to add to the new pool. For each key/value pair, set the key to the metadata name, and the value to the metadata value. + Specifies the name of the new local Windows account. - IDictionary + String - IDictionary + String none - - Id + + Password - Specifies the id of the pool to create. + Specifies the user account password. String @@ -4335,15 +4165,10 @@ none - - OSFamily + + PoolId - - Specifies the operating system family of the compute nodes in the pool. For more information about operating system families and versions, see - http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/ - - . - + Specifies the ID of the pool that contains the compute node on which to create the user account. String @@ -4355,7 +4180,7 @@ Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -4364,88 +4189,6 @@ none - - ResizeTimeout - - Specifies the timeout for allocating compute nodes to the pool. - - TimeSpan - - TimeSpan - - - none - - - TaskSchedulingPolicy - - Specifies the task scheduling policy (such as the ComputeNodeFillType). - - PSSchedulingPolicy - - PSSchedulingPolicy - - - none - - - StartTask - - Specifies the start task specification for the pool. The start task is run when a compute node joins the pool, or when the compute node is rebooted or reimaged. - - PSStartTask - - PSStartTask - - - none - - - TargetDedicated - - Specifies the target number of compute nodes to allocate to the pool. - - Int32 - - Int32 - - - none - - - TargetOSVersion - - - Specifies the target operating system version of the compute nodes in the pool. You can use "*" for the latest operating system version for the specified family. For more information about operating system families and versions, see - http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/ - - . - - - String - - String - - - none - - - VirtualMachineSize - - - Specifies the size of the virtual machines in the pool. For more information on virtual machine sizes, see - https://msdn.microsoft.com/en-us/library/dn197896.aspx - - . - - - String - - String - - - none - @@ -4485,16 +4228,15 @@ - Example 1: Create a new pool using the TargetDedicated parameter set + Example 1: Create a user account that has administrative credentials - - PS C:\>New-AzureBatchPool -Id "MyPool" -VirtualMachineSize "small" -OSFamily "4" -TargetOSVersion "*" -TargetDedicated 3 -BatchContext $Context - + PS C:\>New-AzureBatchComputeNodeUser -PoolId "MyPool01" -ComputeNodeId "ComputeNode01" -Name "TestUser" -Password "Password" -ExpiryTime ([DateTime]::Now.AddDays(7)) -IsAdmin -BatchContext $Context + - This command creates a new pool with id MyPool using the TargetDedicated parameter set. The target allocation is three compute nodes. The pool will use small virtual machines imaged with the latest operating system version of family four. + This command creates a user account on the compute node that has the ID ComputeNode01. The node is in the pool that has the ID MyPool01. The user name is TestUser, the password is Password, the account expires in seven days, and the account is has administrative credentials. @@ -4505,16 +4247,15 @@ - Example 2: Create a new pool using the AutoScale parameter set + Example 2: Create a user account on a compute node by using the pipeline - - PS C:\>New-AzureBatchPool -Id "AutoScalePool" -VirtualMachineSize "small" -OSFamily "4" -TargetOSVersion "*" -AutoScaleFormula '$TargetDedicated=2;' -BatchContext $Context - + PS C:\>Get-AzureBatchComputeNode "MyPool01" -ComputeNodeId "ComputeNode01" -BatchContext $Context | New-AzureBatchComputeNodeUser -Name "TestUser" -Password "Password" -BatchContext $Context + - This command creates a new pool with id AutoScalePool using the AutoScale parameter set. The pool will use small virtual machines imaged with the latest operating system version of family four, and the target number of compute nodes will be determined by the Autoscale formula. + This command gets the compute node named ComputeNode01 by using the Get-AzureBatchComputeNode cmdlet. That node is in the pool that has the ID MyPool01. The command passes that compute node to the current cmdlet by using the pipeline operator. The command creates a user account that has the user name TestUserand the password Password. @@ -4527,212 +4268,98 @@ - Get-AzureBatchPool + Get-AzureBatchAccountKeys - Remove-AzureBatchPool + Get-AzureBatchComputeNode - Get-AzureBatchAccountKeys + Remove-AzureBatchComputeNodeUser + + + + RMAzure_Batch_Cmdlets - New-AzureBatchTask + New-AzureBatchJobSchedule - Creates a new Azure Batch task under the specified job. + Creates a job schedule in the Batch service. New - AzureBatchTask + AzureBatchJobSchedule - The New-AzureBatchTask cmdlet creates a new Azure Batch task under the job specified by the JobId parameter or the Job parameter. + The New-AzureBatchJobSchedule cmdlet creates a job schedule in the Azure Batch service. The BatchAccountContext parameter specifies the account in which this cmdlet creates the schedule. - New-AzureBatchTask - - AffinityInformation - - Specifies a locality hint that can be used by the Batch service to select a node on which to start the task. - - PSAffinityInformation - - - CommandLine + New-AzureBatchJobSchedule + + Id - Specifies the command-line command for the task. + Specifies the ID of the job schedule that this cmdlet creates. String DisplayName - The display name of the task. + Specifies a display name for the job schedule. String - EnvironmentSettings + Metadata - Specifies the environment settings to add to the new task. For each key/value pair, set the key to the environment setting name, and the value to the environment setting. + Specifies metadata, as key/value pairs, to add to the job schedule. The key is the metadata name. The value is the metadata value. IDictionary Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile - - ResourceFiles + + BatchContext - Specifies resource files required by the task. For each key/value pair, set the key to the resource file path, and the value to the resource file blob source. - - IDictionary - - - RunElevated - - Indicates that the task process runs elevated as Administrator. Otherwise, the process runs without elevation. - - - - Constraints - - Specifies the execution constraints for the task. - - PSTaskConstraints - - - BatchContext - - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - JobId - - Specifies the id of the job to create the task under. - - String - - - Id - - Specifies the id of the task to create. - - String - - - - New-AzureBatchTask - - AffinityInformation - - Specifies a locality hint that can be used by the Batch service to select a node on which to start the task. - - PSAffinityInformation - - - CommandLine - - Specifies the command-line command for the task. - - String - - - DisplayName - - The display name of the task. - - String - - - EnvironmentSettings - - Specifies the environment settings to add to the new task. For each key/value pair, set the key to the environment setting name, and the value to the environment setting. - - IDictionary - - - Job - - Specifies the PSCloudJob object representing the job to create the task under. Use the Get-AzureBatchJob cmdlet to get a PSCloudJob object. - - PSCloudJob - - - Profile - - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. - - AzureProfile - - - ResourceFiles - - Specifies resource files required by the task. For each key/value pair, set the key to the resource file path, and the value to the resource file blob source. - - IDictionary - - - RunElevated - - Indicates that the task process runs elevated as Administrator. Otherwise, the process runs without elevation. - - - - Constraints - - Specifies the execution constraints for the task. - - PSTaskConstraints - - - BatchContext + JobSpecification - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the details of the jobs that this cmdlet includes in the job schedule. - BatchAccountContext + PSJobSpecification - Id + Schedule - Specifies the id of the task to create. + Specifies the schedule that determines when to create jobs. - String + PSSchedule - - AffinityInformation - - Specifies a locality hint that can be used by the Batch service to select a node on which to start the task. - - PSAffinityInformation - - PSAffinityInformation - - - none - BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -4741,22 +4368,10 @@ none - - CommandLine - - Specifies the command-line command for the task. - - String - - String - - - none - DisplayName - The display name of task. + Specifies a display name for the job schedule. String @@ -4765,46 +4380,10 @@ none - - EnvironmentSettings - - Specifies the environment settings to add to the new task. For each key/value pair, set the key to the environment setting name, and the value to the environment setting. - - IDictionary - - IDictionary - - - none - - - Job - - Specifies the PSCloudJob object representing the job to create the task under. Use the Get-AzureBatchJob cmdlet to get a PSCloudJob object. - - PSCloudJob - - PSCloudJob - - - none - - - JobId - - Specifies the id of the job to create the task under. - - String - - String - - - none - - + Id - Specifies the id of the task to create. + Specifies the ID of the job schedule that this cmdlet creates. String @@ -4813,22 +4392,22 @@ none - - Profile + + JobSpecification - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the details of the jobs that this cmdlet includes in the job schedule. - AzureProfile + PSJobSpecification - AzureProfile + PSJobSpecification none - ResourceFiles + Metadata - Specifies resource files required by the task. For each key/value pair, set the key to the resource file path, and the value to the resource file blob source. + Specifies metadata, as key/value pairs, to add to the job schedule. The key is the metadata name. The value is the metadata value. IDictionary @@ -4838,25 +4417,25 @@ none - RunElevated + Profile - Indicates that the task process runs elevated as Administrator. Otherwise, the process runs without elevation. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - SwitchParameter + AzureProfile none - - Constraints + + Schedule - Specifies the execution constraints for the task. + Specifies the schedule that determines when to create jobs. - PSTaskConstraints + PSSchedule - PSTaskConstraints + PSSchedule none @@ -4900,36 +4479,21 @@ - Example 1: Create a new Batch task - - - - - - PS C:\>New-AzureBatchTask -JobId "Job-000001" -Id "MyTask" -CommandLine "cmd /c dir /s" -BatchContext $Context - - - This command creates a new task with id MyTask under job Job-000001. The task will run the command-line "cmd /c dir /s". - - - - - - - - - - - Example 2: Create a new Batch task + Example 1: Create a job schedule - - PS C:\>Get-AzureBatchJob -Id "Job-000001" -BatchContext $Context | New-AzureBatchTask -Id "MyTask2" -CommandLine "cmd /c echo hello > newFile.txt" -RunElevated -BatchContext $Context - + PS C:\>$Schedule = New-Object -TypeName "Microsoft.Azure.Commands.Batch.Models.PSSchedule" +PS C:\> $Schedule.RecurrenceInterval = [TimeSpan]::FromDays(1) +PS C:\> $JobSpecification = New-Object -TypeName "Microsoft.Azure.Commands.Batch.Models.PSJobSpecification" +PS C:\> $JobSpecification.PoolInformation = New-Object -TypeName "Microsoft.Azure.Commands.Batch.Models.PSPoolInformation" +PS C:\> $JobSpecification.PoolInformation.PoolId = "ContosoPool06" +PS C:\> New-AzureBatchJobSchedule -Id "JobSchedule17" -Schedule $Schedule -JobSpecification $JobSpecification -BatchContext $Context + - This command creates a new task with id MyTask2 under job Job-000001. The task will run the command-line "cmd /c echo hello > newFile.txt" with elevated permissions. + This example creates a job schedule. The first five commands create and modify PSSchedule, PSJobSpecification, and PSPoolInformation objects. The commands use the New-Object cmdlet and standard Azure PowerShell syntax. The commands store these objects in the $Schedule and $JobSpecification variables. + The final command creates a job schedule that has the ID JobSchedule17. This schedule creates jobs with a recurrence interval of one day. The jobs run on the pool that has the ID ContosoPool06, as specified in the fifth command. Use the Get-AzureBatchAccountKeys cmdlet to assign a context to the $Context variable. @@ -4942,155 +4506,133 @@ - Get-AzureBatchTask + Get-AzureBatchAccountKeys - Remove-AzureBatchTask + Get-AzureBatchJobSchedule - Get-AzureBatchAccountKeys + Remove-AzureBatchJobSchedule - Get-AzureBatchJob + RMAzure_Batch_Cmdlets - New-AzureBatchComputeNodeUser + New-AzureBatchJob - Creates a new user account on the specified Azure Batch compute node. + Creates a job in the Batch service. New - AzureBatchComputeNodeUser + AzureBatchJob - The New-AzureBatchComputeNodeUser cmdlet creates a new user account on the specified Azure Batch compute node. + The New-AzureBatchJob cmdlet creates a job in the Azure Batch service in the account specified by the BatchAccountContext parameter. - New-AzureBatchComputeNodeUser - - PoolId + New-AzureBatchJob + + Id - Specifies the id of the pool containing the compute node to create the user account on. + Specifies an ID for the job. String - - ComputeNodeId + + CommonEnvironmentSettings - Specifies the id of the compute node to create the user account on. + Specifies the common environment variables, as key/value pairs, that are set for all tasks in the job. The key is the environment variable name. The value is the environment variable value. - String + IDictionary - ExpiryTime + Constraints - Specifies the expiry time of the new user. + Specifies the run constraints for the job. - DateTime + PSJobConstraints - IsAdmin + DisplayName - Indicates that the cmdlet will create the user with administrator privileges. + Specifies the display name for the job. + String - - Password + + JobManagerTask - Specifies the user account password. + Specifies the Job Manager task. The Batch service runs the Job Manager task when the job is started. - String + PSJobManagerTask - Profile + JobPreparationTask - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Job Preparation task. The Batch service runs the Job Preparation task on a compute node before it starts any tasks of that job on that compute node. - AzureProfile + PSJobPreparationTask - - BatchContext + + JobReleaseTask - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the Job Release task. The Batch service runs the Job Release task when the job ends. The Batch service runs the Job Release task on each compute node where it ran any task of the job. - BatchAccountContext + PSJobReleaseTask - - Name - - Specifies the name of the created local windows account. - - String - - - - New-AzureBatchComputeNodeUser - ExpiryTime + Metadata - Specifies the expiry time of the new user. + Specifies metadata, as key/value pairs, to add to the job. The key is the metadata name. The value is the metadata value. - DateTime + IDictionary - IsAdmin - - Indicates that the cmdlet will create the user with administrator privileges. - - - - Password + Priority - Specifies the user account password. + Specifies the priority of the job. Valid values are: integers from -1000 to 1000. A value of -1000 is the lowest priority. A value of 1000 is the highest priority. The default value is 0. - String + Int32 Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile - - ComputeNode - - Specifies the PSComputeNode object representing the compute node to create the user account on. - - PSComputeNode - - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext - Name + PoolInformation - Specifies the name of the created local windows account. + Specifies the details of the pool on which the Batch service runs the tasks of the job. - String + PSPoolInformation - + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -5100,45 +4642,45 @@ none - ExpiryTime + CommonEnvironmentSettings - Specifies the expiry time of the new user. + Specifies the common environment variables, as key/value pairs, that are set for all tasks in the job. The key is the environment variable name. The value is the environment variable value. - DateTime + IDictionary - DateTime + IDictionary none - IsAdmin + Constraints - Indicates that the cmdlet will create the user with administrator privileges. + Specifies the run constraints for the job. - SwitchParameter + PSJobConstraints - SwitchParameter + PSJobConstraints none - - Name + + DisplayName - Specifies the name of the created local windows account. + Specifies the display name for the job. - String + String String none - - Password + + Id - Specifies the user account password. + Specifies an ID for the job. String @@ -5147,50 +4689,86 @@ none - - PoolId + + JobManagerTask - Specifies the id of the pool containing the compute node to create the user account on. + Specifies the Job Manager task. The Batch service runs the Job Manager task when the job is started. - String + PSJobManagerTask - String + PSJobManagerTask none - Profile + JobPreparationTask - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Job Preparation task. The Batch service runs the Job Preparation task on a compute node before it starts any tasks of that job on that compute node. - AzureProfile + PSJobPreparationTask - AzureProfile + PSJobPreparationTask none - ComputeNode + JobReleaseTask - Specifies The PSComputeNode object representing the compute node to create the user account on. + Specifies the Job Release task. The Batch service runs the Job Release task when the job ends. The Batch service runs the Job Release task on each compute node where it ran any task of the job. - PSComputeNode + PSJobReleaseTask - PSComputeNode + PSJobReleaseTask none - - ComputeNodeId + + Metadata - Specifies the id of the compute node to create the user account on. + Specifies metadata, as key/value pairs, to add to the job. The key is the metadata name. The value is the metadata value. - String + IDictionary - String + IDictionary + + + none + + + PoolInformation + + Specifies the details of the pool on which the Batch service runs the tasks of the job. + + PSPoolInformation + + PSPoolInformation + + + none + + + Priority + + Specifies the priority of the job. Valid values are: integers from -1000 to 1000. A value of -1000 is the lowest priority. A value of 1000 is the highest priority. The default value is 0. + + Int32 + + Int32 + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile none @@ -5234,36 +4812,19 @@ - Example 1: Create a new user account on a compute node with administrator privileges - - - - - - PS C:\>New-AzureBatchComputeNodeUser -PoolId "MyPool01" -ComputeNodeId "ComputeNode01" -Name "TestUser" -Password "Password1234!" -ExpiryTime ([DateTime]::Now.AddDays(7)) -IsAdmin -BatchContext $Context - - - This command creates a new user account on the compute node with id ComputeNode01 in the pool with id MyPool01. The user name is TestUser, the password is Password1234!, the account expiry time is in seven days, and the account is created with administrator privileges. - - - - - - - - - - - Example 2: Create a new user account on a compute node + Example 1: Create a job - - PS C:\>Get-AzureBatchComputeNode "MyPool01" -ComputeNodeId "ComputeNode01" -BatchContext $Context | New-AzureBatchComputeNodeUser -Name "TestUser" -Password "Password1234!" -BatchContext $Context - + PS C:\>$PoolInformation = New-Object -TypeName "Microsoft.Azure.Commands.Batch.Models.PSPoolInformation" +PS C:\> $PoolInformation.PoolId = "Pool22" +PS C:\> New-AzureBatchJob -Id "ContosoJob35" -PoolInformation $PoolInformation -BatchContext $Context + - This command creates a new user account on the ComputeNode01 compute node in the pool with id MyPool01. The user name is TestUser, the user password is Password1234!. + The first command creates a PSPoolInformation object by using the New-Object cmdlet. The command stores that object in the $PoolInformation variable. + The second command assigns the ID Pool22 to the PoolId property of the object in $PoolInformation. + The final command creates a job that has the ID ContosoJob35. Tasks added to the job run on the pool that has the ID Pool22. Use the Get-AzureBatchAccountKeys cmdlet to assign a context to the $Context variable. @@ -5276,439 +4837,329 @@ - Remove-AzureBatchComputeNodeUser + Get-AzureBatchAccountKeys - Get-AzureBatchAccountKeys + Get-AzureBatchJobSchedule + + + + Remove-AzureBatchJob - Azure Batch Cmdlets + RMAzure_Batch_Cmdlets - New-AzureBatchJobSchedule + New-AzureBatchPool - Creates a new job schedule in the Azure Batch service under the specified account. + Creates a new pool in the Batch service under the specified account. New - AzureBatchJobSchedule + AzureBatchPool - The New-AzureBatchJobSchedule cmdlet creates a new job schedule in the Azure Batch service under the account specified by the BatchAccountContext parameter. + The New-AzureBatchPool cmdlet creates a new pool in the Azure Batch service under the account specified by the BatchContext parameter. - New-AzureBatchJobSchedule - + New-AzureBatchPool + Id - Specifies the id of the job schedule to create. + Specifies the ID of the pool to create. String + + AutoScaleFormula + + Specifies the formula for automatically scaling the pool. For more information on Autoscale formulas, see Define the Autoscaling Formula for a Pool (https://msdn.microsoft.com/en-us/library/azure/dn820182.aspx) in the Microsoft Developer Network Library. + + String + + + CertificateReferences + + Specifies certificates associated with the pool. The Batch service installs the referenced certificates on each compute node of the pool. + + PSCertificateReference[] + DisplayName - The display name of the job schedule. + Specifies the display name of the pool. String - - JobSpecification + + InterComputeNodeCommunicationEnabled - Specifies the details of the jobs to be created under the job schedule. + Indicates that this cmdlet sets up the pool for direct communication between dedicated compute nodes. - PSJobSpecification + + + MaxTasksPerComputeNode + + Specifies the maximum number of tasks that can run on a single compute node. + + Int32 Metadata - Specifies metadata to add to the new job schedule. For each key/value pair, set the key to the metadata name, and the value to the metadata value. + Specifies the metadata, as key/value pairs, to add to the new pool. The key is the metadata name. The value is the metadata value. IDictionary Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile - - Schedule + + StartTask - Specifies the schedule that determines when jobs will be created. + Specifies the start task specification for the pool. The start task is run when a compute node joins the pool, or when the compute node is rebooted or reimaged. - PSSchedule + PSStartTask - + + TargetOSVersion + + Specifies the target operating system version of the compute nodes in the pool. You can use "*" for the latest operating system version for the specified family. For more information about operating system families and versions, see Azure Guest OS Releases and SDK Compatibility Matrix (http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/) in the Microsoft Developer Network Library. + + String + + + TaskSchedulingPolicy + + Specifies the task scheduling policy, such as the ComputeNodeFillType. + + PSTaskSchedulingPolicy + + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext + + OSFamily + + Specifies the operating system family of the compute nodes in the pool. For more information about operating system families and versions, see Azure Guest OS Releases and SDK Compatibility Matrix (http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/) in the Microsoft Developer Library. + + String + + + VirtualMachineSize + + Specifies the size of the virtual machines in the pool. For more information on virtual machine sizes, see Sizes for Virtual Machines (https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-size-specs/) in the Microsoft Developer Network Library. + + String + - - - - BatchContext - - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. - - BatchAccountContext - - BatchAccountContext - - - none - - - DisplayName - - The display name of the job schedule. - - String - - String - - - none - - - JobSpecification - - Specifies the details of the jobs to be created under the job schedule. - - PSJobSpecification - - PSJobSpecification - - - none - - - Metadata - - Specifies metadata to add to the new job schedule. For each key/value pair, set the key to the metadata name, and the value to the metadata value. - - IDictionary - - IDictionary - - - none - - - Id - - Specifies the id of the job schedule to create. - - String - - String - - - none - - - Profile - - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. - - AzureProfile - - AzureProfile - - - none - - - Schedule - - Specifies the schedule that determines when jobs will be created. - - PSSchedule - - PSSchedule - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Create a job schedule - - - - - - PS C:\>$Schedule = New-Object Microsoft.Azure.Commands.Batch.Models.PSSchedule; - $Schedule.RecurrenceInterval = [TimeSpan]::FromDays(1) - $JobSpecification = New-Object Microsoft.Azure.Commands.Batch.Models.PSJobSpecification; - $JobSpecification.PoolInformation = New-Object Microsoft.Azure.Commands.Batch.Models.PSPoolInformation; - $JobSpecification.PoolInformation.PoolId = "MyPool" - New-AzureBatchJobSchedule -Id "MyJobSchedule" -Schedule $Schedule -JobSpecification $JobSpecification -BatchContext $Context - - - This command creates a job schedule with id MyJobSchedule. Jobs will be created with a recurrence interval of 1 day. Tasks added to the created jobs will run on pool MyPool. - - - - - - - - - - - - - Get-AzureBatchJobSchedule - - - - Remove-AzureBatchJobSchedule - - - - Get-AzureBatchAccountKeys - - - - - - - New-AzureBatchJob - - Creates a new job in the Azure Batch service under the specified account. - - - - - New - AzureBatchJob - - - - The New-AzureBatchJob cmdlet creates a new job in the Azure Batch service under the account specified by the BatchAccountContext parameter. - - - New-AzureBatchJob - + New-AzureBatchPool + Id - Specifies the id of the job to create. + Specifies the ID of the pool to create. String + + CertificateReferences + + Specifies certificates associated with the pool. The Batch service installs the referenced certificates on each compute node of the pool. + + PSCertificateReference[] + DisplayName - The display name of the job. + Specifies the display name of the pool. String - CommonEnvironmentSettings + InterComputeNodeCommunicationEnabled - Specifies the common environment variables that are set for all tasks in the job. For each key/value pair, set the key to the environment variable name, and the value to the environment variable value. + Indicates that this cmdlet sets up the pool for direct communication between dedicated compute nodes. - IDictionary - Constraints + MaxTasksPerComputeNode - Specifies the execution constraints for the job. + Specifies the maximum number of tasks that can run on a single compute node. - PSJobConstraints + Int32 - JobManagerTask + Metadata - Specifies the Job Manager task. The Job Manager task is launched when the job is started. + Specifies the metadata, as key/value pairs, to add to the new pool. The key is the metadata name. The value is the metadata value. - PSJobManagerTask + IDictionary - JobPreparationTask + Profile - Specifies the Job Preparation task. The Batch service will run the Job Preparation task on a compute node before starting any tasks of that job on that compute node. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - PSJobPreparationTask + AzureProfile - JobReleaseTask + ResizeTimeout - Specifies the Job Release task. The Batch service runs the Job Release task when the job ends, on each compute node where any task of the job has run. + Specifies the timeout for allocating compute nodes to the pool. - PSJobReleaseTask + TimeSpan - Metadata + StartTask - Specifies metadata to add to the new job. For each key/value pair, set the key to the metadata name, and the value to the metadata value. + Specifies the start task specification for the pool. The start task is run when a compute node joins the pool, or when the compute node is rebooted or reimaged. - IDictionary + PSStartTask - Profile + TargetDedicated - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the target number of compute nodes to allocate to the pool. - AzureProfile + Int32 - - PoolInformation + + TargetOSVersion - Specifies the details of the pool on which the Batch service runs the job's tasks. + Specifies the target operating system version of the compute nodes in the pool. You can use "*" for the latest operating system version for the specified family. For more information about operating system families and versions, see Azure Guest OS Releases and SDK Compatibility Matrix (http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/) in the Microsoft Developer Network Library. - PSPoolInformation + String - Priority + TaskSchedulingPolicy - Specifies the priority of the job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0. + Specifies the task scheduling policy, such as the ComputeNodeFillType. - Int32 + PSTaskSchedulingPolicy BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext + + OSFamily + + Specifies the operating system family of the compute nodes in the pool. For more information about operating system families and versions, see Azure Guest OS Releases and SDK Compatibility Matrix (http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/) in the Microsoft Developer Library. + + String + + + VirtualMachineSize + + Specifies the size of the virtual machines in the pool. For more information on virtual machine sizes, see Sizes for Virtual Machines (https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-size-specs/) in the Microsoft Developer Network Library. + + String + - - BatchContext + + AutoScaleFormula - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the formula for automatically scaling the pool. For more information on Autoscale formulas, see Define the Autoscaling Formula for a Pool (https://msdn.microsoft.com/en-us/library/azure/dn820182.aspx) in the Microsoft Developer Network Library. - BatchAccountContext + String - BatchAccountContext + String none - - DisplayName + + BatchContext - The display name of the job. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. - String + BatchAccountContext - String + BatchAccountContext none - - CommonEnvironmentSettings + + CertificateReferences - Specifies the common environment variables that are set for all tasks in the job. For each key/value pair, set the key to the environment variable name, and the value to the environment variable value. + Specifies certificates associated with the pool. The Batch service installs the referenced certificates on each compute node of the pool. - IDictionary + PSCertificateReference[] - IDictionary + PSCertificateReference[] none - Constraints + DisplayName - Specifies the execution constraints for the job. + Specifies the display name of the pool. - PSJobConstraints + String - PSJobConstraints + String none - - JobManagerTask + + Id - Specifies the Job Manager task. The Job Manager task is launched when the job is started. + Specifies the ID of the pool to create. - PSJobManagerTask + String - PSJobManagerTask + String none - JobPreparationTask + InterComputeNodeCommunicationEnabled - Specifies the Job Preparation task. The Batch service will run the Job Preparation task on a compute node before starting any tasks of that job on that compute node. + Indicates that this cmdlet sets up the pool for direct communication between dedicated compute nodes. - PSJobPreparationTask + SwitchParameter - PSJobPreparationTask + SwitchParameter none - JobReleaseTask + MaxTasksPerComputeNode - Specifies the Job Release task. The Batch service runs the Job Release task when the job ends, on each compute node where any task of the job has run. + Specifies the maximum number of tasks that can run on a single compute node. - PSJobReleaseTask + Int32 - PSJobReleaseTask + Int32 none @@ -5716,7 +5167,7 @@ Metadata - Specifies metadata to add to the new job. For each key/value pair, set the key to the metadata name, and the value to the metadata value. + Specifies the metadata, as key/value pairs, to add to the new pool. The key is the metadata name. The value is the metadata value. IDictionary @@ -5725,10 +5176,10 @@ none - - Id + + OSFamily - Specifies the id of the job to create. + Specifies the operating system family of the compute nodes in the pool. For more information about operating system families and versions, see Azure Guest OS Releases and SDK Compatibility Matrix (http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/) in the Microsoft Developer Library. String @@ -5740,7 +5191,7 @@ Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -5749,197 +5200,72 @@ none - - PoolInformation + + ResizeTimeout - Specifies the details of the pool on which the Batch service runs the job's tasks. + Specifies the timeout for allocating compute nodes to the pool. - PSPoolInformation + TimeSpan - PSPoolInformation + TimeSpan none - Priority + StartTask - Specifies the priority of the job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0. + Specifies the start task specification for the pool. The start task is run when a compute node joins the pool, or when the compute node is rebooted or reimaged. - Int32 + PSStartTask - Int32 + PSStartTask none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Create a job - - - - - - PS C:\>$PoolInformation = New-Object Microsoft.Azure.Commands.Batch.Models.PSPoolInformation; - $PoolInformation.PoolId = "MyPool" - New-AzureBatchJob -Id "MyJob" -PoolInformation $PoolInformation -BatchContext $Context - - - This command creates a job with id MyJob. Tasks added to the job will run on pool MyPool. - - - - - - - - - - - - - Get-AzureBatchJobSchedule - - - - Remove-AzureBatchJob - - - - Get-AzureBatchAccountKeys - - - - - - - Remove-AzureBatchAccount - - Removes the specified Azure Batch account. - - - - - Remove - AzureBatchAccount - - - - The Remove-AzureBatchAccount cmdlet removes the specified Batch account. You will be prompted for confirmation unless you use the Force parameter. - - - - Remove-AzureBatchAccount - - AccountName - - Specifies the name of the Batch account to remove. - - String - - - ResourceGroupName - - Specifies the resource group of the account to remove. - - String - - - Force - - Forces the command to run without asking for user confirmation. - - - - Profile - - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. - - AzureProfile - - - - - - AccountName + + TargetDedicated - Specifies the name of the Batch account to remove. + Specifies the target number of compute nodes to allocate to the pool. - String + Int32 - String + Int32 none - Force + TargetOSVersion - Forces the command to run without asking for user confirmation. + Specifies the target operating system version of the compute nodes in the pool. You can use "*" for the latest operating system version for the specified family. For more information about operating system families and versions, see Azure Guest OS Releases and SDK Compatibility Matrix (http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/) in the Microsoft Developer Network Library. - SwitchParameter + String - SwitchParameter + String none - Profile + TaskSchedulingPolicy - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the task scheduling policy, such as the ComputeNodeFillType. - AzureProfile + PSTaskSchedulingPolicy - AzureProfile + PSTaskSchedulingPolicy none - - ResourceGroupName + + VirtualMachineSize - Specifies the resource group of the account to remove. + Specifies the size of the virtual machines in the pool. For more information on virtual machine sizes, see Sizes for Virtual Machines (https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-size-specs/) in the Microsoft Developer Network Library. - String + String String @@ -5985,16 +5311,34 @@ - Example 1: Remove a Batch account by name + Example 1: Create a new pool using the TargetDedicated parameter set - - PS C:\>Remove-AzureBatchAccount -AccountName "cmdletexample" - + PS C:\>New-AzureBatchPool -Id "MyPool" -VirtualMachineSize "small" -OSFamily "4" -TargetOSVersion "*" -TargetDedicated 3 -BatchContext $Context + + + This command creates a new pool with id MyPool using the TargetDedicated parameter set. The target allocation is three compute nodes. The pool will use small virtual machines imaged with the latest operating system version of family four. + + + + + + + + + + + Example 2: Create a new pool using the AutoScale parameter set + + + + + PS C:\>New-AzureBatchPool -Id "AutoScalePool" -VirtualMachineSize "small" -OSFamily "4" -TargetOSVersion "*" -AutoScaleFormula '$TargetDedicated=2;' -BatchContext $Context + - This command removes the Batch account named cmdletexample. The user is prompted for confirmation before the delete operation takes place. + This command creates a new pool with ID AutoScalePool using the AutoScale parameter set. The pool will use small virtual machines imaged with the latest operating system version of family four, and the target number of compute nodes will be determined by the Autoscale formula. @@ -6007,96 +5351,300 @@ - Get-AzureBatchAccount + Get-AzureBatchAccountKeys - New-AzureBatchAccount + Get-AzureBatchPool - Set-AzureBatchAccount + Remove-AzureBatchPool + + + + RMAzure_Batch_Cmdlets - Remove-AzureBatchJob + New-AzureBatchTask - Deletes the specified Azure Batch job. + Creates a new Batch task under the specified job. - Remove - AzureBatchJob + New + AzureBatchTask - The Remove-AzureBatchJob cmdlet deletes the specified Azure Batch job. You will be prompted for confirmation unless you use the Force parameter. + The New-AzureBatchTask cmdlet creates a new Azure Batch task under the job specified by the JobId parameter or the Job parameter. - Remove-AzureBatchJob - - Id + New-AzureBatchTask + + AffinityInformation - Specifies the id of the job to delete. Wildcards are not permitted. + Specifies a locality hint that can be used by the Batch service to select a node on which to start the task. - String + PSAffinityInformation - Force + Constraints - Forces the command to run without asking for user confirmation. + Specifies the run constraints for the task. + + PSTaskConstraints + + + DisplayName + + Specifies the display name of the task. + + String + + + EnvironmentSettings + + Specifies the environment settings to add to the new task. For each key/value pair, set the key to the environment setting name, and the value to the environment setting. + IDictionary Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile + + ResourceFiles + + Specifies resource files required by the task. For each key/value pair, set the key to the resource file path, and the value to the resource file blob source. + + IDictionary + + + RunElevated + + Indicates that the task process runs elevated as Administrator. Otherwise, the process runs without elevation. + + BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext + + CommandLine + + Specifies the command-line command for the task. + + String + + + Id + + Specifies the ID of the task to create. + + String + + + JobId + + Specifies the ID of the job to create the task under. + + String + - - - - BatchContext - - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. - - BatchAccountContext - - BatchAccountContext - - - none - - - Force + + New-AzureBatchTask + + AffinityInformation + + Specifies a locality hint that can be used by the Batch service to select a node on which to start the task. + + PSAffinityInformation + + + Constraints + + Specifies the run constraints for the task. + + PSTaskConstraints + + + DisplayName + + Specifies the display name of the task. + + String + + + EnvironmentSettings + + Specifies the environment settings to add to the new task. For each key/value pair, set the key to the environment setting name, and the value to the environment setting. + + IDictionary + + + Job + + Specifies the PSCloudJob object representing the job to create the task under. Use the Get-AzureBatchJob cmdlet to get a PSCloudJob object. + + PSCloudJob + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + ResourceFiles + + Specifies resource files required by the task. For each key/value pair, set the key to the resource file path, and the value to the resource file blob source. + + IDictionary + + + RunElevated + + Indicates that the task process runs elevated as Administrator. Otherwise, the process runs without elevation. + + + + BatchContext + + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. + + BatchAccountContext + + + CommandLine + + Specifies the command-line command for the task. + + String + + + Id + + Specifies the ID of the task to create. + + String + + + + + + AffinityInformation - Forces the command to run without asking for user confirmation. + Specifies a locality hint that can be used by the Batch service to select a node on which to start the task. - SwitchParameter + PSAffinityInformation - SwitchParameter + PSAffinityInformation none - + + BatchContext + + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. + + BatchAccountContext + + BatchAccountContext + + + none + + + CommandLine + + Specifies the command-line command for the task. + + String + + String + + + none + + + Constraints + + Specifies the run constraints for the task. + + PSTaskConstraints + + PSTaskConstraints + + + none + + + DisplayName + + Specifies the display name of the task. + + String + + String + + + none + + + EnvironmentSettings + + Specifies the environment settings to add to the new task. For each key/value pair, set the key to the environment setting name, and the value to the environment setting. + + IDictionary + + IDictionary + + + none + + Id - Specifies the id of the job to delete. Wildcards are not permitted. + Specifies the ID of the task to create. + + String + + String + + + none + + + Job + + Specifies the PSCloudJob object representing the job to create the task under. Use the Get-AzureBatchJob cmdlet to get a PSCloudJob object. + + PSCloudJob + + PSCloudJob + + + none + + + JobId + + Specifies the ID of the job to create the task under. String @@ -6108,7 +5656,7 @@ Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -6117,6 +5665,30 @@ none + + ResourceFiles + + Specifies resource files required by the task. For each key/value pair, set the key to the resource file path, and the value to the resource file blob source. + + IDictionary + + IDictionary + + + none + + + RunElevated + + Indicates that the task process runs elevated as Administrator. Otherwise, the process runs without elevation. + + SwitchParameter + + SwitchParameter + + + none + @@ -6156,16 +5728,15 @@ - Example 1: Delete a Batch job by id + Example 1: Create a new Batch task - - PS C:\>Remove-AzureBatchJob -Id "Job-000001" -BatchContext $Context - + PS C:\>New-AzureBatchTask -JobId "Job-000001" -Id "MyTask" -CommandLine "cmd /c dir /s" -BatchContext $Context + - This command deletes the job with id Job-000001. The user is prompted for confirmation before the delete operation takes place. + This command creates a new task with ID MyTask under job Job-000001. The task will run the command-line "cmd /c dir /s". @@ -6176,16 +5747,15 @@ - Example 2: Delete a Batch job by pipelining without confirmation + Example 2: Create a new Batch task - - PS C:\>Get-AzureBatchJob -Id "Job-000002" -BatchContext $Context | Remove-AzureBatchJob -Force -BatchContext $Context - + PS C:\>Get-AzureBatchJob -Id "Job-000001" -BatchContext $Context | New-AzureBatchTask -Id "MyTask2" -CommandLine "cmd /c echo hello > newFile.txt" -RunElevated -BatchContext $Context + - This command deletes the job with id Job-000002. Since the Force parameter is present, the confirmation prompt is suppressed. + This command creates a new task with ID MyTask2 under job Job-000001. The task will run the command-line "cmd /c echo hello > newFile.txt" with elevated permissions. @@ -6205,34 +5775,53 @@ Get-AzureBatchJob + + Get-AzureBatchTask + + + + Remove-AzureBatchTask + + + + RMAzure_Batch_Cmdlets + + - Remove-AzureBatchPool + Remove-AzureBatchAccount - Deletes the specified Azure Batch pool. + Removes the specified Batch account. Remove - AzureBatchPool + AzureBatchAccount - The Remove-AzureBatchPool cmdlet deletes the specified Azure Batch pool. You will be prompted for confirmation unless you use the Force parameter. + The Remove-AzureBatchAccount cmdlet removes the specified Azure Batch account. You will be prompted for confirmation unless you use the Force parameter. - Remove-AzureBatchPool - - Id + Remove-AzureBatchAccount + + AccountName - Specifies the id of the pool to delete. You cannot use wildcards. + Specifies the name of the batch account to remove. String + + ResourceGroupName + + Specifies the resource group of the account to remove. + + String + Force @@ -6242,28 +5831,21 @@ Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile - - BatchContext - - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. - - BatchAccountContext - - - BatchContext + + AccountName - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the name of the batch account to remove. - BatchAccountContext + String - BatchAccountContext + String none @@ -6280,22 +5862,10 @@ none - - Id - - Specifies the id of the pool to delete. You cannot use wildcards. - - String - - String - - - none - Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -6304,9 +5874,21 @@ none - - - + + ResourceGroupName + + Specifies the resource group of the account to remove. + + String + + String + + + none + + + + @@ -6343,36 +5925,15 @@ - Example 1: Delete a Batch pool by pool id - - - - - - PS C:\>Remove-AzureBatchPool -Id "MyPool" -BatchContext $Context - - - This command deletes the pool with id MyPool. The user is prompted for confirmation before the delete operation takes place. - - - - - - - - - - - Example 2: Delete all Batch pools by force + Example 1: Remove a batch account by name - - PS C:\>Get-AzureBatchPool -BatchContext $context | Remove-AzureBatchPool -Force -BatchContext $Context - + PS C:\>Remove-AzureBatchAccount -AccountName "cmdletexample" + - This command deletes all Batch pools. Since the Force parameter is present, the confirmation prompt is suppressed. + This command removes the batch account named cmdletexample. The user is prompted for confirmation before the delete operation takes place. @@ -6385,85 +5946,62 @@ - Get-AzureBatchPool + Get-AzureBatchAccount - New-AzureBatchPool + New-AzureBatchAccount - Get-AzureBatchAccountKeys + Set-AzureBatchAccount - Azure Batch Cmdlets + RMAzure_Batch_Cmdlets - Remove-AzureBatchTask + Remove-AzureBatchComputeNodeUser - Deletes the specified Azure Batch task. + Deletes a user account from a Batch compute node. Remove - AzureBatchTask + AzureBatchComputeNodeUser - The Remove-AzureBatchTask cmdlet deletes the specified Azure Batch task. You will be prompted for confirmation unless you use the Force parameter. + The Remove-AzureBatchComputeNodeUser cmdlet deletes a user account from an Azure Batch compute node. - Remove-AzureBatchTask + Remove-AzureBatchComputeNodeUser - JobId + PoolId - Specifies the id of the job containing the task to delete. + Specifies the ID of the pool that contains the compute node on which to delete the user account. String - Id + ComputeNodeId - Specifies the id of the task to delete. Wildcards are not permitted. + Specifies the ID of the compute node on which this cmdlet deletes the user account. String - - Force - - Forces the command to run without asking for user confirmation. - - - - Profile - - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. - - AzureProfile - - - BatchContext - - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. - - BatchAccountContext - - - - Remove-AzureBatchTask - - InputObject + + Name - Specifies the PSCloudTask object representing the task to delete. Use the Get-AzureBatchTask cmdlet to get a PSCloudTask object. + Specifies the name of the user account to delete. You cannot specify wildcard characters. - PSCloudTask + String Force @@ -6474,14 +6012,14 @@ Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -6491,7 +6029,7 @@ BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -6500,34 +6038,34 @@ none - - Force + + ComputeNodeId - Forces the command to run without asking for user confirmation. + Specifies the ID of the compute node on which this cmdlet deletes the user account. - SwitchParameter + String - SwitchParameter + String none - - InputObject + + Force - Specifies the PSCloudTask object representing the task to delete. Use the Get-AzureBatchTask cmdlet to get a PSCloudTask object. + Forces the command to run without asking for user confirmation. - PSCloudTask + SwitchParameter - PSCloudTask + SwitchParameter none - - JobId + + Name - Specifies the id of the job containing the task to delete. + Specifies the name of the user account to delete. You cannot specify wildcard characters. String @@ -6536,10 +6074,10 @@ none - - Id + + PoolId - Specifies the id of the task to delete. Wildcards are not permitted. + Specifies the ID of the pool that contains the compute node on which to delete the user account. String @@ -6551,7 +6089,7 @@ Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -6599,36 +6137,15 @@ - Example 1: Delete a Batch task by id with user confirmation - - - - - - PS C:\>Remove-AzureBatchTask -JobId "Job-000001" -Id "MyTask" -BatchContext $Context - - - This command deletes the task with id MyTask in job Job-000001. The user is prompted for confirmation before the delete operation takes place. - - - - - - - - - - - Example 2: Delete a Batch task by id without user confirmation + Example 1: Delete a user from a compute node without confirmation - - PS C:\>Get-AzureBatchTask "Job-000001" "MyTask2" -BatchContext $Context | Remove-AzureBatchTask -Force -BatchContext $Context - + PS C:\>Remove-AzureBatchComputeNodeUser -PoolId "Pool01" -ComputeNodeId "ComputeNode01" -Name "User14" -Force -BatchContext $Context + - This command deletes the task with id MyTask2 in job Job-000001. Since the Force parameter is present, the confirmation prompt is suppressed. + This command deletes the user named User14 from compute node named ComputeNode01. The compute node is in the pool named Pool01. This command specifies the Force parameter. Therefore, the command does not prompt you for confirmation. @@ -6641,56 +6158,42 @@ - Get-AzureBatchTask + Get-AzureBatchAccountKeys - New-AzureBatchTask + New-AzureBatchComputeNodeUser - Get-AzureBatchAccountKeys + RMAzure_Batch_Cmdlets - Remove-AzureBatchComputeNodeUser + Remove-AzureBatchJobSchedule - Deletes the specified user account from the specified Azure Batch compute node. + Removes a Batch job schedule. Remove - AzureBatchComputeNodeUser + AzureBatchJobSchedule - The Remove-AzureBatchComputeNodeUser cmdlet deletes the specified user account from the specified Azure Batch compute node. + The Remove-AzureBatchJobSchedule cmdlet removes an Azure Batch job schedule. This cmdlet prompts you for confirmation before it removes a schedule. - Remove-AzureBatchComputeNodeUser + Remove-AzureBatchJobSchedule - PoolId - - Specifies the id of the pool that contains the compute node. - - String - - - ComputeNodeId - - Specifies the id of the compute node to delete the user from. - - String - - - Name + Id - Specifies the name of the user to delete. You cannot specify wildcards. + Specifies the ID of the job schedule that this cmdlet removes. You cannot specify wildcard characters. String @@ -6703,14 +6206,14 @@ Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -6720,7 +6223,7 @@ BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -6741,22 +6244,10 @@ none - - Name - - Specifies the name of the user to delete. You cannot specify wildcards. - - String - - String - - - none - - PoolId + Id - Specifies the id of the pool that contains the compute node. + Specifies the ID of the job schedule that this cmdlet removes. You cannot specify wildcard characters. String @@ -6768,7 +6259,7 @@ Profile - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -6777,18 +6268,6 @@ none - - ComputeNodeId - - Specifies the id of the compute node to delete the user from. - - String - - String - - - none - @@ -6828,16 +6307,34 @@ - Example 1: Delete a user from a compute node and suppress confirmation + Example 1: Delete a job schedule - - PS C:\>Remove-AzureBatchComputeNodeUser -PoolId "MyPool01" -ComputeNodeId "ComputeNode01" -Name "MyUser" -Force -BatchContext $Context - + PS C:\>Remove-AzureBatchJobSchedule "JobSchedule17" -BatchContext $Context + + + This command deletes the job schedule that has the ID JobSchedule17. Use the Get-AzureBatchAccountKeys cmdlet to assign a context to the $Context variable. This command prompts you before it removes the schedule. + + + + + + + + + + + Example 2: Delete a job schedule without confirmation + + + + + PS C:\>Get-AzureBatchJobSchedule -Id "JobSchedule23" -BatchContext $Context | Remove-AzureBatchJobSchedule -Force -BatchContext $Context + - This command deletes the user named MyUser from compute node ComputeNode01 in pool MyPool01. This command also suppresses the confirmation prompt since the Force parameter is present. + This command gets the job schedule that has the ID JobSchedule23 by using the Get-AzureBatchJobSchedule cmdlet. The command passes that schedule to the current cmdlet by using the pipeline operator. The command removes that schedule. The command specifies the Force parameter. Therefore, it does not prompt you for confirmation. @@ -6850,42 +6347,42 @@ - New-AzureBatchComputeNodeUser + Get-AzureBatchJobSchedule - Get-AzureBatchAccountKeys + New-AzureBatchJobSchedule - Azure Batch Cmdlets + RMAzure_Batch_Cmdlets - Remove-AzureBatchJobSchedule + Remove-AzureBatchJob - Deletes the specified Azure Batch job schedule. + Deletes the specified Batch job. Remove - AzureBatchJobSchedule + AzureBatchJob - The Remove-AzureBatchJobSchedule cmdlet deletes the specified Azure Batch job schedule. You will be prompted for confirmation unless you use the Force parameter. + The Remove-AzureBatchJob cmdlet deletes the specified Azure Batch job. You will be prompted for confirmation unless you use the Force parameter. - Remove-AzureBatchJobSchedule + Remove-AzureBatchJob Id - Specifies the id of the job schedule to delete. Wildcards are not permitted. + Specifies the ID of the job to delete. You cannot specify wildcard characters. String @@ -6898,14 +6395,14 @@ Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -6915,7 +6412,7 @@ BatchContext - Specifies the BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContext @@ -6939,7 +6436,7 @@ Id - Specifies the id of the job schedule to delete. Wildcards are not permitted. + Specifies the ID of the job to delete. You cannot specify wildcard characters. String @@ -6951,7 +6448,7 @@ Profile - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. AzureProfile @@ -6999,16 +6496,15 @@ - Example 1: Delete a job schedule with user confirmation + Example 1: Delete a Batch job by id - - PS C:\>Remove-AzureBatchJobSchedule "MyJobSchedule" -BatchContext $Context - + PS C:\>Remove-AzureBatchJob -Id "Job-000001" -BatchContext $Context + - This command deletes the job schedule with id MyJobSchedule. The user is prompted for confirmation before the delete operation takes place. + This command deletes the job with ID Job-000001. The user is prompted for confirmation before the delete operation takes place. @@ -7019,16 +6515,15 @@ - Example 2: Delete a job schedule without user confirmation + Example 2: Delete a Batch job by pipelining without confirmation - - PS C:\>Get-AzureBatchJobSchedule -Id "MyJobSchedule2" -BatchContext $Context | Remove-AzureBatchJobSchedule -Force -BatchContext $Context - + PS C:\>Get-AzureBatchJob -Id "Job-000002" -BatchContext $Context | Remove-AzureBatchJob -Force -BatchContext $Context + - This command deletes the job schedule with id MyJobSchedule2. Because the Force parameter is present, the confirmation prompt is suppressed. + This command deletes the job with ID Job-000002. Since the Force parameter is present, the confirmation prompt is suppressed. @@ -7041,131 +6536,1798 @@ - Get-AzureBatchJobSchedule + Get-AzureBatchAccountKeys - New-AzureBatchJobSchedule + Get-AzureBatchJob - Get-AzureBatchAccountKeys + RMAzure_Batch_Cmdlets - Set-AzureBatchAccount + Remove-AzureBatchPool + + Deletes the specified Batch pool. + + + + + Remove + AzureBatchPool + + + + The Remove-AzureBatchPool cmdlet deletes the specified Azure Batch pool. You will be prompted for confirmation unless you use the Force parameter. + + + + Remove-AzureBatchPool + + Id + + Specifies the ID of the pool to delete. You cannot specify wildcard characters. + + String + + + Force + + Forces the command to run without asking for user confirmation. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + BatchContext + + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. + + BatchAccountContext + + + + + + BatchContext + + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. + + BatchAccountContext + + BatchAccountContext + + + none + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + SwitchParameter + + + none + + + Id + + Specifies the ID of the pool to delete. You cannot specify wildcard characters. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Delete a Batch pool by pool ID + + + + + PS C:\>Remove-AzureBatchPool -Id "MyPool" -BatchContext $Context + + + This command deletes the pool with ID MyPool. The user is prompted for confirmation before the delete operation takes place. + + + + + + + + + + + Example 2: Delete all Batch pools by force + + + + + PS C:\>Get-AzureBatchPool -BatchContext $Context | Remove-AzureBatchPool -Force -BatchContext $Context + + + This command deletes all Batch pools. Since the Force parameter is present, the confirmation prompt is suppressed. + + + + + + + + + + + + + Get-AzureBatchPool + + + + New-AzureBatchPool + + + + Get-AzureBatchAccountKeys + + + + RMAzure_Batch_Cmdlets + + + + + + + Remove-AzureBatchTask + + Deletes the specified Batch task. + + + + + Remove + AzureBatchTask + + + + The Remove-AzureBatchTask cmdlet deletes the specified Azure Batch task. You will be prompted for confirmation unless you use the Force parameter. + + + + Remove-AzureBatchTask + + JobId + + Specifies the ID of the job containing the task to delete. + + String + + + Id + + Specifies the ID of the task to delete. You cannot specify wildcard characters. + + String + + + Force + + Forces the command to run without asking for user confirmation. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + BatchContext + + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. + + BatchAccountContext + + + + Remove-AzureBatchTask + + InputObject + + Specifies the PSCloudTask object representing the task to delete. Use the Get-AzureBatchTask cmdlet to get a PSCloudTask object. + + PSCloudTask + + + Force + + Forces the command to run without asking for user confirmation. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + BatchContext + + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. + + BatchAccountContext + + + + + + BatchContext + + Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. + + BatchAccountContext + + BatchAccountContext + + + none + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + SwitchParameter + + + none + + + Id + + Specifies the ID of the task to delete. You cannot specify wildcard characters. + + String + + String + + + none + + + InputObject + + Specifies the PSCloudTask object representing the task to delete. Use the Get-AzureBatchTask cmdlet to get a PSCloudTask object. + + PSCloudTask + + PSCloudTask + + + none + + + JobId + + Specifies the ID of the job containing the task to delete. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Delete a Batch task by id with user confirmation + + + + + PS C:\>Remove-AzureBatchTask -JobId "Job-000001" -Id "MyTask" -BatchContext $Context + + + This command deletes the task with ID MyTask in job Job-000001. The user is prompted for confirmation before the delete operation takes place. + + + + + + + + + + + Example 2: Delete a Batch task by id without user confirmation + + + + + PS C:\>Get-AzureBatchTask "Job-000001" "MyTask2" -BatchContext $Context | Remove-AzureBatchTask -Force -BatchContext $Context + + + This command deletes the task with id MyTask2 in job Job-000001. Since the Force parameter is present, the confirmation prompt is suppressed. + + + + + + + + + + + + + Get-AzureBatchAccountKeys + + + + Get-AzureBatchTask + + + + New-AzureBatchTask + + + + RMAzure_Batch_Cmdlets + + + + + The Azure Batch cmdlets in the Azure module enable you to manage Microsoft Azure Batch services in Azure PowerShell. + Azure PowerShell is a command-line shell and scripting language designed to help information technology (IT) professionals automate system administration tasks. To install the latest Azure PowerShell version and associate it with your Azure subscription, see How to install and configure Azure PowerShell. For more information about Azure Resource Manager cmdlets, see Using Azure PowerShell with Azure Resource Manager. + Before you run cmdlets in Azure Resource Manager, switch to Azure Resource Manager mode. To switch to this mode, type the following command: + +Switch-AzureMode AzureResourceManager + + The Switch-AzureMode cmdlet is deprecated. For more information, see Deprecation of Switch AzureMode in Azure PowerShell (https://github.com/Azure/azure-powershell/wiki/Deprecation-of-Switch-AzureMode-in-Azure-PowerShell). + This deprecation is a breaking change. You may need to revise scripts that operate in Azure Resource Manager. + + The following cmdlets are the Azure Batch cmdlets in the Azure module: + Name + Description + Get-AzureBatchAccount + Gets a Batch account under the current subscription. + Get-AzureBatchAccountKeys + Gets the specified key of the specified Batch accounts under the current subscription. + Get-AzureBatchComputeNode + Gets Batch compute nodes from a pool. + Get-AzureBatchJob + Gets Batch jobs under the specified Batch account or job schedule. + Get-AzureBatchJobSchedule + Gets Batch job schedules. + Get-AzureBatchNodeFile + Gets the properties of Batch node files. + Get-AzureBatchNodeFileContent + Gets a Batch node file. + Get-AzureBatchPool + Gets Batch pools under the specified Batch account. + Get-AzureBatchRemoteDesktopProtocolFile + Gets an RDP file from a compute node. + Get-AzureBatchTask + Gets the Batch tasks for the specified job. + New-AzureBatchAccount + Creates a new Batch account. + New-AzureBatchAccountKey + Regenerates the specified key of the specified Batch account. + New-AzureBatchComputeNodeUser + Creates a user account on a Batch compute node. + New-AzureBatchJob + Creates a job in the Batch service. + New-AzureBatchJobSchedule + Creates a job schedule in the Batch service. + New-AzureBatchPool + Creates a new pool in the Batch service under the specified account. + New-AzureBatchTask + Creates a new Batch task under the specified job. + Remove-AzureBatchAccount + Removes the specified Batch account. + Remove-AzureBatchComputeNodeUser + Deletes a user account from a Batch compute node. + Remove-AzureBatchJob + Deletes the specified Batch job. + Remove-AzureBatchJobSchedule + Removes a Batch job schedule. + Remove-AzureBatchPool + Deletes the specified Batch pool. + Remove-AzureBatchTask + Deletes the specified Batch task. + Set-AzureBatchAccount + Updates the specified Batch account. + Start-AzureBatchPoolResize + Starts to resize a pool. + Stop-AzureBatchPoolResize + Stops a pool resize operation. + For more information about, or for the syntax of, any of the cmdlets, use the Get-Help <cmdlet name> cmdlet, where <cmdlet name> is the name of the cmdlet that you want to research. For more detailed information, you can run any of the following cmdlets: ● Get-Help <cmdlet name> -Detailed ● Get-Help <cmdlet name> -Examples ● Get-Help <cmdlet name> -Full + + Azure Cmdlet Reference + + + Azure Resource Manager CmdletsUsing Windows Powershell with Resource ManagerSet-AzureBatchAccountUpdates the specified Batch account.SetAzureBatchAccountThe Set-AzureBatchAccount cmdlet updates the specified Azure Batch account. Currently, only tags can be updated.Set-AzureBatchAccountAccountNameSpecifies the name of the existing Batch account to update.StringTagSpecifies tags in an array of hash tables to set on the account.Hashtable[]ProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileResourceGroupNameSpecifies the resource group of the account being updated.StringAccountNameSpecifies the name of the existing Batch account to update.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResourceGroupNameSpecifies the resource group of the account being updated.StringStringnoneTagSpecifies tags in an array of hash tables to set on the account.Hashtable[]Hashtable[]noneBatchAccountContextExample 1: Update the tags on an existing Batch accountPS C:\>Set-AzureBatchAccount -AccountName "cmdletexample" -Tag @(@{Name = "tag1";Value = "value1"},@{Name = "tag2";Value = "value2"}) +AccountName Location ResourceGroupName Tags TaskTenantUrl +----------- -------- ----------------- ---- ------------- +cmdletexample westus cmdletexamplerg {System.Collection https://cmdletexample.westus.batch.azure.com + s.Hashtable, Syste + m.Collections.Hash + table} +This command updates the tags on the cmdletexample account.Get-AzureBatchAccountNew-AzureBatchAccountRemove-AzureBatchAccountRMAzure_Batch_CmdletsStart-AzureBatchPoolResizeStarts to resize a pool.StartAzureBatchPoolResizeThe Start-AzureBatchPoolResize cmdlet starts an Azure Batch resize operation on a pool.Start-AzureBatchPoolResizeIdSpecifies the ID of the pool that this cmdlet resizes.StringComputeNodeDeallocationOptionSpecifies a deallocation option for the resizing operation that this cmdlet starts.ComputeNodeDeallocationOptionProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileResizeTimeoutSpecifies a time-out period for the resizing operation. If the pool does not reach the target size by this time, the resize operation stops.TimeSpanBatchContextSpecifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContextTargetDedicatedSpecifies the target number of dedicated compute nodes.Int32BatchContextSpecifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet. BatchAccountContextBatchAccountContextnoneComputeNodeDeallocationOptionSpecifies a deallocation option for the resizing operation that this cmdlet starts.ComputeNodeDeallocationOptionComputeNodeDeallocationOptionnoneIdSpecifies the ID of the pool that this cmdlet resizes.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneResizeTimeoutSpecifies a time-out period for the resizing operation. If the pool does not reach the target size by this time, the resize operation stops.TimeSpanTimeSpannoneTargetDedicatedSpecifies the target number of dedicated compute nodes.Int32Int32noneExample 1: Resize a pool to 12 nodesPS C:\>Start-AzureBatchPoolResize -Id "ContosoPool06" -TargetDedicated 12 -BatchContext $Context +This command starts a resize operation on the pool that has the ID ContosoPool06. The target for the operation is 12 dedicated compute nodes. Use the Get-AzureBatchAccountKeys cmdlet to assign a context to the $Context variable. Example 2: Resize a pool using a deallocation optionPS C:\>Get-AzureBatchPool -Id "ContosoPool06" -BatchContext $Context | Start-AzureBatchPoolResize -TargetDedicated 5 -ResizeTimeout ([TimeSpan]::FromHours(1)) -ComputeNodeDeallocationOption ([Microsoft.Azure.Batch.Common.ComputeNodeDeallocationOption]::Terminate) -BatchContext $Context +This cmdlet resizes a pool to five dedicated compute nodes. The command gets the pool that has the ID ContosoPool06 by using the Get-AzureBatchPool cmdlet. The command passes that pool object to the current cmdlet by using the pipeline operator. The command starts a resize operation on the pool. The target is five dedicated compute nodes. The command specifies time-out period of one hour. The command specifies a deallocation option of Terminate.Get-AzureBatchAccountKeysGet-AzureBatchPoolStop-AzureBatchPoolResizeRMAzure_Batch_CmdletsStop-AzureBatchPoolResizeStops a pool resize operation.StopAzureBatchPoolResizeThe Stop-AzureBatchPoolResize cmdlet stops an Azure Batch resize operation on a pool.Stop-AzureBatchPoolResizeIdSpecifies the ID of the pool for which this cmdlet stops a resizing operation.StringProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileBatchContextSpecifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet.BatchAccountContextBatchContextSpecifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureBatchAccountKeys cmdlet.BatchAccountContextBatchAccountContextnoneIdSpecifies the ID of the pool for which this cmdlet stops a resizing operation.StringStringnoneProfileSpecifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.AzureProfileAzureProfilenoneExample 1: Stop resizing a poolPS C:\>Stop-AzureBatchPoolResize -Id "ContosoPool06" -BatchContext $Context +This command stops a resize operation on the pool that has the ID ContosoPool06. Use the Get-AzureBatchAccountKeys cmdlet to assign a context to the $Context variable.Example 2: Stop resizing a pool by using the pipelinePS C:\>Get-AzureBatchPool -Id "ContosoPool06" -BatchContext $Context | Stop-AzureBatchPoolResize -BatchContext $Context +This example stops resizing a pool by using the pipeline operator. The command gets the pool that has the ID ContosoPool06 by using the Get-AzureBatchPool cmdlet. The command passes that pool object to the current cmdlet. The command stops the resize operation on that pool. Get-AzureBatchAccountKeysGet-AzureBatchPoolStart-AzureBatchPoolResizeRMAzure_Batch_Cmdlets + + + + + Enable-AzureBatchAutoScale + + + Enables automatic scaling on the specified pool. + + + + + Enable + AzureBatchAutoScale + + + + Enables automatic scaling on the specified pool. + + + + + Enable-AzureBatchAutoScale + + Id + + The id of the pool to enable automatic scaling on. + + string + + + AutoScaleFormula + + The formula for the desired number of compute nodes in the pool. For more information on defining autoscale formulas, see: https://msdn.microsoft.com/en-us/library/azure/dn820182.aspx + + string + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + BatchAccountContext + + + + + + + AutoScaleFormula + + The formula for the desired number of compute nodes in the pool. For more information on defining autoscale formulas, see: https://msdn.microsoft.com/en-us/library/azure/dn820182.aspx + + + string + + string + + + + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + + BatchAccountContext + + BatchAccountContext + + + + + + Id + + The id of the pool to enable automatic scaling on. + + + string + + string + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + C:\PS> + + + $formula = 'totalNodes=($CPUPercent.GetSamplePercent(TimeInterval_Minute*0,TimeInterval_Minute*10)<0.7?5:(min($CPUPercent.GetSample(TimeInterval_Minute*0, TimeInterval_Minute*10))>0.8?($CurrentDedicated*1.1):$CurrentDedicated));$TargetDedicated=min(100,totalNodes);'; + Enable-AzureBatchAutoScale "myPool" $formula -BatchContext $context + + + Description + ----------- + Enables automatic scaling on pool "myPool" using the specified formula. + + + + + + + + + + + + + + + + + + + + + + + + Test-AzureBatchAutoScale + + + Gets the result of evaluation an automatic scaling formula on the specified pool. + + + + + Test + AzureBatchAutoScale + + + + Gets the result of evaluation an automatic scaling formula on the specified pool. This is primarily for validating an autoscale formula, as it simply returns the result without applying the formula to the pool. + + + + + Test-AzureBatchAutoScale + + Id + + The id of the pool to evaluate the automatic scaling formula on. + + string + + + AutoScaleFormula + + The formula for the desired number of compute nodes in the pool. For more information on defining autoscale formulas, see: https://msdn.microsoft.com/en-us/library/azure/dn820182.aspx + + string + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + BatchAccountContext + + + + + + + AutoScaleFormula + + The formula for the desired number of compute nodes in the pool. For more information on defining autoscale formulas, see: https://msdn.microsoft.com/en-us/library/azure/dn820182.aspx + + + string + + string + + + + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + + BatchAccountContext + + BatchAccountContext + + + + + + Id + + The id of the pool to evaluate the automatic scaling formula on. + + + string + + string + + + + + + + + + + + + + + + + + + + + + + + + + PSAutoScaleEvaluation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + C:\PS> + + + $formula = 'totalNodes=($CPUPercent.GetSamplePercent(TimeInterval_Minute*0,TimeInterval_Minute*10)<0.7?5:(min($CPUPercent.GetSample(TimeInterval_Minute*0, TimeInterval_Minute*10))>0.8?($CurrentDedicated*1.1):$CurrentDedicated));$TargetDedicated=min(100,totalNodes);'; + $evaluation = Test-AzureBatchAutoScale "myPool" $formula -BatchContext $context + $evaluation.AutoScaleRun.Results + + $TargetDedicated=5;$NodeDeallocationOption=requeue;totalNodes=5 + + + Description + ----------- + Evaluates the specified autoscale formula on pool "myPool" and displays the results. + + + + + + + + + + + + + + + + + + + + + + + + Disable-AzureBatchAutoScale + + + Disables automatic scaling on the specified pool. + + + + + Disable + AzureBatchAutoScale + + + + Disables automatic scaling on the specified pool. + + + + + Disable-AzureBatchAutoScale + + Id + + The id of the pool to disable automatic scaling on. + + string + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + BatchAccountContext + + + + + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + + BatchAccountContext + + BatchAccountContext + + + + + + Id + + The id of the pool to disable automatic scaling on. + + + string + + string + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + C:\PS> + + + Disable-AzureBatchAutoScale "myPool" -BatchContext $context + + + Description + ----------- + Disables automatic scaling on pool "myPool". + + + + + + + + + + + + + + + + + + + + + + + + Restart-AzureBatchComputeNode + + + Reboots the specified compute node. + + + + + Restart + AzureBatchComputeNode + + + + Reboots the specified compute node. + + + + + Restart-AzureBatchComputeNode + + PoolId + + The id of the pool that contains the compute node. + + string + + + Id + + The id of the compute node to reboot. + + string + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + BatchAccountContext + + + RebootOption + + Specifies when to reboot the node and what to do with currently running tasks. The default is Requeue. + + ComputeNodeRebootOption + + + + Restart-AzureBatchComputeNode + + ComputeNode + + The PSComputeNode object representing the compute node to reboot. + + PSComputeNode + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + BatchAccountContext + + + RebootOption + + Specifies when to reboot the node and what to do with currently running tasks. The default is Requeue. + + ComputeNodeRebootOption + + + + + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + + BatchAccountContext + + BatchAccountContext + + + + + + ComputeNode + + The PSComputeNode object representing the compute node to reboot. + + + PSComputeNode + + PSComputeNode + + + + + + Id + + The id of the compute node to reboot. + + + string + + string + + + + + + PoolId + + The id of the pool that contains the compute node. + + + string + + string + + + + + + RebootOption + + Specifies when to reboot the node and what to do with currently running tasks. The default is Requeue. + + + ComputeNodeRebootOption + + ComputeNodeRebootOption + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + C:\PS> + + + Restart-AzureBatchComputeNode -PoolId "myPool" -Id "tvm-3257026573_2-20150813t200938z" -BatchContext $context + + + Description + ----------- + Reboots the compute node with id "tvm-3257026573_2-20150813t200938z" in pool "myPool". + + + + + + + + + + + + + + + -------------------------- EXAMPLE 2 -------------------------- + + + C:\PS> + + + Get-AzureBatchComputeNode -PoolId "myPool" -BatchContext $context | Restart-AzureBatchComputeNode -BatchContext $context + + + Description + ----------- + Reboots every compute node in pool "myPool". + + + + + + + + + + + + + + + + + + + + + + + + Reset-AzureBatchComputeNode + + + Reinstalls the operating system on the specified compute node. + + + + + Reset + AzureBatchComputeNode + + + + Reinstalls the operating system on the specified compute node. + + + + + Reset-AzureBatchComputeNode + + PoolId + + The id of the pool that contains the compute node. + + string + + + Id + + The id of the compute node to reimage. + + string + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + BatchAccountContext + + + ReimageOption + + Specifies when to reimage the node and what to do with currently running tasks. The default is Requeue. + + ComputeNodeReimageOption + + + + Reset-AzureBatchComputeNode + + ComputeNode + + The PSComputeNode object representing the compute node to reimage. + + PSComputeNode + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + BatchAccountContext + + + ReimageOption + + Specifies when to reimage the node and what to do with currently running tasks. The default is Requeue. + + ComputeNodeReimageOption + + + + + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + + BatchAccountContext + + BatchAccountContext + + + + + + ComputeNode + + The PSComputeNode object representing the compute node to reimage. + + + PSComputeNode + + PSComputeNode + + + + + + Id + + The id of the compute node to reimage. + + + string + + string + + + + + + PoolId + + The id of the pool that contains the compute node. + + + string + + string + + + + + + ReimageOption + + Specifies when to reimage the node and what to do with currently running tasks. The default is Requeue. + + + ComputeNodeReimageOption + + ComputeNodeReimageOption + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + C:\PS> + + + Reset-AzureBatchComputeNode -PoolId "myPool" -Id "tvm-3257026573_2-20150813t200938z" -BatchContext $context + + + Description + ----------- + Reimages the compute node with id "tvm-3257026573_2-20150813t200938z" in pool "myPool". + + + + + + + + + + + + + + + -------------------------- EXAMPLE 2 -------------------------- + + + C:\PS> + + + Get-AzureBatchComputeNode -PoolId "myPool" -BatchContext $context | Reset-AzureBatchComputeNode -BatchContext $context + + + Description + ----------- + Reimages every compute node in pool "myPool". + + + + + + + + + + + + + + + + + + + + + + + + Set-AzureBatchPoolOSVersion + + + Changes the operating system version of the specified pool. + + + + + Set + AzureBatchPoolOSVersion + + + + Changes the operating system version of the specified pool. + + + + + Set-AzureBatchPoolOSVersion + + Id + + The id of the pool. + + string + + + TargetOSVersion + + The Azure Guest OS version to be installed on the virtual machines in the pool. For more information on Azure Guest OS versions, see http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/ + + string + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + BatchAccountContext + + + + + + + BatchContext + + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + + + BatchAccountContext + + BatchAccountContext + + + + + + Id + + The id of the pool. + + + string + + string + + + + + + TargetOSVersion + + The Azure Guest OS version to be installed on the virtual machines in the pool. For more information on Azure Guest OS versions, see http://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/ + + + string + + string + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + C:\PS> + + + Set-AzureBatchPoolOSVersion -Id "myPool" -TargetOSVersion "WA-GUEST-OS-4.20_201505-01" -BatchContext $context + + + Description + ----------- + Sets the target OS version of pool "myPool" to "WA-GUEST-OS-4.20_201505-01" + + + + + + + + + + + + + + + + + + + + + + + + Enable-AzureBatchJobSchedule + - Updates the specified Azure Batch account. + Enables the specified job schedule. - + - Set - AzureBatchAccount - + Enable + AzureBatchJobSchedule + - The Set-AzureBatchAccount cmdlet updates the specified Batch account. Currently, only tags can be updated. + Enables the specified job schedule, allowing jobs to be created according to its Schedule. + - Set-AzureBatchAccount - - AccountName - - Specifies the name of the existing Batch account to update. - - String - - - Tag - - Specifies tags in an array of hash tables to set on the account. - - Hashtable[] - - - Profile + Enable-AzureBatchJobSchedule + + Id - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + The id of the job schedule to enable. - AzureProfile + string - - ResourceGroupName + + BatchContext - Specifies the resource group of the account being updated. + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. - String + BatchAccountContext + - - AccountName - - Specifies the name of the existing Batch account to update. - - String - - String - - - none - - - Profile - - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. - - AzureProfile - - AzureProfile - - - none - - - ResourceGroupName + + BatchContext - Specifies the resource group of the account being updated. + The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. + - String + BatchAccountContext - String - + BatchAccountContext + - none + - - Tag + + Id - Specifies tags in an array of hash tables to set on the account. + The id of the job schedule to enable. + - Hashtable[] + string - Hashtable[] - + string + - none + + - - - - - - - + + + + + @@ -7173,507 +8335,96 @@ - BatchAccountContext - - - - - + + + + + + + + + + + + + + + + + + + + - Example 1: Update the tags on an existing Batch account + + -------------------------- EXAMPLE 1 -------------------------- + - - + C:\PS> - PS C:\>Set-AzureBatchAccount -AccountName "cmdletexample" -Tag @(@{Name = "tag1";Value = "value1"},@{Name = "tag2";Value = "value2"}) - - - AccountName Location ResourceGroupName Tags TaskTenantUrl - ----------- -------- ----------------- ---- ------------- - cmdletexample westus CmdletExampleRG {System.Collection https://cmdletexample.westus.batch.azure.com - s.Hashtable, Syste - m.Collections.Hash - table} + Enable-AzureBatchJobSchedule "myJobSchedule" -BatchContext $context - This command updates the tags on the cmdletexample account. - - + Description + ----------- + Enables the job schedule with id "myJobSchedule". + + + + - + + - Get-AzureBatchAccount - - - - New-AzureBatchAccount - - - - Remove-AzureBatchAccount - + + - - - - Start-AzureBatchPoolResize - - - Begins a pool resize operation. - - - - - Start - AzureBatchPoolResize - - - - Begins a resize operation on the specified pool. - - - - - Start-AzureBatchPoolResize - - Id - - The id of the pool to resize. - - string - - - BatchContext - - The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. - - BatchAccountContext - - - ComputeNodeDeallocationOption - - The deallocation option associated with this resize. - - ComputeNodeDeallocationOption - - - ResizeTimeout - - The resize timeout. If the pool has not reached the target after this time the resize is automatically stopped. - - TimeSpan - - - TargetDedicated - - The number of target dedicated compute nodes. - - int - - - - - - - BatchContext - - The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. - - - BatchAccountContext - - BatchAccountContext - - - - - - ComputeNodeDeallocationOption - - The deallocation option associated with this resize. - - - ComputeNodeDeallocationOption - - ComputeNodeDeallocationOption - - - - - - Id - - The id of the pool to resize. - - - string - - string - - - - - - ResizeTimeout - - The resize timeout. If the pool has not reached the target after this time the resize is automatically stopped. - - - TimeSpan - - TimeSpan - - - - - - TargetDedicated - - The number of target dedicated compute nodes. - - - int - - int - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - - - C:\PS> - - - Start-AzureBatchPoolResize -Id "MyPool" -TargetDedicated 10 -BatchContext $context - - Description - ----------- - Starts a resize operation on pool "MyPool" with a new target of 10 dedicated compute nodes. - - - - - - - - - - - - - - - -------------------------- EXAMPLE 2 -------------------------- - - - C:\PS> - - - Get-AzureBatchPool -Id "MyPool" -BatchContext $context | Start-AzureBatchPoolResize -TargetDedicated 5 -ResizeTimeout ([TimeSpan]::FromHours(1)) -ComputeNodeDeallocationOption ([Microsoft.Azure.Batch.Common.ComputeNodeDeallocationOption]::Terminate) -BatchContext $context - - Description - ----------- - Starts a resize operation on pool "MyPool" with a new target of 5 dedicated compute nodes, a resize timeout of 1 hour, and the Terminate deallocation option. - - - - - - - - - - - - - - - - - - - - - - - - Stop-AzureBatchPoolResize - - - Stops a pool resize operation. - - - - - Stop - AzureBatchPoolResize - - - - Stops a pool resize operation. - - - - - Stop-AzureBatchPoolResize - - Id - - The id of the pool. - - string - - - BatchContext - - The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. - - BatchAccountContext - - - - - - - BatchContext - - The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. - - - BatchAccountContext - - BatchAccountContext - - - - - - Id - - The id of the pool. - - - string - - string - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - - - C:\PS> - - - Stop-AzureBatchPoolResize -Id "MyPool" -BatchContext $context - - Description - ----------- - Stops the resize operation on pool "MyPool" - - - - - - - - - - - - - - - -------------------------- EXAMPLE 2 -------------------------- - - - C:\PS> - - - Get-AzureBatchPool -Id "testPool" -BatchContext $context | Stop-AzureBatchPoolResize -BatchContext $context - - Description - ----------- - Stops the resize operation on pool "MyPool" using the pipeline. - - - - - - - - - - - - - - - - - - - - - Enable-AzureBatchAutoScale + Disable-AzureBatchJobSchedule - Enables automatic scaling on the specified pool. + Disables the specified job schedule - Enable - AzureBatchAutoScale + Disable + AzureBatchJobSchedule - Enables automatic scaling on the specified pool. + Disables the specified job schedule. Disabled schedules do not create new jobs, but may be re-enabled later. - Enable-AzureBatchAutoScale + Disable-AzureBatchJobSchedule Id - The id of the pool to enable automatic scaling on. - - string - - - AutoScaleFormula - - The formula for the desired number of compute nodes in the pool. For more information on defining autoscale formulas, see: https://msdn.microsoft.com/en-us/library/azure/dn820182.aspx + The id of the job schedule to disable. string @@ -7688,19 +8439,6 @@ - - AutoScaleFormula - - The formula for the desired number of compute nodes in the pool. For more information on defining autoscale formulas, see: https://msdn.microsoft.com/en-us/library/azure/dn820182.aspx - - - string - - string - - - - BatchContext @@ -7717,7 +8455,7 @@ Id - The id of the pool to enable automatic scaling on. + The id of the job schedule to disable. string @@ -7785,13 +8523,12 @@ C:\PS> - $formula = 'totalNodes=($CPUPercent.GetSamplePercent(TimeInterval_Minute*0,TimeInterval_Minute*10)<0.7?5:(min($CPUPercent.GetSample(TimeInterval_Minute*0, TimeInterval_Minute*10))>0.8?($CurrentDedicated*1.1):$CurrentDedicated));$TargetDedicated=min(100,totalNodes);'; - Enable-AzureBatchAutoScale "myPool" $formula -BatchContext $context + Disable-AzureBatchJobSchedule "myJobSchedule" -BatchContext $context Description ----------- - Enables automatic scaling on pool "myPool" using the specified formula. + Disables the job schedule with id "myJobSchedule". @@ -7815,36 +8552,29 @@ - Test-AzureBatchAutoScale + Enable-AzureBatchJob - Gets the result of evaluation an automatic scaling formula on the specified pool. + Enables the specified job. - Test - AzureBatchAutoScale + Enable + AzureBatchJob - Gets the result of evaluation an automatic scaling formula on the specified pool. This is primarily for validating an autoscale formula, as it simply returns the result without applying the formula to the pool. + Enables the specified job, allowing new tasks to run. - Test-AzureBatchAutoScale + Enable-AzureBatchJob Id - The id of the pool to evaluate the automatic scaling formula on. - - string - - - AutoScaleFormula - - The formula for the desired number of compute nodes in the pool. For more information on defining autoscale formulas, see: https://msdn.microsoft.com/en-us/library/azure/dn820182.aspx + The id of the job to enable. string @@ -7859,19 +8589,6 @@ - - AutoScaleFormula - - The formula for the desired number of compute nodes in the pool. For more information on defining autoscale formulas, see: https://msdn.microsoft.com/en-us/library/azure/dn820182.aspx - - - string - - string - - - - BatchContext @@ -7888,7 +8605,7 @@ Id - The id of the pool to evaluate the automatic scaling formula on. + The id of the job to enable. string @@ -7918,7 +8635,7 @@ - PSAutoScaleEvaluation + @@ -7956,16 +8673,12 @@ C:\PS> - $formula = 'totalNodes=($CPUPercent.GetSamplePercent(TimeInterval_Minute*0,TimeInterval_Minute*10)<0.7?5:(min($CPUPercent.GetSample(TimeInterval_Minute*0, TimeInterval_Minute*10))>0.8?($CurrentDedicated*1.1):$CurrentDedicated));$TargetDedicated=min(100,totalNodes);'; - $evaluation = Test-AzureBatchAutoScale "myPool" $formula -BatchContext $context - $evaluation.AutoScaleRun.Results - - $TargetDedicated=5;$NodeDeallocationOption=requeue;totalNodes=5 + Enable-AzureBatchJob "myJob" -BatchContext $context Description ----------- - Evaluates the specified autoscale formula on pool "myPool" and displays the results. + Enables the job with id "myJob". @@ -7989,32 +8702,39 @@ - Disable-AzureBatchAutoScale + Disable-AzureBatchJob - Disables automatic scaling on the specified pool. + Disables the specified job. Disable - AzureBatchAutoScale + AzureBatchJob - Disables automatic scaling on the specified pool. + Disables the specified job. Disabled jobs do not run new tasks, but may be re-enabled later. - Disable-AzureBatchAutoScale + Disable-AzureBatchJob Id - The id of the pool to disable automatic scaling on. + The id of the job to disable. string + + DisableJobOption + + Specifies what to do with active tasks associated with the job. + + DisableJobOption + BatchContext @@ -8039,10 +8759,23 @@ + + DisableJobOption + + Specifies what to do with active tasks associated with the job. + + + DisableJobOption + + DisableJobOption + + + + Id - The id of the pool to disable automatic scaling on. + The id of the job to disable. string @@ -8110,12 +8843,12 @@ C:\PS> - Disable-AzureBatchAutoScale "myPool" -BatchContext $context + Disable-AzureBatchJob "myJob" Terminate -BatchContext $context Description ----------- - Disables automatic scaling on pool "myPool". + Disables the job with id "myJob". Running tasks associated with the job will be terminated and will not run again. @@ -8136,4 +8869,5 @@ + diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.ComputeNodes.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.ComputeNodes.cs index 2e6bba36bc9f..652d7d4f9e79 100644 --- a/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.ComputeNodes.cs +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.ComputeNodes.cs @@ -69,5 +69,56 @@ public IEnumerable ListComputeNodes(ListComputeNodeOptions option computeNodes, mappingFunction, options.MaxCount, () => WriteVerbose(string.Format(Resources.MaxCount, options.MaxCount))); } } + + /// + /// Reboots the specified compute node. + /// + /// The parameters specifying the compute node to reboot and the reboot option. + public void RebootComputeNode(RebootComputeNodeParameters parameters) + { + if (parameters == null) + { + throw new ArgumentNullException("parameters"); + } + + string computeNodeId = parameters.ComputeNode == null ? parameters.ComputeNodeId : parameters.ComputeNode.Id; + WriteVerbose(string.Format(Resources.RebootComputeNode, computeNodeId)); + + if (parameters.ComputeNode != null) + { + parameters.ComputeNode.omObject.Reboot(parameters.RebootOption, parameters.AdditionalBehaviors); + } + else + { + PoolOperations poolOperations = parameters.Context.BatchOMClient.PoolOperations; + poolOperations.Reboot(parameters.PoolId, parameters.ComputeNodeId, parameters.RebootOption, parameters.AdditionalBehaviors); + } + } + + + /// + /// Reinstalls the operating system on the specified compute node. + /// + /// The parameters specifying the compute node to reimage and the reimage option. + public void ReimageComputeNode(ReimageComputeNodeParameters parameters) + { + if (parameters == null) + { + throw new ArgumentNullException("parameters"); + } + + string computeNodeId = parameters.ComputeNode == null ? parameters.ComputeNodeId : parameters.ComputeNode.Id; + WriteVerbose(string.Format(Resources.ReimageComputeNode, computeNodeId)); + + if (parameters.ComputeNode != null) + { + parameters.ComputeNode.omObject.Reimage(parameters.ReimageOption, parameters.AdditionalBehaviors); + } + else + { + PoolOperations poolOperations = parameters.Context.BatchOMClient.PoolOperations; + poolOperations.Reimage(parameters.PoolId, parameters.ComputeNodeId, parameters.ReimageOption, parameters.AdditionalBehaviors); + } + } } } diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.JobSchedules.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.JobSchedules.cs index 39b9acd6d7ad..fc76ff74b0b6 100644 --- a/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.JobSchedules.cs +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.JobSchedules.cs @@ -127,5 +127,43 @@ public void DeleteJobSchedule(BatchAccountContext context, string jobScheduleId, JobScheduleOperations jobScheduleOperations = context.BatchOMClient.JobScheduleOperations; jobScheduleOperations.DeleteJobSchedule(jobScheduleId, additionBehaviors); } + + /// + /// Enables the specified job schedule. + /// + /// The account to use. + /// The id of the job schedule to enable. + /// Additional client behaviors to perform. + public void EnableJobSchedule(BatchAccountContext context, string jobScheduleId, IEnumerable additionBehaviors = null) + { + if (string.IsNullOrWhiteSpace(jobScheduleId)) + { + throw new ArgumentNullException("jobScheduleId"); + } + + WriteVerbose(string.Format(Resources.EnableJobSchedule, jobScheduleId)); + + JobScheduleOperations jobScheduleOperations = context.BatchOMClient.JobScheduleOperations; + jobScheduleOperations.EnableJobSchedule(jobScheduleId, additionBehaviors); + } + + /// + /// Disables the specified job schedule. + /// + /// The account to use. + /// The id of the job schedule to disable. + /// Additional client behaviors to perform. + public void DisableJobSchedule(BatchAccountContext context, string jobScheduleId, IEnumerable additionBehaviors = null) + { + if (string.IsNullOrWhiteSpace(jobScheduleId)) + { + throw new ArgumentNullException("jobScheduleId"); + } + + WriteVerbose(string.Format(Resources.DisableJobSchedule, jobScheduleId)); + + JobScheduleOperations jobScheduleOperations = context.BatchOMClient.JobScheduleOperations; + jobScheduleOperations.DisableJobSchedule(jobScheduleId, additionBehaviors); + } } } diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Jobs.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Jobs.cs index d68dffd9ba4f..d935a3939a33 100644 --- a/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Jobs.cs +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Jobs.cs @@ -169,5 +169,43 @@ public void DeleteJob(BatchAccountContext context, string jobId, IEnumerable + /// Enables the specified job. + /// + /// The account to use. + /// The id of the job to enable. + /// Additional client behaviors to perform. + public void EnableJob(BatchAccountContext context, string jobId, IEnumerable additionBehaviors = null) + { + if (string.IsNullOrWhiteSpace(jobId)) + { + throw new ArgumentNullException("jobId"); + } + + WriteVerbose(string.Format(Resources.EnableJob, jobId)); + + JobOperations jobOperations = context.BatchOMClient.JobOperations; + jobOperations.EnableJob(jobId, additionBehaviors); + } + + /// + /// Disables the specified job. + /// + /// Specifies the job to disable as well as the job disable option. + public void DisableJob(DisableJobParameters parameters) + { + if (parameters == null) + { + throw new ArgumentNullException("parameters"); + } + + string jobId = parameters.Job == null ? parameters.JobId : parameters.Job.Id; + + WriteVerbose(string.Format(Resources.DisableJob, jobId)); + + JobOperations jobOperations = parameters.Context.BatchOMClient.JobOperations; + jobOperations.DisableJob(jobId, parameters.DisableJobOption, parameters.AdditionalBehaviors); + } } } diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Pools.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Pools.cs index a6ae4e6172d9..fbf85c8464ef 100644 --- a/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Pools.cs +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Models/BatchClient.Pools.cs @@ -237,5 +237,23 @@ public PSAutoScaleEvaluation EvaluateAutoScale(AutoScaleParameters parameters) AutoScaleEvaluation evaluation = poolOperations.EvaluateAutoScale(poolId, parameters.AutoScaleFormula, parameters.AdditionalBehaviors); return new PSAutoScaleEvaluation(evaluation); } + + /// + /// Changes the operating system version of the specified pool. + /// + /// The parameters specifying the pool and target OS version. + public void ChangeOSVersion(ChangeOSVersionParameters parameters) + { + if (parameters == null) + { + throw new ArgumentNullException("parameters"); + } + + string poolId = parameters.Pool == null ? parameters.PoolId : parameters.Pool.Id; + + WriteVerbose(string.Format(Resources.ChangeOSVersion, poolId, parameters.TargetOSVersion)); + PoolOperations poolOperations = parameters.Context.BatchOMClient.PoolOperations; + poolOperations.ChangeOSVersion(poolId, parameters.TargetOSVersion, parameters.AdditionalBehaviors); + } } } diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Models/ChangeOSVersionParameters.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/ChangeOSVersionParameters.cs new file mode 100644 index 000000000000..8644bffbd06d --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Models/ChangeOSVersionParameters.cs @@ -0,0 +1,40 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Batch; +using Microsoft.Azure.Batch.Common; +using System; +using System.Collections.Generic; + +namespace Microsoft.Azure.Commands.Batch.Models +{ + public class ChangeOSVersionParameters : PoolOperationParameters + { + public ChangeOSVersionParameters(BatchAccountContext context, string poolId, PSCloudPool pool, string targetOSVersion, + IEnumerable additionalBehaviors = null) : base(context, poolId, pool, additionalBehaviors) + { + if (string.IsNullOrWhiteSpace(targetOSVersion)) + { + throw new ArgumentNullException("targetOSVersion"); + } + + this.TargetOSVersion = targetOSVersion; + } + + /// + /// The Azure Guest OS version to be installed on the virtual machines in the pool. + /// + public string TargetOSVersion { get; private set; } + } +} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Models/DisableJobParameters.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/DisableJobParameters.cs new file mode 100644 index 000000000000..77197a77f7f6 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Models/DisableJobParameters.cs @@ -0,0 +1,36 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Batch; +using Microsoft.Azure.Batch.Common; +using System; +using System.Collections.Generic; + +namespace Microsoft.Azure.Commands.Batch.Models +{ + public class DisableJobParameters : JobOperationParameters + { + public DisableJobParameters(BatchAccountContext context, string jobId, PSCloudJob job, DisableJobOption disableJobOption, + IEnumerable additionalBehaviors = null) + : base(context, jobId, job, additionalBehaviors) + { + this.DisableJobOption = disableJobOption; + } + + /// + /// Specifies what to do with active tasks associated with the job. + /// + public DisableJobOption DisableJobOption { get; private set; } + } +} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Models/RebootComputeNodeParameters.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/RebootComputeNodeParameters.cs new file mode 100644 index 000000000000..613a96523ec5 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Models/RebootComputeNodeParameters.cs @@ -0,0 +1,34 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Batch; +using Microsoft.Azure.Batch.Common; +using System; +using System.Collections.Generic; + +namespace Microsoft.Azure.Commands.Batch.Models +{ + public class RebootComputeNodeParameters : ComputeNodeOperationParameters + { + public RebootComputeNodeParameters(BatchAccountContext context, string poolId, string computeNodeId, PSComputeNode computeNode, + IEnumerable additionalBehaviors = null) + : base(context, poolId, computeNodeId, computeNode, additionalBehaviors) + { } + + /// + /// Specifies when to reboot the node and what to do with currently running tasks. + /// + public ComputeNodeRebootOption? RebootOption { get; set; } + } +} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Models/ReimageComputeNodeParameters.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Models/ReimageComputeNodeParameters.cs new file mode 100644 index 000000000000..93a975b53b51 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Models/ReimageComputeNodeParameters.cs @@ -0,0 +1,34 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Batch; +using Microsoft.Azure.Batch.Common; +using System; +using System.Collections.Generic; + +namespace Microsoft.Azure.Commands.Batch.Models +{ + public class ReimageComputeNodeParameters : ComputeNodeOperationParameters + { + public ReimageComputeNodeParameters(BatchAccountContext context, string poolId, string computeNodeId, PSComputeNode computeNode, + IEnumerable additionalBehaviors = null) + : base(context, poolId, computeNodeId, computeNode, additionalBehaviors) + { } + + /// + /// Specifies when to reimage the node and what to do with currently running tasks. + /// + public ComputeNodeReimageOption? ReimageOption { get; set; } + } +} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Pools/SetBatchPoolOSVersionCommand.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Pools/SetBatchPoolOSVersionCommand.cs new file mode 100644 index 000000000000..70ed5c563bc9 --- /dev/null +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Pools/SetBatchPoolOSVersionCommand.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 Microsoft.Azure.Batch; +using Microsoft.Azure.Batch.Common; +using Microsoft.Azure.Commands.Batch.Models; +using System; +using System.Management.Automation; +using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; + +namespace Microsoft.Azure.Commands.Batch +{ + [Cmdlet(VerbsCommon.Set, Constants.AzureBatchPoolOSVersion)] + public class SetBatchPoolOSVersionCommand : BatchObjectModelCmdletBase + { + [Parameter(Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "The id of the pool.")] + [ValidateNotNullOrEmpty] + public string Id { get; set; } + + [Parameter(Position = 1, Mandatory = true, HelpMessage = "The Azure Guest OS version to be installed on the virtual machines in the pool.")] + [ValidateNotNullOrEmpty] + public string TargetOSVersion { get; set; } + + public override void ExecuteCmdlet() + { + ChangeOSVersionParameters parameters = new ChangeOSVersionParameters(this.BatchContext, this.Id, null, + this.TargetOSVersion, this.AdditionalBehaviors); + BatchClient.ChangeOSVersion(parameters); + } + } +} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.Designer.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.Designer.cs index 8d2c316e6cf5..ebf520d63f09 100644 --- a/src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.Designer.cs +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.Designer.cs @@ -78,6 +78,15 @@ internal static string BeginMAMLCall { } } + /// + /// Looks up a localized string similar to Changing OS version of pool {0} to {1}.. + /// + internal static string ChangeOSVersion { + get { + return ResourceManager.GetString("ChangeOSVersion", resourceCulture); + } + } + /// /// Looks up a localized string similar to Disabling automatic scaling on pool {0}.. /// @@ -87,6 +96,24 @@ internal static string DisableAutoScale { } } + /// + /// Looks up a localized string similar to Disabling job {0}.. + /// + internal static string DisableJob { + get { + return ResourceManager.GetString("DisableJob", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Disabling job schedule {0}.. + /// + internal static string DisableJobSchedule { + get { + return ResourceManager.GetString("DisableJobSchedule", resourceCulture); + } + } + /// /// Looks up a localized string similar to Enabling automatic scaling on pool {0} using the formula: {1}. /// @@ -96,6 +123,24 @@ internal static string EnableAutoScale { } } + /// + /// Looks up a localized string similar to Enabling job {0}.. + /// + internal static string EnableJob { + get { + return ResourceManager.GetString("EnableJob", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Enabling job schedule {0}.. + /// + internal static string EnableJobSchedule { + get { + return ResourceManager.GetString("EnableJobSchedule", resourceCulture); + } + } + /// /// Looks up a localized string similar to End {0} call to RP. /// @@ -699,6 +744,24 @@ internal static string RBU_RemoveUser { } } + /// + /// Looks up a localized string similar to Rebooting compute node {0}.. + /// + internal static string RebootComputeNode { + get { + return ResourceManager.GetString("RebootComputeNode", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Reimaging compute node {0}.. + /// + internal static string ReimageComputeNode { + get { + return ResourceManager.GetString("ReimageComputeNode", resourceCulture); + } + } + /// /// Looks up a localized string similar to Looking up resource group for account {0}. /// diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.resx b/src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.resx index 585d1db1e443..b92e2ee2a8ca 100644 --- a/src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.resx +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.resx @@ -123,12 +123,27 @@ Begin {0} call to RP + + Changing OS version of pool {0} to {1}. + Disabling automatic scaling on pool {0}. + + Disabling job {0}. + + + Disabling job schedule {0}. + Enabling automatic scaling on pool {0} using the formula: {1} + + Enabling job {0}. + + + Enabling job schedule {0}. + End {0} call to RP @@ -330,6 +345,12 @@ Removing user ... + + Rebooting compute node {0}. + + + Reimaging compute node {0}. + Looking up resource group for account {0} diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Utils/Constants.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Utils/Constants.cs index 34a9e7f40ef4..f4b03d86b933 100644 --- a/src/ResourceManager/AzureBatch/Commands.Batch/Utils/Constants.cs +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Utils/Constants.cs @@ -30,6 +30,7 @@ public class Constants public const string AzureBatchNodeFileContent = "AzureBatchNodeFileContent"; public const string AzureBatchRemoteDesktopProtocolFile = "AzureBatchRemoteDesktopProtocolFile"; public const string AzureBatchAutoScale = "AzureBatchAutoScale"; + public const string AzureBatchPoolOSVersion = "AzureBatchPoolOSVersion"; // Parameter sets public const string IdParameterSet = "Id"; diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/packages.config b/src/ResourceManager/AzureBatch/Commands.Batch/packages.config index 7a59cb958bef..8fa7ba4f6b1b 100644 --- a/src/ResourceManager/AzureBatch/Commands.Batch/packages.config +++ b/src/ResourceManager/AzureBatch/Commands.Batch/packages.config @@ -6,7 +6,7 @@ - + diff --git a/src/ResourceManager/Compute/Commands.Compute.Test/Commands.Compute.Test.csproj b/src/ResourceManager/Compute/Commands.Compute.Test/Commands.Compute.Test.csproj index 3d042cb4ef07..4711bb4a4f4e 100644 --- a/src/ResourceManager/Compute/Commands.Compute.Test/Commands.Compute.Test.csproj +++ b/src/ResourceManager/Compute/Commands.Compute.Test/Commands.Compute.Test.csproj @@ -80,7 +80,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.Framework.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll diff --git a/src/ResourceManager/Compute/Commands.Compute.Test/packages.config b/src/ResourceManager/Compute/Commands.Compute.Test/packages.config index 6c21fea7ffc7..7462c6499e88 100644 --- a/src/ResourceManager/Compute/Commands.Compute.Test/packages.config +++ b/src/ResourceManager/Compute/Commands.Compute.Test/packages.config @@ -9,7 +9,7 @@ - + diff --git a/src/ResourceManager/Compute/Commands.Compute/Commands.Compute.csproj b/src/ResourceManager/Compute/Commands.Compute/Commands.Compute.csproj index 2305ee4dfd3c..fa154d84d775 100644 --- a/src/ResourceManager/Compute/Commands.Compute/Commands.Compute.csproj +++ b/src/ResourceManager/Compute/Commands.Compute/Commands.Compute.csproj @@ -91,7 +91,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/Compute/Commands.Compute/packages.config b/src/ResourceManager/Compute/Commands.Compute/packages.config index a0b9af557430..ff85137d2ff6 100644 --- a/src/ResourceManager/Compute/Commands.Compute/packages.config +++ b/src/ResourceManager/Compute/Commands.Compute/packages.config @@ -10,7 +10,7 @@ - + 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 88153aa4ffae..9ddf0dcfc4b2 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories.Test/Commands.DataFactories.Test.csproj +++ b/src/ResourceManager/DataFactories/Commands.DataFactories.Test/Commands.DataFactories.Test.csproj @@ -69,7 +69,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories.Test/packages.config b/src/ResourceManager/DataFactories/Commands.DataFactories.Test/packages.config index dbb167cc1b12..c9c0094d6808 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories.Test/packages.config +++ b/src/ResourceManager/DataFactories/Commands.DataFactories.Test/packages.config @@ -7,7 +7,7 @@ - + diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/Commands.DataFactories.csproj b/src/ResourceManager/DataFactories/Commands.DataFactories/Commands.DataFactories.csproj index ac9542ce6d9d..b67964b51311 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/Commands.DataFactories.csproj +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/Commands.DataFactories.csproj @@ -67,7 +67,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/packages.config b/src/ResourceManager/DataFactories/Commands.DataFactories/packages.config index 42cd217fa122..6e968733a5db 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/packages.config +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ResourceManager/Dns/Commands.Dns.Test/Commands.Dns.Test.csproj b/src/ResourceManager/Dns/Commands.Dns.Test/Commands.Dns.Test.csproj index f718f84cec9f..41bf729c90e0 100644 --- a/src/ResourceManager/Dns/Commands.Dns.Test/Commands.Dns.Test.csproj +++ b/src/ResourceManager/Dns/Commands.Dns.Test/Commands.Dns.Test.csproj @@ -71,7 +71,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/Dns/Commands.Dns.Test/packages.config b/src/ResourceManager/Dns/Commands.Dns.Test/packages.config index ad88e80737fa..7484391e54ae 100644 --- a/src/ResourceManager/Dns/Commands.Dns.Test/packages.config +++ b/src/ResourceManager/Dns/Commands.Dns.Test/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ResourceManager/Dns/Commands.Dns/Commands.Dns.csproj b/src/ResourceManager/Dns/Commands.Dns/Commands.Dns.csproj index aec80a5f399b..90c854d7d19e 100644 --- a/src/ResourceManager/Dns/Commands.Dns/Commands.Dns.csproj +++ b/src/ResourceManager/Dns/Commands.Dns/Commands.Dns.csproj @@ -104,7 +104,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Data.Edm.5.6.0\lib\net40\Microsoft.Data.Edm.dll diff --git a/src/ResourceManager/Dns/Commands.Dns/packages.config b/src/ResourceManager/Dns/Commands.Dns/packages.config index 128372858626..c80054fab9a1 100644 --- a/src/ResourceManager/Dns/Commands.Dns/packages.config +++ b/src/ResourceManager/Dns/Commands.Dns/packages.config @@ -6,7 +6,7 @@ - + diff --git a/src/ResourceManager/HDInsight/Commands.HDInsight/Commands.HDInsight.csproj b/src/ResourceManager/HDInsight/Commands.HDInsight/Commands.HDInsight.csproj index b88565565f25..7efebfe59878 100644 --- a/src/ResourceManager/HDInsight/Commands.HDInsight/Commands.HDInsight.csproj +++ b/src/ResourceManager/HDInsight/Commands.HDInsight/Commands.HDInsight.csproj @@ -109,7 +109,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/HDInsight/Commands.HDInsight/packages.config b/src/ResourceManager/HDInsight/Commands.HDInsight/packages.config index 00d7a4cf3736..ca7b4a5aadcd 100644 --- a/src/ResourceManager/HDInsight/Commands.HDInsight/packages.config +++ b/src/ResourceManager/HDInsight/Commands.HDInsight/packages.config @@ -6,7 +6,7 @@ - + diff --git a/src/ResourceManager/Insights/Commands.Insights.Test/Commands.Insights.Test.csproj b/src/ResourceManager/Insights/Commands.Insights.Test/Commands.Insights.Test.csproj index cfc78eb83307..1a46d09887ac 100644 --- a/src/ResourceManager/Insights/Commands.Insights.Test/Commands.Insights.Test.csproj +++ b/src/ResourceManager/Insights/Commands.Insights.Test/Commands.Insights.Test.csproj @@ -62,7 +62,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/Insights/Commands.Insights.Test/packages.config b/src/ResourceManager/Insights/Commands.Insights.Test/packages.config index 2de0e51b997b..a34279f4bc3b 100644 --- a/src/ResourceManager/Insights/Commands.Insights.Test/packages.config +++ b/src/ResourceManager/Insights/Commands.Insights.Test/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ResourceManager/Insights/Commands.Insights/Commands.Insights.csproj b/src/ResourceManager/Insights/Commands.Insights/Commands.Insights.csproj index cfe41ca7f8ca..09afb9cbe47e 100644 --- a/src/ResourceManager/Insights/Commands.Insights/Commands.Insights.csproj +++ b/src/ResourceManager/Insights/Commands.Insights/Commands.Insights.csproj @@ -61,7 +61,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/Insights/Commands.Insights/packages.config b/src/ResourceManager/Insights/Commands.Insights/packages.config index a0f05c06f9a5..38ad9bb33115 100644 --- a/src/ResourceManager/Insights/Commands.Insights/packages.config +++ b/src/ResourceManager/Insights/Commands.Insights/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ResourceManager/KeyVault/Commands.KeyVault.Test/Commands.KeyVault.Test.csproj b/src/ResourceManager/KeyVault/Commands.KeyVault.Test/Commands.KeyVault.Test.csproj index 874894e8651b..232e853498db 100644 --- a/src/ResourceManager/KeyVault/Commands.KeyVault.Test/Commands.KeyVault.Test.csproj +++ b/src/ResourceManager/KeyVault/Commands.KeyVault.Test/Commands.KeyVault.Test.csproj @@ -84,7 +84,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/KeyVault/Commands.KeyVault.Test/packages.config b/src/ResourceManager/KeyVault/Commands.KeyVault.Test/packages.config index afb0f60e9f14..41e1fc2735bc 100644 --- a/src/ResourceManager/KeyVault/Commands.KeyVault.Test/packages.config +++ b/src/ResourceManager/KeyVault/Commands.KeyVault.Test/packages.config @@ -8,7 +8,7 @@ - + diff --git a/src/ResourceManager/KeyVault/Commands.KeyVault/Commands.KeyVault.csproj b/src/ResourceManager/KeyVault/Commands.KeyVault/Commands.KeyVault.csproj index 93e652ad9c12..4937aa846f9d 100644 --- a/src/ResourceManager/KeyVault/Commands.KeyVault/Commands.KeyVault.csproj +++ b/src/ResourceManager/KeyVault/Commands.KeyVault/Commands.KeyVault.csproj @@ -136,7 +136,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Data.Edm.5.6.0\lib\net40\Microsoft.Data.Edm.dll diff --git a/src/ResourceManager/KeyVault/Commands.KeyVault/packages.config b/src/ResourceManager/KeyVault/Commands.KeyVault/packages.config index 5d4a31f52d93..718631a5f1f6 100644 --- a/src/ResourceManager/KeyVault/Commands.KeyVault/packages.config +++ b/src/ResourceManager/KeyVault/Commands.KeyVault/packages.config @@ -8,7 +8,7 @@ - + diff --git a/src/ResourceManager/Network/Commands.Network.Test/Commands.Network.Test.csproj b/src/ResourceManager/Network/Commands.Network.Test/Commands.Network.Test.csproj index 0d84ae2d1018..2a9b44169db3 100644 --- a/src/ResourceManager/Network/Commands.Network.Test/Commands.Network.Test.csproj +++ b/src/ResourceManager/Network/Commands.Network.Test/Commands.Network.Test.csproj @@ -72,7 +72,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.Framework.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll diff --git a/src/ResourceManager/Network/Commands.Network.Test/packages.config b/src/ResourceManager/Network/Commands.Network.Test/packages.config index 4d6eff12c01e..828af3c03c36 100644 --- a/src/ResourceManager/Network/Commands.Network.Test/packages.config +++ b/src/ResourceManager/Network/Commands.Network.Test/packages.config @@ -8,7 +8,7 @@ - + diff --git a/src/ResourceManager/Network/Commands.Network/Commands.Network.csproj b/src/ResourceManager/Network/Commands.Network/Commands.Network.csproj index 6858f345a2f5..d38296bc5d70 100644 --- a/src/ResourceManager/Network/Commands.Network/Commands.Network.csproj +++ b/src/ResourceManager/Network/Commands.Network/Commands.Network.csproj @@ -78,7 +78,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/Network/Commands.Network/packages.config b/src/ResourceManager/Network/Commands.Network/packages.config index ad2e561da85a..be09a0a4e404 100644 --- a/src/ResourceManager/Network/Commands.Network/packages.config +++ b/src/ResourceManager/Network/Commands.Network/packages.config @@ -9,7 +9,7 @@ - + diff --git a/src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/Commands.OperationalInsights.Test.csproj b/src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/Commands.OperationalInsights.Test.csproj index bd6afa293fc2..2debaea91b7d 100644 --- a/src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/Commands.OperationalInsights.Test.csproj +++ b/src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/Commands.OperationalInsights.Test.csproj @@ -65,7 +65,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/packages.config b/src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/packages.config index a85c4a2abead..e7b3325db49f 100644 --- a/src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/packages.config +++ b/src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/packages.config @@ -7,7 +7,7 @@ - + diff --git a/src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Commands.OperationalInsights.csproj b/src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Commands.OperationalInsights.csproj index cb725f9adab1..bceda64f8cba 100644 --- a/src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Commands.OperationalInsights.csproj +++ b/src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Commands.OperationalInsights.csproj @@ -66,7 +66,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll diff --git a/src/ResourceManager/OperationalInsights/Commands.OperationalInsights/packages.config b/src/ResourceManager/OperationalInsights/Commands.OperationalInsights/packages.config index fcb8ddb83d66..b13cfe99dba7 100644 --- a/src/ResourceManager/OperationalInsights/Commands.OperationalInsights/packages.config +++ b/src/ResourceManager/OperationalInsights/Commands.OperationalInsights/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ResourceManager/RedisCache/Commands.RedisCache.Test/Commands.RedisCache.Test.csproj b/src/ResourceManager/RedisCache/Commands.RedisCache.Test/Commands.RedisCache.Test.csproj index 9abf861c6933..0b1c78317647 100644 --- a/src/ResourceManager/RedisCache/Commands.RedisCache.Test/Commands.RedisCache.Test.csproj +++ b/src/ResourceManager/RedisCache/Commands.RedisCache.Test/Commands.RedisCache.Test.csproj @@ -62,7 +62,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/RedisCache/Commands.RedisCache.Test/packages.config b/src/ResourceManager/RedisCache/Commands.RedisCache.Test/packages.config index 98cacc8430a0..783e71d7833a 100644 --- a/src/ResourceManager/RedisCache/Commands.RedisCache.Test/packages.config +++ b/src/ResourceManager/RedisCache/Commands.RedisCache.Test/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ResourceManager/RedisCache/Commands.RedisCache/Commands.RedisCache.csproj b/src/ResourceManager/RedisCache/Commands.RedisCache/Commands.RedisCache.csproj index 62dc65e047a7..d4d4d015ab09 100644 --- a/src/ResourceManager/RedisCache/Commands.RedisCache/Commands.RedisCache.csproj +++ b/src/ResourceManager/RedisCache/Commands.RedisCache/Commands.RedisCache.csproj @@ -65,7 +65,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll diff --git a/src/ResourceManager/RedisCache/Commands.RedisCache/packages.config b/src/ResourceManager/RedisCache/Commands.RedisCache/packages.config index 9a41d3447f98..85a5943532bd 100644 --- a/src/ResourceManager/RedisCache/Commands.RedisCache/packages.config +++ b/src/ResourceManager/RedisCache/Commands.RedisCache/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/Commands.Resources.Test.csproj b/src/ResourceManager/Resources/Commands.Resources.Test/Commands.Resources.Test.csproj index f38983522820..06d18c3518b2 100644 --- a/src/ResourceManager/Resources/Commands.Resources.Test/Commands.Resources.Test.csproj +++ b/src/ResourceManager/Resources/Commands.Resources.Test/Commands.Resources.Test.csproj @@ -70,7 +70,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.Framework.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll @@ -306,6 +306,9 @@ PreserveNewest + + Always + Always diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ActiveDirectoryTests.cs b/src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ActiveDirectoryTests.cs index 860fd5da2a68..33bebcd08c8a 100644 --- a/src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ActiveDirectoryTests.cs +++ b/src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ActiveDirectoryTests.cs @@ -108,6 +108,32 @@ public void TestGetADGroupWithObjectId() TestUtilities.GetCurrentMethodName()); } + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestGetADGroupSecurityEnabled() + { + const string scriptMethod = "Test-GetADGroupSecurityEnabled '{0}' '{1}'"; + Group newGroup = null; + var controllerAdmin = ResourcesController.NewInstance; + + controllerAdmin.RunPsTestWorkflow( + // scriptBuilder + () => + { + newGroup = CreateNewAdGroup(controllerAdmin); + return new[] { string.Format(scriptMethod, newGroup.ObjectId, newGroup.SecurityEnabled) }; + }, + // initialize + null, + // cleanup + () => + { + DeleteAdGroup(controllerAdmin, newGroup); + }, + TestUtilities.GetCallingClass(), + TestUtilities.GetCurrentMethodName()); + } + [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetADGroupWithBadObjectId() diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ActiveDirectoryTests.ps1 b/src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ActiveDirectoryTests.ps1 index 972084637f46..b6124abb6a2c 100644 --- a/src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ActiveDirectoryTests.ps1 +++ b/src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ActiveDirectoryTests.ps1 @@ -78,6 +78,24 @@ function Test-GetADGroupWithObjectId Assert-NotNull($groups[0].DisplayName) } +<# +.SYNOPSIS +Tests getting Active Directory group with security enabled . +#> +function Test-GetADGroupSecurityEnabled +{ + param([string]$objectId, [string]$securityEnabled) + + # Test + $groups = Get-AzureADGroup -ObjectId $objectId + + # Assert + Assert-AreEqual $groups.Count 1 + Assert-AreEqual $groups[0].Id $objectId + Assert-AreEqual $groups[0].SecurityEnabled $securityEnabled + Assert-NotNull($groups[0].DisplayName) +} + <# .SYNOPSIS Tests getting Active Directory groups. diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ActiveDirectoryTests/TestGetADGroupSecurityEnabled.json b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ActiveDirectoryTests/TestGetADGroupSecurityEnabled.json new file mode 100644 index 000000000000..9bc5d1eee118 --- /dev/null +++ b/src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ActiveDirectoryTests/TestGetADGroupSecurityEnabled.json @@ -0,0 +1,237 @@ +{ + "Entries": [ + { + "RequestUri": "/73bf5eac-7be2-4c8c-b3eb-9cc4aa201100/groups?api-version=1.42-previewInternal", + "EncodedRequestUri": "LzczYmY1ZWFjLTdiZTItNGM4Yy1iM2ViLTljYzRhYTIwMTEwMC9ncm91cHM/YXBpLXZlcnNpb249MS40Mi1wcmV2aWV3SW50ZXJuYWw=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"displayName\": \"adgroup6035\",\r\n \"mailEnabled\": false,\r\n \"mailNickname\": \"adgroupmail8751\",\r\n \"securityEnabled\": true\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "127" + ], + "User-Agent": [ + "Microsoft.Azure.Graph.RBAC.GraphRbacManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://graph.ppe.windows.net/73bf5eac-7be2-4c8c-b3eb-9cc4aa201100/$metadata#directoryObjects/Microsoft.WindowsAzure.ActiveDirectory.Group/@Element\",\r\n \"odata.type\": \"Microsoft.WindowsAzure.ActiveDirectory.Group\",\r\n \"objectType\": \"Group\",\r\n \"objectId\": \"0b7e4247-de60-405c-9c04-6cc9721539a1\",\r\n \"softDeletionTimestamp\": null,\r\n \"appMetadata\": null,\r\n \"exchangeResources\": [],\r\n \"description\": null,\r\n \"dirSyncEnabled\": null,\r\n \"displayName\": \"adgroup6035\",\r\n \"groupType\": null,\r\n \"isPublic\": null,\r\n \"lastDirSyncTime\": null,\r\n \"licenseAssignment\": [],\r\n \"mail\": null,\r\n \"mailNickname\": \"adgroupmail8751\",\r\n \"mailEnabled\": false,\r\n \"onPremiseSecurityIdentifier\": null,\r\n \"provisioningErrors\": [],\r\n \"proxyAddresses\": [],\r\n \"securityEnabled\": true,\r\n \"sharepointResources\": []\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "710" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "ocp-aad-diagnostics-server-name": [ + "p26FZwHhWTf12W1XQXK+GyAVGWe+soGFePh6Rq4qHrI=" + ], + "request-id": [ + "3a6f6342-c8fa-4e0a-95f1-684e1804c4b0" + ], + "client-request-id": [ + "9663327c-670b-4f78-9eca-0aa9ee4e4c1a" + ], + "x-ms-gateway-rewrite": [ + "false" + ], + "x-ms-dirapi-data-contract-version": [ + "1.42-previewInternal" + ], + "ocp-aad-session-key": [ + "CxL0SUxsw4WnJVmlwroRNjovfpfYLZPQIunngNXUsC6mZOmMq1-YKykQNSBVLb2fzsD7k7DAlVXzQ2Ui5pGs1aDPLo7FC6muKk1Ghbi2V7ub9RICbzNAK1a08grMzvXX94Q2JPOpxwGmfaDhBmbPDg.6RPP7LGnF2_VC2CkQQEtp8zagjFfcy386N5GtNaSbcY" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Cache-Control": [ + "no-cache" + ], + "Location": [ + "https://graph.ppe.windows.net/73bf5eac-7be2-4c8c-b3eb-9cc4aa201100/directoryObjects/0b7e4247-de60-405c-9c04-6cc9721539a1/Microsoft.WindowsAzure.ActiveDirectory.Group" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET", + "ASP.NET" + ], + "Date": [ + "Tue, 18 Aug 2015 16:56:03 GMT" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/73bf5eac-7be2-4c8c-b3eb-9cc4aa201100/groups/0b7e4247-de60-405c-9c04-6cc9721539a1?api-version=1.42-previewInternal", + "EncodedRequestUri": "LzczYmY1ZWFjLTdiZTItNGM4Yy1iM2ViLTljYzRhYTIwMTEwMC9ncm91cHMvMGI3ZTQyNDctZGU2MC00MDVjLTljMDQtNmNjOTcyMTUzOWExP2FwaS12ZXJzaW9uPTEuNDItcHJldmlld0ludGVybmFs", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Graph.RBAC.GraphRbacManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://graph.ppe.windows.net/73bf5eac-7be2-4c8c-b3eb-9cc4aa201100/$metadata#directoryObjects/Microsoft.WindowsAzure.ActiveDirectory.Group/@Element\",\r\n \"odata.type\": \"Microsoft.WindowsAzure.ActiveDirectory.Group\",\r\n \"objectType\": \"Group\",\r\n \"objectId\": \"0b7e4247-de60-405c-9c04-6cc9721539a1\",\r\n \"softDeletionTimestamp\": null,\r\n \"appMetadata\": null,\r\n \"exchangeResources\": [],\r\n \"description\": null,\r\n \"dirSyncEnabled\": null,\r\n \"displayName\": \"adgroup6035\",\r\n \"groupType\": null,\r\n \"isPublic\": null,\r\n \"lastDirSyncTime\": null,\r\n \"licenseAssignment\": [],\r\n \"mail\": null,\r\n \"mailNickname\": \"adgroupmail8751\",\r\n \"mailEnabled\": false,\r\n \"onPremiseSecurityIdentifier\": null,\r\n \"provisioningErrors\": [],\r\n \"proxyAddresses\": [],\r\n \"securityEnabled\": true,\r\n \"sharepointResources\": []\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "710" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "ocp-aad-diagnostics-server-name": [ + "vhYgA4yOUvjGnawHsDLVJznXNq0HF1intYYZGiD8RqA=" + ], + "request-id": [ + "fcfc812f-4c75-4050-a26d-13319ea6a584" + ], + "client-request-id": [ + "e2cbd040-d98a-489a-9ce9-d2256e485035" + ], + "x-ms-gateway-rewrite": [ + "false" + ], + "x-ms-dirapi-data-contract-version": [ + "1.42-previewInternal" + ], + "ocp-aad-session-key": [ + "cDC4lcRcPV6FLoN7Gd_FKWd7XvI78lkKeJxpz9UibQmAqFRy5vBuc_PpkyW-yB-BuWl033MW-AQ-i6rWNItLO92wDzEd2t-hFwl7VWswVo-fAwkZ5H4CiGTePIOpE1GpE6j2vkhEYI7MLOshQnayfg.k9Tz72L20M2yv4kgOIEDIPaY0qfEHdBsM33mTfekIMo" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET", + "ASP.NET" + ], + "Date": [ + "Tue, 18 Aug 2015 16:56:03 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/73bf5eac-7be2-4c8c-b3eb-9cc4aa201100/groups/0b7e4247-de60-405c-9c04-6cc9721539a1?api-version=1.42-previewInternal", + "EncodedRequestUri": "LzczYmY1ZWFjLTdiZTItNGM4Yy1iM2ViLTljYzRhYTIwMTEwMC9ncm91cHMvMGI3ZTQyNDctZGU2MC00MDVjLTljMDQtNmNjOTcyMTUzOWExP2FwaS12ZXJzaW9uPTEuNDItcHJldmlld0ludGVybmFs", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Graph.RBAC.GraphRbacManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "ocp-aad-diagnostics-server-name": [ + "p26FZwHhWTf12W1XQXK+GyAVGWe+soGFePh6Rq4qHrI=" + ], + "request-id": [ + "5d694c7d-a5b3-4598-9a2e-13ec7647d942" + ], + "client-request-id": [ + "89e4709f-c962-42bf-b703-df5180ec3cf2" + ], + "x-ms-gateway-rewrite": [ + "false" + ], + "x-ms-dirapi-data-contract-version": [ + "1.42-previewInternal" + ], + "ocp-aad-session-key": [ + "U2xkwifbpzW18YgrT01D0Z0Jb7sN55yzRIkX3Ok355EEVR1Yehs4jYQL_t5I-WyXYQQAGsEasX5GDadld9N8TljR-gJH2Z98wXMZ4mCqaLNAtxwuoN8Fqv1njzKiEazRobH2UuaBsRgQLqIB2Oxl5Q.99_JDq-Z8uaz1-CCXjpdINoQYBRW_HUwqjn4M3snDTE" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "1.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET", + "ASP.NET" + ], + "Date": [ + "Tue, 18 Aug 2015 16:56:03 GMT" + ] + }, + "StatusCode": 204 + } + ], + "Names": { + "CreateNewAdGroup": [ + "adgroup6035", + "adgroupmail8751" + ] + }, + "Variables": { + "SubscriptionId": "83ff500d-38ad-4a36-a26b-f500be74b250", + "TenantId": "73bf5eac-7be2-4c8c-b3eb-9cc4aa201100", + "Domain": "aztestorg067.ccsctp.net" + } +} \ No newline at end of file diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/packages.config b/src/ResourceManager/Resources/Commands.Resources.Test/packages.config index f9b4b985877e..73ecc0fe3af6 100644 --- a/src/ResourceManager/Resources/Commands.Resources.Test/packages.config +++ b/src/ResourceManager/Resources/Commands.Resources.Test/packages.config @@ -7,7 +7,7 @@ - + diff --git a/src/ResourceManager/Resources/Commands.Resources/Commands.Resources.csproj b/src/ResourceManager/Resources/Commands.Resources/Commands.Resources.csproj index 9a897b6d0265..08d91354ed46 100644 --- a/src/ResourceManager/Resources/Commands.Resources/Commands.Resources.csproj +++ b/src/ResourceManager/Resources/Commands.Resources/Commands.Resources.csproj @@ -74,7 +74,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll diff --git a/src/ResourceManager/Resources/Commands.Resources/Models.ActiveDirectory/ActiveDirectoryClientExtensions.cs b/src/ResourceManager/Resources/Commands.Resources/Models.ActiveDirectory/ActiveDirectoryClientExtensions.cs index 3eaedadaccf0..59f2b4f10cc4 100644 --- a/src/ResourceManager/Resources/Commands.Resources/Models.ActiveDirectory/ActiveDirectoryClientExtensions.cs +++ b/src/ResourceManager/Resources/Commands.Resources/Models.ActiveDirectory/ActiveDirectoryClientExtensions.cs @@ -60,7 +60,8 @@ public static PSADObject ToPSADObject(this AADObject obj) { DisplayName = obj.DisplayName, Type = obj.ObjectType, - Id = new Guid(obj.ObjectId)/*, + Id = new Guid(obj.ObjectId), + SecurityEnabled = obj.SecurityEnabled/*, Mail = group.Mail*/ }; @@ -101,7 +102,8 @@ public static PSADGroup ToPSADGroup(this Group group) return new PSADGroup() { DisplayName = group.DisplayName, - Id = new Guid(group.ObjectId)/*, + Id = new Guid(group.ObjectId), + SecurityEnabled = group.SecurityEnabled/*, Mail = group.Mail*/ }; } diff --git a/src/ResourceManager/Resources/Commands.Resources/Models.ActiveDirectory/PSADGroup.cs b/src/ResourceManager/Resources/Commands.Resources/Models.ActiveDirectory/PSADGroup.cs index 2a705cec6a64..7b9fa4f109c7 100644 --- a/src/ResourceManager/Resources/Commands.Resources/Models.ActiveDirectory/PSADGroup.cs +++ b/src/ResourceManager/Resources/Commands.Resources/Models.ActiveDirectory/PSADGroup.cs @@ -17,5 +17,7 @@ namespace Microsoft.Azure.Commands.Resources.Models.ActiveDirectory public class PSADGroup : PSADObject { public string Mail { get; set; } + + public bool? SecurityEnabled { get; set; } } } diff --git a/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/GalleryTemplatesClient.cs b/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/GalleryTemplatesClient.cs index 458e4a3106c1..51043c6f6dfd 100644 --- a/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/GalleryTemplatesClient.cs +++ b/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/GalleryTemplatesClient.cs @@ -278,6 +278,26 @@ public Dictionary ParseTemplateParameterFileCon return parameters; } + public Dictionary ParseTemplateParameterContent(string templateParameterContent) + { + Dictionary parameters = new Dictionary(); + + if (!string.IsNullOrEmpty(templateParameterContent)) + { + try + { + parameters = JsonConvert.DeserializeObject>(templateParameterContent); + } + catch (JsonSerializationException) + { + parameters = new Dictionary( + JsonConvert.DeserializeObject(templateParameterContent).Parameters); + } + } + + return parameters; + } + private RuntimeDefinedParameterDictionary ParseTemplateAndExtractParameters(string templateContent, Hashtable templateParameterObject, string templateParameterFilePath, string[] staticParameters) { RuntimeDefinedParameterDictionary dynamicParameters = new RuntimeDefinedParameterDictionary(); @@ -315,6 +335,11 @@ private RuntimeDefinedParameterDictionary ParseTemplateAndExtractParameters(stri var parametersFromFile = ParseTemplateParameterFileContents(templateParameterFilePath); UpdateParametersWithObject(dynamicParameters, new Hashtable(parametersFromFile)); } + if (templateParameterFilePath != null && Uri.IsWellFormedUriString(templateParameterFilePath, UriKind.Absolute)) + { + var parametersFromUri = ParseTemplateParameterContent(GeneralUtilities.DownloadFile(templateParameterFilePath)); + UpdateParametersWithObject(dynamicParameters, new Hashtable(parametersFromUri)); + } return dynamicParameters; } diff --git a/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/ResourceClient.cs b/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/ResourceClient.cs index e8379a084db6..b3b090b326ed 100644 --- a/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/ResourceClient.cs +++ b/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/ResourceClient.cs @@ -329,12 +329,41 @@ private Deployment CreateBasicDeployment(ValidatePSResourceGroupDeploymentParame Deployment deployment = new Deployment { Properties = new DeploymentProperties { - Mode = deploymentMode, - Template = GetTemplate(parameters.TemplateFile, parameters.GalleryTemplateIdentity), - Parameters = GetDeploymentParameters(parameters.TemplateParameterObject) + Mode = deploymentMode } }; + if (Uri.IsWellFormedUriString(parameters.TemplateFile, UriKind.Absolute)) + { + deployment.Properties.TemplateLink = new TemplateLink + { + Uri = new Uri(parameters.TemplateFile) + }; + } + else if (!string.IsNullOrEmpty(parameters.GalleryTemplateIdentity)) + { + deployment.Properties.TemplateLink = new TemplateLink + { + Uri = new Uri(GalleryTemplatesClient.GetGalleryTemplateFile(parameters.GalleryTemplateIdentity)) + }; + } + else + { + deployment.Properties.Template = FileUtilities.DataStore.ReadFileAsText(parameters.TemplateFile); + } + + if (Uri.IsWellFormedUriString(parameters.ParameterUri, UriKind.Absolute)) + { + deployment.Properties.ParametersLink = new ParametersLink + { + Uri = new Uri(parameters.ParameterUri) + }; + } + else + { + deployment.Properties.Parameters = GetDeploymentParameters(parameters.TemplateParameterObject); + } + return deployment; } diff --git a/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/ResourceWithParameterBaseCmdlet.cs b/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/ResourceWithParameterBaseCmdlet.cs index 07585cd05981..33ceac142058 100644 --- a/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/ResourceWithParameterBaseCmdlet.cs +++ b/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/ResourceWithParameterBaseCmdlet.cs @@ -32,10 +32,13 @@ public abstract class ResourceWithParameterBaseCmdlet : ResourcesBaseCmdlet protected const string BaseParameterSetName = "Default"; protected const string GalleryTemplateParameterObjectParameterSetName = "Deployment via Gallery and template parameters object"; protected const string GalleryTemplateParameterFileParameterSetName = "Deployment via Gallery and template parameters file"; + protected const string GalleryTemplateParameterUriParameterSetName = "Deployment via Gallery and template parameters uri"; protected const string TemplateFileParameterObjectParameterSetName = "Deployment via template file and template parameters object"; protected const string TemplateFileParameterFileParameterSetName = "Deployment via template file and template parameters file"; + protected const string TemplateFileParameterUriParameterSetName = "Deployment via template file template parameters uri"; protected const string TemplateUriParameterObjectParameterSetName = "Deployment via template uri and template parameters object"; protected const string TemplateUriParameterFileParameterSetName = "Deployment via template uri and template parameters file"; + protected const string TemplateUriParameterUriParameterSetName = "Deployment via template uri and template parameters uri"; protected const string ParameterlessTemplateFileParameterSetName = "Deployment via template file without parameters"; protected const string ParameterlessGalleryTemplateParameterSetName = "Deployment via Gallery without parameters"; protected const string ParameterlessTemplateUriParameterSetName = "Deployment via template uri without parameters"; @@ -71,10 +74,21 @@ protected ResourceWithParameterBaseCmdlet() [ValidateNotNullOrEmpty] public string TemplateParameterFile { get; set; } + [Parameter(ParameterSetName = GalleryTemplateParameterUriParameterSetName, + Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Uri to the template parameter file.")] + [Parameter(ParameterSetName = TemplateFileParameterUriParameterSetName, + Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Uri to the template parameter file.")] + [Parameter(ParameterSetName = TemplateUriParameterUriParameterSetName, + Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Uri to the template parameter file.")] + [ValidateNotNullOrEmpty] + public string TemplateParameterUri { get; set; } + [Parameter(ParameterSetName = GalleryTemplateParameterObjectParameterSetName, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Name of the template in the gallery.")] [Parameter(ParameterSetName = GalleryTemplateParameterFileParameterSetName, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Name of the template in the gallery.")] + [Parameter(ParameterSetName = GalleryTemplateParameterUriParameterSetName, + Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Name of the template in the gallery.")] [Parameter(ParameterSetName = ParameterlessGalleryTemplateParameterSetName, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Name of the template in the gallery.")] [ValidateNotNullOrEmpty] @@ -84,6 +98,8 @@ protected ResourceWithParameterBaseCmdlet() Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Local path to the template file.")] [Parameter(ParameterSetName = TemplateFileParameterFileParameterSetName, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Local path to the template file.")] + [Parameter(ParameterSetName = TemplateFileParameterUriParameterSetName, + Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Local path to the template file.")] [Parameter(ParameterSetName = ParameterlessTemplateFileParameterSetName, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Local path to the template file.")] [ValidateNotNullOrEmpty] @@ -93,17 +109,21 @@ protected ResourceWithParameterBaseCmdlet() Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Uri to the template file.")] [Parameter(ParameterSetName = TemplateUriParameterFileParameterSetName, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Uri to the template file.")] + [Parameter(ParameterSetName = TemplateUriParameterUriParameterSetName, + Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Uri to the template file.")] [Parameter(ParameterSetName = ParameterlessTemplateUriParameterSetName, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Uri to the template file.")] [ValidateNotNullOrEmpty] public string TemplateUri { get; set; } [Parameter(ParameterSetName = TemplateFileParameterObjectParameterSetName, - Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The storage account which the cmdlet to upload the template file to. If not specified, the current storage account of the subscription will be used.")] + Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The storage account which the cmdlet should use to upload the template file to. If not specified, the current storage account of the subscription will be used.")] [Parameter(ParameterSetName = TemplateFileParameterFileParameterSetName, - Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The storage account which the cmdlet to upload the template file to. If not specified, the current storage account of the subscription will be used.")] + Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The storage account which the cmdlet should use to upload the template file to. If not specified, the current storage account of the subscription will be used.")] + [Parameter(ParameterSetName = TemplateFileParameterUriParameterSetName, + Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The storage account which the cmdlet should use to upload the template file to. If not specified, the current storage account of the subscription will be used.")] [Parameter(ParameterSetName = ParameterlessTemplateFileParameterSetName, - Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The storage account which the cmdlet to upload the template file to. If not specified, the current storage account of the subscription will be used.")] + Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The storage account which the cmdlet should use to upload the template file to. If not specified, the current storage account of the subscription will be used.")] [ValidateNotNullOrEmpty] public string StorageAccountName { get; set; } @@ -141,31 +161,64 @@ public object GetDynamicParameters() !GalleryTemplateIdentity.Equals(galleryTemplateName, StringComparison.OrdinalIgnoreCase)) { galleryTemplateName = GalleryTemplateIdentity; - dynamicParameters = GalleryTemplatesClient.GetTemplateParametersFromGallery( - GalleryTemplateIdentity, - TemplateParameterObject, - this.TryResolvePath(TemplateParameterFile), - MyInvocation.MyCommand.Parameters.Keys.ToArray()); + if(string.IsNullOrEmpty(TemplateParameterUri)) + { + dynamicParameters = GalleryTemplatesClient.GetTemplateParametersFromGallery( + GalleryTemplateIdentity, + TemplateParameterObject, + this.TryResolvePath(TemplateParameterFile), + MyInvocation.MyCommand.Parameters.Keys.ToArray()); + } + else + { + dynamicParameters = GalleryTemplatesClient.GetTemplateParametersFromGallery( + GalleryTemplateIdentity, + TemplateParameterObject, + TemplateParameterUri, + MyInvocation.MyCommand.Parameters.Keys.ToArray()); + } } else if (!string.IsNullOrEmpty(TemplateFile) && !TemplateFile.Equals(templateFile, StringComparison.OrdinalIgnoreCase)) { templateFile = TemplateFile; - dynamicParameters = GalleryTemplatesClient.GetTemplateParametersFromFile( - this.TryResolvePath(TemplateFile), - TemplateParameterObject, - this.TryResolvePath(TemplateParameterFile), - MyInvocation.MyCommand.Parameters.Keys.ToArray()); + if (string.IsNullOrEmpty(TemplateParameterUri)) + { + dynamicParameters = GalleryTemplatesClient.GetTemplateParametersFromFile( + this.TryResolvePath(TemplateFile), + TemplateParameterObject, + this.TryResolvePath(TemplateParameterFile), + MyInvocation.MyCommand.Parameters.Keys.ToArray()); + } + else + { + dynamicParameters = GalleryTemplatesClient.GetTemplateParametersFromFile( + this.TryResolvePath(TemplateFile), + TemplateParameterObject, + TemplateParameterUri, + MyInvocation.MyCommand.Parameters.Keys.ToArray()); + } } else if (!string.IsNullOrEmpty(TemplateUri) && !TemplateUri.Equals(templateUri, StringComparison.OrdinalIgnoreCase)) { templateUri = TemplateUri; - dynamicParameters = GalleryTemplatesClient.GetTemplateParametersFromFile( - TemplateUri, - TemplateParameterObject, - this.TryResolvePath(TemplateParameterFile), - MyInvocation.MyCommand.Parameters.Keys.ToArray()); + if (string.IsNullOrEmpty(TemplateParameterUri)) + { + dynamicParameters = GalleryTemplatesClient.GetTemplateParametersFromFile( + TemplateUri, + TemplateParameterObject, + this.TryResolvePath(TemplateParameterFile), + MyInvocation.MyCommand.Parameters.Keys.ToArray()); + } + else + { + dynamicParameters = GalleryTemplatesClient.GetTemplateParametersFromFile( + TemplateUri, + TemplateParameterObject, + TemplateParameterUri, + MyInvocation.MyCommand.Parameters.Keys.ToArray()); + } } return dynamicParameters; diff --git a/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/ValidatePSResourceGroupDeploymentParameters.cs b/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/ValidatePSResourceGroupDeploymentParameters.cs index 8d9c9c3d913e..c1b8f40081fd 100644 --- a/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/ValidatePSResourceGroupDeploymentParameters.cs +++ b/src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/ValidatePSResourceGroupDeploymentParameters.cs @@ -26,6 +26,8 @@ public class ValidatePSResourceGroupDeploymentParameters public Hashtable TemplateParameterObject { get; set; } + public string ParameterUri { get; set; } + public string TemplateVersion { get; set; } public string StorageAccountName { get; set; } diff --git a/src/ResourceManager/Resources/Commands.Resources/ResourceGroupDeployments/NewAzureResourceGroupDeploymentCommand.cs b/src/ResourceManager/Resources/Commands.Resources/ResourceGroupDeployments/NewAzureResourceGroupDeploymentCommand.cs index 3edb04bcd9d9..acf6650971c9 100644 --- a/src/ResourceManager/Resources/Commands.Resources/ResourceGroupDeployments/NewAzureResourceGroupDeploymentCommand.cs +++ b/src/ResourceManager/Resources/Commands.Resources/ResourceGroupDeployments/NewAzureResourceGroupDeploymentCommand.cs @@ -56,6 +56,7 @@ public override void ExecuteCmdlet() GalleryTemplateIdentity = GalleryTemplateIdentity, TemplateFile = TemplateUri ?? this.TryResolvePath(TemplateFile), TemplateParameterObject = GetTemplateParameterObject(TemplateParameterObject), + ParameterUri = TemplateParameterUri, TemplateVersion = TemplateVersion, StorageAccountName = StorageAccountName }; diff --git a/src/ResourceManager/Resources/Commands.Resources/Templates/TestAzureResourceGroupTemplateCommand.cs b/src/ResourceManager/Resources/Commands.Resources/Templates/TestAzureResourceGroupTemplateCommand.cs index e6cd93adced3..d1b743791b85 100644 --- a/src/ResourceManager/Resources/Commands.Resources/Templates/TestAzureResourceGroupTemplateCommand.cs +++ b/src/ResourceManager/Resources/Commands.Resources/Templates/TestAzureResourceGroupTemplateCommand.cs @@ -46,6 +46,7 @@ public override void ExecuteCmdlet() GalleryTemplateIdentity = GalleryTemplateIdentity, TemplateFile = TemplateUri ?? this.TryResolvePath(TemplateFile), TemplateParameterObject = GetTemplateParameterObject(TemplateParameterObject), + ParameterUri = TemplateParameterUri, TemplateVersion = TemplateVersion, StorageAccountName = StorageAccountName }; diff --git a/src/ResourceManager/Resources/Commands.Resources/packages.config b/src/ResourceManager/Resources/Commands.Resources/packages.config index 47996cddc464..054f506a17b6 100644 --- a/src/ResourceManager/Resources/Commands.Resources/packages.config +++ b/src/ResourceManager/Resources/Commands.Resources/packages.config @@ -7,7 +7,7 @@ - + diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/Commands.SiteRecovery.Test.csproj b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/Commands.SiteRecovery.Test.csproj index 61fea4117b4e..79d82ace197a 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/Commands.SiteRecovery.Test.csproj +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/Commands.SiteRecovery.Test.csproj @@ -37,7 +37,7 @@ ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.1.3-preview\lib\net45\Microsoft.Azure.Common.Authentication.dll - ..\..\..\packages\Microsoft.Azure.Management.SiteRecovery.0.1.0-preview\lib\net40\Microsoft.Azure.Management.SiteRecovery.dll + ..\..\..\packages\Microsoft.Azure.Management.SiteRecovery.0.1.1-preview\lib\net40\Microsoft.Azure.Management.SiteRecovery.dll True @@ -51,7 +51,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.Framework.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll @@ -87,6 +87,10 @@ ..\..\..\packages\Microsoft.WindowsAzure.Management.4.1.1\lib\net40\Microsoft.WindowsAzure.Management.dll + + ..\..\..\packages\Microsoft.WindowsAzure.Management.Scheduler.6.2.0\lib\net40\Microsoft.WindowsAzure.Management.Scheduler.dll + True + False ..\..\..\packages\Hydra.SpecTestSupport.1.0.5417.13285-prerelease\lib\net45\Microsoft.WindowsAzure.Testing.dll diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/ScenarioTests/SiteRecoveryTestsBase.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/ScenarioTests/SiteRecoveryTestsBase.cs index e7fe07614ed7..f94dd9e8b804 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/ScenarioTests/SiteRecoveryTestsBase.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/ScenarioTests/SiteRecoveryTestsBase.cs @@ -23,6 +23,7 @@ using Microsoft.WindowsAzure; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Microsoft.WindowsAzure.Commands.Utilities.Common; +using Microsoft.WindowsAzure.Management.Scheduler; using Microsoft.Azure.Management.RecoveryServices; using Microsoft.Azure.Management.SiteRecovery; using Microsoft.Azure.Test; @@ -41,6 +42,7 @@ public abstract class SiteRecoveryTestsBase public SiteRecoveryManagementClient SiteRecoveryMgmtClient { get; private set; } public RecoveryServicesManagementClient RecoveryServicesMgmtClient { get; private set; } + public CloudServiceManagementClient CloudServiceManagementClient { get; private set; } protected SiteRecoveryTestsBase() { @@ -82,10 +84,11 @@ protected SiteRecoveryTestsBase() protected void SetupManagementClients() { + CloudServiceManagementClient = GetCloudServicesManagementClient(); RecoveryServicesMgmtClient = GetRecoveryServicesManagementClient(); SiteRecoveryMgmtClient = GetSiteRecoveryManagementClient(); - helper.SetupManagementClients(RecoveryServicesMgmtClient, SiteRecoveryMgmtClient); + helper.SetupManagementClients(CloudServiceManagementClient, RecoveryServicesMgmtClient, SiteRecoveryMgmtClient); } protected void RunPowerShellTest(params string[] scripts) @@ -98,7 +101,7 @@ protected void RunPowerShellTest(params string[] scripts) SetupManagementClients(); - helper.SetupEnvironment(AzureModule.AzureServiceManagement); + helper.SetupEnvironment(AzureModule.AzureResourceManager); helper.SetupModules(AzureModule.AzureResourceManager, "ScenarioTests\\" + this.GetType().Name + ".ps1"); @@ -106,9 +109,17 @@ protected void RunPowerShellTest(params string[] scripts) } } + private CloudServiceManagementClient GetCloudServicesManagementClient() + { + return TestBase.GetServiceClient(this.armTestFactory); + } + private RecoveryServicesManagementClient GetRecoveryServicesManagementClient() { - return TestBase.GetServiceClient(this.armTestFactory); + return new RecoveryServicesManagementClient( + "Microsoft.SiteRecovery", + CloudServiceManagementClient.Credentials, + CloudServiceManagementClient.BaseUri).WithHandler(HttpMockServer.CreateInstance()); } private SiteRecoveryManagementClient GetSiteRecoveryManagementClient() @@ -122,11 +133,11 @@ private SiteRecoveryManagementClient GetSiteRecoveryManagementClient() } return new SiteRecoveryManagementClient( - asrVaultCreds.ResourceGroupName, asrVaultCreds.ResourceName, asrVaultCreds.ResourceGroupName, - RecoveryServicesMgmtClient.Credentials, - RecoveryServicesMgmtClient.BaseUri).WithHandler(HttpMockServer.CreateInstance()); + "Microsoft.SiteRecovery", + CloudServiceManagementClient.Credentials, + CloudServiceManagementClient.BaseUri).WithHandler(HttpMockServer.CreateInstance()); } private static bool IgnoreCertificateErrorHandler diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/ScenarioTests/vaultSettings.VaultCredentials b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/ScenarioTests/vaultSettings.VaultCredentials index 8b84da7b59fb..6e9fb9df5d2f 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/ScenarioTests/vaultSettings.VaultCredentials +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/ScenarioTests/vaultSettings.VaultCredentials @@ -1 +1 @@ -00a07ea0-ad8b-491c-9de8-77bf10881499HyperVRecoveryManagerVaultppeVault2accesscontrol.windows.netwusppe1rrp1usershttp://windowscloudbackup/m3tmPfTki5UFSdaEq2JFvzuw==testsitegroup1.0 +00a07ea0-ad8b-491c-9de8-77bf10881499HyperVRecoveryManagerVaultppeVault3accesscontrol.windows.netwusppe1rrp1usershttp://windowscloudbackup/m346mwOXc2yrH0ObMi6CO7Ng==testsitegroup1.0 diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/EnumerationTests.json b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/EnumerationTests.json index 3cca932198f5..68d68d2bc8ff 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/EnumerationTests.json +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/EnumerationTests.json @@ -10,7 +10,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -28,16 +28,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" + "14971" ], "x-ms-request-id": [ - "4abcc1ed-cf3c-447a-88bb-0b82aa0d906e" + "c020994d-55c2-4afc-ab37-d40fcd1dc7b8" ], "x-ms-correlation-request-id": [ - "4abcc1ed-cf3c-447a-88bb-0b82aa0d906e" + "c020994d-55c2-4afc-ab37-d40fcd1dc7b8" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T092819Z:4abcc1ed-cf3c-447a-88bb-0b82aa0d906e" + "CENTRALUS:20150819T023102Z:c020994d-55c2-4afc-ab37-d40fcd1dc7b8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -46,7 +46,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:28:19 GMT" + "Wed, 19 Aug 2015 02:31:02 GMT" ] }, "StatusCode": 200 @@ -61,7 +61,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -79,16 +79,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" + "14969" ], "x-ms-request-id": [ - "acf463df-805e-4fd2-a556-27c7569dad2c" + "cc6c7e5a-5752-483f-a9f4-f2a08d4d6fd8" ], "x-ms-correlation-request-id": [ - "acf463df-805e-4fd2-a556-27c7569dad2c" + "cc6c7e5a-5752-483f-a9f4-f2a08d4d6fd8" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T092821Z:acf463df-805e-4fd2-a556-27c7569dad2c" + "CENTRALUS:20150819T023104Z:cc6c7e5a-5752-483f-a9f4-f2a08d4d6fd8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -97,7 +97,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:28:21 GMT" + "Wed, 19 Aug 2015 02:31:03 GMT" ] }, "StatusCode": 200 @@ -112,7 +112,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -130,16 +130,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" + "14966" ], "x-ms-request-id": [ - "716c5765-edce-418f-9b41-3a5aaa5b91e8" + "599d0dc5-550c-4ae6-8bfb-feea827e60ca" ], "x-ms-correlation-request-id": [ - "716c5765-edce-418f-9b41-3a5aaa5b91e8" + "599d0dc5-550c-4ae6-8bfb-feea827e60ca" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T092822Z:716c5765-edce-418f-9b41-3a5aaa5b91e8" + "CENTRALUS:20150819T023105Z:599d0dc5-550c-4ae6-8bfb-feea827e60ca" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -148,7 +148,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:28:22 GMT" + "Wed, 19 Aug 2015 02:31:05 GMT" ] }, "StatusCode": 200 @@ -163,7 +163,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -181,16 +181,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14989" + "14964" ], "x-ms-request-id": [ - "bb0f0058-7804-465e-a5bc-bca92aa09497" + "7573ab8b-19e7-4334-93a0-c3e6f09b1d31" ], "x-ms-correlation-request-id": [ - "bb0f0058-7804-465e-a5bc-bca92aa09497" + "7573ab8b-19e7-4334-93a0-c3e6f09b1d31" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T092826Z:bb0f0058-7804-465e-a5bc-bca92aa09497" + "CENTRALUS:20150819T023108Z:7573ab8b-19e7-4334-93a0-c3e6f09b1d31" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -199,7 +199,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:28:26 GMT" + "Wed, 19 Aug 2015 02:31:07 GMT" ] }, "StatusCode": 200 @@ -211,19 +211,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "0754e060-5739-4f4a-a664-3290b41530fb-2015-07-28 09:28:19Z-P" + "8d9e80fd-fc97-43d7-9309-b2b6ac1d099e-2015-08-19 02:31:02Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -235,28 +235,28 @@ "no-cache" ], "x-ms-request-id": [ - "7bdbd9fd-1a30-4f6b-aa23-16f3ef36085c" + "7e99d15e-7c21-48e4-a7fb-f77e34f79ed1" ], "x-ms-client-request-id": [ - "0754e060-5739-4f4a-a664-3290b41530fb-2015-07-28 09:28:19Z-P" + "8d9e80fd-fc97-43d7-9309-b2b6ac1d099e-2015-08-19 02:31:02Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "14970" ], "x-ms-correlation-request-id": [ - "7bdbd9fd-1a30-4f6b-aa23-16f3ef36085c" + "7e99d15e-7c21-48e4-a7fb-f77e34f79ed1" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T092820Z:7bdbd9fd-1a30-4f6b-aa23-16f3ef36085c" + "CENTRALUS:20150819T023103Z:7e99d15e-7c21-48e4-a7fb-f77e34f79ed1" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:28:19 GMT" + "Wed, 19 Aug 2015 02:31:03 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -271,19 +271,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "bac4bed3-9d94-472e-9490-3df8eb0e8565-2015-07-28 09:28:21Z-P" + "c9e3039d-f5a0-42f1-9727-c95cf8754ec3-2015-08-19 02:31:04Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -295,28 +295,28 @@ "no-cache" ], "x-ms-request-id": [ - "fbe14f6f-d6b5-4401-a0de-bd9d74b45868" + "77e8e45a-fc65-4ce1-81a9-7055c45204e6" ], "x-ms-client-request-id": [ - "bac4bed3-9d94-472e-9490-3df8eb0e8565-2015-07-28 09:28:21Z-P" + "c9e3039d-f5a0-42f1-9727-c95cf8754ec3-2015-08-19 02:31:04Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14967" ], "x-ms-correlation-request-id": [ - "fbe14f6f-d6b5-4401-a0de-bd9d74b45868" + "77e8e45a-fc65-4ce1-81a9-7055c45204e6" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T092822Z:fbe14f6f-d6b5-4401-a0de-bd9d74b45868" + "CENTRALUS:20150819T023105Z:77e8e45a-fc65-4ce1-81a9-7055c45204e6" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:28:21 GMT" + "Wed, 19 Aug 2015 02:31:05 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -331,19 +331,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "b9632da3-1d2e-4536-bd4f-c565cddc32c4-2015-07-28 09:28:22Z-P" + "b12a808a-6a23-4d94-90d6-85c72269b35e-2015-08-19 02:31:05Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -355,28 +355,28 @@ "no-cache" ], "x-ms-request-id": [ - "2377b055-6966-458c-8a70-b72cded529bf" + "8473934e-af87-43ff-b640-9678825b5ddc" ], "x-ms-client-request-id": [ - "b9632da3-1d2e-4536-bd4f-c565cddc32c4-2015-07-28 09:28:22Z-P" + "b12a808a-6a23-4d94-90d6-85c72269b35e-2015-08-19 02:31:05Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "14965" ], "x-ms-correlation-request-id": [ - "2377b055-6966-458c-8a70-b72cded529bf" + "8473934e-af87-43ff-b640-9678825b5ddc" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T092822Z:2377b055-6966-458c-8a70-b72cded529bf" + "CENTRALUS:20150819T023105Z:8473934e-af87-43ff-b640-9678825b5ddc" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:28:22 GMT" + "Wed, 19 Aug 2015 02:31:05 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -391,19 +391,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4d3fd094-3d7a-4509-b997-cfcbbac5f54b-2015-07-28 09:28:26Z-P" + "3d9621bf-20a6-4605-b86f-dd73bb83d697-2015-08-19 02:31:08Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -415,28 +415,28 @@ "no-cache" ], "x-ms-request-id": [ - "6579b1ad-c1e4-4d96-9ed6-a5abf2052152" + "0bff8bb9-c510-4a82-9ef3-c0cd13dd6d82" ], "x-ms-client-request-id": [ - "4d3fd094-3d7a-4509-b997-cfcbbac5f54b-2015-07-28 09:28:26Z-P" + "3d9621bf-20a6-4605-b86f-dd73bb83d697-2015-08-19 02:31:08Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14988" + "14963" ], "x-ms-correlation-request-id": [ - "6579b1ad-c1e4-4d96-9ed6-a5abf2052152" + "0bff8bb9-c510-4a82-9ef3-c0cd13dd6d82" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T092826Z:6579b1ad-c1e4-4d96-9ed6-a5abf2052152" + "CENTRALUS:20150819T023108Z:0bff8bb9-c510-4a82-9ef3-c0cd13dd6d82" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:28:26 GMT" + "Wed, 19 Aug 2015 02:31:08 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -451,13 +451,13 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c2b07874-a7b0-4be2-93d4-ee1015d1d71e-2015-07-28 09:28:21Z-P" + "c3e7d9cd-228f-412c-9ec8-d9b16916f9bc-2015-08-19 02:31:04Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": []\r\n}", @@ -475,16 +475,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "14968" ], "x-ms-request-id": [ - "1b63e0e2-f903-4bd2-9fe8-9bbb93d12168" + "e352a45c-7833-4f99-96fc-770a888a77df" ], "x-ms-correlation-request-id": [ - "1b63e0e2-f903-4bd2-9fe8-9bbb93d12168" + "e352a45c-7833-4f99-96fc-770a888a77df" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T092821Z:1b63e0e2-f903-4bd2-9fe8-9bbb93d12168" + "CENTRALUS:20150819T023104Z:e352a45c-7833-4f99-96fc-770a888a77df" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -493,28 +493,28 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:28:21 GMT" + "Wed, 19 Aug 2015 02:31:03 GMT" ] }, "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/Servers?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1NlcnZlcnM/YXBpLXZlcnNpb249MjAxNS0wOC0xMA==", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/Servers?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL1NlcnZlcnM/YXBpLXZlcnNpb249MjAxNS0wOC0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "936a0db5-1fd6-4e5e-8adf-64a340593880-2015-07-28 09:28:22Z-P" + "d6ada4d5-e7d1-4d89-85e4-102a4f87df0d-2015-08-19 02:31:06Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/Servers/57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"name\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"type\": \"Microsoft.SiteRecovery/Servers\",\r\n \"properties\": {\r\n \"serverVersion\": \"3.2.7510.0\",\r\n \"providerVersion\": \"3.5.601.0\",\r\n \"lastHeartbeat\": \"2015-07-28T09:27:10.6378094Z\",\r\n \"connectionStatus\": \"Connected\",\r\n \"fabricType\": \"VMM\",\r\n \"fabricObjectID\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"friendlyName\": \"sriramvu-hv2.fareast.corp.microsoft.com\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/Servers/57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"name\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"type\": \"Microsoft.SiteRecovery/Servers\",\r\n \"properties\": {\r\n \"serverVersion\": \"3.2.7510.0\",\r\n \"providerVersion\": \"3.5.601.0\",\r\n \"lastHeartbeat\": \"2015-08-19T02:31:07.8626993Z\",\r\n \"connectionStatus\": \"Connected\",\r\n \"fabricType\": \"VMM\",\r\n \"fabricObjectID\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"friendlyName\": \"sriramvu-hv2.fareast.corp.microsoft.com\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", "ResponseHeaders": { "Content-Length": [ "593" @@ -529,7 +529,7 @@ "no-cache" ], "x-ms-request-id": [ - "936a0db5-1fd6-4e5e-8adf-64a340593880-2015-07-28 09:28:22Z-P 7/28/2015 9:28:24 AM" + "d6ada4d5-e7d1-4d89-85e4-102a4f87df0d-2015-08-19 02:31:06Z-P 8/19/2015 2:31:08 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -548,43 +548,43 @@ "ASP.NET" ], "x-ms-client-request-id": [ - "936a0db5-1fd6-4e5e-8adf-64a340593880-2015-07-28 09:28:22Z-P" + "d6ada4d5-e7d1-4d89-85e4-102a4f87df0d-2015-08-19 02:31:06Z-P" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" + "14986" ], "x-ms-correlation-request-id": [ - "8dac9bfd-622c-4440-862c-0b91e0f74f1a" + "4748113b-0486-49a6-88ed-db3a5fbf8a5b" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T092824Z:8dac9bfd-622c-4440-862c-0b91e0f74f1a" + "CENTRALUS:20150819T023108Z:4748113b-0486-49a6-88ed-db3a5fbf8a5b" ], "Date": [ - "Tue, 28 Jul 2015 09:28:24 GMT" + "Wed, 19 Aug 2015 02:31:07 GMT" ] }, "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1Byb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL1Byb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f54466ec-88f8-45b0-85a9-bdf6a12cf002-2015-07-28 09:28:26Z-P" + "87e035e7-849e-454c-bf41-bde72ed56dfb-2015-08-19 02:31:09Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"name\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"pri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"name\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud9\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"name\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d2\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"name\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"name\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokSec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"name\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokPri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"name\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"azurecloud\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"name\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"rec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"name\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"pri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"name\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud9\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"name\": \"25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"name\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d2\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"name\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"name\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokSec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"name\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokPri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"name\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"azurecloud\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"name\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"rec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", "ResponseHeaders": { "Content-Length": [ - "4147" + "4663" ], "Content-Type": [ "application/json" @@ -596,7 +596,7 @@ "no-cache" ], "x-ms-request-id": [ - "f54466ec-88f8-45b0-85a9-bdf6a12cf002-2015-07-28 09:28:26Z-P 7/28/2015 9:28:27 AM" + "87e035e7-849e-454c-bf41-bde72ed56dfb-2015-08-19 02:31:09Z-P 8/19/2015 2:31:09 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -615,19 +615,19 @@ "ASP.NET" ], "x-ms-client-request-id": [ - "f54466ec-88f8-45b0-85a9-bdf6a12cf002-2015-07-28 09:28:26Z-P" + "87e035e7-849e-454c-bf41-bde72ed56dfb-2015-08-19 02:31:09Z-P" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "14985" ], "x-ms-correlation-request-id": [ - "b766a144-65fb-4ea3-9c68-1f2f57d13b8c" + "bb0e159d-ec31-40c4-9840-49551a221199" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T092827Z:b766a144-65fb-4ea3-9c68-1f2f57d13b8c" + "CENTRALUS:20150819T023109Z:bb0e159d-ec31-40c4-9840-49551a221199" ], "Date": [ - "Tue, 28 Jul 2015 09:28:26 GMT" + "Wed, 19 Aug 2015 02:31:09 GMT" ] }, "StatusCode": 200 diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestAssociateProfile.json b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestAssociateProfile.json index 2f65d78ccf0c..9f9072416927 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestAssociateProfile.json +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestAssociateProfile.json @@ -10,7 +10,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -28,16 +28,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14937" + "14954" ], "x-ms-request-id": [ - "25f8981d-9b16-45df-888e-aaa772fe6e5d" + "4060d086-5c65-4a9c-95a8-6cef779f76eb" ], "x-ms-correlation-request-id": [ - "25f8981d-9b16-45df-888e-aaa772fe6e5d" + "4060d086-5c65-4a9c-95a8-6cef779f76eb" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113522Z:25f8981d-9b16-45df-888e-aaa772fe6e5d" + "CENTRALUS:20150819T023319Z:4060d086-5c65-4a9c-95a8-6cef779f76eb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -46,7 +46,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:35:22 GMT" + "Wed, 19 Aug 2015 02:33:18 GMT" ] }, "StatusCode": 200 @@ -61,7 +61,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -79,16 +79,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14935" + "14952" ], "x-ms-request-id": [ - "4a501fa5-e5ba-4e09-8df3-b6496f2edeb8" + "f0254135-3a3c-492f-ab29-430ade8b5455" ], "x-ms-correlation-request-id": [ - "4a501fa5-e5ba-4e09-8df3-b6496f2edeb8" + "f0254135-3a3c-492f-ab29-430ade8b5455" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113523Z:4a501fa5-e5ba-4e09-8df3-b6496f2edeb8" + "CENTRALUS:20150819T023320Z:f0254135-3a3c-492f-ab29-430ade8b5455" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -97,7 +97,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:35:23 GMT" + "Wed, 19 Aug 2015 02:33:19 GMT" ] }, "StatusCode": 200 @@ -112,7 +112,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -130,16 +130,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14933" + "14950" ], "x-ms-request-id": [ - "2ed461f5-609e-4e46-894b-a7d311de7677" + "112e5747-b3ad-4545-a881-dc62950a8928" ], "x-ms-correlation-request-id": [ - "2ed461f5-609e-4e46-894b-a7d311de7677" + "112e5747-b3ad-4545-a881-dc62950a8928" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113526Z:2ed461f5-609e-4e46-894b-a7d311de7677" + "CENTRALUS:20150819T023323Z:112e5747-b3ad-4545-a881-dc62950a8928" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -148,7 +148,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:35:25 GMT" + "Wed, 19 Aug 2015 02:33:23 GMT" ] }, "StatusCode": 200 @@ -163,7 +163,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -181,16 +181,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14931" + "14948" ], "x-ms-request-id": [ - "9484770b-3134-40f6-a2ac-d04e4c81330f" + "46ef5b12-6c5f-4774-b503-29ae8e1ba1c8" ], "x-ms-correlation-request-id": [ - "9484770b-3134-40f6-a2ac-d04e4c81330f" + "46ef5b12-6c5f-4774-b503-29ae8e1ba1c8" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113527Z:9484770b-3134-40f6-a2ac-d04e4c81330f" + "CENTRALUS:20150819T023324Z:46ef5b12-6c5f-4774-b503-29ae8e1ba1c8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -199,7 +199,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:35:27 GMT" + "Wed, 19 Aug 2015 02:33:24 GMT" ] }, "StatusCode": 200 @@ -214,7 +214,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -232,16 +232,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14929" + "14946" ], "x-ms-request-id": [ - "7d815d4e-0baf-46a1-ac6c-a0fdf2f3cad1" + "9c98daff-9348-4307-8c36-d221c7c4bc51" ], "x-ms-correlation-request-id": [ - "7d815d4e-0baf-46a1-ac6c-a0fdf2f3cad1" + "9c98daff-9348-4307-8c36-d221c7c4bc51" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113528Z:7d815d4e-0baf-46a1-ac6c-a0fdf2f3cad1" + "CENTRALUS:20150819T023325Z:9c98daff-9348-4307-8c36-d221c7c4bc51" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -250,7 +250,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:35:28 GMT" + "Wed, 19 Aug 2015 02:33:25 GMT" ] }, "StatusCode": 200 @@ -265,7 +265,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -283,16 +283,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14927" + "14944" ], "x-ms-request-id": [ - "a19b5d0a-9e7b-4791-86ed-2354345f4cd5" + "c1c3a9ab-1763-4ed4-8227-486b91dbfa74" ], "x-ms-correlation-request-id": [ - "a19b5d0a-9e7b-4791-86ed-2354345f4cd5" + "c1c3a9ab-1763-4ed4-8227-486b91dbfa74" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113531Z:a19b5d0a-9e7b-4791-86ed-2354345f4cd5" + "CENTRALUS:20150819T023328Z:c1c3a9ab-1763-4ed4-8227-486b91dbfa74" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -301,7 +301,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:35:30 GMT" + "Wed, 19 Aug 2015 02:33:27 GMT" ] }, "StatusCode": 200 @@ -313,19 +313,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adb96490-acc3-442d-863a-1dd0593425e4-2015-07-28 11:35:22Z-P" + "c9aa3a1e-6818-4c07-9eea-c47e88ebe54e-2015-08-19 02:33:19Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -337,28 +337,28 @@ "no-cache" ], "x-ms-request-id": [ - "d76e4a02-1f04-444c-a186-e86c6f023dc0" + "a2dd392e-8545-4864-9581-bb8e90a10d6d" ], "x-ms-client-request-id": [ - "adb96490-acc3-442d-863a-1dd0593425e4-2015-07-28 11:35:22Z-P" + "c9aa3a1e-6818-4c07-9eea-c47e88ebe54e-2015-08-19 02:33:19Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14936" + "14953" ], "x-ms-correlation-request-id": [ - "d76e4a02-1f04-444c-a186-e86c6f023dc0" + "a2dd392e-8545-4864-9581-bb8e90a10d6d" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113523Z:d76e4a02-1f04-444c-a186-e86c6f023dc0" + "CENTRALUS:20150819T023320Z:a2dd392e-8545-4864-9581-bb8e90a10d6d" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:35:22 GMT" + "Wed, 19 Aug 2015 02:33:19 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -373,19 +373,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "80772c67-0793-4074-bbc1-4c92e180759e-2015-07-28 11:35:23Z-P" + "bfd3d684-e78f-4c1a-bae6-c030010fd35e-2015-08-19 02:33:20Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -397,28 +397,28 @@ "no-cache" ], "x-ms-request-id": [ - "a3a04e68-238d-4cc5-b9af-f690369093a3" + "89fabe0a-9517-48a1-8208-c0080fadc4b9" ], "x-ms-client-request-id": [ - "80772c67-0793-4074-bbc1-4c92e180759e-2015-07-28 11:35:23Z-P" + "bfd3d684-e78f-4c1a-bae6-c030010fd35e-2015-08-19 02:33:20Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14934" + "14951" ], "x-ms-correlation-request-id": [ - "a3a04e68-238d-4cc5-b9af-f690369093a3" + "89fabe0a-9517-48a1-8208-c0080fadc4b9" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113524Z:a3a04e68-238d-4cc5-b9af-f690369093a3" + "CENTRALUS:20150819T023321Z:89fabe0a-9517-48a1-8208-c0080fadc4b9" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:35:23 GMT" + "Wed, 19 Aug 2015 02:33:20 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -433,19 +433,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c9a5b5fc-1d85-4723-9e6b-d32f880aa459-2015-07-28 11:35:26Z-P" + "3db25885-ef70-4330-8603-c9c380098660-2015-08-19 02:33:23Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -457,28 +457,28 @@ "no-cache" ], "x-ms-request-id": [ - "8f1d4ad0-b4cd-4a7d-b174-a21f7af1b90b" + "141320c8-4351-404c-a78b-fc37ba8da381" ], "x-ms-client-request-id": [ - "c9a5b5fc-1d85-4723-9e6b-d32f880aa459-2015-07-28 11:35:26Z-P" + "3db25885-ef70-4330-8603-c9c380098660-2015-08-19 02:33:23Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14932" + "14949" ], "x-ms-correlation-request-id": [ - "8f1d4ad0-b4cd-4a7d-b174-a21f7af1b90b" + "141320c8-4351-404c-a78b-fc37ba8da381" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113526Z:8f1d4ad0-b4cd-4a7d-b174-a21f7af1b90b" + "CENTRALUS:20150819T023323Z:141320c8-4351-404c-a78b-fc37ba8da381" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:35:25 GMT" + "Wed, 19 Aug 2015 02:33:23 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -493,19 +493,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1299f83f-8fbc-4dd0-8af8-36e2502345d8-2015-07-28 11:35:27Z-P" + "970c1d42-835e-4c89-95be-eab713da9822-2015-08-19 02:33:24Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -517,28 +517,28 @@ "no-cache" ], "x-ms-request-id": [ - "d6220b33-c27a-4a62-a3a7-eb5d5da7b081" + "4b944cd7-5edd-4872-882e-05bb43bdf5f5" ], "x-ms-client-request-id": [ - "1299f83f-8fbc-4dd0-8af8-36e2502345d8-2015-07-28 11:35:27Z-P" + "970c1d42-835e-4c89-95be-eab713da9822-2015-08-19 02:33:24Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14930" + "14947" ], "x-ms-correlation-request-id": [ - "d6220b33-c27a-4a62-a3a7-eb5d5da7b081" + "4b944cd7-5edd-4872-882e-05bb43bdf5f5" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113527Z:d6220b33-c27a-4a62-a3a7-eb5d5da7b081" + "CENTRALUS:20150819T023325Z:4b944cd7-5edd-4872-882e-05bb43bdf5f5" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:35:27 GMT" + "Wed, 19 Aug 2015 02:33:24 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -553,19 +553,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "329a3a8d-3824-45f4-8e27-6e836ffd6024-2015-07-28 11:35:28Z-P" + "fc8cd55a-3db0-4f63-96db-28884ff21537-2015-08-19 02:33:25Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -577,28 +577,28 @@ "no-cache" ], "x-ms-request-id": [ - "e0b8f9c0-7dca-4c5f-9a52-30f562b949b5" + "3effe364-b063-4331-9c87-3a1516513201" ], "x-ms-client-request-id": [ - "329a3a8d-3824-45f4-8e27-6e836ffd6024-2015-07-28 11:35:28Z-P" + "fc8cd55a-3db0-4f63-96db-28884ff21537-2015-08-19 02:33:25Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14928" + "14945" ], "x-ms-correlation-request-id": [ - "e0b8f9c0-7dca-4c5f-9a52-30f562b949b5" + "3effe364-b063-4331-9c87-3a1516513201" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113529Z:e0b8f9c0-7dca-4c5f-9a52-30f562b949b5" + "CENTRALUS:20150819T023326Z:3effe364-b063-4331-9c87-3a1516513201" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:35:28 GMT" + "Wed, 19 Aug 2015 02:33:25 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -613,19 +613,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ea8fafd4-e5cb-4ffe-ae07-01af9269d24f-2015-07-28 11:35:31Z-P" + "d1437b5a-25bf-4777-83a9-c0be5b05d72a-2015-08-19 02:33:28Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -637,28 +637,28 @@ "no-cache" ], "x-ms-request-id": [ - "3b88d2a2-50ce-4621-b9ea-ac0f8c5ddd78" + "77e46843-bcfa-43a7-a0a2-ee3f16ee3f5f" ], "x-ms-client-request-id": [ - "ea8fafd4-e5cb-4ffe-ae07-01af9269d24f-2015-07-28 11:35:31Z-P" + "d1437b5a-25bf-4777-83a9-c0be5b05d72a-2015-08-19 02:33:28Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14926" + "14943" ], "x-ms-correlation-request-id": [ - "3b88d2a2-50ce-4621-b9ea-ac0f8c5ddd78" + "77e46843-bcfa-43a7-a0a2-ee3f16ee3f5f" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113531Z:3b88d2a2-50ce-4621-b9ea-ac0f8c5ddd78" + "CENTRALUS:20150819T023328Z:77e46843-bcfa-43a7-a0a2-ee3f16ee3f5f" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:35:31 GMT" + "Wed, 19 Aug 2015 02:33:28 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -667,25 +667,25 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1Byb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL1Byb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "d861df58-ef18-4f91-b9a5-3aa018dfa1c3-2015-07-28 11:35:24Z-P" + "b598a691-f5a6-4836-bbf4-c5ba8dd6138a-2015-08-19 02:33:21Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"name\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"pri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"name\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud9\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"name\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d2\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"name\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"name\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokSec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"name\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokPri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"name\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"azurecloud\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"name\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"rec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"name\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"pri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"name\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud9\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"name\": \"25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"name\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d2\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"name\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"name\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokSec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"name\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokPri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"name\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"azurecloud\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"name\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"rec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", "ResponseHeaders": { "Content-Length": [ - "4147" + "4663" ], "Content-Type": [ "application/json" @@ -697,7 +697,7 @@ "no-cache" ], "x-ms-request-id": [ - "d861df58-ef18-4f91-b9a5-3aa018dfa1c3-2015-07-28 11:35:24Z-P 7/28/2015 11:35:25 AM" + "b598a691-f5a6-4836-bbf4-c5ba8dd6138a-2015-08-19 02:33:21Z-P 8/19/2015 2:33:23 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -716,43 +716,43 @@ "ASP.NET" ], "x-ms-client-request-id": [ - "d861df58-ef18-4f91-b9a5-3aa018dfa1c3-2015-07-28 11:35:24Z-P" + "b598a691-f5a6-4836-bbf4-c5ba8dd6138a-2015-08-19 02:33:21Z-P" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14961" + "14983" ], "x-ms-correlation-request-id": [ - "0b906aae-863a-4948-ba95-57c92cc8aefa" + "6ec1c951-7176-4d2d-a4c1-13648cfd2d70" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113525Z:0b906aae-863a-4948-ba95-57c92cc8aefa" + "CENTRALUS:20150819T023323Z:6ec1c951-7176-4d2d-a4c1-13648cfd2d70" ], "Date": [ - "Tue, 28 Jul 2015 11:35:24 GMT" + "Wed, 19 Aug 2015 02:33:23 GMT" ] }, "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1Byb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL1Byb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c8ca0f56-502a-4b06-acaa-331dbab26a90-2015-07-28 11:35:26Z-P" + "148418a0-d081-43d8-894a-ba585d03e06e-2015-08-19 02:33:23Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"name\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"pri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"name\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud9\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"name\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d2\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"name\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"name\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokSec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"name\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokPri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"name\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"azurecloud\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"name\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"rec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"name\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"pri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"name\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud9\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"name\": \"25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"name\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d2\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"name\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"name\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokSec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"name\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokPri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"name\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"azurecloud\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"name\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"rec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", "ResponseHeaders": { "Content-Length": [ - "4147" + "4663" ], "Content-Type": [ "application/json" @@ -764,7 +764,7 @@ "no-cache" ], "x-ms-request-id": [ - "c8ca0f56-502a-4b06-acaa-331dbab26a90-2015-07-28 11:35:26Z-P 7/28/2015 11:35:26 AM" + "148418a0-d081-43d8-894a-ba585d03e06e-2015-08-19 02:33:23Z-P 8/19/2015 2:33:24 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -783,40 +783,40 @@ "ASP.NET" ], "x-ms-client-request-id": [ - "c8ca0f56-502a-4b06-acaa-331dbab26a90-2015-07-28 11:35:26Z-P" + "148418a0-d081-43d8-894a-ba585d03e06e-2015-08-19 02:33:23Z-P" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14960" + "14982" ], "x-ms-correlation-request-id": [ - "3c74c760-54af-4ba5-a2b5-2133e91f2424" + "8fb9f06a-1496-4c81-b454-d5b4c43a705d" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113527Z:3c74c760-54af-4ba5-a2b5-2133e91f2424" + "CENTRALUS:20150819T023324Z:8fb9f06a-1496-4c81-b454-d5b4c43a705d" ], "Date": [ - "Tue, 28 Jul 2015 11:35:26 GMT" + "Wed, 19 Aug 2015 02:33:24 GMT" ] }, "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1Byb3RlY3Rpb25Qcm9maWxlcy9wcD9hcGktdmVyc2lvbj0yMDE1LTA4LTEw", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL1Byb3RlY3Rpb25Qcm9maWxlcy9wcD9hcGktdmVyc2lvbj0yMDE1LTA4LTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ed3fb3de-d37b-4c22-9ec2-5578341246b5-2015-07-28 11:35:27Z-P" + "0280bdea-d897-445c-84e1-f55563f6e61b-2015-08-19 02:33:25Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp\",\r\n \"name\": \"pp\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionProfile\",\r\n \"properties\": {\r\n \"friendlyName\": \"pp\",\r\n \"protectedEntityCount\": 0,\r\n \"associationStatus\": \"Associated\",\r\n \"replicationProvider\": \"HyperVReplica\",\r\n \"replicationProviderSettings\": {\r\n \"__type\": \"HyperVReplicaProtectionProfileDetails\",\r\n \"recoveryPoints\": 1,\r\n \"applicationConsistentSnapshotFrequencyInHours\": 0,\r\n \"compression\": \"Disabled\",\r\n \"initialReplicationMethod\": \"OverNetwork\",\r\n \"onlineReplicationStartTime\": null,\r\n \"offlineReplicationImportPath\": \"\",\r\n \"offlineReplicationExportPath\": \"\",\r\n \"replicationPort\": 8083,\r\n \"allowedAuthenticationType\": 1,\r\n \"replicaDeletionOption\": \"None\",\r\n \"replicationFrequencyInSeconds\": 30\r\n },\r\n \"associationDetail\": []\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp\",\r\n \"name\": \"pp\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionProfile\",\r\n \"properties\": {\r\n \"friendlyName\": \"pp\",\r\n \"protectedEntityCount\": 0,\r\n \"associationStatus\": \"Associated\",\r\n \"replicationProvider\": \"HyperVReplica\",\r\n \"replicationProviderSettings\": {\r\n \"__type\": \"HyperVReplicaProtectionProfileDetails\",\r\n \"recoveryPoints\": 1,\r\n \"applicationConsistentSnapshotFrequencyInHours\": 0,\r\n \"compression\": \"Disabled\",\r\n \"initialReplicationMethod\": \"OverNetwork\",\r\n \"onlineReplicationStartTime\": null,\r\n \"offlineReplicationImportPath\": \"\",\r\n \"offlineReplicationExportPath\": \"\",\r\n \"replicationPort\": 8083,\r\n \"allowedAuthenticationType\": 1,\r\n \"replicaDeletionOption\": \"None\",\r\n \"replicationFrequencyInSeconds\": 30\r\n },\r\n \"associationDetail\": []\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "825" @@ -831,7 +831,7 @@ "no-cache" ], "x-ms-request-id": [ - "ed3fb3de-d37b-4c22-9ec2-5578341246b5-2015-07-28 11:35:27Z-P 7/28/2015 11:35:28 AM" + "0280bdea-d897-445c-84e1-f55563f6e61b-2015-08-19 02:33:25Z-P 8/19/2015 2:33:25 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -850,26 +850,26 @@ "ASP.NET" ], "x-ms-client-request-id": [ - "ed3fb3de-d37b-4c22-9ec2-5578341246b5-2015-07-28 11:35:27Z-P" + "0280bdea-d897-445c-84e1-f55563f6e61b-2015-08-19 02:33:25Z-P" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14959" + "14981" ], "x-ms-correlation-request-id": [ - "b9a4b792-6089-49df-b552-a86283d7702c" + "dfb0f839-3fff-4065-8159-fc320aed02d4" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113528Z:b9a4b792-6089-49df-b552-a86283d7702c" + "CENTRALUS:20150819T023325Z:dfb0f839-3fff-4065-8159-fc320aed02d4" ], "Date": [ - "Tue, 28 Jul 2015 11:35:27 GMT" + "Wed, 19 Aug 2015 02:33:25 GMT" ] }, "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp/Associate?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1Byb3RlY3Rpb25Qcm9maWxlcy9wcC9Bc3NvY2lhdGU/YXBpLXZlcnNpb249MjAxNS0wOC0xMA==", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp/Associate?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL1Byb3RlY3Rpb25Qcm9maWxlcy9wcC9Bc3NvY2lhdGU/YXBpLXZlcnNpb249MjAxNS0wOC0xMA==", "RequestMethod": "POST", "RequestBody": "{\r\n \"primaryProtectionContainerId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"recoveryProtectionContainerId\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\"\r\n}", "RequestHeaders": { @@ -883,16 +883,16 @@ "application/Json" ], "Agent-Authentication": [ - "{\"NotBeforeTimestamp\":\"\\/Date(1438079729326)\\/\",\"NotAfterTimestamp\":\"\\/Date(1438684529326)\\/\",\"ClientRequestId\":\"87f216d3-5c9c-42a1-865b-8b247b274842-2015-07-28 11:35:29Z-P\",\"HashFunction\":\"HMACSHA256\",\"Hmac\":\"JBMPi2dzKfWsGhwBpmRG6W4+nM0L/Go1oZI234ik1S0=\",\"Version\":{\"Major\":1,\"Minor\":2,\"Build\":-1,\"Revision\":-1,\"MajorRevision\":-1,\"MinorRevision\":-1},\"PropertyBag\":{}}" + "{\"NotBeforeTimestamp\":\"\\/Date(1439948006432)\\/\",\"NotAfterTimestamp\":\"\\/Date(1440552806432)\\/\",\"ClientRequestId\":\"76359d51-6775-4e42-b50f-3dc742b74795-2015-08-19 02:33:26Z-P\",\"HashFunction\":\"HMACSHA256\",\"Hmac\":\"8evBdvY9Ojoap+7MvbKMS9KLr4QZf1Mr++3A0HEztTg=\",\"Version\":{\"Major\":1,\"Minor\":2,\"Build\":-1,\"Revision\":-1,\"MajorRevision\":-1,\"MinorRevision\":-1},\"PropertyBag\":{}}" ], "x-ms-client-request-id": [ - "87f216d3-5c9c-42a1-865b-8b247b274842-2015-07-28 11:35:29Z-P" + "76359d51-6775-4e42-b50f-3dc742b74795-2015-08-19 02:33:26Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, "ResponseBody": "", @@ -910,34 +910,34 @@ "30" ], "Azure-AsyncOperation": [ - "https://api-dogfood.resources.windows-int.net/Jobs/03f49e2d-50f4-4377-8310-3b3651cbc7a2?api-version=2015-08-10" + "https://api-dogfood.resources.windows-int.net/Jobs/d04d86be-604a-4172-8555-d4be1eadcd53?api-version=2015-08-10" ], "x-ms-request-id": [ - "87f216d3-5c9c-42a1-865b-8b247b274842-2015-07-28 11:35:29Z-P 7/28/2015 11:35:30 AM" + "76359d51-6775-4e42-b50f-3dc742b74795-2015-08-19 02:33:26Z-P 8/19/2015 2:33:28 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-client-request-id": [ - "87f216d3-5c9c-42a1-865b-8b247b274842-2015-07-28 11:35:29Z-P" + "76359d51-6775-4e42-b50f-3dc742b74795-2015-08-19 02:33:26Z-P" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1198" ], "x-ms-correlation-request-id": [ - "e158badf-e59d-408a-96ab-2f7844efbcb6" + "e6d2787b-2064-4665-b552-472e35c24dc9" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113530Z:e158badf-e59d-408a-96ab-2f7844efbcb6" + "CENTRALUS:20150819T023327Z:e6d2787b-2064-4665-b552-472e35c24dc9" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:35:30 GMT" + "Wed, 19 Aug 2015 02:33:27 GMT" ], "Location": [ - "https://api-dogfood.resources.windows-int.net/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp/operationresults/03f49e2d-50f4-4377-8310-3b3651cbc7a2?api-version=2015-08-10" + "https://api-dogfood.resources.windows-int.net/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp/operationresults/d04d86be-604a-4172-8555-d4be1eadcd53?api-version=2015-08-10" ], "X-Powered-By": [ "ASP.NET" @@ -946,22 +946,22 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/jobs/03f49e2d-50f4-4377-8310-3b3651cbc7a2?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL2pvYnMvMDNmNDllMmQtNTBmNC00Mzc3LTgzMTAtM2IzNjUxY2JjN2EyP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/jobs/d04d86be-604a-4172-8555-d4be1eadcd53?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL2pvYnMvZDA0ZDg2YmUtNjA0YS00MTcyLTg1NTUtZDRiZTFlYWRjZDUzP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "2c34d3b9-40a1-4259-b740-5e141dec1e5b-2015-07-28 11:35:31Z-P" + "deceb738-60cb-4e2c-99fc-8741e8f72aed-2015-08-19 02:33:28Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/Jobs/03f49e2d-50f4-4377-8310-3b3651cbc7a2\",\r\n \"name\": \"03f49e2d-50f4-4377-8310-3b3651cbc7a2\",\r\n \"type\": \"Microsoft.SiteRecovery/Job\",\r\n \"properties\": {\r\n \"activityId\": \"87f216d3-5c9c-42a1-865b-8b247b274842-2015-07-28 11:35:29Z-P\",\r\n \"scenarioName\": \"CloudPairing\",\r\n \"displayName\": \"Protection configuration\",\r\n \"state\": \"InProgress\",\r\n \"tasks\": [\r\n {\r\n \"id\": \"9208701f-5eaa-45c9-ad8a-0d8d097264ef\",\r\n \"name\": \"CloudPairingHyperVReplicaBlue\",\r\n \"startTime\": \"0001-01-01T00:00:00\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n \"actions\": [],\r\n \"state\": \"NotStarted\",\r\n \"childJobId\": null\r\n }\r\n ],\r\n \"errors\": [],\r\n \"startTime\": \"2015-07-28T11:35:30.0983484Z\",\r\n \"endTime\": null,\r\n \"allowedActions\": [\r\n \"Cancel\",\r\n \"Restart\"\r\n ],\r\n \"targetObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"targetObjectType\": \"ProtectionContainer\",\r\n \"targetObjectName\": \"pri\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/Jobs/d04d86be-604a-4172-8555-d4be1eadcd53\",\r\n \"name\": \"d04d86be-604a-4172-8555-d4be1eadcd53\",\r\n \"type\": \"Microsoft.SiteRecovery/Job\",\r\n \"properties\": {\r\n \"activityId\": \"76359d51-6775-4e42-b50f-3dc742b74795-2015-08-19 02:33:26Z-P\",\r\n \"scenarioName\": \"CloudPairing\",\r\n \"displayName\": \"Protection configuration\",\r\n \"state\": \"InProgress\",\r\n \"tasks\": [\r\n {\r\n \"id\": \"9208701f-5eaa-45c9-ad8a-0d8d097264ef\",\r\n \"name\": \"CloudPairingHyperVReplicaBlue\",\r\n \"startTime\": \"0001-01-01T00:00:00\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n \"actions\": [],\r\n \"state\": \"NotStarted\",\r\n \"childJobId\": null\r\n }\r\n ],\r\n \"errors\": [],\r\n \"startTime\": \"2015-08-19T02:33:27.9316182Z\",\r\n \"endTime\": null,\r\n \"allowedActions\": [\r\n \"Cancel\",\r\n \"Restart\"\r\n ],\r\n \"targetObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"targetObjectType\": \"ProtectionContainer\",\r\n \"targetObjectName\": \"pri\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "899" @@ -976,7 +976,7 @@ "no-cache" ], "x-ms-request-id": [ - "2c34d3b9-40a1-4259-b740-5e141dec1e5b-2015-07-28 11:35:31Z-P 7/28/2015 11:35:31 AM" + "deceb738-60cb-4e2c-99fc-8741e8f72aed-2015-08-19 02:33:28Z-P 8/19/2015 2:33:29 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -995,19 +995,19 @@ "ASP.NET" ], "x-ms-client-request-id": [ - "2c34d3b9-40a1-4259-b740-5e141dec1e5b-2015-07-28 11:35:31Z-P" + "deceb738-60cb-4e2c-99fc-8741e8f72aed-2015-08-19 02:33:28Z-P" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14958" + "14980" ], "x-ms-correlation-request-id": [ - "46154c2d-8c68-4bcf-a0e3-e73e0970f658" + "e9fb2ef8-4cd0-4627-939f-0a87206428a0" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113532Z:46154c2d-8c68-4bcf-a0e3-e73e0970f658" + "CENTRALUS:20150819T023329Z:e9fb2ef8-4cd0-4627-939f-0a87206428a0" ], "Date": [ - "Tue, 28 Jul 2015 11:35:32 GMT" + "Wed, 19 Aug 2015 02:33:28 GMT" ] }, "StatusCode": 200 diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestCreateProfile.json b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestCreateProfile.json index 9451fb166756..5dfe08f88d39 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestCreateProfile.json +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestCreateProfile.json @@ -10,7 +10,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -28,16 +28,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" + "14962" ], "x-ms-request-id": [ - "ea9a1d07-8f13-480e-b227-e1049c6a9e4f" + "249f8ea4-a7d5-47fc-8315-bf0fd3329a59" ], "x-ms-correlation-request-id": [ - "ea9a1d07-8f13-480e-b227-e1049c6a9e4f" + "249f8ea4-a7d5-47fc-8315-bf0fd3329a59" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T094940Z:ea9a1d07-8f13-480e-b227-e1049c6a9e4f" + "CENTRALUS:20150819T023239Z:249f8ea4-a7d5-47fc-8315-bf0fd3329a59" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -46,7 +46,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:49:40 GMT" + "Wed, 19 Aug 2015 02:32:38 GMT" ] }, "StatusCode": 200 @@ -61,7 +61,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -79,16 +79,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "14960" ], "x-ms-request-id": [ - "9bab2118-61c0-4bf0-b84a-44d0b09b87a2" + "0c26eaa5-1c30-417d-abdb-7eaf27a6087f" ], "x-ms-correlation-request-id": [ - "9bab2118-61c0-4bf0-b84a-44d0b09b87a2" + "0c26eaa5-1c30-417d-abdb-7eaf27a6087f" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T094957Z:9bab2118-61c0-4bf0-b84a-44d0b09b87a2" + "CENTRALUS:20150819T023240Z:0c26eaa5-1c30-417d-abdb-7eaf27a6087f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -97,7 +97,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:49:57 GMT" + "Wed, 19 Aug 2015 02:32:40 GMT" ] }, "StatusCode": 200 @@ -112,7 +112,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -130,16 +130,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "14958" ], "x-ms-request-id": [ - "21429428-0e3c-41e5-b9ff-4afeb8e24f3f" + "32384600-6368-4420-8248-79daeba00ded" ], "x-ms-correlation-request-id": [ - "21429428-0e3c-41e5-b9ff-4afeb8e24f3f" + "32384600-6368-4420-8248-79daeba00ded" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T095001Z:21429428-0e3c-41e5-b9ff-4afeb8e24f3f" + "CENTRALUS:20150819T023244Z:32384600-6368-4420-8248-79daeba00ded" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -148,229 +148,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:50:01 GMT" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups?api-version=2015-01-01", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzP2FwaS12ZXJzaW9uPTIwMTUtMDEtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-version": [ - "2015-01-01" - ], - "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "550" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" - ], - "x-ms-request-id": [ - "45bf1d17-d2d0-4e3a-ae76-83a0fffea307" - ], - "x-ms-correlation-request-id": [ - "45bf1d17-d2d0-4e3a-ae76-83a0fffea307" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20150728T095007Z:45bf1d17-d2d0-4e3a-ae76-83a0fffea307" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 28 Jul 2015 09:50:07 GMT" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups?api-version=2015-01-01", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzP2FwaS12ZXJzaW9uPTIwMTUtMDEtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-version": [ - "2015-01-01" - ], - "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "550" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14989" - ], - "x-ms-request-id": [ - "bd8b1f8c-7d34-4348-9d55-46aa44017325" - ], - "x-ms-correlation-request-id": [ - "bd8b1f8c-7d34-4348-9d55-46aa44017325" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20150728T095023Z:bd8b1f8c-7d34-4348-9d55-46aa44017325" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 28 Jul 2015 09:50:22 GMT" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault?api-version=2015-03-15", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQ/YXBpLXZlcnNpb249MjAxNS0wMy0xNQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "7a24434d-e912-49b0-8f09-8980b1f212be-2015-07-28 09:49:40Z-P" - ], - "x-ms-version": [ - "2015-01-01" - ], - "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "753" - ], - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "ddb8bae6-d164-4b8c-b5c5-878d047fff78" - ], - "x-ms-client-request-id": [ - "7a24434d-e912-49b0-8f09-8980b1f212be-2015-07-28 09:49:40Z-P" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" - ], - "x-ms-correlation-request-id": [ - "ddb8bae6-d164-4b8c-b5c5-878d047fff78" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20150728T094940Z:ddb8bae6-d164-4b8c-b5c5-878d047fff78" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 28 Jul 2015 09:49:40 GMT" - ], - "Server": [ - "Microsoft-IIS/8.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault?api-version=2015-03-15", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQ/YXBpLXZlcnNpb249MjAxNS0wMy0xNQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "680fae71-37ca-4f8d-af6e-d6dd8e675991-2015-07-28 09:49:57Z-P" - ], - "x-ms-version": [ - "2015-01-01" - ], - "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "753" - ], - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "337f60bc-600e-4a15-b39d-67022ebfcfc8" - ], - "x-ms-client-request-id": [ - "680fae71-37ca-4f8d-af6e-d6dd8e675991-2015-07-28 09:49:57Z-P" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" - ], - "x-ms-correlation-request-id": [ - "337f60bc-600e-4a15-b39d-67022ebfcfc8" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20150728T094958Z:337f60bc-600e-4a15-b39d-67022ebfcfc8" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 28 Jul 2015 09:49:57 GMT" - ], - "Server": [ - "Microsoft-IIS/8.0" + "Wed, 19 Aug 2015 02:32:44 GMT" ] }, "StatusCode": 200 @@ -382,19 +160,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f7b913d4-2c1c-4fd1-8a30-a8cef1ea4260-2015-07-28 09:50:01Z-P" + "245645fe-b5cd-4b0b-82a1-1ec4975deff2-2015-08-19 02:32:39Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -406,28 +184,28 @@ "no-cache" ], "x-ms-request-id": [ - "baaadc12-f287-4bc1-9590-6279a79bcae4" + "2e25bdd8-1f69-406a-9a3e-df6747f0beb5" ], "x-ms-client-request-id": [ - "f7b913d4-2c1c-4fd1-8a30-a8cef1ea4260-2015-07-28 09:50:01Z-P" + "245645fe-b5cd-4b0b-82a1-1ec4975deff2-2015-08-19 02:32:39Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14961" ], "x-ms-correlation-request-id": [ - "baaadc12-f287-4bc1-9590-6279a79bcae4" + "2e25bdd8-1f69-406a-9a3e-df6747f0beb5" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T095001Z:baaadc12-f287-4bc1-9590-6279a79bcae4" + "CENTRALUS:20150819T023240Z:2e25bdd8-1f69-406a-9a3e-df6747f0beb5" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:50:01 GMT" + "Wed, 19 Aug 2015 02:32:40 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -442,19 +220,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9a3cce5c-abec-4f33-a299-825efbf48262-2015-07-28 09:50:07Z-P" + "116e6b80-e6ae-41cc-9800-434863c67794-2015-08-19 02:32:40Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -466,28 +244,28 @@ "no-cache" ], "x-ms-request-id": [ - "deb9d987-3f87-4629-ba2d-25d15c2debec" + "791a9c4d-b10d-4b3f-a39f-889a9bdee4b6" ], "x-ms-client-request-id": [ - "9a3cce5c-abec-4f33-a299-825efbf48262-2015-07-28 09:50:07Z-P" + "116e6b80-e6ae-41cc-9800-434863c67794-2015-08-19 02:32:40Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "14959" ], "x-ms-correlation-request-id": [ - "deb9d987-3f87-4629-ba2d-25d15c2debec" + "791a9c4d-b10d-4b3f-a39f-889a9bdee4b6" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T095008Z:deb9d987-3f87-4629-ba2d-25d15c2debec" + "CENTRALUS:20150819T023241Z:791a9c4d-b10d-4b3f-a39f-889a9bdee4b6" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:50:08 GMT" + "Wed, 19 Aug 2015 02:32:40 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -502,19 +280,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "82ac45a5-f3fc-49ec-ada2-a38b2f467890-2015-07-28 09:50:22Z-P" + "54445d4b-6bd0-411e-838c-479bc2646948-2015-08-19 02:32:44Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -526,28 +304,28 @@ "no-cache" ], "x-ms-request-id": [ - "9322c2dd-0ff8-4ebf-9fdd-52043cb7088f" + "a2ed62fe-deec-4e3d-902e-efb0dda472cf" ], "x-ms-client-request-id": [ - "82ac45a5-f3fc-49ec-ada2-a38b2f467890-2015-07-28 09:50:22Z-P" + "54445d4b-6bd0-411e-838c-479bc2646948-2015-08-19 02:32:44Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14988" + "14957" ], "x-ms-correlation-request-id": [ - "9322c2dd-0ff8-4ebf-9fdd-52043cb7088f" + "a2ed62fe-deec-4e3d-902e-efb0dda472cf" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T095023Z:9322c2dd-0ff8-4ebf-9fdd-52043cb7088f" + "CENTRALUS:20150819T023244Z:a2ed62fe-deec-4e3d-902e-efb0dda472cf" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:50:23 GMT" + "Wed, 19 Aug 2015 02:32:44 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -556,8 +334,8 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1Byb3RlY3Rpb25Qcm9maWxlcy9wcD9hcGktdmVyc2lvbj0yMDE1LTA4LTEw", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL1Byb3RlY3Rpb25Qcm9maWxlcy9wcD9hcGktdmVyc2lvbj0yMDE1LTA4LTEw", "RequestMethod": "PUT", "RequestBody": "{\r\n \"name\": \"pp\",\r\n \"replicationProvider\": \"HyperVReplica\",\r\n \"replicationProviderSettings\": {\r\n \"__type\": \"HyperVReplicaProtectionProfileInput\",\r\n \"replicationFrequencyInSeconds\": 30,\r\n \"recoveryPoints\": 1,\r\n \"applicationConsistentSnapshotFrequencyInHours\": 0,\r\n \"compression\": \"Disable\",\r\n \"initialReplicationMethod\": \"OverNetwork\",\r\n \"replicationPort\": 8083,\r\n \"allowedAuthenticationType\": 1,\r\n \"replicaDeletion\": \"NotRequired\"\r\n }\r\n}", "RequestHeaders": { @@ -571,16 +349,16 @@ "application/Json" ], "Agent-Authentication": [ - "{\"NotBeforeTimestamp\":\"\\/Date(1438073398265)\\/\",\"NotAfterTimestamp\":\"\\/Date(1438678198265)\\/\",\"ClientRequestId\":\"4dc0eac4-9e70-4361-b30a-078dbf0aac06-2015-07-28 09:49:58Z-P\",\"HashFunction\":\"HMACSHA256\",\"Hmac\":\"HndeYmHnLukeOh6vcrrS3LyYftnDbLFIoE57P9SAdBI=\",\"Version\":{\"Major\":1,\"Minor\":2,\"Build\":-1,\"Revision\":-1,\"MajorRevision\":-1,\"MinorRevision\":-1},\"PropertyBag\":{}}" + "{\"NotBeforeTimestamp\":\"\\/Date(1439947961302)\\/\",\"NotAfterTimestamp\":\"\\/Date(1440552761302)\\/\",\"ClientRequestId\":\"230d942c-3bc7-4d88-bb31-04320451a71b-2015-08-19 02:32:41Z-P\",\"HashFunction\":\"HMACSHA256\",\"Hmac\":\"CYy0Q+Z3zEOyEFhXHR2IuPnDEqt0feTMPvOM8CDJ3vo=\",\"Version\":{\"Major\":1,\"Minor\":2,\"Build\":-1,\"Revision\":-1,\"MajorRevision\":-1,\"MinorRevision\":-1},\"PropertyBag\":{}}" ], "x-ms-client-request-id": [ - "4dc0eac4-9e70-4361-b30a-078dbf0aac06-2015-07-28 09:49:58Z-P" + "230d942c-3bc7-4d88-bb31-04320451a71b-2015-08-19 02:32:41Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, "ResponseBody": "", @@ -598,34 +376,34 @@ "30" ], "Azure-AsyncOperation": [ - "https://api-dogfood.resources.windows-int.net/Jobs/1df60d48-db6c-445d-b48e-6416ef76f309?api-version=2015-08-10" + "https://api-dogfood.resources.windows-int.net/Jobs/66498ba3-e774-41bf-958f-289ff630831f?api-version=2015-08-10" ], "x-ms-request-id": [ - "4dc0eac4-9e70-4361-b30a-078dbf0aac06-2015-07-28 09:49:58Z-P 7/28/2015 9:50:00 AM" + "230d942c-3bc7-4d88-bb31-04320451a71b-2015-08-19 02:32:41Z-P 8/19/2015 2:32:43 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-client-request-id": [ - "4dc0eac4-9e70-4361-b30a-078dbf0aac06-2015-07-28 09:49:58Z-P" + "230d942c-3bc7-4d88-bb31-04320451a71b-2015-08-19 02:32:41Z-P" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1196" ], "x-ms-correlation-request-id": [ - "1a9353cd-bac3-44d0-9bae-4ac0ec6602bb" + "9539c04e-674e-46e6-976a-da5e88a7e47c" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T095000Z:1a9353cd-bac3-44d0-9bae-4ac0ec6602bb" + "CENTRALUS:20150819T023244Z:9539c04e-674e-46e6-976a-da5e88a7e47c" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 09:50:00 GMT" + "Wed, 19 Aug 2015 02:32:43 GMT" ], "Location": [ - "https://api-dogfood.resources.windows-int.net/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp/operationresults/1df60d48-db6c-445d-b48e-6416ef76f309?api-version=2015-08-10" + "https://api-dogfood.resources.windows-int.net/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp/operationresults/66498ba3-e774-41bf-958f-289ff630831f?api-version=2015-08-10" ], "X-Powered-By": [ "ASP.NET" @@ -634,159 +412,25 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/jobs/1df60d48-db6c-445d-b48e-6416ef76f309?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL2pvYnMvMWRmNjBkNDgtZGI2Yy00NDVkLWI0OGUtNjQxNmVmNzZmMzA5P2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "9de2e92e-103c-456b-9907-64cceb71dcca-2015-07-28 09:50:01Z-P" - ], - "x-ms-version": [ - "2015-01-01" - ], - "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/Jobs/1df60d48-db6c-445d-b48e-6416ef76f309\",\r\n \"name\": \"1df60d48-db6c-445d-b48e-6416ef76f309\",\r\n \"type\": \"Microsoft.SiteRecovery/Job\",\r\n \"properties\": {\r\n \"activityId\": \"4dc0eac4-9e70-4361-b30a-078dbf0aac06-2015-07-28 09:49:58Z-P\",\r\n \"scenarioName\": \"AddProtectionProfile\",\r\n \"displayName\": \"Configuring protection group\",\r\n \"state\": \"Succeeded\",\r\n \"tasks\": [\r\n {\r\n \"id\": \"AddProtectionProfilePreflightsCheckTask\",\r\n \"name\": \"AddProtectionProfilePreflightsCheckTask\",\r\n \"startTime\": \"2015-07-28T09:50:01.1841869Z\",\r\n \"endTime\": \"2015-07-28T09:50:01.3560319Z\",\r\n \"actions\": [],\r\n \"state\": \"Succeeded\",\r\n \"childJobId\": null\r\n },\r\n {\r\n \"id\": \"AddProtectionProfileTask\",\r\n \"name\": \"AddProtectionProfileTask\",\r\n \"startTime\": \"2015-07-28T09:50:01.3560319Z\",\r\n \"endTime\": \"2015-07-28T09:50:01.3560319Z\",\r\n \"actions\": [],\r\n \"state\": \"Succeeded\",\r\n \"childJobId\": null\r\n }\r\n ],\r\n \"errors\": [],\r\n \"startTime\": \"2015-07-28T09:50:00.5081255Z\",\r\n \"endTime\": \"2015-07-28T09:50:01Z\",\r\n \"allowedActions\": [\r\n \"Cancel\",\r\n \"Restart\"\r\n ],\r\n \"targetObjectId\": \"pp\",\r\n \"targetObjectType\": \"ProtectionProfile\",\r\n \"targetObjectName\": \"pp\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "1124" - ], - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "9de2e92e-103c-456b-9907-64cceb71dcca-2015-07-28 09:50:01Z-P 7/28/2015 9:50:02 AM" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.0", - "Microsoft-IIS/8.0" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-client-request-id": [ - "9de2e92e-103c-456b-9907-64cceb71dcca-2015-07-28 09:50:01Z-P" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" - ], - "x-ms-correlation-request-id": [ - "5416048a-9d2c-4a72-be1c-554e0d0ea91b" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20150728T095002Z:5416048a-9d2c-4a72-be1c-554e0d0ea91b" - ], - "Date": [ - "Tue, 28 Jul 2015 09:50:02 GMT" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/jobs/1df60d48-db6c-445d-b48e-6416ef76f309?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL2pvYnMvMWRmNjBkNDgtZGI2Yy00NDVkLWI0OGUtNjQxNmVmNzZmMzA5P2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "32bf99d8-28f5-467f-bfcf-3b7fd16577a9-2015-07-28 09:50:08Z-P" - ], - "x-ms-version": [ - "2015-01-01" - ], - "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/Jobs/1df60d48-db6c-445d-b48e-6416ef76f309\",\r\n \"name\": \"1df60d48-db6c-445d-b48e-6416ef76f309\",\r\n \"type\": \"Microsoft.SiteRecovery/Job\",\r\n \"properties\": {\r\n \"activityId\": \"4dc0eac4-9e70-4361-b30a-078dbf0aac06-2015-07-28 09:49:58Z-P\",\r\n \"scenarioName\": \"AddProtectionProfile\",\r\n \"displayName\": \"Configuring protection group\",\r\n \"state\": \"Succeeded\",\r\n \"tasks\": [\r\n {\r\n \"id\": \"AddProtectionProfilePreflightsCheckTask\",\r\n \"name\": \"AddProtectionProfilePreflightsCheckTask\",\r\n \"startTime\": \"2015-07-28T09:50:01.1841869Z\",\r\n \"endTime\": \"2015-07-28T09:50:01.3560319Z\",\r\n \"actions\": [],\r\n \"state\": \"Succeeded\",\r\n \"childJobId\": null\r\n },\r\n {\r\n \"id\": \"AddProtectionProfileTask\",\r\n \"name\": \"AddProtectionProfileTask\",\r\n \"startTime\": \"2015-07-28T09:50:01.3560319Z\",\r\n \"endTime\": \"2015-07-28T09:50:01.3560319Z\",\r\n \"actions\": [],\r\n \"state\": \"Succeeded\",\r\n \"childJobId\": null\r\n }\r\n ],\r\n \"errors\": [],\r\n \"startTime\": \"2015-07-28T09:50:00.5081255Z\",\r\n \"endTime\": \"2015-07-28T09:50:01Z\",\r\n \"allowedActions\": [\r\n \"Cancel\",\r\n \"Restart\"\r\n ],\r\n \"targetObjectId\": \"pp\",\r\n \"targetObjectType\": \"ProtectionProfile\",\r\n \"targetObjectName\": \"pp\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "1124" - ], - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "32bf99d8-28f5-467f-bfcf-3b7fd16577a9-2015-07-28 09:50:08Z-P 7/28/2015 9:50:08 AM" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.0", - "Microsoft-IIS/8.0" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-client-request-id": [ - "32bf99d8-28f5-467f-bfcf-3b7fd16577a9-2015-07-28 09:50:08Z-P" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14989" - ], - "x-ms-correlation-request-id": [ - "9c35d7b2-1f0f-4a12-85b6-bb8cc626e089" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20150728T095008Z:9c35d7b2-1f0f-4a12-85b6-bb8cc626e089" - ], - "Date": [ - "Tue, 28 Jul 2015 09:50:08 GMT" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1Byb3RlY3Rpb25Qcm9maWxlcy9wcD9hcGktdmVyc2lvbj0yMDE1LTA4LTEw", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/jobs/66498ba3-e774-41bf-958f-289ff630831f?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL2pvYnMvNjY0OThiYTMtZTc3NC00MWJmLTk1OGYtMjg5ZmY2MzA4MzFmP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9cd5dadb-800c-4ce3-86f6-997d65902389-2015-07-28 09:50:23Z-P" + "7bb80d17-9f30-4b03-bf5e-87c78cc1354c-2015-08-19 02:32:44Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp\",\r\n \"name\": \"pp\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionProfile\",\r\n \"properties\": {\r\n \"friendlyName\": \"pp\",\r\n \"protectedEntityCount\": 0,\r\n \"associationStatus\": \"Associated\",\r\n \"replicationProvider\": \"HyperVReplica\",\r\n \"replicationProviderSettings\": {\r\n \"__type\": \"HyperVReplicaProtectionProfileDetails\",\r\n \"recoveryPoints\": 1,\r\n \"applicationConsistentSnapshotFrequencyInHours\": 0,\r\n \"compression\": \"Disabled\",\r\n \"initialReplicationMethod\": \"OverNetwork\",\r\n \"onlineReplicationStartTime\": null,\r\n \"offlineReplicationImportPath\": \"\",\r\n \"offlineReplicationExportPath\": \"\",\r\n \"replicationPort\": 8083,\r\n \"allowedAuthenticationType\": 1,\r\n \"replicaDeletionOption\": \"None\",\r\n \"replicationFrequencyInSeconds\": 30\r\n },\r\n \"associationDetail\": []\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/Jobs/66498ba3-e774-41bf-958f-289ff630831f\",\r\n \"name\": \"66498ba3-e774-41bf-958f-289ff630831f\",\r\n \"type\": \"Microsoft.SiteRecovery/Job\",\r\n \"properties\": {\r\n \"activityId\": \"230d942c-3bc7-4d88-bb31-04320451a71b-2015-08-19 02:32:41Z-P\",\r\n \"scenarioName\": \"AddProtectionProfile\",\r\n \"displayName\": \"Configuring protection group\",\r\n \"state\": \"Succeeded\",\r\n \"tasks\": [\r\n {\r\n \"id\": \"AddProtectionProfilePreflightsCheckTask\",\r\n \"name\": \"AddProtectionProfilePreflightsCheckTask\",\r\n \"startTime\": \"2015-08-19T02:32:45.0128822Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n \"actions\": [],\r\n \"state\": \"Succeeded\",\r\n \"childJobId\": null\r\n },\r\n {\r\n \"id\": \"AddProtectionProfileTask\",\r\n \"name\": \"AddProtectionProfileTask\",\r\n \"startTime\": \"0001-01-01T00:00:00\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n \"actions\": [],\r\n \"state\": \"NotStarted\",\r\n \"childJobId\": null\r\n }\r\n ],\r\n \"errors\": [],\r\n \"startTime\": \"2015-08-19T02:32:43.4983869Z\",\r\n \"endTime\": \"2015-08-19T02:32:45Z\",\r\n \"allowedActions\": [\r\n \"Cancel\",\r\n \"Restart\"\r\n ],\r\n \"targetObjectId\": \"pp\",\r\n \"targetObjectType\": \"ProtectionProfile\",\r\n \"targetObjectName\": \"pp\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "825" + "1098" ], "Content-Type": [ "application/json" @@ -798,7 +442,7 @@ "no-cache" ], "x-ms-request-id": [ - "9cd5dadb-800c-4ce3-86f6-997d65902389-2015-07-28 09:50:23Z-P 7/28/2015 9:50:24 AM" + "7bb80d17-9f30-4b03-bf5e-87c78cc1354c-2015-08-19 02:32:44Z-P 8/19/2015 2:32:45 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -817,19 +461,19 @@ "ASP.NET" ], "x-ms-client-request-id": [ - "9cd5dadb-800c-4ce3-86f6-997d65902389-2015-07-28 09:50:23Z-P" + "7bb80d17-9f30-4b03-bf5e-87c78cc1354c-2015-08-19 02:32:44Z-P" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14988" + "14984" ], "x-ms-correlation-request-id": [ - "bed007db-1730-4a1f-b14a-f35f088d0de7" + "ee091270-2885-4eba-8118-ce1e91ec0f78" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T095024Z:bed007db-1730-4a1f-b14a-f35f088d0de7" + "CENTRALUS:20150819T023245Z:ee091270-2885-4eba-8118-ce1e91ec0f78" ], "Date": [ - "Tue, 28 Jul 2015 09:50:23 GMT" + "Wed, 19 Aug 2015 02:32:45 GMT" ] }, "StatusCode": 200 diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestDeleteProfile.json b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestDeleteProfile.json index d06df20ae36a..37b6fa160841 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestDeleteProfile.json +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestDeleteProfile.json @@ -10,7 +10,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -28,16 +28,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14969" + "14982" ], "x-ms-request-id": [ - "b82d259d-836c-4071-8f90-091472b79be6" + "a67931d7-25f3-4e92-89d3-436e4c38006b" ], "x-ms-correlation-request-id": [ - "b82d259d-836c-4071-8f90-091472b79be6" + "a67931d7-25f3-4e92-89d3-436e4c38006b" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113923Z:b82d259d-836c-4071-8f90-091472b79be6" + "CENTRALUS:20150819T023659Z:a67931d7-25f3-4e92-89d3-436e4c38006b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -46,7 +46,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:39:22 GMT" + "Wed, 19 Aug 2015 02:36:59 GMT" ] }, "StatusCode": 200 @@ -61,7 +61,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -79,16 +79,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14967" + "14980" ], "x-ms-request-id": [ - "45072869-2792-44ce-9de9-f76fa27d61ae" + "730afaae-c262-49b8-a1c6-7949c4ab4587" ], "x-ms-correlation-request-id": [ - "45072869-2792-44ce-9de9-f76fa27d61ae" + "730afaae-c262-49b8-a1c6-7949c4ab4587" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113924Z:45072869-2792-44ce-9de9-f76fa27d61ae" + "CENTRALUS:20150819T023700Z:730afaae-c262-49b8-a1c6-7949c4ab4587" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -97,7 +97,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:39:23 GMT" + "Wed, 19 Aug 2015 02:37:00 GMT" ] }, "StatusCode": 200 @@ -112,7 +112,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -130,16 +130,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14965" + "14978" ], "x-ms-request-id": [ - "c5ea8b20-f4a6-419a-9620-8ead1d4f6d8d" + "7a8d9210-da39-4a9c-bc0d-15c051c33c25" ], "x-ms-correlation-request-id": [ - "c5ea8b20-f4a6-419a-9620-8ead1d4f6d8d" + "7a8d9210-da39-4a9c-bc0d-15c051c33c25" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113926Z:c5ea8b20-f4a6-419a-9620-8ead1d4f6d8d" + "CENTRALUS:20150819T023703Z:7a8d9210-da39-4a9c-bc0d-15c051c33c25" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -148,7 +148,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:39:26 GMT" + "Wed, 19 Aug 2015 02:37:03 GMT" ] }, "StatusCode": 200 @@ -163,7 +163,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -181,16 +181,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14963" + "14976" ], "x-ms-request-id": [ - "dad2d34b-1a8f-4c42-b758-c24ab65da2b6" + "4dd7ca1e-030f-444e-a354-30071f5bc2d1" ], "x-ms-correlation-request-id": [ - "dad2d34b-1a8f-4c42-b758-c24ab65da2b6" + "4dd7ca1e-030f-444e-a354-30071f5bc2d1" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113928Z:dad2d34b-1a8f-4c42-b758-c24ab65da2b6" + "CENTRALUS:20150819T023705Z:4dd7ca1e-030f-444e-a354-30071f5bc2d1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -199,7 +199,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:39:28 GMT" + "Wed, 19 Aug 2015 02:37:04 GMT" ] }, "StatusCode": 200 @@ -211,19 +211,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7fd7ba17-6dfa-44ff-90b7-2e1a7e52b484-2015-07-28 11:39:23Z-P" + "1170244c-18ec-4f24-8cba-b66c7945d912-2015-08-19 02:36:59Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -235,28 +235,28 @@ "no-cache" ], "x-ms-request-id": [ - "41d253f4-6dce-4054-b57e-a1b467cdb5ef" + "f7896990-e50e-4b8a-bb53-80baba5dff7d" ], "x-ms-client-request-id": [ - "7fd7ba17-6dfa-44ff-90b7-2e1a7e52b484-2015-07-28 11:39:23Z-P" + "1170244c-18ec-4f24-8cba-b66c7945d912-2015-08-19 02:36:59Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14968" + "14981" ], "x-ms-correlation-request-id": [ - "41d253f4-6dce-4054-b57e-a1b467cdb5ef" + "f7896990-e50e-4b8a-bb53-80baba5dff7d" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113923Z:41d253f4-6dce-4054-b57e-a1b467cdb5ef" + "CENTRALUS:20150819T023700Z:f7896990-e50e-4b8a-bb53-80baba5dff7d" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:39:23 GMT" + "Wed, 19 Aug 2015 02:36:59 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -271,19 +271,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4784fdb3-550f-4664-b0ca-0a62e10a66ab-2015-07-28 11:39:24Z-P" + "77644d07-a720-4785-a0fd-9692f18c6ea3-2015-08-19 02:37:00Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -295,28 +295,28 @@ "no-cache" ], "x-ms-request-id": [ - "3dc64cb3-ce52-48c4-b8c7-8e4b6ab006ee" + "d2be4038-b8c6-4044-9782-3cfb1a011422" ], "x-ms-client-request-id": [ - "4784fdb3-550f-4664-b0ca-0a62e10a66ab-2015-07-28 11:39:24Z-P" + "77644d07-a720-4785-a0fd-9692f18c6ea3-2015-08-19 02:37:00Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14966" + "14979" ], "x-ms-correlation-request-id": [ - "3dc64cb3-ce52-48c4-b8c7-8e4b6ab006ee" + "d2be4038-b8c6-4044-9782-3cfb1a011422" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113924Z:3dc64cb3-ce52-48c4-b8c7-8e4b6ab006ee" + "CENTRALUS:20150819T023701Z:d2be4038-b8c6-4044-9782-3cfb1a011422" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:39:24 GMT" + "Wed, 19 Aug 2015 02:37:00 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -331,19 +331,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "e6737c19-2850-440b-93f6-9aff344ca750-2015-07-28 11:39:26Z-P" + "1e6f1efb-f868-48d2-94d2-f18541ea233c-2015-08-19 02:37:03Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -355,28 +355,28 @@ "no-cache" ], "x-ms-request-id": [ - "850f199d-3a93-4de6-b0d9-d42f2289d615" + "f5786f77-55ee-40e0-83bc-703c7d578493" ], "x-ms-client-request-id": [ - "e6737c19-2850-440b-93f6-9aff344ca750-2015-07-28 11:39:26Z-P" + "1e6f1efb-f868-48d2-94d2-f18541ea233c-2015-08-19 02:37:03Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14964" + "14977" ], "x-ms-correlation-request-id": [ - "850f199d-3a93-4de6-b0d9-d42f2289d615" + "f5786f77-55ee-40e0-83bc-703c7d578493" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113927Z:850f199d-3a93-4de6-b0d9-d42f2289d615" + "CENTRALUS:20150819T023703Z:f5786f77-55ee-40e0-83bc-703c7d578493" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:39:27 GMT" + "Wed, 19 Aug 2015 02:37:03 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -391,19 +391,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4fe4f3ee-47bd-4e97-b2ab-d88323012771-2015-07-28 11:39:28Z-P" + "65fab847-039a-4d58-829e-0a2c61465bb8-2015-08-19 02:37:05Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -415,28 +415,28 @@ "no-cache" ], "x-ms-request-id": [ - "c978a9e3-dbe4-480b-9ac9-cada01c29c29" + "52778b2b-d042-4760-a505-ebca3826c84d" ], "x-ms-client-request-id": [ - "4fe4f3ee-47bd-4e97-b2ab-d88323012771-2015-07-28 11:39:28Z-P" + "65fab847-039a-4d58-829e-0a2c61465bb8-2015-08-19 02:37:05Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14962" + "14975" ], "x-ms-correlation-request-id": [ - "c978a9e3-dbe4-480b-9ac9-cada01c29c29" + "52778b2b-d042-4760-a505-ebca3826c84d" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113928Z:c978a9e3-dbe4-480b-9ac9-cada01c29c29" + "CENTRALUS:20150819T023705Z:52778b2b-d042-4760-a505-ebca3826c84d" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:39:28 GMT" + "Wed, 19 Aug 2015 02:37:05 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -445,22 +445,22 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1Byb3RlY3Rpb25Qcm9maWxlcy9wcD9hcGktdmVyc2lvbj0yMDE1LTA4LTEw", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL1Byb3RlY3Rpb25Qcm9maWxlcy9wcD9hcGktdmVyc2lvbj0yMDE1LTA4LTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ce2ba953-9c40-4c35-a8d1-8262dca10f89-2015-07-28 11:39:24Z-P" + "1d99e308-3b15-4805-9556-c8ee94fb7386-2015-08-19 02:37:01Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp\",\r\n \"name\": \"pp\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionProfile\",\r\n \"properties\": {\r\n \"friendlyName\": \"pp\",\r\n \"protectedEntityCount\": 0,\r\n \"associationStatus\": \"Associated\",\r\n \"replicationProvider\": \"HyperVReplica\",\r\n \"replicationProviderSettings\": {\r\n \"__type\": \"HyperVReplicaProtectionProfileDetails\",\r\n \"recoveryPoints\": 1,\r\n \"applicationConsistentSnapshotFrequencyInHours\": 0,\r\n \"compression\": \"Disabled\",\r\n \"initialReplicationMethod\": \"OverNetwork\",\r\n \"onlineReplicationStartTime\": null,\r\n \"offlineReplicationImportPath\": \"\",\r\n \"offlineReplicationExportPath\": \"\",\r\n \"replicationPort\": 8083,\r\n \"allowedAuthenticationType\": 1,\r\n \"replicaDeletionOption\": \"None\",\r\n \"replicationFrequencyInSeconds\": 30\r\n },\r\n \"associationDetail\": []\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp\",\r\n \"name\": \"pp\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionProfile\",\r\n \"properties\": {\r\n \"friendlyName\": \"pp\",\r\n \"protectedEntityCount\": 0,\r\n \"associationStatus\": \"Associated\",\r\n \"replicationProvider\": \"HyperVReplica\",\r\n \"replicationProviderSettings\": {\r\n \"__type\": \"HyperVReplicaProtectionProfileDetails\",\r\n \"recoveryPoints\": 1,\r\n \"applicationConsistentSnapshotFrequencyInHours\": 0,\r\n \"compression\": \"Disabled\",\r\n \"initialReplicationMethod\": \"OverNetwork\",\r\n \"onlineReplicationStartTime\": null,\r\n \"offlineReplicationImportPath\": \"\",\r\n \"offlineReplicationExportPath\": \"\",\r\n \"replicationPort\": 8083,\r\n \"allowedAuthenticationType\": 1,\r\n \"replicaDeletionOption\": \"None\",\r\n \"replicationFrequencyInSeconds\": 30\r\n },\r\n \"associationDetail\": []\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "825" @@ -475,7 +475,7 @@ "no-cache" ], "x-ms-request-id": [ - "ce2ba953-9c40-4c35-a8d1-8262dca10f89-2015-07-28 11:39:24Z-P 7/28/2015 11:39:26 AM" + "1d99e308-3b15-4805-9556-c8ee94fb7386-2015-08-19 02:37:01Z-P 8/19/2015 2:37:03 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -494,26 +494,26 @@ "ASP.NET" ], "x-ms-client-request-id": [ - "ce2ba953-9c40-4c35-a8d1-8262dca10f89-2015-07-28 11:39:24Z-P" + "1d99e308-3b15-4805-9556-c8ee94fb7386-2015-08-19 02:37:01Z-P" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14983" + "14936" ], "x-ms-correlation-request-id": [ - "4658c915-61f9-4ee7-95ff-a3f2066969db" + "5c7c3261-276c-4d42-a731-df87a618c879" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113926Z:4658c915-61f9-4ee7-95ff-a3f2066969db" + "CENTRALUS:20150819T023703Z:5c7c3261-276c-4d42-a731-df87a618c879" ], "Date": [ - "Tue, 28 Jul 2015 11:39:26 GMT" + "Wed, 19 Aug 2015 02:37:02 GMT" ] }, "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1Byb3RlY3Rpb25Qcm9maWxlcy9wcD9hcGktdmVyc2lvbj0yMDE1LTA4LTEw", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL1Byb3RlY3Rpb25Qcm9maWxlcy9wcD9hcGktdmVyc2lvbj0yMDE1LTA4LTEw", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { @@ -521,16 +521,16 @@ "application/Json" ], "Agent-Authentication": [ - "{\"NotBeforeTimestamp\":\"\\/Date(1438079967433)\\/\",\"NotAfterTimestamp\":\"\\/Date(1438684767433)\\/\",\"ClientRequestId\":\"defb2a19-a3f8-4ddb-a762-49bc1e357b2e-2015-07-28 11:39:27Z-P\",\"HashFunction\":\"HMACSHA256\",\"Hmac\":\"YwSy8QjlCfESA3bMm9VhcbjPK8WWTT2rG7uajlXC/94=\",\"Version\":{\"Major\":1,\"Minor\":2,\"Build\":-1,\"Revision\":-1,\"MajorRevision\":-1,\"MinorRevision\":-1},\"PropertyBag\":{}}" + "{\"NotBeforeTimestamp\":\"\\/Date(1439948223964)\\/\",\"NotAfterTimestamp\":\"\\/Date(1440553023964)\\/\",\"ClientRequestId\":\"bb1d8a3c-2dfa-4bd6-9696-bdb069c73da4-2015-08-19 02:37:03Z-P\",\"HashFunction\":\"HMACSHA256\",\"Hmac\":\"6UzV3PxOWKL/ua1CIWFNdShYS9r3qA1mqxvyYImrQoE=\",\"Version\":{\"Major\":1,\"Minor\":2,\"Build\":-1,\"Revision\":-1,\"MajorRevision\":-1,\"MinorRevision\":-1},\"PropertyBag\":{}}" ], "x-ms-client-request-id": [ - "defb2a19-a3f8-4ddb-a762-49bc1e357b2e-2015-07-28 11:39:27Z-P" + "bb1d8a3c-2dfa-4bd6-9696-bdb069c73da4-2015-08-19 02:37:03Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, "ResponseBody": "", @@ -548,34 +548,34 @@ "30" ], "Azure-AsyncOperation": [ - "https://api-dogfood.resources.windows-int.net/Jobs/99565575-e134-45e0-8a43-2719f96965b4?api-version=2015-08-10" + "https://api-dogfood.resources.windows-int.net/Jobs/6c5812d7-0323-4a35-9215-fbb47329e2fb?api-version=2015-08-10" ], "x-ms-request-id": [ - "defb2a19-a3f8-4ddb-a762-49bc1e357b2e-2015-07-28 11:39:27Z-P 7/28/2015 11:39:27 AM" + "bb1d8a3c-2dfa-4bd6-9696-bdb069c73da4-2015-08-19 02:37:03Z-P 8/19/2015 2:37:05 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-client-request-id": [ - "defb2a19-a3f8-4ddb-a762-49bc1e357b2e-2015-07-28 11:39:27Z-P" + "bb1d8a3c-2dfa-4bd6-9696-bdb069c73da4-2015-08-19 02:37:03Z-P" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1197" ], "x-ms-correlation-request-id": [ - "beab5f36-5069-4083-92ad-b4ec239372d7" + "b8114395-af5e-4f8b-8034-cf218846480f" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113928Z:beab5f36-5069-4083-92ad-b4ec239372d7" + "CENTRALUS:20150819T023704Z:b8114395-af5e-4f8b-8034-cf218846480f" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:39:28 GMT" + "Wed, 19 Aug 2015 02:37:04 GMT" ], "Location": [ - "https://api-dogfood.resources.windows-int.net/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp/operationresults/99565575-e134-45e0-8a43-2719f96965b4?api-version=2015-08-10" + "https://api-dogfood.resources.windows-int.net/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp/operationresults/6c5812d7-0323-4a35-9215-fbb47329e2fb?api-version=2015-08-10" ], "X-Powered-By": [ "ASP.NET" @@ -584,25 +584,25 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/jobs/99565575-e134-45e0-8a43-2719f96965b4?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL2pvYnMvOTk1NjU1NzUtZTEzNC00NWUwLThhNDMtMjcxOWY5Njk2NWI0P2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/jobs/6c5812d7-0323-4a35-9215-fbb47329e2fb?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL2pvYnMvNmM1ODEyZDctMDMyMy00YTM1LTkyMTUtZmJiNDczMjllMmZiP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9f1c0ac6-1604-4793-9595-5563d2c1b5f2-2015-07-28 11:39:29Z-P" + "85a2a9f8-b5c5-49d5-bd2e-e413973faf9a-2015-08-19 02:37:05Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/Jobs/99565575-e134-45e0-8a43-2719f96965b4\",\r\n \"name\": \"99565575-e134-45e0-8a43-2719f96965b4\",\r\n \"type\": \"Microsoft.SiteRecovery/Job\",\r\n \"properties\": {\r\n \"activityId\": \"defb2a19-a3f8-4ddb-a762-49bc1e357b2e-2015-07-28 11:39:27Z-P\",\r\n \"scenarioName\": \"RemoveProtectionProfile\",\r\n \"displayName\": \"Remove the protection group\",\r\n \"state\": \"Succeeded\",\r\n \"tasks\": [\r\n {\r\n \"id\": \"RemoveProtectionProfilePreflightsCheckTask\",\r\n \"name\": \"RemoveProtectionProfilePreflightsCheckTask\",\r\n \"startTime\": \"2015-07-28T11:39:27.9544575Z\",\r\n \"endTime\": \"2015-07-28T11:39:28.0638278Z\",\r\n \"actions\": [],\r\n \"state\": \"Succeeded\",\r\n \"childJobId\": null\r\n },\r\n {\r\n \"id\": \"RemoveProtectionProfileTask\",\r\n \"name\": \"RemoveProtectionProfileTask\",\r\n \"startTime\": \"2015-07-28T11:39:28.0638278Z\",\r\n \"endTime\": \"2015-07-28T11:39:28.0638278Z\",\r\n \"actions\": [],\r\n \"state\": \"Succeeded\",\r\n \"childJobId\": null\r\n }\r\n ],\r\n \"errors\": [],\r\n \"startTime\": \"2015-07-28T11:39:27.5920617Z\",\r\n \"endTime\": \"2015-07-28T11:39:27Z\",\r\n \"allowedActions\": [\r\n \"Cancel\",\r\n \"Restart\"\r\n ],\r\n \"targetObjectId\": \"pp\",\r\n \"targetObjectType\": \"ProtectionProfile\",\r\n \"targetObjectName\": \"pp\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/Jobs/6c5812d7-0323-4a35-9215-fbb47329e2fb\",\r\n \"name\": \"6c5812d7-0323-4a35-9215-fbb47329e2fb\",\r\n \"type\": \"Microsoft.SiteRecovery/Job\",\r\n \"properties\": {\r\n \"activityId\": \"bb1d8a3c-2dfa-4bd6-9696-bdb069c73da4-2015-08-19 02:37:03Z-P\",\r\n \"scenarioName\": \"RemoveProtectionProfile\",\r\n \"displayName\": \"Remove the protection group\",\r\n \"state\": \"Succeeded\",\r\n \"tasks\": [\r\n {\r\n \"id\": \"RemoveProtectionProfilePreflightsCheckTask\",\r\n \"name\": \"RemoveProtectionProfilePreflightsCheckTask\",\r\n \"startTime\": \"2015-08-19T02:37:04.9791098Z\",\r\n \"endTime\": \"2015-08-19T02:37:05.088481Z\",\r\n \"actions\": [],\r\n \"state\": \"Succeeded\",\r\n \"childJobId\": null\r\n },\r\n {\r\n \"id\": \"RemoveProtectionProfileTask\",\r\n \"name\": \"RemoveProtectionProfileTask\",\r\n \"startTime\": \"2015-08-19T02:37:05.088481Z\",\r\n \"endTime\": \"2015-08-19T02:37:05.088481Z\",\r\n \"actions\": [],\r\n \"state\": \"Succeeded\",\r\n \"childJobId\": null\r\n }\r\n ],\r\n \"errors\": [],\r\n \"startTime\": \"2015-08-19T02:37:04.9762758Z\",\r\n \"endTime\": \"2015-08-19T02:37:05Z\",\r\n \"allowedActions\": [\r\n \"Cancel\",\r\n \"Restart\"\r\n ],\r\n \"targetObjectId\": \"pp\",\r\n \"targetObjectType\": \"ProtectionProfile\",\r\n \"targetObjectName\": \"pp\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "1138" + "1135" ], "Content-Type": [ "application/json" @@ -614,7 +614,7 @@ "no-cache" ], "x-ms-request-id": [ - "9f1c0ac6-1604-4793-9595-5563d2c1b5f2-2015-07-28 11:39:29Z-P 7/28/2015 11:39:29 AM" + "85a2a9f8-b5c5-49d5-bd2e-e413973faf9a-2015-08-19 02:37:05Z-P 8/19/2015 2:37:06 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -633,19 +633,19 @@ "ASP.NET" ], "x-ms-client-request-id": [ - "9f1c0ac6-1604-4793-9595-5563d2c1b5f2-2015-07-28 11:39:29Z-P" + "85a2a9f8-b5c5-49d5-bd2e-e413973faf9a-2015-08-19 02:37:05Z-P" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14982" + "14935" ], "x-ms-correlation-request-id": [ - "0abf07c1-0fed-4854-a7f8-517bb45e3f9b" + "8af9af4e-d630-4d1b-ae17-982466144f04" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113929Z:0abf07c1-0fed-4854-a7f8-517bb45e3f9b" + "CENTRALUS:20150819T023706Z:8af9af4e-d630-4d1b-ae17-982466144f04" ], "Date": [ - "Tue, 28 Jul 2015 11:39:29 GMT" + "Wed, 19 Aug 2015 02:37:06 GMT" ] }, "StatusCode": 200 diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestDissociateProfile.json b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestDissociateProfile.json index f15ce993e5cb..66f4082528c6 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestDissociateProfile.json +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/TestDissociateProfile.json @@ -10,7 +10,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -28,16 +28,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14956" + "14954" ], "x-ms-request-id": [ - "8905c4dd-c7df-4638-8537-b52a85698968" + "d13aa333-eda1-4cdb-8794-db8d9fcbbe48" ], "x-ms-correlation-request-id": [ - "8905c4dd-c7df-4638-8537-b52a85698968" + "d13aa333-eda1-4cdb-8794-db8d9fcbbe48" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113749Z:8905c4dd-c7df-4638-8537-b52a85698968" + "CENTRALUS:20150819T023515Z:d13aa333-eda1-4cdb-8794-db8d9fcbbe48" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -46,7 +46,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:37:48 GMT" + "Wed, 19 Aug 2015 02:35:15 GMT" ] }, "StatusCode": 200 @@ -61,7 +61,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -79,16 +79,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14954" + "14952" ], "x-ms-request-id": [ - "2fc7eb88-5a51-4b93-bddf-88e1258395d9" + "755e6f80-22f1-48b9-b408-f7a0beec988c" ], "x-ms-correlation-request-id": [ - "2fc7eb88-5a51-4b93-bddf-88e1258395d9" + "755e6f80-22f1-48b9-b408-f7a0beec988c" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113750Z:2fc7eb88-5a51-4b93-bddf-88e1258395d9" + "CENTRALUS:20150819T023516Z:755e6f80-22f1-48b9-b408-f7a0beec988c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -97,7 +97,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:37:50 GMT" + "Wed, 19 Aug 2015 02:35:16 GMT" ] }, "StatusCode": 200 @@ -112,7 +112,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -130,16 +130,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14952" + "14950" ], "x-ms-request-id": [ - "ab2a497f-9bb8-4429-a9bc-c4b6b3de0a9d" + "014c2ace-9c4e-43d4-a02d-e9474e8f4928" ], "x-ms-correlation-request-id": [ - "ab2a497f-9bb8-4429-a9bc-c4b6b3de0a9d" + "014c2ace-9c4e-43d4-a02d-e9474e8f4928" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113756Z:ab2a497f-9bb8-4429-a9bc-c4b6b3de0a9d" + "CENTRALUS:20150819T023519Z:014c2ace-9c4e-43d4-a02d-e9474e8f4928" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -148,7 +148,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:37:55 GMT" + "Wed, 19 Aug 2015 02:35:19 GMT" ] }, "StatusCode": 200 @@ -163,7 +163,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -181,16 +181,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14950" + "14948" ], "x-ms-request-id": [ - "4e9b1512-c649-4d44-a3bf-51838c843d6b" + "8a69954a-1b44-4e4a-b593-f8b6ee37f01c" ], "x-ms-correlation-request-id": [ - "4e9b1512-c649-4d44-a3bf-51838c843d6b" + "8a69954a-1b44-4e4a-b593-f8b6ee37f01c" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113757Z:4e9b1512-c649-4d44-a3bf-51838c843d6b" + "CENTRALUS:20150819T023521Z:8a69954a-1b44-4e4a-b593-f8b6ee37f01c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -199,7 +199,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:37:57 GMT" + "Wed, 19 Aug 2015 02:35:20 GMT" ] }, "StatusCode": 200 @@ -214,7 +214,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -232,16 +232,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14948" + "14946" ], "x-ms-request-id": [ - "5aa68a17-2547-48b6-9e4e-220fbe2f4af1" + "236fc596-fc95-4817-b58a-360b875b9a44" ], "x-ms-correlation-request-id": [ - "5aa68a17-2547-48b6-9e4e-220fbe2f4af1" + "236fc596-fc95-4817-b58a-360b875b9a44" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113758Z:5aa68a17-2547-48b6-9e4e-220fbe2f4af1" + "CENTRALUS:20150819T023522Z:236fc596-fc95-4817-b58a-360b875b9a44" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -250,7 +250,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:37:58 GMT" + "Wed, 19 Aug 2015 02:35:21 GMT" ] }, "StatusCode": 200 @@ -265,7 +265,7 @@ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"name\": \"RecoveryServices-N2QRRPTE4YJGIJLCY5U25RQV7P4K24ENUG6LYZF5F536VFZIM5PA-West-US\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup\",\r\n \"name\": \"testsitegroup\",\r\n \"location\": \"centralus\",\r\n \"tags\": {\r\n \"department\": \"finance\",\r\n \"owner\": \"billg\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", @@ -283,16 +283,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14946" + "14944" ], "x-ms-request-id": [ - "b717b06b-d8e7-48e4-987a-aab275483ca9" + "d966061a-b16f-4cbf-a1df-830276374c75" ], "x-ms-correlation-request-id": [ - "b717b06b-d8e7-48e4-987a-aab275483ca9" + "d966061a-b16f-4cbf-a1df-830276374c75" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113801Z:b717b06b-d8e7-48e4-987a-aab275483ca9" + "CENTRALUS:20150819T023525Z:d966061a-b16f-4cbf-a1df-830276374c75" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -301,7 +301,7 @@ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:38:00 GMT" + "Wed, 19 Aug 2015 02:35:25 GMT" ] }, "StatusCode": 200 @@ -313,19 +313,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "e2fdf362-55c0-4800-bed3-d37f73dacb96-2015-07-28 11:37:49Z-P" + "86837d8c-3a8a-4642-95e2-6595d1acc3c1-2015-08-19 02:35:15Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -337,28 +337,28 @@ "no-cache" ], "x-ms-request-id": [ - "7699fd5e-0017-4c08-88bb-52f0e6c28918" + "91ff4784-36a7-4d5f-ac68-aa0cca14f156" ], "x-ms-client-request-id": [ - "e2fdf362-55c0-4800-bed3-d37f73dacb96-2015-07-28 11:37:49Z-P" + "86837d8c-3a8a-4642-95e2-6595d1acc3c1-2015-08-19 02:35:15Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14955" + "14953" ], "x-ms-correlation-request-id": [ - "7699fd5e-0017-4c08-88bb-52f0e6c28918" + "91ff4784-36a7-4d5f-ac68-aa0cca14f156" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113750Z:7699fd5e-0017-4c08-88bb-52f0e6c28918" + "CENTRALUS:20150819T023516Z:91ff4784-36a7-4d5f-ac68-aa0cca14f156" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:37:50 GMT" + "Wed, 19 Aug 2015 02:35:15 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -373,19 +373,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f639d350-3338-445b-9f21-daf2ca9c9c41-2015-07-28 11:37:50Z-P" + "d1dc6ba3-08cd-4789-bcc6-5b6d03a81a78-2015-08-19 02:35:16Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -397,28 +397,28 @@ "no-cache" ], "x-ms-request-id": [ - "08b8d01a-0c78-4d31-b49c-74e929d7ba28" + "04abaaec-5497-44e2-956b-98ec33112cd3" ], "x-ms-client-request-id": [ - "f639d350-3338-445b-9f21-daf2ca9c9c41-2015-07-28 11:37:50Z-P" + "d1dc6ba3-08cd-4789-bcc6-5b6d03a81a78-2015-08-19 02:35:16Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14953" + "14951" ], "x-ms-correlation-request-id": [ - "08b8d01a-0c78-4d31-b49c-74e929d7ba28" + "04abaaec-5497-44e2-956b-98ec33112cd3" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113751Z:08b8d01a-0c78-4d31-b49c-74e929d7ba28" + "CENTRALUS:20150819T023517Z:04abaaec-5497-44e2-956b-98ec33112cd3" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:37:50 GMT" + "Wed, 19 Aug 2015 02:35:16 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -433,19 +433,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c2e6bb8f-aa04-4c84-90b8-121fefa66e5d-2015-07-28 11:37:56Z-P" + "4ab88664-00e9-4779-a942-74b87e98af65-2015-08-19 02:35:19Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -457,28 +457,28 @@ "no-cache" ], "x-ms-request-id": [ - "48ae98f7-7653-4e65-a8b9-322968714bd2" + "24768e80-ecc2-431b-b4f6-d6c1a24da86a" ], "x-ms-client-request-id": [ - "c2e6bb8f-aa04-4c84-90b8-121fefa66e5d-2015-07-28 11:37:56Z-P" + "4ab88664-00e9-4779-a942-74b87e98af65-2015-08-19 02:35:19Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14951" + "14949" ], "x-ms-correlation-request-id": [ - "48ae98f7-7653-4e65-a8b9-322968714bd2" + "24768e80-ecc2-431b-b4f6-d6c1a24da86a" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113756Z:48ae98f7-7653-4e65-a8b9-322968714bd2" + "CENTRALUS:20150819T023519Z:24768e80-ecc2-431b-b4f6-d6c1a24da86a" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:37:55 GMT" + "Wed, 19 Aug 2015 02:35:19 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -493,19 +493,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9c35de08-f227-41ea-84c8-5001ac7c3374-2015-07-28 11:37:57Z-P" + "4c3562c3-acd0-42c6-a2bf-410ae89eafdd-2015-08-19 02:35:21Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -517,28 +517,28 @@ "no-cache" ], "x-ms-request-id": [ - "1409c002-f1a1-4e5f-b387-be79966048fa" + "f49a98b0-b302-4e35-9084-2d2a17cd5da5" ], "x-ms-client-request-id": [ - "9c35de08-f227-41ea-84c8-5001ac7c3374-2015-07-28 11:37:57Z-P" + "4c3562c3-acd0-42c6-a2bf-410ae89eafdd-2015-08-19 02:35:21Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14949" + "14947" ], "x-ms-correlation-request-id": [ - "1409c002-f1a1-4e5f-b387-be79966048fa" + "f49a98b0-b302-4e35-9084-2d2a17cd5da5" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113758Z:1409c002-f1a1-4e5f-b387-be79966048fa" + "CENTRALUS:20150819T023521Z:f49a98b0-b302-4e35-9084-2d2a17cd5da5" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:37:58 GMT" + "Wed, 19 Aug 2015 02:35:20 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -553,19 +553,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "df3c51f1-3b9d-4512-926c-13dcad76f0b9-2015-07-28 11:37:59Z-P" + "8cd61e8c-55e8-4c62-a377-e9f2c03b8589-2015-08-19 02:35:22Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -577,28 +577,28 @@ "no-cache" ], "x-ms-request-id": [ - "b2186f95-c3a0-4c1f-8d9c-0dff43e7037b" + "ca2540be-921f-413a-9532-6c9dbe548981" ], "x-ms-client-request-id": [ - "df3c51f1-3b9d-4512-926c-13dcad76f0b9-2015-07-28 11:37:59Z-P" + "8cd61e8c-55e8-4c62-a377-e9f2c03b8589-2015-08-19 02:35:22Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14947" + "14945" ], "x-ms-correlation-request-id": [ - "b2186f95-c3a0-4c1f-8d9c-0dff43e7037b" + "ca2540be-921f-413a-9532-6c9dbe548981" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113759Z:b2186f95-c3a0-4c1f-8d9c-0dff43e7037b" + "CENTRALUS:20150819T023523Z:ca2540be-921f-413a-9532-6c9dbe548981" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:37:59 GMT" + "Wed, 19 Aug 2015 02:35:23 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -613,19 +613,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4a53d06c-7712-4fc3-bc28-d95572659470-2015-07-28 11:38:01Z-P" + "acbe5a52-ccba-444f-aa65-4fe2e5e38c65-2015-08-19 02:35:25Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.0.0.0" + "Microsoft.Azure.Management.RecoveryServices.RecoveryServicesManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"Value\": [\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault1\",\r\n \"etag\": \"0b2d574e-c7d7-40c8-90cd-84d731c37857\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault2\",\r\n \"etag\": \"85300ead-5b9b-47da-82df-3b8cc13cd1dd\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"ppeVault3\",\r\n \"etag\": \"47dca57b-41d5-4c28-9b77-ce83dd872878\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test\",\r\n \"etag\": \"1235f095-5df6-4296-9dfc-a461ba17f6c5\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"test1\",\r\n \"etag\": \"96c192b2-3f58-4580-82eb-e6232cd7f92f\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/test1\",\r\n \"type\": \"Microsoft.SiteRecovery/SiteRecoveryVault\"\r\n },\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"vault51\",\r\n \"etag\": \"166d75aa-d263-46a5-b509-8cd45a52d6e4\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/vault51\",\r\n \"type\": \"Microsoft.SiteRecovery/siterecoveryvault\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "753" + "2215" ], "Content-Type": [ "application/json" @@ -637,28 +637,28 @@ "no-cache" ], "x-ms-request-id": [ - "6943269e-107e-46eb-8a96-549ab29a481b" + "a917df97-dc5d-4d29-821b-6d785cae5976" ], "x-ms-client-request-id": [ - "4a53d06c-7712-4fc3-bc28-d95572659470-2015-07-28 11:38:01Z-P" + "acbe5a52-ccba-444f-aa65-4fe2e5e38c65-2015-08-19 02:35:25Z-P" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14945" + "14943" ], "x-ms-correlation-request-id": [ - "6943269e-107e-46eb-8a96-549ab29a481b" + "a917df97-dc5d-4d29-821b-6d785cae5976" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113801Z:6943269e-107e-46eb-8a96-549ab29a481b" + "CENTRALUS:20150819T023525Z:a917df97-dc5d-4d29-821b-6d785cae5976" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:38:00 GMT" + "Wed, 19 Aug 2015 02:35:25 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -667,25 +667,25 @@ "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1Byb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL1Byb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "949594cd-73fd-4173-b78f-4ddf8d584ada-2015-07-28 11:37:51Z-P" + "f7790653-d9c5-41a8-b4ad-b8ca188ea950-2015-08-19 02:35:17Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"name\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"pri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"role\": \"Primary\",\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/26f79ebe-875a-4a9b-bd3c-871b80bb6f1b\",\r\n \"name\": \"26f79ebe-875a-4a9b-bd3c-871b80bb6f1b\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionProfile\",\r\n \"properties\": {\r\n \"friendlyName\": \"26f79ebe-875a-4a9b-bd3c-871b80bb6f1b\",\r\n \"protectedEntityCount\": 0,\r\n \"associationStatus\": \"Associated\",\r\n \"replicationProvider\": \"HyperVReplica\",\r\n \"replicationProviderSettings\": {\r\n \"__type\": \"HyperVReplicaProtectionProfileDetails\",\r\n \"recoveryPoints\": 1,\r\n \"applicationConsistentSnapshotFrequencyInHours\": 0,\r\n \"compression\": \"Disabled\",\r\n \"initialReplicationMethod\": \"OverNetwork\",\r\n \"onlineReplicationStartTime\": null,\r\n \"offlineReplicationImportPath\": \"\",\r\n \"offlineReplicationExportPath\": \"\",\r\n \"replicationPort\": 8083,\r\n \"allowedAuthenticationType\": 1,\r\n \"replicaDeletionOption\": \"None\",\r\n \"replicationFrequencyInSeconds\": 30\r\n },\r\n \"associationDetail\": [\r\n {\r\n \"associationStatus\": \"Paired\",\r\n \"primaryProtectionContainerId\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"recoveryProtectionContainerId\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"name\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud9\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"name\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d2\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"name\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"name\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokSec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"name\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokPri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"name\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"azurecloud\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"name\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"rec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"role\": \"Recovery\",\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"name\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"pri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"role\": \"Primary\",\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/711981d6-d294-4a1e-bbd7-e4b42ace5f00\",\r\n \"name\": \"711981d6-d294-4a1e-bbd7-e4b42ace5f00\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionProfile\",\r\n \"properties\": {\r\n \"friendlyName\": \"711981d6-d294-4a1e-bbd7-e4b42ace5f00\",\r\n \"protectedEntityCount\": 0,\r\n \"associationStatus\": \"Associated\",\r\n \"replicationProvider\": \"HyperVReplica\",\r\n \"replicationProviderSettings\": {\r\n \"__type\": \"HyperVReplicaProtectionProfileDetails\",\r\n \"recoveryPoints\": 1,\r\n \"applicationConsistentSnapshotFrequencyInHours\": 0,\r\n \"compression\": \"Disabled\",\r\n \"initialReplicationMethod\": \"OverNetwork\",\r\n \"onlineReplicationStartTime\": null,\r\n \"offlineReplicationImportPath\": \"\",\r\n \"offlineReplicationExportPath\": \"\",\r\n \"replicationPort\": 8083,\r\n \"allowedAuthenticationType\": 1,\r\n \"replicaDeletionOption\": \"None\",\r\n \"replicationFrequencyInSeconds\": 30\r\n },\r\n \"associationDetail\": [\r\n {\r\n \"associationStatus\": \"Paired\",\r\n \"primaryProtectionContainerId\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"recoveryProtectionContainerId\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"name\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud9\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"name\": \"25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"name\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d2\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"name\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"name\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokSec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"name\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokPri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"name\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"azurecloud\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"name\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"rec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"role\": \"Recovery\",\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", "ResponseHeaders": { "Content-Length": [ - "5582" + "6098" ], "Content-Type": [ "application/json" @@ -697,7 +697,7 @@ "no-cache" ], "x-ms-request-id": [ - "949594cd-73fd-4173-b78f-4ddf8d584ada-2015-07-28 11:37:51Z-P 7/28/2015 11:37:55 AM" + "f7790653-d9c5-41a8-b4ad-b8ca188ea950-2015-08-19 02:35:17Z-P 8/19/2015 2:35:18 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -716,43 +716,43 @@ "ASP.NET" ], "x-ms-client-request-id": [ - "949594cd-73fd-4173-b78f-4ddf8d584ada-2015-07-28 11:37:51Z-P" + "f7790653-d9c5-41a8-b4ad-b8ca188ea950-2015-08-19 02:35:17Z-P" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14986" + "14982" ], "x-ms-correlation-request-id": [ - "f440bf7c-a688-433c-aacd-5185ae049b0e" + "354344bf-00a0-4d2c-a0d9-9d08d798a62f" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113755Z:f440bf7c-a688-433c-aacd-5185ae049b0e" + "CENTRALUS:20150819T023519Z:354344bf-00a0-4d2c-a0d9-9d08d798a62f" ], "Date": [ - "Tue, 28 Jul 2015 11:37:54 GMT" + "Wed, 19 Aug 2015 02:35:19 GMT" ] }, "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1Byb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL1Byb3RlY3Rpb25Db250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "0309fe50-82a1-46cd-b4eb-a6957aba3d9d-2015-07-28 11:37:56Z-P" + "c91bfc64-c1af-4e1a-99a1-b0d32c2845c9-2015-08-19 02:35:19Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"name\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"pri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"role\": \"Primary\",\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/26f79ebe-875a-4a9b-bd3c-871b80bb6f1b\",\r\n \"name\": \"26f79ebe-875a-4a9b-bd3c-871b80bb6f1b\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionProfile\",\r\n \"properties\": {\r\n \"friendlyName\": \"26f79ebe-875a-4a9b-bd3c-871b80bb6f1b\",\r\n \"protectedEntityCount\": 0,\r\n \"associationStatus\": \"Associated\",\r\n \"replicationProvider\": \"HyperVReplica\",\r\n \"replicationProviderSettings\": {\r\n \"__type\": \"HyperVReplicaProtectionProfileDetails\",\r\n \"recoveryPoints\": 1,\r\n \"applicationConsistentSnapshotFrequencyInHours\": 0,\r\n \"compression\": \"Disabled\",\r\n \"initialReplicationMethod\": \"OverNetwork\",\r\n \"onlineReplicationStartTime\": null,\r\n \"offlineReplicationImportPath\": \"\",\r\n \"offlineReplicationExportPath\": \"\",\r\n \"replicationPort\": 8083,\r\n \"allowedAuthenticationType\": 1,\r\n \"replicaDeletionOption\": \"None\",\r\n \"replicationFrequencyInSeconds\": 30\r\n },\r\n \"associationDetail\": [\r\n {\r\n \"associationStatus\": \"Paired\",\r\n \"primaryProtectionContainerId\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"recoveryProtectionContainerId\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"name\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud9\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"name\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d2\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"name\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"name\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokSec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"name\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokPri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"name\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"azurecloud\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"name\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"rec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"role\": \"Recovery\",\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"name\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"pri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"role\": \"Primary\",\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": [\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/711981d6-d294-4a1e-bbd7-e4b42ace5f00\",\r\n \"name\": \"711981d6-d294-4a1e-bbd7-e4b42ace5f00\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionProfile\",\r\n \"properties\": {\r\n \"friendlyName\": \"711981d6-d294-4a1e-bbd7-e4b42ace5f00\",\r\n \"protectedEntityCount\": 0,\r\n \"associationStatus\": \"Associated\",\r\n \"replicationProvider\": \"HyperVReplica\",\r\n \"replicationProviderSettings\": {\r\n \"__type\": \"HyperVReplicaProtectionProfileDetails\",\r\n \"recoveryPoints\": 1,\r\n \"applicationConsistentSnapshotFrequencyInHours\": 0,\r\n \"compression\": \"Disabled\",\r\n \"initialReplicationMethod\": \"OverNetwork\",\r\n \"onlineReplicationStartTime\": null,\r\n \"offlineReplicationImportPath\": \"\",\r\n \"offlineReplicationExportPath\": \"\",\r\n \"replicationPort\": 8083,\r\n \"allowedAuthenticationType\": 1,\r\n \"replicaDeletionOption\": \"None\",\r\n \"replicationFrequencyInSeconds\": 30\r\n },\r\n \"associationDetail\": [\r\n {\r\n \"associationStatus\": \"Paired\",\r\n \"primaryProtectionContainerId\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"recoveryProtectionContainerId\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"name\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud9\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"19996177-88ca-4aa8-8fe6-8ae9198c06d3\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"name\": \"25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"cloud1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"25cd3f73-4541-40df-a975-5322f2cf91b2\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"name\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d2\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"42432614-e000-4cb9-8827-a49ea1d0d3cc\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"name\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"d1\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"7c3641bb-d572-4d56-80da-498440f924e7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"name\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokSec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"b007f06c-646c-4978-a7bd-2a3d1a13110e\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"name\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"alokPri\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"de58c031-820e-4e1a-9505-763523bb69c5\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"name\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"azurecloud\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"f0982c81-dfb1-4bfa-ba0d-a7d941f6e8c7\",\r\n \"role\": null,\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionContainers/ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"name\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionContainer\",\r\n \"properties\": {\r\n \"friendlyName\": \"rec\",\r\n \"serverId\": \"57f95c35-6c83-42ce-bb21-2c4f10f92d8e\",\r\n \"fabricObjectId\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\",\r\n \"role\": \"Recovery\",\r\n \"fabricType\": \"VMM\",\r\n \"availableProtectionProfiles\": []\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", "ResponseHeaders": { "Content-Length": [ - "5582" + "6098" ], "Content-Type": [ "application/json" @@ -764,7 +764,7 @@ "no-cache" ], "x-ms-request-id": [ - "0309fe50-82a1-46cd-b4eb-a6957aba3d9d-2015-07-28 11:37:56Z-P 7/28/2015 11:37:57 AM" + "c91bfc64-c1af-4e1a-99a1-b0d32c2845c9-2015-08-19 02:35:19Z-P 8/19/2015 2:35:20 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -783,40 +783,40 @@ "ASP.NET" ], "x-ms-client-request-id": [ - "0309fe50-82a1-46cd-b4eb-a6957aba3d9d-2015-07-28 11:37:56Z-P" + "c91bfc64-c1af-4e1a-99a1-b0d32c2845c9-2015-08-19 02:35:19Z-P" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14985" + "14981" ], "x-ms-correlation-request-id": [ - "6880df5f-7a51-4563-b831-65a72b9ebe1b" + "88ae83b6-40fa-446a-8576-f684a42aec30" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113757Z:6880df5f-7a51-4563-b831-65a72b9ebe1b" + "CENTRALUS:20150819T023521Z:88ae83b6-40fa-446a-8576-f684a42aec30" ], "Date": [ - "Tue, 28 Jul 2015 11:37:57 GMT" + "Wed, 19 Aug 2015 02:35:20 GMT" ] }, "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1Byb3RlY3Rpb25Qcm9maWxlcy9wcD9hcGktdmVyc2lvbj0yMDE1LTA4LTEw", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL1Byb3RlY3Rpb25Qcm9maWxlcy9wcD9hcGktdmVyc2lvbj0yMDE1LTA4LTEw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1e5eac15-0c82-4ee4-a035-2edbf36cef0b-2015-07-28 11:37:58Z-P" + "27d804ab-bfc8-4c9b-8e77-15891f63b93a-2015-08-19 02:35:21Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp\",\r\n \"name\": \"pp\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionProfile\",\r\n \"properties\": {\r\n \"friendlyName\": \"pp\",\r\n \"protectedEntityCount\": 0,\r\n \"associationStatus\": \"Associated\",\r\n \"replicationProvider\": \"HyperVReplica\",\r\n \"replicationProviderSettings\": {\r\n \"__type\": \"HyperVReplicaProtectionProfileDetails\",\r\n \"recoveryPoints\": 1,\r\n \"applicationConsistentSnapshotFrequencyInHours\": 0,\r\n \"compression\": \"Disabled\",\r\n \"initialReplicationMethod\": \"OverNetwork\",\r\n \"onlineReplicationStartTime\": null,\r\n \"offlineReplicationImportPath\": \"\",\r\n \"offlineReplicationExportPath\": \"\",\r\n \"replicationPort\": 8083,\r\n \"allowedAuthenticationType\": 1,\r\n \"replicaDeletionOption\": \"None\",\r\n \"replicationFrequencyInSeconds\": 30\r\n },\r\n \"associationDetail\": []\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp\",\r\n \"name\": \"pp\",\r\n \"type\": \"Microsoft.SiteRecovery/ProtectionProfile\",\r\n \"properties\": {\r\n \"friendlyName\": \"pp\",\r\n \"protectedEntityCount\": 0,\r\n \"associationStatus\": \"Associated\",\r\n \"replicationProvider\": \"HyperVReplica\",\r\n \"replicationProviderSettings\": {\r\n \"__type\": \"HyperVReplicaProtectionProfileDetails\",\r\n \"recoveryPoints\": 1,\r\n \"applicationConsistentSnapshotFrequencyInHours\": 0,\r\n \"compression\": \"Disabled\",\r\n \"initialReplicationMethod\": \"OverNetwork\",\r\n \"onlineReplicationStartTime\": null,\r\n \"offlineReplicationImportPath\": \"\",\r\n \"offlineReplicationExportPath\": \"\",\r\n \"replicationPort\": 8083,\r\n \"allowedAuthenticationType\": 1,\r\n \"replicaDeletionOption\": \"None\",\r\n \"replicationFrequencyInSeconds\": 30\r\n },\r\n \"associationDetail\": []\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "825" @@ -831,7 +831,7 @@ "no-cache" ], "x-ms-request-id": [ - "1e5eac15-0c82-4ee4-a035-2edbf36cef0b-2015-07-28 11:37:58Z-P 7/28/2015 11:37:58 AM" + "27d804ab-bfc8-4c9b-8e77-15891f63b93a-2015-08-19 02:35:21Z-P 8/19/2015 2:35:22 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -850,28 +850,28 @@ "ASP.NET" ], "x-ms-client-request-id": [ - "1e5eac15-0c82-4ee4-a035-2edbf36cef0b-2015-07-28 11:37:58Z-P" + "27d804ab-bfc8-4c9b-8e77-15891f63b93a-2015-08-19 02:35:21Z-P" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14984" + "14980" ], "x-ms-correlation-request-id": [ - "8e94324c-d42a-427c-83cd-266cff26721e" + "c8cda815-1d41-4dca-a454-74317beeba7d" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113758Z:8e94324c-d42a-427c-83cd-266cff26721e" + "CENTRALUS:20150819T023522Z:c8cda815-1d41-4dca-a454-74317beeba7d" ], "Date": [ - "Tue, 28 Jul 2015 11:37:58 GMT" + "Wed, 19 Aug 2015 02:35:22 GMT" ] }, "StatusCode": 200 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp/Dissociate?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL1Byb3RlY3Rpb25Qcm9maWxlcy9wcC9EaXNzb2NpYXRlP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp/Dissociate?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL1Byb3RlY3Rpb25Qcm9maWxlcy9wcC9EaXNzb2NpYXRlP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"name\": \"pp\",\r\n \"replicationProviderSettings\": \"\",\r\n \"primaryProtectionContainerId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"recoveryProtectionContainerId\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\"\r\n}", + "RequestBody": "{\r\n \"name\": \"pp\",\r\n \"replicationProviderSettings\": {},\r\n \"primaryProtectionContainerId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"recoveryProtectionContainerId\": \"ff10d996-9083-4aee-b99d-7f7f44c81118\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/Json" @@ -883,16 +883,16 @@ "application/Json" ], "Agent-Authentication": [ - "{\"NotBeforeTimestamp\":\"\\/Date(1438079879469)\\/\",\"NotAfterTimestamp\":\"\\/Date(1438684679469)\\/\",\"ClientRequestId\":\"95084069-d9be-43be-8949-457979a1cf6a-2015-07-28 11:37:59Z-P\",\"HashFunction\":\"HMACSHA256\",\"Hmac\":\"BOX/DS6b+fVJq8qXPXtTjzstWXxOEBDUxljljI85NLA=\",\"Version\":{\"Major\":1,\"Minor\":2,\"Build\":-1,\"Revision\":-1,\"MajorRevision\":-1,\"MinorRevision\":-1},\"PropertyBag\":{}}" + "{\"NotBeforeTimestamp\":\"\\/Date(1439948123089)\\/\",\"NotAfterTimestamp\":\"\\/Date(1440552923089)\\/\",\"ClientRequestId\":\"3bd53cb5-dded-4fc3-adc7-5aec88b4ae6a-2015-08-19 02:35:23Z-P\",\"HashFunction\":\"HMACSHA256\",\"Hmac\":\"okXOdpbfhHdndNj6bjEHm5qsU0ARx+TFOxjxRMET8O4=\",\"Version\":{\"Major\":1,\"Minor\":2,\"Build\":-1,\"Revision\":-1,\"MajorRevision\":-1,\"MinorRevision\":-1},\"PropertyBag\":{}}" ], "x-ms-client-request-id": [ - "95084069-d9be-43be-8949-457979a1cf6a-2015-07-28 11:37:59Z-P" + "3bd53cb5-dded-4fc3-adc7-5aec88b4ae6a-2015-08-19 02:35:23Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, "ResponseBody": "", @@ -910,34 +910,34 @@ "30" ], "Azure-AsyncOperation": [ - "https://api-dogfood.resources.windows-int.net/Jobs/9457344d-808d-42d1-b834-8c4a997db486?api-version=2015-08-10" + "https://api-dogfood.resources.windows-int.net/Jobs/dcdf4501-9fb0-4d22-be76-046c03de87cb?api-version=2015-08-10" ], "x-ms-request-id": [ - "95084069-d9be-43be-8949-457979a1cf6a-2015-07-28 11:37:59Z-P 7/28/2015 11:38:00 AM" + "3bd53cb5-dded-4fc3-adc7-5aec88b4ae6a-2015-08-19 02:35:23Z-P 8/19/2015 2:35:24 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-client-request-id": [ - "95084069-d9be-43be-8949-457979a1cf6a-2015-07-28 11:37:59Z-P" + "3bd53cb5-dded-4fc3-adc7-5aec88b4ae6a-2015-08-19 02:35:23Z-P" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1195" ], "x-ms-correlation-request-id": [ - "de5c931d-3261-4af5-83a0-d5c6b106bac6" + "dee3f6ce-387b-43f2-96bf-22eef4b0c105" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113800Z:de5c931d-3261-4af5-83a0-d5c6b106bac6" + "CENTRALUS:20150819T023524Z:dee3f6ce-387b-43f2-96bf-22eef4b0c105" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 28 Jul 2015 11:38:00 GMT" + "Wed, 19 Aug 2015 02:35:24 GMT" ], "Location": [ - "https://api-dogfood.resources.windows-int.net/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/ProtectionProfiles/pp/operationresults/9457344d-808d-42d1-b834-8c4a997db486?api-version=2015-08-10" + "https://api-dogfood.resources.windows-int.net/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/ProtectionProfiles/pp/operationresults/dcdf4501-9fb0-4d22-be76-046c03de87cb?api-version=2015-08-10" ], "X-Powered-By": [ "ASP.NET" @@ -946,22 +946,22 @@ "StatusCode": 202 }, { - "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/jobs/9457344d-808d-42d1-b834-8c4a997db486?api-version=2015-08-10", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQyL2pvYnMvOTQ1NzM0NGQtODA4ZC00MmQxLWI4MzQtOGM0YTk5N2RiNDg2P2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", + "RequestUri": "/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/jobs/dcdf4501-9fb0-4d22-be76-046c03de87cb?api-version=2015-08-10", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvMDBhMDdlYTAtYWQ4Yi00OTFjLTlkZTgtNzdiZjEwODgxNDk5L3Jlc291cmNlR3JvdXBzL3Rlc3RzaXRlZ3JvdXAvcHJvdmlkZXJzL01pY3Jvc29mdC5TaXRlUmVjb3ZlcnkvU2l0ZVJlY292ZXJ5VmF1bHQvcHBlVmF1bHQzL2pvYnMvZGNkZjQ1MDEtOWZiMC00ZDIyLWJlNzYtMDQ2YzAzZGU4N2NiP2FwaS12ZXJzaW9uPTIwMTUtMDgtMTA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c6c25954-e3a8-4335-ae20-5ac777c06dfb-2015-07-28 11:38:01Z-P" + "e381d9c3-4a2a-47c0-a961-d0e880c7e29e-2015-08-19 02:35:25Z-P" ], "x-ms-version": [ "2015-01-01" ], "User-Agent": [ - "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.0.0.0" + "Microsoft.Azure.Management.SiteRecovery.SiteRecoveryManagementClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault2/Jobs/9457344d-808d-42d1-b834-8c4a997db486\",\r\n \"name\": \"9457344d-808d-42d1-b834-8c4a997db486\",\r\n \"type\": \"Microsoft.SiteRecovery/Job\",\r\n \"properties\": {\r\n \"activityId\": \"95084069-d9be-43be-8949-457979a1cf6a-2015-07-28 11:37:59Z-P\",\r\n \"scenarioName\": \"CloudUnPairing\",\r\n \"displayName\": \"Remove protection\",\r\n \"state\": \"InProgress\",\r\n \"tasks\": [\r\n {\r\n \"id\": \"6c11a271-07bc-4ec4-bf1b-82b2189f980f\",\r\n \"name\": \"CloudUnPairingHyperVReplica\",\r\n \"startTime\": \"2015-07-28T11:38:00.7533383Z\",\r\n \"endTime\": \"2015-07-28T11:38:00.972046Z\",\r\n \"actions\": [],\r\n \"state\": \"Succeeded\",\r\n \"childJobId\": null\r\n },\r\n {\r\n \"id\": \"9208701f-5eaa-45c9-ad8a-0d8d097264ef\",\r\n \"name\": \"CloudUnPairingHyperVReplicaBlue\",\r\n \"startTime\": \"2015-07-28T11:38:00.9408346Z\",\r\n \"endTime\": \"2015-07-28T11:38:01Z\",\r\n \"actions\": [],\r\n \"state\": \"InProgress\",\r\n \"childJobId\": null\r\n }\r\n ],\r\n \"errors\": [],\r\n \"startTime\": \"2015-07-28T11:38:00.4901505Z\",\r\n \"endTime\": null,\r\n \"allowedActions\": [\r\n \"Cancel\",\r\n \"Restart\"\r\n ],\r\n \"targetObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"targetObjectType\": \"ProtectionContainer\",\r\n \"targetObjectName\": \"pri\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/Subscriptions/00a07ea0-ad8b-491c-9de8-77bf10881499/resourceGroups/testsitegroup/providers/Microsoft.SiteRecovery/SiteRecoveryVault/ppeVault3/Jobs/dcdf4501-9fb0-4d22-be76-046c03de87cb\",\r\n \"name\": \"dcdf4501-9fb0-4d22-be76-046c03de87cb\",\r\n \"type\": \"Microsoft.SiteRecovery/Job\",\r\n \"properties\": {\r\n \"activityId\": \"3bd53cb5-dded-4fc3-adc7-5aec88b4ae6a-2015-08-19 02:35:23Z-P\",\r\n \"scenarioName\": \"CloudUnPairing\",\r\n \"displayName\": \"Remove protection\",\r\n \"state\": \"InProgress\",\r\n \"tasks\": [\r\n {\r\n \"id\": \"6c11a271-07bc-4ec4-bf1b-82b2189f980f\",\r\n \"name\": \"CloudUnPairingHyperVReplica\",\r\n \"startTime\": \"2015-08-19T02:35:25.2581862Z\",\r\n \"endTime\": \"2015-08-19T02:35:25.5105746Z\",\r\n \"actions\": [],\r\n \"state\": \"Succeeded\",\r\n \"childJobId\": null\r\n },\r\n {\r\n \"id\": \"9208701f-5eaa-45c9-ad8a-0d8d097264ef\",\r\n \"name\": \"CloudUnPairingHyperVReplicaBlue\",\r\n \"startTime\": \"2015-08-19T02:35:25.2581862Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n \"actions\": [],\r\n \"state\": \"InProgress\",\r\n \"childJobId\": null\r\n }\r\n ],\r\n \"errors\": [],\r\n \"startTime\": \"2015-08-19T02:35:24.5030243Z\",\r\n \"endTime\": null,\r\n \"allowedActions\": [\r\n \"Cancel\",\r\n \"Restart\"\r\n ],\r\n \"targetObjectId\": \"01709fee-1177-4b82-9d56-cbaf6618070d\",\r\n \"targetObjectType\": \"ProtectionContainer\",\r\n \"targetObjectName\": \"pri\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "1123" @@ -976,7 +976,7 @@ "no-cache" ], "x-ms-request-id": [ - "c6c25954-e3a8-4335-ae20-5ac777c06dfb-2015-07-28 11:38:01Z-P 7/28/2015 11:38:02 AM" + "e381d9c3-4a2a-47c0-a961-d0e880c7e29e-2015-08-19 02:35:25Z-P 8/19/2015 2:35:26 AM" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -995,19 +995,19 @@ "ASP.NET" ], "x-ms-client-request-id": [ - "c6c25954-e3a8-4335-ae20-5ac777c06dfb-2015-07-28 11:38:01Z-P" + "e381d9c3-4a2a-47c0-a961-d0e880c7e29e-2015-08-19 02:35:25Z-P" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14983" + "14979" ], "x-ms-correlation-request-id": [ - "7c94b617-69a2-47ec-a4be-b9a35df71ba1" + "411f7788-3705-48bc-8d27-3ba030d3af13" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150728T113802Z:7c94b617-69a2-47ec-a4be-b9a35df71ba1" + "CENTRALUS:20150819T023526Z:411f7788-3705-48bc-8d27-3ba030d3af13" ], "Date": [ - "Tue, 28 Jul 2015 11:38:02 GMT" + "Wed, 19 Aug 2015 02:35:25 GMT" ] }, "StatusCode": 200 diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/packages.config b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/packages.config index 009f27611b7e..46cb508f453d 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/packages.config +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/packages.config @@ -4,8 +4,8 @@ - - + + @@ -16,6 +16,7 @@ + diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Commands.SiteRecovery.csproj b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Commands.SiteRecovery.csproj index 2eed40e23b0f..37b99663f21b 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Commands.SiteRecovery.csproj +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Commands.SiteRecovery.csproj @@ -52,7 +52,7 @@ ..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll - ..\..\..\packages\Microsoft.Azure.Management.SiteRecovery.0.1.0-preview\lib\net40\Microsoft.Azure.Management.SiteRecovery.dll + ..\..\..\packages\Microsoft.Azure.Management.SiteRecovery.0.1.1-preview\lib\net40\Microsoft.Azure.Management.SiteRecovery.dll True @@ -83,6 +83,9 @@ False ..\..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll + + ..\..\..\packages\Microsoft.WindowsAzure.Management.Scheduler.6.2.0\lib\net40\Microsoft.WindowsAzure.Management.Scheduler.dll + False ..\..\..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll @@ -91,6 +94,7 @@ Utilities\Security.Cryptography.dll + False @@ -116,15 +120,15 @@ - - - - - - - - - + + + + + + + + + diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesClient.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryClient.cs similarity index 89% rename from src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesClient.cs rename to src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryClient.cs index 7e89027d2123..3b50088d59cf 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesClient.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryClient.cs @@ -33,6 +33,9 @@ using Microsoft.WindowsAzure.Commands.Common; using Microsoft.WindowsAzure.Commands.Utilities.Common; using Properties = Microsoft.Azure.Commands.SiteRecovery.Properties; +using Microsoft.WindowsAzure.Management.Scheduler; +using System.Configuration; +using System.Collections.Specialized; namespace Microsoft.Azure.Commands.SiteRecovery { @@ -82,6 +85,11 @@ public RecoveryServicesManagementClient GetRecoveryServicesClient /// private RecoveryServicesManagementClient recoveryServicesClient; + /// + /// Recovery Services client. + /// + private CloudServiceManagementClient cloudServicesClient; + /// /// Initializes a new instance of the class with /// required current subscription. @@ -90,8 +98,30 @@ public RecoveryServicesManagementClient GetRecoveryServicesClient public PSRecoveryServicesClient(AzureProfile azureProfile, AzureSubscription azureSubscription) { this.Profile = azureProfile; + + this.cloudServicesClient = AzureSession.ClientFactory.CreateClient(azureProfile, azureSubscription, AzureEnvironment.Endpoint.ResourceManager); + + System.Configuration.Configuration siteRecoveryConfig = ConfigurationManager.OpenExeConfiguration(System.Reflection.Assembly.GetExecutingAssembly().Location); + + System.Configuration.AppSettingsSection appSettings = (System.Configuration.AppSettingsSection)siteRecoveryConfig.GetSection("appSettings"); + + string resourceNamespace = ""; + if(appSettings.Settings.Count == 0) + { + resourceNamespace = "Microsoft.SiteRecovery"; // ProviderNameSpace for Production is taken as default + } + else + { + resourceNamespace = appSettings.Settings["ProviderNamespace"].Value; + } + + Utilities.UpdateVaultSettingsProviderNamespace(resourceNamespace); + this.recoveryServicesClient = - AzureSession.ClientFactory.CreateClient(azureProfile, azureSubscription, AzureEnvironment.Endpoint.ResourceManager); + AzureSession.ClientFactory.CreateCustomClient( + asrVaultCreds.ResourceNamespace, + cloudServicesClient.Credentials, + Profile.Context.Environment.GetEndpointAsUri(AzureEnvironment.Endpoint.ResourceManager)); } /// @@ -238,10 +268,10 @@ private SiteRecoveryManagementClient GetSiteRecoveryClient() SiteRecoveryManagementClient siteRecoveryClient = AzureSession.ClientFactory.CreateCustomClient( - asrVaultCreds.ResourceGroupName, asrVaultCreds.ResourceName, asrVaultCreds.ResourceGroupName, - recoveryServicesClient.Credentials, + asrVaultCreds.ResourceNamespace, + cloudServicesClient.Credentials, Profile.Context.Environment.GetEndpointAsUri(AzureEnvironment.Endpoint.ResourceManager)); if (null == siteRecoveryClient) diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesClientHelper.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryClientHelper.cs similarity index 100% rename from src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesClientHelper.cs rename to src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryClientHelper.cs diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesJobsClient.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryJobsClient.cs similarity index 100% rename from src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesJobsClient.cs rename to src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryJobsClient.cs diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesProtectionContainerClient.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryProtectionContainerClient.cs similarity index 100% rename from src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesProtectionContainerClient.cs rename to src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryProtectionContainerClient.cs diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesProtectionEntityClient.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryProtectionEntityClient.cs similarity index 100% rename from src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesProtectionEntityClient.cs rename to src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryProtectionEntityClient.cs diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesProtectionProfileClient.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryProtectionProfileClient.cs similarity index 100% rename from src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesProtectionProfileClient.cs rename to src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryProtectionProfileClient.cs diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesServerClient.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryServerClient.cs similarity index 100% rename from src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesServerClient.cs rename to src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryServerClient.cs diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesVaultClient.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryVaultClient.cs similarity index 100% rename from src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesVaultClient.cs rename to src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryVaultClient.cs diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesVaultExtendedInfoClient.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryVaultExtendedInfoClient.cs similarity index 100% rename from src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSRecoveryServicesVaultExtendedInfoClient.cs rename to src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryVaultExtendedInfoClient.cs diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/SiteRecoveryCmdletBase.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/SiteRecoveryCmdletBase.cs index 3b643dec2116..90cb9cb5ca4b 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/SiteRecoveryCmdletBase.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/SiteRecoveryCmdletBase.cs @@ -188,5 +188,28 @@ protected void ValidateUsageById(string replicationProvider, string paramName) paramName)); } } + + /// + /// Gets the current vault location. + /// + /// The current vault location. + protected string GetCurrentValutLocation() + { + string location = string.Empty; + + VaultListResponse vaultListResponse = + RecoveryServicesClient.GetVaultsInResouceGroup(PSRecoveryServicesClient.asrVaultCreds.ResourceGroupName); + + foreach (Vault vault in vaultListResponse.Vaults) + { + if (0 == string.Compare(PSRecoveryServicesClient.asrVaultCreds.ResourceName, vault.Name, true)) + { + location = vault.Location; + break; + } + } + + return location; + } } } \ No newline at end of file diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Models/PSContracts.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Models/PSContracts.cs index 71329d1370df..1f23a90e410b 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Models/PSContracts.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Models/PSContracts.cs @@ -348,13 +348,14 @@ public VaultCreds() /// resource name /// management cert /// authenticating service namespace - public VaultCreds(string subscriptionId, string resourceName, string managementCert, AcsNamespace acsNamespace) + public VaultCreds(string subscriptionId, string resourceName, string managementCert, AcsNamespace acsNamespace, string resourceNamespace) { this.SubscriptionId = subscriptionId; this.ResourceType = Constants.ASRVaultType; this.ResourceName = resourceName; this.ManagementCert = managementCert; this.AcsNamespace = acsNamespace; + this.ResourceNamespace = resourceNamespace; } #endregion @@ -389,6 +390,13 @@ public VaultCreds(string subscriptionId, string resourceName, string managementC /// [DataMember(Order = 4)] public AcsNamespace AcsNamespace { get; set; } + + /// + /// Gets or sets the key name for HostName entry + /// + [DataMember(Order = 5)] + public string ResourceNamespace { get; set; } + #endregion } @@ -427,8 +435,9 @@ public ASRVaultCreds( string managementCert, AcsNamespace acsNamespace, string channelIntegrityKey, - string cloudServiceName) - : base(subscriptionId, resourceName, managementCert, acsNamespace) + string cloudServiceName, + string resourceNamespace = "Microsoft.SiteRecovery") + : base(subscriptionId, resourceName, managementCert, acsNamespace, resourceNamespace) { this.ChannelIntegrityKey = channelIntegrityKey; this.ResourceGroupName = cloudServiceName; diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Models/PSObjects.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Models/PSObjects.cs index 38f75fe2fb11..7af8a8c54066 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Models/PSObjects.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Models/PSObjects.cs @@ -550,26 +550,55 @@ public ASRProtectionProfile(ProtectionProfile profile) if (profile.CustomData.ReplicationProvider == Constants.HyperVReplica) { - JavaScriptSerializer serializer = new JavaScriptSerializer(); - HyperVReplicaProtectionProfileDetails details = (HyperVReplicaProtectionProfileDetails)profile.CustomData.ReplicationProviderSettings; + HyperVReplicaProtectionProfileDetails details = + (HyperVReplicaProtectionProfileDetails)profile.CustomData.ReplicationProviderSettings; - this.ReplicationProviderSettings = new ASRHyperVReplicaProtectionProfileDetails(); - this.ReplicationProviderSettings.ReplicaDeletionOption = + ASRHyperVReplicaProtectionProfileDetails replicationProviderSettings = + new ASRHyperVReplicaProtectionProfileDetails(); + + replicationProviderSettings.ReplicaDeletionOption = details.ReplicaDeletionOption; - this.ReplicationProviderSettings.ApplicationConsistentSnapshotFrequencyInHours = + replicationProviderSettings.ApplicationConsistentSnapshotFrequencyInHours = details.ApplicationConsistentSnapshotFrequencyInHours; - - this.ReplicationProviderSettings.Compression= + replicationProviderSettings.Compression = details.Compression; - this.ReplicationProviderSettings.ReplicationFrequencyInSeconds = + replicationProviderSettings.ReplicationFrequencyInSeconds = details.ReplicationFrequencyInSeconds; - this.ReplicationProviderSettings.AllowedAuthenticationType = - (details.AllowedAuthenticationType == 1) ? Constants.AuthenticationTypeKerberos : Constants.AuthenticationTypeCertificate; - this.ReplicationProviderSettings.RecoveryPoints = details.RecoveryPoints; - this.ReplicationProviderSettings.InitialReplicationMethod = - (string.Compare(details.InitialReplicationMethod, "OverNetwork", StringComparison.OrdinalIgnoreCase) == 0) ? Constants.OnlineReplicationMethod : Constants.OfflineReplicationMethod; - this.ReplicationProviderSettings.ReplicationPort = details.ReplicationPort; - this.ReplicationProviderSettings.OnlineReplicationStartTime = details.OnlineReplicationStartTime; + replicationProviderSettings.AllowedAuthenticationType = + (details.AllowedAuthenticationType == 1) ? + Constants.AuthenticationTypeKerberos : + Constants.AuthenticationTypeCertificate; + replicationProviderSettings.RecoveryPoints = details.RecoveryPoints; + replicationProviderSettings.InitialReplicationMethod = + (string.Compare(details.InitialReplicationMethod, "OverNetwork", StringComparison.OrdinalIgnoreCase) == 0) ? + Constants.OnlineReplicationMethod : + Constants.OfflineReplicationMethod; + replicationProviderSettings.ReplicationPort = details.ReplicationPort; + replicationProviderSettings.OnlineReplicationStartTime = details.OnlineReplicationStartTime; + + this.ReplicationProviderSettings = replicationProviderSettings; + } + else if (profile.CustomData.ReplicationProvider == Constants.HyperVReplicaAzure) + { + HyperVReplicaAzureProtectionProfileDetails details = + (HyperVReplicaAzureProtectionProfileDetails)profile.CustomData.ReplicationProviderSettings; + + ASRHyperVReplicaAzureProtectionProfileDetails replicationProviderSettings = + new ASRHyperVReplicaAzureProtectionProfileDetails(); + + replicationProviderSettings.ApplicationConsistentSnapshotFrequencyInHours = + details.ApplicationConsistentSnapshotFrequencyInHours; + replicationProviderSettings.ReplicationFrequencyInSeconds = details.ReplicationInterval; + replicationProviderSettings.RecoveryPoints = details.RecoveryPointHistoryDuration; + replicationProviderSettings.OnlineReplicationStartTime = details.OnlineReplicationStartTime; + replicationProviderSettings.Encryption = details.Encryption; + replicationProviderSettings.ActiveStorageAccount = new CustomerStorageAccount(); + replicationProviderSettings.ActiveStorageAccount.StorageAccountName = + details.ActiveStorageAccount.StorageAccountName; + replicationProviderSettings.ActiveStorageAccount.SubscriptionId = + details.ActiveStorageAccount.SubscriptionId; + + this.ReplicationProviderSettings = replicationProviderSettings; } } @@ -603,14 +632,21 @@ public ASRProtectionProfile(ProtectionProfile profile) /// Gets or sets HyperVReplicaProviderSettings /// // public HyperVReplicaProviderSettings ReplicationProviderSettings { get; set; } - public ASRHyperVReplicaProtectionProfileDetails ReplicationProviderSettings { get; set; } + public ASRProtectionProfileProviderSettingsDetails ReplicationProviderSettings { get; set; } #endregion Properties } + /// + /// Protection profile provider settings + /// + public class ASRProtectionProfileProviderSettingsDetails + { + } + // Summary: // HyperV Replica Protection Profile Details. - public class ASRHyperVReplicaProtectionProfileDetails + public class ASRHyperVReplicaProtectionProfileDetails : ASRProtectionProfileProviderSettingsDetails { // Summary: @@ -658,6 +694,52 @@ public class ASRHyperVReplicaProtectionProfileDetails public ushort ReplicationPort { get; set; } } + /// + /// ASR HyperV Replica Azure enable protection input. + /// + public class ASRHyperVReplicaAzureProtectionProfileDetails : ASRProtectionProfileProviderSettingsDetails + { + // Summary: + // Optional. + public CustomerStorageAccount ActiveStorageAccount { get; set; } + // + // Summary: + // Optional. + public int ApplicationConsistentSnapshotFrequencyInHours { get; set; } + // + // Summary: + // Optional. + public string Encryption { get; set; } + // + // Summary: + // Optional. + public TimeSpan? OnlineReplicationStartTime { get; set; } + // + // Summary: + // Optional. + public int RecoveryPoints { get; set; } + // + // Summary: + // Optional. + public int ReplicationFrequencyInSeconds { get; set; } + } + + /// + /// ASR Customer Storage Account. + /// + public class ASRCustomerStorageAccount + { + /// + /// Name of the storage account. + /// + public string StorageAccountName { get; set; } + + /// + /// Subscription ID to which the Storage Account is associated. + /// + public string SubscriptionId { get; set; } + } + /// /// Azure Site Recovery Protection Entity. /// @@ -700,19 +782,41 @@ public ASRProtectionEntity(ProtectionEntity pe) this.ReplicationHealth = pe.Properties.ReplicationHealth; this.TestFailoverStateDescription = pe.Properties.TestFailoverStateDescription; - /* - if (!string.IsNullOrWhiteSpace(pe.ReplicationProviderSettings)) + if (pe.Properties.ReplicationProviderSettings != null) { - AzureVmDiskDetails diskDetails; - DataContractUtils.Deserialize( - pe.ReplicationProviderSettings, out diskDetails); - - this.Disks = diskDetails.Disks; - this.OSDiskId = diskDetails.VHDId; - this.OSDiskName = diskDetails.OsDisk; - this.OS = diskDetails.OsType; + if (0 == string.Compare( + pe.Properties.ReplicationProvider, + Constants.HyperVReplicaAzure, + StringComparison.OrdinalIgnoreCase)) + { + if (pe.Properties.ReplicationProviderSettings is AzureProtectionEntityProviderSettings) + { + AzureProtectionEntityProviderSettings providerSettings = + (AzureProtectionEntityProviderSettings)pe.Properties.ReplicationProviderSettings; + + AzureVmDiskDetails diskDetails = providerSettings.VMDiskDetails; + this.UpdateDiskDetails(diskDetails); + + // also take the VM properties + } + else if (pe.Properties.ReplicationProviderSettings is OnPremProtectionEntityProviderSettings) + { + OnPremProtectionEntityProviderSettings providerSettings = + (OnPremProtectionEntityProviderSettings)pe.Properties.ReplicationProviderSettings; + + AzureVmDiskDetails diskDetails = providerSettings.VMDiskDetails; + this.UpdateDiskDetails(diskDetails); + } + } + else + { + OnPremProtectionEntityProviderSettings providerSettings = + (OnPremProtectionEntityProviderSettings)pe.Properties.ReplicationProviderSettings; + + AzureVmDiskDetails diskDetails = providerSettings.VMDiskDetails; + this.UpdateDiskDetails(diskDetails); + } } - */ if (pe.Properties.ProtectionProfile != null && !string.IsNullOrWhiteSpace(pe.Properties.ProtectionProfile.Id)) @@ -721,6 +825,22 @@ public ASRProtectionEntity(ProtectionEntity pe) } } + private void UpdateDiskDetails(AzureVmDiskDetails diskDetails) + { + this.Disks = new List(); + foreach (var disk in diskDetails.Disks) + { + VirtualHardDisk hd = new VirtualHardDisk(); + hd.Id = disk.Id; + hd.Name = disk.Name; + this.Disks.Add(hd); + } + + this.OSDiskId = diskDetails.VHDId; + this.OSDiskName = diskDetails.OsDisk; + this.OS = diskDetails.OsType; + } + /// /// Initializes a new instance of the class with /// required parameters. @@ -863,25 +983,25 @@ public ASRProtectionEntity( /// public ASRProtectionProfile ProtectionProfile { get; set; } - ///// - ///// Gets or sets OSDiskVHDId. - ///// - //public string OSDiskId { get; set; } + /// + /// Gets or sets OSDiskVHDId. + /// + public string OSDiskId { get; set; } - ///// - ///// Gets or sets OS DiskName. - ///// - //public string OSDiskName { get; set; } + /// + /// Gets or sets OS DiskName. + /// + public string OSDiskName { get; set; } - ///// - ///// Gets or sets OS. - ///// - //public string OS { get; set; } + /// + /// Gets or sets OS. + /// + public string OS { get; set; } - ///// - ///// Gets or sets OS. - ///// - //public List Disks { get; set; } + /// + /// Gets or sets OS. + /// + public List Disks { get; set; } /// /// Gets or sets Replication provider. diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Properties/Resources.Designer.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Properties/Resources.Designer.cs index 339d73e7dc55..a5602cba7528 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Properties/Resources.Designer.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Properties/Resources.Designer.cs @@ -290,6 +290,15 @@ internal static string ProtectionEntityNotProtected { } } + /// + /// Looks up a localized string similar to Protection Profile {0} is not associated with the Vault {1}. + /// + internal static string ProtectionProfileNotFound { + get { + return ResourceManager.GetString("ProtectionProfileNotFound", resourceCulture); + } + } + /// /// Looks up a localized string similar to RecoveryPlan {0} is not associated with the Vault {1}. /// diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Properties/Resources.resx b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Properties/Resources.resx index efae6ac8868c..6dcf619cdbc0 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Properties/Resources.resx +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Properties/Resources.resx @@ -277,4 +277,7 @@ Please provide a storage account with the same location as that of the vault. Vault {0} cannot be deleted as it contains registered servers. Unregister them and then retry the operation. + + Protection Profile {0} is not associated with the Vault {1} + \ No newline at end of file diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/GetAzureSiteRecoveryProtectionEntity.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/GetAzureSiteRecoveryProtectionEntity.cs index 536457160936..282d3f34dc93 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/GetAzureSiteRecoveryProtectionEntity.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/GetAzureSiteRecoveryProtectionEntity.cs @@ -113,12 +113,39 @@ private void GetByFriendlyName() /// private void GetByName() { - ProtectionEntityResponse protectionEntityResponse = + // Commenting below code as Get PE by Name is faiing for somereason in service. + // Taking alternate route + + //ProtectionEntityResponse protectionEntityResponse = + // RecoveryServicesClient.GetAzureSiteRecoveryProtectionEntity( + // this.ProtectionContainer.Name, + // this.Name); + + //this.WriteProtectionEntity(protectionEntityResponse.ProtectionEntity); + + ProtectionEntityListResponse protectionEntityListResponse = RecoveryServicesClient.GetAzureSiteRecoveryProtectionEntity( - this.ProtectionContainer.Name, - this.Name); + this.ProtectionContainer.Name); - this.WriteProtectionEntity(protectionEntityResponse.ProtectionEntity); + bool found = false; + foreach (ProtectionEntity pe in protectionEntityListResponse.ProtectionEntities) + { + if (0 == string.Compare(this.Name, pe.Name, true)) + { + this.WriteProtectionEntity(pe); + found = true; + break; + } + } + + if (!found) + { + throw new InvalidOperationException( + string.Format( + Properties.Resources.ProtectionEntityNotFound, + this.Name, + this.ProtectionContainer.FriendlyName)); + } } /// diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/SetAzureSiteRecoveryProtectionEntity.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/SetAzureSiteRecoveryProtectionEntity.cs index 847570f4c423..850f7ad634bc 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/SetAzureSiteRecoveryProtectionEntity.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/SetAzureSiteRecoveryProtectionEntity.cs @@ -23,7 +23,7 @@ namespace Microsoft.Azure.Commands.SiteRecovery /// /// Set Protection Entity protection state. /// - [Cmdlet(VerbsCommon.Set, "AzureSiteRecoveryProtectionEntity", DefaultParameterSetName = ASRParameterSets.ByPEObject, SupportsShouldProcess = true)] + [Cmdlet(VerbsCommon.Set, "AzureSiteRecoveryProtectionEntity", DefaultParameterSetName = ASRParameterSets.EnterpriseToEnterprise, SupportsShouldProcess = true)] [OutputType(typeof(ASRJob))] public class SetAzureSiteRecoveryProtectionEntity : SiteRecoveryCmdletBase { @@ -33,11 +33,6 @@ public class SetAzureSiteRecoveryProtectionEntity : SiteRecoveryCmdletBase /// private LongRunningOperationResponse response = null; - /// - /// Protection Status of the entity. - /// - private bool alreadyEnabled = false; - /// /// Holds either Name (if object is passed) or ID (if IDs are passed) of the PE. /// @@ -46,20 +41,36 @@ public class SetAzureSiteRecoveryProtectionEntity : SiteRecoveryCmdletBase /// /// Gets or sets Protection Entity Object. /// - [Parameter(ParameterSetName = ASRParameterSets.ByPEObject, Mandatory = true, ValueFromPipeline = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise, Mandatory = true, ValueFromPipeline = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure, Mandatory = true, ValueFromPipeline = true)] [ValidateNotNullOrEmpty] public ASRProtectionEntity ProtectionEntity { get; set; } + /// + /// Gets or sets Protection profile. + /// + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure, Mandatory = true)] + [ValidateNotNullOrEmpty] + public ASRProtectionProfile ProtectionProfile { get; set; } + /// /// Gets or sets Protection to set, either enable or disable. /// - [Parameter(Mandatory = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise, Mandatory = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure, Mandatory = true)] [ValidateNotNullOrEmpty] [ValidateSet( Constants.EnableProtection, Constants.DisableProtection)] public string Protection { get; set; } + /// + /// Gets or sets OS disk name. + /// + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure)] + [ValidateNotNullOrEmpty] + public string OSDiskName { get; set; } + /// /// Gets or sets switch parameter. On passing, command waits till completion. /// @@ -81,13 +92,7 @@ public class SetAzureSiteRecoveryProtectionEntity : SiteRecoveryCmdletBase /// public override void ExecuteCmdlet() { - switch (this.ParameterSetName) - { - case ASRParameterSets.ByPEObject: - this.targetNameOrId = this.ProtectionEntity.FriendlyName; - break; - } - + this.targetNameOrId = this.ProtectionEntity.FriendlyName; this.ConfirmAction( this.Force.IsPresent || 0 != string.CompareOrdinal(this.Protection, Constants.DisableProtection), string.Format(Properties.Resources.DisableProtectionWarning, this.targetNameOrId), @@ -97,12 +102,63 @@ public override void ExecuteCmdlet() { try { - // ADD SOME VALIDATIONS - if (this.Protection == Constants.EnableProtection) { EnableProtectionInput input = new EnableProtectionInput(); + // Considering no PP input for E2E, if needed, change below logic + // for E2E, consider the profile created PS & a profile created in service + if (this.ProtectionProfile != null && + 0 == string.Compare( + this.ProtectionProfile.ReplicationProvider, + Constants.HyperVReplicaAzure, + StringComparison.OrdinalIgnoreCase)) + { + input.ProtectionProfileId = this.ProtectionProfile.Name; + AzureEnableProtectionInput providerSettings = new AzureEnableProtectionInput(); + providerSettings.HvHostVmId = this.ProtectionEntity.FabricObjectId; + providerSettings.VmName = this.ProtectionEntity.FriendlyName; + + // Id disk details are missing in input PE object, get the latest PE. + // As get PE by name is failing before protection, get all & filter. + // Once after we fix get pe by name, change the logic to use the same. + if (string.IsNullOrEmpty(this.ProtectionEntity.OS)) + { + // Just checked for OS to see whether the disk details got filled up or not + ProtectionEntityListResponse protectionEntityListResponse = + RecoveryServicesClient.GetAzureSiteRecoveryProtectionEntity( + this.ProtectionEntity.ProtectionContainerId); + + foreach (ProtectionEntity pe in protectionEntityListResponse.ProtectionEntities) + { + if (0 == string.Compare(this.ProtectionEntity.FriendlyName, pe.Properties.FriendlyName, true)) + { + this.ProtectionEntity = new ASRProtectionEntity(pe); + break; + } + } + } + providerSettings.OSType = this.ProtectionEntity.OS; + + if (string.IsNullOrWhiteSpace(this.OSDiskName)) + { + providerSettings.VHDId = this.ProtectionEntity.OSDiskId; + } + else + { + foreach (var disk in this.ProtectionEntity.Disks) + { + if (0 == string.Compare(disk.Name, this.OSDiskName, true)) + { + providerSettings.VHDId = disk.Id; + break; + } + } + } + + input.ProviderSettings = providerSettings; + } + this.response = RecoveryServicesClient.EnableProtection( this.ProtectionEntity.ProtectionContainerId, diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryCommitFailoverJob.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryCommitFailoverJob.cs index 9bf5c2095fee..b99130a7f375 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryCommitFailoverJob.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryCommitFailoverJob.cs @@ -84,30 +84,29 @@ private void SetPECommit() { var request = new CommitFailoverRequest(); - if (this.ProtectionEntity == null) + request.FailoverDirection = this.Direction; + + if (string.IsNullOrEmpty(this.ProtectionEntity.ReplicationProvider)) { - var pe = RecoveryServicesClient.GetAzureSiteRecoveryProtectionEntity( - this.protectionContainerId, - this.protectionEntityId); - this.ProtectionEntity = new ASRProtectionEntity(pe.ProtectionEntity); + // fetch the latest PE object + // As get PE by name is failing before protection, get all & filter. + // Once after we fix get pe by name, change the logic to use the same. + ProtectionEntityListResponse protectionEntityListResponse = + RecoveryServicesClient.GetAzureSiteRecoveryProtectionEntity( + this.ProtectionEntity.ProtectionContainerId); - this.ValidateUsageById( - this.ProtectionEntity.ReplicationProvider, - Constants.ProtectionEntityId); + foreach (ProtectionEntity pe in protectionEntityListResponse.ProtectionEntities) + { + if (0 == string.Compare(this.ProtectionEntity.FriendlyName, pe.Properties.FriendlyName, true)) + { + this.ProtectionEntity = new ASRProtectionEntity(pe); + break; + } + } } request.ReplicationProvider = this.ProtectionEntity.ReplicationProvider; - request.ReplicationProviderSettings = string.Empty; - request.FailoverDirection = this.Direction; - - //if (this.ProtectionEntity.ActiveLocation == Constants.PrimaryLocation) - //{ - // request.FailoverDirection = Constants.RecoveryToPrimary; - //} - //else - //{ - // request.FailoverDirection = Constants.PrimaryToRecovery; - //} + request.ReplicationProviderSettings = new FailoverReplicationProviderSpecificInput(); LongRunningOperationResponse response = RecoveryServicesClient.StartAzureSiteRecoveryCommitFailover( this.protectionContainerId, diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryPlannedFailoverJob.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryPlannedFailoverJob.cs index ae72f7c02df6..43af664ecc9e 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryPlannedFailoverJob.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryPlannedFailoverJob.cs @@ -53,6 +53,15 @@ public class StartAzureSiteRecoveryPlannedFailoverJob : SiteRecoveryCmdletBase Constants.RecoveryToPrimary)] public string Direction { get; set; } + /// + /// Gets or sets the Optimize value. + /// + [Parameter] + [ValidateSet( + Constants.ForDowntime, + Constants.ForSynchronization)] + public string Optimize { get; set; } + #endregion Parameters /// @@ -84,20 +93,55 @@ private void StartPEPlannedFailover() { var request = new PlannedFailoverRequest(); - if (this.ProtectionEntity == null) + request.FailoverDirection = this.Direction; + + if (string.IsNullOrEmpty(this.ProtectionEntity.ReplicationProvider)) { - var pe = RecoveryServicesClient.GetAzureSiteRecoveryProtectionEntity( - this.protectionContainerId, - this.protectionEntityId); - this.ProtectionEntity = new ASRProtectionEntity(pe.ProtectionEntity); + // fetch the latest PE object + // As get PE by name is failing before protection, get all & filter. + // Once after we fix get pe by name, change the logic to use the same. + ProtectionEntityListResponse protectionEntityListResponse = + RecoveryServicesClient.GetAzureSiteRecoveryProtectionEntity( + this.ProtectionEntity.ProtectionContainerId); - this.ValidateUsageById(this.ProtectionEntity.ReplicationProvider, Constants.ProtectionEntityId); + foreach (ProtectionEntity pe in protectionEntityListResponse.ProtectionEntities) + { + if (0 == string.Compare(this.ProtectionEntity.FriendlyName, pe.Properties.FriendlyName, true)) + { + this.ProtectionEntity = new ASRProtectionEntity(pe); + break; + } + } } - request.ReplicationProviderSettings = string.Empty; - request.ReplicationProvider = this.ProtectionEntity.ReplicationProvider; - request.FailoverDirection = this.Direction; + request.ReplicationProviderSettings = new FailoverReplicationProviderSpecificInput(); + + if (0 == string.Compare( + this.ProtectionEntity.ReplicationProvider, + Constants.HyperVReplicaAzure, + StringComparison.OrdinalIgnoreCase)) + { + if (this.Direction == Constants.PrimaryToRecovery) + { + AzureFailoverInput failoverInput = new AzureFailoverInput() + { + PrimaryKekCertificatePfx = string.Empty, + SecondaryKekCertificatePfx = string.Empty, + VaultLocation = this.GetCurrentValutLocation() + }; + request.ReplicationProviderSettings = failoverInput; + } + else + { + AzureFailbackInput failbackInput = new AzureFailbackInput() + { + CreateRecoveryVmIfDoesntExist = false, + SkipDataSync = this.Optimize == Constants.ForDowntime ? true : false + }; + request.ReplicationProviderSettings = failbackInput; + } + } LongRunningOperationResponse response = RecoveryServicesClient.StartAzureSiteRecoveryPlannedFailover( diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryTestFailoverJob.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryTestFailoverJob.cs index 1ad68a8014ef..4eb2ce8a3ab7 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryTestFailoverJob.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryTestFailoverJob.cs @@ -68,7 +68,7 @@ public override void ExecuteCmdlet() { case ASRParameterSets.ByPEObject: this.networkType = "DisconnectedVMNetworkTypeForTestFailover"; - this.UpdateRequiredParametersAndStartFailover(); + this.StartPETestFailover(); break; } } @@ -91,20 +91,48 @@ private void StartPETestFailover() this.ProtectionEntity.ProtectionContainerId, this.ProtectionEntity.Name); this.ProtectionEntity = new ASRProtectionEntity(pe.ProtectionEntity); - - /* this.ValidateUsageById( - this.ProtectionEntity.ReplicationProvider, - Constants.ProtectionEntityId); */ } - request.ReplicationProviderSettings = string.Empty; - - request.ReplicationProvider = this.ProtectionEntity.ReplicationProvider; request.FailoverDirection = this.Direction; - request.NetworkID = this.networkId; request.NetworkType = this.networkType; + if (string.IsNullOrEmpty(this.ProtectionEntity.ReplicationProvider)) + { + // fetch the latest PE object + // As get PE by name is failing before protection, get all & filter. + // Once after we fix get pe by name, change the logic to use the same. + ProtectionEntityListResponse protectionEntityListResponse = + RecoveryServicesClient.GetAzureSiteRecoveryProtectionEntity( + this.ProtectionEntity.ProtectionContainerId); + + foreach (ProtectionEntity pe in protectionEntityListResponse.ProtectionEntities) + { + if (0 == string.Compare(this.ProtectionEntity.FriendlyName, pe.Properties.FriendlyName, true)) + { + this.ProtectionEntity = new ASRProtectionEntity(pe); + break; + } + } + } + + request.ReplicationProvider = this.ProtectionEntity.ReplicationProvider; + request.ReplicationProviderSettings = new FailoverReplicationProviderSpecificInput(); + + if (0 == string.Compare( + this.ProtectionEntity.ReplicationProvider, + Constants.HyperVReplicaAzure, + StringComparison.OrdinalIgnoreCase)) + { + AzureFailoverInput failoverInput = new AzureFailoverInput() + { + PrimaryKekCertificatePfx = string.Empty, + SecondaryKekCertificatePfx = string.Empty, + VaultLocation = this.GetCurrentValutLocation() + }; + request.ReplicationProviderSettings = failoverInput; + } + LongRunningOperationResponse response = RecoveryServicesClient.StartAzureSiteRecoveryTestFailover( this.ProtectionEntity.ProtectionContainerId, @@ -117,21 +145,5 @@ private void StartPETestFailover() WriteObject(new ASRJob(jobResponse.Job)); } - - /// - /// Updates required parameters and starts test failover. - /// - private void UpdateRequiredParametersAndStartFailover() - { - /* if (!this.ProtectionEntity.Protected) - { - throw new InvalidOperationException( - string.Format( - Properties.Resources.ProtectionEntityNotProtected, - this.ProtectionEntity.Name)); - } */ - - this.StartPETestFailover(); - } } } \ No newline at end of file diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryUnPlannedFailoverJob.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryUnPlannedFailoverJob.cs index f3c8c29301b3..1e4dab170dd2 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryUnPlannedFailoverJob.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/StartAzureSiteRecoveryUnPlannedFailoverJob.cs @@ -92,21 +92,7 @@ public override void ExecuteCmdlet() private void StartPEUnplannedFailover() { var request = new UnplannedFailoverRequest(); - if (this.ProtectionEntity == null) - { - var pe = RecoveryServicesClient.GetAzureSiteRecoveryProtectionEntity( - this.protectionContainerId, - this.protectionEntityId); - this.ProtectionEntity = new ASRProtectionEntity(pe.ProtectionEntity); - - this.ValidateUsageById( - this.ProtectionEntity.ReplicationProvider, - Constants.ProtectionEntityId); - } - - request.ReplicationProviderSettings = string.Empty; - request.ReplicationProvider = this.ProtectionEntity.ReplicationProvider; request.FailoverDirection = this.Direction; request.SourceSiteOperations = this.PerformSourceSideActions ? Constants.Required : Constants.NotRequired; LongRunningOperationResponse response = @@ -115,6 +101,45 @@ private void StartPEUnplannedFailover() this.protectionEntityId, request); + if (string.IsNullOrEmpty(this.ProtectionEntity.ReplicationProvider)) + { + // fetch the latest PE object + // As get PE by name is failing before protection, get all & filter. + // Once after we fix get pe by name, change the logic to use the same. + ProtectionEntityListResponse protectionEntityListResponse = + RecoveryServicesClient.GetAzureSiteRecoveryProtectionEntity( + this.ProtectionEntity.ProtectionContainerId); + + foreach (ProtectionEntity pe in protectionEntityListResponse.ProtectionEntities) + { + if (0 == string.Compare(this.ProtectionEntity.FriendlyName, pe.Properties.FriendlyName, true)) + { + this.ProtectionEntity = new ASRProtectionEntity(pe); + break; + } + } + } + + request.ReplicationProvider = this.ProtectionEntity.ReplicationProvider; + request.ReplicationProviderSettings = new FailoverReplicationProviderSpecificInput(); + + if (0 == string.Compare( + this.ProtectionEntity.ReplicationProvider, + Constants.HyperVReplicaAzure, + StringComparison.OrdinalIgnoreCase)) + { + if (this.Direction == Constants.PrimaryToRecovery) + { + AzureFailoverInput failoverInput = new AzureFailoverInput() + { + PrimaryKekCertificatePfx = string.Empty, + SecondaryKekCertificatePfx = string.Empty, + VaultLocation = this.GetCurrentValutLocation() + }; + request.ReplicationProviderSettings = failoverInput; + } + } + JobResponse jobResponse = RecoveryServicesClient .GetAzureSiteRecoveryJobDetails(PSRecoveryServicesClient.GetJobIdFromReponseLocation(response.Location)); diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/UpdateAzureSiteRecoveryProtectionDirection.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/UpdateAzureSiteRecoveryProtectionDirection.cs index 8bf1665b3463..7a55da8cf0c5 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/UpdateAzureSiteRecoveryProtectionDirection.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionEntity/UpdateAzureSiteRecoveryProtectionDirection.cs @@ -83,22 +83,56 @@ private void SetPEReprotect() { var request = new ReprotectRequest(); - if (this.ProtectionEntity == null) + request.FailoverDirection = this.Direction; + + if (string.IsNullOrEmpty(this.ProtectionEntity.ReplicationProvider)) { - var pe = RecoveryServicesClient.GetAzureSiteRecoveryProtectionEntity( - this.protectionContainerId, - this.protectionEntityId); - this.ProtectionEntity = new ASRProtectionEntity(pe.ProtectionEntity); - - this.ValidateUsageById( - this.ProtectionEntity.ReplicationProvider, - this.protectionEntityId); - } + // fetch the latest PE object + // As get PE by name is failing before protection, get all & filter. + // Once after we fix get pe by name, change the logic to use the same. + ProtectionEntityListResponse protectionEntityListResponse = + RecoveryServicesClient.GetAzureSiteRecoveryProtectionEntity( + this.ProtectionEntity.ProtectionContainerId); - request.ReplicationProviderSettings = string.Empty; + foreach (ProtectionEntity pe in protectionEntityListResponse.ProtectionEntities) + { + if (0 == string.Compare(this.ProtectionEntity.FriendlyName, pe.Properties.FriendlyName, true)) + { + this.ProtectionEntity = new ASRProtectionEntity(pe); + break; + } + } + } request.ReplicationProvider = this.ProtectionEntity.ReplicationProvider; - request.FailoverDirection = this.Direction; + request.ReplicationProviderSettings = new FailoverReplicationProviderSpecificInput(); + + if ((this.Direction == Constants.PrimaryToRecovery && + this.ProtectionEntity.ActiveLocation == Constants.RecoveryLocation) || + (this.Direction == Constants.RecoveryToPrimary && + this.ProtectionEntity.ActiveLocation == Constants.PrimaryLocation)) + { + throw new ArgumentException("Parameter value is not correct.", "Direction"); + } + + if (0 == string.Compare( + this.ProtectionEntity.ReplicationProvider, + Constants.HyperVReplicaAzure, + StringComparison.OrdinalIgnoreCase)) + { + if (this.Direction == Constants.PrimaryToRecovery) + { + AzureReprotectInput reprotectInput = new AzureReprotectInput() + { + HvHostVmId = this.ProtectionEntity.FabricObjectId, + VmName = this.ProtectionEntity.Name, + OSType = this.ProtectionEntity.OS, + VHDId = this.ProtectionEntity.OSDiskId + }; + + request.ReplicationProviderSettings = reprotectInput; + } + } LongRunningOperationResponse response = RecoveryServicesClient.StartAzureSiteRecoveryReprotection( this.protectionContainerId, diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/GetAzureSiteRecoveryProtectionProfile.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/GetAzureSiteRecoveryProtectionProfile.cs index 0366d7d3811e..91fb9b962935 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/GetAzureSiteRecoveryProtectionProfile.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/GetAzureSiteRecoveryProtectionProfile.cs @@ -77,14 +77,26 @@ private void GetByFriendlyName() { ProtectionProfileListResponse profileListResponse = RecoveryServicesClient.GetAzureSiteRecoveryProtectionProfile(); + bool found = false; foreach (ProtectionProfile profile in profileListResponse.ProtectionProfiles) { if (0 == string.Compare(this.FriendlyName, profile.CustomData.FriendlyName, true)) { this.WriteProfile(profile); + found = true; } } + + if (!found) + { + throw new InvalidOperationException( + string.Format( + Properties.Resources.ProtectionProfileNotFound, + this.FriendlyName, + PSRecoveryServicesClient.asrVaultCreds.ResourceName)); + } + } /// diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/NewAzureSiteRecoveryProtectionProfile.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/NewAzureSiteRecoveryProtectionProfile.cs index dd8cd5bed180..adccc60b8d51 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/NewAzureSiteRecoveryProtectionProfile.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/NewAzureSiteRecoveryProtectionProfile.cs @@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.SiteRecovery /// /// Creates Azure Site Recovery Protection Profile object in memory. /// - [Cmdlet(VerbsCommon.New, "AzureSiteRecoveryProtectionProfile")] + [Cmdlet(VerbsCommon.New, "AzureSiteRecoveryProtectionProfile", DefaultParameterSetName = ASRParameterSets.EnterpriseToAzure)] public class NewAzureSiteRecoveryProtectionProfile : SiteRecoveryCmdletBase { /// @@ -38,22 +38,25 @@ public class NewAzureSiteRecoveryProtectionProfile : SiteRecoveryCmdletBase /// /// Gets or sets Name of the Protection Profile. /// - [Parameter] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise, Mandatory = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure, Mandatory = true)] public string Name { get; set; } /// /// Gets or sets Replication Provider of the Protection Profile. /// - [Parameter(Mandatory = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise, Mandatory = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure, Mandatory = true)] [ValidateNotNullOrEmpty] [ValidateSet( - Constants.HyperVReplica)] + Constants.HyperVReplica, + Constants.HyperVReplicaAzure)] public string ReplicationProvider { get; set; } /// /// Gets or sets a value for Replication Method of the Protection Profile. /// - [Parameter] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise)] [ValidateNotNullOrEmpty] [ValidateSet( Constants.OnlineReplicationMethod, @@ -63,7 +66,8 @@ public class NewAzureSiteRecoveryProtectionProfile : SiteRecoveryCmdletBase /// /// Gets or sets Replication Frequency of the Protection Profile in seconds. /// - [Parameter(Mandatory = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise, Mandatory = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure, Mandatory = true)] [ValidateNotNullOrEmpty] [ValidateSet( Constants.Thirty, @@ -74,7 +78,8 @@ public class NewAzureSiteRecoveryProtectionProfile : SiteRecoveryCmdletBase /// /// Gets or sets Recovery Points of the Protection Profile. /// - [Parameter] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure)] [ValidateNotNullOrEmpty] [DefaultValue(0)] public int RecoveryPoints { get; set; } @@ -82,7 +87,8 @@ public class NewAzureSiteRecoveryProtectionProfile : SiteRecoveryCmdletBase /// /// Gets or sets Application Consistent Snapshot Frequency of the Protection Profile in hours. /// - [Parameter] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure)] [ValidateNotNullOrEmpty] [DefaultValue(0)] public int ApplicationConsistentSnapshotFrequencyInHours { get; set; } @@ -90,21 +96,21 @@ public class NewAzureSiteRecoveryProtectionProfile : SiteRecoveryCmdletBase /// /// Gets or sets a value indicating whether Compression needs to be Enabled on the Protection Profile. /// - [Parameter] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise)] [DefaultValue(false)] public SwitchParameter CompressionEnabled { get; set; } /// /// Gets or sets the Replication Port of the Protection Profile. /// - [Parameter(Mandatory = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise, Mandatory = true)] [ValidateNotNullOrEmpty] public ushort ReplicationPort { get; set; } /// /// Gets or sets the Replication Port of the Protection Profile. /// - [Parameter] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise)] [ValidateNotNullOrEmpty] [ValidateSet( Constants.AuthenticationTypeCertificate, @@ -114,7 +120,8 @@ public class NewAzureSiteRecoveryProtectionProfile : SiteRecoveryCmdletBase /// /// Gets or sets Replication Start time of the Protection Profile. /// - [Parameter] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure)] [ValidateNotNullOrEmpty] public TimeSpan? ReplicationStartTime { get; set; } @@ -122,10 +129,24 @@ public class NewAzureSiteRecoveryProtectionProfile : SiteRecoveryCmdletBase /// Gets or sets a value indicating whether Replica should be Deleted on /// disabling protection of a protection entity protected by the Protection Profile. /// - [Parameter] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise)] [DefaultValue(false)] public SwitchParameter AllowReplicaDeletion { get; set; } + /// + /// Gets or sets a value Recovery Azure Subscription of the Protection Profile for E2A scenarios. + /// + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure, Mandatory = true)] + [ValidateNotNullOrEmpty] + public string RecoveryAzureSubscription { get; set; } + + /// + /// Gets or sets Recovery Azure Storage Account Name of the Protection Profile for E2A scenarios. + /// + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure, Mandatory = true)] + [ValidateNotNullOrEmpty] + public string RecoveryAzureStorageAccount { get; set; } + /// /// Gets or sets switch parameter. On passing, command does not ask for confirmation. /// @@ -141,7 +162,16 @@ public override void ExecuteCmdlet() { try { - this.EnterpriseToEnterpriseProtectionProfileObject(); + switch (this.ParameterSetName) + { + case ASRParameterSets.EnterpriseToEnterprise: + this.EnterpriseToEnterpriseProtectionProfileObject(); + break; + case ASRParameterSets.EnterpriseToAzure: + this.EnterpriseToAzureProtectionProfileObject(); + break; + } + } catch (Exception exception) { @@ -164,7 +194,8 @@ private void EnterpriseToEnterpriseProtectionProfileObject() PSRecoveryServicesClient.ValidateReplicationStartTime(this.ReplicationStartTime); - ushort replicationFrequencyInSeconds = PSRecoveryServicesClient.ConvertReplicationFrequencyToUshort(this.ReplicationFrequencyInSeconds); + ushort replicationFrequencyInSeconds = + PSRecoveryServicesClient.ConvertReplicationFrequencyToUshort(this.ReplicationFrequencyInSeconds); HyperVReplicaProtectionProfileInput hyperVReplicaProtectionProfileInput = new HyperVReplicaProtectionProfileInput() @@ -173,17 +204,74 @@ HyperVReplicaProtectionProfileInput hyperVReplicaProtectionProfileInput ReplicationFrequencyInSeconds = replicationFrequencyInSeconds, OnlineReplicationStartTime = this.ReplicationStartTime, Compression = this.CompressionEnabled == true ? "Enable" : "Disable", - InitialReplicationMethod = (string.Compare(this.ReplicationMethod, Constants.OnlineReplicationMethod, StringComparison.OrdinalIgnoreCase) == 0) ? "OverNetwork" : "Offline", + InitialReplicationMethod = + (string.Compare(this.ReplicationMethod, Constants.OnlineReplicationMethod, StringComparison.OrdinalIgnoreCase) == 0) ? "OverNetwork" : "Offline", RecoveryPoints = this.RecoveryPoints, ReplicationPort = this.ReplicationPort, ReplicaDeletion = this.AllowReplicaDeletion == true ? "Required" : "NotRequired", - AllowedAuthenticationType = (ushort)((string.Compare(this.Authentication, Constants.AuthenticationTypeKerberos, StringComparison.OrdinalIgnoreCase) == 0) ? 1 : 2) + AllowedAuthenticationType = + (ushort)((string.Compare(this.Authentication, Constants.AuthenticationTypeKerberos, StringComparison.OrdinalIgnoreCase) == 0) ? 1 : 2) }; CreateProtectionProfileInput createProtectionProfileInput = new CreateProtectionProfileInput(); createProtectionProfileInput.Name = this.Name; createProtectionProfileInput.ReplicationProvider = this.ReplicationProvider; - createProtectionProfileInput.ReplicationProviderSettings = hyperVReplicaProtectionProfileInput; + createProtectionProfileInput.ReplicationProviderSettings = + hyperVReplicaProtectionProfileInput; + + LongRunningOperationResponse response = + RecoveryServicesClient.CreateProtectionProfile(createProtectionProfileInput); + + JobResponse jobResponse = + RecoveryServicesClient + .GetAzureSiteRecoveryJobDetails(PSRecoveryServicesClient.GetJobIdFromReponseLocation(response.Location)); + + WriteObject(new ASRJob(jobResponse.Job)); + } + + /// + /// Creates an E2A Protection Profile Object + /// + private void EnterpriseToAzureProtectionProfileObject() + { + if (string.Compare(this.ReplicationProvider, Constants.HyperVReplicaAzure, StringComparison.OrdinalIgnoreCase) != 0) + { + throw new InvalidOperationException( + string.Format( + Properties.Resources.IncorrectReplicationProvider, + this.ReplicationProvider)); + } + + PSRecoveryServicesClient.ValidateReplicationStartTime(this.ReplicationStartTime); + + ushort replicationFrequencyInSeconds = + PSRecoveryServicesClient.ConvertReplicationFrequencyToUshort(this.ReplicationFrequencyInSeconds); + + HyperVReplicaAzureProtectionProfileInput hyperVReplicaAzureProtectionProfileInput = + new HyperVReplicaAzureProtectionProfileInput() + { + ApplicationConsistentSnapshotFrequencyInHours = + this.ApplicationConsistentSnapshotFrequencyInHours, + ReplicationInterval = replicationFrequencyInSeconds, + RecoveryPointHistoryDuration = this.RecoveryPoints, + OnlineReplicationStartTime = this.ReplicationStartTime, + Encryption = "Disable" + }; + + var storageAccount = new CustomerStorageAccount(); + storageAccount.StorageAccountName = this.RecoveryAzureStorageAccount; + storageAccount.SubscriptionId = this.RecoveryAzureSubscription; + + hyperVReplicaAzureProtectionProfileInput.StorageAccounts = + new System.Collections.Generic.List(); + hyperVReplicaAzureProtectionProfileInput.StorageAccounts.Add(storageAccount); + + CreateProtectionProfileInput createProtectionProfileInput = + new CreateProtectionProfileInput(); + createProtectionProfileInput.Name = this.Name; + createProtectionProfileInput.ReplicationProvider = this.ReplicationProvider; + createProtectionProfileInput.ReplicationProviderSettings = + hyperVReplicaAzureProtectionProfileInput; LongRunningOperationResponse response = RecoveryServicesClient.CreateProtectionProfile(createProtectionProfileInput); diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/StartAzureSiteRecoveryProtectionProfileAssociationJob.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/StartAzureSiteRecoveryProtectionProfileAssociationJob.cs index 64dbc5d48bde..7ace2ed55218 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/StartAzureSiteRecoveryProtectionProfileAssociationJob.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/StartAzureSiteRecoveryProtectionProfileAssociationJob.cs @@ -23,8 +23,8 @@ namespace Microsoft.Azure.Commands.SiteRecovery /// /// Adds Azure Site Recovery Protection Profile settings to a Protection Container. /// - [Cmdlet(VerbsLifecycle.Start, "AzureSiteRecoveryProtectionProfileAssociationJob")] - // [OutputType(typeof(ASRJob))] + [Cmdlet(VerbsLifecycle.Start, "AzureSiteRecoveryProtectionProfileAssociationJob", DefaultParameterSetName = ASRParameterSets.EnterpriseToAzure)] + [OutputType(typeof(ASRJob))] public class StartAzureSiteRecoveryProtectionProfileAssociationJob : SiteRecoveryCmdletBase { #region Parameters @@ -33,6 +33,7 @@ public class StartAzureSiteRecoveryProtectionProfileAssociationJob : SiteRecover /// Gets or sets Protection Profile object. /// [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise, Mandatory = true, ValueFromPipeline = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure, Mandatory = true, ValueFromPipeline = true)] [ValidateNotNullOrEmpty] public ASRProtectionProfile ProtectionProfile { get; set; } @@ -40,6 +41,7 @@ public class StartAzureSiteRecoveryProtectionProfileAssociationJob : SiteRecover /// Gets or sets Protection Container to be applied the Protection Profile settings on. /// [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise, Mandatory = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure, Mandatory = true)] [ValidateNotNullOrEmpty] public ASRProtectionContainer PrimaryProtectionContainer { get; set; } @@ -59,7 +61,15 @@ public override void ExecuteCmdlet() { try { - this.EnterpriseToEnterpriseAssociation(); + switch (this.ParameterSetName) + { + case ASRParameterSets.EnterpriseToAzure: + this.EnterpriseToAzureAssociation(); + break; + case ASRParameterSets.EnterpriseToEnterprise: + this.EnterpriseToEnterpriseAssociation(); + break; + } } catch (Exception exception) { @@ -75,10 +85,6 @@ private void EnterpriseToEnterpriseAssociation() if (string.Compare( this.ProtectionProfile.ReplicationProvider, Constants.HyperVReplica, - StringComparison.OrdinalIgnoreCase) != 0 && - string.Compare( - this.ProtectionProfile.ReplicationProvider, - Constants.San, StringComparison.OrdinalIgnoreCase) != 0) { throw new InvalidOperationException( @@ -103,13 +109,36 @@ private void EnterpriseToEnterpriseAssociation() this.WriteObject(new ASRJob(jobResponse.Job)); } - ///// - ///// Writes Job - ///// - ///// Job object - //private void WriteJob(Microsoft.WindowsAzure.Management.SiteRecovery.Models.Job job) - //{ - // this.WriteObject(new ASRJob(job)); - //} + /// + /// Associates Azure protection profile with enterprise based protection containers + /// + private void EnterpriseToAzureAssociation() + { + if (string.Compare( + this.ProtectionProfile.ReplicationProvider, + Constants.HyperVReplicaAzure, + StringComparison.OrdinalIgnoreCase) != 0) + { + throw new InvalidOperationException( + string.Format( + Properties.Resources.IncorrectReplicationProvider, + this.ProtectionProfile.ReplicationProvider)); + } + + ProtectionProfileAssociationInput protectionProfileAssociationInput = + new ProtectionProfileAssociationInput( + this.PrimaryProtectionContainer.Name, + Constants.AzureContainer); + + LongRunningOperationResponse response = RecoveryServicesClient.AssociateAzureSiteRecoveryProtectionProfile( + this.ProtectionProfile.Name, + protectionProfileAssociationInput); + + JobResponse jobResponse = + RecoveryServicesClient + .GetAzureSiteRecoveryJobDetails(PSRecoveryServicesClient.GetJobIdFromReponseLocation(response.Location)); + + this.WriteObject(new ASRJob(jobResponse.Job)); + } } } diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/StartAzureSiteRecoveryProtectionProfileDissociationJob.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/StartAzureSiteRecoveryProtectionProfileDissociationJob.cs index f75667c55354..18c659d9a5ac 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/StartAzureSiteRecoveryProtectionProfileDissociationJob.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionProfile/StartAzureSiteRecoveryProtectionProfileDissociationJob.cs @@ -21,8 +21,8 @@ namespace Microsoft.Azure.Commands.SiteRecovery /// /// Adds Azure Site Recovery Protection Profile settings to a Protection Container. /// - [Cmdlet(VerbsLifecycle.Start, "AzureSiteRecoveryProtectionProfileDissociationJob")] - // [OutputType(typeof(ASRJob))] + [Cmdlet(VerbsLifecycle.Start, "AzureSiteRecoveryProtectionProfileDissociationJob", DefaultParameterSetName = ASRParameterSets.EnterpriseToAzure)] + [OutputType(typeof(ASRJob))] public class StartAzureSiteRecoveryProtectionProfileDissociationJob : SiteRecoveryCmdletBase { /// @@ -36,6 +36,7 @@ public class StartAzureSiteRecoveryProtectionProfileDissociationJob : SiteRecove /// Gets or sets Protection Profile object. /// [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise, Mandatory = true, ValueFromPipeline = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure, Mandatory = true, ValueFromPipeline = true)] [ValidateNotNullOrEmpty] public ASRProtectionProfile ProtectionProfile { get; set; } @@ -43,6 +44,7 @@ public class StartAzureSiteRecoveryProtectionProfileDissociationJob : SiteRecove /// Gets or sets Protection Container to be removed the Protection Profile settings off. /// [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise, Mandatory = true)] + [Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure, Mandatory = true)] [ValidateNotNullOrEmpty] public ASRProtectionContainer PrimaryProtectionContainer { get; set; } @@ -62,29 +64,80 @@ public override void ExecuteCmdlet() { try { - string recoveryContainerId = string.Empty; - recoveryContainerId = this.RecoveryProtectionContainer.ID; + switch (this.ParameterSetName) + { + case ASRParameterSets.EnterpriseToAzure: + this.EnterpriseToAzureDissociation(); + break; + case ASRParameterSets.EnterpriseToEnterprise: + this.EnterpriseToEnterpriseDissociation(); + break; + } + } + catch (Exception exception) + { + this.HandleException(exception); + } + } - DisassociateProtectionProfileInput disassociateProtectionProfileInput = new DisassociateProtectionProfileInput(); - disassociateProtectionProfileInput.PrimaryProtectionContainerId = this.PrimaryProtectionContainer.Name; - disassociateProtectionProfileInput.RecoveryProtectionContainerId = this.RecoveryProtectionContainer.Name; - disassociateProtectionProfileInput.Name = this.ProtectionProfile.Name; - disassociateProtectionProfileInput.ReplicationProviderSettings = string.Empty; + private void EnterpriseToEnterpriseDissociation() + { + if (string.Compare( + this.ProtectionProfile.ReplicationProvider, + Constants.HyperVReplica, + StringComparison.OrdinalIgnoreCase) != 0) + { + throw new InvalidOperationException( + string.Format( + Properties.Resources.IncorrectReplicationProvider, + this.ProtectionProfile.ReplicationProvider)); + } - this.response = RecoveryServicesClient.DissociateAzureSiteRecoveryProtectionProfile( - this.ProtectionProfile.Name, - disassociateProtectionProfileInput); + DisassociateProtectionProfileInput disassociateProtectionProfileInput = new DisassociateProtectionProfileInput(); + disassociateProtectionProfileInput.PrimaryProtectionContainerId = this.PrimaryProtectionContainer.Name; + disassociateProtectionProfileInput.RecoveryProtectionContainerId = this.RecoveryProtectionContainer.Name; + disassociateProtectionProfileInput.Name = this.ProtectionProfile.Name; + disassociateProtectionProfileInput.ReplicationProviderSettings = new ProtectionProfileProviderSpecificInput(); - JobResponse jobResponse = - RecoveryServicesClient - .GetAzureSiteRecoveryJobDetails(PSRecoveryServicesClient.GetJobIdFromReponseLocation(response.Location)); + this.response = RecoveryServicesClient.DissociateAzureSiteRecoveryProtectionProfile( + this.ProtectionProfile.Name, + disassociateProtectionProfileInput); - WriteObject(new ASRJob(jobResponse.Job)); - } - catch (Exception exception) + JobResponse jobResponse = + RecoveryServicesClient + .GetAzureSiteRecoveryJobDetails(PSRecoveryServicesClient.GetJobIdFromReponseLocation(response.Location)); + + WriteObject(new ASRJob(jobResponse.Job)); + } + + private void EnterpriseToAzureDissociation() + { + if (string.Compare( + this.ProtectionProfile.ReplicationProvider, + Constants.HyperVReplicaAzure, + StringComparison.OrdinalIgnoreCase) != 0) { - this.HandleException(exception); + throw new InvalidOperationException( + string.Format( + Properties.Resources.IncorrectReplicationProvider, + this.ProtectionProfile.ReplicationProvider)); } + + DisassociateProtectionProfileInput disassociateProtectionProfileInput = new DisassociateProtectionProfileInput(); + disassociateProtectionProfileInput.PrimaryProtectionContainerId = this.PrimaryProtectionContainer.Name; + disassociateProtectionProfileInput.RecoveryProtectionContainerId = Constants.AzureContainer; + disassociateProtectionProfileInput.Name = this.ProtectionProfile.Name; + disassociateProtectionProfileInput.ReplicationProviderSettings = new ProtectionProfileProviderSpecificInput(); + + this.response = RecoveryServicesClient.DissociateAzureSiteRecoveryProtectionProfile( + this.ProtectionProfile.Name, + disassociateProtectionProfileInput); + + JobResponse jobResponse = + RecoveryServicesClient + .GetAzureSiteRecoveryJobDetails(PSRecoveryServicesClient.GetJobIdFromReponseLocation(response.Location)); + + WriteObject(new ASRJob(jobResponse.Job)); } } } diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Utilities/Utilities.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Utilities/Utilities.cs index 1b57691b5c43..f439a86744d8 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Utilities/Utilities.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Utilities/Utilities.cs @@ -113,6 +113,24 @@ public static void UpdateVaultSettings(ASRVaultCreds asrVaultCreds) asrVaultCreds.ResourceGroupName; PSRecoveryServicesClient.asrVaultCreds.ChannelIntegrityKey = asrVaultCreds.ChannelIntegrityKey; + if (asrVaultCreds.ResourceNamespace != null) + { + PSRecoveryServicesClient.asrVaultCreds.ResourceNamespace = + asrVaultCreds.ResourceNamespace; + } + } + } + + /// + /// Imports Azure Site Recovery Vault settings. + /// + /// Provider Namespace + public static void UpdateVaultSettingsProviderNamespace(string resourceNamespace) + { + object updateVaultSettingsOneAtATime = new object(); + lock (updateVaultSettingsOneAtATime) + { + PSRecoveryServicesClient.asrVaultCreds.ResourceNamespace = resourceNamespace; } } @@ -138,32 +156,5 @@ public static string GenerateRandomKey(int size) crypto.GetBytes(key); return Convert.ToBase64String(key); } - - /// - /// Returns the cloud id given a container id. - /// - /// Protection Container Id - /// Cloud Id object - public static void GetCloudIdFromContainerId(string protectionContainerId, out string cloudId) - { - // The first part before '_' is server id. Rest will be cloud id. - var index = protectionContainerId.IndexOf('_'); - - if (index != -1) - { - try - { - cloudId = protectionContainerId.Substring(index + 1, protectionContainerId.Length - index - 1); - } - catch - { - cloudId = null; - } - } - else - { - cloudId = null; - } - } } } diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/packages.config b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/packages.config index 6927ccb714e3..e66baca86202 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/packages.config +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/packages.config @@ -4,12 +4,13 @@ - + + 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 b69d3a7e7047..e3a73b077cb3 100644 --- a/src/ResourceManager/Sql/Commands.Sql.Test/Commands.Sql.Test.csproj +++ b/src/ResourceManager/Sql/Commands.Sql.Test/Commands.Sql.Test.csproj @@ -79,7 +79,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.Framework.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll diff --git a/src/ResourceManager/Sql/Commands.Sql.Test/packages.config b/src/ResourceManager/Sql/Commands.Sql.Test/packages.config index 4f5ac4dea2a4..ef62fa673ae9 100644 --- a/src/ResourceManager/Sql/Commands.Sql.Test/packages.config +++ b/src/ResourceManager/Sql/Commands.Sql.Test/packages.config @@ -6,7 +6,7 @@ - + diff --git a/src/ResourceManager/Sql/Commands.Sql/Commands.Sql.csproj b/src/ResourceManager/Sql/Commands.Sql/Commands.Sql.csproj index 5b3dfab6313c..a5ed86ef9b5f 100644 --- a/src/ResourceManager/Sql/Commands.Sql/Commands.Sql.csproj +++ b/src/ResourceManager/Sql/Commands.Sql/Commands.Sql.csproj @@ -234,7 +234,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False @@ -337,4 +337,4 @@ - + \ No newline at end of file diff --git a/src/ResourceManager/Sql/Commands.Sql/Microsoft.Azure.Commands.Sql.dll-Help.xml b/src/ResourceManager/Sql/Commands.Sql/Microsoft.Azure.Commands.Sql.dll-Help.xml index b3c0925595e2..7c6f6422c2d5 100644 --- a/src/ResourceManager/Sql/Commands.Sql/Microsoft.Azure.Commands.Sql.dll-Help.xml +++ b/src/ResourceManager/Sql/Commands.Sql/Microsoft.Azure.Commands.Sql.dll-Help.xml @@ -1643,7 +1643,7 @@ Switch-AzureMode –Name AzureResourceManager Get-AzureSqlServerActiveDirectoryAdministrator - The Get-AzureSqlServerActiveDirectoryAdministrator cmdlet returns information about an Azure Active Directory administrator for an Azure SQL Server in the current subscription. + Returns information about an Azure Active Directory administrator for Azure SQL Server in the current subscription. @@ -1653,6 +1653,7 @@ Switch-AzureMode –Name AzureResourceManager + The Get-AzureSqlServerActiveDirectoryAdministrator cmdlet returns information about an Azure Active Directory administrator for Azure SQL Server in the current subscription. Note: This cmdlet can only be executed in Azure Resource Manager mode. To enable Azure Resource Manager mode run the following command: Switch-AzureMode –Name AzureResourceManager For more information, see Using Windows PowerShell with Resource Manager. @@ -1660,7 +1661,7 @@ Switch-AzureMode –Name AzureResourceManager Get-AzureSqlServerActiveDirectoryAdministrator - + ServerName The name of the Azure SQL Server containing the Azure Active Directory administrator. @@ -1684,7 +1685,7 @@ Switch-AzureMode –Name AzureResourceManager - + ServerName The name of the Azure SQL Server containing the Azure Active Directory administrator. @@ -1729,7 +1730,8 @@ Switch-AzureMode –Name AzureResourceManager - System.String + +System.String @@ -1741,7 +1743,8 @@ Switch-AzureMode –Name AzureResourceManager - System.Object + +System.Object @@ -1754,8 +1757,39 @@ Switch-AzureMode –Name AzureResourceManager + + -------------------------- Code Example 1 -------------------------- + + PS C:\> + + PS C:\>Get-AzureSqlServerActiveDirectoryAdministrator –ResourceGroupName "Group-23" –ServerName "aad-managed-demo" + + Returns information about an Azure Active Directory administrator for Azure SQL Database Server "aad_managed_demo" associated with resource group "Group-23" + + + +ResourceGroupName ServerName DisplayName ObjectId +----------------- ---------- ----------- -------- +Group-23 aad-managed-demo DBAs 40b79501-b343-44ed-9ce7-da4c8cc7353b + + + + + + + + + + + Remove-AzureSqlServerActiveDirectoryAdministrator + + + + Set-AzureSqlServerActiveDirectoryAdministrator + + @@ -6575,7 +6609,7 @@ Switch-AzureMode –Name AzureResourceManager Remove-AzureSqlServerActiveDirectoryAdministrator - Removes an Azure Active Directory administrator for an Azure SQL Server in the current subscription. + Removes an Azure Active Directory administrator for Azure SQL Server in the current subscription. @@ -6585,6 +6619,7 @@ Switch-AzureMode –Name AzureResourceManager + The Remove-AzureSqlServerActiveDirectoryAdministrator cmdlet removes an Azure Active Directory administrator for Azure SQL Server in the current subscription. Note: This cmdlet can only be executed in Azure Resource Manager mode. To enable Azure Resource Manager mode run the following command: Switch-AzureMode –Name AzureResourceManager For more information, see Using Windows PowerShell with Resource Manager. @@ -6592,6 +6627,13 @@ Switch-AzureMode –Name AzureResourceManager Remove-AzureSqlServerActiveDirectoryAdministrator + + Force + + Skip confirmation message and remove the Azure SQL Server. + + SwitchParameter + ServerName @@ -6599,17 +6641,10 @@ Switch-AzureMode –Name AzureResourceManager String - - Force - - Skip confirmation message and remove the Azure SQL Server Active Directory administrator. - - SwitchParameter - ResourceGroupName - The name of the resource group that contains the Azure SQL Server Active Directory administrator to remove. + The name of the resource group that contains the Azure SQL Server to remove. String @@ -6637,26 +6672,26 @@ Switch-AzureMode –Name AzureResourceManager - - ServerName + + Force - The name of the Azure SQL Server to remove. + Skip confirmation message and remove the Azure SQL Server. - String + SwitchParameter - String + SwitchParameter none - - Force + + ServerName - Skip confirmation message and remove the Azure SQL Server. + The name of the Azure SQL Server to remove. - SwitchParameter + String - SwitchParameter + String none @@ -6718,7 +6753,8 @@ Switch-AzureMode –Name AzureResourceManager - System.String + +System.String @@ -6730,7 +6766,8 @@ Switch-AzureMode –Name AzureResourceManager - System.Object + +System.Object @@ -6743,8 +6780,43 @@ Switch-AzureMode –Name AzureResourceManager + + -------------------------- Code Example 1 -------------------------- + + PS C:\> + + PS c:\> Remove-AzureSqlServerActiveDirectoryAdministrator -ResourceGroupName "Group-23" –ServerName "aad-managed-demo" + + This command removes an Azure Active Directory administrator for Azure SQL Database Server "aad_managed_demo" associated with resource group "Group-23" + + + +Confirm +Are you sure you want to remove the Azure Sql Server Active Directory Administrator on server 'aadtest'? +[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y + +ResourceGroupName ServerName DisplayName ObjectId +----------------- ---------- ----------- -------- +Group-233 aad-managed-demo DBAs 40b79501-b343-44ed-9ce7-da4c8cc7353b + + + + + + + + + + + Get-AzureSqlServerActiveDirectoryAdministrator + + + + Set-AzureSqlServerActiveDirectoryAdministrator + + @@ -9264,10 +9336,20 @@ Switch-AzureMode –Name AzureResourceManager Set - AzureSqlServer + AzureSqlServerActiveDirectoryAdministrator + The Set-AzureSqlServerActiveDirectoryAdministrator cmdlet provisions an Azure Active Directory administrator for Azure SQL Server in the current subscription. + At any given time only one administrator can be provisioned + The following members of Azure Active Directory can be provisioned as an administrator for Azure SQL Server + Native members of Azure Active Directory + Federated members of Azure Active Directory + Imported members from other Azure Active Directories who are native or federated members + Active directory groups created as security groups + + Microsoft accounts (i.e. outllok.com, hotmail.com, live.com) or other guest accounts (i.e. gmail.com, yahoo.com) are not supported as administrators + For manageability purpose it is recommended to provision a dedicated Azure Active Directory group as an administrator Note: This cmdlet can only be executed in Azure Resource Manager mode. To enable Azure Resource Manager mode run the following command: Switch-AzureMode –Name AzureResourceManager For more information, see Using Windows PowerShell with Resource Manager. @@ -9278,35 +9360,36 @@ Switch-AzureMode –Name AzureResourceManager DisplayName - + Diplay name of the Azure AD administrator (user or group) to be provisioned for SQL Server. String ObjectId - + The unique object ID of the Azure AD administrator to be provisioned for SQL Server. Required if Azure AD <DisplayName> parameter is not unique. + Guid ServerName - + The name of the Azure SQL Server that contains the Azure Active Directory administrator you want to change. String ResourceGroupName - + The name of the resource group that contains the Azure SQL Server with the Azure Active Directory administrator to change. String Profile - + In-memory profile. AzureProfile @@ -9316,7 +9399,7 @@ Switch-AzureMode –Name AzureResourceManager DisplayName - + Diplay name of the Azure AD administrator (user or group) to be provisioned for SQL Server. String @@ -9328,7 +9411,8 @@ Switch-AzureMode –Name AzureResourceManager ObjectId - + The unique object ID of the Azure AD administrator to be provisioned for SQL Server. Required if Azure AD <DisplayName> parameter is not unique. + Guid @@ -9340,7 +9424,7 @@ Switch-AzureMode –Name AzureResourceManager ServerName - + The name of the Azure SQL Server that contains the Azure Active Directory administrator you want to change. String @@ -9352,7 +9436,7 @@ Switch-AzureMode –Name AzureResourceManager ResourceGroupName - + The name of the resource group that contains the Azure SQL Server with the Azure Active Directory administrator to change. String @@ -9361,184 +9445,6 @@ Switch-AzureMode –Name AzureResourceManager - - Profile - - - - AzureProfile - - AzureProfile - - - - - - - - - InputType - - - - - System.String - - - - - - - OutputType - - - - - System.Object - - - - - - - - - This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters. - - - - - - - - - - - Set-AzureSqlServerFirewallRule - - Updates an Azure SQL Server firewall rule. - - - - - Set - AzureSqlServerFirewallRule - - - - The Set-AzureSqlServerFirewallRule cmdlet updates an Azure SQL Server firewall rule. - Note: This cmdlet can only be executed in Azure Resource Manager mode. To enable Azure Resource Manager mode run the following command: -Switch-AzureMode –Name AzureResourceManager - For more information, see Using Windows PowerShell with Resource Manager. - - - - Set-AzureSqlServerFirewallRule - - FirewallRuleName - - The name of the Azure SQL Server firewall rule to update. - - String - - - StartIpAddress - - The new starting IP address for the firewall rule. - - String - - - EndIpAddress - - The new ending IP address for this rule. - - String - - - ServerName - - The name of the Azure SQL Server that contains the firewall rule you want to change. - - String - - - ResourceGroupName - - The name of the resource group that contains the Azure SQL Server with the firewall rule to change. - - String - - - Profile - - In-memory profile. - - AzureProfile - - - - - - FirewallRuleName - - The name of the Azure SQL Server firewall rule to update. - - String - - String - - - none - - - StartIpAddress - - The new starting IP address for the firewall rule. - - String - - String - - - none - - - EndIpAddress - - The new ending IP address for this rule. - - String - - String - - - none - - - ServerName - - The name of the Azure SQL Server that contains the firewall rule you want to change. - - String - - String - - - none - - - ResourceGroupName - - The name of the resource group that contains the Azure SQL Server with the firewall rule to change. - - String - - String - - - none - Profile @@ -9549,7 +9455,7 @@ Switch-AzureMode –Name AzureResourceManager AzureProfile - none + @@ -9560,7 +9466,8 @@ Switch-AzureMode –Name AzureResourceManager - System.String + +System.String @@ -9572,7 +9479,8 @@ Switch-AzureMode –Name AzureResourceManager - System.Object + +System.Object @@ -9586,16 +9494,66 @@ Switch-AzureMode –Name AzureResourceManager - -------------------------- Code Example -------------------------- + -------------------------- Code Example 1 -------------------------- + + PS C:\> + + PS C:\>Set-AzureSqlServerActiveDirectoryAdministrator –ResourceGroupName "Group-23" –ServerName "aad-managed-demo" –DisplayName "DBAs" + + This command provisions an Azure Active Directory administrator group “DBAs” for Azure SQL Database Server “aad-managed-demo” associated with resource group "Group-23" + + + +ResourceGroupName ServerName DisplayName ObjectId +----------------- ---------- ----------- -------- +Group-23 aad-managed-demo DBAs 40b79501-b343-44ed-9ce7-da4c8cc7353b + + + + + + + + + + + -------------------------- Code Example 2 -------------------------- PS C:\> - PS C:\>Set-AzureSqlServerFirewallRule + PS C:\>Set-AzureSqlServerActiveDirectoryAdministrator –ResourceGroupName "Group-23" –ServerName "aad-managed-demo" –DisplayName "Bob Johns" + This command provisions an Azure Active Directory user "Bob Johns" as an administrator for Azure SQL Database Server “aad-managed-demo” associated with resource group "Group-23" + +ResourceGroupName ServerName DisplayName ObjectId +----------------- ---------- ----------- -------- +Group-23 aad-managed-demo Bob Johns 11E95548-B179-4FE1-9AF4-ACA49D13ABB9 + + + + + + + + + + + -------------------------- Code Example 3 -------------------------- + + PS C:\> + + PS c:\>Set-AzureSqlServerActiveDirectoryAdministrator –ResourceGroupName "Group-23" –ServerName "aad-managed-demo" –DisplayName "DBAs" –ObjectId "40b79501-b343-44ed-9ce7-da4c8cc7353b" + + This command provisions an Azure Active Directory administrator group “DBAs” for Azure SQL Database Server “aad-managed-demo” associated with resource group "Group-23". To enforce <DisplayName> uniqueness, an optional parameter <–ObjectId > "40b79501-b343-44ed-9ce7-da4c8cc7353b" representing Azure AD ObjectID for the DBAs group is included - + + PS c:\>Set-AzureSqlServerActiveDirectoryAdministrator –ResourceGroupName "Group-23" –ServerName "aad-managed-demo" –DisplayName "DBAs" –ObjectId "40b79501-b343-44ed-9ce7-da4c8cc7353b" + +ResourceGroupName ServerName DisplayName ObjectId +----------------- ---------- ----------- -------- +Group-23 aad-managed-demo DBAs 40b79501-b343-44ed-9ce7-da4c8cc7353b @@ -9608,19 +9566,11 @@ Switch-AzureMode –Name AzureResourceManager - Azure_SqlDatabase - - - - Get-AzureSqlServerFirewallRule + Get-AzureSqlServerActiveDirectoryAdministrator - New-AzureSqlServerFirewallRule - - - - Remove-AzureSqlServerFirewallRule + Remove-AzureSqlServerActiveDirectoryAdministrator diff --git a/src/ResourceManager/Sql/Commands.Sql/Properties/Resources.Designer.cs b/src/ResourceManager/Sql/Commands.Sql/Properties/Resources.Designer.cs index 8833ba027e43..8f8748c4718b 100644 --- a/src/ResourceManager/Sql/Commands.Sql/Properties/Resources.Designer.cs +++ b/src/ResourceManager/Sql/Commands.Sql/Properties/Resources.Designer.cs @@ -61,7 +61,7 @@ internal Resources() { } /// - /// Looks up a localized string similar to More than one Active Directory group with the display name '{0}' was found. Please provide an object id to select the correct group.. + /// Looks up a localized string similar to More than one Active Directory group with the display name '{0}' was found. Please provide an Azure Active Directory object id to select the correct group. To get the object id use Get-AzureADGroup -SearchString "{0}". /// internal static string ADGroupMoreThanOneFound { get { @@ -70,7 +70,7 @@ internal static string ADGroupMoreThanOneFound { } /// - /// Looks up a localized string similar to Cannot find the Azure Active Directory object '{0}'. Please make sure that the user or application service principal you are authorizing is registered in the current subscription's Azure Active directory.. + /// Looks up a localized string similar to Cannot find the Azure Active Directory object '{0}'. Please make sure that the user or group you are authorizing is registered in the current subscription's Azure Active directory. To get a list of Azure Active Directory groups use Get-AzureADGroup, or to get a list of Azure Active Directory users use Get-AzureADUser.. /// internal static string ADObjectNotFound { get { @@ -79,7 +79,7 @@ internal static string ADObjectNotFound { } /// - /// Looks up a localized string similar to More than one Azure Active Directory user with the display name '{0}' was found. Please provide an object id to select the correct user.. + /// Looks up a localized string similar to More than one Azure Active Directory user with the display name '{0}' was found. Please provide an Azure Active Directory object id to select the correct user. To get the object id use Get-AzureADUser -SearchString "{0}". /// internal static string ADUserMoreThanOneFound { get { @@ -177,6 +177,15 @@ internal static string EnterUserId { } } + /// + /// Looks up a localized string similar to The Active Directory Group '{0}' is not security enabled. Only Azure Active Directory Security Enabled Groups are supported.. + /// + internal static string InvalidADGroupNotSecurity { + get { + return ResourceManager.GetString("InvalidADGroupNotSecurity", resourceCulture); + } + } + /// /// Looks up a localized string similar to Cannot use the '{0}' option with other event types.. /// @@ -186,6 +195,15 @@ internal static string InvalidEventTypeSet { } } + /// + /// Looks up a localized string similar to Please use Set-AzureEnvironment to set a valid GraphEndpoint in the AzureEnvironment. . + /// + internal static string InvalidGraphEndpoint { + get { + return ResourceManager.GetString("InvalidGraphEndpoint", resourceCulture); + } + } + /// /// Looks up a localized string similar to Cannot use audit table retention without specifying TableIdentifier. You may want to use '{0}'.. /// diff --git a/src/ResourceManager/Sql/Commands.Sql/Properties/Resources.resx b/src/ResourceManager/Sql/Commands.Sql/Properties/Resources.resx index 62ed6c78604c..4206ff9e5601 100644 --- a/src/ResourceManager/Sql/Commands.Sql/Properties/Resources.resx +++ b/src/ResourceManager/Sql/Commands.Sql/Properties/Resources.resx @@ -232,13 +232,13 @@ Auditing cannot be enabled . Upgrade to Basic, Standard or Premium Service Tier to enable auditing on your database(s) - More than one Active Directory group with the display name '{0}' was found. Please provide an object id to select the correct group. + More than one Active Directory group with the display name '{0}' was found. Please provide an Azure Active Directory object id to select the correct group. To get the object id use Get-AzureADGroup -SearchString "{0}" - Cannot find the Azure Active Directory object '{0}'. Please make sure that the user or application service principal you are authorizing is registered in the current subscription's Azure Active directory. + Cannot find the Azure Active Directory object '{0}'. Please make sure that the user or group you are authorizing is registered in the current subscription's Azure Active directory. To get a list of Azure Active Directory groups use Get-AzureADGroup, or to get a list of Azure Active Directory users use Get-AzureADUser. - More than one Azure Active Directory user with the display name '{0}' was found. Please provide an object id to select the correct user. + More than one Azure Active Directory user with the display name '{0}' was found. Please provide an Azure Active Directory object id to select the correct user. To get the object id use Get-AzureADUser -SearchString "{0}" Please set a valid tenant id in the AzureEnvironment. @@ -249,4 +249,10 @@ Are you sure you want to remove the Azure Sql Server Active Directory Administrator on server '{0}'? + + The Active Directory Group '{0}' is not security enabled. Only Azure Active Directory Security Enabled Groups are supported. + + + Please use Set-AzureEnvironment to set a valid GraphEndpoint for the current AzureEnvironment. + \ No newline at end of file diff --git a/src/ResourceManager/Sql/Commands.Sql/ServerActiveDirectoryAdministrator/Services/AzureSqlServerActiveDirectoryAdministratorAdapter.cs b/src/ResourceManager/Sql/Commands.Sql/ServerActiveDirectoryAdministrator/Services/AzureSqlServerActiveDirectoryAdministratorAdapter.cs index ee7dabb2dd61..500a365733d5 100644 --- a/src/ResourceManager/Sql/Commands.Sql/ServerActiveDirectoryAdministrator/Services/AzureSqlServerActiveDirectoryAdministratorAdapter.cs +++ b/src/ResourceManager/Sql/Commands.Sql/ServerActiveDirectoryAdministrator/Services/AzureSqlServerActiveDirectoryAdministratorAdapter.cs @@ -65,6 +65,10 @@ public MicrosoftAzureCommandsResourcesModelsActiveDirectory.ActiveDirectoryClien { if (_activeDirectoryClient == null) { + if (!Profile.Context.Environment.IsEndpointSet(AzureEnvironment.Endpoint.Graph)) + { + throw new ArgumentException(string.Format(Resources.InvalidGraphEndpoint)); + } _activeDirectoryClient = new MicrosoftAzureCommandsResourcesModelsActiveDirectory.ActiveDirectoryClient(Profile.Context); } return this._activeDirectoryClient; @@ -192,6 +196,13 @@ protected ServerAdministratorCreateOrUpdateProperties GetActiveDirectoryInformat { // Only one group was found. Get the group display name and object id var group = groupList.First(); + + // Only support Security Groups + if (group.SecurityEnabled.HasValue && !group.SecurityEnabled.Value) + { + throw new ArgumentException(string.Format(Resources.InvalidADGroupNotSecurity, displayName)); + } + return new ServerAdministratorCreateOrUpdateProperties() { Login = group.DisplayName, @@ -211,6 +222,20 @@ protected ServerAdministratorCreateOrUpdateProperties GetActiveDirectoryInformat // Get a list of user from Azure Active Directory var userList = ActiveDirectoryClient.FilterUsers(filter).Where(gr => string.Equals(gr.DisplayName, displayName, StringComparison.OrdinalIgnoreCase)); + // No user was found. Check if the display name is a UPN + if (userList == null || userList.Count() == 0) + { + // Check if the display name is the UPN + filter = new MicrosoftAzureCommandsResourcesModelsActiveDirectory.ADObjectFilterOptions() + { + Id = (objectId != null && objectId != Guid.Empty) ? objectId.ToString() : null, + UPN = displayName, + Paging = true, + }; + + userList = ActiveDirectoryClient.FilterUsers(filter).Where(gr => string.Equals(gr.UserPrincipalName, displayName, StringComparison.OrdinalIgnoreCase)); + } + // No user was found if (userList == null || userList.Count() == 0) { @@ -228,7 +253,7 @@ protected ServerAdministratorCreateOrUpdateProperties GetActiveDirectoryInformat return new ServerAdministratorCreateOrUpdateProperties() { - Login = obj.DisplayName, + Login = displayName, Sid = obj.Id, TenantId = tenantId, }; @@ -243,8 +268,6 @@ protected Guid GetTenantId() { var tenantIdStr = Profile.Context.Subscription.GetPropertyAsArray(AzureSubscription.Property.Tenants).FirstOrDefault(); - string adTenant = Profile.Context.Environment.GetEndpoint(AzureEnvironment.Endpoint.AdTenant); - string graph = Profile.Context.Environment.GetEndpoint(AzureEnvironment.Endpoint.Graph); var tenantIdGuid = Guid.Empty; if (string.IsNullOrWhiteSpace(tenantIdStr) || !Guid.TryParse(tenantIdStr, out tenantIdGuid)) diff --git a/src/ResourceManager/Sql/Commands.Sql/packages.config b/src/ResourceManager/Sql/Commands.Sql/packages.config index b5dfe89de277..921846e9d034 100644 --- a/src/ResourceManager/Sql/Commands.Sql/packages.config +++ b/src/ResourceManager/Sql/Commands.Sql/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ResourceManager/Storage/Commands.Management.Storage.Test/Commands.Management.Storage.Test.csproj b/src/ResourceManager/Storage/Commands.Management.Storage.Test/Commands.Management.Storage.Test.csproj index 14bda6a618e8..026167413206 100644 --- a/src/ResourceManager/Storage/Commands.Management.Storage.Test/Commands.Management.Storage.Test.csproj +++ b/src/ResourceManager/Storage/Commands.Management.Storage.Test/Commands.Management.Storage.Test.csproj @@ -56,7 +56,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.Framework.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll diff --git a/src/ResourceManager/Storage/Commands.Management.Storage.Test/packages.config b/src/ResourceManager/Storage/Commands.Management.Storage.Test/packages.config index 65f0bdace8df..f572c59a7c2a 100644 --- a/src/ResourceManager/Storage/Commands.Management.Storage.Test/packages.config +++ b/src/ResourceManager/Storage/Commands.Management.Storage.Test/packages.config @@ -6,7 +6,7 @@ - + diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Commands.StreamAnalytics.Test.csproj b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Commands.StreamAnalytics.Test.csproj index 323cef4dc4db..5346ad58f98d 100644 --- a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Commands.StreamAnalytics.Test.csproj +++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Commands.StreamAnalytics.Test.csproj @@ -66,7 +66,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/packages.config b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/packages.config index 974efb0cf3fd..2482f7ec1839 100644 --- a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/packages.config +++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/packages.config @@ -6,7 +6,7 @@ - + diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Commands.StreamAnalytics.csproj b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Commands.StreamAnalytics.csproj index cd9fa1703184..f1f0b3a6d8c6 100644 --- a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Commands.StreamAnalytics.csproj +++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Commands.StreamAnalytics.csproj @@ -67,7 +67,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/packages.config b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/packages.config index c7051f155d84..4c7cab1e15e7 100644 --- a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/packages.config +++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ResourceManager/Tags/Commands.Tags/Commands.Tags.csproj b/src/ResourceManager/Tags/Commands.Tags/Commands.Tags.csproj index 045dbab0907f..e2d09ed1bac4 100644 --- a/src/ResourceManager/Tags/Commands.Tags/Commands.Tags.csproj +++ b/src/ResourceManager/Tags/Commands.Tags/Commands.Tags.csproj @@ -63,7 +63,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll diff --git a/src/ResourceManager/Tags/Commands.Tags/packages.config b/src/ResourceManager/Tags/Commands.Tags/packages.config index b4a710776ebc..653d89f6ed0b 100644 --- a/src/ResourceManager/Tags/Commands.Tags/packages.config +++ b/src/ResourceManager/Tags/Commands.Tags/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ResourceManager/TrafficManager/Commands.TrafficManager2.Test/Commands.TrafficManager2.Test.csproj b/src/ResourceManager/TrafficManager/Commands.TrafficManager2.Test/Commands.TrafficManager2.Test.csproj index 93b5b074f954..2bc0080bd04d 100644 --- a/src/ResourceManager/TrafficManager/Commands.TrafficManager2.Test/Commands.TrafficManager2.Test.csproj +++ b/src/ResourceManager/TrafficManager/Commands.TrafficManager2.Test/Commands.TrafficManager2.Test.csproj @@ -65,7 +65,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/TrafficManager/Commands.TrafficManager2.Test/packages.config b/src/ResourceManager/TrafficManager/Commands.TrafficManager2.Test/packages.config index f645be6b719f..99644abec302 100644 --- a/src/ResourceManager/TrafficManager/Commands.TrafficManager2.Test/packages.config +++ b/src/ResourceManager/TrafficManager/Commands.TrafficManager2.Test/packages.config @@ -6,7 +6,7 @@ - + diff --git a/src/ResourceManager/TrafficManager/Commands.TrafficManager2/Commands.TrafficManager2.csproj b/src/ResourceManager/TrafficManager/Commands.TrafficManager2/Commands.TrafficManager2.csproj index bcc081b32f18..6debc504e6f2 100644 --- a/src/ResourceManager/TrafficManager/Commands.TrafficManager2/Commands.TrafficManager2.csproj +++ b/src/ResourceManager/TrafficManager/Commands.TrafficManager2/Commands.TrafficManager2.csproj @@ -60,7 +60,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/TrafficManager/Commands.TrafficManager2/packages.config b/src/ResourceManager/TrafficManager/Commands.TrafficManager2/packages.config index c96fdacd97a7..4769d79213ea 100644 --- a/src/ResourceManager/TrafficManager/Commands.TrafficManager2/packages.config +++ b/src/ResourceManager/TrafficManager/Commands.TrafficManager2/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ResourceManager/Websites/Commands.Websites.Test/Commands.Websites.Test.csproj b/src/ResourceManager/Websites/Commands.Websites.Test/Commands.Websites.Test.csproj index 2fb1ab7150ef..252e30185537 100644 --- a/src/ResourceManager/Websites/Commands.Websites.Test/Commands.Websites.Test.csproj +++ b/src/ResourceManager/Websites/Commands.Websites.Test/Commands.Websites.Test.csproj @@ -66,7 +66,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/Websites/Commands.Websites.Test/packages.config b/src/ResourceManager/Websites/Commands.Websites.Test/packages.config index 736b2a0b6a97..04e9a376fa1b 100644 --- a/src/ResourceManager/Websites/Commands.Websites.Test/packages.config +++ b/src/ResourceManager/Websites/Commands.Websites.Test/packages.config @@ -7,7 +7,7 @@ - + diff --git a/src/ResourceManager/Websites/Commands.Websites/Commands.Websites.csproj b/src/ResourceManager/Websites/Commands.Websites/Commands.Websites.csproj index a9133be2fb39..63729c5a0fb8 100644 --- a/src/ResourceManager/Websites/Commands.Websites/Commands.Websites.csproj +++ b/src/ResourceManager/Websites/Commands.Websites/Commands.Websites.csproj @@ -79,7 +79,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll diff --git a/src/ResourceManager/Websites/Commands.Websites/packages.config b/src/ResourceManager/Websites/Commands.Websites/packages.config index 4d1e3f62e6ee..e802bf014596 100644 --- a/src/ResourceManager/Websites/Commands.Websites/packages.config +++ b/src/ResourceManager/Websites/Commands.Websites/packages.config @@ -7,7 +7,7 @@ - + diff --git a/src/ServiceManagement/Automation/Commands.Automation.Test/Commands.Automation.Test.csproj b/src/ServiceManagement/Automation/Commands.Automation.Test/Commands.Automation.Test.csproj index 0da5ecd26c4b..f6f9b0dde6e8 100644 --- a/src/ServiceManagement/Automation/Commands.Automation.Test/Commands.Automation.Test.csproj +++ b/src/ServiceManagement/Automation/Commands.Automation.Test/Commands.Automation.Test.csproj @@ -64,7 +64,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.HttpRecorder.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.HttpRecorder.dll diff --git a/src/ServiceManagement/Automation/Commands.Automation.Test/packages.config b/src/ServiceManagement/Automation/Commands.Automation.Test/packages.config index 08124b8e090e..31f4e44d7722 100644 --- a/src/ServiceManagement/Automation/Commands.Automation.Test/packages.config +++ b/src/ServiceManagement/Automation/Commands.Automation.Test/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ServiceManagement/Automation/Commands.Automation/Commands.Automation.csproj b/src/ServiceManagement/Automation/Commands.Automation/Commands.Automation.csproj index f710839bed0e..a716704c93ec 100644 --- a/src/ServiceManagement/Automation/Commands.Automation/Commands.Automation.csproj +++ b/src/ServiceManagement/Automation/Commands.Automation/Commands.Automation.csproj @@ -67,7 +67,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll diff --git a/src/ServiceManagement/Automation/Commands.Automation/packages.config b/src/ServiceManagement/Automation/Commands.Automation/packages.config index e4fb132b0d34..ae9b9b4f6830 100644 --- a/src/ServiceManagement/Automation/Commands.Automation/packages.config +++ b/src/ServiceManagement/Automation/Commands.Automation/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement.PlatformImageRepository/Commands.ServiceManagement.PlatformImageRepository.csproj b/src/ServiceManagement/Compute/Commands.ServiceManagement.PlatformImageRepository/Commands.ServiceManagement.PlatformImageRepository.csproj index 7cf6dc0e019e..8a324f301a83 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement.PlatformImageRepository/Commands.ServiceManagement.PlatformImageRepository.csproj +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement.PlatformImageRepository/Commands.ServiceManagement.PlatformImageRepository.csproj @@ -74,7 +74,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement.PlatformImageRepository/packages.config b/src/ServiceManagement/Compute/Commands.ServiceManagement.PlatformImageRepository/packages.config index c0acc608d07d..017f626578c5 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement.PlatformImageRepository/packages.config +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement.PlatformImageRepository/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Commands.ServiceManagement.Preview.csproj b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Commands.ServiceManagement.Preview.csproj index 683f7f803d11..be69e32226d3 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Commands.ServiceManagement.Preview.csproj +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Commands.ServiceManagement.Preview.csproj @@ -75,7 +75,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/packages.config b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/packages.config index 0dcd10275314..b53ed427c514 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/packages.config +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement.Test/Commands.ServiceManagement.Test.csproj b/src/ServiceManagement/Compute/Commands.ServiceManagement.Test/Commands.ServiceManagement.Test.csproj index 9a9356e36597..31c4cd75ae42 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement.Test/Commands.ServiceManagement.Test.csproj +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement.Test/Commands.ServiceManagement.Test.csproj @@ -70,7 +70,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.HttpRecorder.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.HttpRecorder.dll diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement.Test/packages.config b/src/ServiceManagement/Compute/Commands.ServiceManagement.Test/packages.config index c5e724634841..185e8b77b84a 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement.Test/packages.config +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement.Test/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement/Commands.ServiceManagement.csproj b/src/ServiceManagement/Compute/Commands.ServiceManagement/Commands.ServiceManagement.csproj index dbe113ca48a7..c269aa22b8ba 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement/Commands.ServiceManagement.csproj +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement/Commands.ServiceManagement.csproj @@ -76,7 +76,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement/packages.config b/src/ServiceManagement/Compute/Commands.ServiceManagement/packages.config index 0dcd10275314..b53ed427c514 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement/packages.config +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/Commands.ExpressRoute.csproj b/src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/Commands.ExpressRoute.csproj index 0a419da6543b..49a8a22837df 100644 --- a/src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/Commands.ExpressRoute.csproj +++ b/src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/Commands.ExpressRoute.csproj @@ -56,7 +56,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll diff --git a/src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/packages.config b/src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/packages.config index 8a2a7bd66e58..925b4af788c5 100644 --- a/src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/packages.config +++ b/src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight.Test/Commands.HDInsight.Test.csproj b/src/ServiceManagement/HDInsight/Commands.HDInsight.Test/Commands.HDInsight.Test.csproj index de7e5cf866dc..565f4f9786a5 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight.Test/Commands.HDInsight.Test.csproj +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight.Test/Commands.HDInsight.Test.csproj @@ -61,7 +61,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.HttpRecorder.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.HttpRecorder.dll diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight.Test/packages.config b/src/ServiceManagement/HDInsight/Commands.HDInsight.Test/packages.config index d68e38df2a30..c64f9f9af1c8 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight.Test/packages.config +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight.Test/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/HDInsight.csproj b/src/ServiceManagement/HDInsight/Commands.HDInsight/HDInsight.csproj index 26bed5f7a988..7627df4c323d 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/HDInsight.csproj +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/HDInsight.csproj @@ -69,7 +69,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/packages.config b/src/ServiceManagement/HDInsight/Commands.HDInsight/packages.config index a923a630feb1..25633f0fa4da 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/packages.config +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ServiceManagement/ManagedCache/Commands.ManagedCache.Test/Commands.ManagedCache.Test.csproj b/src/ServiceManagement/ManagedCache/Commands.ManagedCache.Test/Commands.ManagedCache.Test.csproj index 45f856827847..774c08809dc7 100644 --- a/src/ServiceManagement/ManagedCache/Commands.ManagedCache.Test/Commands.ManagedCache.Test.csproj +++ b/src/ServiceManagement/ManagedCache/Commands.ManagedCache.Test/Commands.ManagedCache.Test.csproj @@ -55,7 +55,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.Framework.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll diff --git a/src/ServiceManagement/ManagedCache/Commands.ManagedCache.Test/packages.config b/src/ServiceManagement/ManagedCache/Commands.ManagedCache.Test/packages.config index f2b2eb0cda2c..25bd3bbdfb45 100644 --- a/src/ServiceManagement/ManagedCache/Commands.ManagedCache.Test/packages.config +++ b/src/ServiceManagement/ManagedCache/Commands.ManagedCache.Test/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ServiceManagement/ManagedCache/Commands.ManagedCache/Commands.ManagedCache.csproj b/src/ServiceManagement/ManagedCache/Commands.ManagedCache/Commands.ManagedCache.csproj index 585d4f9e711f..ab38025e9960 100644 --- a/src/ServiceManagement/ManagedCache/Commands.ManagedCache/Commands.ManagedCache.csproj +++ b/src/ServiceManagement/ManagedCache/Commands.ManagedCache/Commands.ManagedCache.csproj @@ -56,7 +56,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Data.Edm.5.6.0\lib\net40\Microsoft.Data.Edm.dll diff --git a/src/ServiceManagement/ManagedCache/Commands.ManagedCache/packages.config b/src/ServiceManagement/ManagedCache/Commands.ManagedCache/packages.config index 73e6fb77a0cb..00e3732d5920 100644 --- a/src/ServiceManagement/ManagedCache/Commands.ManagedCache/packages.config +++ b/src/ServiceManagement/ManagedCache/Commands.ManagedCache/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ServiceManagement/Network/Commands.Network.Test/Commands.ServiceManagement.Network.Test.csproj b/src/ServiceManagement/Network/Commands.Network.Test/Commands.ServiceManagement.Network.Test.csproj index c50cf7fa992b..d3aba9ae0b85 100644 --- a/src/ServiceManagement/Network/Commands.Network.Test/Commands.ServiceManagement.Network.Test.csproj +++ b/src/ServiceManagement/Network/Commands.Network.Test/Commands.ServiceManagement.Network.Test.csproj @@ -55,7 +55,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.Framework.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll diff --git a/src/ServiceManagement/Network/Commands.Network.Test/packages.config b/src/ServiceManagement/Network/Commands.Network.Test/packages.config index 9d06896375c8..5d3c749466c2 100644 --- a/src/ServiceManagement/Network/Commands.Network.Test/packages.config +++ b/src/ServiceManagement/Network/Commands.Network.Test/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ServiceManagement/Network/Commands.Network/Commands.ServiceManagement.Network.csproj b/src/ServiceManagement/Network/Commands.Network/Commands.ServiceManagement.Network.csproj index 143ab48444ea..946747aae920 100644 --- a/src/ServiceManagement/Network/Commands.Network/Commands.ServiceManagement.Network.csproj +++ b/src/ServiceManagement/Network/Commands.Network/Commands.ServiceManagement.Network.csproj @@ -64,7 +64,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ServiceManagement/Network/Commands.Network/packages.config b/src/ServiceManagement/Network/Commands.Network/packages.config index ad850683745f..ff3b7bb3d2c1 100644 --- a/src/ServiceManagement/Network/Commands.Network/packages.config +++ b/src/ServiceManagement/Network/Commands.Network/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices.Test/Commands.RecoveryServices.Test.csproj b/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices.Test/Commands.RecoveryServices.Test.csproj index 0e1626193adc..5c134d7da597 100644 --- a/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices.Test/Commands.RecoveryServices.Test.csproj +++ b/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices.Test/Commands.RecoveryServices.Test.csproj @@ -43,7 +43,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll diff --git a/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices.Test/packages.config b/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices.Test/packages.config index 495ccfd7d581..102ced0c7ad6 100644 --- a/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices.Test/packages.config +++ b/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices.Test/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Commands.RecoveryServices.csproj b/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Commands.RecoveryServices.csproj index 98dd301bbf2b..843a5c3a833a 100644 --- a/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Commands.RecoveryServices.csproj +++ b/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Commands.RecoveryServices.csproj @@ -62,7 +62,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll diff --git a/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/packages.config b/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/packages.config index 6b961a88ac8f..ddedd5c68f8e 100644 --- a/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/packages.config +++ b/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/packages.config @@ -6,7 +6,7 @@ - + diff --git a/src/ServiceManagement/Services/Commands.Test.Utilities/Commands.Test.Utilities.csproj b/src/ServiceManagement/Services/Commands.Test.Utilities/Commands.Test.Utilities.csproj index 984b12e8b934..ea7f79605f32 100644 --- a/src/ServiceManagement/Services/Commands.Test.Utilities/Commands.Test.Utilities.csproj +++ b/src/ServiceManagement/Services/Commands.Test.Utilities/Commands.Test.Utilities.csproj @@ -59,7 +59,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ServiceManagement/Services/Commands.Test.Utilities/packages.config b/src/ServiceManagement/Services/Commands.Test.Utilities/packages.config index 1dbb44c29eb2..66d268a11c42 100644 --- a/src/ServiceManagement/Services/Commands.Test.Utilities/packages.config +++ b/src/ServiceManagement/Services/Commands.Test.Utilities/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ServiceManagement/Services/Commands.Test/Commands.Test.csproj b/src/ServiceManagement/Services/Commands.Test/Commands.Test.csproj index f3d770837a52..a501872a3f80 100644 --- a/src/ServiceManagement/Services/Commands.Test/Commands.Test.csproj +++ b/src/ServiceManagement/Services/Commands.Test/Commands.Test.csproj @@ -64,7 +64,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.Framework.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll diff --git a/src/ServiceManagement/Services/Commands.Test/packages.config b/src/ServiceManagement/Services/Commands.Test/packages.config index de91f44e3199..516b883a8b0e 100644 --- a/src/ServiceManagement/Services/Commands.Test/packages.config +++ b/src/ServiceManagement/Services/Commands.Test/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ServiceManagement/Services/Commands.Utilities/Commands.Utilities.csproj b/src/ServiceManagement/Services/Commands.Utilities/Commands.Utilities.csproj index ec6318ed56e9..2632911ee608 100644 --- a/src/ServiceManagement/Services/Commands.Utilities/Commands.Utilities.csproj +++ b/src/ServiceManagement/Services/Commands.Utilities/Commands.Utilities.csproj @@ -71,7 +71,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll diff --git a/src/ServiceManagement/Services/Commands.Utilities/packages.config b/src/ServiceManagement/Services/Commands.Utilities/packages.config index 70aa9d9d69cc..e38add135553 100644 --- a/src/ServiceManagement/Services/Commands.Utilities/packages.config +++ b/src/ServiceManagement/Services/Commands.Utilities/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ServiceManagement/Services/Commands/Commands.csproj b/src/ServiceManagement/Services/Commands/Commands.csproj index 7628445f34e6..0238dcd533dc 100644 --- a/src/ServiceManagement/Services/Commands/Commands.csproj +++ b/src/ServiceManagement/Services/Commands/Commands.csproj @@ -69,7 +69,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll diff --git a/src/ServiceManagement/Services/Commands/packages.config b/src/ServiceManagement/Services/Commands/packages.config index 4763f981982e..e9e428e180ae 100644 --- a/src/ServiceManagement/Services/Commands/packages.config +++ b/src/ServiceManagement/Services/Commands/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ServiceManagement/Sql/Commands.SqlDatabase.Test/Commands.SqlDatabase.Test.csproj b/src/ServiceManagement/Sql/Commands.SqlDatabase.Test/Commands.SqlDatabase.Test.csproj index e5a82cdb6226..b11709e056b2 100644 --- a/src/ServiceManagement/Sql/Commands.SqlDatabase.Test/Commands.SqlDatabase.Test.csproj +++ b/src/ServiceManagement/Sql/Commands.SqlDatabase.Test/Commands.SqlDatabase.Test.csproj @@ -65,7 +65,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.HttpRecorder.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.HttpRecorder.dll diff --git a/src/ServiceManagement/Sql/Commands.SqlDatabase.Test/packages.config b/src/ServiceManagement/Sql/Commands.SqlDatabase.Test/packages.config index f4fbbb8bdad8..79a78fbcdfc6 100644 --- a/src/ServiceManagement/Sql/Commands.SqlDatabase.Test/packages.config +++ b/src/ServiceManagement/Sql/Commands.SqlDatabase.Test/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ServiceManagement/Sql/Commands.SqlDatabase/Commands.SqlDatabase.csproj b/src/ServiceManagement/Sql/Commands.SqlDatabase/Commands.SqlDatabase.csproj index d48fdb272821..7e9a61e73d6e 100644 --- a/src/ServiceManagement/Sql/Commands.SqlDatabase/Commands.SqlDatabase.csproj +++ b/src/ServiceManagement/Sql/Commands.SqlDatabase/Commands.SqlDatabase.csproj @@ -66,7 +66,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ServiceManagement/Sql/Commands.SqlDatabase/packages.config b/src/ServiceManagement/Sql/Commands.SqlDatabase/packages.config index d060256a1125..44b52a407db9 100644 --- a/src/ServiceManagement/Sql/Commands.SqlDatabase/packages.config +++ b/src/ServiceManagement/Sql/Commands.SqlDatabase/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ServiceManagement/StorSimple/Commands.StorSimple.Test/Commands.StorSimple.Test.csproj b/src/ServiceManagement/StorSimple/Commands.StorSimple.Test/Commands.StorSimple.Test.csproj index 7ecf4c5d86ee..96a09df7f76d 100644 --- a/src/ServiceManagement/StorSimple/Commands.StorSimple.Test/Commands.StorSimple.Test.csproj +++ b/src/ServiceManagement/StorSimple/Commands.StorSimple.Test/Commands.StorSimple.Test.csproj @@ -48,7 +48,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.Framework.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll diff --git a/src/ServiceManagement/StorSimple/Commands.StorSimple.Test/packages.config b/src/ServiceManagement/StorSimple/Commands.StorSimple.Test/packages.config index 105dd1f2260b..8a3213a6be75 100644 --- a/src/ServiceManagement/StorSimple/Commands.StorSimple.Test/packages.config +++ b/src/ServiceManagement/StorSimple/Commands.StorSimple.Test/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ServiceManagement/StorSimple/Commands.StorSimple/Commands.StorSimple.csproj b/src/ServiceManagement/StorSimple/Commands.StorSimple/Commands.StorSimple.csproj index c9c0615e4fa4..8ec1fcda3909 100644 --- a/src/ServiceManagement/StorSimple/Commands.StorSimple/Commands.StorSimple.csproj +++ b/src/ServiceManagement/StorSimple/Commands.StorSimple/Commands.StorSimple.csproj @@ -58,7 +58,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll diff --git a/src/ServiceManagement/StorSimple/Commands.StorSimple/packages.config b/src/ServiceManagement/StorSimple/Commands.StorSimple/packages.config index f40fb34c0283..c2cb70862b69 100644 --- a/src/ServiceManagement/StorSimple/Commands.StorSimple/packages.config +++ b/src/ServiceManagement/StorSimple/Commands.StorSimple/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ServiceManagement/Storage/Commands.Storage.Test/Commands.Storage.Test.csproj b/src/ServiceManagement/Storage/Commands.Storage.Test/Commands.Storage.Test.csproj index 70a0f8c4847f..07028ab67926 100644 --- a/src/ServiceManagement/Storage/Commands.Storage.Test/Commands.Storage.Test.csproj +++ b/src/ServiceManagement/Storage/Commands.Storage.Test/Commands.Storage.Test.csproj @@ -65,7 +65,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.HttpRecorder.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.HttpRecorder.dll diff --git a/src/ServiceManagement/Storage/Commands.Storage.Test/packages.config b/src/ServiceManagement/Storage/Commands.Storage.Test/packages.config index 5f4744d232be..48e9c16b7eca 100644 --- a/src/ServiceManagement/Storage/Commands.Storage.Test/packages.config +++ b/src/ServiceManagement/Storage/Commands.Storage.Test/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ServiceManagement/Storage/Commands.Storage/Commands.Storage.csproj b/src/ServiceManagement/Storage/Commands.Storage/Commands.Storage.csproj index 145d6c01d035..4bbc3e7ced10 100644 --- a/src/ServiceManagement/Storage/Commands.Storage/Commands.Storage.csproj +++ b/src/ServiceManagement/Storage/Commands.Storage/Commands.Storage.csproj @@ -59,7 +59,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ServiceManagement/Storage/Commands.Storage/packages.config b/src/ServiceManagement/Storage/Commands.Storage/packages.config index b30c9f0f6585..956c684e4b6b 100644 --- a/src/ServiceManagement/Storage/Commands.Storage/packages.config +++ b/src/ServiceManagement/Storage/Commands.Storage/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ServiceManagement/TrafficManager/Commands.TrafficManager.Test/Commands.TrafficManager.Test.csproj b/src/ServiceManagement/TrafficManager/Commands.TrafficManager.Test/Commands.TrafficManager.Test.csproj index 753d31c3e4e9..f5d429c7d309 100644 --- a/src/ServiceManagement/TrafficManager/Commands.TrafficManager.Test/Commands.TrafficManager.Test.csproj +++ b/src/ServiceManagement/TrafficManager/Commands.TrafficManager.Test/Commands.TrafficManager.Test.csproj @@ -52,7 +52,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.HttpRecorder.1.0.5687.28567-prerelease\lib\net45\Microsoft.Azure.Test.HttpRecorder.dll diff --git a/src/ServiceManagement/TrafficManager/Commands.TrafficManager.Test/packages.config b/src/ServiceManagement/TrafficManager/Commands.TrafficManager.Test/packages.config index 125401ab98e5..195dc70c73f3 100644 --- a/src/ServiceManagement/TrafficManager/Commands.TrafficManager.Test/packages.config +++ b/src/ServiceManagement/TrafficManager/Commands.TrafficManager.Test/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ServiceManagement/TrafficManager/Commands.TrafficManager/Commands.TrafficManager.csproj b/src/ServiceManagement/TrafficManager/Commands.TrafficManager/Commands.TrafficManager.csproj index 95e773db4d45..53b069c17e56 100644 --- a/src/ServiceManagement/TrafficManager/Commands.TrafficManager/Commands.TrafficManager.csproj +++ b/src/ServiceManagement/TrafficManager/Commands.TrafficManager/Commands.TrafficManager.csproj @@ -60,7 +60,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.6-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.7-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Data.Edm.5.6.0\lib\net40\Microsoft.Data.Edm.dll diff --git a/src/ServiceManagement/TrafficManager/Commands.TrafficManager/packages.config b/src/ServiceManagement/TrafficManager/Commands.TrafficManager/packages.config index dffdf7a15eab..fba73c027a3b 100644 --- a/src/ServiceManagement/TrafficManager/Commands.TrafficManager/packages.config +++ b/src/ServiceManagement/TrafficManager/Commands.TrafficManager/packages.config @@ -4,7 +4,7 @@ - + diff --git a/tools/Docs/Get-AllCommands/.gitignore b/tools/Docs/Get-AllCommands/.gitignore new file mode 100644 index 000000000000..9c9b9c274789 --- /dev/null +++ b/tools/Docs/Get-AllCommands/.gitignore @@ -0,0 +1,2 @@ +Output/ +Null/ diff --git a/tools/Docs/Get-AllCommands/Get-AllCommands.ps1 b/tools/Docs/Get-AllCommands/Get-AllCommands.ps1 new file mode 100644 index 000000000000..d5ad51294858 --- /dev/null +++ b/tools/Docs/Get-AllCommands/Get-AllCommands.ps1 @@ -0,0 +1,523 @@ +function Test-BuildMamlFolder { + + Param + ( + [CmdletBinding()] + [parameter(Mandatory=$true)] + [String] + $MamlFolderPath, + [parameter(Mandatory=$true)] + [String] + $ModuleName + ) + + #$MamlFolderPath = "\\srvua\PSPush2x\Main\DXPowerShellBlue\AGPM_Cmdlets\PSMAML\" + $MamlFileNames = (Get-ChildItem -Path $MamlFolderPath | WHERE { $_.Name -like "*.xml"}).Name + $CmdletCount = 0 + $ParmCount = 0 + $ShortDescCount = 0 + $LongDescCount = 0 + $HelpExCount = 0 + $InputObjectDesccount = 0 + $OutputObjectDesccount = 0 + $MissingContent = 0 + $OutArray = @() + + foreach ($MamlFile in $MamlFileNames) + { + $FullName = $MamlFolderPath + $MamlFile + [xml]$MamlXml = Get-Content $FullName + $CmdletCount += 1 + $WarnCount = 0 + $CmdletName = $MamlXml.command.details.name + $CmdletName = $CmdletName.Trim() + $ShortDescription = $MamlXml.command.details.description.para + + if ($ShortDescription.Length -gt 10 -and $ShortDescription) + { + $ShortDescCount += 1 + } + else + { + if (!$NoWarnings) + { + $OutArray += "No short description for $CmdletName." + $WarnCount += 1 + } + } + + # Long Description + # Updated for PS MAML Files + + $LongDescription = $MamlXml.command.description.para + + if ($LongDescription.Length -gt 10 -and $LongDescription) + { + $LongDescCount += 1 + } + else + { + if (!$NoWarnings) + { + $OutArray += "No long description for $CmdletName." + $WarnCount += 1 + } + + } + + # PS MAML Examples Count Check + #Updated for PS MAML Files + + $MamlExamples = $MamlXml.command.examples.example + + if($MamlExamples) + { + ForEach($Example in $MamlExamples) + { + $ExCount += 1 + if(!$Example.title) + { + $OutArray += "No example title found for an example in $CmdletName." + } + if(!$Example.introduction.para) + { + $OutArray += "No example introduction found for an example in $CmdletName." + } + if(!$Example.code) + { + $OutArray += "No example code found for an example in $CmdletName." + } + + } + } + else + { + $OutArray += "No examples found for $CmdletName." + } + + + #Cmdlet Input Object Description + #Updated for PS MAML Files + + $InputObjects = $MamlXml.command.inputTypes.inputType + if($InputObjects) + { + foreach($InputObj in $InputObjects) + { + $inputObjName = $InputObj.type.name + if ($inputObj.description.para.innertext) + { + $InputObjectDesccount += 1 + } + else + { + if (!$NoWarnings) + { + $OutArray += "No input object description for $inputObjName in $CmdletName" + $WarnCount += 1 + } + } + } + } + + #PS MAML Output Object Description + #Updated for PS MAML Files + $OutPutObjects = $MamlXml.command.returnValues.returnValue + if($OutPutObjects) + { + foreach($outputObj in $OutPutObjects) + { + $outputObjName = $outputObj.type.name + if ($outputObj.description.para.innertext) + { + $OutputObjectDesccount += 1 + } + else + { + if (!$NoWarnings) + { + $OutArray += "No output object description for $outputObjName in $CmdletName" + $WarnCount += 1 + } + } + } + } + # Parameter Descriptions + #Updated for PS MAML Files + $Parameters = $MamlXml.command.parameters.parameter + + foreach ($parm in $Parameters) + { + $ParmCount += 1 + $ParmName = $parm.Name + if ($parm.Description) + { + $ParmDescCount += 1 + } + else + { + if (!$NoWarnings) + { + $OutArray += "No parameter description for $CmdletName -$ParmName." + $WarnCount += 1 + } + } + } + #Evaluates Missing Elements + if ($WarnCount -ne 0) + { + $MissingContent +=1 + } + } + + if($MissingContent -gt 0) + { + $OutFileName = ($MamlFolderPath + " \..\..\..\" + $ModuleName + "_Report_MISSING_CONTENT.txt") + } + else + { + $OutFileName = ($MamlFolderPath + " \..\..\..\" + $ModuleName + "_Report.txt") + } + + + #Computation of Percentage Complete + $fShortDescPercent = "{0:P1}" -f ($ShortDescCount/$CmdletCount) + $fLongDescPercent = "{0:P1}" -f ($LongDescCount/$CmdletCount) + $fExPercent = "{0:P1}" -f ($ExCount/$CmdletCount) + $fParmDescPercent = "{0:P1}" -f ($ParmDescCount/$ParmCount) + $fMissingContentPercent = "{0:P1}" -f ($MissingContent/$CmdletCount) + $fInputObject = "{0:P1}" -f ($InputObjectDesccount/$CmdletCount) + $fOutputObjectDesc = "{0:P1}" -f ($OutputObjectDesccount/$CmdletCount) + + ###Report Output into PowerShell Host + #Header Message + $OutArray += "`nReport Summary" + $OutArray += "--------------" + $OutArray += "Folder Path: $MamlFolderPath" + $OutArray += "Commands: $CmdletCount" + $OutArray += "Parameters: $ParmCount" + + #Short Desc Message + $ShortDescMessage = "Short Descriptions: $ShortDescCount ( $fShortDescPercent )" + if($fShortDescPercent -eq '100.0 %'){ $OutArray += $ShortDescMessage } + else + { $OutArray += $ShortDescMessage } + + #Long Desc Message + $LongDescMessage = "Long Descriptions: $LongDescCount ( $fLongDescPercent )" + if($fLongDescPercent -eq '100.0 %'){$OutArray += "Long Descriptions: $LongDescCount ( $fLongDescPercent )" } + else + { $OutArray += $LongDescMessage } + + #Example Message + $ExamplesMessage = "Examples: $ExCount ( $fExPercent )" + if($fExPercent -eq '100.0 %'){$OutArray += $ExamplesMessage } + else + { $OutArray += $ExamplesMessage } + $OutArray += " Minimum Required: $CmdletCount" + + #Input Object Message + $InputObjectMessage = "Input Objects: $InputObjectDesccount ( $fInputObject )" + if($fInputObject -eq '100.0 %'){ $OutArray += $InputObjectMessage } + else + { $OutArray += $InputObjectMessage } + + #Output Object Message + $OutputObjectMessage = "Output Object: $OutputObjectDesccount ( $fOutputObjectDesc )" + if($fOutputObjectDesc -eq '100.0 %'){ $OutArray += $OutputObjectMessage } + else + { $OutArray += $OutputObjectMessage } + + #Parameter Messaage + $ParameterMessage = "Parameter Descriptions: $ParmDescCount ( $fParmDescPercent )" + if($fParmDescPercent -eq '100.0 %'){ $OutArray += $ParameterMessage } + else + { $OutArray += $ParameterMessage } + + #Error & Closing Message + $OutArray += "Number of cmdlets missing content: $MissingContent ( $fMissingContentPercent )" + $OutArray += "--------------" + $OutArray | Out-File -FilePath $OutFileName +} + +function Split-HelpFiles { + [Cmdletbinding()] + Param + ( + [parameter(Mandatory=$true)] + [String] + $InputXML, + + [parameter(Mandatory=$true)] + [String] + $OutputPath + ) + + $namespace = @{command="http://schemas.microsoft.com/maml/dev/command/2004/10"; maml="http://schemas.microsoft.com/maml/2004/10"; dev="http://schemas.microsoft.com/maml/dev/2004/10"} + + if (!(test-path $OutputPath)) { mkdir $OutputPath } + if (dir $InputXML | select-string " + + + + + + + + + + + + + + + + + + + + + diff --git a/tools/Docs/Get-AllCommands/Templates/ProjectList.xml b/tools/Docs/Get-AllCommands/Templates/ProjectList.xml new file mode 100644 index 000000000000..9954fa5f14f1 --- /dev/null +++ b/tools/Docs/Get-AllCommands/Templates/ProjectList.xml @@ -0,0 +1,4 @@ + + + +