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 9424c5a62e50..46099a6a1074 100644 --- a/src/ResourceManager/AzureBatch/Commands.Batch.Test/Commands.Batch.Test.csproj +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Commands.Batch.Test.csproj @@ -116,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 @@ -171,6 +167,10 @@ + + + + @@ -354,6 +354,9 @@ Always + + Always + Always @@ -375,6 +378,9 @@ Always + + Always + Always 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/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/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/Commands.Batch.csproj b/src/ResourceManager/AzureBatch/Commands.Batch/Commands.Batch.csproj index 516cb4f7bfd4..85a73eef86da 100644 --- a/src/ResourceManager/AzureBatch/Commands.Batch/Commands.Batch.csproj +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Commands.Batch.csproj @@ -159,6 +159,10 @@ + + + + @@ -193,6 +197,7 @@ + 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 93fc42e2dce9..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,113 +6536,112 @@ - Get-AzureBatchJobSchedule + Get-AzureBatchAccountKeys - New-AzureBatchJobSchedule + Get-AzureBatchJob - Get-AzureBatchAccountKeys + RMAzure_Batch_Cmdlets - Set-AzureBatchAccount + Remove-AzureBatchPool - Updates the specified Azure Batch account. + Deletes the specified Batch pool. - Set - AzureBatchAccount + Remove + AzureBatchPool - The Set-AzureBatchAccount cmdlet updates the specified Batch account. Currently, only tags can be updated. + The Remove-AzureBatchPool cmdlet deletes the specified Azure Batch pool. You will be prompted for confirmation unless you use the Force parameter. - Set-AzureBatchAccount - - AccountName + Remove-AzureBatchPool + + Id - Specifies the name of the existing Batch account to update. + Specifies the ID of the pool to delete. You cannot specify wildcard characters. String - - Tag + + Force - Specifies tags in an array of hash tables to set on the account. + Forces the command to run without asking for user confirmation. - Hashtable[] 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 - - ResourceGroupName + + BatchContext - Specifies the resource group of the account being updated. + 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 - - AccountName + + BatchContext - Specifies the name of the existing Batch account to update. + 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 - Profile + Force - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Forces the command to run without asking for user confirmation. - AzureProfile + SwitchParameter - AzureProfile + SwitchParameter none - - ResourceGroupName + + Id - Specifies the resource group of the account being updated. + Specifies the ID of the pool to delete. You cannot specify wildcard characters. - String + String String none - - Tag + + Profile - Specifies tags in an array of hash tables to set on the account. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - Hashtable[] + AzureProfile - Hashtable[] + AzureProfile none @@ -7172,8 +6666,263 @@ + + + + + + + + + + + + + + + + + + + + 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 + + + + + + + + + + + + + + + + + + + + + + + + @@ -7190,490 +6939,926 @@ - Example 1: Update the tags on an existing Batch account + Example 1: Delete a Batch task by id with user confirmation - - 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} + 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 - This command updates the tags on the cmdletexample account. - - + Description + ----------- + Reboots every compute node in pool "myPool". + + + + - + + - 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 + Reset-AzureBatchComputeNode - Enables automatic scaling on the specified pool. + Reinstalls the operating system on the specified compute node. - Enable - AzureBatchAutoScale + Reset + AzureBatchComputeNode - Enables automatic scaling on the specified pool. + Reinstalls the operating system on the specified compute node. - Enable-AzureBatchAutoScale - - Id + Reset-AzureBatchComputeNode + + PoolId - The id of the pool to enable automatic scaling on. + The id of the pool that contains the compute node. string - AutoScaleFormula + Id - 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 compute node to reimage. string @@ -7684,40 +7869,84 @@ 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 + - - AutoScaleFormula + + BatchContext - 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 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 - - BatchContext + + ComputeNode - 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. + The PSComputeNode object representing the compute node to reimage. - BatchAccountContext + PSComputeNode - BatchAccountContext + PSComputeNode - + Id - The id of the pool to enable automatic scaling on. + The id of the compute node to reimage. + + + string + + string + + + + + + PoolId + + The id of the pool that contains the compute node. string @@ -7727,6 +7956,19 @@ + + ReimageOption + + Specifies when to reimage the node and what to do with currently running tasks. The default is Requeue. + + + ComputeNodeReimageOption + + ComputeNodeReimageOption + + + + @@ -7785,13 +8027,38 @@ 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 + Reset-AzureBatchComputeNode -PoolId "myPool" -Id "tvm-3257026573_2-20150813t200938z" -BatchContext $context Description ----------- - Enables automatic scaling on pool "myPool" using the specified formula. + 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". @@ -7815,36 +8082,36 @@ - Test-AzureBatchAutoScale + Set-AzureBatchPoolOSVersion - Gets the result of evaluation an automatic scaling formula on the specified pool. + Changes the operating system version of the specified pool. - Test - AzureBatchAutoScale + Set + AzureBatchPoolOSVersion - 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. + Changes the operating system version of the specified pool. - Test-AzureBatchAutoScale + Set-AzureBatchPoolOSVersion Id - The id of the pool to evaluate the automatic scaling formula on. + The id of the pool. string - AutoScaleFormula + TargetOSVersion - 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 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 @@ -7859,36 +8126,36 @@ - - AutoScaleFormula + + BatchContext - 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 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 - - BatchContext + + Id - 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. + The id of the pool. - BatchAccountContext + string - BatchAccountContext + string - - Id + + TargetOSVersion - The id of the pool to evaluate the automatic scaling formula on. + 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 @@ -7918,7 +8185,7 @@ - PSAutoScaleEvaluation + @@ -7956,16 +8223,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 + Set-AzureBatchPoolOSVersion -Id "myPool" -TargetOSVersion "WA-GUEST-OS-4.20_201505-01" -BatchContext $context Description ----------- - Evaluates the specified autoscale formula on pool "myPool" and displays the results. + Sets the target OS version of pool "myPool" to "WA-GUEST-OS-4.20_201505-01" @@ -7989,29 +8252,29 @@ - Disable-AzureBatchAutoScale + Enable-AzureBatchJobSchedule - Disables automatic scaling on the specified pool. + Enables the specified job schedule. - Disable - AzureBatchAutoScale + Enable + AzureBatchJobSchedule - Disables automatic scaling on the specified pool. + Enables the specified job schedule, allowing jobs to be created according to its Schedule. - Disable-AzureBatchAutoScale + Enable-AzureBatchJobSchedule Id - The id of the pool to disable automatic scaling on. + The id of the job schedule to enable. string @@ -8042,7 +8305,7 @@ Id - The id of the pool to disable automatic scaling on. + The id of the job schedule to enable. string @@ -8110,12 +8373,12 @@ C:\PS> - Disable-AzureBatchAutoScale "myPool" -BatchContext $context + Enable-AzureBatchJobSchedule "myJobSchedule" -BatchContext $context Description ----------- - Disables automatic scaling on pool "myPool". + Enables the job schedule with id "myJobSchedule". @@ -8139,36 +8402,29 @@ - Restart-AzureBatchComputeNode + Disable-AzureBatchJobSchedule - Reboots the specified compute node. + Disables the specified job schedule - Restart - AzureBatchComputeNode - - - - Reboots the specified compute node. - - - - - Restart-AzureBatchComputeNode - - PoolId - - The id of the pool that contains the compute node. - - string - - + Disable + AzureBatchJobSchedule + + + + Disables the specified job schedule. Disabled schedules do not create new jobs, but may be re-enabled later. + + + + + Disable-AzureBatchJobSchedule + Id - The id of the compute node to reboot. + The id of the job schedule to disable. string @@ -8179,37 +8435,6 @@ 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 - @@ -8227,36 +8452,10 @@ - - 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. + The id of the job schedule to disable. string @@ -8266,19 +8465,6 @@ - - RebootOption - - Specifies when to reboot the node and what to do with currently running tasks. The default is Requeue. - - - ComputeNodeRebootOption - - ComputeNodeRebootOption - - - - @@ -8337,38 +8523,12 @@ 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 + Disable-AzureBatchJobSchedule "myJobSchedule" -BatchContext $context Description ----------- - Reboots every compute node in pool "myPool". + Disables the job schedule with id "myJobSchedule". @@ -8392,36 +8552,29 @@ - Reset-AzureBatchComputeNode + Enable-AzureBatchJob - Reinstalls the operating system on the specified compute node. + Enables the specified job. - Reset - AzureBatchComputeNode + Enable + AzureBatchJob - Reinstalls the operating system on the specified compute node. + Enables the specified job, allowing new tasks to run. - Reset-AzureBatchComputeNode - - PoolId - - The id of the pool that contains the compute node. - - string - - + Enable-AzureBatchJob + Id - The id of the compute node to reimage. + The id of the job to enable. string @@ -8432,37 +8585,6 @@ 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 - @@ -8480,36 +8602,10 @@ - - 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. + The id of the job to enable. string @@ -8519,19 +8615,6 @@ - - ReimageOption - - Specifies when to reimage the node and what to do with currently running tasks. The default is Requeue. - - - ComputeNodeReimageOption - - ComputeNodeReimageOption - - - - @@ -8590,38 +8673,12 @@ 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 + Enable-AzureBatchJob "myJob" -BatchContext $context Description ----------- - Reimages every compute node in pool "myPool". + Enables the job with id "myJob". @@ -8645,38 +8702,38 @@ - Set-AzureBatchPoolOSVersion + Disable-AzureBatchJob - Changes the operating system version of the specified pool. + Disables the specified job. - Set - AzureBatchPoolOSVersion + Disable + AzureBatchJob - Changes the operating system version of the specified pool. + Disables the specified job. Disabled jobs do not run new tasks, but may be re-enabled later. - Set-AzureBatchPoolOSVersion + Disable-AzureBatchJob Id - The id of the pool. + The id of the job to disable. string - TargetOSVersion + DisableJobOption - 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/ + Specifies what to do with active tasks associated with the job. - string + DisableJobOption BatchContext @@ -8702,23 +8759,23 @@ - - Id + + DisableJobOption - The id of the pool. + Specifies what to do with active tasks associated with the job. - string + DisableJobOption - string + DisableJobOption - - TargetOSVersion + + Id - 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/ + The id of the job to disable. string @@ -8786,12 +8843,12 @@ C:\PS> - Set-AzureBatchPoolOSVersion -Id "myPool" -TargetOSVersion "WA-GUEST-OS-4.20_201505-01" -BatchContext $context + Disable-AzureBatchJob "myJob" Terminate -BatchContext $context Description ----------- - Sets the target OS version of pool "myPool" to "WA-GUEST-OS-4.20_201505-01" + Disables the job with id "myJob". Running tasks associated with the job will be terminated and will not run again. @@ -8812,5 +8869,5 @@ - + 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/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/Properties/Resources.Designer.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.Designer.cs index 816ba78f7b7e..ebf520d63f09 100644 --- a/src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.Designer.cs +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.Designer.cs @@ -96,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}. /// @@ -105,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. /// diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.resx b/src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.resx index ce140ecca5e9..b92e2ee2a8ca 100644 --- a/src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.resx +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.resx @@ -129,9 +129,21 @@ 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