diff --git a/ChangeLog.txt b/ChangeLog.txt index 26909e9e6e9b..4a1635684bc6 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,14 @@ +2015.08.07 version 0.9.6 +* Azure Batch cmdlets + * Cmdlets updated to use the general availability API. See http://blogs.technet.com/b/windowshpc/archive/2015/07/10/what-39-s-new-in-azure-batch-july-release-general-availability.aspx + * Breaking changes to cmdlets resulting from API update: + * Workitems have been removed. + * If you were adding all tasks to a single job, use the New-AzureBatchJob cmdlet to directly create your job. + * If you were managing workitems with a recurring schedule defined, use the AzureBatchJobSchedule cmdlets instead. + * If you were using the AzureBatchVM cmdlets, use the AzureBatchComputeNode cmdlets instead. + * The AzureBatchTaskFile and AzureBatchVMFile cmdlets have been consolidated into the AzureBatchNodeFile cmdlets. + * The Name property on most entities has been replaced by an Id property. + 2015.07.17 version 0.9.5 * Azure SQL cmdlets * Allowing to use of Storage V2 accounts in Auditing policies diff --git a/setup/azurecmdfiles.wxi b/setup/azurecmdfiles.wxi index 52ed86acd314..a8a2cfbf001c 100644 --- a/setup/azurecmdfiles.wxi +++ b/setup/azurecmdfiles.wxi @@ -733,6 +733,15 @@ + + + + + + + + + @@ -820,6 +829,9 @@ + + + @@ -1062,6 +1074,15 @@ + + + + + + + + + @@ -1219,6 +1240,15 @@ + + + + + + + + + @@ -1240,6 +1270,9 @@ + + + @@ -1362,6 +1395,9 @@ + + + @@ -1860,6 +1896,15 @@ + + + + + + + + + @@ -1875,6 +1920,9 @@ + + + @@ -1890,6 +1938,9 @@ + + + @@ -2210,6 +2261,15 @@ + + + + + + + + + @@ -2255,6 +2315,9 @@ + + + @@ -4824,6 +4887,9 @@ + + + @@ -4853,6 +4919,7 @@ + @@ -4923,6 +4990,9 @@ + + + @@ -4974,6 +5044,9 @@ + + + @@ -4981,6 +5054,7 @@ + @@ -5021,6 +5095,7 @@ + @@ -5183,16 +5258,21 @@ + + + + + @@ -5297,6 +5377,9 @@ + + + @@ -5312,6 +5395,7 @@ + diff --git a/src/Common/Commands.Common/Commands.Common.csproj b/src/Common/Commands.Common/Commands.Common.csproj index 10af73bb0fbb..3327be6458bd 100644 --- a/src/Common/Commands.Common/Commands.Common.csproj +++ b/src/Common/Commands.Common/Commands.Common.csproj @@ -171,6 +171,7 @@ + diff --git a/src/Common/Commands.Common/DiagnosticsHelper.cs b/src/Common/Commands.Common/DiagnosticsHelper.cs new file mode 100644 index 000000000000..3b5a5007969c --- /dev/null +++ b/src/Common/Commands.Common/DiagnosticsHelper.cs @@ -0,0 +1,127 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using Microsoft.WindowsAzure.Commands.Common.Properties; +using System; +using System.Collections; +using System.IO; +using System.Linq; +using System.Text; +using System.Xml; +using Newtonsoft.Json; + +namespace Microsoft.WindowsAzure.Commands.Utilities.Common +{ + public static class DiagnosticsHelper + { + private static string XmlNamespace = "http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration"; + private static string EncodedXmlCfg = "xmlCfg"; + private static string StorageAccount = "storageAccount"; + private static string Path = "path"; + private static string ExpandResourceDirectory = "expandResourceDirectory"; + private static string LocalResourceDirectory = "localResourceDirectory"; + private static string StorageAccountNameTag = "storageAccountName"; + private static string StorageAccountKeyTag = "storageAccountKey"; + private static string StorageAccountEndPointTag = "storageAccountEndPoint"; + + public static string GetJsonSerializedPublicDiagnosticsConfigurationFromFile(string configurationPath, + string storageAccountName) + { + return + JsonConvert.SerializeObject( + DiagnosticsHelper.GetPublicDiagnosticsConfigurationFromFile(configurationPath, storageAccountName)); + } + + public static Hashtable GetPublicDiagnosticsConfigurationFromFile(string configurationPath, string storageAccountName) + { + using (StreamReader reader = new StreamReader(configurationPath)) + { + return GetPublicDiagnosticsConfiguration(reader.ReadToEnd(), storageAccountName); + } + } + + public static Hashtable GetPublicDiagnosticsConfiguration(string config, string storageAccountName) + { + // find the element and extract it + int wadCfgBeginIndex = config.IndexOf(""); + if (wadCfgBeginIndex == -1) + { + throw new ArgumentException(Resources.IaasDiagnosticsBadConfigNoWadCfg); + } + + int wadCfgEndIndex = config.IndexOf(""); + if (wadCfgEndIndex == -1) + { + throw new ArgumentException(Resources.IaasDiagnosticsBadConfigNoEndWadCfg); + } + + if (wadCfgEndIndex <= wadCfgBeginIndex) + { + throw new ArgumentException(Resources.IaasDiagnosticsBadConfigNoMatchingWadCfg); + } + + string encodedConfiguration = Convert.ToBase64String( + Encoding.UTF8.GetBytes( + config.Substring( + wadCfgBeginIndex, wadCfgEndIndex + "".Length - wadCfgBeginIndex).ToCharArray())); + + // Now extract the local resource directory element + XmlDocument doc = new XmlDocument(); + XmlNamespaceManager ns = new XmlNamespaceManager(doc.NameTable); + ns.AddNamespace("ns", XmlNamespace); + doc.LoadXml(config); + var node = doc.SelectSingleNode("//ns:LocalResourceDirectory", ns); + string localDirectory = (node != null && node.Attributes != null) ? node.Attributes[Path].Value : null; + string localDirectoryExpand = (node != null && node.Attributes != null) + ? node.Attributes["expandEnvironment"].Value + : null; + if (localDirectoryExpand == "0") + { + localDirectoryExpand = "false"; + } + if (localDirectoryExpand == "1") + { + localDirectoryExpand = "true"; + } + + var hashTable = new Hashtable(); + hashTable.Add(EncodedXmlCfg, encodedConfiguration); + hashTable.Add(StorageAccount, storageAccountName); + if (!string.IsNullOrEmpty(localDirectory)) + { + var localDirectoryHashTable = new Hashtable(); + localDirectoryHashTable.Add(Path, localDirectory); + localDirectoryHashTable.Add(ExpandResourceDirectory, localDirectoryExpand); + hashTable.Add(LocalResourceDirectory, localDirectoryHashTable); + } + + return hashTable; + } + + public static string GetJsonSerializedPrivateDiagnosticsConfiguration(string storageAccountName, + string storageKey, string endpoint) + { + return JsonConvert.SerializeObject(GetPrivateDiagnosticsConfiguration( storageAccountName, storageKey, endpoint)); + } + + public static Hashtable GetPrivateDiagnosticsConfiguration(string storageAccountName, string storageKey, string endpoint) + { + var hashTable = new Hashtable(); + hashTable.Add(StorageAccountNameTag, storageAccountName); + hashTable.Add(StorageAccountKeyTag, storageKey); + hashTable.Add(StorageAccountEndPointTag, endpoint); + return hashTable; + } + } +} diff --git a/src/Common/Commands.Common/Properties/Resources.Designer.cs b/src/Common/Commands.Common/Properties/Resources.Designer.cs index 1b2caf4f5f8e..a10815c4434d 100644 --- a/src/Common/Commands.Common/Properties/Resources.Designer.cs +++ b/src/Common/Commands.Common/Properties/Resources.Designer.cs @@ -978,6 +978,33 @@ public static string GlobalSettingsManager_Load_PublishSettingsNotFound { } } + /// + /// Looks up a localized string similar to Cannot find the WadCfg end element in the config.. + /// + public static string IaasDiagnosticsBadConfigNoEndWadCfg { + get { + return ResourceManager.GetString("IaasDiagnosticsBadConfigNoEndWadCfg", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to WadCfg start element in the config is not matching the end element.. + /// + public static string IaasDiagnosticsBadConfigNoMatchingWadCfg { + get { + return ResourceManager.GetString("IaasDiagnosticsBadConfigNoMatchingWadCfg", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot find the WadCfg element in the config.. + /// + public static string IaasDiagnosticsBadConfigNoWadCfg { + get { + return ResourceManager.GetString("IaasDiagnosticsBadConfigNoWadCfg", resourceCulture); + } + } + /// /// Looks up a localized string similar to iisnode.dll. /// diff --git a/src/Common/Commands.Common/Properties/Resources.resx b/src/Common/Commands.Common/Properties/Resources.resx index 7616e8b49007..c3e3784a3713 100644 --- a/src/Common/Commands.Common/Properties/Resources.resx +++ b/src/Common/Commands.Common/Properties/Resources.resx @@ -1443,4 +1443,13 @@ The file needs to be a PowerShell script (.ps1 or .psm1). Cannot delete '{0}': {1} {0} is the path of a file, {1} is an error message + + Cannot find the WadCfg end element in the config. + + + WadCfg start element in the config is not matching the end element. + + + Cannot find the WadCfg element in the config. + \ No newline at end of file diff --git a/src/ResourceManager.sln b/src/ResourceManager.sln index 64379a37db40..53241051824d 100644 --- a/src/ResourceManager.sln +++ b/src/ResourceManager.sln @@ -149,10 +149,10 @@ Global {DEA446A1-84E2-46CC-B780-EB4AFDE2460E}.Debug|Any CPU.Build.0 = Debug|Any CPU {DEA446A1-84E2-46CC-B780-EB4AFDE2460E}.Release|Any CPU.ActiveCfg = Release|Any CPU {DEA446A1-84E2-46CC-B780-EB4AFDE2460E}.Release|Any CPU.Build.0 = Release|Any CPU - {127D0D51-FDEA-4E1A-8CD8-34DEB5C2F7F6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {127D0D51-FDEA-4E1A-8CD8-34DEB5C2F7F6}.Debug|Any CPU.Build.0 = Debug|Any CPU - {127D0D51-FDEA-4E1A-8CD8-34DEB5C2F7F6}.Release|Any CPU.ActiveCfg = Release|Any CPU - {127D0D51-FDEA-4E1A-8CD8-34DEB5C2F7F6}.Release|Any CPU.Build.0 = Release|Any CPU + {59D1B5DC-9175-43EC-90C6-CBA601B3565F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {59D1B5DC-9175-43EC-90C6-CBA601B3565F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {59D1B5DC-9175-43EC-90C6-CBA601B3565F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {59D1B5DC-9175-43EC-90C6-CBA601B3565F}.Release|Any CPU.Build.0 = Release|Any CPU {80A92297-7C92-456B-8EE7-9FB6CE30149D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {80A92297-7C92-456B-8EE7-9FB6CE30149D}.Debug|Any CPU.Build.0 = Debug|Any CPU {80A92297-7C92-456B-8EE7-9FB6CE30149D}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -198,7 +198,6 @@ Global {080B0477-7E52-4455-90AB-23BD13D1B1CE} = {95C16AED-FD57-42A0-86C3-2CF4300A4817} {56ED8C97-53B9-4DF6-ACB5-7E6800105BF8} = {95C16AED-FD57-42A0-86C3-2CF4300A4817} {7E6683BE-ECFF-4709-89EB-1325E9E70512} = {95C16AED-FD57-42A0-86C3-2CF4300A4817} - {127D0D51-FDEA-4E1A-8CD8-34DEB5C2F7F6} = {95C16AED-FD57-42A0-86C3-2CF4300A4817} {13E031E4-8A43-4B87-9D72-D70180C31C11} = {95C16AED-FD57-42A0-86C3-2CF4300A4817} {469F20E0-9D40-41AD-94C3-B47AD15A4C00} = {95C16AED-FD57-42A0-86C3-2CF4300A4817} {133561EC-99AF-4ADC-AF41-39C4D3AD323B} = {95C16AED-FD57-42A0-86C3-2CF4300A4817} diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/BatchTestHelpers.cs b/src/ResourceManager/Batch/Commands.Batch.Test/BatchTestHelpers.cs index 6e84172febed..6a6eb70b1b9d 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/BatchTestHelpers.cs +++ b/src/ResourceManager/Batch/Commands.Batch.Test/BatchTestHelpers.cs @@ -20,7 +20,6 @@ using Microsoft.Azure.Batch; using Microsoft.Azure.Batch.Common; using Microsoft.Azure.Batch.Protocol; -using Microsoft.Azure.Batch.Protocol.Entities; using Microsoft.Azure.Commands.Batch.Models; using Microsoft.Azure.Commands.Batch.Test.ScenarioTests; using Microsoft.Azure.Management.Batch; @@ -35,7 +34,7 @@ using Microsoft.WindowsAzure.Commands.ServiceManagement.Model; using Microsoft.WindowsAzure.Storage.Shared.Protocol; using Xunit; -using JobExecutionEnvironment = Microsoft.Azure.Batch.Protocol.Entities.JobExecutionEnvironment; +using ProxyModels = Microsoft.Azure.Batch.Protocol.Models; namespace Microsoft.Azure.Commands.Batch.Test { @@ -113,291 +112,229 @@ public static void AssertBatchAccountContextsAreEqual(BatchAccountContext contex } /// - /// Builds a PSCloudWorkItem for testing + /// Builds a CloudPoolGetResponse object /// - public static PSCloudWorkItem CreatePSCloudWorkItem() + public static ProxyModels.CloudPoolGetResponse CreateCloudPoolGetResponse(string poolId) { - BatchAccountContext context = CreateBatchContextWithKeys(); - using (IWorkItemManager wiManager = context.BatchOMClient.OpenWorkItemManager()) - { - ICloudWorkItem workItem = wiManager.CreateWorkItem("testWorkItem"); - return new PSCloudWorkItem(workItem); - } - } + ProxyModels.CloudPoolGetResponse response = new ProxyModels.CloudPoolGetResponse(); + response.StatusCode = HttpStatusCode.OK; - /// - /// Builds a PSCloudPool for testing - /// - public static PSCloudPool CreatePSCloudPool() - { - BatchAccountContext context = CreateBatchContextWithKeys(); - using (IPoolManager poolManager = context.BatchOMClient.OpenPoolManager()) - { - ICloudPool pool = poolManager.CreatePool("testPool"); - return new PSCloudPool(pool); - } - } + ProxyModels.CloudPool pool = new ProxyModels.CloudPool(); + pool.Id = poolId; - /// - /// Builds a GetPoolResponse object - /// - public static GetPoolResponse CreateGetPoolResponse(string poolName) - { - GetPoolResponse response = new GetPoolResponse(); - SetProperty(response, "StatusCode", HttpStatusCode.OK); - - Pool pool = new Pool(); - SetProperty(pool, "Name", poolName); - - SetProperty(response, "Pool", pool); + response.Pool = pool; return response; } /// - /// Builds a ListPoolsResponse object + /// Builds a CloudPoolListResponse object /// - public static ListPoolsResponse CreateListPoolsResponse(IEnumerable poolNames) + public static ProxyModels.CloudPoolListResponse CreateCloudPoolListResponse(IEnumerable poolIds) { - ListPoolsResponse response = new ListPoolsResponse(); - SetProperty(response, "StatusCode", HttpStatusCode.OK); + ProxyModels.CloudPoolListResponse response = new ProxyModels.CloudPoolListResponse(); + response.StatusCode = HttpStatusCode.OK; - List pools = new List(); + List pools = new List(); - foreach (string name in poolNames) + foreach (string id in poolIds) { - Pool pool = new Pool(); - SetProperty(pool, "Name", name); + ProxyModels.CloudPool pool = new ProxyModels.CloudPool(); + pool.Id = id; pools.Add(pool); } - SetProperty(response, "Pools", pools); + response.Pools = pools; return response; } /// - /// Builds a GetTVMResponse object + /// Builds a ComputeNodeGetResponse object /// - public static GetTVMResponse CreateGetTVMResponse(string vmName) + public static ProxyModels.ComputeNodeGetResponse CreateComputeNodeGetResponse(string computeNodeId) { - GetTVMResponse response = new GetTVMResponse(); - SetProperty(response, "StatusCode", HttpStatusCode.OK); + ProxyModels.ComputeNodeGetResponse response = new ProxyModels.ComputeNodeGetResponse(); + response.StatusCode = HttpStatusCode.OK; - TVM vm = new TVM(); - SetProperty(vm, "Name", vmName); - SetProperty(response, "TVM", vm); + ProxyModels.ComputeNode computeNode = new ProxyModels.ComputeNode(); + computeNode.Id = computeNodeId; + response.ComputeNode = computeNode; return response; } /// - /// Builds a ListTVMsResponse object + /// Builds a ComputeNodeListResponse object /// - public static ListTVMsResponse CreateListTVMsResponse(IEnumerable vmNames) + public static ProxyModels.ComputeNodeListResponse CreateComputeNodeListResponse(IEnumerable computeNodeIds) { - ListTVMsResponse response = new ListTVMsResponse(); - SetProperty(response, "StatusCode", HttpStatusCode.OK); + ProxyModels.ComputeNodeListResponse response = new ProxyModels.ComputeNodeListResponse(); + response.StatusCode = HttpStatusCode.OK; - List vms = new List(); + List computeNodes = new List(); - foreach (string name in vmNames) + foreach (string id in computeNodeIds) { - TVM vm = new TVM(); - SetProperty(vm, "Name", name); - vms.Add(vm); + ProxyModels.ComputeNode computeNode = new ProxyModels.ComputeNode(); + computeNode.Id = id; + computeNodes.Add(computeNode); } - SetProperty(response, "TVMs", vms); + response.ComputeNodes = computeNodes; return response; } /// - /// Builds a GetWorkItemResponse object + /// Builds a CloudJobScheduleGetResponse object /// - public static GetWorkItemResponse CreateGetWorkItemResponse(string workItemName) + public static ProxyModels.CloudJobScheduleGetResponse CreateCloudJobScheduleGetResponse(string jobScheduleId) { - GetWorkItemResponse response = new GetWorkItemResponse(); - SetProperty(response, "StatusCode", HttpStatusCode.OK); + ProxyModels.CloudJobScheduleGetResponse response = new ProxyModels.CloudJobScheduleGetResponse(); + response.StatusCode = HttpStatusCode.OK; - JobExecutionEnvironment jee = new JobExecutionEnvironment(); + ProxyModels.JobSpecification jobSpec = new ProxyModels.JobSpecification(); + ProxyModels.Schedule schedule = new ProxyModels.Schedule(); - WorkItem workItem = new WorkItem(workItemName, jee); - SetProperty(response, "WorkItem", workItem); + ProxyModels.CloudJobSchedule jobSchedule = new ProxyModels.CloudJobSchedule(jobScheduleId, schedule, jobSpec); + response.JobSchedule = jobSchedule; return response; } /// - /// Builds a ListWorkItemsResponse object + /// Builds a CloudJobScheduleListResponse object /// - public static ListWorkItemsResponse CreateListWorkItemsResponse(IEnumerable workItemNames) + public static ProxyModels.CloudJobScheduleListResponse CreateCloudJobScheduleListResponse(IEnumerable jobScheduleIds) { - ListWorkItemsResponse response = new ListWorkItemsResponse(); - SetProperty(response, "StatusCode", HttpStatusCode.OK); + ProxyModels.CloudJobScheduleListResponse response = new ProxyModels.CloudJobScheduleListResponse(); + response.StatusCode = HttpStatusCode.OK;; - List workItems = new List(); - JobExecutionEnvironment jee = new JobExecutionEnvironment(); + List jobSchedules = new List(); + ProxyModels.JobSpecification jobSpec = new ProxyModels.JobSpecification(); + ProxyModels.Schedule schedule = new ProxyModels.Schedule(); - foreach (string name in workItemNames) + foreach (string id in jobScheduleIds) { - workItems.Add(new WorkItem(name, jee)); + jobSchedules.Add(new ProxyModels.CloudJobSchedule(id, schedule, jobSpec)); } - SetProperty(response, "WorkItems", workItems); + response.JobSchedules = jobSchedules; return response; } /// - /// Builds a GetJobResponse object + /// Builds a CloudJobGetResponse object /// - public static GetJobResponse CreateGetJobResponse(string jobName) + public static ProxyModels.CloudJobGetResponse CreateCloudJobGetResponse(string jobId) { - GetJobResponse response = new GetJobResponse(); - SetProperty(response, "StatusCode", HttpStatusCode.OK); + ProxyModels.CloudJobGetResponse response = new ProxyModels.CloudJobGetResponse(); + response.StatusCode = HttpStatusCode.OK; - Job job = new Job(); - SetProperty(job, "Name", jobName); + ProxyModels.CloudJob job = new ProxyModels.CloudJob(); + job.Id = jobId; - SetProperty(response, "Job", job); + response.Job = job; return response; } /// - /// Builds a ListJobsResponse object + /// Builds a CloudJobListResponse object /// - public static ListJobsResponse CreateListJobsResponse(IEnumerable jobNames) + public static ProxyModels.CloudJobListResponse CreateCloudJobListResponse(IEnumerable jobIds) { - ListJobsResponse response = new ListJobsResponse(); - SetProperty(response, "StatusCode", HttpStatusCode.OK); + ProxyModels.CloudJobListResponse response = new ProxyModels.CloudJobListResponse(); + response.StatusCode = HttpStatusCode.OK; - List jobs = new List(); + List jobs = new List(); - foreach (string name in jobNames) + foreach (string id in jobIds) { - Job job = new Job(); - SetProperty(job, "Name", name); + ProxyModels.CloudJob job = new ProxyModels.CloudJob(); + job.Id = id; jobs.Add(job); } - SetProperty(response, "Jobs", jobs); + response.Jobs = jobs; return response; } /// - /// Builds a GetTaskResponse object + /// Builds a CloudTaskGetResponse object /// - public static GetTaskResponse CreateGetTaskResponse(string taskName) + public static ProxyModels.CloudTaskGetResponse CreateCloudTaskGetResponse(string taskId) { - GetTaskResponse response = new GetTaskResponse(); - SetProperty(response, "StatusCode", HttpStatusCode.OK); + ProxyModels.CloudTaskGetResponse response = new ProxyModels.CloudTaskGetResponse(); + response.StatusCode = HttpStatusCode.OK; - Azure.Batch.Protocol.Entities.Task task = new Azure.Batch.Protocol.Entities.Task(); - SetProperty(task, "Name", taskName); + ProxyModels.CloudTask task = new ProxyModels.CloudTask(); + task.Id = taskId; - SetProperty(response, "Task", task); + response.Task = task; return response; } /// - /// Builds a ListTasksResponse object + /// Builds a CloudTaskListResponse object /// - public static ListTasksResponse CreateListTasksResponse(IEnumerable taskNames) + public static ProxyModels.CloudTaskListResponse CreateCloudTaskListResponse(IEnumerable taskIds) { - ListTasksResponse response = new ListTasksResponse(); - SetProperty(response, "StatusCode", HttpStatusCode.OK); + ProxyModels.CloudTaskListResponse response = new ProxyModels.CloudTaskListResponse(); + response.StatusCode = HttpStatusCode.OK; - List tasks = new List(); + List tasks = new List(); - foreach (string name in taskNames) + foreach (string id in taskIds) { - Azure.Batch.Protocol.Entities.Task task = new Azure.Batch.Protocol.Entities.Task(); - SetProperty(task, "Name", name); + ProxyModels.CloudTask task = new ProxyModels.CloudTask(); + task.Id = id; tasks.Add(task); } - SetProperty(response, "Tasks", tasks); - - return response; - } - - /// - /// Builds a GetTaskFilePropertiesResponse object - /// - public static GetTaskFilePropertiesResponse CreateGetTaskFilePropertiesResponse(string fileName) - { - GetTaskFilePropertiesResponse response = new GetTaskFilePropertiesResponse(); - SetProperty(response, "StatusCode", HttpStatusCode.OK); - - Azure.Batch.Protocol.Entities.File file = new Azure.Batch.Protocol.Entities.File(); - SetProperty(file, "Name", fileName); - - SetProperty(response, "File", file); - - return response; - } - - /// - /// Builds a ListTaskFilesResponse object - /// - public static ListTaskFilesResponse CreateListTaskFilesResponse(IEnumerable fileNames) - { - ListTaskFilesResponse response = new ListTaskFilesResponse(); - SetProperty(response, "StatusCode", HttpStatusCode.OK); - - List files = new List(); - - foreach (string name in fileNames) - { - Azure.Batch.Protocol.Entities.File file = new Azure.Batch.Protocol.Entities.File(); - SetProperty(file, "Name", name); - files.Add(file); - } - - SetProperty(response, "Files", files); + response.Tasks = tasks; return response; } /// - /// Builds a GetTVMFilePropertiesResponse object + /// Builds a NodeFileGetPropertiesResponse object /// - public static GetTVMFilePropertiesResponse CreateGetTVMFilePropertiesResponse(string fileName) + public static ProxyModels.NodeFileGetPropertiesResponse CreateNodeFileGetPropertiesResponse(string fileName) { - GetTVMFilePropertiesResponse response = new GetTVMFilePropertiesResponse(); - SetProperty(response, "StatusCode", HttpStatusCode.OK); + ProxyModels.NodeFileGetPropertiesResponse response = new ProxyModels.NodeFileGetPropertiesResponse(); + response.StatusCode = HttpStatusCode.OK; - Azure.Batch.Protocol.Entities.File file = new Azure.Batch.Protocol.Entities.File(); - SetProperty(file, "Name", fileName); + ProxyModels.NodeFile file = new ProxyModels.NodeFile(); + file.Name = fileName; - SetProperty(response, "File", file); + response.File = file; return response; } /// - /// Builds a ListTVMFilesResponse object + /// Builds a NodeFileListResponse object /// - public static ListTVMFilesResponse CreateListTVMFilesResponse(IEnumerable fileNames) + public static ProxyModels.NodeFileListResponse CreateNodeFileListResponse(IEnumerable fileNames) { - ListTVMFilesResponse response = new ListTVMFilesResponse(); - SetProperty(response, "StatusCode", HttpStatusCode.OK); + ProxyModels.NodeFileListResponse response = new ProxyModels.NodeFileListResponse(); + response.StatusCode = HttpStatusCode.OK; - List files = new List(); + List files = new List(); foreach (string name in fileNames) { - Azure.Batch.Protocol.Entities.File file = new Azure.Batch.Protocol.Entities.File(); - SetProperty(file, "Name", name); + ProxyModels.NodeFile file = new ProxyModels.NodeFile(); + file.Name = name; files.Add(file); } - SetProperty(response, "Files", files); + response.Files = files; return response; } diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Commands.Batch.Test.csproj b/src/ResourceManager/Batch/Commands.Batch.Test/Commands.Batch.Test.csproj index b966dae3685f..3211f67a4d9f 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/Commands.Batch.Test.csproj +++ b/src/ResourceManager/Batch/Commands.Batch.Test/Commands.Batch.Test.csproj @@ -43,9 +43,9 @@ ..\..\..\packages\Hyak.Common.1.0.2\lib\portable-net403+win+wpa81\Hyak.Common.dll - + False - ..\..\..\packages\Azure.Batch.1.2.0\lib\net45\Microsoft.Azure.Batch.dll + ..\..\..\packages\Azure.Batch.2.0.1\lib\net45\Microsoft.Azure.Batch.dll ..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.dll @@ -78,14 +78,17 @@ False ..\..\..\packages\Microsoft.Azure.Test.HttpRecorder.1.0.5571.32271-prerelease\lib\net45\Microsoft.Azure.Test.HttpRecorder.dll - - ..\..\..\packages\Microsoft.Data.Edm.5.6.0\lib\net40\Microsoft.Data.Edm.dll + + False + ..\..\..\packages\Microsoft.Data.Edm.5.6.2\lib\net40\Microsoft.Data.Edm.dll - - ..\..\..\packages\Microsoft.Data.OData.5.6.0\lib\net40\Microsoft.Data.OData.dll + + False + ..\..\..\packages\Microsoft.Data.OData.5.6.2\lib\net40\Microsoft.Data.OData.dll - - ..\..\..\packages\Microsoft.Data.Services.Client.5.6.0\lib\net40\Microsoft.Data.Services.Client.dll + + False + ..\..\..\packages\Microsoft.Data.Services.Client.5.6.2\lib\net40\Microsoft.Data.Services.Client.dll False @@ -101,9 +104,9 @@ ..\..\..\packages\Microsoft.WindowsAzure.Management.4.1.1\lib\net40\Microsoft.WindowsAzure.Management.dll - + False - ..\..\..\packages\WindowsAzure.Storage.4.0.0\lib\net40\Microsoft.WindowsAzure.Storage.dll + ..\..\..\packages\WindowsAzure.Storage.4.3.0\lib\net40\Microsoft.WindowsAzure.Storage.dll False @@ -112,6 +115,10 @@ ..\..\..\packages\Moq.4.2.1402.2112\lib\net40\Moq.dll + + False + ..\..\..\packages\System.Spatial.5.6.2\lib\net40\System.Spatial.dll + False ..\..\..\packages\xunit.1.9.2\lib\net20\xunit.dll @@ -136,9 +143,6 @@ ..\..\..\packages\Microsoft.Net.Http.2.2.28\lib\net45\System.Net.Http.Primitives.dll - - ..\..\..\packages\System.Spatial.5.6.0\lib\net40\System.Spatial.dll - @@ -154,12 +158,11 @@ - - - - - + + + + @@ -175,18 +178,18 @@ - - - + + + - - - - - - + + + + + + @@ -211,13 +214,13 @@ PreserveNewest - + PreserveNewest - + PreserveNewest - + PreserveNewest @@ -241,187 +244,184 @@ Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest + + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always - + + PreserveNewest + + Always - + + PreserveNewest + + Always - + Always - + Always - + Always - + Always - + Always - + Always - + Always diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ComputeNodeUsers/NewBatchComputeNodeUserCommandTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/ComputeNodeUsers/NewBatchComputeNodeUserCommandTests.cs new file mode 100644 index 000000000000..abc958d33cd1 --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/ComputeNodeUsers/NewBatchComputeNodeUserCommandTests.cs @@ -0,0 +1,85 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Management.Automation; +using System.Threading.Tasks; +using Xunit; +using BatchClient = Microsoft.Azure.Commands.Batch.Models.BatchClient; + +namespace Microsoft.Azure.Commands.Batch.Test.ComputeNodeUsers +{ + public class NewBatchComputeNodeUserCommandTests + { + private NewBatchComputeNodeUserCommand cmdlet; + private Mock batchClientMock; + private Mock commandRuntimeMock; + + public NewBatchComputeNodeUserCommandTests() + { + batchClientMock = new Mock(); + commandRuntimeMock = new Mock(); + cmdlet = new NewBatchComputeNodeUserCommand() + { + CommandRuntime = commandRuntimeMock.Object, + BatchClient = batchClientMock.Object, + }; + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void NewBatchComputeNodeUserParametersTest() + { + // Setup cmdlet without the required parameters + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.PoolId = "testPool"; + cmdlet.ComputeNodeId = "computeNode1"; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + cmdlet.Name = "testUser"; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + cmdlet.Password = "Password1234"; + + // Don't go to the service on an Add ComputeNodeUser call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + ComputeNodeAddUserResponse response = new ComputeNodeAddUserResponse(); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Verify no exceptions when required parameters are set + cmdlet.ExecuteCmdlet(); + } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/VMUsers/RemoveBatchVMUserCommandTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/ComputeNodeUsers/RemoveBatchComputeNodeUserCommandTests.cs similarity index 69% rename from src/ResourceManager/Batch/Commands.Batch.Test/VMUsers/RemoveBatchVMUserCommandTests.cs rename to src/ResourceManager/Batch/Commands.Batch.Test/ComputeNodeUsers/RemoveBatchComputeNodeUserCommandTests.cs index 4cd2d65778bd..1dcc66234ee6 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/VMUsers/RemoveBatchVMUserCommandTests.cs +++ b/src/ResourceManager/Batch/Commands.Batch.Test/ComputeNodeUsers/RemoveBatchComputeNodeUserCommandTests.cs @@ -15,7 +15,7 @@ using System; using Microsoft.Azure.Batch; using Microsoft.Azure.Batch.Protocol; -using Microsoft.Azure.Batch.Protocol.Entities; +using Microsoft.Azure.Batch.Protocol.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Moq; using System.Collections.Generic; @@ -24,19 +24,19 @@ using Xunit; using BatchClient = Microsoft.Azure.Commands.Batch.Models.BatchClient; -namespace Microsoft.Azure.Commands.Batch.Test.Users +namespace Microsoft.Azure.Commands.Batch.Test.ComputeNodeUsers { - public class RemoveBatchVMUserCommandTests + public class RemoveBatchComputeNodeUserCommandTests { - private RemoveBatchVMUserCommand cmdlet; + private RemoveBatchComputeNodeUserCommand cmdlet; private Mock batchClientMock; private Mock commandRuntimeMock; - public RemoveBatchVMUserCommandTests() + public RemoveBatchComputeNodeUserCommandTests() { batchClientMock = new Mock(); commandRuntimeMock = new Mock(); - cmdlet = new RemoveBatchVMUserCommand() + cmdlet = new RemoveBatchComputeNodeUserCommand() { CommandRuntime = commandRuntimeMock.Object, BatchClient = batchClientMock.Object, @@ -45,7 +45,7 @@ public RemoveBatchVMUserCommandTests() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void RemoveBatchUserParametersTest() + public void RemoveBatchComputeNodeUserParametersTest() { // Setup cmdlet without the required parameters BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); @@ -57,20 +57,22 @@ public void RemoveBatchUserParametersTest() Assert.Throws(() => cmdlet.ExecuteCmdlet()); - cmdlet.PoolName = "testPool"; - cmdlet.VMName = "vm1"; + cmdlet.PoolId = "testPool"; + cmdlet.ComputeNodeId = "computeNode1"; cmdlet.Name = "testUser"; // Don't go to the service on a DeleteTVMUser call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => { - if (request is DeleteTVMUserRequest) + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => { - DeleteTVMUserResponse response = new DeleteTVMUserResponse(); - Task task = Task.Factory.StartNew(() => { return response; }); + ComputeNodeDeleteUserResponse response = new ComputeNodeDeleteUserResponse(); + Task task = Task.FromResult(response); return task; - } - return null; + }; }); cmdlet.AdditionalBehaviors = new List() { interceptor }; diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ComputeNodes/GetBatchComputeNodeCommandTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/ComputeNodes/GetBatchComputeNodeCommandTests.cs new file mode 100644 index 000000000000..447f954f423e --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/ComputeNodes/GetBatchComputeNodeCommandTests.cs @@ -0,0 +1,230 @@ +// ---------------------------------------------------------------------------------- +// +// 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.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.ComputeNodes +{ + public class GetBatchComputeNodeCommandTests + { + private GetBatchComputeNodeCommand cmdlet; + private Mock batchClientMock; + private Mock commandRuntimeMock; + + public GetBatchComputeNodeCommandTests() + { + batchClientMock = new Mock(); + commandRuntimeMock = new Mock(); + cmdlet = new GetBatchComputeNodeCommand() + { + CommandRuntime = commandRuntimeMock.Object, + BatchClient = batchClientMock.Object, + }; + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void GetBatchComputeNodeTest() + { + // Setup cmdlet to get a compute node by id + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.PoolId = "pool"; + cmdlet.Id = "computeNode1"; + cmdlet.Filter = null; + + // Build a compute node instead of querying the service on a Get ComputeNode call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + ComputeNodeGetResponse response = BatchTestHelpers.CreateComputeNodeGetResponse(cmdlet.Id); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Setup the cmdlet to write pipeline output to a list that can be examined later + List pipeline = new List(); + commandRuntimeMock.Setup(r => r.WriteObject(It.IsAny())).Callback(c => pipeline.Add((PSComputeNode)c)); + + cmdlet.ExecuteCmdlet(); + + // Verify that the cmdlet wrote the compute node returned from the OM to the pipeline + Assert.Equal(1, pipeline.Count); + Assert.Equal(cmdlet.Id, pipeline[0].Id); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void ListBatchComputeNodesByODataFilterTest() + { + // Setup cmdlet to list vms using an OData filter. + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.PoolId = "pool"; + cmdlet.Id = null; + cmdlet.Filter = "state -eq 'idle'"; + + string[] idsOfConstructedComputeNodes = new[] { "computeNode1", "computeNode2" }; + + // Build some compute nodes instead of querying the service on a List ComputeNodes call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + ComputeNodeListResponse response = BatchTestHelpers.CreateComputeNodeListResponse(idsOfConstructedComputeNodes); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Setup the cmdlet to write pipeline output to a list that can be examined later + List pipeline = new List(); + commandRuntimeMock.Setup(r => + r.WriteObject(It.IsAny())) + .Callback(c => pipeline.Add((PSComputeNode)c)); + + cmdlet.ExecuteCmdlet(); + + // Verify that the cmdlet wrote the constructed compute nodes to the pipeline + Assert.Equal(2, pipeline.Count); + int computeNodeCount = 0; + foreach (PSComputeNode c in pipeline) + { + Assert.True(idsOfConstructedComputeNodes.Contains(c.Id)); + computeNodeCount++; + } + Assert.Equal(idsOfConstructedComputeNodes.Length, computeNodeCount); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void ListBatchComputeNodesWithoutFiltersTest() + { + // Setup cmdlet to list compute nodes without filters. + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.PoolId = "testPool"; + cmdlet.Id = null; + cmdlet.Filter = null; + + string[] idsOfConstructedComputeNodes = new[] { "computeNode1", "computeNode2", "computeNode3" }; + + // Build some compute nodes instead of querying the service on a List ComputeNodes call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + ComputeNodeListResponse response = BatchTestHelpers.CreateComputeNodeListResponse(idsOfConstructedComputeNodes); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Setup the cmdlet to write pipeline output to a list that can be examined later + List pipeline = new List(); + commandRuntimeMock.Setup(r => + r.WriteObject(It.IsAny())) + .Callback(c => pipeline.Add((PSComputeNode)c)); + + cmdlet.ExecuteCmdlet(); + + // Verify that the cmdlet wrote the constructed compute nodes to the pipeline + Assert.Equal(3, pipeline.Count); + int computeNodeCount = 0; + foreach (PSComputeNode c in pipeline) + { + Assert.True(idsOfConstructedComputeNodes.Contains(c.Id)); + computeNodeCount++; + } + Assert.Equal(idsOfConstructedComputeNodes.Length, computeNodeCount); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void ListComputeNodesMaxCountTest() + { + // Verify default max count + Assert.Equal(Microsoft.Azure.Commands.Batch.Utils.Constants.DefaultMaxCount, cmdlet.MaxCount); + + // Setup cmdlet to list compute nodes without filters and a max count + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.PoolId = "testPool"; + cmdlet.Id = null; + cmdlet.Filter = null; + int maxCount = 2; + cmdlet.MaxCount = maxCount; + + string[] idsOfConstructedComputeNodes = new[] { "computeNode1", "computeNode2", "computeNode3" }; + + // Build some compute nodes instead of querying the service on a List ComputeNodes call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + ComputeNodeListResponse response = BatchTestHelpers.CreateComputeNodeListResponse(idsOfConstructedComputeNodes); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Setup the cmdlet to write pipeline output to a list that can be examined later + List pipeline = new List(); + commandRuntimeMock.Setup(r => + r.WriteObject(It.IsAny())) + .Callback(c => pipeline.Add((PSComputeNode)c)); + + cmdlet.ExecuteCmdlet(); + + // Verify that the max count was respected + Assert.Equal(maxCount, pipeline.Count); + + // Verify setting max count <= 0 doesn't return nothing + cmdlet.MaxCount = -5; + pipeline.Clear(); + cmdlet.ExecuteCmdlet(); + + Assert.Equal(idsOfConstructedComputeNodes.Length, pipeline.Count); + } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchNodeFileCommandTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchNodeFileCommandTests.cs new file mode 100644 index 000000000000..ac8925106065 --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchNodeFileCommandTests.cs @@ -0,0 +1,504 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Files +{ + public class GetBatchNodeFileCommandTests + { + private GetBatchNodeFileCommand cmdlet; + private Mock batchClientMock; + private Mock commandRuntimeMock; + + public GetBatchNodeFileCommandTests() + { + batchClientMock = new Mock(); + commandRuntimeMock = new Mock(); + cmdlet = new GetBatchNodeFileCommand() + { + CommandRuntime = commandRuntimeMock.Object, + BatchClient = batchClientMock.Object, + }; + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void GetBatchNodeFileByTaskParametersTest() + { + // Setup cmdlet without required parameters + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.JobId = null; + cmdlet.TaskId = null; + cmdlet.Name = null; + cmdlet.Task = null; + cmdlet.Filter = null; + + // Build a NodeFile instead of querying the service on a List NodeFile call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + NodeFileListResponse response = BatchTestHelpers.CreateNodeFileListResponse(new string[] {cmdlet.Name}); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.JobId = "job-1"; + cmdlet.TaskId = "task"; + + // Verify no exceptions occur + cmdlet.ExecuteCmdlet(); + + cmdlet.JobId = null; + cmdlet.TaskId = null; + cmdlet.Task = new PSCloudTask("task", "cmd /c dir /s"); + + // Verify that we don't get an argument exception. We should get an InvalidOperationException though since the task is unbound + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void GetBatchNodeFileByTaskTest() + { + // Setup cmdlet to get a Task file by name + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.JobId = "job-1"; + cmdlet.TaskId = "task"; + cmdlet.Name = "stdout.txt"; + cmdlet.Filter = null; + + // Build a NodeFile instead of querying the service on a Get NodeFile Properties call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + NodeFileGetPropertiesResponse response = BatchTestHelpers.CreateNodeFileGetPropertiesResponse(cmdlet.Name); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Setup the cmdlet to write pipeline output to a list that can be examined later + List pipeline = new List(); + commandRuntimeMock.Setup(r => r.WriteObject(It.IsAny())).Callback(f => pipeline.Add((PSNodeFile)f)); + + cmdlet.ExecuteCmdlet(); + + // Verify that the cmdlet wrote the node file returned from the OM to the pipeline + Assert.Equal(1, pipeline.Count); + Assert.Equal(cmdlet.Name, pipeline[0].Name); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void ListBatchNodeFilesByTaskByODataFilterTest() + { + // Setup cmdlet to list node files using an OData filter. + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.JobId = "job-1"; + cmdlet.TaskId = "task"; + cmdlet.Name = null; + cmdlet.Filter = "startswith(name,'std')"; + + string[] namesOfConstructedNodeFiles = new[] { "stdout.txt", "stderr.txt" }; + + // Build some NodeFiles instead of querying the service on a List NodeFiles call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + NodeFileListResponse response = BatchTestHelpers.CreateNodeFileListResponse(namesOfConstructedNodeFiles); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Setup the cmdlet to write pipeline output to a list that can be examined later + List pipeline = new List(); + commandRuntimeMock.Setup(r => + r.WriteObject(It.IsAny())) + .Callback(f => pipeline.Add((PSNodeFile)f)); + + cmdlet.ExecuteCmdlet(); + + // Verify that the cmdlet wrote the constructed node files to the pipeline + Assert.Equal(2, pipeline.Count); + int taskCount = 0; + foreach (PSNodeFile f in pipeline) + { + Assert.True(namesOfConstructedNodeFiles.Contains(f.Name)); + taskCount++; + } + Assert.Equal(namesOfConstructedNodeFiles.Length, taskCount); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void ListBatchNodeFilesByTaskWithoutFiltersTest() + { + // Setup cmdlet to list Task files without filters. + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.JobId = "job-1"; + cmdlet.TaskId = "task"; + cmdlet.Name = null; + cmdlet.Filter = null; + + string[] namesOfConstructedNodeFiles = new[] { "stdout.txt", "stderr.txt", "wd" }; + + // Build some NodeFiles instead of querying the service on a List NodeFiles call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + NodeFileListResponse response = BatchTestHelpers.CreateNodeFileListResponse(namesOfConstructedNodeFiles); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Setup the cmdlet to write pipeline output to a list that can be examined later + List pipeline = new List(); + commandRuntimeMock.Setup(r => + r.WriteObject(It.IsAny())) + .Callback(f => pipeline.Add((PSNodeFile)f)); + + cmdlet.ExecuteCmdlet(); + + // Verify that the cmdlet wrote the constructed node files to the pipeline + Assert.Equal(3, pipeline.Count); + int taskCount = 0; + foreach (PSNodeFile f in pipeline) + { + Assert.True(namesOfConstructedNodeFiles.Contains(f.Name)); + taskCount++; + } + Assert.Equal(namesOfConstructedNodeFiles.Length, taskCount); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void ListNodeFilesByTaskMaxCountTest() + { + // Verify default max count + Assert.Equal(Microsoft.Azure.Commands.Batch.Utils.Constants.DefaultMaxCount, cmdlet.MaxCount); + + // Setup cmdlet to list node files and a max count. + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.JobId = "job-1"; + cmdlet.TaskId = "task"; + cmdlet.Name = null; + cmdlet.Filter = null; + int maxCount = 2; + cmdlet.MaxCount = maxCount; + + string[] namesOfConstructedNodeFiles = new[] { "stdout.txt", "stderr.txt", "wd" }; + + // Build some NodeFiles instead of querying the service on a List NodeFiles call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + NodeFileListResponse response = BatchTestHelpers.CreateNodeFileListResponse(namesOfConstructedNodeFiles); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Setup the cmdlet to write pipeline output to a list that can be examined later + List pipeline = new List(); + commandRuntimeMock.Setup(r => + r.WriteObject(It.IsAny())) + .Callback(f => pipeline.Add((PSNodeFile)f)); + + cmdlet.ExecuteCmdlet(); + + // Verify that the max count was respected + Assert.Equal(maxCount, pipeline.Count); + + // Verify setting max count <= 0 doesn't return nothing + cmdlet.MaxCount = -5; + pipeline.Clear(); + cmdlet.ExecuteCmdlet(); + + Assert.Equal(namesOfConstructedNodeFiles.Length, pipeline.Count); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void GetBatchNodeFileByComputeNodeParametersTest() + { + // Setup cmdlet without required parameters + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.PoolId = null; + cmdlet.ComputeNodeId = null; + cmdlet.Name = null; + cmdlet.ComputeNode = null; + cmdlet.Filter = null; + + // Build a NodeFile instead of querying the service on a List NodeFile call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + NodeFileListResponse response = BatchTestHelpers.CreateNodeFileListResponse(new string[] {cmdlet.Name}); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.PoolId = "pool"; + cmdlet.ComputeNodeId = "computeNode1"; + + // Verify no exceptions occur + cmdlet.ExecuteCmdlet(); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void GetBatchNodeFileByComputeNodeTest() + { + // Setup cmdlet to get a Task file by name + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.PoolId = "pool"; + cmdlet.ComputeNodeId = "vm1"; + cmdlet.Name = "startup\\stdout.txt"; + cmdlet.Filter = null; + + // Build a NodeFile instead of querying the service on a Get NodeFile Properties call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + NodeFileGetPropertiesResponse response = BatchTestHelpers.CreateNodeFileGetPropertiesResponse(cmdlet.Name); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Setup the cmdlet to write pipeline output to a list that can be examined later + List pipeline = new List(); + commandRuntimeMock.Setup(r => r.WriteObject(It.IsAny())).Callback(f => pipeline.Add((PSNodeFile)f)); + + cmdlet.ExecuteCmdlet(); + + // Verify that the cmdlet wrote the node file returned from the OM to the pipeline + Assert.Equal(1, pipeline.Count); + Assert.Equal(cmdlet.Name, pipeline[0].Name); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void ListBatchNodeFilesByComputeNodeByODataFilterTest() + { + // Setup cmdlet to list vm files using an OData filter. + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.PoolId = "pool"; + cmdlet.ComputeNodeId = "computeNode1"; + cmdlet.Name = null; + cmdlet.Filter = "startswith(name,'startup')"; + + string[] namesOfConstructedNodeFiles = new[] { "startup\\stdout.txt", "startup\\stderr.txt" }; + + // Build some NodeFiles instead of querying the service on a List NodeFiles call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + NodeFileListResponse response = BatchTestHelpers.CreateNodeFileListResponse(namesOfConstructedNodeFiles); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Setup the cmdlet to write pipeline output to a list that can be examined later + List pipeline = new List(); + commandRuntimeMock.Setup(r => + r.WriteObject(It.IsAny())) + .Callback(f => pipeline.Add((PSNodeFile)f)); + + cmdlet.ExecuteCmdlet(); + + // Verify that the cmdlet wrote the constructed node files to the pipeline + Assert.Equal(2, pipeline.Count); + int taskCount = 0; + foreach (PSNodeFile f in pipeline) + { + Assert.True(namesOfConstructedNodeFiles.Contains(f.Name)); + taskCount++; + } + Assert.Equal(namesOfConstructedNodeFiles.Length, taskCount); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void ListBatchNodeFilesByComputeNodeWithoutFiltersTest() + { + // Setup cmdlet to list vm files without filters. + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.PoolId = "pool"; + cmdlet.ComputeNodeId = "computeNode1"; + cmdlet.Name = null; + cmdlet.Filter = null; + + string[] namesOfConstructedNodeFiles = new[] { "startup", "workitems", "shared" }; + + // Build some NodeFiles instead of querying the service on a List NodeFiles call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + NodeFileListResponse response = BatchTestHelpers.CreateNodeFileListResponse(namesOfConstructedNodeFiles); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Setup the cmdlet to write pipeline output to a list that can be examined later + List pipeline = new List(); + commandRuntimeMock.Setup(r => + r.WriteObject(It.IsAny())) + .Callback(f => pipeline.Add((PSNodeFile)f)); + + cmdlet.ExecuteCmdlet(); + + // Verify that the cmdlet wrote the constructed node files to the pipeline + Assert.Equal(3, pipeline.Count); + int taskCount = 0; + foreach (PSNodeFile f in pipeline) + { + Assert.True(namesOfConstructedNodeFiles.Contains(f.Name)); + taskCount++; + } + Assert.Equal(namesOfConstructedNodeFiles.Length, taskCount); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void ListNodeFilesByComputeNodeMaxCountTest() + { + // Verify default max count + Assert.Equal(Microsoft.Azure.Commands.Batch.Utils.Constants.DefaultMaxCount, cmdlet.MaxCount); + + // Setup cmdlet to list vm files and a max count. + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.PoolId = "pool"; + cmdlet.ComputeNodeId = "computeNode1"; + cmdlet.Name = null; + cmdlet.Filter = null; + int maxCount = 2; + cmdlet.MaxCount = maxCount; + + string[] namesOfConstructedNodeFiles = new[] { "startup", "workitems", "shared" }; + + // Build some NodeFiles instead of querying the service on a List NodeFiles call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + NodeFileListResponse response = BatchTestHelpers.CreateNodeFileListResponse(namesOfConstructedNodeFiles); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Setup the cmdlet to write pipeline output to a list that can be examined later + List pipeline = new List(); + commandRuntimeMock.Setup(r => + r.WriteObject(It.IsAny())) + .Callback(f => pipeline.Add((PSNodeFile)f)); + + cmdlet.ExecuteCmdlet(); + + // Verify that the max count was respected + Assert.Equal(maxCount, pipeline.Count); + + // Verify setting max count <= 0 doesn't return nothing + cmdlet.MaxCount = -5; + pipeline.Clear(); + cmdlet.ExecuteCmdlet(); + + Assert.Equal(namesOfConstructedNodeFiles.Length, pipeline.Count); + } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchNodeFileContentCommandTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchNodeFileContentCommandTests.cs new file mode 100644 index 000000000000..50f025b90b31 --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchNodeFileContentCommandTests.cs @@ -0,0 +1,176 @@ +// ---------------------------------------------------------------------------------- +// +// 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.IO; +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.Files +{ + public class GetBatchNodeFileContentCommandTests + { + private GetBatchNodeFileContentCommand cmdlet; + private Mock batchClientMock; + private Mock commandRuntimeMock; + + public GetBatchNodeFileContentCommandTests() + { + batchClientMock = new Mock(); + commandRuntimeMock = new Mock(); + cmdlet = new GetBatchNodeFileContentCommand() + { + CommandRuntime = commandRuntimeMock.Object, + BatchClient = batchClientMock.Object, + }; + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void GetBatchNodeFileByTaskParametersTest() + { + // Setup cmdlet without required parameters + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.JobId = null; + cmdlet.TaskId = null; + cmdlet.Name = null; + cmdlet.InputObject = null; + cmdlet.DestinationPath = null; + + string fileName = "stdout.txt"; + + // Don't go to the service on a Get NodeFile call or Get NodeFile Properties call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest fileRequest = baseRequest as + BatchRequest; + + if (fileRequest != null) + { + fileRequest.ServiceRequestFunc = (cancellationToken) => + { + NodeFileGetResponse response = new NodeFileGetResponse(); + Task task = Task.FromResult(response); + return task; + }; + } + else + { + BatchRequest propRequest = + (BatchRequest)baseRequest; + + propRequest.ServiceRequestFunc = (cancellationToken) => + { + NodeFileGetPropertiesResponse response = BatchTestHelpers.CreateNodeFileGetPropertiesResponse(cmdlet.Name); + Task task = Task.FromResult(response); + return task; + }; + } + }); + + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + using (MemoryStream memStream = new MemoryStream()) + { + // Don't hit the file system during unit tests + cmdlet.DestinationStream = memStream; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + // Fill required task details + cmdlet.JobId = "job-1"; + cmdlet.TaskId = "task"; + cmdlet.Name = fileName; + + // Verify no exceptions occur + cmdlet.ExecuteCmdlet(); + } + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void GetBatchNodeFileByComputeNodeContentParametersTest() + { + // Setup cmdlet without required parameters + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.PoolId = null; + cmdlet.ComputeNodeId = null; + cmdlet.Name = null; + cmdlet.InputObject = null; + cmdlet.DestinationPath = null; + + string fileName = "startup\\stdout.txt"; + + // Don't go to the service on a Get NodeFile call or Get NodeFile Properties call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest fileRequest = baseRequest as + BatchRequest; + + if (fileRequest != null) + { + fileRequest.ServiceRequestFunc = (cancellationToken) => + { + NodeFileGetResponse response = new NodeFileGetResponse(); + Task task = Task.FromResult(response); + return task; + }; + } + else + { + BatchRequest propRequest = + (BatchRequest)baseRequest; + + propRequest.ServiceRequestFunc = (cancellationToken) => + { + NodeFileGetPropertiesResponse response = BatchTestHelpers.CreateNodeFileGetPropertiesResponse(cmdlet.Name); + Task task = Task.FromResult(response); + return task; + }; + } + }); + + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + using (MemoryStream memStream = new MemoryStream()) + { + // Don't hit the file system during unit tests + cmdlet.DestinationStream = memStream; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + // Fill required compute node details + cmdlet.PoolId = "pool"; + cmdlet.ComputeNodeId = "computeNode1"; + cmdlet.Name = fileName; + + // Verify no exceptions occur + cmdlet.ExecuteCmdlet(); + } + } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchRDPFileCommandTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchRemoteDesktopProtocolFileCommandTests.cs similarity index 65% rename from src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchRDPFileCommandTests.cs rename to src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchRemoteDesktopProtocolFileCommandTests.cs index 2cad5fd7e9dc..465dab352e56 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchRDPFileCommandTests.cs +++ b/src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchRemoteDesktopProtocolFileCommandTests.cs @@ -17,7 +17,7 @@ using Microsoft.Azure.Batch; using Microsoft.Azure.Batch.Common; using Microsoft.Azure.Batch.Protocol; -using Microsoft.Azure.Batch.Protocol.Entities; +using Microsoft.Azure.Batch.Protocol.Models; using Microsoft.Azure.Commands.Batch.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Moq; @@ -30,17 +30,17 @@ namespace Microsoft.Azure.Commands.Batch.Test.Files { - public class GetBatchRDPFileCommandTests + public class GetBatchRemoteDesktopProtocolFileCommandTests { - private GetBatchRDPFileCommand cmdlet; + private GetBatchRemoteDesktopProtocolFileCommand cmdlet; private Mock batchClientMock; private Mock commandRuntimeMock; - public GetBatchRDPFileCommandTests() + public GetBatchRemoteDesktopProtocolFileCommandTests() { batchClientMock = new Mock(); commandRuntimeMock = new Mock(); - cmdlet = new GetBatchRDPFileCommand() + cmdlet = new GetBatchRemoteDesktopProtocolFileCommand() { CommandRuntime = commandRuntimeMock.Object, BatchClient = batchClientMock.Object, @@ -49,26 +49,28 @@ public GetBatchRDPFileCommandTests() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void GetBatchRDPFileParametersTest() + public void GetBatchRemoteDesktopProtocolFileParametersTest() { // Setup cmdlet without required parameters BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); cmdlet.BatchContext = context; - cmdlet.PoolName = null; - cmdlet.VMName = null; - cmdlet.VM = null; + cmdlet.PoolId = null; + cmdlet.ComputeNodeId = null; + cmdlet.ComputeNode = null; cmdlet.DestinationPath = null; - // Don't go to the service on a GetTVMRDPFile call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => + // Don't go to the service on a Get ComputeNode Remote Desktop call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => { - if (request is GetTVMRDPFileRequest) + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => { - GetTVMRDPFileResponse response = new GetTVMRDPFileResponse(); - Task task = Task.Factory.StartNew(() => { return response; }); + ComputeNodeGetRemoteDesktopResponse response = new ComputeNodeGetRemoteDesktopResponse(); + Task task = Task.FromResult(response); return task; - } - return null; + }; }); cmdlet.AdditionalBehaviors = new List() { interceptor }; @@ -79,9 +81,9 @@ public void GetBatchRDPFileParametersTest() Assert.Throws(() => cmdlet.ExecuteCmdlet()); - // Fill required Task file details - cmdlet.PoolName = "pool"; - cmdlet.VMName = "vm1"; + // Fill required compute node details + cmdlet.PoolId = "pool"; + cmdlet.ComputeNodeId = "computeNode1"; // Verify no exceptions occur cmdlet.ExecuteCmdlet(); diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchTaskFileCommandTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchTaskFileCommandTests.cs deleted file mode 100644 index 4b800167cdab..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchTaskFileCommandTests.cs +++ /dev/null @@ -1,277 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System; -using Microsoft.Azure.Batch; -using Microsoft.Azure.Batch.Common; -using Microsoft.Azure.Batch.Protocol; -using Microsoft.Azure.Batch.Protocol.Entities; -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.Files -{ - public class GetBatchTaskFileCommandTests - { - private GetBatchTaskFileCommand cmdlet; - private Mock batchClientMock; - private Mock commandRuntimeMock; - - public GetBatchTaskFileCommandTests() - { - batchClientMock = new Mock(); - commandRuntimeMock = new Mock(); - cmdlet = new GetBatchTaskFileCommand() - { - CommandRuntime = commandRuntimeMock.Object, - BatchClient = batchClientMock.Object, - }; - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void GetBatchTaskFileParametersTest() - { - // Setup cmdlet without required parameters - BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); - cmdlet.BatchContext = context; - cmdlet.WorkItemName = null; - cmdlet.JobName = null; - cmdlet.TaskName = null; - cmdlet.Name = null; - cmdlet.Task = null; - cmdlet.Filter = null; - - // Build some Task files instead of querying the service on a ListTaskFiles call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => - { - if (request is ListTaskFilesRequest) - { - ListTaskFilesResponse response = BatchTestHelpers.CreateListTaskFilesResponse(new string[] { "stdout.txt" }); - Task task = Task.Factory.StartNew(() => { return response; }); - return task; - } - return null; - }); - cmdlet.AdditionalBehaviors = new List() { interceptor }; - - Assert.Throws(() => cmdlet.ExecuteCmdlet()); - - cmdlet.WorkItemName = "workItem"; - cmdlet.JobName = "job-0000000001"; - cmdlet.TaskName = "task"; - - // Verify no exceptions occur - cmdlet.ExecuteCmdlet(); - - cmdlet.WorkItemName = null; - cmdlet.JobName = null; - cmdlet.TaskName = null; - cmdlet.Task = new PSCloudTask("task", "cmd /c dir /s"); - - // Verify that we don't get an argument exception. We should get an InvalidOperationException though since the task is unbound - Assert.Throws(() => cmdlet.ExecuteCmdlet()); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void GetBatchTaskFileTest() - { - // Setup cmdlet to get a Task file by name - BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); - cmdlet.BatchContext = context; - cmdlet.WorkItemName = "workItem"; - cmdlet.JobName = "job-0000000001"; - cmdlet.TaskName = "task"; - cmdlet.Name = "stdout.txt"; - cmdlet.Filter = null; - - // Build a Task file instead of querying the service on a GetTaskFileProperties call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => - { - if (request is GetTaskFilePropertiesRequest) - { - GetTaskFilePropertiesResponse response = BatchTestHelpers.CreateGetTaskFilePropertiesResponse(cmdlet.Name); - Task task = Task.Factory.StartNew(() => { return response; }); - return task; - } - return null; - }); - cmdlet.AdditionalBehaviors = new List() { interceptor }; - - // Setup the cmdlet to write pipeline output to a list that can be examined later - List pipeline = new List(); - commandRuntimeMock.Setup(r => r.WriteObject(It.IsAny())).Callback(f => pipeline.Add((PSTaskFile)f)); - - cmdlet.ExecuteCmdlet(); - - // Verify that the cmdlet wrote the Task file returned from the OM to the pipeline - Assert.Equal(1, pipeline.Count); - Assert.Equal(cmdlet.Name, pipeline[0].Name); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void ListBatchTaskFilesByODataFilterTest() - { - // Setup cmdlet to list Tasks using an OData filter. Use WorkItemName and JobName input. - BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); - cmdlet.BatchContext = context; - cmdlet.WorkItemName = "workItem"; - cmdlet.JobName = "job-0000000001"; - cmdlet.TaskName = "task"; - cmdlet.Name = null; - cmdlet.Filter = "startswith(name,'std')"; - - string[] namesOfConstructedTaskFiles = new[] { "stdout.txt", "stderr.txt" }; - - // Build some Task files instead of querying the service on a ListTaskFiles call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => - { - if (request is ListTaskFilesRequest) - { - ListTaskFilesResponse response = BatchTestHelpers.CreateListTaskFilesResponse(namesOfConstructedTaskFiles); - Task task = Task.Factory.StartNew(() => { return response; }); - return task; - } - return null; - }); - cmdlet.AdditionalBehaviors = new List() { interceptor }; - - // Setup the cmdlet to write pipeline output to a list that can be examined later - List pipeline = new List(); - commandRuntimeMock.Setup(r => - r.WriteObject(It.IsAny())) - .Callback(f => pipeline.Add((PSTaskFile)f)); - - cmdlet.ExecuteCmdlet(); - - // Verify that the cmdlet wrote the constructed Tasks to the pipeline - Assert.Equal(2, pipeline.Count); - int taskCount = 0; - foreach (PSTaskFile f in pipeline) - { - Assert.True(namesOfConstructedTaskFiles.Contains(f.Name)); - taskCount++; - } - Assert.Equal(namesOfConstructedTaskFiles.Length, taskCount); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void ListBatchTaskFilesWithoutFiltersTest() - { - // Setup cmdlet to list Task files without filters. - BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); - cmdlet.BatchContext = context; - cmdlet.WorkItemName = "workItem"; - cmdlet.JobName = "job-0000000001"; - cmdlet.TaskName = "task"; - cmdlet.Name = null; - cmdlet.Filter = null; - - string[] namesOfConstructedTaskFiles = new[] { "stdout.txt", "stderr.txt", "wd" }; - - // Build some Task files instead of querying the service on a ListTaskFiles call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => - { - if (request is ListTaskFilesRequest) - { - ListTaskFilesResponse response = BatchTestHelpers.CreateListTaskFilesResponse(namesOfConstructedTaskFiles); - Task task = Task.Factory.StartNew(() => { return response; }); - return task; - } - return null; - }); - cmdlet.AdditionalBehaviors = new List() { interceptor }; - - // Setup the cmdlet to write pipeline output to a list that can be examined later - List pipeline = new List(); - commandRuntimeMock.Setup(r => - r.WriteObject(It.IsAny())) - .Callback(t => pipeline.Add((PSTaskFile)t)); - - cmdlet.ExecuteCmdlet(); - - // Verify that the cmdlet wrote the constructed Task files to the pipeline - Assert.Equal(3, pipeline.Count); - int taskCount = 0; - foreach (PSTaskFile f in pipeline) - { - Assert.True(namesOfConstructedTaskFiles.Contains(f.Name)); - taskCount++; - } - Assert.Equal(namesOfConstructedTaskFiles.Length, taskCount); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void ListTaskFilesMaxCountTest() - { - // Verify default max count - Assert.Equal(Microsoft.Azure.Commands.Batch.Utils.Constants.DefaultMaxCount, cmdlet.MaxCount); - - // Setup cmdlet to list Task files and a max count. - BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); - cmdlet.BatchContext = context; - cmdlet.WorkItemName = "workItem"; - cmdlet.JobName = "job-0000000001"; - cmdlet.TaskName = "task"; - cmdlet.Name = null; - cmdlet.Filter = null; - int maxCount = 2; - cmdlet.MaxCount = maxCount; - - string[] namesOfConstructedTaskFiles = new[] { "stdout.txt", "stderr.txt", "wd" }; - - // Build some Task files instead of querying the service on a ListTaskFiles call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => - { - if (request is ListTaskFilesRequest) - { - ListTaskFilesResponse response = BatchTestHelpers.CreateListTaskFilesResponse(namesOfConstructedTaskFiles); - Task task = Task.Factory.StartNew(() => { return response; }); - return task; - } - return null; - }); - cmdlet.AdditionalBehaviors = new List() { interceptor }; - - // Setup the cmdlet to write pipeline output to a list that can be examined later - List pipeline = new List(); - commandRuntimeMock.Setup(r => - r.WriteObject(It.IsAny())) - .Callback(t => pipeline.Add((PSTaskFile)t)); - - cmdlet.ExecuteCmdlet(); - - // Verify that the max count was respected - Assert.Equal(maxCount, pipeline.Count); - - // Verify setting max count <= 0 doesn't return nothing - cmdlet.MaxCount = -5; - pipeline.Clear(); - cmdlet.ExecuteCmdlet(); - - Assert.Equal(namesOfConstructedTaskFiles.Length, pipeline.Count); - } - } -} diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchTaskFileContentCommandTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchTaskFileContentCommandTests.cs deleted file mode 100644 index 28e4014d5917..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchTaskFileContentCommandTests.cs +++ /dev/null @@ -1,103 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System; -using System.IO; -using Microsoft.Azure.Batch; -using Microsoft.Azure.Batch.Common; -using Microsoft.Azure.Batch.Protocol; -using Microsoft.Azure.Batch.Protocol.Entities; -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.Files -{ - public class GetBatchTaskFileContentCommandTests - { - private GetBatchTaskFileContentCommand cmdlet; - private Mock batchClientMock; - private Mock commandRuntimeMock; - - public GetBatchTaskFileContentCommandTests() - { - batchClientMock = new Mock(); - commandRuntimeMock = new Mock(); - cmdlet = new GetBatchTaskFileContentCommand() - { - CommandRuntime = commandRuntimeMock.Object, - BatchClient = batchClientMock.Object, - }; - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void GetBatchTaskFileParametersTest() - { - // Setup cmdlet without required parameters - BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); - cmdlet.BatchContext = context; - cmdlet.WorkItemName = null; - cmdlet.JobName = null; - cmdlet.TaskName = null; - cmdlet.Name = null; - cmdlet.InputObject = null; - cmdlet.DestinationPath = null; - - string fileName = "stdout.txt"; - - // Don't go to the service on a GetTaskFile call or GetTaskFileProperties call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => - { - if (request is GetTaskFilePropertiesRequest) - { - GetTaskFilePropertiesResponse response = BatchTestHelpers.CreateGetTaskFilePropertiesResponse(fileName); - Task task = Task.Factory.StartNew(() => { return response; }); - return task; - } - if (request is GetTaskFileRequest) - { - GetTaskFileResponse response = new GetTaskFileResponse(); - Task task = Task.Factory.StartNew(() => { return response; }); - return task; - } - return null; - }); - cmdlet.AdditionalBehaviors = new List() { interceptor }; - - using (MemoryStream memStream = new MemoryStream()) - { - // Don't hit the file system during unit tests - cmdlet.DestinationStream = memStream; - - Assert.Throws(() => cmdlet.ExecuteCmdlet()); - - // Fill required Task file details - cmdlet.WorkItemName = "workItem"; - cmdlet.JobName = "job-0000000001"; - cmdlet.TaskName = "task"; - cmdlet.Name = fileName; - - // Verify no exceptions occur - cmdlet.ExecuteCmdlet(); - } - } - } -} diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchVMFileCommandTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchVMFileCommandTests.cs deleted file mode 100644 index f8215aaee72c..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchVMFileCommandTests.cs +++ /dev/null @@ -1,263 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System; -using Microsoft.Azure.Batch; -using Microsoft.Azure.Batch.Common; -using Microsoft.Azure.Batch.Protocol; -using Microsoft.Azure.Batch.Protocol.Entities; -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.Files -{ - public class GetBatchVMFileCommandTests - { - private GetBatchVMFileCommand cmdlet; - private Mock batchClientMock; - private Mock commandRuntimeMock; - - public GetBatchVMFileCommandTests() - { - batchClientMock = new Mock(); - commandRuntimeMock = new Mock(); - cmdlet = new GetBatchVMFileCommand() - { - CommandRuntime = commandRuntimeMock.Object, - BatchClient = batchClientMock.Object, - }; - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void GetBatchVMFileParametersTest() - { - // Setup cmdlet without required parameters - BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); - cmdlet.BatchContext = context; - cmdlet.PoolName = null; - cmdlet.VMName = null; - cmdlet.Name = null; - cmdlet.VM = null; - cmdlet.Filter = null; - - // Build some vm files instead of querying the service on a ListTVMFiles call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => - { - if (request is ListTVMFilesRequest) - { - ListTVMFilesResponse response = BatchTestHelpers.CreateListTVMFilesResponse(new string[] { "startup\\stdout.txt" }); - Task task = Task.Factory.StartNew(() => { return response; }); - return task; - } - return null; - }); - cmdlet.AdditionalBehaviors = new List() { interceptor }; - - Assert.Throws(() => cmdlet.ExecuteCmdlet()); - - cmdlet.PoolName = "pool"; - cmdlet.VMName = "vm1"; - - // Verify no exceptions occur - cmdlet.ExecuteCmdlet(); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void GetBatchVMFileTest() - { - // Setup cmdlet to get a Task file by name - BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); - cmdlet.BatchContext = context; - cmdlet.PoolName = "pool"; - cmdlet.VMName = "vm1"; - cmdlet.Name = "startup\\stdout.txt"; - cmdlet.Filter = null; - - // Build a vm file instead of querying the service on a GetVMFileProperties call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => - { - if (request is GetTVMFilePropertiesRequest) - { - GetTVMFilePropertiesResponse response = BatchTestHelpers.CreateGetTVMFilePropertiesResponse(cmdlet.Name); - Task task = Task.Factory.StartNew(() => { return response; }); - return task; - } - return null; - }); - cmdlet.AdditionalBehaviors = new List() { interceptor }; - - // Setup the cmdlet to write pipeline output to a list that can be examined later - List pipeline = new List(); - commandRuntimeMock.Setup(r => r.WriteObject(It.IsAny())).Callback(f => pipeline.Add((PSVMFile)f)); - - cmdlet.ExecuteCmdlet(); - - // Verify that the cmdlet wrote the vm file returned from the OM to the pipeline - Assert.Equal(1, pipeline.Count); - Assert.Equal(cmdlet.Name, pipeline[0].Name); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void ListBatchVMFilesByODataFilterTest() - { - // Setup cmdlet to list vm files using an OData filter. - BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); - cmdlet.BatchContext = context; - cmdlet.PoolName = "pool"; - cmdlet.VMName = "vm1"; - cmdlet.Name = null; - cmdlet.Filter = "startswith(name,'startup')"; - - string[] namesOfConstructedVMFiles = new[] { "startup\\stdout.txt", "startup\\stderr.txt" }; - - // Build some vm files instead of querying the service on a ListTVMFiles call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => - { - if (request is ListTVMFilesRequest) - { - ListTVMFilesResponse response = BatchTestHelpers.CreateListTVMFilesResponse(namesOfConstructedVMFiles); - Task task = Task.Factory.StartNew(() => { return response; }); - return task; - } - return null; - }); - cmdlet.AdditionalBehaviors = new List() { interceptor }; - - // Setup the cmdlet to write pipeline output to a list that can be examined later - List pipeline = new List(); - commandRuntimeMock.Setup(r => - r.WriteObject(It.IsAny())) - .Callback(f => pipeline.Add((PSVMFile)f)); - - cmdlet.ExecuteCmdlet(); - - // Verify that the cmdlet wrote the constructed vm files to the pipeline - Assert.Equal(2, pipeline.Count); - int taskCount = 0; - foreach (PSVMFile f in pipeline) - { - Assert.True(namesOfConstructedVMFiles.Contains(f.Name)); - taskCount++; - } - Assert.Equal(namesOfConstructedVMFiles.Length, taskCount); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void ListBatchVMFilesWithoutFiltersTest() - { - // Setup cmdlet to list vm files without filters. - BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); - cmdlet.BatchContext = context; - cmdlet.PoolName = "pool"; - cmdlet.VMName = "vm1"; - cmdlet.Name = null; - cmdlet.Filter = null; - - string[] namesOfConstructedVMFiles = new[] { "startup", "workitems", "shared" }; - - // Build some vm files instead of querying the service on a ListTVMFiles call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => - { - if (request is ListTVMFilesRequest) - { - ListTVMFilesResponse response = BatchTestHelpers.CreateListTVMFilesResponse(namesOfConstructedVMFiles); - Task task = Task.Factory.StartNew(() => { return response; }); - return task; - } - return null; - }); - cmdlet.AdditionalBehaviors = new List() { interceptor }; - - // Setup the cmdlet to write pipeline output to a list that can be examined later - List pipeline = new List(); - commandRuntimeMock.Setup(r => - r.WriteObject(It.IsAny())) - .Callback(f => pipeline.Add((PSVMFile)f)); - - cmdlet.ExecuteCmdlet(); - - // Verify that the cmdlet wrote the constructed vm files to the pipeline - Assert.Equal(3, pipeline.Count); - int taskCount = 0; - foreach (PSVMFile f in pipeline) - { - Assert.True(namesOfConstructedVMFiles.Contains(f.Name)); - taskCount++; - } - Assert.Equal(namesOfConstructedVMFiles.Length, taskCount); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void ListVMFilesMaxCountTest() - { - // Verify default max count - Assert.Equal(Microsoft.Azure.Commands.Batch.Utils.Constants.DefaultMaxCount, cmdlet.MaxCount); - - // Setup cmdlet to list vm files and a max count. - BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); - cmdlet.BatchContext = context; - cmdlet.PoolName = "pool"; - cmdlet.VMName = "vm1"; - cmdlet.Name = null; - cmdlet.Filter = null; - int maxCount = 2; - cmdlet.MaxCount = maxCount; - - string[] namesOfConstructedVMFiles = new[] { "startup", "workitems", "shared" }; - - // Build some vm files instead of querying the service on a ListTVMFiles call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => - { - if (request is ListTVMFilesRequest) - { - ListTVMFilesResponse response = BatchTestHelpers.CreateListTVMFilesResponse(namesOfConstructedVMFiles); - Task task = Task.Factory.StartNew(() => { return response; }); - return task; - } - return null; - }); - cmdlet.AdditionalBehaviors = new List() { interceptor }; - - // Setup the cmdlet to write pipeline output to a list that can be examined later - List pipeline = new List(); - commandRuntimeMock.Setup(r => - r.WriteObject(It.IsAny())) - .Callback(f => pipeline.Add((PSVMFile)f)); - - cmdlet.ExecuteCmdlet(); - - // Verify that the max count was respected - Assert.Equal(maxCount, pipeline.Count); - - // Verify setting max count <= 0 doesn't return nothing - cmdlet.MaxCount = -5; - pipeline.Clear(); - cmdlet.ExecuteCmdlet(); - - Assert.Equal(namesOfConstructedVMFiles.Length, pipeline.Count); - } - } -} diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchVMFileContentCommandTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchVMFileContentCommandTests.cs deleted file mode 100644 index 86af74386b5e..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/Files/GetBatchVMFileContentCommandTests.cs +++ /dev/null @@ -1,101 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System; -using System.IO; -using Microsoft.Azure.Batch; -using Microsoft.Azure.Batch.Common; -using Microsoft.Azure.Batch.Protocol; -using Microsoft.Azure.Batch.Protocol.Entities; -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.Files -{ - public class GetBatchVMFileContentCommandTests - { - private GetBatchVMFileContentCommand cmdlet; - private Mock batchClientMock; - private Mock commandRuntimeMock; - - public GetBatchVMFileContentCommandTests() - { - batchClientMock = new Mock(); - commandRuntimeMock = new Mock(); - cmdlet = new GetBatchVMFileContentCommand() - { - CommandRuntime = commandRuntimeMock.Object, - BatchClient = batchClientMock.Object, - }; - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void GetBatchVMFileContentParametersTest() - { - // Setup cmdlet without required parameters - BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); - cmdlet.BatchContext = context; - cmdlet.PoolName = null; - cmdlet.VMName = null; - cmdlet.Name = null; - cmdlet.InputObject = null; - cmdlet.DestinationPath = null; - - string fileName = "startup\\stdout.txt"; - - // Don't go to the service on a GetTVMFile call or GetTVMFileProperties call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => - { - if (request is GetTVMFilePropertiesRequest) - { - GetTVMFilePropertiesResponse response = BatchTestHelpers.CreateGetTVMFilePropertiesResponse(fileName); - Task task = Task.Factory.StartNew(() => { return response; }); - return task; - } - if (request is GetTVMFileRequest) - { - GetTVMFileResponse response = new GetTVMFileResponse(); - Task task = Task.Factory.StartNew(() => { return response; }); - return task; - } - return null; - }); - cmdlet.AdditionalBehaviors = new List() { interceptor }; - - using (MemoryStream memStream = new MemoryStream()) - { - // Don't hit the file system during unit tests - cmdlet.DestinationStream = memStream; - - Assert.Throws(() => cmdlet.ExecuteCmdlet()); - - // Fill required Task file details - cmdlet.PoolName = "pool"; - cmdlet.VMName = "vm1"; - cmdlet.Name = fileName; - - // Verify no exceptions occur - cmdlet.ExecuteCmdlet(); - } - } - } -} diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/JobSchedules/GetBatchJobScheduleCommandTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/JobSchedules/GetBatchJobScheduleCommandTests.cs new file mode 100644 index 000000000000..e43ce0b8b3d5 --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/JobSchedules/GetBatchJobScheduleCommandTests.cs @@ -0,0 +1,227 @@ +// ---------------------------------------------------------------------------------- +// +// 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.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.JobSchedules +{ + public class GetBatchJobScheduleCommandTests + { + private GetBatchJobScheduleCommand cmdlet; + private Mock batchClientMock; + private Mock commandRuntimeMock; + + public GetBatchJobScheduleCommandTests() + { + batchClientMock = new Mock(); + commandRuntimeMock = new Mock(); + cmdlet = new GetBatchJobScheduleCommand() + { + CommandRuntime = commandRuntimeMock.Object, + BatchClient = batchClientMock.Object, + }; + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void GetBatchJobScheduleTest() + { + // Setup cmdlet to get a job schedule by id + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.Id = "testJobSchedule"; + cmdlet.Filter = null; + + // Build a CloudJobSchedule instead of querying the service on a Get CloudJobSchedule call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + CloudJobScheduleGetResponse response = BatchTestHelpers.CreateCloudJobScheduleGetResponse(cmdlet.Id); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Setup the cmdlet to write pipeline output to a list that can be examined later + List pipeline = new List(); + commandRuntimeMock.Setup(r => r.WriteObject(It.IsAny())).Callback(j => pipeline.Add((PSCloudJobSchedule)j)); + + cmdlet.ExecuteCmdlet(); + + // Verify that the cmdlet wrote the job schedule returned from the OM to the pipeline + Assert.Equal(1, pipeline.Count); + Assert.Equal(cmdlet.Id, pipeline[0].Id); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void ListBatchJobScheduleByODataFilterTest() + { + // Setup cmdlet to list job schedules using an OData filter + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.Id = null; + cmdlet.Filter = "startswith(id,'test')"; + + string[] idsOfConstructedJobSchedules = new[] { "test1", "test2" }; + + // Build some CloudJobSchedules instead of querying the service on a List CloudJobSchedules call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + CloudJobScheduleListResponse response = BatchTestHelpers.CreateCloudJobScheduleListResponse(idsOfConstructedJobSchedules); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Setup the cmdlet to write pipeline output to a list that can be examined later + List pipeline = new List(); + commandRuntimeMock.Setup(r => + r.WriteObject(It.IsAny())) + .Callback(j => pipeline.Add((PSCloudJobSchedule)j)); + + cmdlet.ExecuteCmdlet(); + + // Verify that the cmdlet wrote the constructed job schedules to the pipeline + Assert.Equal(2, pipeline.Count); + int jobScheduleCount = 0; + foreach (PSCloudJobSchedule j in pipeline) + { + Assert.True(idsOfConstructedJobSchedules.Contains(j.Id)); + jobScheduleCount++; + } + Assert.Equal(idsOfConstructedJobSchedules.Length, jobScheduleCount); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void ListBatchJobSchedulesWithoutFiltersTest() + { + // Setup cmdlet to list job schedules without filters + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.Id = null; + cmdlet.Filter = null; + + string[] idsOfConstructedJobSchedules = new[] { "id1", "id2", "id3" }; + + // Build some CloudJobSchedules instead of querying the service on a List CloudJobSchedules call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + CloudJobScheduleListResponse response = BatchTestHelpers.CreateCloudJobScheduleListResponse(idsOfConstructedJobSchedules); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Setup the cmdlet to write pipeline output to a list that can be examined later + List pipeline = new List(); + commandRuntimeMock.Setup(r => + r.WriteObject(It.IsAny())) + .Callback(j => pipeline.Add((PSCloudJobSchedule)j)); + + cmdlet.ExecuteCmdlet(); + + // Verify that the cmdlet wrote the constructed job schedules to the pipeline + Assert.Equal(3, pipeline.Count); + int jobScheduleCount = 0; + foreach (PSCloudJobSchedule j in pipeline) + { + Assert.True(idsOfConstructedJobSchedules.Contains(j.Id)); + jobScheduleCount++; + } + Assert.Equal(idsOfConstructedJobSchedules.Length, jobScheduleCount); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void ListJobSchedulesMaxCountTest() + { + // Verify default max count + Assert.Equal(Microsoft.Azure.Commands.Batch.Utils.Constants.DefaultMaxCount, cmdlet.MaxCount); + + // Setup cmdlet to list job schedules without filters and a max count + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.Id = null; + cmdlet.Filter = null; + int maxCount = 2; + cmdlet.MaxCount = maxCount; + + string[] idsOfConstructedJobSchedules = new[] { "id1", "id2", "id3" }; + + // Build some CloudJobSchedules instead of querying the service on a List CloudJobSchedules call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + CloudJobScheduleListResponse response = BatchTestHelpers.CreateCloudJobScheduleListResponse(idsOfConstructedJobSchedules); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + // Setup the cmdlet to write pipeline output to a list that can be examined later + List pipeline = new List(); + commandRuntimeMock.Setup(r => + r.WriteObject(It.IsAny())) + .Callback(j => pipeline.Add((PSCloudJobSchedule)j)); + + cmdlet.ExecuteCmdlet(); + + // Verify that the max count was respected + Assert.Equal(maxCount, pipeline.Count); + + // Verify setting max count <= 0 doesn't return nothing + cmdlet.MaxCount = -5; + pipeline.Clear(); + cmdlet.ExecuteCmdlet(); + + Assert.Equal(idsOfConstructedJobSchedules.Length, pipeline.Count); + } + + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/WorkItems/NewBatchWorkItemCommandTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/JobSchedules/NewBatchJobScheduleCommandTests.cs similarity index 68% rename from src/ResourceManager/Batch/Commands.Batch.Test/WorkItems/NewBatchWorkItemCommandTests.cs rename to src/ResourceManager/Batch/Commands.Batch.Test/JobSchedules/NewBatchJobScheduleCommandTests.cs index d35a9edf5110..013103c8e7d0 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/WorkItems/NewBatchWorkItemCommandTests.cs +++ b/src/ResourceManager/Batch/Commands.Batch.Test/JobSchedules/NewBatchJobScheduleCommandTests.cs @@ -15,7 +15,7 @@ using System; using Microsoft.Azure.Batch; using Microsoft.Azure.Batch.Protocol; -using Microsoft.Azure.Batch.Protocol.Entities; +using Microsoft.Azure.Batch.Protocol.Models; using Microsoft.Azure.Commands.Batch.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Moq; @@ -25,19 +25,19 @@ using Xunit; using BatchClient = Microsoft.Azure.Commands.Batch.Models.BatchClient; -namespace Microsoft.Azure.Commands.Batch.Test.WorkItems +namespace Microsoft.Azure.Commands.Batch.Test.JobSchedules { - public class NewBatchWorkItemCommandTests + public class NewBatchJobScheduleCommandTests { - private NewBatchWorkItemCommand cmdlet; + private NewBatchJobScheduleCommand cmdlet; private Mock batchClientMock; private Mock commandRuntimeMock; - public NewBatchWorkItemCommandTests() + public NewBatchJobScheduleCommandTests() { batchClientMock = new Mock(); commandRuntimeMock = new Mock(); - cmdlet = new NewBatchWorkItemCommand() + cmdlet = new NewBatchJobScheduleCommand() { CommandRuntime = commandRuntimeMock.Object, BatchClient = batchClientMock.Object, @@ -46,7 +46,7 @@ public NewBatchWorkItemCommandTests() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void NewBatchWorkItemParametersTest() + public void NewBatchJobScheduleParametersTest() { // Setup cmdlet without the required parameters BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); @@ -54,18 +54,20 @@ public void NewBatchWorkItemParametersTest() Assert.Throws(() => cmdlet.ExecuteCmdlet()); - cmdlet.Name = "testWorkItem"; + cmdlet.Id = "testJobSchedule"; - // Don't go to the service on an AddWorkItem call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => + // Don't go to the service on an Add CloudJobSchedule call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => { - if (request is AddWorkItemRequest) + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => { - AddWorkItemResponse response = new AddWorkItemResponse(); - Task task = Task.Factory.StartNew(() => { return response; }); + CloudJobScheduleAddResponse response = new CloudJobScheduleAddResponse(); + Task task = Task.FromResult(response); return task; - } - return null; + }; }); cmdlet.AdditionalBehaviors = new List() { interceptor }; diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/WorkItems/RemoveBatchWorkItemCommandTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/JobSchedules/RemoveBatchJobScheduleCommandTests.cs similarity index 68% rename from src/ResourceManager/Batch/Commands.Batch.Test/WorkItems/RemoveBatchWorkItemCommandTests.cs rename to src/ResourceManager/Batch/Commands.Batch.Test/JobSchedules/RemoveBatchJobScheduleCommandTests.cs index d56ced1e1723..c758acfbddfe 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/WorkItems/RemoveBatchWorkItemCommandTests.cs +++ b/src/ResourceManager/Batch/Commands.Batch.Test/JobSchedules/RemoveBatchJobScheduleCommandTests.cs @@ -15,7 +15,7 @@ using System; using Microsoft.Azure.Batch; using Microsoft.Azure.Batch.Protocol; -using Microsoft.Azure.Batch.Protocol.Entities; +using Microsoft.Azure.Batch.Protocol.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Moq; using System.Collections.Generic; @@ -24,19 +24,19 @@ using Xunit; using BatchClient = Microsoft.Azure.Commands.Batch.Models.BatchClient; -namespace Microsoft.Azure.Commands.Batch.Test.WorkItems +namespace Microsoft.Azure.Commands.Batch.Test.JobSchedules { - public class RemoveBatchWorkItemCommandTests + public class RemoveBatchJobScheduleCommandTests { - private RemoveBatchWorkItemCommand cmdlet; + private RemoveBatchJobScheduleCommand cmdlet; private Mock batchClientMock; private Mock commandRuntimeMock; - public RemoveBatchWorkItemCommandTests() + public RemoveBatchJobScheduleCommandTests() { batchClientMock = new Mock(); commandRuntimeMock = new Mock(); - cmdlet = new RemoveBatchWorkItemCommand() + cmdlet = new RemoveBatchJobScheduleCommand() { CommandRuntime = commandRuntimeMock.Object, BatchClient = batchClientMock.Object, @@ -45,7 +45,7 @@ public RemoveBatchWorkItemCommandTests() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void RemoveBatchWorkItemParametersTest() + public void RemoveBatchJobScheduleParametersTest() { // Setup cmdlet without the required parameters BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); @@ -57,18 +57,20 @@ public void RemoveBatchWorkItemParametersTest() Assert.Throws(() => cmdlet.ExecuteCmdlet()); - cmdlet.Name = "testWorkItem"; + cmdlet.Id = "testJobSchedule"; - // Don't go to the service on a DeleteWorkItem call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => + // Don't go to the service on a Delete CloudJobSchedule call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => { - if (request is DeleteWorkItemRequest) + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => { - DeleteWorkItemResponse response = new DeleteWorkItemResponse(); - Task task = Task.Factory.StartNew(() => { return response; }); + CloudJobScheduleDeleteResponse response = new CloudJobScheduleDeleteResponse(); + Task task = Task.FromResult(response); return task; - } - return null; + }; }); cmdlet.AdditionalBehaviors = new List() { interceptor }; diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Jobs/GetBatchJobCommandTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/Jobs/GetBatchJobCommandTests.cs index 7f9389135d92..595ede5cda55 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/Jobs/GetBatchJobCommandTests.cs +++ b/src/ResourceManager/Batch/Commands.Batch.Test/Jobs/GetBatchJobCommandTests.cs @@ -14,7 +14,7 @@ using Microsoft.Azure.Batch; using Microsoft.Azure.Batch.Protocol; -using Microsoft.Azure.Batch.Protocol.Entities; +using Microsoft.Azure.Batch.Protocol.Models; using Microsoft.Azure.Commands.Batch.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Moq; @@ -51,20 +51,21 @@ public void GetBatchJobTest() // Setup cmdlet to get a Job by name BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); cmdlet.BatchContext = context; - cmdlet.WorkItemName = "workItem"; - cmdlet.Name = "job-0000000001"; + cmdlet.Id = "job-1"; cmdlet.Filter = null; - // Build a Job instead of querying the service on a GetJob call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => + // Build a CloudJob instead of querying the service on a Get CloudJob call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => { - if (request is GetJobRequest) + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => { - GetJobResponse response = BatchTestHelpers.CreateGetJobResponse(cmdlet.Name); - Task task = Task.Factory.StartNew(() => { return response; }); + CloudJobGetResponse response = BatchTestHelpers.CreateCloudJobGetResponse(cmdlet.Id); + Task task = Task.FromResult(response); return task; - } - return null; + }; }); cmdlet.AdditionalBehaviors = new List() { interceptor }; @@ -74,34 +75,36 @@ public void GetBatchJobTest() cmdlet.ExecuteCmdlet(); - // Verify that the cmdlet wrote the Job returned from the OM to the pipeline + // Verify that the cmdlet wrote the job returned from the OM to the pipeline Assert.Equal(1, pipeline.Count); - Assert.Equal(cmdlet.Name, pipeline[0].Name); + Assert.Equal(cmdlet.Id, pipeline[0].Id); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void ListBatchJobsByODataFilterTest() { - // Setup cmdlet to list Jobs using an OData filter. Use WorkItemName input. + // Setup cmdlet to list jobs using an OData filter. Use JobScheduleId input. BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); cmdlet.BatchContext = context; - cmdlet.WorkItemName = "workItem"; - cmdlet.Name = null; + cmdlet.JobScheduleId = "jobSchedule"; + cmdlet.Id = null; cmdlet.Filter = "state -eq 'active'"; - string[] namesOfConstructedJobs = new[] { "job-0000000001", "job-0000000002" }; + string[] idsOfConstructedJobs = new[] { "job-1", "job-2" }; - // Build some Jobs instead of querying the service on a ListJobs call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => + // Build some CloudJobs instead of querying the service on a List CloudJobs call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => { - if (request is ListJobsRequest) + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => { - ListJobsResponse response = BatchTestHelpers.CreateListJobsResponse(namesOfConstructedJobs); - Task task = Task.Factory.StartNew(() => { return response; }); + CloudJobListResponse response = BatchTestHelpers.CreateCloudJobListResponse(idsOfConstructedJobs); + Task task = Task.FromResult(response); return task; - } - return null; + }; }); cmdlet.AdditionalBehaviors = new List() { interceptor }; @@ -113,40 +116,42 @@ public void ListBatchJobsByODataFilterTest() cmdlet.ExecuteCmdlet(); - // Verify that the cmdlet wrote the constructed Jobs to the pipeline + // Verify that the cmdlet wrote the constructed jobs to the pipeline Assert.Equal(2, pipeline.Count); int jobCount = 0; foreach (PSCloudJob j in pipeline) { - Assert.True(namesOfConstructedJobs.Contains(j.Name)); + Assert.True(idsOfConstructedJobs.Contains(j.Id)); jobCount++; } - Assert.Equal(namesOfConstructedJobs.Length, jobCount); + Assert.Equal(idsOfConstructedJobs.Length, jobCount); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void ListBatchJobsWithoutFiltersTest() { - // Setup cmdlet to list Jobs without filters. Use WorkItem input. + // Setup cmdlet to list jobs without filters. BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); cmdlet.BatchContext = context; - cmdlet.WorkItem = BatchTestHelpers.CreatePSCloudWorkItem(); - cmdlet.Name = null; + cmdlet.JobScheduleId = "jobSchedule"; + cmdlet.Id = null; cmdlet.Filter = null; - string[] namesOfConstructedJobs = new[] { "job-0000000001", "job-0000000002", "job-0000000003" }; + string[] idsOfConstructedJobs = new[] { "job-1", "job-2", "job-3" }; - // Build some Jobs instead of querying the service on a ListJobs call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => + // Build some CloudJobs instead of querying the service on a List CloudJobs call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => { - if (request is ListJobsRequest) + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => { - ListJobsResponse response = BatchTestHelpers.CreateListJobsResponse(namesOfConstructedJobs); - Task task = Task.Factory.StartNew(() => { return response; }); + CloudJobListResponse response = BatchTestHelpers.CreateCloudJobListResponse(idsOfConstructedJobs); + Task task = Task.FromResult(response); return task; - } - return null; + }; }); cmdlet.AdditionalBehaviors = new List() { interceptor }; @@ -158,15 +163,15 @@ public void ListBatchJobsWithoutFiltersTest() cmdlet.ExecuteCmdlet(); - // Verify that the cmdlet wrote the constructed Jobs to the pipeline + // Verify that the cmdlet wrote the constructed jobs to the pipeline Assert.Equal(3, pipeline.Count); int jobCount = 0; foreach (PSCloudJob j in pipeline) { - Assert.True(namesOfConstructedJobs.Contains(j.Name)); + Assert.True(idsOfConstructedJobs.Contains(j.Id)); jobCount++; } - Assert.Equal(namesOfConstructedJobs.Length, jobCount); + Assert.Equal(idsOfConstructedJobs.Length, jobCount); } [Fact] @@ -176,27 +181,29 @@ public void ListJobsMaxCountTest() // Verify default max count Assert.Equal(Microsoft.Azure.Commands.Batch.Utils.Constants.DefaultMaxCount, cmdlet.MaxCount); - // Setup cmdlet to list Jobs without filters and a max count + // Setup cmdlet to list jobs without filters and a max count BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); cmdlet.BatchContext = context; - cmdlet.WorkItem = BatchTestHelpers.CreatePSCloudWorkItem(); - cmdlet.Name = null; + cmdlet.JobScheduleId = "jobSchedule"; + cmdlet.Id = null; cmdlet.Filter = null; int maxCount = 2; cmdlet.MaxCount = maxCount; - string[] namesOfConstructedJobs = new[] { "job-0000000001", "job-0000000002", "job-0000000003" }; + string[] idsOfConstructedJobs = new[] { "job-1", "job-2", "job-3" }; - // Build some Jobs instead of querying the service on a ListJobs call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => + // Build some CloudJobs instead of querying the service on a List CloudJobs call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => { - if (request is ListJobsRequest) + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => { - ListJobsResponse response = BatchTestHelpers.CreateListJobsResponse(namesOfConstructedJobs); - Task task = Task.Factory.StartNew(() => { return response; }); + CloudJobListResponse response = BatchTestHelpers.CreateCloudJobListResponse(idsOfConstructedJobs); + Task task = Task.FromResult(response); return task; - } - return null; + }; }); cmdlet.AdditionalBehaviors = new List() { interceptor }; @@ -216,7 +223,7 @@ public void ListJobsMaxCountTest() pipeline.Clear(); cmdlet.ExecuteCmdlet(); - Assert.Equal(namesOfConstructedJobs.Length, pipeline.Count); + Assert.Equal(idsOfConstructedJobs.Length, pipeline.Count); } } } diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/VMUsers/NewBatchVMUserCommandTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/Jobs/NewBatchJobCommandTests.cs similarity index 70% rename from src/ResourceManager/Batch/Commands.Batch.Test/VMUsers/NewBatchVMUserCommandTests.cs rename to src/ResourceManager/Batch/Commands.Batch.Test/Jobs/NewBatchJobCommandTests.cs index 1af38c4d6ec5..c9cf123ac5f1 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/VMUsers/NewBatchVMUserCommandTests.cs +++ b/src/ResourceManager/Batch/Commands.Batch.Test/Jobs/NewBatchJobCommandTests.cs @@ -15,7 +15,7 @@ using System; using Microsoft.Azure.Batch; using Microsoft.Azure.Batch.Protocol; -using Microsoft.Azure.Batch.Protocol.Entities; +using Microsoft.Azure.Batch.Protocol.Models; using Microsoft.Azure.Commands.Batch.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Moq; @@ -25,19 +25,19 @@ using Xunit; using BatchClient = Microsoft.Azure.Commands.Batch.Models.BatchClient; -namespace Microsoft.Azure.Commands.Batch.Test.Users +namespace Microsoft.Azure.Commands.Batch.Test.Jobs { - public class NewBatchVMUserCommandTests + public class NewBatchJobCommandTests { - private NewBatchVMUserCommand cmdlet; + private NewBatchJobCommand cmdlet; private Mock batchClientMock; private Mock commandRuntimeMock; - public NewBatchVMUserCommandTests() + public NewBatchJobCommandTests() { batchClientMock = new Mock(); commandRuntimeMock = new Mock(); - cmdlet = new NewBatchVMUserCommand() + cmdlet = new NewBatchJobCommand() { CommandRuntime = commandRuntimeMock.Object, BatchClient = batchClientMock.Object, @@ -46,7 +46,7 @@ public NewBatchVMUserCommandTests() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void NewBatchVMUserParametersTest() + public void NewBatchJobParametersTest() { // Setup cmdlet without the required parameters BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); @@ -54,20 +54,20 @@ public void NewBatchVMUserParametersTest() Assert.Throws(() => cmdlet.ExecuteCmdlet()); - cmdlet.PoolName = "testPool"; - cmdlet.VMName = "vm1"; - cmdlet.Name = "testUser"; + cmdlet.Id = "testJob"; - // Don't go to the service on an AddTVMUser call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => + // Don't go to the service on an Add CloudJob call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => { - if (request is AddTVMUserRequest) + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => { - AddTVMUserResponse response = new AddTVMUserResponse(); - Task task = Task.Factory.StartNew(() => { return response; }); + CloudJobAddResponse response = new CloudJobAddResponse(); + Task task = Task.FromResult(response); return task; - } - return null; + }; }); cmdlet.AdditionalBehaviors = new List() { interceptor }; diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Jobs/RemoveBatchJobCommandTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/Jobs/RemoveBatchJobCommandTests.cs index 4d14a91d4777..b28657892c8d 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/Jobs/RemoveBatchJobCommandTests.cs +++ b/src/ResourceManager/Batch/Commands.Batch.Test/Jobs/RemoveBatchJobCommandTests.cs @@ -15,7 +15,7 @@ using System; using Microsoft.Azure.Batch; using Microsoft.Azure.Batch.Protocol; -using Microsoft.Azure.Batch.Protocol.Entities; +using Microsoft.Azure.Batch.Protocol.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Moq; using System.Collections.Generic; @@ -57,19 +57,20 @@ public void RemoveBatchJobParametersTest() Assert.Throws(() => cmdlet.ExecuteCmdlet()); - cmdlet.WorkItemName = "testWorkItem"; - cmdlet.Name = "job-0000000001"; + cmdlet.Id = "job-1"; - // Don't go to the service on a DeleteJob call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => + // Don't go to the service on a Delete CloudJob call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => { - if (request is DeleteJobRequest) + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => { - DeleteJobResponse response = new DeleteJobResponse(); - Task task = Task.Factory.StartNew(() => { return response; }); + CloudJobDeleteResponse response = new CloudJobDeleteResponse(); + Task task = Task.FromResult(response); return task; - } - return null; + }; }); cmdlet.AdditionalBehaviors = new List() { interceptor }; diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Models/BatchAccountContextTest.cs b/src/ResourceManager/Batch/Commands.Batch.Test/Models/BatchAccountContextTest.cs index 149e9ffaacac..7efe5b1e834a 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/Models/BatchAccountContextTest.cs +++ b/src/ResourceManager/Batch/Commands.Batch.Test/Models/BatchAccountContextTest.cs @@ -56,7 +56,7 @@ public void BatchAccountContextFromResourceTest() Assert.Equal(context.Location, resource.Location); Assert.Equal(context.State, resource.Properties.ProvisioningState.ToString()); Assert.Equal(context.AccountName, account); - Assert.Equal(context.TaskTenantUrl, string.Format("https://{0}", tenantUrlEnding)); + Assert.Equal(context.TaskTenantUrl, string.Format("https://{0}", endpoint)); Assert.Equal(context.Subscription, subscription); Assert.Equal(context.ResourceGroupName, resourceGroup); } diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Pools/GetBatchPoolCommandTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/Pools/GetBatchPoolCommandTests.cs index 0aa00cca5cc1..e5a1660a41af 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/Pools/GetBatchPoolCommandTests.cs +++ b/src/ResourceManager/Batch/Commands.Batch.Test/Pools/GetBatchPoolCommandTests.cs @@ -14,7 +14,7 @@ using Microsoft.Azure.Batch; using Microsoft.Azure.Batch.Protocol; -using Microsoft.Azure.Batch.Protocol.Entities; +using Microsoft.Azure.Batch.Protocol.Models; using Microsoft.Azure.Commands.Batch.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Moq; @@ -48,22 +48,24 @@ public GetBatchPoolCommandTests() [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetBatchPoolTest() { - // Setup cmdlet to get a Pool by name + // Setup cmdlet to get a pool by id BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); cmdlet.BatchContext = context; - cmdlet.Name = "testPool"; + cmdlet.Id = "testPool"; cmdlet.Filter = null; - // Build a Pool instead of querying the service on a GetPool call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => + // Build a CloudPool instead of querying the service on a Get CloudPool call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => { - if (request is GetPoolRequest) + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => { - GetPoolResponse response = BatchTestHelpers.CreateGetPoolResponse(cmdlet.Name); - Task task = Task.Factory.StartNew(() => { return response; }); + CloudPoolGetResponse response = BatchTestHelpers.CreateCloudPoolGetResponse(cmdlet.Id); + Task task = Task.FromResult(response); return task; - } - return null; + }; }); cmdlet.AdditionalBehaviors = new List() { interceptor }; @@ -73,33 +75,35 @@ public void GetBatchPoolTest() cmdlet.ExecuteCmdlet(); - // Verify that the cmdlet wrote the Pool returned from the OM to the pipeline + // Verify that the cmdlet wrote the pool returned from the OM to the pipeline Assert.Equal(1, pipeline.Count); - Assert.Equal(cmdlet.Name, pipeline[0].Name); + Assert.Equal(cmdlet.Id, pipeline[0].Id); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void ListBatchPoolByODataFilterTest() { - // Setup cmdlet to list Pools using an OData filter + // Setup cmdlet to list pools using an OData filter BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); cmdlet.BatchContext = context; - cmdlet.Name = null; - cmdlet.Filter = "startswith(name,'test')"; + cmdlet.Id = null; + cmdlet.Filter = "startswith(id,'test')"; - string[] namesOfConstructedPools = new[] { "test1", "test2" }; + string[] idsOfConstructedPools = new[] { "test1", "test2" }; - // Build some Pools instead of querying the service on a ListPools call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => + // Build some CloudPools instead of querying the service on a List CloudPools call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => { - if (request is ListPoolsRequest) + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => { - ListPoolsResponse response = BatchTestHelpers.CreateListPoolsResponse(namesOfConstructedPools); - Task task = Task.Factory.StartNew(() => { return response; }); + CloudPoolListResponse response = BatchTestHelpers.CreateCloudPoolListResponse(idsOfConstructedPools); + Task task = Task.FromResult(response); return task; - } - return null; + }; }); cmdlet.AdditionalBehaviors = new List() { interceptor }; @@ -111,39 +115,41 @@ public void ListBatchPoolByODataFilterTest() cmdlet.ExecuteCmdlet(); - // Verify that the cmdlet wrote the constructed Pools to the pipeline + // Verify that the cmdlet wrote the constructed pools to the pipeline Assert.Equal(2, pipeline.Count); int poolCount = 0; foreach (PSCloudPool p in pipeline) { - Assert.True(namesOfConstructedPools.Contains(p.Name)); + Assert.True(idsOfConstructedPools.Contains(p.Id)); poolCount++; } - Assert.Equal(namesOfConstructedPools.Length, poolCount); + Assert.Equal(idsOfConstructedPools.Length, poolCount); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void ListBatchPoolWithoutFiltersTest() { - // Setup cmdlet to list Pools without filters + // Setup cmdlet to list pools without filters BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); cmdlet.BatchContext = context; - cmdlet.Name = null; + cmdlet.Id = null; cmdlet.Filter = null; - string[] namesOfConstructedPools = new[] { "name1", "name2", "name3" }; + string[] idsOfConstructedPools = new[] { "pool1", "pool2", "pool3" }; - // Build some Pools instead of querying the service on a ListPools call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => + // Build some CloudPools instead of querying the service on a List CloudPools call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => { - if (request is ListPoolsRequest) + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => { - ListPoolsResponse response = BatchTestHelpers.CreateListPoolsResponse(namesOfConstructedPools); - Task task = Task.Factory.StartNew(() => { return response; }); + CloudPoolListResponse response = BatchTestHelpers.CreateCloudPoolListResponse(idsOfConstructedPools); + Task task = Task.FromResult(response); return task; - } - return null; + }; }); cmdlet.AdditionalBehaviors = new List() { interceptor }; @@ -155,15 +161,15 @@ public void ListBatchPoolWithoutFiltersTest() cmdlet.ExecuteCmdlet(); - // Verify that the cmdlet wrote the constructed Pools to the pipeline + // Verify that the cmdlet wrote the constructed pools to the pipeline Assert.Equal(3, pipeline.Count); int poolCount = 0; foreach (PSCloudPool p in pipeline) { - Assert.True(namesOfConstructedPools.Contains(p.Name)); + Assert.True(idsOfConstructedPools.Contains(p.Id)); poolCount++; } - Assert.Equal(namesOfConstructedPools.Length, poolCount); + Assert.Equal(idsOfConstructedPools.Length, poolCount); } [Fact] @@ -173,26 +179,28 @@ public void ListPoolsMaxCountTest() // Verify default max count Assert.Equal(Microsoft.Azure.Commands.Batch.Utils.Constants.DefaultMaxCount, cmdlet.MaxCount); - // Setup cmdlet to list Pools without filters and a max count + // Setup cmdlet to list pools without filters and a max count BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); cmdlet.BatchContext = context; - cmdlet.Name = null; + cmdlet.Id = null; cmdlet.Filter = null; int maxCount = 2; cmdlet.MaxCount = maxCount; - string[] namesOfConstructedPools = new[] { "name1", "name2", "name3" }; + string[] idsOfConstructedPools = new[] { "pool1", "pool2", "pool3" }; - // Build some Pools instead of querying the service on a ListPools call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => + // Build some CloudPools instead of querying the service on a List CloudPools call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => { - if (request is ListPoolsRequest) + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => { - ListPoolsResponse response = BatchTestHelpers.CreateListPoolsResponse(namesOfConstructedPools); - Task task = Task.Factory.StartNew(() => { return response; }); + CloudPoolListResponse response = BatchTestHelpers.CreateCloudPoolListResponse(idsOfConstructedPools); + Task task = Task.FromResult(response); return task; - } - return null; + }; }); cmdlet.AdditionalBehaviors = new List() { interceptor }; @@ -212,7 +220,7 @@ public void ListPoolsMaxCountTest() pipeline.Clear(); cmdlet.ExecuteCmdlet(); - Assert.Equal(namesOfConstructedPools.Length, pipeline.Count); + Assert.Equal(idsOfConstructedPools.Length, pipeline.Count); } } } diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Pools/NewBatchPoolCommandTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/Pools/NewBatchPoolCommandTests.cs index 7b09e522be20..e8a04858810e 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/Pools/NewBatchPoolCommandTests.cs +++ b/src/ResourceManager/Batch/Commands.Batch.Test/Pools/NewBatchPoolCommandTests.cs @@ -15,7 +15,7 @@ using System; using Microsoft.Azure.Batch; using Microsoft.Azure.Batch.Protocol; -using Microsoft.Azure.Batch.Protocol.Entities; +using Microsoft.Azure.Batch.Protocol.Models; using Microsoft.Azure.Commands.Batch.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Moq; @@ -54,18 +54,22 @@ public void NewBatchPoolParametersTest() Assert.Throws(() => cmdlet.ExecuteCmdlet()); - cmdlet.Name = "testPool"; + cmdlet.Id = "testPool"; + cmdlet.VirtualMachineSize = "small"; + cmdlet.OSFamily = "4"; - // Don't go to the service on an AddPool call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => + // Don't go to the service on an Add CloudPool call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => { - if (request is AddPoolRequest) + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => { - AddPoolResponse response = new AddPoolResponse(); - Task task = Task.Factory.StartNew(() => { return response; }); + CloudPoolAddResponse response = new CloudPoolAddResponse(); + Task task = Task.FromResult(response); return task; - } - return null; + }; }); cmdlet.AdditionalBehaviors = new List() { interceptor }; diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Pools/RemoveBatchPoolCommandTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/Pools/RemoveBatchPoolCommandTests.cs index 0ee6a34a0012..e59a3b2adf93 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/Pools/RemoveBatchPoolCommandTests.cs +++ b/src/ResourceManager/Batch/Commands.Batch.Test/Pools/RemoveBatchPoolCommandTests.cs @@ -15,7 +15,7 @@ using System; using Microsoft.Azure.Batch; using Microsoft.Azure.Batch.Protocol; -using Microsoft.Azure.Batch.Protocol.Entities; +using Microsoft.Azure.Batch.Protocol.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Moq; using System.Collections.Generic; @@ -57,18 +57,20 @@ public void RemoveBatchPoolParametersTest() Assert.Throws(() => cmdlet.ExecuteCmdlet()); - cmdlet.Name = "testPool"; + cmdlet.Id = "testPool"; - // Don't go to the service on a DeletePool call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => + // Don't go to the service on a Delete CloudPool call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => { - if (request is DeletePoolRequest) + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => { - DeletePoolResponse response = new DeletePoolResponse(); - Task task = Task.Factory.StartNew(() => { return response; }); + CloudPoolDeleteResponse response = new CloudPoolDeleteResponse(); + Task task = Task.FromResult(response); return task; - } - return null; + }; }); cmdlet.AdditionalBehaviors = new List() { interceptor }; diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Pools/StartBatchPoolResizeCommandTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/Pools/StartBatchPoolResizeCommandTests.cs index 1600ab1f6979..e1d2f3dccda8 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/Pools/StartBatchPoolResizeCommandTests.cs +++ b/src/ResourceManager/Batch/Commands.Batch.Test/Pools/StartBatchPoolResizeCommandTests.cs @@ -15,7 +15,7 @@ using System; using Microsoft.Azure.Batch; using Microsoft.Azure.Batch.Protocol; -using Microsoft.Azure.Batch.Protocol.Entities; +using Microsoft.Azure.Batch.Protocol.Models; using Microsoft.Azure.Commands.Batch.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Moq; @@ -51,22 +51,24 @@ public void StartPoolResizeParametersTest() { BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); cmdlet.BatchContext = context; - cmdlet.Name = null; + cmdlet.Id = null; Assert.Throws(() => cmdlet.ExecuteCmdlet()); - cmdlet.Name = "testPool"; + cmdlet.Id = "testPool"; - // Don't go to the service on a ResizePool call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => + // Don't go to the service on a Resize CloudPool call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => { - if (request is ResizePoolRequest) + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => { - ResizePoolResponse response = new ResizePoolResponse(); - Task task = Task.Factory.StartNew(() => { return response; }); + CloudPoolResizeResponse response = new CloudPoolResizeResponse(); + Task task = Task.FromResult(response); return task; - } - return null; + }; }); cmdlet.AdditionalBehaviors = new List() { interceptor }; diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Pools/StopBatchPoolResizeCommandTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/Pools/StopBatchPoolResizeCommandTests.cs index 0aa02b6a21de..b9dd7b7daf85 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/Pools/StopBatchPoolResizeCommandTests.cs +++ b/src/ResourceManager/Batch/Commands.Batch.Test/Pools/StopBatchPoolResizeCommandTests.cs @@ -15,6 +15,7 @@ using System; using Microsoft.Azure.Batch; using Microsoft.Azure.Batch.Protocol; +using Microsoft.Azure.Batch.Protocol.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Moq; using System.Collections.Generic; @@ -49,22 +50,24 @@ public void StopPoolResizeParametersTest() { BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); cmdlet.BatchContext = context; - cmdlet.Name = null; + cmdlet.Id = null; Assert.Throws(() => cmdlet.ExecuteCmdlet()); - cmdlet.Name = "testPool"; + cmdlet.Id = "testPool"; - // Don't go to the service on a StopPoolResize call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => + // Don't go to the service on a StopResize CloudPool call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => { - if (request is StopPoolResizeRequest) + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => { - StopPoolResizeResponse response = new StopPoolResizeResponse(); - Task task = Task.Factory.StartNew(() => { return response; }); + CloudPoolStopResizeResponse response = new CloudPoolStopResizeResponse(); + Task task = Task.FromResult(response); return task; - } - return null; + }; }); cmdlet.AdditionalBehaviors = new List() { interceptor }; diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/VMTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ComputeNodeTests.cs similarity index 73% rename from src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/VMTests.cs rename to src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ComputeNodeTests.cs index 6363d6b5b37e..51c28d77cd9d 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/VMTests.cs +++ b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ComputeNodeTests.cs @@ -24,33 +24,33 @@ namespace Microsoft.Azure.Commands.Batch.Test.ScenarioTests { - public class VMTests + public class ComputeNodeTests { private const string accountName = ScenarioTestHelpers.SharedAccount; - private const string poolName = ScenarioTestHelpers.SharedPool; + private const string poolId = ScenarioTestHelpers.SharedPool; [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestGetVMByName() + public void TestGetComputeNodeById() { BatchController controller = BatchController.NewInstance; - controller.RunPsTest(string.Format("Test-GetVMByName '{0}' '{1}'", accountName, poolName)); + controller.RunPsTest(string.Format("Test-GetComputeNodeById '{0}' '{1}'", accountName, poolId)); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestListVMsByFilter() + public void TestListComputeNodesByFilter() { BatchController controller = BatchController.NewInstance; BatchAccountContext context = null; string state = "idle"; int matches = 0; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-ListVMsByFilter '{0}' '{1}' '{2}' '{3}'", accountName, poolName, state, matches) }; }, + () => { return new string[] { string.Format("Test-ListComputeNodesByFilter '{0}' '{1}' '{2}' '{3}'", accountName, poolId, state, matches) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - matches = ScenarioTestHelpers.GetPoolCurrentDedicated(controller, context, poolName); + matches = ScenarioTestHelpers.GetPoolCurrentDedicated(controller, context, poolId); }, null, TestUtilities.GetCallingClass(), @@ -59,26 +59,26 @@ public void TestListVMsByFilter() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestListVMsWithMaxCount() + public void TestListComputeNodesWithMaxCount() { BatchController controller = BatchController.NewInstance; int maxCount = 1; - controller.RunPsTest(string.Format("Test-ListVMsWithMaxCount '{0}' '{1}' '{2}'", accountName, poolName, maxCount)); + controller.RunPsTest(string.Format("Test-ListComputeNodesWithMaxCount '{0}' '{1}' '{2}'", accountName, poolId, maxCount)); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestListAllVMs() + public void TestListAllComputeNodes() { BatchController controller = BatchController.NewInstance; BatchAccountContext context = null; - int vmCount = 0; + int computeNodeCount = 0; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-ListAllVMs '{0}' '{1}' '{2}'", accountName, poolName, vmCount) }; }, + () => { return new string[] { string.Format("Test-ListAllComputeNodes '{0}' '{1}' '{2}'", accountName, poolId, computeNodeCount) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - vmCount = ScenarioTestHelpers.GetPoolCurrentDedicated(controller, context, poolName); + computeNodeCount = ScenarioTestHelpers.GetPoolCurrentDedicated(controller, context, poolId); }, null, TestUtilities.GetCallingClass(), @@ -87,18 +87,17 @@ public void TestListAllVMs() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestListVMPipeline() + public void TestListComputeNodePipeline() { BatchController controller = BatchController.NewInstance; BatchAccountContext context = null; - string state = "idle"; - int vmCount = 0; + int computeNodeCount = 0; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-ListVMPipeline '{0}' '{1}' '{2}'", accountName, poolName, vmCount) }; }, + () => { return new string[] { string.Format("Test-ListComputeNodePipeline '{0}' '{1}' '{2}'", accountName, poolId, computeNodeCount) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - vmCount = ScenarioTestHelpers.GetPoolCurrentDedicated(controller, context, poolName); + computeNodeCount = ScenarioTestHelpers.GetPoolCurrentDedicated(controller, context, poolId); }, null, TestUtilities.GetCallingClass(), @@ -107,8 +106,8 @@ public void TestListVMPipeline() } // Cmdlets that use the HTTP Recorder interceptor for use with scenario tests - [Cmdlet(VerbsCommon.Get, "AzureBatchVM_ST", DefaultParameterSetName = Constants.ODataFilterParameterSet)] - public class GetBatchVMScenarioTestCommand : GetBatchVMCommand + [Cmdlet(VerbsCommon.Get, "AzureBatchComputeNode_ST", DefaultParameterSetName = Constants.ODataFilterParameterSet)] + public class GetBatchComputeNodeScenarioTestCommand : GetBatchComputeNodeCommand { public override void ExecuteCmdlet() { diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ComputeNodeTests.ps1 b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ComputeNodeTests.ps1 new file mode 100644 index 000000000000..b958e463f5cd --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ComputeNodeTests.ps1 @@ -0,0 +1,118 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.SYNOPSIS +Tests querying for a Batch compute node by id +#> +function Test-GetComputeNodeById +{ + param([string]$accountName, [string]$poolId) + + $context = Get-AzureBatchAccountKeys -Name $accountName + $computeNodeId = (Get-AzureBatchComputeNode_ST -PoolId $poolId -BatchContext $context)[0].Id + + $computeNode = Get-AzureBatchComputeNode_ST -PoolId $poolId -Id $computeNodeId -BatchContext $context + + Assert-AreEqual $computeNodeId $computeNode.Id + + # Verify positional parameters also work + $computeNode = Get-AzureBatchComputeNode_ST $poolId $computeNodeId -BatchContext $context + + Assert-AreEqual $computeNodeId $computeNode.Id +} + +<# +.SYNOPSIS +Tests querying for Batch compute nodes using a filter +#> +function Test-ListComputeNodesByFilter +{ + param([string]$accountName, [string]$poolId, [string]$state, [string]$matches) + + $context = Get-AzureBatchAccountKeys -Name $accountName + $filter = "state eq '" + "$state" + "'" + + $computeNodes = Get-AzureBatchComputeNode_ST -PoolId $poolId -Filter $filter -BatchContext $context + + Assert-AreEqual $matches $computeNodes.Length + foreach($node in $computeNodes) + { + Assert-AreEqual $state $node.State.ToString().ToLower() + } + + # Verify parent object parameter set also works + $pool = Get-AzureBatchPool_ST $poolId -BatchContext $context + $computeNodes = Get-AzureBatchComputeNode_ST -Pool $pool -Filter $filter -BatchContext $context + + Assert-AreEqual $matches $computeNodes.Length + foreach($node in $computeNodes) + { + Assert-AreEqual $state $node.State.ToString().ToLower() + } +} + +<# +.SYNOPSIS +Tests querying for Batch compute nodes and supplying a max count +#> +function Test-ListComputeNodesWithMaxCount +{ + param([string]$accountName, [string]$poolId, [string]$maxCount) + + $context = Get-AzureBatchAccountKeys -Name $accountName + $computeNodes = Get-AzureBatchComputeNode_ST -PoolId $poolId -MaxCount $maxCount -BatchContext $context + + Assert-AreEqual $maxCount $computeNodes.Length + + # Verify parent object parameter set also works + $pool = Get-AzureBatchPool_ST $poolId -BatchContext $context + $computeNodes = Get-AzureBatchComputeNode_ST -Pool $pool -MaxCount $maxCount -BatchContext $context + + Assert-AreEqual $maxCount $computeNodes.Length +} + +<# +.SYNOPSIS +Tests querying for all compute nodes under a pool +#> +function Test-ListAllComputeNodes +{ + param([string]$accountName, [string]$poolId, [string]$count) + + $context = Get-AzureBatchAccountKeys -Name $accountName + $computeNodes = Get-AzureBatchComputeNode_ST -PoolId $poolId -BatchContext $context + + Assert-AreEqual $count $computeNodes.Length + + # Verify parent object parameter set also works + $pool = Get-AzureBatchPool_ST $poolId -BatchContext $context + $computeNodes = Get-AzureBatchComputeNode_ST -Pool $pool -BatchContext $context + + Assert-AreEqual $count $computeNodes.Length +} + +<# +.SYNOPSIS +Tests piping Get-AzureBatchPool into Get-AzureBatchComputeNode +#> +function Test-ListComputeNodePipeline +{ + param([string]$accountName, [string]$poolId, [string]$count) + + $context = Get-AzureBatchAccountKeys -Name $accountName + $computeNodes = Get-AzureBatchPool_ST -Id $poolId -BatchContext $context | Get-AzureBatchComputeNode_ST -BatchContext $context + + Assert-AreEqual $count $computeNodes.Count +} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/VMUserTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ComputeNodeUserTests.cs similarity index 63% rename from src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/VMUserTests.cs rename to src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ComputeNodeUserTests.cs index 423ebbc293af..fbce8e9cd085 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/VMUserTests.cs +++ b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ComputeNodeUserTests.cs @@ -14,7 +14,7 @@ using System; using Microsoft.Azure.Batch; -using Microsoft.Azure.Batch.Protocol.Entities; +using Microsoft.Azure.Batch.Protocol.Models; using Microsoft.Azure.Commands.Batch.Models; using Microsoft.Azure.Test; using Microsoft.WindowsAzure.Commands.ScenarioTest; @@ -25,26 +25,27 @@ namespace Microsoft.Azure.Commands.Batch.Test.ScenarioTests { - public class VMUserTests + public class ComputeNodeUserTests { private const string accountName = ScenarioTestHelpers.SharedAccount; - private const string poolName = ScenarioTestHelpers.SharedPool; - private const string vmName = ScenarioTestHelpers.SharedPoolVM; + private const string poolId = ScenarioTestHelpers.SharedPool; [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestCreateUser() + public void TestCreateComputeNodeUser() { BatchController controller = BatchController.NewInstance; - string userName = "testCreateUser"; + BatchAccountContext context = null; + string computeNodeId = null; + string userName = "createuser"; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-CreateUser '{0}' '{1}' '{2}' '{3}' 0", accountName, poolName, vmName, userName) }; }, - null, + () => { return new string[] { string.Format("Test-CreateComputeNodeUser '{0}' '{1}' '{2}' '{3}' 0", accountName, poolId, computeNodeId, userName) }; }, () => { - BatchAccountContext context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.DeleteUser(controller, context, poolName, vmName, userName); + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); + computeNodeId = ScenarioTestHelpers.GetComputeNodeId(controller, context, poolId); }, + null, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -52,18 +53,20 @@ public void TestCreateUser() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestCreateUserPipeline() + public void TestCreateComputeNodeUserPipeline() { BatchController controller = BatchController.NewInstance; - string userName = "testCreateUserPipe"; + BatchAccountContext context = null; + string computeNodeId = null; + string userName = "createuser2"; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-CreateUser '{0}' '{1}' '{2}' '{3}' 1", accountName, poolName, vmName, userName) }; }, - null, + () => { return new string[] { string.Format("Test-CreateComputeNodeUser '{0}' '{1}' '{2}' '{3}' 1", accountName, poolId, computeNodeId, userName) }; }, () => { - BatchAccountContext context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.DeleteUser(controller, context, poolName, vmName, userName); + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); + computeNodeId = ScenarioTestHelpers.GetComputeNodeId(controller, context, poolId); }, + null, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -71,17 +74,19 @@ public void TestCreateUserPipeline() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestDeleteUser() + public void TestDeleteComputeNodeUser() { BatchController controller = BatchController.NewInstance; BatchAccountContext context = null; - string userName = "testDeleteUser"; + string computeNodeId = null; + string userName = "deleteuser"; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-DeleteUser '{0}' '{1}' '{2}' '{3}'", accountName, poolName, vmName, userName) }; }, + () => { return new string[] { string.Format("Test-DeleteComputeNodeUser '{0}' '{1}' '{2}' '{3}'", accountName, poolId, computeNodeId, userName) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestUser(controller, context, poolName, vmName, userName); + computeNodeId = ScenarioTestHelpers.GetComputeNodeId(controller, context, poolId); + ScenarioTestHelpers.CreateComputeNodeUser(controller, context, poolId, computeNodeId, userName); }, null, TestUtilities.GetCallingClass(), @@ -90,8 +95,8 @@ public void TestDeleteUser() } // Cmdlets that use the HTTP Recorder interceptor for use with scenario tests - [Cmdlet(VerbsCommon.New, "AzureBatchVMUser_ST")] - public class NewBatchVMUserScenarioTestCommand : NewBatchVMUserCommand + [Cmdlet(VerbsCommon.New, "AzureBatchComputeNodeUser_ST")] + public class NewBatchComputeNodeUserScenarioTestCommand : NewBatchComputeNodeUserCommand { public override void ExecuteCmdlet() { @@ -100,8 +105,8 @@ public override void ExecuteCmdlet() } } - [Cmdlet(VerbsCommon.Remove, "AzureBatchVMUser_ST")] - public class RemoveBatchVMUserScenarioTestCommand : RemoveBatchVMUserCommand + [Cmdlet(VerbsCommon.Remove, "AzureBatchComputeNodeUser_ST")] + public class RemoveBatchComputeNodeUserScenarioTestCommand : RemoveBatchComputeNodeUserCommand { public override void ExecuteCmdlet() { diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ComputeNodeUserTests.ps1 b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ComputeNodeUserTests.ps1 new file mode 100644 index 000000000000..31e4b023f8fe --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ComputeNodeUserTests.ps1 @@ -0,0 +1,59 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.SYNOPSIS +Tests creating a compute node user +#> +function Test-CreateComputeNodeUser +{ + param([string]$accountName, [string]$poolId, [string]$computeNodeId, [string]$userName, [string]$usePipeline) + + $context = Get-AzureBatchAccountKeys -Name $accountName + $password = "Password1234!" + + # Create a user + if ($usePipeline -eq '1') + { + $expiryTime = New-Object DateTime -ArgumentList @(2020,01,01) + $computeNode = Get-AzureBatchComputeNode_ST $poolId $computeNodeId -BatchContext $context + $computeNode | New-AzureBatchComputeNodeUser_ST -Name $userName -Password $password -ExpiryTime $expiryTime -IsAdmin -BatchContext $context + } + else + { + New-AzureBatchComputeNodeUser_ST -PoolId $poolId -ComputeNodeId $computeNodeId -Name $userName -Password $password -BatchContext $context + } + + # Verify that a user was created + # There is currently no Get/List user API, so verify by calling the delete operation. + # If the user account was created, it will succeed; otherwsie, it will throw a 404 error. + Remove-AzureBatchComputeNodeUser_ST -PoolId $poolId -ComputeNodeId $computeNodeId -Name $userName -Force -BatchContext $context +} + +<# +.SYNOPSIS +Tests deleting a compute node user +#> +function Test-DeleteComputeNodeUser +{ + param([string]$accountName, [string]$poolId, [string]$computeNodeId, [string]$userName) + + $context = Get-AzureBatchAccountKeys -Name $accountName + + Remove-AzureBatchComputeNodeUser_ST -PoolId $poolId -ComputeNodeId $computeNodeId -Name $userName -Force -BatchContext $context + + # Verify the user was deleted + # There is currently no Get/List user API, so try to delete the user again and verify that it fails. + Assert-Throws { Remove-AzureBatchComputeNodeUser_ST -PoolId $poolId -ComputeNodeId $computeNodeId -Name $userName -Force -BatchContext $context } +} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/FileTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/FileTests.cs index eb24df79ff99..0b25a1e22e99 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/FileTests.cs +++ b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/FileTests.cs @@ -15,7 +15,7 @@ using System; using System.IO; using Microsoft.Azure.Batch; -using Microsoft.Azure.Batch.Protocol.Entities; +using Microsoft.Azure.Batch.Protocol.Models; using Microsoft.Azure.Commands.Batch.Models; using Microsoft.Azure.Test; using Microsoft.WindowsAzure.Commands.ScenarioTest; @@ -29,34 +29,31 @@ namespace Microsoft.Azure.Commands.Batch.Test.ScenarioTests public class FileTests { private const string accountName = ScenarioTestHelpers.SharedAccount; - private const string poolName = ScenarioTestHelpers.SharedPool; - private const string vmName = ScenarioTestHelpers.SharedPoolVM; + private const string poolId = ScenarioTestHelpers.SharedPool; private const string startTaskStdOutName = ScenarioTestHelpers.SharedPoolStartTaskStdOut; private const string startTaskStdOutContent = ScenarioTestHelpers.SharedPoolStartTaskStdOutContent; [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestGetTaskFileByName() + public void TestGetNodeFileByTaskByName() { BatchController controller = BatchController.NewInstance; - string workItemName = "testGetTaskFileWI"; - string jobName = null; - string taskName = "testTask"; - string taskFileName = "stdout.txt"; + string jobId = "testGetNodeFileByTaskJob"; + string taskId = "testTask"; + string nodeFileName = "stdout.txt"; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-GetTaskFileByName '{0}' '{1}' '{2}' '{3}' '{4}'", accountName, workItemName, jobName, taskName, taskFileName) }; }, + () => { return new string[] { string.Format("Test-GetNodeFileByTaskByName '{0}' '{1}' '{2}' '{3}'", accountName, jobId, taskId, nodeFileName) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName); - jobName = ScenarioTestHelpers.WaitForRecentJob(controller, context, workItemName); - ScenarioTestHelpers.CreateTestTask(controller, context, workItemName, jobName, taskName); - ScenarioTestHelpers.WaitForTaskCompletion(controller, context, workItemName, jobName, taskName); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId); + ScenarioTestHelpers.CreateTestTask(controller, context, jobId, taskId); + ScenarioTestHelpers.WaitForTaskCompletion(controller, context, jobId, taskId); }, () => { - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName); + ScenarioTestHelpers.DeleteJob(controller, context, jobId); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -64,28 +61,26 @@ public void TestGetTaskFileByName() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestListTaskFilesByFilter() + public void TestListNodeFilesByTaskByFilter() { BatchController controller = BatchController.NewInstance; - string workItemName = "testListTaskFileFilterWI"; - string jobName = null; - string taskName = "testTask"; - string taskFilePrefix = "std"; + string jobId = "listNodeFileByTaskFilterJob"; + string taskId = "testTask"; + string nodeFilePrefix = "std"; int matches = 2; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-ListTaskFilesByFilter '{0}' '{1}' '{2}' '{3}' '{4}' '{5}'", accountName, workItemName, jobName, taskName, taskFilePrefix, matches) }; }, + () => { return new string[] { string.Format("Test-ListNodeFilesByTaskByFilter '{0}' '{1}' '{2}' '{3}' '{4}'", accountName, jobId, taskId, nodeFilePrefix, matches) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName); - jobName = ScenarioTestHelpers.WaitForRecentJob(controller, context, workItemName); - ScenarioTestHelpers.CreateTestTask(controller, context, workItemName, jobName, taskName); - ScenarioTestHelpers.WaitForTaskCompletion(controller, context, workItemName, jobName, taskName); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId); + ScenarioTestHelpers.CreateTestTask(controller, context, jobId, taskId); + ScenarioTestHelpers.WaitForTaskCompletion(controller, context, jobId, taskId); }, () => { - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName); + ScenarioTestHelpers.DeleteJob(controller, context, jobId); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -93,27 +88,25 @@ public void TestListTaskFilesByFilter() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestListTaskFilesWithMaxCount() + public void TestListNodeFilesByTaskWithMaxCount() { BatchController controller = BatchController.NewInstance; - string workItemName = "testTaskFileMaxWI"; - string jobName = null; - string taskName = "testTask"; + string jobId = "nodeFileByTaskMaxJob"; + string taskId = "testTask"; int maxCount = 1; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-ListTaskFilesWithMaxCount '{0}' '{1}' '{2}' '{3}' '{4}'", accountName, workItemName, jobName, taskName, maxCount) }; }, + () => { return new string[] { string.Format("Test-ListNodeFilesByTaskWithMaxCount '{0}' '{1}' '{2}' '{3}'", accountName, jobId, taskId, maxCount) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName); - jobName = ScenarioTestHelpers.WaitForRecentJob(controller, context, workItemName); - ScenarioTestHelpers.CreateTestTask(controller, context, workItemName, jobName, taskName); - ScenarioTestHelpers.WaitForTaskCompletion(controller, context, workItemName, jobName, taskName); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId); + ScenarioTestHelpers.CreateTestTask(controller, context, jobId, taskId); + ScenarioTestHelpers.WaitForTaskCompletion(controller, context, jobId, taskId); }, () => { - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName); + ScenarioTestHelpers.DeleteJob(controller, context, jobId); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -121,27 +114,25 @@ public void TestListTaskFilesWithMaxCount() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestListAllTaskFiles() + public void TestListAllNodeFilesByTask() { BatchController controller = BatchController.NewInstance; - string workItemName = "testListTaskFileWI"; - string jobName = null; - string taskName = "testTask"; + string jobId = "listNodeFilesByTaskJob"; + string taskId = "testTask"; int count = 4; // ProcessEnv, stdout, stderr, wd BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-ListAllTaskFiles '{0}' '{1}' '{2}' '{3}' '{4}'", accountName, workItemName, jobName, taskName, count) }; }, + () => { return new string[] { string.Format("Test-ListAllNodeFilesByTask '{0}' '{1}' '{2}' '{3}'", accountName, jobId, taskId, count) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName); - jobName = ScenarioTestHelpers.WaitForRecentJob(controller, context, workItemName); - ScenarioTestHelpers.CreateTestTask(controller, context, workItemName, jobName, taskName); - ScenarioTestHelpers.WaitForTaskCompletion(controller, context, workItemName, jobName, taskName); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId); + ScenarioTestHelpers.CreateTestTask(controller, context, jobId, taskId); + ScenarioTestHelpers.WaitForTaskCompletion(controller, context, jobId, taskId); }, () => { - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName); + ScenarioTestHelpers.DeleteJob(controller, context, jobId); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -149,27 +140,25 @@ public void TestListAllTaskFiles() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestListTaskFilesRecursive() + public void TestListNodeFilesByTaskRecursive() { BatchController controller = BatchController.NewInstance; - string workItemName = "testListTFRecursiveWI"; - string jobName = null; - string taskName = "testTask"; + string jobId = "listNodeFileByTaskRecursiveJob"; + string taskId = "testTask"; string newFile = "testFile.txt"; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-ListTaskFilesRecursive '{0}' '{1}' '{2}' '{3}' '{4}'", accountName, workItemName, jobName, taskName, newFile) }; }, + () => { return new string[] { string.Format("Test-ListNodeFilesByTaskRecursive '{0}' '{1}' '{2}' '{3}'", accountName, jobId, taskId, newFile) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName); - jobName = ScenarioTestHelpers.WaitForRecentJob(controller, context, workItemName); - ScenarioTestHelpers.CreateTestTask(controller, context, workItemName, jobName, taskName, string.Format("cmd /c echo \"test file\" > {0}", newFile)); - ScenarioTestHelpers.WaitForTaskCompletion(controller, context, workItemName, jobName, taskName); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId); + ScenarioTestHelpers.CreateTestTask(controller, context, jobId, taskId, string.Format("cmd /c echo \"test file\" > {0}", newFile)); + ScenarioTestHelpers.WaitForTaskCompletion(controller, context, jobId, taskId); }, () => { - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName); + ScenarioTestHelpers.DeleteJob(controller, context, jobId); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -177,27 +166,25 @@ public void TestListTaskFilesRecursive() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestListTaskFilePipeline() + public void TestListNodeFileByTaskPipeline() { BatchController controller = BatchController.NewInstance; - string workItemName = "testListTaskPipeWI"; - string jobName = null; - string taskName = "testTask"; + string jobId = "nodeFileByTaskPipe"; + string taskId = "testTask"; int count = 4; // ProcessEnv, stdout, stderr, wd BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-ListTaskFilePipeline '{0}' '{1}' '{2}' '{3}' '{4}'", accountName, workItemName, jobName, taskName, count) }; }, + () => { return new string[] { string.Format("Test-ListNodeFileByTaskPipeline '{0}' '{1}' '{2}' '{3}'", accountName, jobId, taskId, count) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName); - jobName = ScenarioTestHelpers.WaitForRecentJob(controller, context, workItemName); - ScenarioTestHelpers.CreateTestTask(controller, context, workItemName, jobName, taskName); - ScenarioTestHelpers.WaitForTaskCompletion(controller, context, workItemName, jobName, taskName); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId); + ScenarioTestHelpers.CreateTestTask(controller, context, jobId, taskId); + ScenarioTestHelpers.WaitForTaskCompletion(controller, context, jobId, taskId); }, () => { - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName); + ScenarioTestHelpers.DeleteJob(controller, context, jobId); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -205,29 +192,27 @@ public void TestListTaskFilePipeline() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestGetTaskFileContentByName() + public void TestGetNodeFileContentByTaskByName() { BatchController controller = BatchController.NewInstance; - string workItemName = "testGetTaskFileContentWI"; - string jobName = null; - string taskName = "testTask"; + string jobId = "nodeFileContentByTaskJob"; + string taskId = "testTask"; string fileName = "testFile.txt"; - string taskFileName = string.Format("wd\\{0}", fileName); + string nodeFileName = string.Format("wd\\{0}", fileName); string fileContents = "test file contents"; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-GetTaskFileContentByName '{0}' '{1}' '{2}' '{3}' '{4}' '{5}'", accountName, workItemName, jobName, taskName, taskFileName, fileContents) }; }, + () => { return new string[] { string.Format("Test-GetNodeFileContentByTaskByName '{0}' '{1}' '{2}' '{3}' '{4}'", accountName, jobId, taskId, nodeFileName, fileContents) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName); - jobName = ScenarioTestHelpers.WaitForRecentJob(controller, context, workItemName); - ScenarioTestHelpers.CreateTestTask(controller, context, workItemName, jobName, taskName, string.Format("cmd /c echo {0} > {1}", fileContents, fileName)); - ScenarioTestHelpers.WaitForTaskCompletion(controller, context, workItemName, jobName, taskName); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId); + ScenarioTestHelpers.CreateTestTask(controller, context, jobId, taskId, string.Format("cmd /c echo {0} > {1}", fileContents, fileName)); + ScenarioTestHelpers.WaitForTaskCompletion(controller, context, jobId, taskId); }, () => { - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName); + ScenarioTestHelpers.DeleteJob(controller, context, jobId); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -235,29 +220,27 @@ public void TestGetTaskFileContentByName() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestGetTaskFileContentPipeline() + public void TestGetNodeFileContentByTaskPipeline() { BatchController controller = BatchController.NewInstance; - string workItemName = "testGetTFContentPipeWI"; - string jobName = null; - string taskName = "testTask"; + string jobId = "nodeFileContentByTaskPipe"; + string taskId = "testTask"; string fileName = "testFile.txt"; - string taskFileName = string.Format("wd\\{0}", fileName); + string nodeFileName = string.Format("wd\\{0}", fileName); string fileContents = "test file contents"; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-GetTaskFileContentPipeline '{0}' '{1}' '{2}' '{3}' '{4}' '{5}'", accountName, workItemName, jobName, taskName, taskFileName, fileContents) }; }, + () => { return new string[] { string.Format("Test-GetNodeFileContentByTaskPipeline '{0}' '{1}' '{2}' '{3}' '{4}'", accountName, jobId, taskId, nodeFileName, fileContents) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName); - jobName = ScenarioTestHelpers.WaitForRecentJob(controller, context, workItemName); - ScenarioTestHelpers.CreateTestTask(controller, context, workItemName, jobName, taskName, string.Format("cmd /c echo {0} > {1}", fileContents, fileName)); - ScenarioTestHelpers.WaitForTaskCompletion(controller, context, workItemName, jobName, taskName); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId); + ScenarioTestHelpers.CreateTestTask(controller, context, jobId, taskId, string.Format("cmd /c echo {0} > {1}", fileContents, fileName)); + ScenarioTestHelpers.WaitForTaskCompletion(controller, context, jobId, taskId); }, () => { - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName); + ScenarioTestHelpers.DeleteJob(controller, context, jobId); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -265,116 +248,206 @@ public void TestGetTaskFileContentPipeline() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestGetVMFileByName() + public void TestGetNodeFileByComputeNodeByName() { BatchController controller = BatchController.NewInstance; - string vmFileName = "startup\\stdout.txt"; - controller.RunPsTest(string.Format("Test-GetVMFileByName '{0}' '{1}' '{2}' '{3}'", accountName, poolName, vmName, vmFileName)); + BatchAccountContext context = null; + string computeNodeId = null; + string nodeFileName = "startup\\stdout.txt"; + controller.RunPsTestWorkflow( + () => { return new string[] { string.Format("Test-GetNodeFileByComputeNodeByName '{0}' '{1}' '{2}' '{3}'", accountName, poolId, computeNodeId, nodeFileName) }; }, + () => + { + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); + computeNodeId = ScenarioTestHelpers.GetComputeNodeId(controller, context, poolId); + }, + null, + TestUtilities.GetCallingClass(), + TestUtilities.GetCurrentMethodName()); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestListVMFilesByFilter() + public void TestListNodeFilesByComputeNodeByFilter() { BatchController controller = BatchController.NewInstance; - string vmFilePrefix = "s"; + BatchAccountContext context = null; + string computeNodeId = null; + string nodeFilePrefix = "s"; int matches = 2; - controller.RunPsTest(string.Format("Test-ListVMFilesByFilter '{0}' '{1}' '{2}' '{3}' '{4}'", accountName, poolName, vmName, vmFilePrefix, matches)); + controller.RunPsTestWorkflow( + () => { return new string[] { string.Format("Test-ListNodeFilesByComputeNodeByFilter '{0}' '{1}' '{2}' '{3}' '{4}'", accountName, poolId, computeNodeId, nodeFilePrefix, matches) }; }, + () => + { + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); + computeNodeId = ScenarioTestHelpers.GetComputeNodeId(controller, context, poolId); + }, + null, + TestUtilities.GetCallingClass(), + TestUtilities.GetCurrentMethodName()); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestListVMFilesWithMaxCount() + public void TestListNodeFilesByComputeNodeWithMaxCount() { BatchController controller = BatchController.NewInstance; + BatchAccountContext context = null; + string computeNodeId = null; int maxCount = 1; - controller.RunPsTest(string.Format("Test-ListVMFilesWithMaxCount '{0}' '{1}' '{2}' '{3}'", accountName, poolName, vmName, maxCount)); + controller.RunPsTestWorkflow( + () => { return new string[] { string.Format("Test-ListNodeFilesByComputeNodeWithMaxCount '{0}' '{1}' '{2}' '{3}'", accountName, poolId, computeNodeId, maxCount) }; }, + () => + { + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); + computeNodeId = ScenarioTestHelpers.GetComputeNodeId(controller, context, poolId); + }, + null, + TestUtilities.GetCallingClass(), + TestUtilities.GetCurrentMethodName()); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestListAllVMFiles() + public void TestListAllNodeFilesByComputeNode() { BatchController controller = BatchController.NewInstance; + BatchAccountContext context = null; + string computeNodeId = null; int count = 3; // shared, startup, workitems - controller.RunPsTest(string.Format("Test-ListAllVMFiles '{0}' '{1}' '{2}' '{3}'", accountName, poolName, vmName, count)); + controller.RunPsTestWorkflow( + () => { return new string[] { string.Format("Test-ListAllNodeFilesByComputeNode '{0}' '{1}' '{2}' '{3}'", accountName, poolId, computeNodeId, count) }; }, + () => + { + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); + computeNodeId = ScenarioTestHelpers.GetComputeNodeId(controller, context, poolId); + }, + null, + TestUtilities.GetCallingClass(), + TestUtilities.GetCurrentMethodName()); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestListVMFilesRecursive() + public void TestListNodeFilesByComputeNodeRecursive() { BatchController controller = BatchController.NewInstance; + BatchAccountContext context = null; + string computeNodeId = null; string startupFolder = "startup"; int recursiveCount = 5; // dir itself, ProcessEnv, stdout, stderr, wd - controller.RunPsTest(string.Format("Test-ListVMFilesRecursive '{0}' '{1}' '{2}' '{3}' '{4}'", accountName, poolName, vmName, startupFolder, recursiveCount)); + controller.RunPsTestWorkflow( + () => { return new string[] { string.Format("Test-ListNodeFilesByComputeNodeRecursive '{0}' '{1}' '{2}' '{3}' '{4}'", accountName, poolId, computeNodeId, startupFolder, recursiveCount) }; }, + () => + { + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); + computeNodeId = ScenarioTestHelpers.GetComputeNodeId(controller, context, poolId); + }, + null, + TestUtilities.GetCallingClass(), + TestUtilities.GetCurrentMethodName()); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestListVMFilePipeline() + public void TestListNodeFileByComputeNodePipeline() { BatchController controller = BatchController.NewInstance; + BatchAccountContext context = null; + string computeNodeId = null; int count = 3; // shared, startup, workitems - controller.RunPsTest(string.Format("Test-ListVMFilePipeline '{0}' '{1}' '{2}' '{3}'", accountName, poolName, vmName, count)); + controller.RunPsTestWorkflow( + () => { return new string[] { string.Format("Test-ListNodeFileByComputeNodePipeline '{0}' '{1}' '{2}' '{3}'", accountName, poolId, computeNodeId, count) }; }, + () => + { + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); + computeNodeId = ScenarioTestHelpers.GetComputeNodeId(controller, context, poolId); + }, + null, + TestUtilities.GetCallingClass(), + TestUtilities.GetCurrentMethodName()); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestGetVMFileContentByName() + public void TestGetNodeFileContentByComputeNodeByName() { BatchController controller = BatchController.NewInstance; - controller.RunPsTest(string.Format("Test-GetVMFileContentByName '{0}' '{1}' '{2}' '{3}' '{4}'", accountName, poolName, vmName, startTaskStdOutName, startTaskStdOutContent)); + BatchAccountContext context = null; + string computeNodeId = null; + controller.RunPsTestWorkflow( + () => { return new string[] { string.Format("Test-GetNodeFileContentByComputeNodeByName '{0}' '{1}' '{2}' '{3}' '{4}'", accountName, poolId, computeNodeId, startTaskStdOutName, startTaskStdOutContent) }; }, + () => + { + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); + computeNodeId = ScenarioTestHelpers.GetComputeNodeId(controller, context, poolId); + }, + null, + TestUtilities.GetCallingClass(), + TestUtilities.GetCurrentMethodName()); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestGetVMFileContentPipeline() + public void TestGetNodeFileContentByComputeNodeByPipeline() { BatchController controller = BatchController.NewInstance; - controller.RunPsTest(string.Format("Test-GetVMFileContentPipeline '{0}' '{1}' '{2}' '{3}' '{4}'", accountName, poolName, vmName, startTaskStdOutName, startTaskStdOutContent)); + BatchAccountContext context = null; + string computeNodeId = null; + controller.RunPsTestWorkflow( + () => { return new string[] { string.Format("Test-GetNodeFileContentByComputeNodePipeline '{0}' '{1}' '{2}' '{3}' '{4}'", accountName, poolId, computeNodeId, startTaskStdOutName, startTaskStdOutContent) }; }, + () => + { + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); + computeNodeId = ScenarioTestHelpers.GetComputeNodeId(controller, context, poolId); + }, + null, + TestUtilities.GetCallingClass(), + TestUtilities.GetCurrentMethodName()); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestGetRDPFileByName() + public void TestGetRemoteDesktopProtocolFileById() { BatchController controller = BatchController.NewInstance; - controller.RunPsTest(string.Format("Test-GetRDPFileByName '{0}' '{1}' '{2}'", accountName, poolName, vmName)); + BatchAccountContext context = null; + string computeNodeId = null; + controller.RunPsTestWorkflow( + () => { return new string[] { string.Format("Test-GetRDPFileById '{0}' '{1}' '{2}'", accountName, poolId, computeNodeId) }; }, + () => + { + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); + computeNodeId = ScenarioTestHelpers.GetComputeNodeId(controller, context, poolId); + }, + null, + TestUtilities.GetCallingClass(), + TestUtilities.GetCurrentMethodName()); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestGetRDPFilePipeline() + public void TestGetRemoteDesktopProtocolFilePipeline() { BatchController controller = BatchController.NewInstance; - controller.RunPsTest(string.Format("Test-GetRDPFilePipeline '{0}' '{1}' '{2}'", accountName, poolName, vmName)); + BatchAccountContext context = null; + string computeNodeId = null; + controller.RunPsTestWorkflow( + () => { return new string[] { string.Format("Test-GetRDPFilePipeline '{0}' '{1}' '{2}'", accountName, poolId, computeNodeId) }; }, + () => + { + context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); + computeNodeId = ScenarioTestHelpers.GetComputeNodeId(controller, context, poolId); + }, + null, + TestUtilities.GetCallingClass(), + TestUtilities.GetCurrentMethodName()); } } // Cmdlets that use the HTTP Recorder interceptor for use with scenario tests - [Cmdlet(VerbsCommon.Get, "AzureBatchTaskFile_ST", DefaultParameterSetName = Constants.ODataFilterParameterSet)] - public class GetBatchTaskFileScenarioTestCommand : GetBatchTaskFileCommand - { - public override void ExecuteCmdlet() - { - AdditionalBehaviors = new List() { ScenarioTestHelpers.CreateHttpRecordingInterceptor() }; - base.ExecuteCmdlet(); - } - } - - [Cmdlet(VerbsCommon.Get, "AzureBatchTaskFileContent_ST")] - public class GetBatchTaskFileContentScenarioTestCommand : GetBatchTaskFileContentCommand - { - public override void ExecuteCmdlet() - { - AdditionalBehaviors = new List() { ScenarioTestHelpers.CreateHttpRecordingInterceptor() }; - base.ExecuteCmdlet(); - } - } - - [Cmdlet(VerbsCommon.Get, "AzureBatchVMFile_ST", DefaultParameterSetName = Constants.ODataFilterParameterSet)] - public class GetBatchVMFileScenarioTestCommand : GetBatchVMFileCommand + [Cmdlet(VerbsCommon.Get, "AzureBatchNodeFile_ST", DefaultParameterSetName = ComputeNodeAndIdParameterSet)] + public class GetBatchNodeFileScenarioTestCommand : GetBatchNodeFileCommand { public override void ExecuteCmdlet() { @@ -383,8 +456,8 @@ public override void ExecuteCmdlet() } } - [Cmdlet(VerbsCommon.Get, "AzureBatchVMFileContent_ST")] - public class GetBatchVMFileContentScenarioTestCommand : GetBatchVMFileContentCommand + [Cmdlet(VerbsCommon.Get, "AzureBatchNodeFileContent_ST")] + public class GetBatchNodeFileContentScenarioTestCommand : GetBatchNodeFileContentCommand { public override void ExecuteCmdlet() { @@ -393,8 +466,8 @@ public override void ExecuteCmdlet() } } - [Cmdlet(VerbsCommon.Get, "AzureBatchRDPFile_ST")] - public class GetBatchRDPFileScenarioTestCommand : GetBatchRDPFileCommand + [Cmdlet(VerbsCommon.Get, "AzureBatchRemoteDesktopProtocolFile_ST")] + public class GetBatchRemoteDesktopProtocolFileScenarioTestCommand : GetBatchRemoteDesktopProtocolFileCommand { public override void ExecuteCmdlet() { diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/FileTests.ps1 b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/FileTests.ps1 index f6b2bf2b0501..13496833b709 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/FileTests.ps1 +++ b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/FileTests.ps1 @@ -14,150 +14,145 @@ <# .SYNOPSIS -Tests querying for a Batch Task file by name +Tests querying for a Batch node file by task by name #> -function Test-GetTaskFileByName +function Test-GetNodeFileByTaskByName { - param([string]$accountName, [string]$wiName, [string]$jobName, [string]$taskName, [string]$taskFileName) + param([string]$accountName, [string]$jobId, [string]$taskId, [string]$nodeFileName) $context = Get-AzureBatchAccountKeys -Name $accountName - $taskFile = Get-AzureBatchTaskFile_ST -WorkItemName $wiName -JobName $jobName -TaskName $taskName -Name $taskFileName -BatchContext $context + $nodeFile = Get-AzureBatchNodeFile_ST -JobId $jobId -TaskId $taskId -Name $nodeFileName -BatchContext $context - Assert-AreEqual $taskFileName $taskFile.Name - - # Verify positional parameters also work - $task = Get-AzureBatchTaskFile_ST $wiName $jobName $taskName $taskFileName -BatchContext $context - - Assert-AreEqual $taskFileName $taskFile.Name + Assert-AreEqual $nodeFileName $nodeFile.Name } <# .SYNOPSIS -Tests querying for Batch Task Files using a filter +Tests querying for Batch node files by task using a filter #> -function Test-ListTaskFilesByFilter +function Test-ListNodeFilesByTaskByFilter { - param([string]$accountName, [string]$workItemName, [string]$jobName, [string]$taskName, [string]$taskFilePrefix, [string]$matches) + param([string]$accountName, [string]$jobId, [string]$taskId, [string]$nodeFilePrefix, [string]$matches) $context = Get-AzureBatchAccountKeys -Name $accountName - $filter = "startswith(name,'" + "$taskFilePrefix" + "')" + $filter = "startswith(name,'" + "$nodeFilePrefix" + "')" - $taskFiles = Get-AzureBatchTaskFile_ST -WorkItemName $workItemName -JobName $jobName -TaskName $taskName -Filter $filter -BatchContext $context + $nodeFiles = Get-AzureBatchNodeFile_ST -JobId $jobId -TaskId $taskId -Filter $filter -BatchContext $context - Assert-AreEqual $matches $taskFiles.Length - foreach($taskFile in $taskFiles) + Assert-AreEqual $matches $nodeFiles.Length + foreach($nodeFile in $nodeFiles) { - Assert-True { $taskFile.Name.StartsWith("$taskFilePrefix") } + Assert-True { $nodeFile.Name.StartsWith("$nodeFilePrefix") } } # Verify parent object parameter set also works - $task = Get-AzureBatchTask_ST $workItemName $jobName $taskName -BatchContext $context - $taskFiles = Get-AzureBatchTaskFile_ST -Task $task -Filter $filter -BatchContext $context + $task = Get-AzureBatchTask_ST $jobId $taskId -BatchContext $context + $nodeFiles = Get-AzureBatchNodeFile_ST -Task $task -Filter $filter -BatchContext $context - Assert-AreEqual $matches $taskFiles.Length - foreach($taskFile in $taskFiles) + Assert-AreEqual $matches $nodeFiles.Length + foreach($nodeFile in $nodeFiles) { - Assert-True { $taskFile.Name.StartsWith("$taskFilePrefix") } + Assert-True { $nodeFile.Name.StartsWith("$nodeFilePrefix") } } } <# .SYNOPSIS -Tests querying for Batch Task Files and supplying a max count +Tests querying for Batch node files by task and supplying a max count #> -function Test-ListTaskFilesWithMaxCount +function Test-ListNodeFilesByTaskWithMaxCount { - param([string]$accountName, [string]$workItemName, [string]$jobName, [string]$taskName, [string]$maxCount) + param([string]$accountName, [string]$jobId, [string]$taskId, [string]$maxCount) $context = Get-AzureBatchAccountKeys -Name $accountName - $taskFiles = Get-AzureBatchTaskFile_ST -WorkItemName $workItemName -JobName $jobName -TaskName $taskName -MaxCount $maxCount -BatchContext $context + $nodeFiles = Get-AzureBatchNodeFile_ST -JobId $jobId -TaskId $taskId -MaxCount $maxCount -BatchContext $context - Assert-AreEqual $maxCount $taskFiles.Length + Assert-AreEqual $maxCount $nodeFiles.Length # Verify parent object parameter set also works - $task = Get-AzureBatchTask_ST $workItemName $jobName $taskName -BatchContext $context - $taskFiles = Get-AzureBatchTaskFile_ST -Task $task -MaxCount $maxCount -BatchContext $context + $task = Get-AzureBatchTask_ST $jobId $taskId -BatchContext $context + $nodeFiles = Get-AzureBatchNodeFile_ST -Task $task -MaxCount $maxCount -BatchContext $context - Assert-AreEqual $maxCount $taskFiles.Length + Assert-AreEqual $maxCount $nodeFiles.Length } <# .SYNOPSIS -Tests querying for Batch Task Files with the Recursive switch +Tests querying for Batch node files by task with the Recursive switch #> -function Test-ListTaskFilesRecursive +function Test-ListNodeFilesByTaskRecursive { - param([string]$accountName, [string]$workItemName, [string]$jobName, [string]$taskName, [string]$newfile) + param([string]$accountName, [string]$jobId, [string]$taskId, [string]$newfile) $context = Get-AzureBatchAccountKeys -Name $accountName $filter = "startswith(name,'wd')" - $taskFiles = Get-AzureBatchTaskFile_ST -WorkItemName $workItemName -JobName $jobName -TaskName $taskName -Filter $filter -BatchContext $context + $nodeFiles = Get-AzureBatchNodeFile_ST -JobId $jobId -TaskId $taskId -Filter $filter -BatchContext $context # Only the directory itself is returned - Assert-AreEqual 1 $taskFiles.Length - Assert-True { $taskFiles[0].IsDirectory } + Assert-AreEqual 1 $nodeFiles.Length + Assert-True { $nodeFiles[0].IsDirectory } # Verify the new file is returned when using the Recursive switch - $taskFiles = Get-AzureBatchTaskFile_ST -WorkItemName $workItemName -JobName $jobName -TaskName $taskName -Filter $filter -Recursive -BatchContext $context + $nodeFiles = Get-AzureBatchNodeFile_ST -JobId $jobId -TaskId $taskId -Filter $filter -Recursive -BatchContext $context - Assert-AreEqual 2 $taskFiles.Length - $file = $taskFiles | Where-Object { $_.IsDirectory -eq $false } + Assert-AreEqual 2 $nodeFiles.Length + $file = $nodeFiles | Where-Object { $_.IsDirectory -eq $false } Assert-AreEqual "wd\$newFile" $file.Name } <# .SYNOPSIS -Tests querying for all Task Files under a Task +Tests querying for all node files under a task #> -function Test-ListAllTaskFiles +function Test-ListAllNodeFilesByTask { - param([string]$accountName, [string]$workItemName, [string] $jobName, [string]$taskName, [string]$count) + param([string]$accountName, [string] $jobId, [string]$taskId, [string]$count) $context = Get-AzureBatchAccountKeys -Name $accountName - $taskFiles = Get-AzureBatchTaskFile_ST -WorkItemName $workItemName -JobName $jobName -TaskName $taskName -BatchContext $context + $nodeFiles = Get-AzureBatchNodeFile_ST -JobId $jobId -TaskId $taskId -Filter $null -BatchContext $context - Assert-AreEqual $count $taskFiles.Length + Assert-AreEqual $count $nodeFiles.Length # Verify parent object parameter set also works - $task = Get-AzureBatchTask_ST $workItemName $jobName $taskName -BatchContext $context - $taskFiles = Get-AzureBatchTaskFile_ST -Task $task -BatchContext $context + $task = Get-AzureBatchTask_ST $jobId $taskId -BatchContext $context + $nodeFiles = Get-AzureBatchNodeFile_ST -Task $task -BatchContext $context - Assert-AreEqual $count $taskFiles.Length + Assert-AreEqual $count $nodeFiles.Length } <# .SYNOPSIS Tests pipelining scenarios #> -function Test-ListTaskFilePipeline +function Test-ListNodeFileByTaskPipeline { - param([string]$accountName, [string]$workItemName, [string]$jobName, [string]$taskName, [string]$count) + param([string]$accountName, [string]$jobId, [string]$taskId, [string]$count) $context = Get-AzureBatchAccountKeys -Name $accountName - # Get Task into Get Task File - $taskFiles = Get-AzureBatchTask_ST -WorkItemName $workItemName -JobName $jobName -Name $taskName -BatchContext $context | Get-AzureBatchTaskFile_ST -BatchContext $context - Assert-AreEqual $count $taskFiles.Length + # Get Task into Get Node File + $nodeFiles = Get-AzureBatchTask_ST -JobId $jobId -Id $taskId -BatchContext $context | Get-AzureBatchNodeFile_ST -BatchContext $context + Assert-AreEqual $count $nodeFiles.Length - # Get WorkItem into Get Job into Get Task into Get Task file - $taskFiles = Get-AzureBatchWorkItem_ST -Name $workItemName -BatchContext $context | Get-AzureBatchJob_ST -BatchContext $context | Get-AzureBatchTask_ST -BatchContext $context | Get-AzureBatchTaskFile_ST -BatchContext $context - Assert-AreEqual $count $taskFiles.Length + # Get Job into Get Task into Get Node file + $nodeFiles = Get-AzureBatchJob_ST $jobId -BatchContext $context | Get-AzureBatchTask_ST -BatchContext $context | Get-AzureBatchNodeFile_ST -BatchContext $context + Assert-AreEqual $count $nodeFiles.Length } <# .SYNOPSIS -Tests downloading Task file contents by name +Tests downloading node file contents by task by name #> -function Test-GetTaskFileContentByName +function Test-GetNodeFileContentByTaskByName { - param([string]$accountName, [string]$wiName, [string]$jobName, [string]$taskName, [string]$taskFileName, [string]$fileContent) + param([string]$accountName, [string]$jobId, [string]$taskId, [string]$nodeFileName, [string]$fileContent) $context = Get-AzureBatchAccountKeys -Name $accountName $stream = New-Object System.IO.MemoryStream try { - Get-AzureBatchTaskFileContent_ST -WorkItemName $wiName -JobName $jobName -TaskName $taskName -Name $taskFileName -BatchContext $context -DestinationStream $stream + Get-AzureBatchNodeFileContent_ST -JobId $jobId -TaskId $taskId -Name $nodeFileName -BatchContext $context -DestinationStream $stream $stream.Position = 0 $sr = New-Object System.IO.StreamReader $stream @@ -174,45 +169,23 @@ function Test-GetTaskFileContentByName } $stream.Dispose() } - - # Verify positional parameters also work - $stream = New-Object System.IO.MemoryStream - try - { - Get-AzureBatchTaskFileContent_ST $wiName $jobName $taskName $taskFileName -BatchContext $context -DestinationStream $stream - - $stream.Position = 0 - $sr = New-Object System.IO.StreamReader $stream - $downloadedContents = $sr.ReadToEnd() - - # Don't do strict equality check since extra newline characters get added to the end of the file - Assert-True { $downloadedContents.Contains($fileContent) } - } - finally - { - if ($sr -ne $null) - { - $sr.Dispose() - } - $stream.Dispose() - } } <# .SYNOPSIS -Tests downloading Task file contents using the pipeline +Tests downloading node file contents by task using the pipeline #> -function Test-GetTaskFileContentPipeline +function Test-GetNodeFileContentByTaskPipeline { - param([string]$accountName, [string]$wiName, [string]$jobName, [string]$taskName, [string]$taskFileName, [string]$fileContent) + param([string]$accountName, [string]$jobId, [string]$taskId, [string]$nodeFileName, [string]$fileContent) $context = Get-AzureBatchAccountKeys -Name $accountName $stream = New-Object System.IO.MemoryStream try { - $taskFile = Get-AzureBatchTaskFile_ST -WorkItemName $wiName -JobName $jobName -TaskName $taskName -Name $taskFileName -BatchContext $context - $taskFile | Get-AzureBatchTaskFileContent_ST -BatchContext $context -DestinationStream $stream + $nodeFile = Get-AzureBatchNodeFile_ST -JobId $jobId -TaskId $taskId -Name $nodeFileName -BatchContext $context + $nodeFile | Get-AzureBatchNodeFileContent_ST -BatchContext $context -DestinationStream $stream $stream.Position = 0 $sr = New-Object System.IO.StreamReader $stream @@ -233,146 +206,146 @@ function Test-GetTaskFileContentPipeline <# .SYNOPSIS -Tests querying for a Batch vm file by name +Tests querying for a Batch node file by compute node by name #> -function Test-GetVMFileByName +function Test-GetNodeFileByComputeNodeByName { - param([string]$accountName, [string]$poolName, [string]$vmName, [string]$vmFileName) + param([string]$accountName, [string]$poolId, [string]$computeNodeId, [string]$nodeFileName) $context = Get-AzureBatchAccountKeys -Name $accountName - $vmFile = Get-AzureBatchVMFile_ST -PoolName $poolName -VMName $vmName -Name $vmFileName -BatchContext $context + $nodeFile = Get-AzureBatchNodeFile_ST -PoolId $poolId -ComputeNodeId $computeNodeId -Name $nodeFileName -BatchContext $context - Assert-AreEqual $vmFileName $vmFile.Name + Assert-AreEqual $nodeFileName $nodeFile.Name # Verify positional parameters also work - $vmFile = Get-AzureBatchVMFile_ST $poolName $vmName $vmFileName -BatchContext $context + $nodeFile = Get-AzureBatchNodeFile_ST $poolId $computeNodeId $nodeFileName -BatchContext $context - Assert-AreEqual $vmFileName $vmFile.Name + Assert-AreEqual $nodeFileName $nodeFile.Name } <# .SYNOPSIS -Tests querying for Batch vm files using a filter +Tests querying for Batch node files by compute node using a filter #> -function Test-ListVMFilesByFilter +function Test-ListNodeFilesByComputeNodeByFilter { - param([string]$accountName, [string]$poolName, [string]$vmName, [string]$vmFilePrefix, [string]$matches) + param([string]$accountName, [string]$poolId, [string]$computeNodeId, [string]$nodeFilePrefix, [string]$matches) $context = Get-AzureBatchAccountKeys -Name $accountName - $filter = "startswith(name,'" + "$vmFilePrefix" + "')" + $filter = "startswith(name,'" + "$nodeFilePrefix" + "')" - $vmFiles = Get-AzureBatchVMFile_ST -PoolName $poolName -VMName $vmName -Filter $filter -BatchContext $context + $nodeFiles = Get-AzureBatchNodeFile_ST -PoolId $poolId -ComputeNodeId $computeNodeId -Filter $filter -BatchContext $context - Assert-AreEqual $matches $vmFiles.Length - foreach($vmFile in $vmFiles) + Assert-AreEqual $matches $nodeFiles.Length + foreach($nodeFile in $nodeFiles) { - Assert-True { $vmFile.Name.StartsWith("$vmFilePrefix") } + Assert-True { $nodeFile.Name.StartsWith("$nodeFilePrefix") } } # Verify parent object parameter set also works - $vm = Get-AzureBatchVM_ST $poolName $vmName -BatchContext $context - $vmFiles = Get-AzureBatchVMFile_ST -VM $vm -Filter $filter -BatchContext $context + $computeNode = Get-AzureBatchComputeNode_ST $poolId $computeNodeId -BatchContext $context + $nodeFiles = Get-AzureBatchNodeFile_ST -ComputeNode $computeNode -Filter $filter -BatchContext $context - Assert-AreEqual $matches $vmFiles.Length - foreach($vmFile in $vmFiles) + Assert-AreEqual $matches $nodeFiles.Length + foreach($nodeFile in $nodeFiles) { - Assert-True { $vmFile.Name.StartsWith("$vmFilePrefix") } + Assert-True { $nodeFile.Name.StartsWith("$nodeFilePrefix") } } } <# .SYNOPSIS -Tests querying for Batch vm files and supplying a max count +Tests querying for Batch node files by compute node and supplying a max count #> -function Test-ListVMFilesWithMaxCount +function Test-ListNodeFilesByComputeNodeWithMaxCount { - param([string]$accountName, [string]$poolName, [string]$vmName, [string]$maxCount) + param([string]$accountName, [string]$poolId, [string]$computeNodeId, [string]$maxCount) $context = Get-AzureBatchAccountKeys -Name $accountName - $vmFiles = Get-AzureBatchVMFile_ST -PoolName $poolName -VMName $vmName -MaxCount $maxCount -BatchContext $context + $nodeFiles = Get-AzureBatchNodeFile_ST -PoolId $poolId -ComputeNodeId $computeNodeId -MaxCount $maxCount -BatchContext $context - Assert-AreEqual $maxCount $vmFiles.Length + Assert-AreEqual $maxCount $nodeFiles.Length # Verify parent object parameter set also works - $vm = Get-AzureBatchVM_ST $poolName $vmName -BatchContext $context - $vmFiles = Get-AzureBatchVMFile_ST -VM $vm -MaxCount $maxCount -BatchContext $context + $computeNode = Get-AzureBatchComputeNode_ST $poolId $computeNodeId -BatchContext $context + $nodeFiles = Get-AzureBatchNodeFile_ST -ComputeNode $computeNode -MaxCount $maxCount -BatchContext $context - Assert-AreEqual $maxCount $vmFiles.Length + Assert-AreEqual $maxCount $nodeFiles.Length } <# .SYNOPSIS -Tests querying for Batch vm files with the Recursive switch +Tests querying for Batch node files by compute node with the Recursive switch #> -function Test-ListVMFilesRecursive +function Test-ListNodeFilesByComputeNodeRecursive { - param([string]$accountName, [string]$poolName, [string]$vmName, [string]$startupFolder, [string]$recursiveCount) + param([string]$accountName, [string]$poolId, [string]$computeNodeId, [string]$startupFolder, [string]$recursiveCount) $context = Get-AzureBatchAccountKeys -Name $accountName $filter = "startswith(name,'" + "$startupFolder" + "')" - $vmFiles = Get-AzureBatchVMFile_ST -PoolName $poolName -VMName $vmName -Filter $filter -BatchContext $context + $nodeFiles = Get-AzureBatchNodeFile_ST -PoolId $poolId -ComputeNodeId $computeNodeId -Filter $filter -BatchContext $context # Only the directory itself is returned - Assert-AreEqual 1 $vmFiles.Length - Assert-True { $vmFiles[0].IsDirectory } + Assert-AreEqual 1 $nodeFiles.Length + Assert-True { $nodeFiles[0].IsDirectory } - # Verify the start task vm files are returned when using the Recursive switch - $vmFiles = Get-AzureBatchVMFile_ST -PoolName $poolName -VMName $vmName -Filter $filter -Recursive -BatchContext $context + # Verify the start task node files are returned when using the Recursive switch + $nodeFiles = Get-AzureBatchNodeFile_ST -PoolId $poolId -ComputeNodeId $computeNodeId -Filter $filter -Recursive -BatchContext $context - Assert-AreEqual $recursiveCount $vmFiles.Length - $files = $vmFiles | Where-Object { $_.Name.StartsWith("startup\st") -eq $true } + Assert-AreEqual $recursiveCount $nodeFiles.Length + $files = $nodeFiles | Where-Object { $_.Name.StartsWith("startup\st") -eq $true } Assert-AreEqual 2 $files.Length # stdout, stderr } <# .SYNOPSIS -Tests querying for all vm files under a VM +Tests querying for all node files under a compute node #> -function Test-ListAllVMFiles +function Test-ListAllNodeFilesByComputeNode { - param([string]$accountName, [string]$poolName, [string] $vmName, [string]$count) + param([string]$accountName, [string]$poolId, [string] $computeNodeId, [string]$count) $context = Get-AzureBatchAccountKeys -Name $accountName - $vmFiles = Get-AzureBatchVMFile_ST -PoolName $poolName -VMName $vmName -BatchContext $context + $nodeFiles = Get-AzureBatchNodeFile_ST -PoolId $poolId -ComputeNodeId $computeNodeId -BatchContext $context - Assert-AreEqual $count $vmFiles.Length + Assert-AreEqual $count $nodeFiles.Length # Verify parent object parameter set also works - $vm = Get-AzureBatchVM_ST $poolName $vmName -BatchContext $context - $vmFiles = Get-AzureBatchVMFile_ST -VM $vm -BatchContext $context + $computeNode = Get-AzureBatchComputeNode_ST $poolId $computeNodeId -BatchContext $context + $nodeFiles = Get-AzureBatchNodeFile_ST -ComputeNode $computeNode -BatchContext $context - Assert-AreEqual $count $vmFiles.Length + Assert-AreEqual $count $nodeFiles.Length } <# .SYNOPSIS Tests pipelining scenarios #> -function Test-ListVMFilePipeline +function Test-ListNodeFileByComputeNodePipeline { - param([string]$accountName, [string]$poolName, [string]$vmName, [string]$count) + param([string]$accountName, [string]$poolId, [string]$computeNodeId, [string]$count) $context = Get-AzureBatchAccountKeys -Name $accountName - # Get VM into Get VM File - $vmFiles = Get-AzureBatchVM_ST -PoolName $poolName -Name $vmName -BatchContext $context | Get-AzureBatchVMFile_ST -BatchContext $context - Assert-AreEqual $count $vmFiles.Length + # Get Compute Node into Get Node File + $nodeFiles = Get-AzureBatchComputeNode_ST -PoolId $poolId -Id $computeNodeId -BatchContext $context | Get-AzureBatchNodeFile_ST -BatchContext $context + Assert-AreEqual $count $nodeFiles.Length } <# .SYNOPSIS -Tests downloading vm file contents by name +Tests downloading node file contents by compute node by name #> -function Test-GetVMFileContentByName +function Test-GetNodeFileContentByComputeNodeByName { - param([string]$accountName, [string]$poolName, [string]$vmName, [string]$vmFileName, [string]$fileContent) + param([string]$accountName, [string]$poolId, [string]$computeNodeId, [string]$nodeFileName, [string]$fileContent) $context = Get-AzureBatchAccountKeys -Name $accountName $stream = New-Object System.IO.MemoryStream try { - Get-AzureBatchVMFileContent_ST -PoolName $poolName -VMName $vmName -Name $vmFileName -BatchContext $context -DestinationStream $stream + Get-AzureBatchNodeFileContent_ST -PoolId $poolId -ComputeNodeId $computeNodeId -Name $nodeFileName -BatchContext $context -DestinationStream $stream $stream.Position = 0 $sr = New-Object System.IO.StreamReader $stream @@ -394,7 +367,7 @@ function Test-GetVMFileContentByName $stream = New-Object System.IO.MemoryStream try { - Get-AzureBatchVMFileContent_ST $poolName $vmName $vmFileName -BatchContext $context -DestinationStream $stream + Get-AzureBatchNodeFileContent_ST $poolId $computeNodeId $nodeFileName -BatchContext $context -DestinationStream $stream $stream.Position = 0 $sr = New-Object System.IO.StreamReader $stream @@ -415,19 +388,19 @@ function Test-GetVMFileContentByName <# .SYNOPSIS -Tests downloading vm file contents using the pipeline +Tests downloading node file contents by compute node using the pipeline #> -function Test-GetVMFileContentPipeline +function Test-GetNodeFileContentByComputeNodePipeline { - param([string]$accountName, [string]$poolName, [string]$vmName, [string]$vmFileName, [string]$fileContent) + param([string]$accountName, [string]$poolId, [string]$computeNodeId, [string]$nodeFileName, [string]$fileContent) $context = Get-AzureBatchAccountKeys -Name $accountName $stream = New-Object System.IO.MemoryStream try { - $vmFile = Get-AzureBatchVMFile_ST -PoolName $poolName -VMName $vmName -Name $vmFileName -BatchContext $context - $vmFile | Get-AzureBatchVMFileContent_ST -BatchContext $context -DestinationStream $stream + $nodeFile = Get-AzureBatchNodeFile_ST -PoolId $poolId -ComputeNodeId $computeNodeId -Name $nodeFileName -BatchContext $context + $nodeFile | Get-AzureBatchNodeFileContent_ST -BatchContext $context -DestinationStream $stream $stream.Position = 0 $sr = New-Object System.IO.StreamReader $stream @@ -448,11 +421,11 @@ function Test-GetVMFileContentPipeline <# .SYNOPSIS -Tests downloading an RDP file by name +Tests downloading a Remote Desktop Protocol file by compute node id #> -function Test-GetRDPFileByName +function Test-GetRDPFileById { - param([string]$accountName, [string]$poolName, [string]$vmName) + param([string]$accountName, [string]$poolId, [string]$computeNodeId) $context = Get-AzureBatchAccountKeys -Name $accountName $stream = New-Object System.IO.MemoryStream @@ -460,7 +433,7 @@ function Test-GetRDPFileByName try { - Get-AzureBatchRDPFile_ST -PoolName $poolName -VMName $vmName -BatchContext $context -DestinationStream $stream + Get-AzureBatchRemoteDesktopProtocolFile_ST -PoolId $poolId -ComputeNodeId $computeNodeId -BatchContext $context -DestinationStream $stream $stream.Position = 0 $sr = New-Object System.IO.StreamReader $stream @@ -482,7 +455,7 @@ function Test-GetRDPFileByName $stream = New-Object System.IO.MemoryStream try { - Get-AzureBatchRDPFile_ST $poolName $vmName -BatchContext $context -DestinationStream $stream + Get-AzureBatchRemoteDesktopProtocolFile_ST $poolId $computeNodeId -BatchContext $context -DestinationStream $stream $stream.Position = 0 $sr = New-Object System.IO.StreamReader $stream @@ -503,11 +476,11 @@ function Test-GetRDPFileByName <# .SYNOPSIS -Tests downloading an RDP file using the pipeline +Tests downloading a Remote DesktopProtocol file using the pipeline #> function Test-GetRDPFilePipeline { - param([string]$accountName, [string]$poolName, [string]$vmName) + param([string]$accountName, [string]$poolId, [string]$computeNodeId) $context = Get-AzureBatchAccountKeys -Name $accountName $stream = New-Object System.IO.MemoryStream @@ -515,8 +488,8 @@ function Test-GetRDPFilePipeline try { - $vm = Get-AzureBatchVM_ST -PoolName $poolName -Name $vmName -BatchContext $context - $vm | Get-AzureBatchRDPFile_ST -BatchContext $context -DestinationStream $stream + $computeNode = Get-AzureBatchComputeNode_ST -PoolId $poolId -Id $computeNodeId -BatchContext $context + $computeNode | Get-AzureBatchRemoteDesktopProtocolFile_ST -BatchContext $context -DestinationStream $stream $stream.Position = 0 $sr = New-Object System.IO.StreamReader $stream diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/WorkItemTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/JobScheduleTests.cs similarity index 58% rename from src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/WorkItemTests.cs rename to src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/JobScheduleTests.cs index 9efa541e8958..e0db254cad21 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/WorkItemTests.cs +++ b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/JobScheduleTests.cs @@ -22,35 +22,35 @@ namespace Microsoft.Azure.Commands.Batch.Test.ScenarioTests { - public class WorkItemTests + public class JobScheduleTests { private const string accountName = ScenarioTestHelpers.SharedAccount; [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestNewWorkItem() + public void TestNewJobSchedule() { BatchController controller = BatchController.NewInstance; - controller.RunPsTest(string.Format("Test-NewWorkItem '{0}'", accountName)); + controller.RunPsTest(string.Format("Test-NewJobSchedule '{0}'", accountName)); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestGetWorkItemByName() + public void TestGetJobScheduleById() { BatchController controller = BatchController.NewInstance; - string workItemName = "testName"; + string jobScheduleId = "testId"; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-GetWorkItemByName '{0}' '{1}'", accountName, workItemName) }; }, + () => { return new string[] { string.Format("Test-GetJobScheduleById '{0}' '{1}'", accountName, jobScheduleId) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName); + ScenarioTestHelpers.CreateTestJobSchedule(controller, context, jobScheduleId, null); }, () => { - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName); + ScenarioTestHelpers.DeleteJobSchedule(controller, context, jobScheduleId); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -58,29 +58,29 @@ public void TestGetWorkItemByName() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestListWorkItemsByFilter() + public void TestListJobSchedulesByFilter() { BatchController controller = BatchController.NewInstance; - string workItemName1 = "testName1"; - string workItemName2 = "testName2"; - string workItemName3 = "thirdtestName"; - string workItemPrefix = "testName"; + string jobScheduleId1 = "testId1"; + string jobScheduleId2 = "testId2"; + string jobScheduleId3 = "thirdtestId"; + string jobSchedulePrefix = "testId"; int matches = 2; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-ListWorkItemsByFilter '{0}' '{1}' '{2}'", accountName, workItemPrefix, matches) }; }, + () => { return new string[] { string.Format("Test-ListJobSchedulesByFilter '{0}' '{1}' '{2}'", accountName, jobSchedulePrefix, matches) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName1); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName2); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName3); + ScenarioTestHelpers.CreateTestJobSchedule(controller, context, jobScheduleId1, null); + ScenarioTestHelpers.CreateTestJobSchedule(controller, context, jobScheduleId2, null); + ScenarioTestHelpers.CreateTestJobSchedule(controller, context, jobScheduleId3, null); }, () => { - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName1); - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName2); - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName3); + ScenarioTestHelpers.DeleteJobSchedule(controller, context, jobScheduleId1); + ScenarioTestHelpers.DeleteJobSchedule(controller, context, jobScheduleId2); + ScenarioTestHelpers.DeleteJobSchedule(controller, context, jobScheduleId3); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -88,28 +88,28 @@ public void TestListWorkItemsByFilter() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestListWorkItemsWithMaxCount() + public void TestListJobSchedulesWithMaxCount() { BatchController controller = BatchController.NewInstance; - string workItemName1 = "testName1"; - string workItemName2 = "testName2"; - string workItemName3 = "thirdtestName"; + string jobScheduleId1 = "testId1"; + string jobScheduleId2 = "testId2"; + string jobScheduleId3 = "thirdtestId"; int maxCount = 1; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-ListWorkItemsWithMaxCount '{0}' '{1}'", accountName, maxCount) }; }, + () => { return new string[] { string.Format("Test-ListJobSchedulesWithMaxCount '{0}' '{1}'", accountName, maxCount) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName1); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName2); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName3); + ScenarioTestHelpers.CreateTestJobSchedule(controller, context, jobScheduleId1, null); + ScenarioTestHelpers.CreateTestJobSchedule(controller, context, jobScheduleId2, null); + ScenarioTestHelpers.CreateTestJobSchedule(controller, context, jobScheduleId3, null); }, () => { - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName1); - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName2); - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName3); + ScenarioTestHelpers.DeleteJobSchedule(controller, context, jobScheduleId1); + ScenarioTestHelpers.DeleteJobSchedule(controller, context, jobScheduleId2); + ScenarioTestHelpers.DeleteJobSchedule(controller, context, jobScheduleId3); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -117,28 +117,28 @@ public void TestListWorkItemsWithMaxCount() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestListAllWorkItems() + public void TestListAllJobSchedules() { BatchController controller = BatchController.NewInstance; - string workItemName1 = "testName1"; - string workItemName2 = "testName2"; - string workItemName3 = "thirdtestName"; + string jobScheduleId1 = "testId1"; + string jobScheduleId2 = "testId2"; + string jobScheduleId3 = "thirdtestId"; int count = 3; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-ListAllWorkItems '{0}' '{1}'", accountName, count) }; }, + () => { return new string[] { string.Format("Test-ListAllJobSchedules '{0}' '{1}'", accountName, count) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName1); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName2); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName3); + ScenarioTestHelpers.CreateTestJobSchedule(controller, context, jobScheduleId1, null); + ScenarioTestHelpers.CreateTestJobSchedule(controller, context, jobScheduleId2, null); + ScenarioTestHelpers.CreateTestJobSchedule(controller, context, jobScheduleId3, null); }, () => { - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName1); - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName2); - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName3); + ScenarioTestHelpers.DeleteJobSchedule(controller, context, jobScheduleId1); + ScenarioTestHelpers.DeleteJobSchedule(controller, context, jobScheduleId2); + ScenarioTestHelpers.DeleteJobSchedule(controller, context, jobScheduleId3); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -146,18 +146,18 @@ public void TestListAllWorkItems() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestDeleteWorkItem() + public void TestDeleteJobSchedule() { BatchController controller = BatchController.NewInstance; - string workItemName = "testWorkItem"; + string jobScheduleId = "testDeleteJobSchedule"; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-DeleteWorkItem '{0}' '{1}' '0'", accountName, workItemName) }; }, + () => { return new string[] { string.Format("Test-DeleteJobSchedule '{0}' '{1}' '0'", accountName, jobScheduleId) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName); + ScenarioTestHelpers.CreateTestJobSchedule(controller, context, jobScheduleId, null); }, null, TestUtilities.GetCallingClass(), @@ -166,18 +166,18 @@ public void TestDeleteWorkItem() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestDeleteWorkItemPipeline() + public void TestDeleteJobSchedulePipeline() { BatchController controller = BatchController.NewInstance; - string workItemName = "testWorkItem"; + string jobScheduleId = "testDeleteJobSchedulePipe"; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-DeleteWorkItem '{0}' '{1}' '1'", accountName, workItemName) }; }, + () => { return new string[] { string.Format("Test-DeleteJobSchedule '{0}' '{1}' '1'", accountName, jobScheduleId) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName); + ScenarioTestHelpers.CreateTestJobSchedule(controller, context, jobScheduleId, null); }, null, TestUtilities.GetCallingClass(), @@ -186,8 +186,8 @@ public void TestDeleteWorkItemPipeline() } // Cmdlets that use the HTTP Recorder interceptor for use with scenario tests - [Cmdlet(VerbsCommon.Get, "AzureBatchWorkItem_ST", DefaultParameterSetName = Constants.ODataFilterParameterSet)] - public class GetBatchWorkItemScenarioTestCommand : GetBatchWorkItemCommand + [Cmdlet(VerbsCommon.Get, "AzureBatchJobSchedule_ST", DefaultParameterSetName = Constants.ODataFilterParameterSet)] + public class GetBatchJobScheduleScenarioTestCommand : GetBatchJobScheduleCommand { public override void ExecuteCmdlet() { @@ -196,8 +196,8 @@ public override void ExecuteCmdlet() } } - [Cmdlet(VerbsCommon.New, "AzureBatchWorkItem_ST")] - public class NewBatchWorkItemScenarioTestCommand : NewBatchWorkItemCommand + [Cmdlet(VerbsCommon.New, "AzureBatchJobSchedule_ST")] + public class NewBatchJobScheduleScenarioTestCommand : NewBatchJobScheduleCommand { public override void ExecuteCmdlet() { @@ -206,8 +206,8 @@ public override void ExecuteCmdlet() } } - [Cmdlet(VerbsCommon.Remove, "AzureBatchWorkItem_ST")] - public class RemoveBatchWorkItemScenarioTestCommand : RemoveBatchWorkItemCommand + [Cmdlet(VerbsCommon.Remove, "AzureBatchJobSchedule_ST")] + public class RemoveBatchJobScheduleScenarioTestCommand : RemoveBatchJobScheduleCommand { public override void ExecuteCmdlet() { diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/JobScheduleTests.ps1 b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/JobScheduleTests.ps1 new file mode 100644 index 000000000000..4a9d75364c82 --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/JobScheduleTests.ps1 @@ -0,0 +1,357 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.SYNOPSIS +Tests creating Batch job schedules +#> +function Test-NewJobSchedule +{ + param([string]$accountName) + + $context = Get-AzureBatchAccountKeys -Name $accountName + + $jsId1 = "simple" + $jsId2 = "complex" + + try + { + # Create a simple job schedule + $jobSpec1 = New-Object Microsoft.Azure.Commands.Batch.Models.PSJobSpecification + $jobSpec1.PoolInformation = New-Object Microsoft.Azure.Commands.Batch.Models.PSPoolInformation + $jobSpec1.PoolInformation.PoolId = $poolId = "testPool" + $schedule1 = New-Object Microsoft.Azure.Commands.Batch.Models.PSSchedule + New-AzureBatchJobSchedule_ST -Id $jsId1 -JobSpecification $jobSpec1 -Schedule $schedule1 -BatchContext $context + $jobSchedule1 = Get-AzureBatchJobSchedule_ST -Id $jsId1 -BatchContext $context + + # Verify created job schedule matches expectations + Assert-AreEqual $jsId1 $jobSchedule1.Id + Assert-AreEqual $poolId $jobSchedule1.JobSpecification.PoolInformation.PoolId + + # Create a complicated job schedule + $startTask = New-Object Microsoft.Azure.Commands.Batch.Models.PSStartTask + $startTaskCmd = "cmd /c dir /s" + $startTask.CommandLine = $startTaskCmd + + $poolSpec = New-Object Microsoft.Azure.Commands.Batch.Models.PSPoolSpecification + $poolSpec.TargetDedicated = $targetDedicated = 3 + $poolSpec.VirtualMachineSize = $vmSize = "small" + $poolSpec.OSFamily = $osFamily = "4" + $poolSpec.TargetOSVersion = $targetOS = "*" + $poolSpec.StartTask = $startTask + + $poolSpec.CertificateReferences = new-object System.Collections.Generic.List``1[Microsoft.Azure.Commands.Batch.Models.PSCertificateReference] + $certRef = New-Object Microsoft.Azure.Commands.Batch.Models.PSCertificateReference + $certRef.StoreLocation = $storeLocation = ([Microsoft.Azure.Batch.Common.CertStoreLocation]::LocalMachine) + $certRef.StoreName = $storeName = "certStore" + $certRef.Thumbprint = $thumbprint = "0123456789ABCDEF" + $certRef.ThumbprintAlgorithm = $thumbprintAlgorithm = "sha1" + $certRef.Visibility = $visibility = ([Microsoft.Azure.Batch.Common.CertificateVisibility]::StartTask) + $poolSpec.CertificateReferences.Add($certRef) + $certRefCount = $poolSpec.CertificateReferences.Count + + $autoPoolSpec = New-Object Microsoft.Azure.Commands.Batch.Models.PSAutoPoolSpecification + $autoPoolSpec.PoolSpecification = $poolSpec + $autoPoolSpec.AutoPoolIdPrefix = $autoPoolIdPrefix = "TestSpecPrefix" + $autoPoolSpec.KeepAlive = $keepAlive = $false + $autoPoolSpec.PoolLifeTimeOption = $poolLifeTime = ([Microsoft.Azure.Batch.Common.PoolLifeTimeOption]::JobSchedule) + + $poolInfo = New-Object Microsoft.Azure.Commands.Batch.Models.PSPoolInformation + $poolInfo.AutoPoolSpecification = $autoPoolSpec + + $jobMgr = New-Object Microsoft.Azure.Commands.Batch.Models.PSJobManagerTask + $jobMgr.CommandLine = $jobMgrCmd = "cmd /c dir /s" + $jobMgr.EnvironmentSettings = New-Object System.Collections.Generic.List``1[Microsoft.Azure.Commands.Batch.Models.PSEnvironmentSetting] + $env1 = New-Object Microsoft.Azure.Commands.Batch.Models.PSEnvironmentSetting -ArgumentList "name1","value1" + $env2 = New-Object Microsoft.Azure.Commands.Batch.Models.PSEnvironmentSetting -ArgumentList "name2","value2" + $env1Name = $env1.Name + $env1Value = $env1.Value + $env2Name = $env2.Name + $env2Value = $env2.Value + $jobMgr.EnvironmentSettings.Add($env1) + $jobMgr.EnvironmentSettings.Add($env2) + $envCount = $jobMgr.EnvironmentSettings.Count + $jobMgr.ResourceFiles = new-object System.Collections.Generic.List``1[Microsoft.Azure.Commands.Batch.Models.PSResourceFile] + $r1 = New-Object Microsoft.Azure.Commands.Batch.Models.PSResourceFile -ArgumentList "https://testacct.blob.core.windows.net/","filePath" + $blobSource = $r1.BlobSource + $filePath = $r1.FilePath + $jobMgr.ResourceFiles.Add($r1) + $resourceFileCount = $jobMgr.ResourceFiles.Count + $jobMgr.KillJobOnCompletion = $killOnCompletion = $false + $jobMgr.Id = $jobMgrId = "jobManager" + $jobMgr.DisplayName = $jobMgrDisplay = "jobManagerDisplay" + $jobMgr.RunElevated = $runElevated = $false + $jobMgrMaxWallClockTime = [TimeSpan]::FromHours(1) + $jobMgr.Constraints = New-Object Microsoft.Azure.Commands.Batch.Models.PSTaskConstraints -ArgumentList @($jobMgrMaxWallClockTime,$null,$null) + + $jobPrep = New-Object Microsoft.Azure.Commands.Batch.Models.PSJobPreparationTask + $jobPrep.CommandLine = $jobPrepCmd = "cmd /c dir /s" + $jobPrep.EnvironmentSettings = New-Object System.Collections.Generic.List``1[Microsoft.Azure.Commands.Batch.Models.PSEnvironmentSetting] + $jobPrepEnv1 = New-Object Microsoft.Azure.Commands.Batch.Models.PSEnvironmentSetting -ArgumentList "jobPrepName1","jobPrepValue1" + $jobPrepEnv2 = New-Object Microsoft.Azure.Commands.Batch.Models.PSEnvironmentSetting -ArgumentList "jobPrepName2","jobPrepValue2" + $jobPrepEnv1Name = $jobPrepEnv1.Name + $jobPrepEnv1Value = $jobPrepEnv1.Value + $jobPrepEnv2Name = $jobPrepEnv2.Name + $jobPrepEnv2Value = $jobPrepEnv2.Value + $jobPrep.EnvironmentSettings.Add($jobPrepEnv1) + $jobPrep.EnvironmentSettings.Add($jobPrepEnv2) + $jobPrepEnvCount = $jobPrep.EnvironmentSettings.Count + $jobPrep.ResourceFiles = new-object System.Collections.Generic.List``1[Microsoft.Azure.Commands.Batch.Models.PSResourceFile] + $jobPrepR1 = New-Object Microsoft.Azure.Commands.Batch.Models.PSResourceFile -ArgumentList "https://testacct.blob.core.windows.net/","jobPrepFilePath" + $jobPrepBlobSource = $jobPrepR1.BlobSource + $jobPrepFilePath = $jobPrepR1.FilePath + $jobPrep.ResourceFiles.Add($jobPrepR1) + $jobPrepResourceFileCount = $jobPrep.ResourceFiles.Count + $jobPrep.Id = $jobPrepId = "jobPrep" + $jobPrep.RunElevated = $jobPrepRunElevated = $false + $jobPrepRetryCount = 2 + $jobPrep.Constraints = New-Object Microsoft.Azure.Commands.Batch.Models.PSTaskConstraints -ArgumentList @($null,$null,$jobPrepRetryCount) + + $jobRelease = New-Object Microsoft.Azure.Commands.Batch.Models.PSJobReleaseTask + $jobRelease.CommandLine = $jobReleaseCmd = "cmd /c dir /s" + $jobRelease.EnvironmentSettings = New-Object System.Collections.Generic.List``1[Microsoft.Azure.Commands.Batch.Models.PSEnvironmentSetting] + $jobReleaseEnv1 = New-Object Microsoft.Azure.Commands.Batch.Models.PSEnvironmentSetting -ArgumentList "jobReleaseName1","jobReleaseValue1" + $jobReleaseEnv2 = New-Object Microsoft.Azure.Commands.Batch.Models.PSEnvironmentSetting -ArgumentList "jobReleaseName2","jobReleaseValue2" + $jobReleaseEnv1Name = $jobReleaseEnv1.Name + $jobReleaseEnv1Value = $jobReleaseEnv1.Value + $jobReleaseEnv2Name = $jobReleaseEnv2.Name + $jobReleaseEnv2Value = $jobReleaseEnv2.Value + $jobRelease.EnvironmentSettings.Add($jobReleaseEnv1) + $jobRelease.EnvironmentSettings.Add($jobReleaseEnv2) + $jobReleaseEnvCount = $jobRelease.EnvironmentSettings.Count + $jobRelease.ResourceFiles = new-object System.Collections.Generic.List``1[Microsoft.Azure.Commands.Batch.Models.PSResourceFile] + $jobReleaseR1 = New-Object Microsoft.Azure.Commands.Batch.Models.PSResourceFile -ArgumentList "https://testacct.blob.core.windows.net/","jobReleaseFilePath" + $jobReleaseBlobSource = $jobReleaseR1.BlobSource + $jobReleaseFilePath = $jobReleaseR1.FilePath + $jobRelease.ResourceFiles.Add($jobReleaseR1) + $jobReleaseResourceFileCount = $jobRelease.ResourceFiles.Count + $jobRelease.Id = $jobReleaseId = "jobRelease" + $jobRelease.RunElevated = $jobReleaseRunElevated = $false + + $jobConstraints = New-Object Microsoft.Azure.Commands.Batch.Models.PSJobConstraints -ArgumentList @([TimeSpan]::FromDays(1),5) + $maxWallClockTime = $jobConstraints.MaxWallClockTime + $maxTaskRetry = $jobConstraints.MaxTaskRetryCount + + $jobSpec2 = New-Object Microsoft.Azure.Commands.Batch.Models.PSJobSpecification + $jobSpec2.JobManagerTask = $jobMgr + $jobSpec2.JobPreparationTask = $jobPrep + $jobSpec2.JobReleaseTask = $jobRelease + $jobSpec2.Constraints = $jobConstraints + $jobSpec2.PoolInformation = $poolInfo + $jobSpec2.CommonEnvironmentSettings = New-Object System.Collections.Generic.List``1[Microsoft.Azure.Commands.Batch.Models.PSEnvironmentSetting] + $commonEnv1 = New-Object Microsoft.Azure.Commands.Batch.Models.PSEnvironmentSetting -ArgumentList "commonName1","commonValue1" + $commonEnv2 = New-Object Microsoft.Azure.Commands.Batch.Models.PSEnvironmentSetting -ArgumentList "commonName2","commonValue2" + $commonEnv1Name = $commonEnv1.Name + $commonEnv1Value = $commonEnv1.Value + $commonEnv2Name = $commonEnv2.Name + $commonEnv2Value = $commonEnv2.Value + $jobSpec2.CommonEnvironmentSettings.Add($commonEnv1) + $jobSpec2.CommonEnvironmentSettings.Add($commonEnv2) + $commonEnvCount = $jobSpec2.CommonEnvironmentSettings.Count + $jobSpec2.DisplayName = $jobSpec2DisplayName = "jobSpecDisplayName" + $jobSpec2.Priority = $jobSpec2Pri = 1 + $jobSpec2.Metadata = New-Object System.Collections.Generic.List``1[Microsoft.Azure.Commands.Batch.Models.PSMetadataItem] + $jobSpecMeta1 = New-Object Microsoft.Azure.Commands.Batch.Models.PSMetadataItem -ArgumentList "specMeta1","specMetaValue1" + $jobSpecMeta2 = New-Object Microsoft.Azure.Commands.Batch.Models.PSMetadataItem -ArgumentList "specMeta2","specMetaValue2" + $jobSpecMeta1Name = $jobSpecMeta1.Name + $jobSpecMeta1Value = $jobSpecMeta1.Value + $jobSpecMeta2Name = $jobSpecMeta2.Name + $jobSpecMeta2Value = $jobSpecMeta2.Value + $jobSpec2.Metadata.Add($jobSpecMeta1) + $jobSpec2.Metadata.Add($jobSpecMeta2) + $jobSpecMetaCount = $jobSpec2.Metadata.Count + + $schedule2 = New-Object Microsoft.Azure.Commands.Batch.Models.PSSchedule + $schedule2.RecurrenceInterval = $recurrence = [TimeSpan]::FromDays(2) + $schedule2.StartWindow = $startWindow = [TimeSpan]::FromDays(1) + + $metadata = @{"meta1"="value1";"meta2"="value2"} + + $displayName = "displayName" + + New-AzureBatchJobSchedule_ST -Id $jsId2 -DisplayName $displayName -Schedule $schedule2 -JobSpecification $jobSpec2 -Metadata $metadata -BatchContext $context + + $jobSchedule2 = Get-AzureBatchJobSchedule_ST -Id $jsId2 -BatchContext $context + + # Verify created job schedule matches expectations + Assert-AreEqual $jsId2 $jobSchedule2.Id + Assert-AreEqual $displayName $jobSchedule2.DisplayName + Assert-AreEqual $autoPoolIdPrefix $jobSchedule2.JobSpecification.PoolInformation.AutoPoolSpecification.AutoPoolIdPrefix + Assert-AreEqual $keepAlive $jobSchedule2.JobSpecification.PoolInformation.AutoPoolSpecification.KeepAlive + Assert-AreEqual $poolLifeTime $jobSchedule2.JobSpecification.PoolInformation.AutoPoolSpecification.PoolLifeTimeOption + Assert-AreEqual $targetDedicated $jobSchedule2.JobSpecification.PoolInformation.AutoPoolSpecification.PoolSpecification.TargetDedicated + Assert-AreEqual $vmSize $jobSchedule2.JobSpecification.PoolInformation.AutoPoolSpecification.PoolSpecification.VirtualMachineSize + Assert-AreEqual $osFamily $jobSchedule2.JobSpecification.PoolInformation.AutoPoolSpecification.PoolSpecification.OSFamily + Assert-AreEqual $targetOS $jobSchedule2.JobSpecification.PoolInformation.AutoPoolSpecification.PoolSpecification.TargetOSVersion + Assert-AreEqual $certRefCount $jobSchedule2.JobSpecification.PoolInformation.AutoPoolSpecification.PoolSpecification.CertificateReferences.Count + Assert-AreEqual $storeLocation $jobSchedule2.JobSpecification.PoolInformation.AutoPoolSpecification.PoolSpecification.CertificateReferences[0].StoreLocation + Assert-AreEqual $storeName $jobSchedule2.JobSpecification.PoolInformation.AutoPoolSpecification.PoolSpecification.CertificateReferences[0].StoreName + Assert-AreEqual $thumbprint $jobSchedule2.JobSpecification.PoolInformation.AutoPoolSpecification.PoolSpecification.CertificateReferences[0].Thumbprint + Assert-AreEqual $thumbprintAlgorithm $jobSchedule2.JobSpecification.PoolInformation.AutoPoolSpecification.PoolSpecification.CertificateReferences[0].ThumbprintAlgorithm + Assert-AreEqual $visibility $jobSchedule2.JobSpecification.PoolInformation.AutoPoolSpecification.PoolSpecification.CertificateReferences[0].Visibility + Assert-AreEqual $startTaskCmd $jobSchedule2.JobSpecification.PoolInformation.AutoPoolSpecification.PoolSpecification.StartTask.CommandLine + Assert-AreEqual $commonEnvCount $jobSchedule2.JobSpecification.CommonEnvironmentSettings.Count + Assert-AreEqual $commonEnv1Name $jobSchedule2.JobSpecification.CommonEnvironmentSettings[0].Name + Assert-AreEqual $commonEnv1Value $jobSchedule2.JobSpecification.CommonEnvironmentSettings[0].Value + Assert-AreEqual $commonEnv2Name $jobSchedule2.JobSpecification.CommonEnvironmentSettings[1].Name + Assert-AreEqual $commonEnv2Value $jobSchedule2.JobSpecification.CommonEnvironmentSettings[1].Value + Assert-AreEqual $jobSpec2DisplayName $jobSchedule2.JobSpecification.DisplayName + Assert-AreEqual $jobMgrCmd $jobSchedule2.JobSpecification.JobManagerTask.CommandLine + Assert-AreEqual $envCount $jobSchedule2.JobSpecification.JobManagerTask.EnvironmentSettings.Count + Assert-AreEqual $env1Name $jobSchedule2.JobSpecification.JobManagerTask.EnvironmentSettings[0].Name + Assert-AreEqual $env1Value $jobSchedule2.JobSpecification.JobManagerTask.EnvironmentSettings[0].Value + Assert-AreEqual $env2Name $jobSchedule2.JobSpecification.JobManagerTask.EnvironmentSettings[1].Name + Assert-AreEqual $env2Value $jobSchedule2.JobSpecification.JobManagerTask.EnvironmentSettings[1].Value + Assert-AreEqual $resourceFileCount $jobSchedule2.JobSpecification.JobManagerTask.ResourceFiles.Count + Assert-AreEqual $blobSource $jobSchedule2.JobSpecification.JobManagerTask.ResourceFiles[0].BlobSource + Assert-AreEqual $filePath $jobSchedule2.JobSpecification.JobManagerTask.ResourceFiles[0].FilePath + Assert-AreEqual $killOnCompletion $jobSchedule2.JobSpecification.JobManagerTask.KillJobOnCompletion + Assert-AreEqual $jobMgrId $jobSchedule2.JobSpecification.JobManagerTask.Id + Assert-AreEqual $jobMgrDisplay $jobSchedule2.JobSpecification.JobManagerTask.DisplayName + Assert-AreEqual $runElevated $jobSchedule2.JobSpecification.JobManagerTask.RunElevated + Assert-AreEqual $jobMgrMaxWallClockTime $jobSchedule2.JobSpecification.JobManagerTask.Constraints.MaxWallClockTime + Assert-AreEqual $jobPrepCmd $jobSchedule2.JobSpecification.JobPreparationTask.CommandLine + Assert-AreEqual $jobPrepEnvCount $jobSchedule2.JobSpecification.JobPreparationTask.EnvironmentSettings.Count + Assert-AreEqual $jobPrepEnv1Name $jobSchedule2.JobSpecification.JobPreparationTask.EnvironmentSettings[0].Name + Assert-AreEqual $jobPrepEnv1Value $jobSchedule2.JobSpecification.JobPreparationTask.EnvironmentSettings[0].Value + Assert-AreEqual $jobPrepEnv2Name $jobSchedule2.JobSpecification.JobPreparationTask.EnvironmentSettings[1].Name + Assert-AreEqual $jobPrepEnv2Value $jobSchedule2.JobSpecification.JobPreparationTask.EnvironmentSettings[1].Value + Assert-AreEqual $jobPrepResourceFileCount $jobSchedule2.JobSpecification.JobPreparationTask.ResourceFiles.Count + Assert-AreEqual $jobPrepBlobSource $jobSchedule2.JobSpecification.JobPreparationTask.ResourceFiles[0].BlobSource + Assert-AreEqual $jobPrepFilePath $jobSchedule2.JobSpecification.JobPreparationTask.ResourceFiles[0].FilePath + Assert-AreEqual $jobPrepId $jobSchedule2.JobSpecification.JobPreparationTask.Id + Assert-AreEqual $jobPrepRunElevated $jobSchedule2.JobSpecification.JobPreparationTask.RunElevated + Assert-AreEqual $jobPrepRetryCount $jobSchedule2.JobSpecification.JobPreparationTask.Constraints.MaxTaskRetryCount + Assert-AreEqual $jobReleaseCmd $jobSchedule2.JobSpecification.JobReleaseTask.CommandLine + Assert-AreEqual $jobReleaseEnvCount $jobSchedule2.JobSpecification.JobReleaseTask.EnvironmentSettings.Count + Assert-AreEqual $jobReleaseEnv1Name $jobSchedule2.JobSpecification.JobReleaseTask.EnvironmentSettings[0].Name + Assert-AreEqual $jobReleaseEnv1Value $jobSchedule2.JobSpecification.JobReleaseTask.EnvironmentSettings[0].Value + Assert-AreEqual $jobReleaseEnv2Name $jobSchedule2.JobSpecification.JobReleaseTask.EnvironmentSettings[1].Name + Assert-AreEqual $jobReleaseEnv2Value $jobSchedule2.JobSpecification.JobReleaseTask.EnvironmentSettings[1].Value + Assert-AreEqual $jobReleaseResourceFileCount $jobSchedule2.JobSpecification.JobReleaseTask.ResourceFiles.Count + Assert-AreEqual $jobReleaseBlobSource $jobSchedule2.JobSpecification.JobReleaseTask.ResourceFiles[0].BlobSource + Assert-AreEqual $jobReleaseFilePath $jobSchedule2.JobSpecification.JobReleaseTask.ResourceFiles[0].FilePath + Assert-AreEqual $jobReleaseId $jobSchedule2.JobSpecification.JobReleaseTask.Id + Assert-AreEqual $jobReleaseRunElevated $jobSchedule2.JobSpecification.JobReleaseTask.RunElevated + Assert-AreEqual $maxTaskRetry $jobSchedule2.JobSpecification.Constraints.MaxTaskRetryCount + Assert-AreEqual $maxWallClockTime $jobSchedule2.JobSpecification.Constraints.MaxWallClockTime + Assert-AreEqual $jobSpecMetaCount $jobSchedule2.JobSpecification.Metadata.Count + Assert-AreEqual $jobSpecMeta1Name $jobSchedule2.JobSpecification.Metadata[0].Name + Assert-AreEqual $jobSpecMeta1Value $jobSchedule2.JobSpecification.Metadata[0].Value + Assert-AreEqual $jobSpecMeta2Name $jobSchedule2.JobSpecification.Metadata[1].Name + Assert-AreEqual $jobSpecMeta2Value $jobSchedule2.JobSpecification.Metadata[1].Value + Assert-AreEqual $jobSpec2Pri $jobSchedule2.JobSpecification.Priority + Assert-AreEqual $recurrence $jobSchedule2.Schedule.RecurrenceInterval + Assert-AreEqual $startWindow $jobSchedule2.Schedule.StartWindow + Assert-AreEqual $metadata.Count $jobSchedule2.Metadata.Count + foreach($m in $jobSchedule2.Metadata) + { + Assert-AreEqual $metadata[$m.Name] $m.Value + } + } + finally + { + Remove-AzureBatchJobSchedule_ST -Id $jsId1 -Force -BatchContext $context + Remove-AzureBatchJobSchedule_ST -Id $jsId2 -Force -BatchContext $context + } +} + +<# +.SYNOPSIS +Tests querying for a Batch job schedule by id +#> +function Test-GetJobScheduleById +{ + param([string]$accountName, [string]$jsId) + + $context = Get-AzureBatchAccountKeys -Name $accountName + $jobSchedule = Get-AzureBatchJobSchedule_ST -Id $jsId -BatchContext $context + + Assert-AreEqual $jsId $jobSchedule.Id +} + +<# +.SYNOPSIS +Tests querying for Batch job schedules using a filter +#> +function Test-ListJobSchedulesByFilter +{ + param([string]$accountName, [string]$jsPrefix, [string]$matches) + + $context = Get-AzureBatchAccountKeys -Name $accountName + $jsFilter = "startswith(id,'" + "$jsPrefix" + "')" + $jobSchedules = Get-AzureBatchJobSchedule_ST -Filter $jsFilter -BatchContext $context + + Assert-AreEqual $matches $jobSchedules.Length + foreach($jobSchedule in $jobSchedules) + { + Assert-True { $jobSchedule.Id.StartsWith("$jsPrefix") } + } +} + +<# +.SYNOPSIS +Tests querying for Batch job schedules and supplying a max count +#> +function Test-ListJobSchedulesWithMaxCount +{ + param([string]$accountName, [string]$maxCount) + + $context = Get-AzureBatchAccountKeys -Name $accountName + $jobSchedules = Get-AzureBatchJobSchedule_ST -MaxCount $maxCount -BatchContext $context + + Assert-AreEqual $maxCount $jobSchedules.Length +} + +<# +.SYNOPSIS +Tests querying for all job schedules under an account +#> +function Test-ListAllJobSchedules +{ + param([string]$accountName, [string]$count) + + $context = Get-AzureBatchAccountKeys -Name $accountName + $jobSchedules = Get-AzureBatchJobSchedule_ST -BatchContext $context + + Assert-AreEqual $count $jobSchedules.Length +} + +<# +.SYNOPSIS +Tests deleting a job schedule +#> +function Test-DeleteJobSchedule +{ + param([string]$accountName, [string]$jobScheduleId, [string]$usePipeline) + + $context = Get-AzureBatchAccountKeys -Name $accountName + + # Verify the job schedule exists + $jobSchedules = Get-AzureBatchJobSchedule_ST -BatchContext $context + Assert-AreEqual 1 $jobSchedules.Count + + if ($usePipeline -eq '1') + { + Get-AzureBatchJobSchedule_ST -Id $jobScheduleId -BatchContext $context | Remove-AzureBatchJobSchedule_ST -Force -BatchContext $context + } + else + { + Remove-AzureBatchJobSchedule_ST -Id $jobScheduleId -Force -BatchContext $context + } + + # 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' } +} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/JobTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/JobTests.cs index 7c7a65d8c97b..df8b6eaa7331 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/JobTests.cs +++ b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/JobTests.cs @@ -27,35 +27,32 @@ namespace Microsoft.Azure.Commands.Batch.Test.ScenarioTests public class JobTests { private const string accountName = ScenarioTestHelpers.SharedAccount; - private const string poolName = ScenarioTestHelpers.SharedPool; [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestGetJobRequiredParameters() + public void TestNewJob() { BatchController controller = BatchController.NewInstance; - controller.RunPsTest(string.Format("Test-GetJobRequiredParameters '{0}'", accountName)); + controller.RunPsTest(string.Format("Test-NewJob '{0}'", accountName)); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestGetJobByName() + public void TestGetJobById() { BatchController controller = BatchController.NewInstance; - string workItemName = "testName"; - string jobName = null; + string jobId = "testJob"; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-GetJobByName '{0}' '{1}' '{2}'", accountName, workItemName, jobName) }; }, + () => { return new string[] { string.Format("Test-GetJobById '{0}' '{1}'", accountName, jobId) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName); - jobName = ScenarioTestHelpers.WaitForRecentJob(controller, context, workItemName); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId); }, () => { - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName); + ScenarioTestHelpers.DeleteJob(controller, context, jobId); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -66,24 +63,27 @@ public void TestGetJobByName() public void TestListJobsByFilter() { BatchController controller = BatchController.NewInstance; - string workItemName = "testWorkItem"; + string jobId1 = "testId1"; + string jobId2 = "testId2"; + string jobId3 = "thirdtestId"; string state = "active"; - int matches = 1; + int matches = 2; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-ListJobsByFilter '{0}' '{1}' '{2}' '{3}'", accountName, workItemName, state, matches) }; }, + () => { return new string[] { string.Format("Test-ListJobsByFilter '{0}' '{1}' '{2}'", accountName, state.ToString(), matches) }; }, () => { - TimeSpan recurrence = TimeSpan.FromMinutes(1); context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName, recurrence); - string jobName = ScenarioTestHelpers.WaitForRecentJob(controller, context, workItemName); - ScenarioTestHelpers.TerminateJob(context, workItemName, jobName); - ScenarioTestHelpers.WaitForRecentJob(controller, context, workItemName, jobName); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId1); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId2); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId3); + ScenarioTestHelpers.TerminateJob(context, jobId1); }, () => { - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName); + ScenarioTestHelpers.DeleteJob(controller, context, jobId1); + ScenarioTestHelpers.DeleteJob(controller, context, jobId2); + ScenarioTestHelpers.DeleteJob(controller, context, jobId3); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -94,23 +94,25 @@ public void TestListJobsByFilter() public void TestListJobsWithMaxCount() { BatchController controller = BatchController.NewInstance; - string workItemName = "testWorkItem"; + string jobId1 = "testId1"; + string jobId2 = "testId2"; + string jobId3 = "thirdtestId"; int maxCount = 1; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-ListJobsWithMaxCount '{0}' '{1}' '{2}'", accountName, workItemName, maxCount) }; }, + () => { return new string[] { string.Format("Test-ListJobsWithMaxCount '{0}' '{1}'", accountName, maxCount) }; }, () => { - TimeSpan recurrence = TimeSpan.FromMinutes(1); context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName, recurrence); - string jobName = ScenarioTestHelpers.WaitForRecentJob(controller, context, workItemName); - ScenarioTestHelpers.TerminateJob(context, workItemName, jobName); - ScenarioTestHelpers.WaitForRecentJob(controller, context, workItemName, jobName); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId1); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId2); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId3); }, () => { - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName); + ScenarioTestHelpers.DeleteJob(controller, context, jobId1); + ScenarioTestHelpers.DeleteJob(controller, context, jobId2); + ScenarioTestHelpers.DeleteJob(controller, context, jobId3); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -121,23 +123,25 @@ public void TestListJobsWithMaxCount() public void TestListAllJobs() { BatchController controller = BatchController.NewInstance; - string workItemName = "testWorkItem"; - int count = 2; + string jobId1 = "testId1"; + string jobId2 = "testId2"; + string jobId3 = "thirdtestId"; + int count = 3; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-ListAllJobs '{0}' '{1}' '{2}'", accountName, workItemName, count) }; }, + () => { return new string[] { string.Format("Test-ListAllJobs '{0}' '{1}'", accountName, count) }; }, () => { - TimeSpan recurrence = TimeSpan.FromMinutes(1); context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName, recurrence); - string jobName = ScenarioTestHelpers.WaitForRecentJob(controller, context, workItemName); - ScenarioTestHelpers.TerminateJob(context, workItemName, jobName); - ScenarioTestHelpers.WaitForRecentJob(controller, context, workItemName, jobName); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId1); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId2); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId3); }, () => { - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName); + ScenarioTestHelpers.DeleteJob(controller, context, jobId1); + ScenarioTestHelpers.DeleteJob(controller, context, jobId2); + ScenarioTestHelpers.DeleteJob(controller, context, jobId3); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -145,24 +149,33 @@ public void TestListAllJobs() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestListJobPipeline() + public void TestListJobsUnderSchedule() { BatchController controller = BatchController.NewInstance; - string workItemName = "testWorkItem"; - string jobName = null; + string jobScheduleId = "testJobSchedule"; + string jobId = null; + string jobId2 = null; + string runOnceJob = "runOnceId"; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-ListJobPipeline '{0}' '{1}' '{2}'", accountName, workItemName, jobName) }; }, + () => { return new string[] { string.Format("Test-ListJobsUnderSchedule '{0}' '{1}' '{2}' '{3}'", accountName, jobScheduleId, jobId, 2) }; }, () => { + TimeSpan recurrence = TimeSpan.FromMinutes(1); context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName); - jobName = ScenarioTestHelpers.WaitForRecentJob(controller, context, workItemName); + ScenarioTestHelpers.CreateTestJob(controller, context, runOnceJob); + ScenarioTestHelpers.CreateTestJobSchedule(controller, context, jobScheduleId, recurrence); + jobId = ScenarioTestHelpers.WaitForRecentJob(controller, context, jobScheduleId); + ScenarioTestHelpers.TerminateJob(context, jobId); + jobId2 = ScenarioTestHelpers.WaitForRecentJob(controller, context, jobScheduleId, jobId); }, () => { - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName); + ScenarioTestHelpers.DeleteJob(controller, context, runOnceJob); + ScenarioTestHelpers.DeleteJob(controller, context, jobId); + ScenarioTestHelpers.DeleteJob(controller, context, jobId2); + ScenarioTestHelpers.DeleteJobSchedule(controller, context, jobScheduleId); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -173,22 +186,17 @@ public void TestListJobPipeline() public void TestDeleteJob() { BatchController controller = BatchController.NewInstance; - string workItemName = "testWorkItem"; - string jobName = null; + string jobId = "deleteJobTest"; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-DeleteJob '{0}' '{1}' '{2}' '0'", accountName, workItemName, jobName) }; }, + () => { return new string[] { string.Format("Test-DeleteJob '{0}' '{1}' '0'", accountName, jobId) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName); - jobName = ScenarioTestHelpers.WaitForRecentJob(controller, context, workItemName); - }, - () => - { - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId); }, + null, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); } @@ -198,28 +206,33 @@ public void TestDeleteJob() public void TestDeleteJobPipeline() { BatchController controller = BatchController.NewInstance; - string workItemName = "testWorkItem"; - string jobName = null; + string jobId = "testDeleteJobPipe"; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-DeleteJob '{0}' '{1}' '{2}' '1'", accountName, workItemName, jobName) }; }, + () => { return new string[] { string.Format("Test-DeleteJob '{0}' '{1}' '1'", accountName, jobId) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName); - jobName = ScenarioTestHelpers.WaitForRecentJob(controller, context, workItemName); - }, - () => - { - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId); }, + null, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); } } // Cmdlets that use the HTTP Recorder interceptor for use with scenario tests + [Cmdlet(VerbsCommon.New, "AzureBatchJob_ST")] + public class NewBatchJobScenarioTestCommand : NewBatchJobCommand + { + public override void ExecuteCmdlet() + { + AdditionalBehaviors = new List() { ScenarioTestHelpers.CreateHttpRecordingInterceptor() }; + base.ExecuteCmdlet(); + } + } + [Cmdlet(VerbsCommon.Get, "AzureBatchJob_ST", DefaultParameterSetName = Constants.ODataFilterParameterSet)] public class GetBatchJobScenarioTestCommand : GetBatchJobCommand { diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/JobTests.ps1 b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/JobTests.ps1 index 3b487b010452..585b0231df5c 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/JobTests.ps1 +++ b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/JobTests.ps1 @@ -14,143 +14,341 @@ <# .SYNOPSIS -Tests that calling Get-AzureBatchJob without required parameters throws error +Tests creating Batch jobs #> -function Test-GetJobRequiredParameters +function Test-NewJob { param([string]$accountName) $context = Get-AzureBatchAccountKeys -Name $accountName - Assert-Throws { Get-AzureBatchJob_ST -BatchContext $context } + + $jobId1 = "simple" + $jobId2 = "complex" + + try + { + # Create a simple job + $poolInformation1 = New-Object Microsoft.Azure.Commands.Batch.Models.PSPoolInformation + $poolInformation1.PoolId = $poolId = "testPool" + New-AzureBatchJob_ST -Id $jobId1 -PoolInformation $poolInformation1 -BatchContext $context + $job1 = Get-AzureBatchJob_ST -Id $jobId1 -BatchContext $context + + # Verify created job matches expectations + Assert-AreEqual $jobId1 $job1.Id + Assert-AreEqual $poolId $job1.PoolInformation.PoolId + + # Create a complicated job + $startTask = New-Object Microsoft.Azure.Commands.Batch.Models.PSStartTask + $startTaskCmd = "cmd /c dir /s" + $startTask.CommandLine = $startTaskCmd + + $poolSpec = New-Object Microsoft.Azure.Commands.Batch.Models.PSPoolSpecification + $poolSpec.TargetDedicated = $targetDedicated = 3 + $poolSpec.VirtualMachineSize = $vmSize = "small" + $poolSpec.OSFamily = $osFamily = "4" + $poolSpec.TargetOSVersion = $targetOS = "*" + $poolSpec.StartTask = $startTask + + $poolSpec.CertificateReferences = new-object System.Collections.Generic.List``1[Microsoft.Azure.Commands.Batch.Models.PSCertificateReference] + $certRef = New-Object Microsoft.Azure.Commands.Batch.Models.PSCertificateReference + $certRef.StoreLocation = $storeLocation = ([Microsoft.Azure.Batch.Common.CertStoreLocation]::LocalMachine) + $certRef.StoreName = $storeName = "certStore" + $certRef.Thumbprint = $thumbprint = "0123456789ABCDEF" + $certRef.ThumbprintAlgorithm = $thumbprintAlgorithm = "sha1" + $certRef.Visibility = $visibility = ([Microsoft.Azure.Batch.Common.CertificateVisibility]::StartTask) + $poolSpec.CertificateReferences.Add($certRef) + $certRefCount = $poolSpec.CertificateReferences.Count + + $autoPoolSpec = New-Object Microsoft.Azure.Commands.Batch.Models.PSAutoPoolSpecification + $autoPoolSpec.PoolSpecification = $poolSpec + $autoPoolSpec.AutoPoolIdPrefix = $autoPoolIdPrefix = "TestSpecPrefix" + $autoPoolSpec.KeepAlive = $keepAlive = $false + $autoPoolSpec.PoolLifeTimeOption = $poolLifeTime = ([Microsoft.Azure.Batch.Common.PoolLifeTimeOption]::Job) + + $poolInformation2 = New-Object Microsoft.Azure.Commands.Batch.Models.PSPoolInformation + $poolInformation2.AutoPoolSpecification = $autoPoolSpec + + $jobMgr = New-Object Microsoft.Azure.Commands.Batch.Models.PSJobManagerTask + $jobMgr.CommandLine = $jobMgrCmd = "cmd /c dir /s" + $jobMgr.EnvironmentSettings = New-Object System.Collections.Generic.List``1[Microsoft.Azure.Commands.Batch.Models.PSEnvironmentSetting] + $env1 = New-Object Microsoft.Azure.Commands.Batch.Models.PSEnvironmentSetting -ArgumentList "name1","value1" + $env2 = New-Object Microsoft.Azure.Commands.Batch.Models.PSEnvironmentSetting -ArgumentList "name2","value2" + $env1Name = $env1.Name + $env1Value = $env1.Value + $env2Name = $env2.Name + $env2Value = $env2.Value + $jobMgr.EnvironmentSettings.Add($env1) + $jobMgr.EnvironmentSettings.Add($env2) + $envCount = $jobMgr.EnvironmentSettings.Count + $jobMgr.ResourceFiles = new-object System.Collections.Generic.List``1[Microsoft.Azure.Commands.Batch.Models.PSResourceFile] + $r1 = New-Object Microsoft.Azure.Commands.Batch.Models.PSResourceFile -ArgumentList "https://testacct.blob.core.windows.net/","filePath" + $blobSource = $r1.BlobSource + $filePath = $r1.FilePath + $jobMgr.ResourceFiles.Add($r1) + $resourceFileCount = $jobMgr.ResourceFiles.Count + $jobMgr.KillJobOnCompletion = $killOnCompletion = $false + $jobMgr.Id = $jobMgrId = "jobManager" + $jobMgr.DisplayName = $jobMgrDisplay = "jobManagerDisplay" + $jobMgr.RunElevated = $runElevated = $false + $jobMgrMaxWallClockTime = [TimeSpan]::FromHours(1) + $jobMgr.Constraints = New-Object Microsoft.Azure.Commands.Batch.Models.PSTaskConstraints -ArgumentList @($jobMgrMaxWallClockTime,$null,$null) + + $jobPrep = New-Object Microsoft.Azure.Commands.Batch.Models.PSJobPreparationTask + $jobPrep.CommandLine = $jobPrepCmd = "cmd /c dir /s" + $jobPrep.EnvironmentSettings = New-Object System.Collections.Generic.List``1[Microsoft.Azure.Commands.Batch.Models.PSEnvironmentSetting] + $jobPrepEnv1 = New-Object Microsoft.Azure.Commands.Batch.Models.PSEnvironmentSetting -ArgumentList "jobPrepName1","jobPrepValue1" + $jobPrepEnv2 = New-Object Microsoft.Azure.Commands.Batch.Models.PSEnvironmentSetting -ArgumentList "jobPrepName2","jobPrepValue2" + $jobPrepEnv1Name = $jobPrepEnv1.Name + $jobPrepEnv1Value = $jobPrepEnv1.Value + $jobPrepEnv2Name = $jobPrepEnv2.Name + $jobPrepEnv2Value = $jobPrepEnv2.Value + $jobPrep.EnvironmentSettings.Add($jobPrepEnv1) + $jobPrep.EnvironmentSettings.Add($jobPrepEnv2) + $jobPrepEnvCount = $jobPrep.EnvironmentSettings.Count + $jobPrep.ResourceFiles = new-object System.Collections.Generic.List``1[Microsoft.Azure.Commands.Batch.Models.PSResourceFile] + $jobPrepR1 = New-Object Microsoft.Azure.Commands.Batch.Models.PSResourceFile -ArgumentList "https://testacct.blob.core.windows.net/","jobPrepFilePath" + $jobPrepBlobSource = $jobPrepR1.BlobSource + $jobPrepFilePath = $jobPrepR1.FilePath + $jobPrep.ResourceFiles.Add($jobPrepR1) + $jobPrepResourceFileCount = $jobPrep.ResourceFiles.Count + $jobPrep.Id = $jobPrepId = "jobPrep" + $jobPrep.RunElevated = $jobPrepRunElevated = $false + $jobPrepRetryCount = 2 + $jobPrep.Constraints = New-Object Microsoft.Azure.Commands.Batch.Models.PSTaskConstraints -ArgumentList @($null,$null,$jobPrepRetryCount) + + $jobRelease = New-Object Microsoft.Azure.Commands.Batch.Models.PSJobReleaseTask + $jobRelease.CommandLine = $jobReleaseCmd = "cmd /c dir /s" + $jobRelease.EnvironmentSettings = New-Object System.Collections.Generic.List``1[Microsoft.Azure.Commands.Batch.Models.PSEnvironmentSetting] + $jobReleaseEnv1 = New-Object Microsoft.Azure.Commands.Batch.Models.PSEnvironmentSetting -ArgumentList "jobReleaseName1","jobReleaseValue1" + $jobReleaseEnv2 = New-Object Microsoft.Azure.Commands.Batch.Models.PSEnvironmentSetting -ArgumentList "jobReleaseName2","jobReleaseValue2" + $jobReleaseEnv1Name = $jobReleaseEnv1.Name + $jobReleaseEnv1Value = $jobReleaseEnv1.Value + $jobReleaseEnv2Name = $jobReleaseEnv2.Name + $jobReleaseEnv2Value = $jobReleaseEnv2.Value + $jobRelease.EnvironmentSettings.Add($jobReleaseEnv1) + $jobRelease.EnvironmentSettings.Add($jobReleaseEnv2) + $jobReleaseEnvCount = $jobRelease.EnvironmentSettings.Count + $jobRelease.ResourceFiles = new-object System.Collections.Generic.List``1[Microsoft.Azure.Commands.Batch.Models.PSResourceFile] + $jobReleaseR1 = New-Object Microsoft.Azure.Commands.Batch.Models.PSResourceFile -ArgumentList "https://testacct.blob.core.windows.net/","jobReleaseFilePath" + $jobReleaseBlobSource = $jobReleaseR1.BlobSource + $jobReleaseFilePath = $jobReleaseR1.FilePath + $jobRelease.ResourceFiles.Add($jobReleaseR1) + $jobReleaseResourceFileCount = $jobRelease.ResourceFiles.Count + $jobRelease.Id = $jobReleaseId = "jobRelease" + $jobRelease.RunElevated = $jobReleaseRunElevated = $false + + $jobConstraints = New-Object Microsoft.Azure.Commands.Batch.Models.PSJobConstraints -ArgumentList @([TimeSpan]::FromDays(1),5) + $maxWallClockTime = $jobConstraints.MaxWallClockTime + $maxTaskRetry = $jobConstraints.MaxTaskRetryCount + + $metadata = @{"meta1"="value1";"meta2"="value2"} + $commonEnvSettings = @{"commonEnv1"="envValue1";"commonEnv2"="envValue2"} + + $displayName = "displayName" + $priority = 1 + + New-AzureBatchJob_ST -Id $jobId2 -DisplayName $displayName -CommonEnvironmentSettings $commonEnvSettings -Constraints $jobConstraints -JobManagerTask $jobMgr -JobPreparationTask $jobPrep -JobReleaseTask $jobRelease -PoolInformation $poolInformation2 -Metadata $metadata -Priority $priority -BatchContext $context + + $job2 = Get-AzureBatchJob_ST -Id $jobId2 -BatchContext $context + + # Verify created job matches expectations + Assert-AreEqual $jobId2 $job2.Id + Assert-AreEqual $displayName $job2.DisplayName + Assert-AreEqual $autoPoolIdPrefix $job2.PoolInformation.AutoPoolSpecification.AutoPoolIdPrefix + Assert-AreEqual $keepAlive $job2.PoolInformation.AutoPoolSpecification.KeepAlive + Assert-AreEqual $poolLifeTime $job2.PoolInformation.AutoPoolSpecification.PoolLifeTimeOption + Assert-AreEqual $targetDedicated $job2.PoolInformation.AutoPoolSpecification.PoolSpecification.TargetDedicated + Assert-AreEqual $vmSize $job2.PoolInformation.AutoPoolSpecification.PoolSpecification.VirtualMachineSize + Assert-AreEqual $osFamily $job2.PoolInformation.AutoPoolSpecification.PoolSpecification.OSFamily + Assert-AreEqual $targetOS $job2.PoolInformation.AutoPoolSpecification.PoolSpecification.TargetOSVersion + Assert-AreEqual $certRefCount $job2.PoolInformation.AutoPoolSpecification.PoolSpecification.CertificateReferences.Count + Assert-AreEqual $storeLocation $job2.PoolInformation.AutoPoolSpecification.PoolSpecification.CertificateReferences[0].StoreLocation + Assert-AreEqual $storeName $job2.PoolInformation.AutoPoolSpecification.PoolSpecification.CertificateReferences[0].StoreName + Assert-AreEqual $thumbprint $job2.PoolInformation.AutoPoolSpecification.PoolSpecification.CertificateReferences[0].Thumbprint + Assert-AreEqual $thumbprintAlgorithm $job2.PoolInformation.AutoPoolSpecification.PoolSpecification.CertificateReferences[0].ThumbprintAlgorithm + Assert-AreEqual $visibility $job2.PoolInformation.AutoPoolSpecification.PoolSpecification.CertificateReferences[0].Visibility + Assert-AreEqual $startTaskCmd $job2.PoolInformation.AutoPoolSpecification.PoolSpecification.StartTask.CommandLine + Assert-AreEqual $jobMgrCmd $job2.JobManagerTask.CommandLine + Assert-AreEqual $envCount $job2.JobManagerTask.EnvironmentSettings.Count + Assert-AreEqual $env1Name $job2.JobManagerTask.EnvironmentSettings[0].Name + Assert-AreEqual $env1Value $job2.JobManagerTask.EnvironmentSettings[0].Value + Assert-AreEqual $env2Name $job2.JobManagerTask.EnvironmentSettings[1].Name + Assert-AreEqual $env2Value $job2.JobManagerTask.EnvironmentSettings[1].Value + Assert-AreEqual $resourceFileCount $job2.JobManagerTask.ResourceFiles.Count + Assert-AreEqual $blobSource $job2.JobManagerTask.ResourceFiles[0].BlobSource + Assert-AreEqual $filePath $job2.JobManagerTask.ResourceFiles[0].FilePath + Assert-AreEqual $killOnCompletion $job2.JobManagerTask.KillJobOnCompletion + Assert-AreEqual $jobMgrId $job2.JobManagerTask.Id + Assert-AreEqual $jobMgrDisplay $job2.JobManagerTask.DisplayName + Assert-AreEqual $runElevated $job2.JobManagerTask.RunElevated + Assert-AreEqual $jobMgrMaxWallClockTime $job2.JobManagerTask.Constraints.MaxWallClockTime + Assert-AreEqual $jobPrepCmd $job2.JobPreparationTask.CommandLine + Assert-AreEqual $jobPrepEnvCount $job2.JobPreparationTask.EnvironmentSettings.Count + Assert-AreEqual $jobPrepEnv1Name $job2.JobPreparationTask.EnvironmentSettings[0].Name + Assert-AreEqual $jobPrepEnv1Value $job2.JobPreparationTask.EnvironmentSettings[0].Value + Assert-AreEqual $jobPrepEnv2Name $job2.JobPreparationTask.EnvironmentSettings[1].Name + Assert-AreEqual $jobPrepEnv2Value $job2.JobPreparationTask.EnvironmentSettings[1].Value + Assert-AreEqual $jobPrepResourceFileCount $job2.JobPreparationTask.ResourceFiles.Count + Assert-AreEqual $jobPrepBlobSource $job2.JobPreparationTask.ResourceFiles[0].BlobSource + Assert-AreEqual $jobPrepFilePath $job2.JobPreparationTask.ResourceFiles[0].FilePath + Assert-AreEqual $jobPrepId $job2.JobPreparationTask.Id + Assert-AreEqual $jobPrepRunElevated $job2.JobPreparationTask.RunElevated + Assert-AreEqual $jobPrepRetryCount $job2.JobPreparationTask.Constraints.MaxTaskRetryCount + Assert-AreEqual $jobReleaseCmd $job2.JobReleaseTask.CommandLine + Assert-AreEqual $jobReleaseEnvCount $job2.JobReleaseTask.EnvironmentSettings.Count + Assert-AreEqual $jobReleaseEnv1Name $job2.JobReleaseTask.EnvironmentSettings[0].Name + Assert-AreEqual $jobReleaseEnv1Value $job2.JobReleaseTask.EnvironmentSettings[0].Value + Assert-AreEqual $jobReleaseEnv2Name $job2.JobReleaseTask.EnvironmentSettings[1].Name + Assert-AreEqual $jobReleaseEnv2Value $job2.JobReleaseTask.EnvironmentSettings[1].Value + Assert-AreEqual $jobReleaseResourceFileCount $job2.JobReleaseTask.ResourceFiles.Count + Assert-AreEqual $jobReleaseBlobSource $job2.JobReleaseTask.ResourceFiles[0].BlobSource + Assert-AreEqual $jobReleaseFilePath $job2.JobReleaseTask.ResourceFiles[0].FilePath + Assert-AreEqual $jobReleaseId $job2.JobReleaseTask.Id + Assert-AreEqual $jobReleaseRunElevated $job2.JobReleaseTask.RunElevated + Assert-AreEqual $maxTaskRetry $job2.Constraints.MaxTaskRetryCount + Assert-AreEqual $maxWallClockTime $job2.Constraints.MaxWallClockTime + Assert-AreEqual $priority $job2.Priority + Assert-AreEqual $metadata.Count $job2.Metadata.Count + foreach($m in $job2.Metadata) + { + Assert-AreEqual $metadata[$m.Name] $m.Value + } + Assert-AreEqual $commonEnvSettings.Count $job2.CommonEnvironmentSettings.Count + foreach($e in $job2.CommonEnvironmentSettings) + { + Assert-AreEqual $commonEnvSettings[$e.Name] $e.Value + } + } + finally + { + Remove-AzureBatchJob_ST -Id $jobId1 -Force -BatchContext $context + Remove-AzureBatchJob_ST -Id $jobId2 -Force -BatchContext $context + } } + <# .SYNOPSIS -Tests querying for a Batch Job by name +Tests querying for a Batch job by id #> -function Test-GetJobByName +function Test-GetJobById { - param([string]$accountName, [string]$wiName, [string]$jobName) + param([string]$accountName, [string]$jobId) $context = Get-AzureBatchAccountKeys -Name $accountName - $job = Get-AzureBatchJob_ST -WorkItemName $wiName -Name $jobName -BatchContext $context + $job = Get-AzureBatchJob_ST -Id $jobId -BatchContext $context - Assert-AreEqual $jobName $job.Name + Assert-AreEqual $jobId $job.Id # Verify positional parameters also work - $job = Get-AzureBatchJob_ST $wiName $jobName -BatchContext $context + $job = Get-AzureBatchJob_ST $jobId -BatchContext $context - Assert-AreEqual $jobName $job.Name + Assert-AreEqual $jobId $job.Id } <# .SYNOPSIS -Tests querying for Batch Jobs using a filter +Tests querying for Batch jobs using a filter #> function Test-ListJobsByFilter { - param([string]$accountName, [string]$workItemName, [string]$state, [string]$matches) + param([string]$accountName, [string]$state, [string]$matches) $context = Get-AzureBatchAccountKeys -Name $accountName - $filter = "state eq '" + "$state" + "'" + $filter = "state eq'" + "$state" + "'" - $jobs = Get-AzureBatchJob_ST -WorkItemName $workItemName -Filter $filter -BatchContext $context + $jobs = Get-AzureBatchJob_ST -Filter $filter -BatchContext $context Assert-AreEqual $matches $jobs.Length foreach($job in $jobs) { - Assert-AreEqual $state $job.State.ToString().ToLower() - } - - # Verify parent object parameter set also works - $workItem = Get-AzureBatchWorkItem_ST $workItemName -BatchContext $context - $jobs = Get-AzureBatchJob_ST -WorkItem $workItem -Filter $filter -BatchContext $context - - Assert-AreEqual $matches $jobs.Length - foreach($job in $jobs) - { - Assert-AreEqual $state $job.State.ToString().ToLower() + Assert-True { $job.Id.StartsWith("$idPrefix") } } } <# .SYNOPSIS -Tests querying for Batch Jobs and supplying a max count +Tests querying for Batch jobs and supplying a max count #> function Test-ListJobsWithMaxCount { - param([string]$accountName, [string]$workItemName, [string]$maxCount) + param([string]$accountName, [string]$maxCount) $context = Get-AzureBatchAccountKeys -Name $accountName - $jobs = Get-AzureBatchJob_ST -WorkItemName $workItemName -MaxCount $maxCount -BatchContext $context - - Assert-AreEqual $maxCount $jobs.Length - - # Verify parent object parameter set also works - $workItem = Get-AzureBatchWorkItem_ST $workItemName -BatchContext $context - $jobs = Get-AzureBatchJob_ST -WorkItem $workItem -MaxCount $maxCount -BatchContext $context + $jobs = Get-AzureBatchJob_ST -MaxCount $maxCount -BatchContext $context Assert-AreEqual $maxCount $jobs.Length } <# .SYNOPSIS -Tests querying for all Jobs under a WorkItem +Tests querying for all jobs #> function Test-ListAllJobs { - param([string]$accountName, [string]$workItemName, [string]$count) + param([string]$accountName, [string]$count) $context = Get-AzureBatchAccountKeys -Name $accountName - $jobs = Get-AzureBatchJob_ST -WorkItemName $workItemName -BatchContext $context - - Assert-AreEqual $count $jobs.Length - - # Verify parent object parameter set also works - $workItem = Get-AzureBatchWorkItem_ST $workItemName -BatchContext $context - $jobs = Get-AzureBatchJob_ST -WorkItem $workItem -BatchContext $context + $jobs = Get-AzureBatchJob_ST -BatchContext $context Assert-AreEqual $count $jobs.Length } <# .SYNOPSIS -Tests piping Get-AzureBatchWorkItem into Get-AzureBatchJob +Tests listing the jobs under a job schedule #> -function Test-ListJobPipeline +function Test-ListJobsUnderSchedule { - param([string]$accountName, [string]$workItemName, [string]$jobName) + param([string]$accountName, [string]$jobScheduleId, [string]$jobId, [string]$count) $context = Get-AzureBatchAccountKeys -Name $accountName - $job = Get-AzureBatchWorkItem_ST -Name $workItemName -BatchContext $context | Get-AzureBatchJob_ST -BatchContext $context + $jobSchedule = Get-AzureBatchJobSchedule_ST -Id $jobScheduleId -BatchContext $context + + # Verify that listing jobs works + $allJobs = Get-AzureBatchJob_ST -BatchContext $context + $scheduleJobs = Get-AzureBatchJob_ST -JobScheduleId $jobSchedule.Id -BatchContext $context + + Assert-AreEqual $count $scheduleJobs.Count + Assert-True { $scheduleJobs.Count -lt $allJobs.Count } + + # Verify that pipelining also works + $scheduleJobs = $jobSchedule | Get-AzureBatchJob_ST -BatchContext $context + + Assert-AreEqual $count $scheduleJobs.Count + Assert-True { $scheduleJobs.Count -lt $allJobs.Count } + + # Verify that filter works + $filter = "id eq '" + $jobId + "'" + $job = Get-AzureBatchJob_ST -JobScheduleId $jobScheduleId -Filter $filter -BatchContext $context - Assert-AreEqual $jobName $job.Name + Assert-AreEqual $jobId $job.Id } <# .SYNOPSIS -Tests deleting a Job +Tests deleting a job #> function Test-DeleteJob { - param([string]$accountName, [string]$workItemName, [string]$jobName, [string]$usePipeline) + param([string]$accountName, [string]$jobId, [string]$usePipeline) $context = Get-AzureBatchAccountKeys -Name $accountName # Verify the job exists - $jobs = Get-AzureBatchJob_ST -WorkItemName $workItemName -BatchContext $context + $jobs = Get-AzureBatchJob_ST -BatchContext $context Assert-AreEqual 1 $jobs.Count if ($usePipeline -eq '1') { - Get-AzureBatchJob_ST -WorkItemName $workItemName -Name $jobName -BatchContext $context | Remove-AzureBatchJob_ST -Force -BatchContext $context + Get-AzureBatchJob_ST -Id $jobId -BatchContext $context | Remove-AzureBatchJob_ST -Force -BatchContext $context } else { - Remove-AzureBatchJob_ST -WorkItemName $workItemName -Name $jobName -Force -BatchContext $context + Remove-AzureBatchJob_ST -Id $jobId -Force -BatchContext $context } # Verify the job was deleted - $jobs = Get-AzureBatchJob_ST -WorkItemName $workItemName -BatchContext $context + $jobs = Get-AzureBatchJob_ST -BatchContext $context Assert-True { $jobs -eq $null -or $jobs[0].State.ToString().ToLower() -eq 'deleting' } } \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/PoolTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/PoolTests.cs index 26051b477866..c6cff37c5b22 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/PoolTests.cs +++ b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/PoolTests.cs @@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.Batch.Test.ScenarioTests public class PoolTests { private const string commonAccountName = ScenarioTestHelpers.SharedAccount; - private const string testPoolName = ScenarioTestHelpers.SharedPool; + private const string testPoolId = ScenarioTestHelpers.SharedPool; [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] @@ -34,26 +34,25 @@ public void TestNewPool() { BatchController controller = BatchController.NewInstance; controller.RunPsTest(string.Format("Test-NewPool '{0}'", commonAccountName)); - } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestGetPoolByName() + public void TestGetPoolById() { BatchController controller = BatchController.NewInstance; - string poolName = "testGetPool"; + string poolId = "testGetPool"; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-GetPoolByName '{0}' '{1}'", commonAccountName, poolName) }; }, + () => { return new string[] { string.Format("Test-GetPoolById '{0}' '{1}'", commonAccountName, poolId) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, commonAccountName); - ScenarioTestHelpers.CreateTestPool(controller, context, poolName, 0); + ScenarioTestHelpers.CreateTestPool(controller, context, poolId, 0); }, () => { - ScenarioTestHelpers.DeletePool(controller, context, poolName); + ScenarioTestHelpers.DeletePool(controller, context, poolId); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -64,9 +63,9 @@ public void TestGetPoolByName() public void TestListPoolsByFilter() { BatchController controller = BatchController.NewInstance; - string poolName1 = "testFilter1"; - string poolName2 = "testFilter2"; - string poolName3 = "thirdFilterTest"; + string poolId1 = "testFilter1"; + string poolId2 = "testFilter2"; + string poolId3 = "thirdFilterTest"; string poolPrefix = "testFilter"; int matches = 2; BatchAccountContext context = null; @@ -75,15 +74,15 @@ public void TestListPoolsByFilter() () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, commonAccountName); - ScenarioTestHelpers.CreateTestPool(controller, context, poolName1, 0); - ScenarioTestHelpers.CreateTestPool(controller, context, poolName2, 0); - ScenarioTestHelpers.CreateTestPool(controller, context, poolName3, 0); + ScenarioTestHelpers.CreateTestPool(controller, context, poolId1, 0); + ScenarioTestHelpers.CreateTestPool(controller, context, poolId2, 0); + ScenarioTestHelpers.CreateTestPool(controller, context, poolId3, 0); }, () => { - ScenarioTestHelpers.DeletePool(controller, context, poolName1); - ScenarioTestHelpers.DeletePool(controller, context, poolName2); - ScenarioTestHelpers.DeletePool(controller, context, poolName3); + ScenarioTestHelpers.DeletePool(controller, context, poolId1); + ScenarioTestHelpers.DeletePool(controller, context, poolId2); + ScenarioTestHelpers.DeletePool(controller, context, poolId3); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -94,9 +93,9 @@ public void TestListPoolsByFilter() public void TestListPoolsWithMaxCount() { BatchController controller = BatchController.NewInstance; - string poolName1 = "testMaxCount1"; - string poolName2 = "testMaxCount2"; - string poolName3 = "thirdMaxCount"; + string poolId1 = "testMaxCount1"; + string poolId2 = "testMaxCount2"; + string poolId3 = "thirdMaxCount"; int maxCount = 1; BatchAccountContext context = null; controller.RunPsTestWorkflow( @@ -104,15 +103,15 @@ public void TestListPoolsWithMaxCount() () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, commonAccountName); - ScenarioTestHelpers.CreateTestPool(controller, context, poolName1, 0); - ScenarioTestHelpers.CreateTestPool(controller, context, poolName2, 0); - ScenarioTestHelpers.CreateTestPool(controller, context, poolName3, 0); + ScenarioTestHelpers.CreateTestPool(controller, context, poolId1, 0); + ScenarioTestHelpers.CreateTestPool(controller, context, poolId2, 0); + ScenarioTestHelpers.CreateTestPool(controller, context, poolId3, 0); }, () => { - ScenarioTestHelpers.DeletePool(controller, context, poolName1); - ScenarioTestHelpers.DeletePool(controller, context, poolName2); - ScenarioTestHelpers.DeletePool(controller, context, poolName3); + ScenarioTestHelpers.DeletePool(controller, context, poolId1); + ScenarioTestHelpers.DeletePool(controller, context, poolId2); + ScenarioTestHelpers.DeletePool(controller, context, poolId3); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -123,9 +122,9 @@ public void TestListPoolsWithMaxCount() public void TestListAllPools() { BatchController controller = BatchController.NewInstance; - string poolName1 = "testList1"; - string poolName2 = "testList2"; - string poolName3 = "thirdTestList"; + string poolId1 = "testList1"; + string poolId2 = "testList2"; + string poolId3 = "thirdTestList"; int beforeAddCount = 0; int afterAddCount = 0; BatchAccountContext context = null; @@ -135,16 +134,16 @@ public void TestListAllPools() { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, commonAccountName); beforeAddCount = ScenarioTestHelpers.GetPoolCount(controller, context); - ScenarioTestHelpers.CreateTestPool(controller, context, poolName1, 0); - ScenarioTestHelpers.CreateTestPool(controller, context, poolName2, 0); - ScenarioTestHelpers.CreateTestPool(controller, context, poolName3, 0); + ScenarioTestHelpers.CreateTestPool(controller, context, poolId1, 0); + ScenarioTestHelpers.CreateTestPool(controller, context, poolId2, 0); + ScenarioTestHelpers.CreateTestPool(controller, context, poolId3, 0); afterAddCount = beforeAddCount + 3; }, () => { - ScenarioTestHelpers.DeletePool(controller, context, poolName1); - ScenarioTestHelpers.DeletePool(controller, context, poolName2); - ScenarioTestHelpers.DeletePool(controller, context, poolName3); + ScenarioTestHelpers.DeletePool(controller, context, poolId1); + ScenarioTestHelpers.DeletePool(controller, context, poolId2); + ScenarioTestHelpers.DeletePool(controller, context, poolId3); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -155,15 +154,15 @@ public void TestListAllPools() public void TestDeletePool() { BatchController controller = BatchController.NewInstance; - string poolName = "testDelete"; + string poolId = "testDelete"; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-DeletePool '{0}' '{1}' '0'", commonAccountName, poolName) }; }, + () => { return new string[] { string.Format("Test-DeletePool '{0}' '{1}' '0'", commonAccountName, poolId) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, commonAccountName); - ScenarioTestHelpers.CreateTestPool(controller, context, poolName, 0); + ScenarioTestHelpers.CreateTestPool(controller, context, poolId, 0); }, null, TestUtilities.GetCallingClass(), @@ -175,15 +174,15 @@ public void TestDeletePool() public void TestDeletePoolPipeline() { BatchController controller = BatchController.NewInstance; - string poolName = "testDeletePipe"; + string poolId = "testDeletePipe"; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-DeletePool '{0}' '{1}' '1'", commonAccountName, poolName) }; }, + () => { return new string[] { string.Format("Test-DeletePool '{0}' '{1}' '1'", commonAccountName, poolId) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, commonAccountName); - ScenarioTestHelpers.CreateTestPool(controller, context, poolName, 0); + ScenarioTestHelpers.CreateTestPool(controller, context, poolId, 0); }, null, TestUtilities.GetCallingClass(), @@ -192,16 +191,16 @@ public void TestDeletePoolPipeline() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestResizePoolByName() + public void TestResizePoolById() { BatchController controller = BatchController.NewInstance; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-ResizePoolByName '{0}' '{1}'", commonAccountName, testPoolName) }; }, + () => { return new string[] { string.Format("Test-ResizePoolById '{0}' '{1}'", commonAccountName, testPoolId) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, commonAccountName); - ScenarioTestHelpers.WaitForSteadyPoolAllocation(controller, context, testPoolName); + ScenarioTestHelpers.WaitForSteadyPoolAllocation(controller, context, testPoolId); }, null, TestUtilities.GetCallingClass(), @@ -215,11 +214,11 @@ public void TestResizePoolByPipeline() BatchController controller = BatchController.NewInstance; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-ResizePoolByPipeline '{0}' '{1}'", commonAccountName, testPoolName) }; }, + () => { return new string[] { string.Format("Test-ResizePoolByPipeline '{0}' '{1}'", commonAccountName, testPoolId) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, commonAccountName); - ScenarioTestHelpers.WaitForSteadyPoolAllocation(controller, context, testPoolName); + ScenarioTestHelpers.WaitForSteadyPoolAllocation(controller, context, testPoolId); }, null, TestUtilities.GetCallingClass(), @@ -228,16 +227,16 @@ public void TestResizePoolByPipeline() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestStopResizePoolByName() + public void TestStopResizePoolById() { BatchController controller = BatchController.NewInstance; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-StopResizePoolByName '{0}' '{1}'", commonAccountName, testPoolName) }; }, + () => { return new string[] { string.Format("Test-StopResizePoolById '{0}' '{1}'", commonAccountName, testPoolId) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, commonAccountName); - ScenarioTestHelpers.WaitForSteadyPoolAllocation(controller, context, testPoolName); + ScenarioTestHelpers.WaitForSteadyPoolAllocation(controller, context, testPoolId); }, null, TestUtilities.GetCallingClass(), @@ -251,11 +250,11 @@ public void TestStopResizePoolByPipeline() BatchController controller = BatchController.NewInstance; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-StopResizePoolByPipeline '{0}' '{1}'", commonAccountName, testPoolName) }; }, + () => { return new string[] { string.Format("Test-StopResizePoolByPipeline '{0}' '{1}'", commonAccountName, testPoolId) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, commonAccountName); - ScenarioTestHelpers.WaitForSteadyPoolAllocation(controller, context, testPoolName); + ScenarioTestHelpers.WaitForSteadyPoolAllocation(controller, context, testPoolId); }, null, TestUtilities.GetCallingClass(), diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/PoolTests.ps1 b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/PoolTests.ps1 index f63ee1d7a400..b544fe8ee258 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/PoolTests.ps1 +++ b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/PoolTests.ps1 @@ -22,28 +22,30 @@ function Test-NewPool $context = Get-AzureBatchAccountKeys -Name $accountName - $poolName1 = "simple" - $poolName2 = "complex" + $poolId1 = "simple" + $poolId2 = "complex" try { - # Create a simple Pool using TargetDedicated parameter set + # Create a simple pool using TargetDedicated parameter set $osFamily = "4" + $targetOSVersion = "*" $targetDedicated = 1 $resizeTimeout = ([TimeSpan]::FromMinutes(10)) - New-AzureBatchPool_ST $poolName1 -OSFamily $osFamily -TargetDedicated $targetDedicated -ResizeTimeout $resizeTimeout -BatchContext $context - $pool1 = Get-AzureBatchPool_ST -Name $poolName1 -BatchContext $context + $vmSize = "small" + New-AzureBatchPool_ST $poolId1 -OSFamily $osFamily -TargetOSVersion $targetOSVersion -TargetDedicated $targetDedicated -VirtualMachineSize $vmSize -ResizeTimeout $resizeTimeout -BatchContext $context + $pool1 = Get-AzureBatchPool_ST -Id $poolId1 -BatchContext $context - # Verify created Pool matches expectations - Assert-AreEqual $poolName1 $pool1.Name + # Verify created pool matches expectations + Assert-AreEqual $poolId1 $pool1.Id Assert-AreEqual $osFamily $pool1.OSFamily + Assert-AreEqual $targetOSVersion $pool1.TargetOSVersion Assert-AreEqual $resizeTimeout $pool1.ResizeTimeout Assert-AreEqual $targetDedicated $pool1.TargetDedicated + Assert-AreEqual $vmSize $pool1.VirtualMachineSize - # Create a complicated Pool using AutoScale parameter set - $vmSize = "small" - $targetOSVersion = "*" - $maxTasksPerVM = 2 + # Create a complicated pool using AutoScale parameter set + $maxTasksPerComputeNode = 2 $autoScaleFormula = '$TargetDedicated=2' $startTask = New-Object Microsoft.Azure.Commands.Batch.Models.PSStartTask @@ -60,30 +62,34 @@ function Test-NewPool $startTask.ResourceFiles.Add($r2) $resourceFileCount = $startTask.ResourceFiles.Count - $vmFillType = ([Microsoft.Azure.Batch.Common.TVMFillType]::Pack) - $schedulingPolicy = New-Object Microsoft.Azure.Commands.Batch.Models.PSSchedulingPolicy $vmFillType + $computeNodeFillType = ([Microsoft.Azure.Batch.Common.ComputeNodeFillType]::Pack) + $schedulingPolicy = New-Object Microsoft.Azure.Commands.Batch.Models.PSTaskSchedulingPolicy $computeNodeFillType $metadata = @{"meta1"="value1";"meta2"="value2"} + + $displayName = "displayName" - New-AzureBatchPool_ST -Name $poolName2 -VMSize $vmSize -OSFamily $osFamily -TargetOSVersion $targetOSVersion -MaxTasksPerVM $maxTasksPerVM -AutoScaleFormula $autoScaleFormula -StartTask $startTask -SchedulingPolicy $schedulingPolicy -CommunicationEnabled -Metadata $metadata -BatchContext $context + New-AzureBatchPool_ST -Id $poolId2 -VirtualMachineSize $vmSize -OSFamily $osFamily -TargetOSVersion $targetOSVersion -DisplayName $displayName -MaxTasksPerComputeNode $maxTasksPerComputeNode -AutoScaleFormula $autoScaleFormula -StartTask $startTask -TaskSchedulingPolicy $schedulingPolicy -InterComputeNodeCommunicationEnabled -Metadata $metadata -BatchContext $context - $pool2 = Get-AzureBatchPool_ST -Name $poolName2 -BatchContext $context + $pool2 = Get-AzureBatchPool_ST -Id $poolId2 -BatchContext $context - # Verify created Pool matches expectations - Assert-AreEqual $poolName2 $pool2.Name - Assert-AreEqual $vmSize $pool2.VMSize + # Verify created pool matches expectations + Assert-AreEqual $poolId2 $pool2.Id + Assert-AreEqual $displayName $pool2.DisplayName + Assert-AreEqual $vmSize $pool2.VirtualMachineSize Assert-AreEqual $osFamily $pool2.OSFamily Assert-AreEqual $targetOSVersion $pool2.TargetOSVersion - Assert-AreEqual $maxTasksPerVM $pool2.MaxTasksPerVM + Assert-AreEqual $maxTasksPerComputeNOde $pool2.MaxTasksPerComputeNode Assert-AreEqual $true $pool2.AutoScaleEnabled Assert-AreEqual $autoScaleFormula $pool2.AutoScaleFormula - Assert-AreEqual $true $pool2.Communication + Assert-AreEqual $true $pool2.InterComputeNodeCommunicationEnabled Assert-AreEqual $startTaskCmd $pool2.StartTask.CommandLine - Assert-AreEqual $resourceFileCount $startTask.ResourceFiles.Count - Assert-AreEqual $blobSource1 $startTask.ResourceFiles[0].BlobSource - Assert-AreEqual $filePath1 $startTask.ResourceFiles[0].FilePath - Assert-AreEqual $blobSource2 $startTask.ResourceFiles[1].BlobSource - Assert-AreEqual $filePath2 $startTask.ResourceFiles[1].FilePath + Assert-AreEqual $resourceFileCount $pool2.StartTask.ResourceFiles.Count + Assert-AreEqual $blobSource1 $pool2.StartTask.ResourceFiles[0].BlobSource + Assert-AreEqual $filePath1 $pool2.StartTask.ResourceFiles[0].FilePath + Assert-AreEqual $blobSource2 $pool2.StartTask.ResourceFiles[1].BlobSource + Assert-AreEqual $filePath2 $pool2.StartTask.ResourceFiles[1].FilePath + Assert-AreEqual $computeNodeFillType $pool2.TaskSchedulingPolicy.ComputeNodeFillType Assert-AreEqual $metadata.Count $pool2.Metadata.Count foreach($m in $pool2.Metadata) { @@ -92,47 +98,47 @@ function Test-NewPool } finally { - Remove-AzureBatchPool_ST -Name $poolName1 -Force -BatchContext $context - Remove-AzureBatchPool_ST -Name $poolName2 -Force -BatchContext $context + Remove-AzureBatchPool_ST -Id $poolId1 -Force -BatchContext $context + Remove-AzureBatchPool_ST -Id $poolId2 -Force -BatchContext $context } } <# .SYNOPSIS -Tests querying for a Batch Pool by name +Tests querying for a Batch pool by id #> -function Test-GetPoolByName +function Test-GetPoolById { - param([string]$accountName, [string]$poolName) + param([string]$accountName, [string]$poolId) $context = Get-AzureBatchAccountKeys -Name $accountName - $pool = Get-AzureBatchPool_ST -Name $poolName -BatchContext $context + $pool = Get-AzureBatchPool_ST $poolId -BatchContext $context - Assert-AreEqual $poolName $pool.Name + Assert-AreEqual $poolId $pool.Id } <# .SYNOPSIS -Tests querying for Batch Pools using a filter +Tests querying for Batch pools using a filter #> function Test-ListPoolsByFilter { param([string]$accountName, [string]$poolPrefix, [string]$matches) $context = Get-AzureBatchAccountKeys -Name $accountName - $poolFilter = "startswith(name,'" + "$poolPrefix" + "')" + $poolFilter = "startswith(id,'" + "$poolPrefix" + "')" $pools = Get-AzureBatchPool_ST -Filter $poolFilter -BatchContext $context Assert-AreEqual $matches $pools.Length foreach($pool in $pools) { - Assert-True { $pool.Name.StartsWith("$poolPrefix") } + Assert-True { $pool.Id.StartsWith("$poolPrefix") } } } <# .SYNOPSIS -Tests querying for Batch Pools and supplying a max count +Tests querying for Batch pools and supplying a max count #> function Test-ListPoolsWithMaxCount { @@ -146,7 +152,7 @@ function Test-ListPoolsWithMaxCount <# .SYNOPSIS -Tests querying for all Pools under an account +Tests querying for all pools under an account #> function Test-ListAllPools { @@ -160,29 +166,29 @@ function Test-ListAllPools <# .SYNOPSIS -Tests deleting a Pool +Tests deleting a pool #> function Test-DeletePool { - param([string]$accountName, [string]$poolName, [string]$usePipeline) + param([string]$accountName, [string]$poolId, [string]$usePipeline) $context = Get-AzureBatchAccountKeys -Name $accountName - # Verify the Pool exists - $pool = Get-AzureBatchPool_ST $poolName -BatchContext $context - Assert-AreEqual $poolName $pool.Name + # Verify the pool exists + $pool = Get-AzureBatchPool_ST $poolId -BatchContext $context + Assert-AreEqual $poolId $pool.Id if ($usePipeline -eq '1') { - Get-AzureBatchPool_ST -Name $poolName -BatchContext $context | Remove-AzureBatchPool_ST -Force -BatchContext $context + Get-AzureBatchPool_ST -Id $poolId -BatchContext $context | Remove-AzureBatchPool_ST -Force -BatchContext $context } else { - Remove-AzureBatchPool_ST -Name $poolName -Force -BatchContext $context + Remove-AzureBatchPool_ST -Id $poolId -Force -BatchContext $context } - # Verify the Pool was deleted. Use the OData filter since the GetPool API will cause a 404 if the pool isn't found. - $filter = "name eq '" + $poolName + "'" + # Verify the pool was deleted. Use the OData filter since the GetPool API will cause a 404 if the pool isn't found. + $filter = "id eq '" + $poolId + "'" $pool = Get-AzureBatchPool_ST -Filter $filter -BatchContext $context Assert-True { $pool -eq $null -or $pool.State.ToString().ToLower() -eq 'deleting' } @@ -190,23 +196,23 @@ function Test-DeletePool <# .SYNOPSIS -Tests resizing a pool specified by name +Tests resizing a pool specified by id #> -function Test-ResizePoolByName +function Test-ResizePoolById { - param([string]$accountName, [string]$poolName) + param([string]$accountName, [string]$poolId) $context = Get-AzureBatchAccountKeys -Name $accountName # Get the initial TargetDedicated count - $pool = Get-AzureBatchPool_ST -Name $poolName -BatchContext $context + $pool = Get-AzureBatchPool_ST -Id $poolId -BatchContext $context $initialTargetDedicated = $pool.TargetDedicated - $newTargetDedicated = $initialTargetDedicated + 2 - Start-AzureBatchPoolResize_ST -Name $poolName -TargetDedicated $newTargetDedicated -BatchContext $context + $newTargetDedicated = $initialTargetDedicated + 1 + Start-AzureBatchPoolResize_ST -Id $poolId -TargetDedicated $newTargetDedicated -BatchContext $context # Verify the TargetDedicated property was updated - $pool = Get-AzureBatchPool_ST -Name $poolName -BatchContext $context + $pool = Get-AzureBatchPool_ST -Id $poolId -BatchContext $context Assert-AreEqual $newTargetDedicated $pool.TargetDedicated } @@ -216,42 +222,42 @@ Tests resizing a pool specified by pipeline object #> function Test-ResizePoolByPipeline { - param([string]$accountName, [string]$poolName) + param([string]$accountName, [string]$poolId) $context = Get-AzureBatchAccountKeys -Name $accountName # Get the initial TargetDedicated count - $pool = Get-AzureBatchPool_ST -Name $poolName -BatchContext $context + $pool = Get-AzureBatchPool_ST -Id $poolId -BatchContext $context $initialTargetDedicated = $pool.TargetDedicated - $newTargetDedicated = $initialTargetDedicated + 2 - $pool | Start-AzureBatchPoolResize_ST -TargetDedicated $newTargetDedicated -ResizeTimeout ([TimeSpan]::FromHours(1)) -DeallocationOption ([Microsoft.Azure.Batch.Common.TVMDeallocationOption]::Terminate) -BatchContext $context + $newTargetDedicated = $initialTargetDedicated - 1 + $pool | Start-AzureBatchPoolResize_ST -TargetDedicated $newTargetDedicated -ResizeTimeout ([TimeSpan]::FromHours(1)) -ComputeNodeDeallocationOption ([Microsoft.Azure.Batch.Common.ComputeNodeDeallocationOption]::Terminate) -BatchContext $context # Verify the TargetDedicated property was updated - $pool = Get-AzureBatchPool_ST -Name $poolName -BatchContext $context + $pool = Get-AzureBatchPool_ST -Id $poolId -BatchContext $context Assert-AreEqual $newTargetDedicated $pool.TargetDedicated } <# .SYNOPSIS -Tests stopping a pool resize operation using the pool name +Tests stopping a pool resize operation using the pool id #> -function Test-StopResizePoolByName +function Test-StopResizePoolById { - param([string]$accountName, [string]$poolName) + param([string]$accountName, [string]$poolId) - $context = Get-AzureBatchAccountKeys -Name $accountName + $context = Get-AzureBatchAccountKeys $accountName # Start a resize and then stop it - $pool = Get-AzureBatchPool_ST -Name $poolName -BatchContext $context + $pool = Get-AzureBatchPool_ST -Id $poolId -BatchContext $context $initialTargetDedicated = $pool.TargetDedicated - $newTargetDedicated = $initialTargetDedicated + 5 - Start-AzureBatchPoolResize_ST -Name $poolName -TargetDedicated $newTargetDedicated -BatchContext $context - Stop-AzureBatchPoolResize_ST -Name $poolName -BatchContext $context + $newTargetDedicated = $initialTargetDedicated + 2 + Start-AzureBatchPoolResize_ST -Id $poolId -TargetDedicated $newTargetDedicated -BatchContext $context + Stop-AzureBatchPoolResize_ST -Id $poolId -BatchContext $context # Verify the AllocationState changed to Stopping - $pool = Get-AzureBatchPool_ST -Name $poolName -BatchContext $context + $pool = Get-AzureBatchPool_ST -Id $poolId -BatchContext $context Assert-AreEqual 'Stopping' $pool.AllocationState } @@ -261,19 +267,19 @@ Tests stopping a pool resize operation using the pipeline #> function Test-StopResizePoolByPipeline { - param([string]$accountName, [string]$poolName) + param([string]$accountName, [string]$poolId) $context = Get-AzureBatchAccountKeys -Name $accountName # Start a resize and then stop it - $pool = Get-AzureBatchPool_ST -Name $poolName -BatchContext $context + $pool = Get-AzureBatchPool_ST -Id $poolId -BatchContext $context $initialTargetDedicated = $pool.TargetDedicated - $newTargetDedicated = $initialTargetDedicated + 5 + $newTargetDedicated = $initialTargetDedicated + 2 $pool | Start-AzureBatchPoolResize_ST -TargetDedicated $newTargetDedicated -BatchContext $context $pool | Stop-AzureBatchPoolResize_ST -BatchContext $context # Verify the AllocationState changed to Stopping - $pool = Get-AzureBatchPool_ST -Name $poolName -BatchContext $context + $pool = Get-AzureBatchPool_ST -Id $poolId -BatchContext $context Assert-AreEqual 'Stopping' $pool.AllocationState } \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ScenarioTestHelpers.cs b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ScenarioTestHelpers.cs index f110a8941a31..f789b50f649a 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ScenarioTestHelpers.cs +++ b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ScenarioTestHelpers.cs @@ -26,7 +26,7 @@ using Microsoft.Azure.Batch.Auth; using Microsoft.Azure.Batch.Common; using Microsoft.Azure.Batch.Protocol; -using Microsoft.Azure.Batch.Protocol.Entities; +using Microsoft.Azure.Batch.Protocol.Models; using Microsoft.Azure.Commands.Batch.Models; using Microsoft.Azure.Management.Batch; using Microsoft.Azure.Management.Batch.Models; @@ -46,19 +46,15 @@ namespace Microsoft.Azure.Commands.Batch.Test.ScenarioTests /// public static class ScenarioTestHelpers { - // Content-Type header used by the Batch REST APIs - private const string ContentTypeString = "application/json;odata=minimalmetadata"; - - // NOTE: To save time on setup and VM allocation when recording, many tests assume the following: + // NOTE: To save time on setup and compute node allocation when recording, many tests assume the following: // - A Batch account named 'pstests' exists under the subscription being used for recording. - // - The following commands were run to create a pool, and all 3 VMs are allocated: + // - The following commands were run to create a pool, and all 3 compute nodes are allocated: // $context = Get-AzureBatchAccountKeys "pstests" // $startTask = New-Object Microsoft.Azure.Commands.Batch.Models.PSStartTask // $startTask.CommandLine = "cmd /c echo hello" - // New-AzureBatchPool -Name "testPool" -VMSize "small" -OSFamily "4" -TargetOSVersion "*" -TargetDedicated 3 -StartTask $startTask -BatchContext $context + // New-AzureBatchPool -Id "testPool" -VirtualMachineSize "small" -OSFamily "4" -TargetOSVersion "*" -TargetDedicated 3 -StartTask $startTask -BatchContext $context internal const string SharedAccount = "pstests"; internal const string SharedPool = "testPool"; - internal const string SharedPoolVM = "tvm-4155946844_1-20150709t190321z"; // Use the following command to get a VM name: (Get-AzureBatchVM -PoolName "testPool" -BatchContext $context)[0].Name internal const string SharedPoolStartTaskStdOut = "startup\\stdout.txt"; internal const string SharedPoolStartTaskStdOutContent = "hello"; @@ -99,31 +95,32 @@ public static void CleanupTestAccount(BatchController controller, string resourc /// /// Creates a test pool for use in Scenario tests. /// - public static void CreateTestPool(BatchController controller, BatchAccountContext context, string poolName, int targetDedicated) + public static void CreateTestPool(BatchController controller, BatchAccountContext context, string poolId, int targetDedicated) { - YieldInjectionInterceptor interceptor = CreateHttpRecordingInterceptor(); + RequestInterceptor interceptor = CreateHttpRecordingInterceptor(); BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor }; BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); - NewPoolParameters parameters = new NewPoolParameters(context, poolName, behaviors) + NewPoolParameters parameters = new NewPoolParameters(context, poolId, behaviors) { + VirtualMachineSize = "small", OSFamily = "4", TargetOSVersion = "*", - TargetDedicated = targetDedicated + TargetDedicated = targetDedicated, }; client.CreatePool(parameters); } - public static void WaitForSteadyPoolAllocation(BatchController controller, BatchAccountContext context, string poolName) + public static void WaitForSteadyPoolAllocation(BatchController controller, BatchAccountContext context, string poolId) { - YieldInjectionInterceptor interceptor = CreateHttpRecordingInterceptor(); + RequestInterceptor interceptor = CreateHttpRecordingInterceptor(); BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor }; BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); ListPoolOptions options = new ListPoolOptions(context, behaviors) { - PoolName = poolName + PoolId = poolId }; DateTime timeout = DateTime.Now.AddMinutes(2); @@ -142,15 +139,15 @@ public static void WaitForSteadyPoolAllocation(BatchController controller, Batch /// /// Gets the CurrentDedicated count from a pool /// - public static int GetPoolCurrentDedicated(BatchController controller, BatchAccountContext context, string poolName) + public static int GetPoolCurrentDedicated(BatchController controller, BatchAccountContext context, string poolId) { - YieldInjectionInterceptor interceptor = CreateHttpRecordingInterceptor(); + RequestInterceptor interceptor = CreateHttpRecordingInterceptor(); BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor }; BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); ListPoolOptions options = new ListPoolOptions(context, behaviors) { - PoolName = poolName + PoolId = poolId }; PSCloudPool pool = client.ListPools(options).First(); @@ -162,7 +159,7 @@ public static int GetPoolCurrentDedicated(BatchController controller, BatchAccou /// public static int GetPoolCount(BatchController controller, BatchAccountContext context) { - YieldInjectionInterceptor interceptor = CreateHttpRecordingInterceptor(); + RequestInterceptor interceptor = CreateHttpRecordingInterceptor(); BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor }; BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); @@ -175,91 +172,103 @@ public static int GetPoolCount(BatchController controller, BatchAccountContext c /// /// Deletes a pool used in a Scenario test. /// - public static void DeletePool(BatchController controller, BatchAccountContext context, string poolName) + public static void DeletePool(BatchController controller, BatchAccountContext context, string poolId) { - YieldInjectionInterceptor interceptor = CreateHttpRecordingInterceptor(); + RequestInterceptor interceptor = CreateHttpRecordingInterceptor(); BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor }; BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); - client.DeletePool(context, poolName, behaviors); + client.DeletePool(context, poolId, behaviors); } /// - /// Creates a test workitem for use in Scenario tests. + /// Creates a test job schedule for use in Scenario tests. /// - public static void CreateTestWorkItem(BatchController controller, BatchAccountContext context, string workItemName, TimeSpan? recurrenceInterval) + public static void CreateTestJobSchedule(BatchController controller, BatchAccountContext context, string jobScheduleId, TimeSpan? recurrenceInterval) { - YieldInjectionInterceptor interceptor = CreateHttpRecordingInterceptor(); + RequestInterceptor interceptor = CreateHttpRecordingInterceptor(); BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor }; BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); - PSJobExecutionEnvironment jobExecutionEnvironment = new PSJobExecutionEnvironment(); - jobExecutionEnvironment.PoolName = SharedPool; - PSWorkItemSchedule schedule = null; + PSJobSpecification jobSpecification = new PSJobSpecification(); + jobSpecification.PoolInformation = new PSPoolInformation(); + jobSpecification.PoolInformation.PoolId = SharedPool; + PSSchedule schedule = new PSSchedule(); if (recurrenceInterval != null) { - schedule = new PSWorkItemSchedule(); + schedule = new PSSchedule(); schedule.RecurrenceInterval = recurrenceInterval; } - NewWorkItemParameters parameters = new NewWorkItemParameters(context, workItemName, behaviors) + NewJobScheduleParameters parameters = new NewJobScheduleParameters(context, jobScheduleId, behaviors) { - JobExecutionEnvironment = jobExecutionEnvironment, + JobSpecification = jobSpecification, Schedule = schedule }; - client.CreateWorkItem(parameters); + client.CreateJobSchedule(parameters); } /// - /// Creates a test workitem for use in Scenario tests. + /// Creates a test job for use in Scenario tests. /// - public static void CreateTestWorkItem(BatchController controller, BatchAccountContext context, string workItemName) + public static void CreateTestJob(BatchController controller, BatchAccountContext context, string jobId) { - CreateTestWorkItem(controller, context, workItemName, null); + RequestInterceptor interceptor = CreateHttpRecordingInterceptor(); + BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor }; + BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); + + PSPoolInformation poolInfo = new PSPoolInformation(); + poolInfo.PoolId = SharedPool; + + NewJobParameters parameters = new NewJobParameters(context, jobId, behaviors) + { + PoolInformation = poolInfo + }; + + client.CreateJob(parameters); } /// - /// Waits for a recent job on a workitem and returns its name. If a previous job is specified, this method waits until a new job is created. + /// Waits for a recent job on a job schedule and returns its id. If a previous job is specified, this method waits until a new job is created. /// - public static string WaitForRecentJob(BatchController controller, BatchAccountContext context, string workItemName, string previousJob = null) + public static string WaitForRecentJob(BatchController controller, BatchAccountContext context, string jobScheduleId, string previousJob = null) { DateTime timeout = DateTime.Now.AddMinutes(2); - - YieldInjectionInterceptor interceptor = CreateHttpRecordingInterceptor(); + RequestInterceptor interceptor = CreateHttpRecordingInterceptor(); BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor }; BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); - ListWorkItemOptions options = new ListWorkItemOptions(context, behaviors) + ListJobScheduleOptions options = new ListJobScheduleOptions(context, behaviors) { - WorkItemName = workItemName, + JobScheduleId = jobScheduleId, Filter = null, MaxCount = Constants.DefaultMaxCount }; - PSCloudWorkItem workItem = client.ListWorkItems(options).First(); + PSCloudJobSchedule jobSchedule = client.ListJobSchedules(options).First(); - while (workItem.ExecutionInformation.RecentJob == null || string.Equals(workItem.ExecutionInformation.RecentJob.Name, previousJob, StringComparison.OrdinalIgnoreCase)) + while (jobSchedule.ExecutionInformation.RecentJob == null || string.Equals(jobSchedule.ExecutionInformation.RecentJob.Id, previousJob, StringComparison.OrdinalIgnoreCase)) { if (DateTime.Now > timeout) { throw new TimeoutException("Timed out waiting for recent job"); } Sleep(5000); - workItem = client.ListWorkItems(options).First(); + jobSchedule = client.ListJobSchedules(options).First(); } - return workItem.ExecutionInformation.RecentJob.Name; + return jobSchedule.ExecutionInformation.RecentJob.Id; } /// /// Creates a test task for use in Scenario tests. /// - public static void CreateTestTask(BatchController controller, BatchAccountContext context, string workItemName, string jobName, string taskName, string cmdLine = "cmd /c dir /s") + public static void CreateTestTask(BatchController controller, BatchAccountContext context, string jobId, string taskId, string cmdLine = "cmd /c dir /s") { - YieldInjectionInterceptor interceptor = CreateHttpRecordingInterceptor(); + RequestInterceptor interceptor = CreateHttpRecordingInterceptor(); BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor }; BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); - NewTaskParameters parameters = new NewTaskParameters(context, workItemName, jobName, null, taskName, behaviors) + NewTaskParameters parameters = new NewTaskParameters(context, jobId, null, taskId, behaviors) { CommandLine = cmdLine, RunElevated = true @@ -271,78 +280,92 @@ public static void CreateTestTask(BatchController controller, BatchAccountContex /// /// Waits for the specified task to complete /// - public static void WaitForTaskCompletion(BatchController controller, BatchAccountContext context, string workItemName, string jobName, string taskName) + public static void WaitForTaskCompletion(BatchController controller, BatchAccountContext context, string jobId, string taskId) { - YieldInjectionInterceptor interceptor = CreateHttpRecordingInterceptor(); + RequestInterceptor interceptor = CreateHttpRecordingInterceptor(); BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor }; BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); - ListTaskOptions options = new ListTaskOptions(context, workItemName, jobName, null, behaviors) + ListTaskOptions options = new ListTaskOptions(context, jobId, null, behaviors) { - TaskName = taskName + TaskId = taskId }; IEnumerable tasks = client.ListTasks(options); - ITaskStateMonitor monitor = context.BatchOMClient.OpenToolbox().CreateTaskStateMonitor(); - monitor.WaitAll(tasks.Select(t => t.omObject), TaskState.Completed, TimeSpan.FromMinutes(2), null, behaviors); + // Save time by not waiting during playback scenarios + if (HttpMockServer.Mode == HttpRecorderMode.Record) + { + TaskStateMonitor monitor = context.BatchOMClient.Utilities.CreateTaskStateMonitor(); + monitor.WaitAll(tasks.Select(t => t.omObject), TaskState.Completed, TimeSpan.FromMinutes(2), null); + } + } + + /// + /// Deletes a job schedule used in a Scenario test. + /// + public static void DeleteJobSchedule(BatchController controller, BatchAccountContext context, string jobScheduleId) + { + RequestInterceptor interceptor = CreateHttpRecordingInterceptor(); + BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor }; + BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); + + client.DeleteJobSchedule(context, jobScheduleId, behaviors); } /// - /// Deletes a workitem used in a Scenario test. + /// Deletes a job used in a Scenario test. /// - public static void DeleteWorkItem(BatchController controller, BatchAccountContext context, string workItemName) + public static void DeleteJob(BatchController controller, BatchAccountContext context, string jobId) { - YieldInjectionInterceptor interceptor = CreateHttpRecordingInterceptor(); + RequestInterceptor interceptor = CreateHttpRecordingInterceptor(); BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor }; BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); - client.DeleteWorkItem(context, workItemName, behaviors); + client.DeleteJob(context, jobId, behaviors); } /// /// Terminates a job /// TODO: Replace with terminate Job client method when it exists. /// - public static void TerminateJob(BatchAccountContext context, string workItemName, string jobName) + public static void TerminateJob(BatchAccountContext context, string jobId) { - if (HttpMockServer.Mode == HttpRecorderMode.Record) - { - using (IWorkItemManager wiManager = context.BatchOMClient.OpenWorkItemManager()) - { - wiManager.TerminateJob(workItemName, jobName); - } - } + RequestInterceptor interceptor = CreateHttpRecordingInterceptor(); + BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor }; + + context.BatchOMClient.JobOperations.TerminateJob(jobId, additionalBehaviors: behaviors); } /// - /// Creates a test user for use in Scenario tests. + /// Gets the id of a compute node in the specified pool /// - public static void CreateTestUser(BatchController controller, BatchAccountContext context, string poolName, string vmName, string vmUserName) + public static string GetComputeNodeId(BatchController controller, BatchAccountContext context, string poolId) { - YieldInjectionInterceptor interceptor = CreateHttpRecordingInterceptor(); + RequestInterceptor interceptor = CreateHttpRecordingInterceptor(); BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor }; BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); - NewVMUserParameters parameters = new NewVMUserParameters(context, poolName, vmName, null, behaviors) - { - VMUserName = vmUserName, - Password = "Password1234!", - }; + ListComputeNodeOptions options = new ListComputeNodeOptions(context, poolId, null, behaviors); - client.CreateVMUser(parameters); + return client.ListComputeNodes(options).First().Id; } /// - /// Deletes a user used in a Scenario test. + /// Creates a test user for use in Scenario tests. /// - public static void DeleteUser(BatchController controller, BatchAccountContext context, string poolName, string vmName, string vmUserName) + public static void CreateComputeNodeUser(BatchController controller, BatchAccountContext context, string poolId, string computeNodeId, string computeNodeUserName) { - YieldInjectionInterceptor interceptor = CreateHttpRecordingInterceptor(); + RequestInterceptor interceptor = CreateHttpRecordingInterceptor(); BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor }; BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); - VMUserOperationParameters parameters = new VMUserOperationParameters(context, poolName, vmName, vmUserName, behaviors); - client.DeleteVMUser(parameters); + NewComputeNodeUserParameters parameters = new NewComputeNodeUserParameters(context, poolId, computeNodeId, null, behaviors) + { + ComputeNodeUserName = computeNodeUserName, + Password = "Password1234!", + }; + + client.CreateComputeNodeUser(parameters); } /// @@ -352,196 +375,18 @@ public static void DeleteUser(BatchController controller, BatchAccountContext co /// for serialization by the Protocol Layer. /// NOTE: This is a temporary behavior that should no longer be needed when the Batch OM switches to Hyak. /// - public static YieldInjectionInterceptor CreateHttpRecordingInterceptor() + public static RequestInterceptor CreateHttpRecordingInterceptor() { - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, batchRequest) => + RequestInterceptor interceptor = new RequestInterceptor((batchRequest) => { - Task task = Task.Factory.StartNew(() => - { - object batchResponse = null; - - HttpRequestMessage request = GenerateHttpRequest((BatchRequest)batchRequest); - - // Setup HTTP recorder and send the request - HttpMockServer mockServer = HttpMockServer.CreateInstance(); - mockServer.InnerHandler = new HttpClientHandler(); - HttpClient client = new HttpClient(mockServer); - Task responseTask = client.SendAsync(request); - responseTask.Wait(); - HttpResponseMessage response = responseTask.Result; - - Task getContentTask = response.Content.ReadAsStreamAsync(); - getContentTask.Wait(); - Stream body = getContentTask.Result; - - HttpWebResponse webResponse = ConvertResponseMessageToWebResponse(response); - - batchResponse = GenerateBatchResponse((BatchRequest)batchRequest, webResponse, body); - - return batchResponse; - }); - return task; + // Setup HTTP recorder + HttpMockServer mockServer = HttpMockServer.CreateInstance(); + mockServer.InnerHandler = new HttpClientHandler(); + batchRequest.RestClient.AddHandlerToPipeline(mockServer); }); return interceptor; } - /// - /// Generates an HttpRequestMessage from the BatchRequest. - /// - private static HttpRequestMessage GenerateHttpRequest(BatchRequest batchRequest) - { - HttpRequestMessage requestMessage = null; - Uri uri = null; - // Since we aren't directly using the Protocol Layer to send the request, we have to extract the pieces to create the signed web request - // that we can convert into a format compatible with the HTTP Recorder. - MethodInfo getResourceMethod = batchRequest.GetType().GetMethod("GetResourceUri", BindingFlags.NonPublic | BindingFlags.Instance); - if (getResourceMethod != null) - { - uri = getResourceMethod.Invoke(batchRequest, null) as Uri; - } - - // Get the generated HttpWebRequest from the BatchRequest - MethodInfo createCommandMethod = batchRequest.GetType().GetMethod("CreateRestCommand", BindingFlags.NonPublic | BindingFlags.Instance); - if (createCommandMethod != null) - { - object command = createCommandMethod.Invoke(batchRequest, null); - FieldInfo buildRequestField = command.GetType().GetField("BuildRequestDelegate", BindingFlags.Public | BindingFlags.Instance); - if (buildRequestField != null) - { - PropertyInfo currentResultProperty = command.GetType().GetProperty("CurrentResult", BindingFlags.NonPublic | BindingFlags.Instance); - if (currentResultProperty != null) - { - currentResultProperty.SetValue(command, new RequestResult()); - } - Delegate buildRequest = buildRequestField.GetValue(command) as Delegate; - if (buildRequest != null) - { - HttpWebRequest webRequest = buildRequest.DynamicInvoke(uri, null, false, null, null) as HttpWebRequest; - if (webRequest != null) - { - // Delete requests set a Content-Length of 0 with the HttpRequestMessage class for some reason. - // Add in this header before signing the request. - if (webRequest.Method == "DELETE") - { - webRequest.ContentLength = 0; - } - - // Sign the request to add the Authorization header - batchRequest.AuthenticationHandler.SignRequest(webRequest, null); - - // Convert the signed HttpWebRequest into an HttpRequestMessage for use with the HTTP Recorder - requestMessage = new HttpRequestMessage(new HttpMethod(webRequest.Method), webRequest.RequestUri); - foreach (var header in webRequest.Headers) - { - string key = header.ToString(); - string value = webRequest.Headers[key]; - if (string.Equals(key, "Content-Type")) - { - // Copy the Content to the HttpRequestMessage - FieldInfo streamField = command.GetType().GetField("SendStream", BindingFlags.Public | BindingFlags.Instance); - if (streamField != null) - { - Stream contentStream = streamField.GetValue(command) as Stream; - if (contentStream != null) - { - MemoryStream memStream = new MemoryStream(); - - contentStream.CopyTo(memStream); - memStream.Seek(0, SeekOrigin.Begin); - requestMessage.Content = new StreamContent(memStream); - - // Add Content-Type header to the HttpRequestMessage - // Use a custom class to force the proper formatting of the Content-Type header. - requestMessage.Content.Headers.ContentType = new JsonOdataMinimalHeader(); - requestMessage.Content.Headers.ContentLength = webRequest.ContentLength; - } - } - } - else - { - requestMessage.Headers.Add(key, value); - } - } - } - } - } - } - return requestMessage; - } - - /// - /// Converts the HttpResponseMessage into an HttpWebResponse that can be used by the Protocol layer - /// - private static HttpWebResponse ConvertResponseMessageToWebResponse(HttpResponseMessage responseMessage) - { - HttpWebResponse webResponse = null; - - // The HttpWebResponse class isn't meant to be built on the fly outside of the .NET framework internals, so we use Reflection. - ConstructorInfo constructor = typeof(HttpWebResponse).GetConstructor(new Type[] { }); - if (constructor != null) - { - webResponse = constructor.Invoke(null) as HttpWebResponse; - if (webResponse != null) - { - BatchTestHelpers.SetField(webResponse, "m_HttpResponseHeaders", new WebHeaderCollection()); - foreach (var header in responseMessage.Headers) - { - webResponse.Headers.Add(header.Key, header.Value.FirstOrDefault()); - } - webResponse.Headers.Add("Content-Type", ContentTypeString); - BatchTestHelpers.SetField(webResponse, "m_StatusCode", responseMessage.StatusCode); - } - } - return webResponse; - } - - /// - /// Serializes an HttpWebRespone and response body into a BatchResponse - /// - private static object GenerateBatchResponse(BatchRequest batchRequest, HttpWebResponse webResponse, Stream responseBody) - { - object batchResponse = null; - MethodInfo createCommandMethod = batchRequest.GetType().GetMethod("CreateRestCommand", BindingFlags.NonPublic | BindingFlags.Instance); - if (createCommandMethod != null) - { - object command = createCommandMethod.Invoke(batchRequest, null); - FieldInfo preProcessField = command.GetType().GetField("PreProcessResponse", BindingFlags.Public | BindingFlags.Instance); - if (preProcessField != null) - { - Delegate preProcessDelegate = preProcessField.GetValue(command) as Delegate; - if (preProcessDelegate != null) - { - preProcessDelegate.DynamicInvoke(command, webResponse, null, null); - } - } - - FieldInfo postProcessField = command.GetType().GetField("PostProcessResponse", BindingFlags.Public | BindingFlags.Instance); - if (postProcessField != null) - { - Delegate postProcessDelegate = postProcessField.GetValue(command) as Delegate; - if (postProcessDelegate != null) - { - FieldInfo responseStreamField = command.GetType().GetField("ResponseStream", BindingFlags.Public | BindingFlags.Instance); - if (responseStreamField != null) - { - responseStreamField.SetValue(command, responseBody); - } - FieldInfo destinationStreamField = command.GetType().GetField("DestinationStream", BindingFlags.Public | BindingFlags.Instance); - if (destinationStreamField != null) - { - Stream destinationStream = destinationStreamField.GetValue(command) as Stream; - if (destinationStream != null) - { - responseBody.CopyTo(destinationStream); - } - } - batchResponse = postProcessDelegate.DynamicInvoke(command, webResponse, null, null); - } - } - } - return batchResponse; - } - /// /// Sleep method used for Scenario Tests. Only sleep when recording. /// @@ -552,23 +397,5 @@ private static void Sleep(int milliseconds) Thread.Sleep(milliseconds); } } - - /// - /// Custom override to the HttpRequestMessage Content header. - /// By default, calling MediaTypeHeaderValue.Parse("application/json;odata=minimalmetadata") will - /// add an extra space character to the Content-Type header that the Batch service will reject as - /// incorrectly formatted. This extension class overrides the ToString() method to return the - /// Content-Type header string without any extra spaces. - /// - private class JsonOdataMinimalHeader : MediaTypeHeaderValue - { - public JsonOdataMinimalHeader() : base("application/json") - { } - - public override string ToString() - { - return ContentTypeString; - } - } } } diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/TaskTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/TaskTests.cs index fcdf7ea02ddc..17fa3ce70ac0 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/TaskTests.cs +++ b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/TaskTests.cs @@ -27,27 +27,24 @@ namespace Microsoft.Azure.Commands.Batch.Test.ScenarioTests public class TaskTests { private const string accountName = ScenarioTestHelpers.SharedAccount; - private const string poolName = ScenarioTestHelpers.SharedPool; [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestCreateTask() { BatchController controller = BatchController.NewInstance; - string workItemName = "createTaskWI"; - string jobName = null; + string jobId = "createTaskJob"; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-CreateTask '{0}' '{1}' '{2}'", accountName, workItemName, jobName) }; }, + () => { return new string[] { string.Format("Test-CreateTask '{0}' '{1}'", accountName, jobId) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName); - jobName = ScenarioTestHelpers.WaitForRecentJob(controller, context, workItemName); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId); }, () => { - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName); + ScenarioTestHelpers.DeleteJob(controller, context, jobId); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -55,33 +52,23 @@ public void TestCreateTask() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestGetTaskRequiredParameters() + public void TestGetTaskById() { BatchController controller = BatchController.NewInstance; - controller.RunPsTest(string.Format("Test-GetTaskRequiredParameters '{0}'", accountName)); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestGetTaskByName() - { - BatchController controller = BatchController.NewInstance; - string workItemName = "getTaskWI"; - string jobName = null; - string taskName = "testTask"; + string jobId = "getTaskJob"; + string taskId = "testTask"; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-GetTaskByName '{0}' '{1}' '{2}' '{3}'", accountName, workItemName, jobName, taskName) }; }, + () => { return new string[] { string.Format("Test-GetTaskById '{0}' '{1}' '{2}'", accountName, jobId, taskId) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName); - jobName = ScenarioTestHelpers.WaitForRecentJob(controller, context, workItemName); - ScenarioTestHelpers.CreateTestTask(controller, context, workItemName, jobName, taskName); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId); + ScenarioTestHelpers.CreateTestTask(controller, context, jobId, taskId); }, () => { - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName); + ScenarioTestHelpers.DeleteJob(controller, context, jobId); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -92,28 +79,26 @@ public void TestGetTaskByName() public void TestListTasksByFilter() { BatchController controller = BatchController.NewInstance; - string workItemName = "filterTaskWI"; - string jobName = null; - string taskName1 = "testTask1"; - string taskName2 = "testTask2"; - string taskName3 = "thirdTestTask"; + string jobId = "filterTaskJob"; + string taskId1 = "testTask1"; + string taskId2 = "testTask2"; + string taskId3 = "thirdTestTask"; string taskPrefix = "testTask"; int matches = 2; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-ListTasksByFilter '{0}' '{1}' '{2}' '{3}' '{4}'", accountName, workItemName, jobName, taskPrefix, matches) }; }, + () => { return new string[] { string.Format("Test-ListTasksByFilter '{0}' '{1}' '{2}' '{3}'", accountName, jobId, taskPrefix, matches) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName); - jobName = ScenarioTestHelpers.WaitForRecentJob(controller, context, workItemName); - ScenarioTestHelpers.CreateTestTask(controller, context, workItemName, jobName, taskName1); - ScenarioTestHelpers.CreateTestTask(controller, context, workItemName, jobName, taskName2); - ScenarioTestHelpers.CreateTestTask(controller, context, workItemName, jobName, taskName3); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId); + ScenarioTestHelpers.CreateTestTask(controller, context, jobId, taskId1); + ScenarioTestHelpers.CreateTestTask(controller, context, jobId, taskId2); + ScenarioTestHelpers.CreateTestTask(controller, context, jobId, taskId3); }, () => { - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName); + ScenarioTestHelpers.DeleteJob(controller, context, jobId); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -124,27 +109,25 @@ public void TestListTasksByFilter() public void TestListTasksWithMaxCount() { BatchController controller = BatchController.NewInstance; - string workItemName = "maxCountTaskWI"; - string jobName = null; - string taskName1 = "testTask1"; - string taskName2 = "testTask2"; - string taskName3 = "testTask3"; + string jobId = "maxCountTaskJob"; + string taskId1 = "testTask1"; + string taskId2 = "testTask2"; + string taskId3 = "testTask3"; int maxCount = 1; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-ListTasksWithMaxCount '{0}' '{1}' '{2}' '{3}'", accountName, workItemName, jobName, maxCount) }; }, + () => { return new string[] { string.Format("Test-ListTasksWithMaxCount '{0}' '{1}' '{2}'", accountName, jobId, maxCount) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName); - jobName = ScenarioTestHelpers.WaitForRecentJob(controller, context, workItemName); - ScenarioTestHelpers.CreateTestTask(controller, context, workItemName, jobName, taskName1); - ScenarioTestHelpers.CreateTestTask(controller, context, workItemName, jobName, taskName2); - ScenarioTestHelpers.CreateTestTask(controller, context, workItemName, jobName, taskName3); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId); + ScenarioTestHelpers.CreateTestTask(controller, context, jobId, taskId1); + ScenarioTestHelpers.CreateTestTask(controller, context, jobId, taskId2); + ScenarioTestHelpers.CreateTestTask(controller, context, jobId, taskId3); }, () => { - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName); + ScenarioTestHelpers.DeleteJob(controller, context, jobId); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -155,27 +138,25 @@ public void TestListTasksWithMaxCount() public void TestListAllTasks() { BatchController controller = BatchController.NewInstance; - string workItemName = "listTaskWI"; - string jobName = null; - string taskName1 = "testTask1"; - string taskName2 = "testTask2"; - string taskName3 = "testTask3"; + string jobId = "listTaskJob"; + string taskId1 = "testTask1"; + string taskId2 = "testTask2"; + string taskId3 = "testTask3"; int count = 3; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-ListAllTasks '{0}' '{1}' '{2}' '{3}'", accountName, workItemName, jobName, count) }; }, + () => { return new string[] { string.Format("Test-ListAllTasks '{0}' '{1}' '{2}'", accountName, jobId, count) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName); - jobName = ScenarioTestHelpers.WaitForRecentJob(controller, context, workItemName); - ScenarioTestHelpers.CreateTestTask(controller, context, workItemName, jobName, taskName1); - ScenarioTestHelpers.CreateTestTask(controller, context, workItemName, jobName, taskName2); - ScenarioTestHelpers.CreateTestTask(controller, context, workItemName, jobName, taskName3); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId); + ScenarioTestHelpers.CreateTestTask(controller, context, jobId, taskId1); + ScenarioTestHelpers.CreateTestTask(controller, context, jobId, taskId2); + ScenarioTestHelpers.CreateTestTask(controller, context, jobId, taskId3); }, () => { - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName); + ScenarioTestHelpers.DeleteJob(controller, context, jobId); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -186,22 +167,20 @@ public void TestListAllTasks() public void TestListTaskPipeline() { BatchController controller = BatchController.NewInstance; - string workItemName = "listTaskPipeWI"; - string jobName = null; - string taskName = "testTask"; + string jobId = "listTaskPipeJob"; + string taskId = "testTask"; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-ListTaskPipeline '{0}' '{1}' '{2}' '{3}'", accountName, workItemName, jobName, taskName) }; }, + () => { return new string[] { string.Format("Test-ListTaskPipeline '{0}' '{1}' '{2}'", accountName, jobId, taskId) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName); - jobName = ScenarioTestHelpers.WaitForRecentJob(controller, context, workItemName); - ScenarioTestHelpers.CreateTestTask(controller, context, workItemName, jobName, taskName); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId); + ScenarioTestHelpers.CreateTestTask(controller, context, jobId, taskId); }, () => { - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName); + ScenarioTestHelpers.DeleteJob(controller, context, jobId); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -212,23 +191,21 @@ public void TestListTaskPipeline() public void TestDeleteTask() { BatchController controller = BatchController.NewInstance; - string workItemName = "deleteTaskWI"; - string jobName = null; - string taskName = "testTask"; + string jobId = "deleteTaskJob"; + string taskId = "testTask"; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-DeleteTask '{0}' '{1}' '{2}' '{3}' '0'", accountName, workItemName, jobName, taskName) }; }, + () => { return new string[] { string.Format("Test-DeleteTask '{0}' '{1}' '{2}' '0'", accountName, jobId, taskId) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName); - jobName = ScenarioTestHelpers.WaitForRecentJob(controller, context, workItemName); - ScenarioTestHelpers.CreateTestTask(controller, context, workItemName, jobName, taskName); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId); + ScenarioTestHelpers.CreateTestTask(controller, context, jobId, taskId); }, () => { - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName); + ScenarioTestHelpers.DeleteJob(controller, context, jobId); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); @@ -239,23 +216,21 @@ public void TestDeleteTask() public void TestDeleteTaskPipeline() { BatchController controller = BatchController.NewInstance; - string workItemName = "deleteTaskPipeWI"; - string jobName = null; - string taskName = "testTask"; + string jobId = "deleteTaskPipeJob"; + string taskId = "testTask"; BatchAccountContext context = null; controller.RunPsTestWorkflow( - () => { return new string[] { string.Format("Test-DeleteTask '{0}' '{1}' '{2}' '{3}' '1'", accountName, workItemName, jobName, taskName) }; }, + () => { return new string[] { string.Format("Test-DeleteTask '{0}' '{1}' '{2}' '1'", accountName, jobId, taskId) }; }, () => { context = ScenarioTestHelpers.GetBatchAccountContextWithKeys(controller, accountName); - ScenarioTestHelpers.CreateTestWorkItem(controller, context, workItemName); - jobName = ScenarioTestHelpers.WaitForRecentJob(controller, context, workItemName); - ScenarioTestHelpers.CreateTestTask(controller, context, workItemName, jobName, taskName); + ScenarioTestHelpers.CreateTestJob(controller, context, jobId); + ScenarioTestHelpers.CreateTestTask(controller, context, jobId, taskId); }, () => { - ScenarioTestHelpers.DeleteWorkItem(controller, context, workItemName); + ScenarioTestHelpers.DeleteJob(controller, context, jobId); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/TaskTests.ps1 b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/TaskTests.ps1 index 56faeb02c00f..732b27caedeb 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/TaskTests.ps1 +++ b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/TaskTests.ps1 @@ -18,23 +18,23 @@ Tests creating a Task #> function Test-CreateTask { - param([string]$accountName, [string]$workItemName, [string]$jobName) + param([string]$accountName, [string]$jobId) $context = Get-AzureBatchAccountKeys -Name $accountName - $taskName1 = "simple" - $taskName2= "complex" + $taskId1 = "simple" + $taskId2= "complex" $cmd = "cmd /c dir /s" - # Create a simple Task and verify pipeline - Get-AzureBatchJob_ST -WorkItemName $workItemName -Name $jobName -BatchContext $context | New-AzureBatchTask_ST -Name $taskName1 -CommandLine $cmd -BatchContext $context - $task1 = Get-AzureBatchTask_ST -WorkItemName $workItemName -JobName $jobName -Name $taskName1 -BatchContext $context + # Create a simple task and verify pipeline + Get-AzureBatchJob_ST -Id $jobId -BatchContext $context | New-AzureBatchTask_ST -Id $taskId1 -CommandLine $cmd -BatchContext $context + $task1 = Get-AzureBatchTask_ST -JobId $jobId -Id $taskId1 -BatchContext $context - # Verify created Task matches expectations - Assert-AreEqual $taskName1 $task1.Name + # Verify created task matches expectations + Assert-AreEqual $taskId1 $task1.Id Assert-AreEqual $cmd $task1.CommandLine - # Create a complicated Task + # Create a complicated task $affinityInfo = New-Object Microsoft.Azure.Commands.Batch.Models.PSAffinityInformation $affinityInfo.AffinityId = $affinityId = "affinityId" @@ -47,18 +47,18 @@ function Test-CreateTask $envSettings = @{"env1"="value1";"env2"="value2"} - New-AzureBatchTask_ST -WorkItemName $workItemName -JobName $jobName -Name $taskName2 -CommandLine $cmd -RunElevated -EnvironmentSettings $envSettings -ResourceFiles $resourceFiles -AffinityInformation $affinityInfo -TaskConstraints $taskConstraints -BatchContext $context + New-AzureBatchTask_ST -JobId $jobId -Id $taskId2 -CommandLine $cmd -RunElevated -EnvironmentSettings $envSettings -ResourceFiles $resourceFiles -AffinityInformation $affinityInfo -Constraints $taskConstraints -BatchContext $context - $task2 = Get-AzureBatchTask_ST -WorkItemName $workItemName -JobName $jobName -Name $taskName2 -BatchContext $context + $task2 = Get-AzureBatchTask_ST -JobId $jobId -Id $taskId2 -BatchContext $context - # Verify created Task matches expectations - Assert-AreEqual $taskName2 $task2.Name + # Verify created task matches expectations + Assert-AreEqual $taskId2 $task2.Id Assert-AreEqual $cmd $task2.CommandLine Assert-AreEqual $true $task2.RunElevated Assert-AreEqual $affinityId $task2.AffinityInformation.AffinityId - Assert-AreEqual $maxWallClockTime $task2.TaskConstraints.MaxWallClockTime - Assert-AreEqual $retentionTime $task2.TaskConstraints.RetentionTime - Assert-AreEqual $maxRetryCount $task2.TaskConstraints.MaxRetryCount + Assert-AreEqual $maxWallClockTime $task2.Constraints.MaxWallClockTime + Assert-AreEqual $retentionTime $task2.Constraints.RetentionTime + Assert-AreEqual $maxRetryCount $task2.Constraints.MaxRetryCount Assert-AreEqual $resourceFiles.Count $task2.ResourceFiles.Count foreach($r in $task2.ResourceFiles) { @@ -73,82 +73,68 @@ function Test-CreateTask <# .SYNOPSIS -Tests that calling Get-AzureBatchTask without required parameters throws error +Tests querying for a Batch task by id #> -function Test-GetTaskRequiredParameters +function Test-GetTaskById { - param([string]$accountName) + param([string]$accountName, [string]$jobId, [string]$taskId) $context = Get-AzureBatchAccountKeys -Name $accountName - Assert-Throws { Get-AzureBatchTask_ST -BatchContext $context } - Assert-Throws { Get-AzureBatchTask_ST -WorkItemName "wi" -BatchContext $context } - Assert-Throws { Get-AzureBatchTask_ST -JobName "job" -BatchContext $context } -} + $task = Get-AzureBatchTask_ST -JobId $jobId -Id $taskId -BatchContext $context -<# -.SYNOPSIS -Tests querying for a Batch Task by name -#> -function Test-GetTaskByName -{ - param([string]$accountName, [string]$wiName, [string]$jobName, [string]$taskName) - - $context = Get-AzureBatchAccountKeys -Name $accountName - $task = Get-AzureBatchTask_ST -WorkItemName $wiName -JobName $jobName -Name $taskName -BatchContext $context - - Assert-AreEqual $taskName $task.Name + Assert-AreEqual $taskId $task.Id # Verify positional parameters also work - $task = Get-AzureBatchTask_ST $wiName $jobName $taskName -BatchContext $context + $task = Get-AzureBatchTask_ST $jobId $taskId -BatchContext $context - Assert-AreEqual $taskName $task.Name + Assert-AreEqual $taskId $task.Id } <# .SYNOPSIS -Tests querying for Batch Tasks using a filter +Tests querying for Batch tasks using a filter #> function Test-ListTasksByFilter { - param([string]$accountName, [string]$workItemName, [string]$jobName, [string]$taskPrefix, [string]$matches) + param([string]$accountName, [string]$jobId, [string]$taskPrefix, [string]$matches) $context = Get-AzureBatchAccountKeys -Name $accountName - $filter = "startswith(name,'" + "$taskPrefix" + "')" + $filter = "startswith(id,'" + "$taskPrefix" + "')" - $tasks = Get-AzureBatchTask_ST -WorkItemName $workItemName -JobName $jobName -Filter $filter -BatchContext $context + $tasks = Get-AzureBatchTask_ST -JobId $jobId -Filter $filter -BatchContext $context Assert-AreEqual $matches $tasks.Length foreach($task in $tasks) { - Assert-True { $task.Name.StartsWith("$taskPrefix") } + Assert-True { $task.Id.StartsWith("$taskPrefix") } } # Verify parent object parameter set also works - $job = Get-AzureBatchJob_ST $workItemName $jobName -BatchContext $context + $job = Get-AzureBatchJob_ST $jobId -BatchContext $context $tasks = Get-AzureBatchTask_ST -Job $job -Filter $filter -BatchContext $context Assert-AreEqual $matches $tasks.Length foreach($task in $tasks) { - Assert-True { $task.Name.StartsWith("$taskPrefix") } + Assert-True { $task.Id.StartsWith("$taskPrefix") } } } <# .SYNOPSIS -Tests querying for Batch Tasks and supplying a max count +Tests querying for Batch tasks and supplying a max count #> function Test-ListTasksWithMaxCount { - param([string]$accountName, [string]$workItemName, [string]$jobName, [string]$maxCount) + param([string]$accountName, [string]$jobId, [string]$maxCount) $context = Get-AzureBatchAccountKeys -Name $accountName - $tasks = Get-AzureBatchTask_ST -WorkItemName $workItemName -JobName $jobName -MaxCount $maxCount -BatchContext $context + $tasks = Get-AzureBatchTask_ST -JobId $jobId -MaxCount $maxCount -BatchContext $context Assert-AreEqual $maxCount $tasks.Length # Verify parent object parameter set also works - $job = Get-AzureBatchJob_ST $workItemName $jobName -BatchContext $context + $job = Get-AzureBatchJob_ST $jobId -BatchContext $context $tasks = Get-AzureBatchTask_ST -Job $job -MaxCount $maxCount -BatchContext $context Assert-AreEqual $maxCount $tasks.Length @@ -156,19 +142,19 @@ function Test-ListTasksWithMaxCount <# .SYNOPSIS -Tests querying for all Tasks under a WorkItem +Tests querying for all tasks under a job #> function Test-ListAllTasks { - param([string]$accountName, [string]$workItemName, [string] $jobName, [string]$count) + param([string]$accountName, [string] $jobId, [string]$count) $context = Get-AzureBatchAccountKeys -Name $accountName - $tasks = Get-AzureBatchTask_ST -WorkItemName $workItemName -JobName $jobName -BatchContext $context + $tasks = Get-AzureBatchTask_ST -JobId $jobId -BatchContext $context Assert-AreEqual $count $tasks.Length # Verify parent object parameter set also works - $job = Get-AzureBatchJob_ST $workItemName $jobName -BatchContext $context + $job = Get-AzureBatchJob_ST $jobId -BatchContext $context $tasks = Get-AzureBatchTask_ST -Job $job -BatchContext $context Assert-AreEqual $count $tasks.Length @@ -180,43 +166,39 @@ Tests pipelining scenarios #> function Test-ListTaskPipeline { - param([string]$accountName, [string]$workItemName, [string]$jobName, [string]$taskName) + param([string]$accountName, [string]$jobId, [string]$taskId) $context = Get-AzureBatchAccountKeys -Name $accountName # Get Job into Get Task - $task = Get-AzureBatchJob_ST -WorkItemName $workItemName -Name $jobName -BatchContext $context | Get-AzureBatchTask_ST -BatchContext $context - Assert-AreEqual $taskName $task.Name - - # Get WorkItem into Get Job into Get Task - $task = Get-AzureBatchWorkItem_ST -Name $workItemName -BatchContext $context | Get-AzureBatchJob_ST -BatchContext $context | Get-AzureBatchTask_ST -BatchContext $context - Assert-AreEqual $taskName $task.Name + $task = Get-AzureBatchJob_ST -Id $jobId -BatchContext $context | Get-AzureBatchTask_ST -BatchContext $context + Assert-AreEqual $taskId $task.Id } <# .SYNOPSIS -Tests deleting a Task +Tests deleting a task #> function Test-DeleteTask { - param([string]$accountName, [string]$workItemName, [string]$jobName, [string]$taskName, [string]$usePipeline) + param([string]$accountName, [string]$jobId, [string]$taskId, [string]$usePipeline) $context = Get-AzureBatchAccountKeys -Name $accountName # Verify the task exists - $tasks = Get-AzureBatchTask_ST -WorkItemName $workItemName -JobName $jobName -BatchContext $context + $tasks = Get-AzureBatchTask_ST -JobId $jobId -BatchContext $context Assert-AreEqual 1 $tasks.Count if ($usePipeline -eq '1') { - Get-AzureBatchTask_ST -WorkItemName $workItemName -JobName $jobName -Name $taskName -BatchContext $context | Remove-AzureBatchTask_ST -Force -BatchContext $context + Get-AzureBatchTask_ST -JobId $jobId -Id $taskId -BatchContext $context | Remove-AzureBatchTask_ST -Force -BatchContext $context } else { - Remove-AzureBatchTask_ST -WorkItemName $workItemName -JobName $jobName -Name $taskName -Force -BatchContext $context + Remove-AzureBatchTask_ST -JobId $jobId -Id $taskId -Force -BatchContext $context } - # Verify the job was deleted - $tasks = Get-AzureBatchTask_ST -WorkItemName $workItemName -JobName $jobName -BatchContext $context + # Verify the task was deleted + $tasks = Get-AzureBatchTask_ST -JobId $jobId -BatchContext $context Assert-Null $tasks } \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/VMTests.ps1 b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/VMTests.ps1 deleted file mode 100644 index 02e3079b4bf1..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/VMTests.ps1 +++ /dev/null @@ -1,118 +0,0 @@ -# ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ---------------------------------------------------------------------------------- - -<# -.SYNOPSIS -Tests querying for a Batch vm by name -#> -function Test-GetVMByName -{ - param([string]$accountName, [string]$poolName) - - $context = Get-AzureBatchAccountKeys -Name $accountName - $vmName = (Get-AzureBatchVM_ST -PoolName $poolName -BatchContext $context)[0].Name - - $vm = Get-AzureBatchVM_ST -PoolName $poolName -Name $vmName -BatchContext $context - - Assert-AreEqual $vmName $vm.Name - - # Verify positional parameters also work - $vm = Get-AzureBatchVM_ST $poolName $vmName -BatchContext $context - - Assert-AreEqual $vmName $vm.Name -} - -<# -.SYNOPSIS -Tests querying for Batch vms using a filter -#> -function Test-ListVMsByFilter -{ - param([string]$accountName, [string]$poolName, [string]$state, [string]$matches) - - $context = Get-AzureBatchAccountKeys -Name $accountName - $filter = "state eq '" + "$state" + "'" - - $vms = Get-AzureBatchVM_ST -PoolName $poolName -Filter $filter -BatchContext $context - - Assert-AreEqual $matches $vms.Length - foreach($vm in $vms) - { - Assert-AreEqual $state $vm.State.ToString().ToLower() - } - - # Verify parent object parameter set also works - $pool = Get-AzureBatchPool_ST $poolName -BatchContext $context - $vms = Get-AzureBatchVM_ST -Pool $pool -Filter $filter -BatchContext $context - - Assert-AreEqual $matches $vms.Length - foreach($vm in $vms) - { - Assert-AreEqual $state $vm.State.ToString().ToLower() - } -} - -<# -.SYNOPSIS -Tests querying for Batch vms and supplying a max count -#> -function Test-ListVMsWithMaxCount -{ - param([string]$accountName, [string]$poolName, [string]$maxCount) - - $context = Get-AzureBatchAccountKeys -Name $accountName - $vms = Get-AzureBatchVM_ST -PoolName $poolName -MaxCount $maxCount -BatchContext $context - - Assert-AreEqual $maxCount $vms.Length - - # Verify parent object parameter set also works - $pool = Get-AzureBatchPool_ST $poolName -BatchContext $context - $vms = Get-AzureBatchVM_ST -Pool $pool -MaxCount $maxCount -BatchContext $context - - Assert-AreEqual $maxCount $vms.Length -} - -<# -.SYNOPSIS -Tests querying for all vms under a pool -#> -function Test-ListAllVMs -{ - param([string]$accountName, [string]$poolName, [string]$count) - - $context = Get-AzureBatchAccountKeys -Name $accountName - $vms = Get-AzureBatchVM_ST -PoolName $poolName -BatchContext $context - - Assert-AreEqual $count $vms.Length - - # Verify parent object parameter set also works - $pool = Get-AzureBatchPool_ST $poolName -BatchContext $context - $vms = Get-AzureBatchVM_ST -Pool $pool -BatchContext $context - - Assert-AreEqual $count $vms.Length -} - -<# -.SYNOPSIS -Tests piping Get-AzureBatchPool into Get-AzureBatchVM -#> -function Test-ListVMPipeline -{ - param([string]$accountName, [string]$poolName, [string]$count) - - $context = Get-AzureBatchAccountKeys -Name $accountName - $vms = Get-AzureBatchPool_ST -Name $poolName -BatchContext $context | Get-AzureBatchVM_ST -BatchContext $context - - Assert-AreEqual $count $vms.Count -} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/VMUserTests.ps1 b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/VMUserTests.ps1 deleted file mode 100644 index a6c18d55a632..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/VMUserTests.ps1 +++ /dev/null @@ -1,58 +0,0 @@ -# ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ---------------------------------------------------------------------------------- - -<# -.SYNOPSIS -Tests creating a User -#> -function Test-CreateUser -{ - param([string]$accountName, [string]$poolName, [string]$vmName, [string]$userName, [string]$usePipeline) - - $context = Get-AzureBatchAccountKeys -Name $accountName - $password = "Password1234!" - - # Create a user - if ($usePipeline -eq '1') - { - $expiryTime = [DateTime]::Now.AddDays(5) - $vm = Get-AzureBatchVM_ST $poolName $vmName -BatchContext $context - $vm | New-AzureBatchVMUser_ST -Name $userName -Password $password -ExpiryTime $expiryTime -IsAdmin -BatchContext $context - } - else - { - New-AzureBatchVMUser_ST -PoolName $poolName -VMName $vmName -Name $userName -Password $password -BatchContext $context - } - - # Verify that a user was created - # There is currently no Get/List user API, so try to create the user again and verify that it fails. - Assert-Throws { New-AzureBatchVMUser_ST -PoolName $poolName -VMName $vmName -Name $userName -Password $password -BatchContext $context } -} - -<# -.SYNOPSIS -Tests deleting a user -#> -function Test-DeleteUser -{ - param([string]$accountName, [string]$poolName, [string]$vmName, [string]$userName) - - $context = Get-AzureBatchAccountKeys -Name $accountName - - Remove-AzureBatchVMUser_ST -PoolName $poolName -VMName $vmName -Name $userName -Force -BatchContext $context - - # Verify the user was deleted - # There is currently no Get/List user API, so try to delete the user again and verify that it fails. - Assert-Throws { Remove-AzureBatchUser_ST -PoolName $poolName -VMName $vmName -Name $userName -Force -BatchContext $context } -} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/WorkItemTests.ps1 b/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/WorkItemTests.ps1 deleted file mode 100644 index b91aa5aaccc8..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/WorkItemTests.ps1 +++ /dev/null @@ -1,243 +0,0 @@ -# ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ---------------------------------------------------------------------------------- - -<# -.SYNOPSIS -Tests creating Batch WorkItems -#> -function Test-NewWorkItem -{ - param([string]$accountName) - - $context = Get-AzureBatchAccountKeys -Name $accountName - - $wiName1 = "simple" - $wiName2 = "complex" - - try - { - # Create a simple WorkItem - $jee1 = New-Object Microsoft.Azure.Commands.Batch.Models.PSJobExecutionEnvironment - $jee1.PoolName = $poolName = "testPool" - New-AzureBatchWorkItem_ST -Name $wiName1 -JobExecutionEnvironment $jee1 -BatchContext $context - $workItem1 = Get-AzureBatchWorkItem_ST -Name $wiName1 -BatchContext $context - - # Verify created WorkItem matches expectations - Assert-AreEqual $wiName1 $workItem1.Name - Assert-AreEqual $poolName $workItem1.JobExecutionEnvironment.PoolName - - # Create a complicated WorkItem - $startTask = New-Object Microsoft.Azure.Commands.Batch.Models.PSStartTask - $startTaskCmd = "cmd /c dir /s" - $startTask.CommandLine = $startTaskCmd - - $poolSpec = New-Object Microsoft.Azure.Commands.Batch.Models.PSPoolSpecification - $poolSpec.TargetDedicated = $targetDedicated = 3 - $poolSpec.VMSize = $vmSize = "small" - $poolSpec.OSFamily = $osFamily = "4" - $poolSpec.TargetOSVersion = $targetOS = "*" - $poolSpec.StartTask = $startTask - - $poolSpec.CertificateReferences = new-object System.Collections.Generic.List``1[Microsoft.Azure.Commands.Batch.Models.PSCertificateReference] - $certRef = New-Object Microsoft.Azure.Commands.Batch.Models.PSCertificateReference - $certRef.StoreLocation = $storeLocation = ([Microsoft.Azure.Batch.Common.CertStoreLocation]::LocalMachine) - $certRef.StoreName = $storeName = "certStore" - $certRef.Thumbprint = $thumbprint = "0123456789ABCDEF" - $certRef.ThumbprintAlgorithm = $thumbprintAlgorithm = "sha1" - $certRef.Visibility = $visibility = ([Microsoft.Azure.Batch.Common.CertVisibility]::StartTask) - $poolSpec.CertificateReferences.Add($certRef) - $certRefCount = $poolSpec.CertificateReferences.Count - - $autoPoolSpec = New-Object Microsoft.Azure.Commands.Batch.Models.PSAutoPoolSpecification - $autoPoolSpec.PoolSpecification = $poolSpec - $autoPoolSpec.AutoPoolNamePrefix = $autoPoolNamePrefix = "TestSpecPrefix" - $autoPoolSpec.KeepAlive = $keepAlive = $false - $autoPoolSpec.PoolLifeTimeOption = $poolLifeTime = ([Microsoft.Azure.Batch.Common.PoolLifeTimeOption]::WorkItem) - - $jee2 = New-Object Microsoft.Azure.Commands.Batch.Models.PSJobExecutionEnvironment - $jee2.AutoPoolSpecification = $autoPoolSpec - - $jobMgr = New-Object Microsoft.Azure.Commands.Batch.Models.PSJobMAnager - $jobMgr.CommandLine = $jobMgrCmd = "cmd /c dir /s" - $jobMgr.EnvironmentSettings = new-object System.Collections.Generic.List``1[Microsoft.Azure.Commands.Batch.Models.PSEnvironmentSetting] - $env1 = New-Object Microsoft.Azure.Commands.Batch.Models.PSEnvironmentSetting -ArgumentList "name1","value1" - $env2 = New-Object Microsoft.Azure.Commands.Batch.Models.PSEnvironmentSetting -ArgumentList "name2","value2" - $env1Name = $env1.Name - $env1Value = $env1.Value - $env2Name = $env2.Name - $env2Value = $env2.Value - $jobMgr.EnvironmentSettings.Add($env1) - $jobMgr.EnvironmentSettings.Add($env2) - $envCount = $jobMgr.EnvironmentSettings.Count - $jobMgr.ResourceFiles = new-object System.Collections.Generic.List``1[Microsoft.Azure.Commands.Batch.Models.PSResourceFile] - $r1 = New-Object Microsoft.Azure.Commands.Batch.Models.PSResourceFile -ArgumentList "https://testacct.blob.core.windows.net/","filePath" - $blobSource = $r1.BlobSource - $filePath = $r1.FilePath - $jobMgr.ResourceFiles.Add($r1) - $resourceFileCount = $jobMgr.ResourceFiles.Count - $jobMgr.KillJobOnCompletion = $killOnCompletion = $false - $jobMgr.Name = $jobMgrName = "jobManager" - $jobMgr.RunElevated = $runElevated = $false - - $jobConstraints = New-Object Microsoft.Azure.Commands.Batch.Models.PSJobConstraints -ArgumentList @([TimeSpan]::FromDays(1),5) - $maxWallClockTime = $jobConstraints.MaxWallClockTime - $maxTaskRetry = $jobConstraints.MaxTaskRetryCount - - $jobSpec = New-Object Microsoft.Azure.Commands.Batch.Models.PSJobSpecification - $jobSpec.JobManager = $jobMgr - $jobSpec.JobConstraints = $jobConstraints - - $wiSchedule = New-Object Microsoft.Azure.Commands.Batch.Models.PSWorkItemSchedule - $wiSchedule.RecurrenceInterval = $recurrence = [TimeSpan]::FromDays(1) - - $metadata = @{"meta1"="value1";"meta2"="value2"} - - New-AzureBatchWorkItem_ST -Name $wiName2 -JobExecutionEnvironment $jee2 -Schedule $wiSchedule -JobSpecification $jobSpec -Metadata $metadata -BatchContext $context - - $workItem2 = Get-AzureBatchWorkItem_ST -Name $wiName2 -BatchContext $context - - # Verify created WorkItem matches expectations - Assert-AreEqual $wiName2 $workItem2.Name - Assert-AreEqual $jee2.PoolName $workItem2.JobExecutionEnvironment.PoolName - Assert-AreEqual $autoPoolNamePrefix $workItem2.JobExecutionEnvironment.AutoPoolSpecification.AutoPoolNamePrefix - Assert-AreEqual $keepAlive $workItem2.JobExecutionEnvironment.AutoPoolSpecification.KeepAlive - Assert-AreEqual $poolLifeTime $workItem2.JobExecutionEnvironment.AutoPoolSpecification.PoolLifeTimeOption - Assert-AreEqual $targetDedicated $workItem2.JobExecutionEnvironment.AutoPoolSpecification.PoolSpecification.TargetDedicated - Assert-AreEqual $vmSize $workItem2.JobExecutionEnvironment.AutoPoolSpecification.PoolSpecification.VMSize - Assert-AreEqual $osFamily $workItem2.JobExecutionEnvironment.AutoPoolSpecification.PoolSpecification.OSFamily - Assert-AreEqual $targetOS $workItem2.JobExecutionEnvironment.AutoPoolSpecification.PoolSpecification.TargetOSVersion - Assert-AreEqual $certRefCount $workItem2.JobExecutionEnvironment.AutoPoolSpecification.PoolSpecification.CertificateReferences.Count - Assert-AreEqual $storeLocation $workItem2.JobExecutionEnvironment.AutoPoolSpecification.PoolSpecification.CertificateReferences[0].StoreLocation - Assert-AreEqual $storeName $workItem2.JobExecutionEnvironment.AutoPoolSpecification.PoolSpecification.CertificateReferences[0].StoreName - Assert-AreEqual $thumbprint $workItem2.JobExecutionEnvironment.AutoPoolSpecification.PoolSpecification.CertificateReferences[0].Thumbprint - Assert-AreEqual $thumbprintAlgorithm $workItem2.JobExecutionEnvironment.AutoPoolSpecification.PoolSpecification.CertificateReferences[0].ThumbprintAlgorithm - Assert-AreEqual $visibility $workItem2.JobExecutionEnvironment.AutoPoolSpecification.PoolSpecification.CertificateReferences[0].Visibility - Assert-AreEqual $startTaskCmd $workItem2.JobExecutionEnvironment.AutoPoolSpecification.PoolSpecification.StartTask.CommandLine - Assert-AreEqual $jobMgrCmd $workItem2.JobSpecification.JobManager.CommandLine - Assert-AreEqual $envCount $workItem2.JobSpecification.JobManager.EnvironmentSettings.Count - Assert-AreEqual $env1Name $workItem2.JobSpecification.JobManager.EnvironmentSettings[0].Name - Assert-AreEqual $env1Value $workItem2.JobSpecification.JobManager.EnvironmentSettings[0].Value - Assert-AreEqual $env2Name $workItem2.JobSpecification.JobManager.EnvironmentSettings[1].Name - Assert-AreEqual $env2Value $workItem2.JobSpecification.JobManager.EnvironmentSettings[1].Value - Assert-AreEqual $resourceFileCount $workItem2.JobSpecification.JobManager.ResourceFiles.Count - Assert-AreEqual $blobSource $workItem2.JobSpecification.JobManager.ResourceFiles[0].BlobSource - Assert-AreEqual $filePath $workItem2.JobSpecification.JobManager.ResourceFiles[0].FilePath - Assert-AreEqual $killOnCompletion $workItem2.JobSpecification.JobManager.KillJobOnCompletion - Assert-AreEqual $jobMgrName $workItem2.JobSpecification.JobManager.Name - Assert-AreEqual $runElevated $workItem2.JobSpecification.JobManager.RunElevated - Assert-AreEqual $jobMgrCmd $workItem2.JobSpecification.JobManager.CommandLine - Assert-AreEqual $maxTaskRetry $workItem2.JobSpecification.JobConstraints.MaxTaskRetryCount - Assert-AreEqual $maxWallClockTime $workItem2.JobSpecification.JobConstraints.MaxWallClockTime - Assert-AreEqual $recurrence $workItem2.Schedule.RecurrenceInterval - Assert-AreEqual $metadata.Count $workItem2.Metadata.Count - foreach($m in $workItem2.Metadata) - { - Assert-AreEqual $metadata[$m.Name] $m.Value - } - } - finally - { - Remove-AzureBatchWorkItem_ST -Name $wiName1 -Force -BatchContext $context - Remove-AzureBatchWorkItem_ST -Name $wiName2 -Force -BatchContext $context - } -} - -<# -.SYNOPSIS -Tests querying for a Batch WorkItem by name -#> -function Test-GetWorkItemByName -{ - param([string]$accountName, [string]$wiName) - - $context = Get-AzureBatchAccountKeys -Name $accountName - $workItem = Get-AzureBatchWorkItem_ST -Name $wiName -BatchContext $context - - Assert-AreEqual $wiName $workItem.Name -} - -<# -.SYNOPSIS -Tests querying for Batch WorkItems using a filter -#> -function Test-ListWorkItemsByFilter -{ - param([string]$accountName, [string]$wiPrefix, [string]$matches) - - $context = Get-AzureBatchAccountKeys -Name $accountName - $wiFilter = "startswith(name,'" + "$wiPrefix" + "')" - $workItems = Get-AzureBatchWorkItem_ST -Filter $wiFilter -BatchContext $context - - Assert-AreEqual $matches $workItems.Length - foreach($workItem in $workItems) - { - Assert-True { $workItem.Name.StartsWith("$wiPrefix") } - } -} - -<# -.SYNOPSIS -Tests querying for Batch WorkItems and supplying a max count -#> -function Test-ListWorkItemsWithMaxCount -{ - param([string]$accountName, [string]$maxCount) - - $context = Get-AzureBatchAccountKeys -Name $accountName - $workItems = Get-AzureBatchWorkItem_ST -MaxCount $maxCount -BatchContext $context - - Assert-AreEqual $maxCount $workItems.Length -} - -<# -.SYNOPSIS -Tests querying for all WorkItems under an account -#> -function Test-ListAllWorkItems -{ - param([string]$accountName, [string]$count) - - $context = Get-AzureBatchAccountKeys -Name $accountName - $workItems = Get-AzureBatchWorkItem_ST -BatchContext $context - - Assert-AreEqual $count $workItems.Length -} - -<# -.SYNOPSIS -Tests deleting a WorkItem -#> -function Test-DeleteWorkItem -{ - param([string]$accountName, [string]$workItemName, [string]$usePipeline) - - $context = Get-AzureBatchAccountKeys -Name $accountName - - # Verify the WorkItem exists - $workItems = Get-AzureBatchWorkItem_ST -BatchContext $context - Assert-AreEqual 1 $workItems.Count - - if ($usePipeline -eq '1') - { - Get-AzureBatchWorkItem_ST -Name $workItemName -BatchContext $context | Remove-AzureBatchWorkItem_ST -Force -BatchContext $context - } - else - { - Remove-AzureBatchWorkItem_ST -Name $workItemName -Force -BatchContext $context - } - - # Verify the WorkItem was deleted - $workItems = Get-AzureBatchWorkItem_ST -BatchContext $context - Assert-True { $workItems -eq $null -or $workItems[0].State.ToString().ToLower() -eq 'deleting' } -} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestGetComputeNodeById.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestGetComputeNodeById.json new file mode 100644 index 000000000000..366e44b67bdd --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestGetComputeNodeById.json @@ -0,0 +1,470 @@ +{ + "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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-request-id": [ + "13a22fd3-3d5b-4a23-a7b4-1a61e4ee7bc6" + ], + "x-ms-correlation-request-id": [ + "13a22fd3-3d5b-4a23-a7b4-1a61e4ee7bc6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165645Z:13a22fd3-3d5b-4a23-a7b4-1a61e4ee7bc6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:56:44 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:56:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "508b6e46-a76a-48a0-b2bd-fbcbdb6e95c9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14954" + ], + "x-ms-request-id": [ + "df180d31-7aa2-4081-a23b-02f4faa9bbe0" + ], + "x-ms-correlation-request-id": [ + "df180d31-7aa2-4081-a23b-02f4faa9bbe0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165645Z:df180d31-7aa2-4081-a23b-02f4faa9bbe0" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:56:44 GMT" + ], + "ETag": [ + "0x8D298FFDA1427BF" + ], + "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": [ + "d52f5b1b-e668-4db3-901e-4f37eb8d7d21" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1188" + ], + "x-ms-request-id": [ + "bc8818e2-ffde-4f8e-a31e-214cf2ac5c4c" + ], + "x-ms-correlation-request-id": [ + "bc8818e2-ffde-4f8e-a31e-214cf2ac5c4c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165645Z:bc8818e2-ffde-4f8e-a31e-214cf2ac5c4c" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:56:45 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4150bfbd-72ed-4162-ba23-63e684e90bb0" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:56:45 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "a10169f7-6577-4777-ae2d-8d55fda98f7e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4150bfbd-72ed-4162-ba23-63e684e90bb0" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:56:45 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "828134ca-13b3-4ed7-b6d0-ba723ee93bc8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:56:46 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cad4f634-eb1e-4342-8b8b-46b18914bea6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "828134ca-13b3-4ed7-b6d0-ba723ee93bc8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:56:45 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "828134ca-13b3-4ed7-b6d0-ba723ee93bc8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:56:46 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cad4f634-eb1e-4342-8b8b-46b18914bea6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "828134ca-13b3-4ed7-b6d0-ba723ee93bc8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:56:45 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "683c84fc-e0c8-4606-b4b6-03757b4539fe" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:56:46 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6fd76734-4d83-4521-aeb7-d12ce4f1bb17" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "683c84fc-e0c8-4606-b4b6-03757b4539fe" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:56:45 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "683c84fc-e0c8-4606-b4b6-03757b4539fe" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:56:46 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6fd76734-4d83-4521-aeb7-d12ce4f1bb17" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "683c84fc-e0c8-4606-b4b6-03757b4539fe" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:56:45 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "683c84fc-e0c8-4606-b4b6-03757b4539fe" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:56:46 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6fd76734-4d83-4521-aeb7-d12ce4f1bb17" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "683c84fc-e0c8-4606-b4b6-03757b4539fe" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:56:45 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListAllComputeNodes.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListAllComputeNodes.json new file mode 100644 index 000000000000..f507ac6ec16e --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListAllComputeNodes.json @@ -0,0 +1,705 @@ +{ + "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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14975" + ], + "x-ms-request-id": [ + "2166e257-9694-4173-abd7-b465d906a843" + ], + "x-ms-correlation-request-id": [ + "2166e257-9694-4173-abd7-b465d906a843" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170937Z:2166e257-9694-4173-abd7-b465d906a843" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:09:36 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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14974" + ], + "x-ms-request-id": [ + "db1509cf-d556-4a24-9998-769917a4b9fb" + ], + "x-ms-correlation-request-id": [ + "db1509cf-d556-4a24-9998-769917a4b9fb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170938Z:db1509cf-d556-4a24-9998-769917a4b9fb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:09:37 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:09:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "036659f4-7d09-4f30-ba9a-a3c0033183d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14963" + ], + "x-ms-request-id": [ + "b4c2a9a3-d6bb-4fae-aceb-1c1897c35cf9" + ], + "x-ms-correlation-request-id": [ + "b4c2a9a3-d6bb-4fae-aceb-1c1897c35cf9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170937Z:b4c2a9a3-d6bb-4fae-aceb-1c1897c35cf9" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:09:37 GMT" + ], + "ETag": [ + "0x8D29901A62F89D0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:09:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "d988c037-0baa-47b1-97d3-448322d9dc56" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14962" + ], + "x-ms-request-id": [ + "15c8732d-172c-425d-88c0-fc4c3c2458cf" + ], + "x-ms-correlation-request-id": [ + "15c8732d-172c-425d-88c0-fc4c3c2458cf" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170938Z:15c8732d-172c-425d-88c0-fc4c3c2458cf" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:09:38 GMT" + ], + "ETag": [ + "0x8D29901A6A8C8F6" + ], + "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": [ + "b1ce395c-0428-48e1-905d-b862b10f54f2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1189" + ], + "x-ms-request-id": [ + "816eb603-786d-4a72-b62e-33cb29cf6f94" + ], + "x-ms-correlation-request-id": [ + "816eb603-786d-4a72-b62e-33cb29cf6f94" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170937Z:816eb603-786d-4a72-b62e-33cb29cf6f94" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:09:37 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": [ + "6a2bac2d-b372-4e15-a715-3227691252f2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1188" + ], + "x-ms-request-id": [ + "5019cd3c-0681-4629-9ba1-3cefa4d69921" + ], + "x-ms-correlation-request-id": [ + "5019cd3c-0681-4629-9ba1-3cefa4d69921" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170938Z:5019cd3c-0681-4629-9ba1-3cefa4d69921" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:09:38 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4c575223-80ae-435f-b2cd-61b4cc250374" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:09:37 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D298FCFBDD1459\",\r\n \"lastModified\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T16:38:18.3097919Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:36:13 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "0a6eeb32-ebb7-4221-ad8d-5a4e4d2bf6e7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4c575223-80ae-435f-b2cd-61b4cc250374" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:09:37 GMT" + ], + "ETag": [ + "0x8D298FCFBDD1459" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6e793804-4edb-4acc-9baa-57534eb16308" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:09:38 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D298FCFBDD1459\",\r\n \"lastModified\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T16:38:18.3097919Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:36:13 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "36ea1926-bf22-4548-810c-bd665bbc75df" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6e793804-4edb-4acc-9baa-57534eb16308" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:09:38 GMT" + ], + "ETag": [ + "0x8D298FCFBDD1459" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6e793804-4edb-4acc-9baa-57534eb16308" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:09:38 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D298FCFBDD1459\",\r\n \"lastModified\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T16:38:18.3097919Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:36:13 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "36ea1926-bf22-4548-810c-bd665bbc75df" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6e793804-4edb-4acc-9baa-57534eb16308" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:09:38 GMT" + ], + "ETag": [ + "0x8D298FCFBDD1459" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6e38b69e-7f4f-441e-8934-78e8e62408ca" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:09:38 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 11,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b1ff9b02-02ca-4c71-a9fc-1788b7730bb3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6e38b69e-7f4f-441e-8934-78e8e62408ca" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:09:38 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8c039d4a-05fb-4c35-905e-ddf6682deefc" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:09:39 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 11,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f047a3df-1166-4963-8d3b-8dfdd1b0046b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8c039d4a-05fb-4c35-905e-ddf6682deefc" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:09:38 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8c039d4a-05fb-4c35-905e-ddf6682deefc" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:09:39 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 11,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f047a3df-1166-4963-8d3b-8dfdd1b0046b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8c039d4a-05fb-4c35-905e-ddf6682deefc" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:09:38 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8c039d4a-05fb-4c35-905e-ddf6682deefc" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:09:39 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 11,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f047a3df-1166-4963-8d3b-8dfdd1b0046b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8c039d4a-05fb-4c35-905e-ddf6682deefc" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:09:38 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMTests/TestListVMsByFilter.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListComputeNodePipeline.json similarity index 52% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMTests/TestListVMsByFilter.json rename to src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListComputeNodePipeline.json index d5ad9ffed953..be6dbd6700c1 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMTests/TestListVMsByFilter.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListComputeNodePipeline.json @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14972" + "14964" ], "x-ms-request-id": [ - "ae6591a9-b6e8-4f2e-8d14-70ef6a9bc06a" + "763880fa-84e9-4abd-b553-ca6e950a4ae7" ], "x-ms-correlation-request-id": [ - "ae6591a9-b6e8-4f2e-8d14-70ef6a9bc06a" + "763880fa-84e9-4abd-b553-ca6e950a4ae7" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T190841Z:ae6591a9-b6e8-4f2e-8d14-70ef6a9bc06a" + "WESTUS:20150730T170956Z:763880fa-84e9-4abd-b553-ca6e950a4ae7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:08:41 GMT" + "Thu, 30 Jul 2015 17:09:56 GMT" ] }, "StatusCode": 200 @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14971" + "14963" ], "x-ms-request-id": [ - "dd79a1df-d588-42ae-a48a-c8eecbc33041" + "8e3e81f0-c599-4a05-94df-29aa2fdb4a18" ], "x-ms-correlation-request-id": [ - "dd79a1df-d588-42ae-a48a-c8eecbc33041" + "8e3e81f0-c599-4a05-94df-29aa2fdb4a18" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T190843Z:dd79a1df-d588-42ae-a48a-c8eecbc33041" + "WESTUS:20150730T170958Z:8e3e81f0-c599-4a05-94df-29aa2fdb4a18" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:08:43 GMT" + "Thu, 30 Jul 2015 17:09:58 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:08:43 GMT" + "Thu, 30 Jul 2015 17:09:57 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "4bb6d8c1-fee6-4b30-9286-8ac5770e57a1" + "86256575-2d80-469d-a78f-da8585a43c39" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14948" + "14966" ], "x-ms-request-id": [ - "29d7a57e-38c5-4b06-81f0-bbf3103799dc" + "f4190be7-d0e0-4f60-bc3e-938309216a2d" ], "x-ms-correlation-request-id": [ - "29d7a57e-38c5-4b06-81f0-bbf3103799dc" + "f4190be7-d0e0-4f60-bc3e-938309216a2d" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T190843Z:29d7a57e-38c5-4b06-81f0-bbf3103799dc" + "WESTUS:20150730T170958Z:f4190be7-d0e0-4f60-bc3e-938309216a2d" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:08:42 GMT" + "Thu, 30 Jul 2015 17:09:57 GMT" ], "ETag": [ - "0x8D28891CECB69E5" + "0x8D29901B26238AA" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:08:44 GMT" + "Thu, 30 Jul 2015 17:09:58 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "8e16aa74-87d2-4197-83e0-d7ba2dc112fa" + "5d847bbc-2f9c-4845-b591-8c970d83d62a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14947" + "14965" ], "x-ms-request-id": [ - "61d8ec4d-6904-4528-94fa-4794fffd3a33" + "86ba15d6-87e8-481e-90ef-ca13056123b7" ], "x-ms-correlation-request-id": [ - "61d8ec4d-6904-4528-94fa-4794fffd3a33" + "86ba15d6-87e8-481e-90ef-ca13056123b7" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T190844Z:61d8ec4d-6904-4528-94fa-4794fffd3a33" + "WESTUS:20150730T170958Z:86ba15d6-87e8-481e-90ef-ca13056123b7" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:08:43 GMT" + "Thu, 30 Jul 2015 17:09:58 GMT" ], "ETag": [ - "0x8D28891CF45279F" + "0x8D29901B2E56D19" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "22e8be9e-751f-4305-ad02-54498386ee47" + "0ff2ad2c-8f26-42d7-9b50-03f8ed223293" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1185" + "1178" ], "x-ms-request-id": [ - "e494cb09-e0ad-44e1-8525-3c0d01dbcc6a" + "1d760f61-a284-4c23-b84a-3ee51e4054a9" ], "x-ms-correlation-request-id": [ - "e494cb09-e0ad-44e1-8525-3c0d01dbcc6a" + "1d760f61-a284-4c23-b84a-3ee51e4054a9" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T190843Z:e494cb09-e0ad-44e1-8525-3c0d01dbcc6a" + "WESTUS:20150730T170958Z:1d760f61-a284-4c23-b84a-3ee51e4054a9" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:08:42 GMT" + "Thu, 30 Jul 2015 17:09:57 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "f577dcdb-8d7f-489e-97a0-6de3878b03fc" + "c2e31f6e-1ce8-46c2-99b2-aa60fe95b956" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1184" + "1177" ], "x-ms-request-id": [ - "ba4551a3-cb71-447f-aa7a-55fbd0619809" + "248b8284-43b7-4ca9-8197-a94b01a7972d" ], "x-ms-correlation-request-id": [ - "ba4551a3-cb71-447f-aa7a-55fbd0619809" + "248b8284-43b7-4ca9-8197-a94b01a7972d" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T190844Z:ba4551a3-cb71-447f-aa7a-55fbd0619809" + "WESTUS:20150730T170959Z:248b8284-43b7-4ca9-8197-a94b01a7972d" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:08:43 GMT" + "Thu, 30 Jul 2015 17:09:58 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,49 +337,53 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "f7ea52c0-0ec6-4aab-bd13-244339caf803" + "acb6be91-2b98-48c6-91e1-0dada39b3ce6" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:09:58 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:08:43 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D28890DD2FCEE8\",\r\n \"lastModified\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T19:03:22.4082136Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D298FCFBDD1459\",\r\n \"lastModified\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T16:38:18.3097919Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:01:58 GMT" + "Thu, 30 Jul 2015 16:36:13 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "f8623cd2-7b3d-44cb-aa9b-49db19da35ae" + "3e020642-d029-4c1e-bcac-d47b21637df1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "acb6be91-2b98-48c6-91e1-0dada39b3ce6" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:08:42 GMT" + "Thu, 30 Jul 2015 17:09:58 GMT" ], "ETag": [ - "0x8D28890DD2FCEE8" + "0x8D298FCFBDD1459" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -388,49 +392,53 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "0638c8ae-9bc0-4eae-a1b5-71b630e50d30" + "991084cc-25fb-4870-80a3-430629276522" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:09:58 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:08:44 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D28890DD2FCEE8\",\r\n \"lastModified\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T19:03:22.4082136Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D298FCFBDD1459\",\r\n \"lastModified\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T16:38:18.3097919Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:01:58 GMT" + "Thu, 30 Jul 2015 16:36:13 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "462fafa6-ce2e-436b-ad97-bd74b7c25041" + "b2a14f71-73d5-416f-a967-8e1edda2e299" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "991084cc-25fb-4870-80a3-430629276522" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:08:44 GMT" + "Thu, 30 Jul 2015 17:09:58 GMT" ], "ETag": [ - "0x8D28890DD2FCEE8" + "0x8D298FCFBDD1459" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -439,25 +447,26 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testPool/tvms?api-version=2014-10-01.1.0&$filter=state%20eq%20'idle'", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXM/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjAmJGZpbHRlcj1zdGF0ZSUyMGVxJTIwJTI3aWRsZSUyNw==", + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "cee3aae2-7202-4d63-994f-1e078bdcfe4f" + "c485ffcf-1d74-4b1e-933c-8c694bc2b210" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:09:59 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:08:43 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tvms\",\r\n \"value\": [\r\n {\r\n \"name\": \"tvm-4155946844_1-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-09T19:08:35.5466164Z\",\r\n \"lastBootTime\": \"2015-07-09T19:08:35.4786184Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.28.116\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-09T19:08:35.5776188Z\",\r\n \"endTime\": \"2015-07-09T19:08:36.4942084Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"name\": \"tvm-4155946844_2-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_2-20150709t190321z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-09T19:08:05.7418843Z\",\r\n \"lastBootTime\": \"2015-07-09T19:08:05.6548918Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.16.79\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-09T19:08:05.773026Z\",\r\n \"endTime\": \"2015-07-09T19:08:06.6520273Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"name\": \"tvm-4155946844_3-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_3-20150709t190321z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-09T19:08:05.6824444Z\",\r\n \"lastBootTime\": \"2015-07-09T19:08:05.603148Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.12.86\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-09T19:08:05.7094503Z\",\r\n \"endTime\": \"2015-07-09T19:08:06.6014509Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 11,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" @@ -466,16 +475,19 @@ "chunked" ], "request-id": [ - "1a689dc3-1cbe-4a2f-ba38-7917e568baf3" + "267ff808-814a-4140-a2c4-788ce655b613" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "c485ffcf-1d74-4b1e-933c-8c694bc2b210" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:08:44 GMT" + "Thu, 30 Jul 2015 17:09:58 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -484,25 +496,26 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testPool/tvms?api-version=2014-10-01.1.0&$filter=state%20eq%20'idle'", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXM/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjAmJGZpbHRlcj1zdGF0ZSUyMGVxJTIwJTI3aWRsZSUyNw==", + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "9aea07bd-00a1-4095-8084-24e36f0e19f8" + "c485ffcf-1d74-4b1e-933c-8c694bc2b210" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:09:59 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:08:44 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tvms\",\r\n \"value\": [\r\n {\r\n \"name\": \"tvm-4155946844_1-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-09T19:08:35.5466164Z\",\r\n \"lastBootTime\": \"2015-07-09T19:08:35.4786184Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.28.116\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-09T19:08:35.5776188Z\",\r\n \"endTime\": \"2015-07-09T19:08:36.4942084Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"name\": \"tvm-4155946844_2-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_2-20150709t190321z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-09T19:08:05.7418843Z\",\r\n \"lastBootTime\": \"2015-07-09T19:08:05.6548918Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.16.79\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-09T19:08:05.773026Z\",\r\n \"endTime\": \"2015-07-09T19:08:06.6520273Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"name\": \"tvm-4155946844_3-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_3-20150709t190321z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-09T19:08:05.6824444Z\",\r\n \"lastBootTime\": \"2015-07-09T19:08:05.603148Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.12.86\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-09T19:08:05.7094503Z\",\r\n \"endTime\": \"2015-07-09T19:08:06.6014509Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 11,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" @@ -511,16 +524,19 @@ "chunked" ], "request-id": [ - "a2327881-6635-4618-afc5-58e3873926d6" + "267ff808-814a-4140-a2c4-788ce655b613" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "c485ffcf-1d74-4b1e-933c-8c694bc2b210" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:08:44 GMT" + "Thu, 30 Jul 2015 17:09:58 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListComputeNodesByFilter.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListComputeNodesByFilter.json new file mode 100644 index 000000000000..a59c2c06caf5 --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListComputeNodesByFilter.json @@ -0,0 +1,705 @@ +{ + "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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14960" + ], + "x-ms-request-id": [ + "23ae92fe-fcb9-4505-b5c5-150c431b4641" + ], + "x-ms-correlation-request-id": [ + "23ae92fe-fcb9-4505-b5c5-150c431b4641" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170916Z:23ae92fe-fcb9-4505-b5c5-150c431b4641" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:09:15 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14959" + ], + "x-ms-request-id": [ + "b841e243-658f-4e25-a64c-643c86c7b084" + ], + "x-ms-correlation-request-id": [ + "b841e243-658f-4e25-a64c-643c86c7b084" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170918Z:b841e243-658f-4e25-a64c-643c86c7b084" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:09:18 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:09:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "2ccd0651-fb94-4129-8fee-fc6ae42c7246" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14966" + ], + "x-ms-request-id": [ + "6b6d1971-d17f-4ec6-8981-cfcb3c6a09d1" + ], + "x-ms-correlation-request-id": [ + "6b6d1971-d17f-4ec6-8981-cfcb3c6a09d1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170917Z:6b6d1971-d17f-4ec6-8981-cfcb3c6a09d1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:09:17 GMT" + ], + "ETag": [ + "0x8D299019A77F7F2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:09:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "0259701b-baa9-4527-9567-6f14d49315bf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14965" + ], + "x-ms-request-id": [ + "7a10c001-db03-499f-b135-1ebc1c805d07" + ], + "x-ms-correlation-request-id": [ + "7a10c001-db03-499f-b135-1ebc1c805d07" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170918Z:7a10c001-db03-499f-b135-1ebc1c805d07" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:09:18 GMT" + ], + "ETag": [ + "0x8D299019B0220D6" + ], + "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": [ + "e893a270-343c-4821-98c5-8e417de3b3f8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1187" + ], + "x-ms-request-id": [ + "29c65b84-c6fd-4b30-8b43-f6bddac04d91" + ], + "x-ms-correlation-request-id": [ + "29c65b84-c6fd-4b30-8b43-f6bddac04d91" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170917Z:29c65b84-c6fd-4b30-8b43-f6bddac04d91" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:09:17 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": [ + "8b83d656-656e-499a-a96a-e1afa2bdd844" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1186" + ], + "x-ms-request-id": [ + "bb909d39-7423-4fba-b32b-81af0c2d7149" + ], + "x-ms-correlation-request-id": [ + "bb909d39-7423-4fba-b32b-81af0c2d7149" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170918Z:bb909d39-7423-4fba-b32b-81af0c2d7149" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:09:18 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "05cb2540-4cbe-4181-aaec-238c9c9eed14" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:09:17 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D298FCFBDD1459\",\r\n \"lastModified\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T16:38:18.3097919Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:36:13 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "42f94582-d74b-4f79-ab54-7725de716570" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "05cb2540-4cbe-4181-aaec-238c9c9eed14" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:09:17 GMT" + ], + "ETag": [ + "0x8D298FCFBDD1459" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c700b0a3-e849-4f4d-af39-731fe091358c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:09:19 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D298FCFBDD1459\",\r\n \"lastModified\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T16:38:18.3097919Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:36:13 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "3b6a2cb9-2fd0-405f-9237-c909258ba12d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c700b0a3-e849-4f4d-af39-731fe091358c" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:09:18 GMT" + ], + "ETag": [ + "0x8D298FCFBDD1459" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c700b0a3-e849-4f4d-af39-731fe091358c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:09:19 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D298FCFBDD1459\",\r\n \"lastModified\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T16:38:18.3097919Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:36:13 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "3b6a2cb9-2fd0-405f-9237-c909258ba12d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c700b0a3-e849-4f4d-af39-731fe091358c" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:09:18 GMT" + ], + "ETag": [ + "0x8D298FCFBDD1459" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?$filter=state%20eq%20'idle'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzPyRmaWx0ZXI9c3RhdGUlMjBlcSUyMCUyN2lkbGUlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "00cd3ef9-0914-4801-b766-7b24b7096179" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:09:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 11,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b14d3c2c-d096-422b-bcf9-1bd7955d2936" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "00cd3ef9-0914-4801-b766-7b24b7096179" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:09:18 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?$filter=state%20eq%20'idle'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzPyRmaWx0ZXI9c3RhdGUlMjBlcSUyMCUyN2lkbGUlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d2b428ad-ac35-443f-8a1f-91ffa281f8a8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:09:19 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 11,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ce2af45d-1201-4a37-8583-d26fa92bc4db" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d2b428ad-ac35-443f-8a1f-91ffa281f8a8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:09:18 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?$filter=state%20eq%20'idle'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzPyRmaWx0ZXI9c3RhdGUlMjBlcSUyMCUyN2lkbGUlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d2b428ad-ac35-443f-8a1f-91ffa281f8a8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:09:19 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 11,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ce2af45d-1201-4a37-8583-d26fa92bc4db" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d2b428ad-ac35-443f-8a1f-91ffa281f8a8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:09:18 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?$filter=state%20eq%20'idle'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzPyRmaWx0ZXI9c3RhdGUlMjBlcSUyMCUyN2lkbGUlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d2b428ad-ac35-443f-8a1f-91ffa281f8a8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:09:19 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 11,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ce2af45d-1201-4a37-8583-d26fa92bc4db" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d2b428ad-ac35-443f-8a1f-91ffa281f8a8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:09:18 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListComputeNodesWithMaxCount.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListComputeNodesWithMaxCount.json new file mode 100644 index 000000000000..cee39d47d8cc --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeTests/TestListComputeNodesWithMaxCount.json @@ -0,0 +1,482 @@ +{ + "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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-request-id": [ + "98a49014-9400-44fa-81c6-a1cb84fef7a9" + ], + "x-ms-correlation-request-id": [ + "98a49014-9400-44fa-81c6-a1cb84fef7a9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170855Z:98a49014-9400-44fa-81c6-a1cb84fef7a9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:55 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:08:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "3d577218-fe87-42a9-a9be-a75ec825c348" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14964" + ], + "x-ms-request-id": [ + "e920870c-8915-4aaa-84f1-9bfec82e3126" + ], + "x-ms-correlation-request-id": [ + "e920870c-8915-4aaa-84f1-9bfec82e3126" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170856Z:e920870c-8915-4aaa-84f1-9bfec82e3126" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:56 GMT" + ], + "ETag": [ + "0x8D299018D803DCD" + ], + "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": [ + "65b1a4a1-c549-49e4-a1c9-092945a44435" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" + ], + "x-ms-request-id": [ + "ff7ef1ea-77d6-479d-9ade-8e3e42bbdc99" + ], + "x-ms-correlation-request-id": [ + "ff7ef1ea-77d6-479d-9ade-8e3e42bbdc99" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170856Z:ff7ef1ea-77d6-479d-9ade-8e3e42bbdc99" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bd9d5f94-3ecf-4565-aa17-562d16cd9c1f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:56 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 11,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "2e809ee4-2d86-486f-93cf-6b1eba727228" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bd9d5f94-3ecf-4565-aa17-562d16cd9c1f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "af556e9d-2028-441c-a5fc-275f3a34640f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:56 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 11,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "7a5a123a-833b-4549-bf49-b0f53b4a552d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "af556e9d-2028-441c-a5fc-275f3a34640f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "af556e9d-2028-441c-a5fc-275f3a34640f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:56 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 11,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "7a5a123a-833b-4549-bf49-b0f53b4a552d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "af556e9d-2028-441c-a5fc-275f3a34640f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "af556e9d-2028-441c-a5fc-275f3a34640f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:56 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 11,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "7a5a123a-833b-4549-bf49-b0f53b4a552d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "af556e9d-2028-441c-a5fc-275f3a34640f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1b98da8e-e7eb-466e-a502-2ff89394556f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:56 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D298FCFBDD1459\",\r\n \"lastModified\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T16:38:18.3097919Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:36:13 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "649c4c08-0038-42f6-aebc-fd13f1bb995a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1b98da8e-e7eb-466e-a502-2ff89394556f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:56 GMT" + ], + "ETag": [ + "0x8D298FCFBDD1459" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1b98da8e-e7eb-466e-a502-2ff89394556f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:56 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D298FCFBDD1459\",\r\n \"lastModified\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T16:38:18.3097919Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:36:13 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "649c4c08-0038-42f6-aebc-fd13f1bb995a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1b98da8e-e7eb-466e-a502-2ff89394556f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:56 GMT" + ], + "ETag": [ + "0x8D298FCFBDD1459" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestGetJobByName.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeUserTests/TestCreateComputeNodeUser.json similarity index 61% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestGetJobByName.json rename to src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeUserTests/TestCreateComputeNodeUser.json index 812f1d928f76..171a791afc55 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestGetJobByName.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeUserTests/TestCreateComputeNodeUser.json @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14971" + "14983" ], "x-ms-request-id": [ - "3eb63431-752d-4391-9f4b-cb70a5d7c23f" + "9096112a-2b85-4c22-b476-f8a1e71f4e32" ], "x-ms-correlation-request-id": [ - "3eb63431-752d-4391-9f4b-cb70a5d7c23f" + "9096112a-2b85-4c22-b476-f8a1e71f4e32" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192616Z:3eb63431-752d-4391-9f4b-cb70a5d7c23f" + "WESTUS:20150730T165432Z:9096112a-2b85-4c22-b476-f8a1e71f4e32" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:26:15 GMT" + "Thu, 30 Jul 2015 16:54:31 GMT" ] }, "StatusCode": 200 @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14970" + "14982" ], "x-ms-request-id": [ - "c19679f4-0836-4a45-af3c-f5d313db6b46" + "f52314f5-2bec-4502-8572-0be945ea868f" ], "x-ms-correlation-request-id": [ - "c19679f4-0836-4a45-af3c-f5d313db6b46" + "f52314f5-2bec-4502-8572-0be945ea868f" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192618Z:c19679f4-0836-4a45-af3c-f5d313db6b46" + "WESTUS:20150730T165434Z:f52314f5-2bec-4502-8572-0be945ea868f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:26:18 GMT" + "Thu, 30 Jul 2015 16:54:33 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:26:17 GMT" + "Thu, 30 Jul 2015 16:54:33 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "234f8b21-b13a-4e76-9e6e-74577f8d4abc" + "260317eb-6cc3-4c08-8595-f9150db346a0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14925" + "14987" ], "x-ms-request-id": [ - "81adc78c-78c5-4ed2-ac79-e5a1a6713746" + "cf832010-a933-43f5-8c62-4ba50b72f4e0" ], "x-ms-correlation-request-id": [ - "81adc78c-78c5-4ed2-ac79-e5a1a6713746" + "cf832010-a933-43f5-8c62-4ba50b72f4e0" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192617Z:81adc78c-78c5-4ed2-ac79-e5a1a6713746" + "WESTUS:20150730T165433Z:cf832010-a933-43f5-8c62-4ba50b72f4e0" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:26:17 GMT" + "Thu, 30 Jul 2015 16:54:33 GMT" ], "ETag": [ - "0x8D288944349B6D8" + "0x8D298FF8B5DA675" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:26:19 GMT" + "Thu, 30 Jul 2015 16:54:34 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "9d5f83f2-50e9-4616-971b-9de2d49c0fb8" + "eb197acc-2f9d-4e88-8cf4-ffec8b946dc3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14924" + "14986" ], "x-ms-request-id": [ - "59d9bed4-2e25-43ae-81d8-3d1205d884af" + "6ec2f8e2-fabd-4709-945c-1317f90d9196" ], "x-ms-correlation-request-id": [ - "59d9bed4-2e25-43ae-81d8-3d1205d884af" + "6ec2f8e2-fabd-4709-945c-1317f90d9196" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192618Z:59d9bed4-2e25-43ae-81d8-3d1205d884af" + "WESTUS:20150730T165434Z:6ec2f8e2-fabd-4709-945c-1317f90d9196" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:26:18 GMT" + "Thu, 30 Jul 2015 16:54:34 GMT" ], "ETag": [ - "0x8D28894440F9331" + "0x8D298FF8BDE575E" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "0bf8d1db-e5a9-4294-9f21-474b3055c415" + "57e1cb10-b5ff-4b45-92f3-61c214a05675" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1184" + "1197" ], "x-ms-request-id": [ - "b66f389e-efa8-491d-8f9d-304780757515" + "9f65d782-a1ac-4473-9ea6-6790d32b046b" ], "x-ms-correlation-request-id": [ - "b66f389e-efa8-491d-8f9d-304780757515" + "9f65d782-a1ac-4473-9ea6-6790d32b046b" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192617Z:b66f389e-efa8-491d-8f9d-304780757515" + "WESTUS:20150730T165433Z:9f65d782-a1ac-4473-9ea6-6790d32b046b" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:26:17 GMT" + "Thu, 30 Jul 2015 16:54:33 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "c9b4cd4f-3956-4d2f-8d94-cf2c6b758e17" + "59827c91-d836-4de4-b415-75be2198b875" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1183" + "1196" ], "x-ms-request-id": [ - "c8bacc8b-a950-430a-85d4-3fc1b0bb0bb5" + "84a78b7b-22d1-4d3f-8d91-7ea329917a73" ], "x-ms-correlation-request-id": [ - "c8bacc8b-a950-430a-85d4-3fc1b0bb0bb5" + "84a78b7b-22d1-4d3f-8d91-7ea329917a73" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192619Z:c8bacc8b-a950-430a-85d4-3fc1b0bb0bb5" + "WESTUS:20150730T165434Z:84a78b7b-22d1-4d3f-8d91-7ea329917a73" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:26:18 GMT" + "Thu, 30 Jul 2015 16:54:34 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,109 +337,47 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testName\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "164" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "828b9f98-4d88-4876-8611-b335381b366a" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:26:17 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Last-Modified": [ - "Thu, 09 Jul 2015 19:26:18 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "548c5d54-adac-43a9-9ed0-b02a73a9d4f6" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testName" - ], - "Date": [ - "Thu, 09 Jul 2015 19:26:17 GMT" - ], - "ETag": [ - "0x8D2889443AB657D" - ], - "Location": [ - "https://pstests.batch.core.windows.net/workitems/testName" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/workitems/testName?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TmFtZT9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "1f1b5a30-cd2a-456d-b40b-78bccb479fcd" + "4c55f662-b468-40a1-bdcb-fdbc8d5fd1b5" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:54:33 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:26:18 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testName\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testName\",\r\n \"eTag\": \"0x8D2889443AB657D\",\r\n \"lastModified\": \"2015-07-09T19:26:18.4504701Z\",\r\n \"creationTime\": \"2015-07-09T19:26:18.4504701Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:26:18.4504701Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testName/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:26:18 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "3da6128e-3441-4f9b-8776-7f35df56ebff" + "77d8746d-258b-4fbd-80ad-4f72b4620f81" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "4c55f662-b468-40a1-bdcb-fdbc8d5fd1b5" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:26:18 GMT" - ], - "ETag": [ - "0x8D2889443AB657D" + "Thu, 30 Jul 2015 16:54:33 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -448,100 +386,102 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testName/jobs/job-0000000001?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TmFtZS9qb2JzL2pvYi0wMDAwMDAwMDAxP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/users?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei91c2Vycz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"createuser\",\r\n \"isAdmin\": false,\r\n \"expiryTime\": \"0001-01-01T00:00:00\",\r\n \"password\": \"Password1234!\"\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "121" ], "client-request-id": [ - "be672192-4580-4b6d-bf66-5aa9fdfdfa28" + "41a2db2d-07bb-4c93-bbb7-4d285b63731f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:54:34 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:26:19 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#jobs/@Element\",\r\n \"name\": \"job-0000000001\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testName/jobs/job-0000000001\",\r\n \"eTag\": \"0x8D2889443B47949\",\r\n \"lastModified\": \"2015-07-09T19:26:18.5099593Z\",\r\n \"creationTime\": \"2015-07-09T19:26:18.4934719Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:26:18.5099593Z\",\r\n \"poolName\": \"testPool\",\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T19:26:18.5099593Z\"\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:26:18 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "2387a893-e104-473f-bc30-e20e82a17560" + "15aaabae-de1f-4529-998a-9e6680bbc7e9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "41a2db2d-07bb-4c93-bbb7-4d285b63731f" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/users/createuser" + ], "Date": [ - "Thu, 09 Jul 2015 19:26:19 GMT" + "Thu, 30 Jul 2015 16:54:35 GMT" ], - "ETag": [ - "0x8D2889443B47949" + "Location": [ + "https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/users/createuser" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/testName/jobs/job-0000000001?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TmFtZS9qb2JzL2pvYi0wMDAwMDAwMDAxP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/users/createuser?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei91c2Vycy9jcmVhdGV1c2VyP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "b7b91ccc-66ba-48a9-bce9-47083e05c69a" + "752494db-016f-4ef8-86db-5b651270b97c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:54:35 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:26:19 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#jobs/@Element\",\r\n \"name\": \"job-0000000001\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testName/jobs/job-0000000001\",\r\n \"eTag\": \"0x8D2889443B47949\",\r\n \"lastModified\": \"2015-07-09T19:26:18.5099593Z\",\r\n \"creationTime\": \"2015-07-09T19:26:18.4934719Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:26:18.5099593Z\",\r\n \"poolName\": \"testPool\",\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T19:26:18.5099593Z\"\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:26:18 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "df3a51c2-34e4-402d-bd4b-b6d0b6a1d97e" + "603d3b58-aac0-4836-9a59-b414d6f421ef" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "752494db-016f-4ef8-86db-5b651270b97c" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:26:19 GMT" - ], - "ETag": [ - "0x8D2889443B47949" + "Thu, 30 Jul 2015 16:54:35 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -550,22 +490,23 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testName?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TmFtZT9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/users/createuser?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei91c2Vycy9jcmVhdGV1c2VyP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "1352c2e2-6b05-40f6-b857-6f1bd8c5bf0c" + "752494db-016f-4ef8-86db-5b651270b97c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:54:35 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:26:19 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -574,22 +515,25 @@ "chunked" ], "request-id": [ - "713d12ba-8ec9-4b7d-9c4d-49d9bdac4813" + "603d3b58-aac0-4836-9a59-b414d6f421ef" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "752494db-016f-4ef8-86db-5b651270b97c" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:26:19 GMT" + "Thu, 30 Jul 2015 16:54:35 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 202 + "StatusCode": 200 } ], "Names": {}, diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.WorkItemTests/TestListAllWorkItems.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeUserTests/TestCreateComputeNodeUserPipeline.json similarity index 56% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.WorkItemTests/TestListAllWorkItems.json rename to src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeUserTests/TestCreateComputeNodeUserPipeline.json index f5efcec9ea52..eae8ff409ba2 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.WorkItemTests/TestListAllWorkItems.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeUserTests/TestCreateComputeNodeUserPipeline.json @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14966" + "14985" ], "x-ms-request-id": [ - "64b1cf18-3086-4a38-807d-b2ec03c544bd" + "cd3181bd-faee-411a-888b-d262f5a818f9" ], "x-ms-correlation-request-id": [ - "64b1cf18-3086-4a38-807d-b2ec03c544bd" + "cd3181bd-faee-411a-888b-d262f5a818f9" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192212Z:64b1cf18-3086-4a38-807d-b2ec03c544bd" + "WESTUS:20150730T165455Z:cd3181bd-faee-411a-888b-d262f5a818f9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:22:11 GMT" + "Thu, 30 Jul 2015 16:54:54 GMT" ] }, "StatusCode": 200 @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14965" + "14984" ], "x-ms-request-id": [ - "850f46a7-a7ed-4f43-a521-f3abeb506340" + "946a285e-e33c-40ff-9965-96fb954b548b" ], "x-ms-correlation-request-id": [ - "850f46a7-a7ed-4f43-a521-f3abeb506340" + "946a285e-e33c-40ff-9965-96fb954b548b" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192215Z:850f46a7-a7ed-4f43-a521-f3abeb506340" + "WESTUS:20150730T165457Z:946a285e-e33c-40ff-9965-96fb954b548b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:22:14 GMT" + "Thu, 30 Jul 2015 16:54:56 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:22:13 GMT" + "Thu, 30 Jul 2015 16:54:56 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "0711d5a5-3727-4ad9-ac0e-c45166ecc6a5" + "35962ccf-77c8-4eb5-bf5e-6eb0090bcaf9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14934" + "14981" ], "x-ms-request-id": [ - "f153ee6f-e544-4244-be86-cd8a37bcdb65" + "4624c727-50b7-4da2-a34e-17e01186d102" ], "x-ms-correlation-request-id": [ - "f153ee6f-e544-4244-be86-cd8a37bcdb65" + "4624c727-50b7-4da2-a34e-17e01186d102" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192213Z:f153ee6f-e544-4244-be86-cd8a37bcdb65" + "WESTUS:20150730T165456Z:4624c727-50b7-4da2-a34e-17e01186d102" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:22:13 GMT" + "Thu, 30 Jul 2015 16:54:55 GMT" ], "ETag": [ - "0x8D28893B1CB03EC" + "0x8D298FF9920158B" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:22:15 GMT" + "Thu, 30 Jul 2015 16:54:57 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "32a48dc3-53b9-4ba0-9778-e9e1ac301435" + "29be8e52-4390-4412-bd7c-d772dbe2c3ed" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14933" + "14980" ], "x-ms-request-id": [ - "3e109a7b-cbf0-4dad-87aa-f90ad5adfbd8" + "16ee0ef6-4d39-4cfe-93c2-267529c45eb2" ], "x-ms-correlation-request-id": [ - "3e109a7b-cbf0-4dad-87aa-f90ad5adfbd8" + "16ee0ef6-4d39-4cfe-93c2-267529c45eb2" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192215Z:3e109a7b-cbf0-4dad-87aa-f90ad5adfbd8" + "WESTUS:20150730T165457Z:16ee0ef6-4d39-4cfe-93c2-267529c45eb2" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:22:15 GMT" + "Thu, 30 Jul 2015 16:54:56 GMT" ], "ETag": [ - "0x8D28893B2F91576" + "0x8D298FF99AB5B1A" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "8871fcaf-d09e-477e-8614-f04f5d91d14e" + "2825d555-5a8e-4bbe-a009-b0837aaa735b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1176" + "1189" ], "x-ms-request-id": [ - "b5eec1de-2f0b-46cb-bad4-eca86e4d51e3" + "c394ff5d-9bb2-4629-aa6d-5cf853543df4" ], "x-ms-correlation-request-id": [ - "b5eec1de-2f0b-46cb-bad4-eca86e4d51e3" + "c394ff5d-9bb2-4629-aa6d-5cf853543df4" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192213Z:b5eec1de-2f0b-46cb-bad4-eca86e4d51e3" + "WESTUS:20150730T165456Z:c394ff5d-9bb2-4629-aa6d-5cf853543df4" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:22:13 GMT" + "Thu, 30 Jul 2015 16:54:55 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "c93950a6-1d29-4737-b4c7-9b7647473699" + "ebd5dea1-97b7-4056-aea8-5b5448092656" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1175" + "1188" ], "x-ms-request-id": [ - "0d09eba6-ff02-4e22-9ec8-cdfbfa1a631c" + "d9ec7edc-57a0-4bdc-8a62-751033e8f769" ], "x-ms-correlation-request-id": [ - "0d09eba6-ff02-4e22-9ec8-cdfbfa1a631c" + "d9ec7edc-57a0-4bdc-8a62-751033e8f769" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192215Z:0d09eba6-ff02-4e22-9ec8-cdfbfa1a631c" + "WESTUS:20150730T165457Z:d9ec7edc-57a0-4bdc-8a62-751033e8f769" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:22:15 GMT" + "Thu, 30 Jul 2015 16:54:56 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,178 +337,154 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testName1\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "165" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "a0aba07e-eec0-4ba3-ba0c-227ac72a92ab" + "6b67508e-fbb0-44bf-9386-3abdb44844be" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:54:56 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:22:13 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { - "Last-Modified": [ - "Thu, 09 Jul 2015 19:22:14 GMT" + "Content-Type": [ + "application/json; odata=minimalmetadata" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "eb6d0878-2131-489b-94ea-b3eaba377a13" + "9d81c11e-f80d-474e-a2f4-5dc67dbd97cb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "6b67508e-fbb0-44bf-9386-3abdb44844be" + ], "DataServiceVersion": [ "3.0" ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testName1" - ], "Date": [ - "Thu, 09 Jul 2015 19:22:13 GMT" - ], - "ETag": [ - "0x8D28893B23ABC4F" - ], - "Location": [ - "https://pstests.batch.core.windows.net/workitems/testName1" + "Thu, 30 Jul 2015 16:54:56 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 201 + "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testName2\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "165" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "40ba9866-b8bb-4ff7-b0bd-6ffed8e65e7a" + "18abce89-e4fb-43ff-bb3a-3d51c3a2794a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:54:57 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:22:14 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", "ResponseHeaders": { - "Last-Modified": [ - "Thu, 09 Jul 2015 19:22:14 GMT" + "Content-Type": [ + "application/json; odata=minimalmetadata" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "9005ef78-e671-43b1-a618-2f03d0daba5c" + "11d59144-e7b6-41fe-a8da-e8a751008f6b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "18abce89-e4fb-43ff-bb3a-3d51c3a2794a" + ], "DataServiceVersion": [ "3.0" ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testName2" - ], "Date": [ - "Thu, 09 Jul 2015 19:22:14 GMT" - ], - "ETag": [ - "0x8D28893B2815B95" - ], - "Location": [ - "https://pstests.batch.core.windows.net/workitems/testName2" + "Thu, 30 Jul 2015 16:54:56 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 201 + "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/users?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei91c2Vycz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"thirdtestName\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", + "RequestBody": "{\r\n \"name\": \"createuser2\",\r\n \"isAdmin\": true,\r\n \"expiryTime\": \"2020-01-01T00:00:00\",\r\n \"password\": \"Password1234!\"\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "169" - ], - "User-Agent": [ - "WA-Batch/1.0" + "121" ], "client-request-id": [ - "ab5e4454-23e6-47cf-8afc-28dbdf8b7f93" + "8273992c-62a3-4116-989c-1351cc11a5a5" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:54:57 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:22:14 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { - "Last-Modified": [ - "Thu, 09 Jul 2015 19:22:15 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "15df7af5-6dee-4157-a471-058273a36592" + "c8b4c035-852b-4149-bd52-7378e08cd7bb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "8273992c-62a3-4116-989c-1351cc11a5a5" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/thirdtestName" + "https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/users/createuser2" ], "Date": [ - "Thu, 09 Jul 2015 19:22:14 GMT" - ], - "ETag": [ - "0x8D28893B2C871DD" + "Thu, 30 Jul 2015 16:54:58 GMT" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/thirdtestName" + "https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/users/createuser2" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -517,67 +493,81 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/users?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei91c2Vycz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"createuser2\",\r\n \"isAdmin\": true,\r\n \"expiryTime\": \"2020-01-01T00:00:00\",\r\n \"password\": \"Password1234!\"\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "121" ], "client-request-id": [ - "d54ae8c4-6f37-457e-994a-adbce6c7c1f2" + "8273992c-62a3-4116-989c-1351cc11a5a5" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:54:57 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:22:15 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems\",\r\n \"value\": [\r\n {\r\n \"name\": \"testName1\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testName1\",\r\n \"eTag\": \"0x8D28893B23ABC4F\",\r\n \"lastModified\": \"2015-07-09T19:22:14.4425039Z\",\r\n \"creationTime\": \"2015-07-09T19:22:14.4425039Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:22:14.4425039Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testName1/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"testName2\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testName2\",\r\n \"eTag\": \"0x8D28893B2815B95\",\r\n \"lastModified\": \"2015-07-09T19:22:14.9053333Z\",\r\n \"creationTime\": \"2015-07-09T19:22:14.9053333Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:22:14.9053333Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testName2/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"thirdtestName\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/thirdtestName\",\r\n \"eTag\": \"0x8D28893B2C871DD\",\r\n \"lastModified\": \"2015-07-09T19:22:15.3712093Z\",\r\n \"creationTime\": \"2015-07-09T19:22:15.3712093Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:22:15.3712093Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/thirdtestName/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "6ec50637-82f5-429c-be56-57d91850ec44" + "c8b4c035-852b-4149-bd52-7378e08cd7bb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "8273992c-62a3-4116-989c-1351cc11a5a5" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/users/createuser2" + ], "Date": [ - "Thu, 09 Jul 2015 19:22:16 GMT" + "Thu, 30 Jul 2015 16:54:58 GMT" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/users/createuser2" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/testName1?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TmFtZTE/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/users/createuser2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei91c2Vycy9jcmVhdGV1c2VyMj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "42cfd3bd-7340-43cd-92d6-6829167e8327" + "7f80fa0d-8a77-4c9e-988e-4d4dcbddccbe" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:54:58 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:22:15 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -586,40 +576,44 @@ "chunked" ], "request-id": [ - "e9c86bd8-4f5b-46fd-96db-9dea5479ab4f" + "038568ea-197a-4a05-a1c7-8acf1a8b5a17" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "7f80fa0d-8a77-4c9e-988e-4d4dcbddccbe" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:22:16 GMT" + "Thu, 30 Jul 2015 16:54:58 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 202 + "StatusCode": 200 }, { - "RequestUri": "/workitems/testName2?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TmFtZTI/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/users/createuser2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei91c2Vycy9jcmVhdGV1c2VyMj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "a8dca19e-1bf1-4d17-a4d5-4bbdc16b47ff" + "7f80fa0d-8a77-4c9e-988e-4d4dcbddccbe" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:54:58 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:22:16 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -628,40 +622,44 @@ "chunked" ], "request-id": [ - "d9d068cd-a1f2-4f03-aa81-f13d59a6f3a5" + "038568ea-197a-4a05-a1c7-8acf1a8b5a17" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "7f80fa0d-8a77-4c9e-988e-4d4dcbddccbe" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:22:16 GMT" + "Thu, 30 Jul 2015 16:54:58 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 202 + "StatusCode": 200 }, { - "RequestUri": "/workitems/thirdtestName?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90aGlyZHRlc3ROYW1lP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/users/createuser2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei91c2Vycy9jcmVhdGV1c2VyMj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "215d0902-0f1d-47aa-b22a-402a69b5d849" + "7f80fa0d-8a77-4c9e-988e-4d4dcbddccbe" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:54:58 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:22:16 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -670,22 +668,25 @@ "chunked" ], "request-id": [ - "abe91020-ad39-4c04-9b38-214e7b7b123f" + "038568ea-197a-4a05-a1c7-8acf1a8b5a17" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "7f80fa0d-8a77-4c9e-988e-4d4dcbddccbe" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:22:16 GMT" + "Thu, 30 Jul 2015 16:54:58 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 202 + "StatusCode": 200 } ], "Names": {}, diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestGetTaskByName.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeUserTests/TestDeleteComputeNodeUser.json similarity index 57% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestGetTaskByName.json rename to src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeUserTests/TestDeleteComputeNodeUser.json index b1d6a80f9334..50bfa5a07b5f 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestGetTaskByName.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ComputeNodeUserTests/TestDeleteComputeNodeUser.json @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "14990" ], "x-ms-request-id": [ - "613986f6-1ff7-4a98-9532-61a601a55b2f" + "173e0dd5-a99c-4c5d-89e9-7fae53842405" ], "x-ms-correlation-request-id": [ - "613986f6-1ff7-4a98-9532-61a601a55b2f" + "173e0dd5-a99c-4c5d-89e9-7fae53842405" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T202854Z:613986f6-1ff7-4a98-9532-61a601a55b2f" + "WESTUS:20150730T165519Z:173e0dd5-a99c-4c5d-89e9-7fae53842405" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:28:54 GMT" + "Thu, 30 Jul 2015 16:55:19 GMT" ] }, "StatusCode": 200 @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14989" ], "x-ms-request-id": [ - "b2ab30fd-89fa-45a8-8bf5-19263e4be877" + "f873aaa5-8079-4fb9-8980-51f4ee9970f4" ], "x-ms-correlation-request-id": [ - "b2ab30fd-89fa-45a8-8bf5-19263e4be877" + "f873aaa5-8079-4fb9-8980-51f4ee9970f4" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T202858Z:b2ab30fd-89fa-45a8-8bf5-19263e4be877" + "WESTUS:20150730T165522Z:f873aaa5-8079-4fb9-8980-51f4ee9970f4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:28:57 GMT" + "Thu, 30 Jul 2015 16:55:22 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 20:28:56 GMT" + "Thu, 30 Jul 2015 16:55:20 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "02b489a4-a242-4f3f-91db-e30825054e71" + "8f700100-d6be-44ac-94c4-0977ef9b6472" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "14958" ], "x-ms-request-id": [ - "8f4ccbb0-da80-463e-b74c-464a5b536620" + "794507e1-527e-4ac0-bb26-b3f5c63cee2d" ], "x-ms-correlation-request-id": [ - "8f4ccbb0-da80-463e-b74c-464a5b536620" + "794507e1-527e-4ac0-bb26-b3f5c63cee2d" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T202856Z:8f4ccbb0-da80-463e-b74c-464a5b536620" + "WESTUS:20150730T165521Z:794507e1-527e-4ac0-bb26-b3f5c63cee2d" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:28:55 GMT" + "Thu, 30 Jul 2015 16:55:20 GMT" ], "ETag": [ - "0x8D2889D03BD4DA0" + "0x8D298FFA78E4125" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 20:28:58 GMT" + "Thu, 30 Jul 2015 16:55:22 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "ca8912d9-52b8-4619-8076-17570b730405" + "6b983a94-bc4c-4473-b4e5-13e07c2107ef" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14957" ], "x-ms-request-id": [ - "d3722bb0-ae1e-4216-8863-bf036df82d19" + "36288e6f-e584-45ce-939f-04e5adb12f0b" ], "x-ms-correlation-request-id": [ - "d3722bb0-ae1e-4216-8863-bf036df82d19" + "36288e6f-e584-45ce-939f-04e5adb12f0b" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T202858Z:d3722bb0-ae1e-4216-8863-bf036df82d19" + "WESTUS:20150730T165522Z:36288e6f-e584-45ce-939f-04e5adb12f0b" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:28:57 GMT" + "Thu, 30 Jul 2015 16:55:21 GMT" ], "ETag": [ - "0x8D2889D04D0FC3E" + "0x8D298FFA88D1238" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "0d5399e2-9d9a-41c4-b03a-47cdaf03f8de" + "0ada669e-120e-422b-aed8-915b8baff448" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1192" ], "x-ms-request-id": [ - "597d9f41-3337-4c06-ae55-9f595f2b1f4e" + "7cb160da-85a0-462a-a6c3-c387a0067608" ], "x-ms-correlation-request-id": [ - "597d9f41-3337-4c06-ae55-9f595f2b1f4e" + "7cb160da-85a0-462a-a6c3-c387a0067608" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T202856Z:597d9f41-3337-4c06-ae55-9f595f2b1f4e" + "WESTUS:20150730T165521Z:7cb160da-85a0-462a-a6c3-c387a0067608" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:28:55 GMT" + "Thu, 30 Jul 2015 16:55:20 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "a756852f-7e9f-49c5-984d-19b7ff684e2d" + "548c3083-4a6d-4b6c-9b46-c6f377cc3408" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1191" ], "x-ms-request-id": [ - "c5c2ad28-ccab-4884-8d3c-1f0b5e5e0985" + "3f26d9b1-5d61-4456-b3a1-acaaa5792a60" ], "x-ms-correlation-request-id": [ - "c5c2ad28-ccab-4884-8d3c-1f0b5e5e0985" + "3f26d9b1-5d61-4456-b3a1-acaaa5792a60" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T202858Z:c5c2ad28-ccab-4884-8d3c-1f0b5e5e0985" + "WESTUS:20150730T165522Z:3f26d9b1-5d61-4456-b3a1-acaaa5792a60" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:28:57 GMT" + "Thu, 30 Jul 2015 16:55:22 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,169 +337,163 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"getTaskWI\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "165" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "79b62527-b869-42a6-a6c1-6a16d074f7eb" + "33a70250-f2ef-4234-86ff-dd5b355df4e0" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:55:21 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:28:56 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { - "Last-Modified": [ - "Thu, 09 Jul 2015 20:28:57 GMT" + "Content-Type": [ + "application/json; odata=minimalmetadata" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "8fa32635-15ab-41b7-bbaa-3a7cd867aca9" + "f4eac1fe-46de-47f5-8541-1117f46a7961" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "33a70250-f2ef-4234-86ff-dd5b355df4e0" + ], "DataServiceVersion": [ "3.0" ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/getTaskWI" - ], "Date": [ - "Thu, 09 Jul 2015 20:28:57 GMT" - ], - "ETag": [ - "0x8D2889D0418B8EC" - ], - "Location": [ - "https://pstests.batch.core.windows.net/workitems/getTaskWI" + "Thu, 30 Jul 2015 16:55:21 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 201 + "StatusCode": 200 }, { - "RequestUri": "/workitems/getTaskWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9nZXRUYXNrV0k/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/users?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei91c2Vycz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"deleteuser\",\r\n \"isAdmin\": false,\r\n \"expiryTime\": \"0001-01-01T00:00:00\",\r\n \"password\": \"Password1234!\"\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "121" ], "client-request-id": [ - "dd6de16c-7cd1-4181-aa06-79c49dcbbe28" + "9f41c5e6-86be-4135-8d74-6444c4641cc4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:55:21 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:28:56 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"getTaskWI\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/getTaskWI\",\r\n \"eTag\": \"0x8D2889D0418B8EC\",\r\n \"lastModified\": \"2015-07-09T20:28:57.2633324Z\",\r\n \"creationTime\": \"2015-07-09T20:28:57.2633324Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T20:28:57.2633324Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/getTaskWI/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 20:28:57 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "40abfe4d-72b1-4b13-bed4-554a9d8020be" + "913d4997-8d67-4d23-be80-c6f545d21208" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "9f41c5e6-86be-4135-8d74-6444c4641cc4" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/users/deleteuser" + ], "Date": [ - "Thu, 09 Jul 2015 20:28:57 GMT" + "Thu, 30 Jul 2015 16:55:21 GMT" ], - "ETag": [ - "0x8D2889D0418B8EC" + "Location": [ + "https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/users/deleteuser" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/getTaskWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9nZXRUYXNrV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/users?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei91c2Vycz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestBody": "{\r\n \"name\": \"deleteuser\",\r\n \"isAdmin\": false,\r\n \"expiryTime\": \"0001-01-01T00:00:00\",\r\n \"password\": \"Password1234!\"\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "149" - ], - "User-Agent": [ - "WA-Batch/1.0" + "121" ], "client-request-id": [ - "c17d9e06-77bf-4f6b-b0f8-42a242de7b53" + "9f41c5e6-86be-4135-8d74-6444c4641cc4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:55:21 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:28:57 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { - "Last-Modified": [ - "Thu, 09 Jul 2015 20:28:57 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "418237e6-526c-490d-b34c-b4c25b01063b" + "913d4997-8d67-4d23-be80-c6f545d21208" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "9f41c5e6-86be-4135-8d74-6444c4641cc4" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/getTaskWI/jobs/job-0000000001/tasks/testTask" + "https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/users/deleteuser" ], "Date": [ - "Thu, 09 Jul 2015 20:28:57 GMT" - ], - "ETag": [ - "0x8D2889D046DD090" + "Thu, 30 Jul 2015 16:55:21 GMT" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/getTaskWI/jobs/job-0000000001/tasks/testTask" + "https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/users/deleteuser" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -508,49 +502,44 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/getTaskWI/jobs/job-0000000001/tasks/testTask?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9nZXRUYXNrV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcy90ZXN0VGFzaz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/users/deleteuser?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei91c2Vycy9kZWxldGV1c2VyP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "f1fb5292-1bb4-409f-b1dc-6316d8a5b8b5" + "acec1ff8-8490-49ec-aefc-593faa93200b" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:55:22 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:28:58 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/getTaskWI/jobs/job-0000000001/tasks/testTask\",\r\n \"eTag\": \"0x8D2889D046DD090\",\r\n \"creationTime\": \"2015-07-09T20:28:57.8209936Z\",\r\n \"lastModified\": \"2015-07-09T20:28:57.8209936Z\",\r\n \"state\": \"running\",\r\n \"stateTransitionTime\": \"2015-07-09T20:28:58.470558Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-09T20:28:57.8209936Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T20:28:58.470558Z\",\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"tvmInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmUrl\": \"https://pstests.batch.core.windows.net/pools/testpool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"poolName\": \"testpool\",\r\n \"tvmName\": \"tvm-4155946844_1-20150709t190321z\"\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 20:28:57 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "4168e96b-3051-42e9-86bd-e48ed8345d30" + "95478d62-e9cd-4ddf-a56e-bdf8d7cb4053" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "acec1ff8-8490-49ec-aefc-593faa93200b" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 20:28:58 GMT" - ], - "ETag": [ - "0x8D2889D046DD090" + "Thu, 30 Jul 2015 16:55:23 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -559,97 +548,102 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/getTaskWI/jobs/job-0000000001/tasks/testTask?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9nZXRUYXNrV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcy90ZXN0VGFzaz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/users/deleteuser?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei91c2Vycy9kZWxldGV1c2VyP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "2ac12349-d465-47bb-8aeb-40e6361b5f3c" + "e3a56d74-f8aa-43b3-a935-99035431ef8c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:55:23 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:28:58 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/getTaskWI/jobs/job-0000000001/tasks/testTask\",\r\n \"eTag\": \"0x8D2889D046DD090\",\r\n \"creationTime\": \"2015-07-09T20:28:57.8209936Z\",\r\n \"lastModified\": \"2015-07-09T20:28:57.8209936Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-09T20:28:58.5647702Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-09T20:28:58.470558Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T20:28:58.470558Z\",\r\n \"endTime\": \"2015-07-09T20:28:58.5647702Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"tvmInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmUrl\": \"https://pstests.batch.core.windows.net/pools/testpool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"poolName\": \"testpool\",\r\n \"tvmName\": \"tvm-4155946844_1-20150709t190321z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\r\n \"code\": \"NodeUserNotFound\",\r\n \"message\": {\r\n \"lang\": \"en-US\",\r\n \"value\": \"The specified node user does not exist.\\nRequestId:45eb86ec-a725-474b-8875-52890685a646\\nTime:2015-07-30T16:55:23.5046973Z\"\r\n }\r\n}", "ResponseHeaders": { + "Content-Length": [ + "337" + ], "Content-Type": [ "application/json; odata=minimalmetadata" ], - "Last-Modified": [ - "Thu, 09 Jul 2015 20:28:57 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], "request-id": [ - "2d39f6f6-d041-48b6-8577-fd08113464a8" + "45eb86ec-a725-474b-8875-52890685a646" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "e3a56d74-f8aa-43b3-a935-99035431ef8c" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 20:28:58 GMT" - ], - "ETag": [ - "0x8D2889D046DD090" + "Thu, 30 Jul 2015 16:55:23 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 404 }, { - "RequestUri": "/workitems/getTaskWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9nZXRUYXNrV0k/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/users/deleteuser?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei91c2Vycy9kZWxldGV1c2VyP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "b7c8b546-ebda-4c74-81d1-203795364321" + "e3a56d74-f8aa-43b3-a935-99035431ef8c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:55:23 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:28:58 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\r\n \"code\": \"NodeUserNotFound\",\r\n \"message\": {\r\n \"lang\": \"en-US\",\r\n \"value\": \"The specified node user does not exist.\\nRequestId:45eb86ec-a725-474b-8875-52890685a646\\nTime:2015-07-30T16:55:23.5046973Z\"\r\n }\r\n}", "ResponseHeaders": { - "Transfer-Encoding": [ - "chunked" + "Content-Length": [ + "337" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata" ], "request-id": [ - "23d288cd-94bb-44ec-b7ae-fc2512147428" + "45eb86ec-a725-474b-8875-52890685a646" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "e3a56d74-f8aa-43b3-a935-99035431ef8c" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 20:28:59 GMT" + "Thu, 30 Jul 2015 16:55:23 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 202 + "StatusCode": 404 } ], "Names": {}, diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileByComputeNodeByName.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileByComputeNodeByName.json new file mode 100644 index 000000000000..65c177e1b76a --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileByComputeNodeByName.json @@ -0,0 +1,576 @@ +{ + "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/cmdletexample\",\r\n \"name\": \"cmdletexample\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "475" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-request-id": [ + "3775fb77-8bff-4a42-9203-9f31a579324e" + ], + "x-ms-correlation-request-id": [ + "3775fb77-8bff-4a42-9203-9f31a579324e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165035Z:3775fb77-8bff-4a42-9203-9f31a579324e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:35 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/cmdletexample\",\r\n \"name\": \"cmdletexample\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "475" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-request-id": [ + "eb653e0c-395b-4052-a16f-5f923cccfbf9" + ], + "x-ms-correlation-request-id": [ + "eb653e0c-395b-4052-a16f-5f923cccfbf9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165037Z:eb653e0c-395b-4052-a16f-5f923cccfbf9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:37 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:50:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "480a78ca-2efa-4bf0-9b2c-9c82efca3c05" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-request-id": [ + "83038d2d-b00c-41bc-9021-461046f84fc6" + ], + "x-ms-correlation-request-id": [ + "83038d2d-b00c-41bc-9021-461046f84fc6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165036Z:83038d2d-b00c-41bc-9021-461046f84fc6" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:36 GMT" + ], + "ETag": [ + "0x8D298FEFE40CC57" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:50:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "48db6524-9804-4c71-9f7b-1ae3e4e3e6d9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14975" + ], + "x-ms-request-id": [ + "a53aa677-f182-4ba2-9ecf-cb85b4a03d89" + ], + "x-ms-correlation-request-id": [ + "a53aa677-f182-4ba2-9ecf-cb85b4a03d89" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165037Z:a53aa677-f182-4ba2-9ecf-cb85b4a03d89" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:37 GMT" + ], + "ETag": [ + "0x8D298FEFEC388AB" + ], + "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": [ + "88f771eb-ba31-46c6-99ca-4c07259d9825" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "c56a6088-f357-4cd6-9d5f-3ddc325f3a29" + ], + "x-ms-correlation-request-id": [ + "c56a6088-f357-4cd6-9d5f-3ddc325f3a29" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165037Z:c56a6088-f357-4cd6-9d5f-3ddc325f3a29" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:36 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": [ + "b673c929-c2df-4883-8ccd-c2983de09ac6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "2def25c9-aabc-4740-8edd-94eaba7094ac" + ], + "x-ms-correlation-request-id": [ + "2def25c9-aabc-4740-8edd-94eaba7094ac" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165037Z:2def25c9-aabc-4740-8edd-94eaba7094ac" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:37 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8224d472-0ce9-4c3a-afa8-f6499d26cd2b" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:37 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 1,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "1d9288ea-1498-433a-8d0e-5b39dfa59d1b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8224d472-0ce9-4c3a-afa8-f6499d26cd2b" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:37 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup%5Cstdout.txt?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcy9zdGFydHVwJTVDc3Rkb3V0LnR4dD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "HEAD", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "5d56b42a-f3ca-4b8e-8c16-e40000ec57e3" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:37 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": [ + "7" + ], + "Content-Type": [ + "application/octet-stream" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:42:33 GMT" + ], + "request-id": [ + "2ed7ea3c-7fdd-4579-a13a-189626f32592" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "5d56b42a-f3ca-4b8e-8c16-e40000ec57e3" + ], + "DataServiceVersion": [ + "3.0" + ], + "ocp-creation-time": [ + "Thu, 30 Jul 2015 16:42:32 GMT" + ], + "ocp-batch-file-isdirectory": [ + "False" + ], + "ocp-batch-file-url": [ + "https%3A%2F%2Fpstests.eastus.batch.azure.com%2Fpools%2FtestPool%2Fnodes%2Ftvm-4155946844_1-20150730t163817z%2Ffiles%2Fstartup%2Fstdout.txt" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:38 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup%5Cstdout.txt?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcy9zdGFydHVwJTVDc3Rkb3V0LnR4dD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "HEAD", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "31d412dd-5172-4a3e-9121-a6550b980694" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:38 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": [ + "7" + ], + "Content-Type": [ + "application/octet-stream" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:42:33 GMT" + ], + "request-id": [ + "222426d9-e3b1-4c17-aec8-01ccf72559c7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "31d412dd-5172-4a3e-9121-a6550b980694" + ], + "DataServiceVersion": [ + "3.0" + ], + "ocp-creation-time": [ + "Thu, 30 Jul 2015 16:42:32 GMT" + ], + "ocp-batch-file-isdirectory": [ + "False" + ], + "ocp-batch-file-url": [ + "https%3A%2F%2Fpstests.eastus.batch.azure.com%2Fpools%2FtestPool%2Fnodes%2Ftvm-4155946844_1-20150730t163817z%2Ffiles%2Fstartup%2Fstdout.txt" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:38 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup%5Cstdout.txt?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcy9zdGFydHVwJTVDc3Rkb3V0LnR4dD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "HEAD", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "31d412dd-5172-4a3e-9121-a6550b980694" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:38 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": [ + "7" + ], + "Content-Type": [ + "application/octet-stream" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:42:33 GMT" + ], + "request-id": [ + "222426d9-e3b1-4c17-aec8-01ccf72559c7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "31d412dd-5172-4a3e-9121-a6550b980694" + ], + "DataServiceVersion": [ + "3.0" + ], + "ocp-creation-time": [ + "Thu, 30 Jul 2015 16:42:32 GMT" + ], + "ocp-batch-file-isdirectory": [ + "False" + ], + "ocp-batch-file-url": [ + "https%3A%2F%2Fpstests.eastus.batch.azure.com%2Fpools%2FtestPool%2Fnodes%2Ftvm-4155946844_1-20150730t163817z%2Ffiles%2Fstartup%2Fstdout.txt" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:38 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileByTaskByName.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileByTaskByName.json new file mode 100644 index 000000000000..726115cdf8eb --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileByTaskByName.json @@ -0,0 +1,1240 @@ +{ + "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/cmdletexample\",\r\n \"name\": \"cmdletexample\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "475" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-request-id": [ + "73ecaa8c-3ab4-4daa-810a-707f29a0f558" + ], + "x-ms-correlation-request-id": [ + "73ecaa8c-3ab4-4daa-810a-707f29a0f558" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165007Z:73ecaa8c-3ab4-4daa-810a-707f29a0f558" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:07 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/cmdletexample\",\r\n \"name\": \"cmdletexample\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "475" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-request-id": [ + "d5060bd8-70fc-428b-beae-68df6ecbfbcb" + ], + "x-ms-correlation-request-id": [ + "d5060bd8-70fc-428b-beae-68df6ecbfbcb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165012Z:d5060bd8-70fc-428b-beae-68df6ecbfbcb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:12 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:50:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "59688235-4684-44de-9efb-a91547403717" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-request-id": [ + "ad810029-cb97-45a3-b619-5874965d303f" + ], + "x-ms-correlation-request-id": [ + "ad810029-cb97-45a3-b619-5874965d303f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165008Z:ad810029-cb97-45a3-b619-5874965d303f" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:08 GMT" + ], + "ETag": [ + "0x8D298FEED7DE5A2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:50:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "28762a38-0cc3-4f71-a1ae-67ae29f06e80" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-request-id": [ + "19d0b004-283a-4187-80dc-7babc445e4c8" + ], + "x-ms-correlation-request-id": [ + "19d0b004-283a-4187-80dc-7babc445e4c8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165012Z:19d0b004-283a-4187-80dc-7babc445e4c8" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:11 GMT" + ], + "ETag": [ + "0x8D298FEEFB233B5" + ], + "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": [ + "6559f5ad-cec4-45ee-86f4-f2d822736c47" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-request-id": [ + "ffd8379c-c264-418a-810d-2bb1dcd07bb3" + ], + "x-ms-correlation-request-id": [ + "ffd8379c-c264-418a-810d-2bb1dcd07bb3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165009Z:ffd8379c-c264-418a-810d-2bb1dcd07bb3" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:08 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": [ + "261f1800-3a0b-4da4-90b1-aa2e2ddac1d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-request-id": [ + "3efcaab2-025c-48bc-b92d-83c3b0baae87" + ], + "x-ms-correlation-request-id": [ + "3efcaab2-025c-48bc-b92d-83c3b0baae87" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165012Z:3efcaab2-025c-48bc-b92d-83c3b0baae87" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:11 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\": \"testGetNodeFileByTaskJob\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "107" + ], + "client-request-id": [ + "e9b7520d-652a-45db-9a8b-ca3fa4d2917d" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:08 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 16:50:09 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "82b9c285-645d-424e-a226-523af39c489f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e9b7520d-652a-45db-9a8b-ca3fa4d2917d" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:09 GMT" + ], + "ETag": [ + "0x8D298FEEE13EA37" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/testGetNodeFileByTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEdldE5vZGVGaWxlQnlUYXNrSm9iL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "83" + ], + "client-request-id": [ + "d577cf43-6edf-4669-923a-5afbd4b53b88" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:09 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 16:50:09 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5e7a47b4-5fc2-42c0-99e0-bfd43de4e841" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d577cf43-6edf-4669-923a-5afbd4b53b88" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testGetNodeFileByTaskJob/tasks/testTask" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:09 GMT" + ], + "ETag": [ + "0x8D298FEEE02B9D3" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/testGetNodeFileByTaskJob/tasks/testTask" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/testGetNodeFileByTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEdldE5vZGVGaWxlQnlUYXNrSm9iL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "83" + ], + "client-request-id": [ + "d577cf43-6edf-4669-923a-5afbd4b53b88" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:09 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 16:50:09 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5e7a47b4-5fc2-42c0-99e0-bfd43de4e841" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d577cf43-6edf-4669-923a-5afbd4b53b88" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testGetNodeFileByTaskJob/tasks/testTask" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:09 GMT" + ], + "ETag": [ + "0x8D298FEEE02B9D3" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/testGetNodeFileByTaskJob/tasks/testTask" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/testGetNodeFileByTaskJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEdldE5vZGVGaWxlQnlUYXNrSm9iL3Rhc2tzL3Rlc3RUYXNrP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "a3cb9fbd-e92c-43e2-be0d-2cb9f9deaa4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:09 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#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testGetNodeFileByTaskJob/tasks/testTask\",\r\n \"eTag\": \"0x8D298FEEE02B9D3\",\r\n \"creationTime\": \"2015-07-30T16:50:09.4932435Z\",\r\n \"lastModified\": \"2015-07-30T16:50:09.4932435Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:50:09.4932435Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:50:09 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "982d2d34-5fd4-4c54-bcd8-885123d90434" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "a3cb9fbd-e92c-43e2-be0d-2cb9f9deaa4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:09 GMT" + ], + "ETag": [ + "0x8D298FEEE02B9D3" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testGetNodeFileByTaskJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEdldE5vZGVGaWxlQnlUYXNrSm9iL3Rhc2tzL3Rlc3RUYXNrP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "a3cb9fbd-e92c-43e2-be0d-2cb9f9deaa4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:09 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#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testGetNodeFileByTaskJob/tasks/testTask\",\r\n \"eTag\": \"0x8D298FEEE02B9D3\",\r\n \"creationTime\": \"2015-07-30T16:50:09.4932435Z\",\r\n \"lastModified\": \"2015-07-30T16:50:09.4932435Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:50:09.4932435Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:50:09 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "982d2d34-5fd4-4c54-bcd8-885123d90434" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "a3cb9fbd-e92c-43e2-be0d-2cb9f9deaa4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:09 GMT" + ], + "ETag": [ + "0x8D298FEEE02B9D3" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testGetNodeFileByTaskJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEdldE5vZGVGaWxlQnlUYXNrSm9iL3Rhc2tzL3Rlc3RUYXNrP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "a3cb9fbd-e92c-43e2-be0d-2cb9f9deaa4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:09 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#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testGetNodeFileByTaskJob/tasks/testTask\",\r\n \"eTag\": \"0x8D298FEEE02B9D3\",\r\n \"creationTime\": \"2015-07-30T16:50:09.4932435Z\",\r\n \"lastModified\": \"2015-07-30T16:50:09.4932435Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:50:09.4932435Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:50:09 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "982d2d34-5fd4-4c54-bcd8-885123d90434" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "a3cb9fbd-e92c-43e2-be0d-2cb9f9deaa4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:09 GMT" + ], + "ETag": [ + "0x8D298FEEE02B9D3" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testGetNodeFileByTaskJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEdldE5vZGVGaWxlQnlUYXNrSm9iL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f069abda-fcf6-485b-a497-75c984b5f891" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:09 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "efaf2224-2985-4ac4-9d0e-db983e5094b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f069abda-fcf6-485b-a497-75c984b5f891" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:09 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testGetNodeFileByTaskJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEdldE5vZGVGaWxlQnlUYXNrSm9iL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f069abda-fcf6-485b-a497-75c984b5f891" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:09 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "efaf2224-2985-4ac4-9d0e-db983e5094b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f069abda-fcf6-485b-a497-75c984b5f891" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:09 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testGetNodeFileByTaskJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEdldE5vZGVGaWxlQnlUYXNrSm9iL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f069abda-fcf6-485b-a497-75c984b5f891" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:09 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "efaf2224-2985-4ac4-9d0e-db983e5094b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f069abda-fcf6-485b-a497-75c984b5f891" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:09 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testGetNodeFileByTaskJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEdldE5vZGVGaWxlQnlUYXNrSm9iL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e304e6ba-8a9e-4aba-903c-51ff08ee8ca9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:12 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9606a80e-5c2a-470e-8b0e-a11fa6a98e55" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e304e6ba-8a9e-4aba-903c-51ff08ee8ca9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:11 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testGetNodeFileByTaskJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEdldE5vZGVGaWxlQnlUYXNrSm9iL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e304e6ba-8a9e-4aba-903c-51ff08ee8ca9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:12 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9606a80e-5c2a-470e-8b0e-a11fa6a98e55" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e304e6ba-8a9e-4aba-903c-51ff08ee8ca9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:11 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testGetNodeFileByTaskJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEdldE5vZGVGaWxlQnlUYXNrSm9iL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e304e6ba-8a9e-4aba-903c-51ff08ee8ca9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:12 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9606a80e-5c2a-470e-8b0e-a11fa6a98e55" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e304e6ba-8a9e-4aba-903c-51ff08ee8ca9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:11 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testGetNodeFileByTaskJob/tasks/testTask/files/stdout.txt?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEdldE5vZGVGaWxlQnlUYXNrSm9iL3Rhc2tzL3Rlc3RUYXNrL2ZpbGVzL3N0ZG91dC50eHQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "HEAD", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "22e5acfb-099b-40cf-9d8b-a5f4e2818723" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:12 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": [ + "416" + ], + "Content-Type": [ + "application/octet-stream" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:50:10 GMT" + ], + "request-id": [ + "150466ec-fdba-4223-8453-8be2e4f56570" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "22e5acfb-099b-40cf-9d8b-a5f4e2818723" + ], + "DataServiceVersion": [ + "3.0" + ], + "ocp-creation-time": [ + "Thu, 30 Jul 2015 16:50:10 GMT" + ], + "ocp-batch-file-isdirectory": [ + "False" + ], + "ocp-batch-file-url": [ + "https%3A%2F%2Fpstests.eastus.batch.azure.com%2Fjobs%2FtestGetNodeFileByTaskJob%2Ftasks%2FtestTask%2Ffiles%2Fstdout.txt" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:13 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testGetNodeFileByTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEdldE5vZGVGaWxlQnlUYXNrSm9iP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c06c3db1-3d4d-426a-be33-b74aadadeb19" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:13 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": [ + "85ddb845-6e3e-412c-98b7-54dc3ee1845a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c06c3db1-3d4d-426a-be33-b74aadadeb19" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:13 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testGetNodeFileByTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEdldE5vZGVGaWxlQnlUYXNrSm9iP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c06c3db1-3d4d-426a-be33-b74aadadeb19" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:13 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": [ + "85ddb845-6e3e-412c-98b7-54dc3ee1845a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c06c3db1-3d4d-426a-be33-b74aadadeb19" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:13 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testGetNodeFileByTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEdldE5vZGVGaWxlQnlUYXNrSm9iP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c06c3db1-3d4d-426a-be33-b74aadadeb19" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:13 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": [ + "85ddb845-6e3e-412c-98b7-54dc3ee1845a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c06c3db1-3d4d-426a-be33-b74aadadeb19" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:13 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testGetNodeFileByTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEdldE5vZGVGaWxlQnlUYXNrSm9iP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c06c3db1-3d4d-426a-be33-b74aadadeb19" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:13 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": [ + "85ddb845-6e3e-412c-98b7-54dc3ee1845a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c06c3db1-3d4d-426a-be33-b74aadadeb19" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:13 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/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByComputeNodeByName.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByComputeNodeByName.json new file mode 100644 index 000000000000..6f0659205baa --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByComputeNodeByName.json @@ -0,0 +1,1003 @@ +{ + "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/cmdletexample\",\r\n \"name\": \"cmdletexample\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "475" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-request-id": [ + "1939d460-0a17-4114-905c-9a87f8885961" + ], + "x-ms-correlation-request-id": [ + "1939d460-0a17-4114-905c-9a87f8885961" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T164904Z:1939d460-0a17-4114-905c-9a87f8885961" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:49:03 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/cmdletexample\",\r\n \"name\": \"cmdletexample\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "475" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-request-id": [ + "0d5647cb-8a46-4fad-8b99-392a6b88022d" + ], + "x-ms-correlation-request-id": [ + "0d5647cb-8a46-4fad-8b99-392a6b88022d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T164905Z:0d5647cb-8a46-4fad-8b99-392a6b88022d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:49:04 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:49:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "557ca2a8-64fd-4ff8-a144-7e3d38204fd3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "0d487c2d-58cc-4dac-921d-bccfe6a82414" + ], + "x-ms-correlation-request-id": [ + "0d487c2d-58cc-4dac-921d-bccfe6a82414" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T164905Z:0d487c2d-58cc-4dac-921d-bccfe6a82414" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:49:04 GMT" + ], + "ETag": [ + "0x8D298FEC78E32A8" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:49:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "8be2783a-81b5-4572-adf0-3de81a084b98" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-request-id": [ + "5279640e-f2b2-442c-8efe-0fda0f449548" + ], + "x-ms-correlation-request-id": [ + "5279640e-f2b2-442c-8efe-0fda0f449548" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T164906Z:5279640e-f2b2-442c-8efe-0fda0f449548" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:49:05 GMT" + ], + "ETag": [ + "0x8D298FEC81109C0" + ], + "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": [ + "3afc72e5-c81f-4aeb-9263-86d9207c07eb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "9301ad77-40dc-4e11-b0ea-4c9e7188f320" + ], + "x-ms-correlation-request-id": [ + "9301ad77-40dc-4e11-b0ea-4c9e7188f320" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T164905Z:9301ad77-40dc-4e11-b0ea-4c9e7188f320" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:49:04 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": [ + "86b3c1f5-df2b-4247-88f2-9b58f49a08fe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-request-id": [ + "688473b6-1bb6-4b70-84e4-21658e5449d6" + ], + "x-ms-correlation-request-id": [ + "688473b6-1bb6-4b70-84e4-21658e5449d6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T164906Z:688473b6-1bb6-4b70-84e4-21658e5449d6" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:49:05 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "91425ae5-46ef-468c-aeb4-447f708d53f8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:49:05 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "8498f7f8-c56a-47df-852b-d379752eb206" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "91425ae5-46ef-468c-aeb4-447f708d53f8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:49:05 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup%5Cstdout.txt?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcy9zdGFydHVwJTVDc3Rkb3V0LnR4dD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "HEAD", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ab4a58f3-6fd0-4708-8822-ae8350d4e1bf" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:49:06 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": [ + "7" + ], + "Content-Type": [ + "application/octet-stream" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:42:33 GMT" + ], + "request-id": [ + "89681dcc-a027-430c-8081-ff7c463e7f4a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ab4a58f3-6fd0-4708-8822-ae8350d4e1bf" + ], + "DataServiceVersion": [ + "3.0" + ], + "ocp-creation-time": [ + "Thu, 30 Jul 2015 16:42:32 GMT" + ], + "ocp-batch-file-isdirectory": [ + "False" + ], + "ocp-batch-file-url": [ + "https%3A%2F%2Fpstests.eastus.batch.azure.com%2Fpools%2FtestPool%2Fnodes%2Ftvm-4155946844_1-20150730t163817z%2Ffiles%2Fstartup%2Fstdout.txt" + ], + "Date": [ + "Thu, 30 Jul 2015 16:49:06 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup%5Cstdout.txt?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcy9zdGFydHVwJTVDc3Rkb3V0LnR4dD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "HEAD", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "39f84c0e-6a5e-4059-834c-96f71573c24c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:49:06 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": [ + "7" + ], + "Content-Type": [ + "application/octet-stream" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:42:33 GMT" + ], + "request-id": [ + "b20e6e87-ef50-4679-957d-c17ebb89c9d2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "39f84c0e-6a5e-4059-834c-96f71573c24c" + ], + "DataServiceVersion": [ + "3.0" + ], + "ocp-creation-time": [ + "Thu, 30 Jul 2015 16:42:32 GMT" + ], + "ocp-batch-file-isdirectory": [ + "False" + ], + "ocp-batch-file-url": [ + "https%3A%2F%2Fpstests.eastus.batch.azure.com%2Fpools%2FtestPool%2Fnodes%2Ftvm-4155946844_1-20150730t163817z%2Ffiles%2Fstartup%2Fstdout.txt" + ], + "Date": [ + "Thu, 30 Jul 2015 16:49:06 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup%5Cstdout.txt?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcy9zdGFydHVwJTVDc3Rkb3V0LnR4dD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "HEAD", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "39f84c0e-6a5e-4059-834c-96f71573c24c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:49:06 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": [ + "7" + ], + "Content-Type": [ + "application/octet-stream" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:42:33 GMT" + ], + "request-id": [ + "b20e6e87-ef50-4679-957d-c17ebb89c9d2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "39f84c0e-6a5e-4059-834c-96f71573c24c" + ], + "DataServiceVersion": [ + "3.0" + ], + "ocp-creation-time": [ + "Thu, 30 Jul 2015 16:42:32 GMT" + ], + "ocp-batch-file-isdirectory": [ + "False" + ], + "ocp-batch-file-url": [ + "https%3A%2F%2Fpstests.eastus.batch.azure.com%2Fpools%2FtestPool%2Fnodes%2Ftvm-4155946844_1-20150730t163817z%2Ffiles%2Fstartup%2Fstdout.txt" + ], + "Date": [ + "Thu, 30 Jul 2015 16:49:06 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup%5Cstdout.txt?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcy9zdGFydHVwJTVDc3Rkb3V0LnR4dD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "HEAD", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "39f84c0e-6a5e-4059-834c-96f71573c24c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:49:06 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": [ + "7" + ], + "Content-Type": [ + "application/octet-stream" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:42:33 GMT" + ], + "request-id": [ + "b20e6e87-ef50-4679-957d-c17ebb89c9d2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "39f84c0e-6a5e-4059-834c-96f71573c24c" + ], + "DataServiceVersion": [ + "3.0" + ], + "ocp-creation-time": [ + "Thu, 30 Jul 2015 16:42:32 GMT" + ], + "ocp-batch-file-isdirectory": [ + "False" + ], + "ocp-batch-file-url": [ + "https%3A%2F%2Fpstests.eastus.batch.azure.com%2Fpools%2FtestPool%2Fnodes%2Ftvm-4155946844_1-20150730t163817z%2Ffiles%2Fstartup%2Fstdout.txt" + ], + "Date": [ + "Thu, 30 Jul 2015 16:49:06 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup%5Cstdout.txt?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcy9zdGFydHVwJTVDc3Rkb3V0LnR4dD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "69c3bbee-0b31-4a61-a7fe-d586a84e3183" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:49:06 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "hello\r\n", + "ResponseHeaders": { + "Content-Type": [ + "application/octet-stream" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:42:33 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4e1cf6f5-0516-42b3-a337-0b457804d362" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "69c3bbee-0b31-4a61-a7fe-d586a84e3183" + ], + "DataServiceVersion": [ + "3.0" + ], + "ocp-creation-time": [ + "Thu, 30 Jul 2015 16:42:32 GMT" + ], + "ocp-batch-file-isdirectory": [ + "False" + ], + "ocp-batch-file-url": [ + "https%3A%2F%2Fpstests.eastus.batch.azure.com%2Fpools%2FtestPool%2Fnodes%2Ftvm-4155946844_1-20150730t163817z%2Ffiles%2Fstartup%2Fstdout.txt" + ], + "Date": [ + "Thu, 30 Jul 2015 16:49:06 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup%5Cstdout.txt?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcy9zdGFydHVwJTVDc3Rkb3V0LnR4dD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "69c3bbee-0b31-4a61-a7fe-d586a84e3183" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:49:06 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "hello\r\n", + "ResponseHeaders": { + "Content-Type": [ + "application/octet-stream" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:42:33 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4e1cf6f5-0516-42b3-a337-0b457804d362" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "69c3bbee-0b31-4a61-a7fe-d586a84e3183" + ], + "DataServiceVersion": [ + "3.0" + ], + "ocp-creation-time": [ + "Thu, 30 Jul 2015 16:42:32 GMT" + ], + "ocp-batch-file-isdirectory": [ + "False" + ], + "ocp-batch-file-url": [ + "https%3A%2F%2Fpstests.eastus.batch.azure.com%2Fpools%2FtestPool%2Fnodes%2Ftvm-4155946844_1-20150730t163817z%2Ffiles%2Fstartup%2Fstdout.txt" + ], + "Date": [ + "Thu, 30 Jul 2015 16:49:06 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup%5Cstdout.txt?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcy9zdGFydHVwJTVDc3Rkb3V0LnR4dD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ec5bc9e1-2640-4fb0-a29f-460b969aadc2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:49:07 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "hello\r\n", + "ResponseHeaders": { + "Content-Type": [ + "application/octet-stream" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:42:33 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "328e4afa-a204-4a77-9795-3cab0ff429ca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ec5bc9e1-2640-4fb0-a29f-460b969aadc2" + ], + "DataServiceVersion": [ + "3.0" + ], + "ocp-creation-time": [ + "Thu, 30 Jul 2015 16:42:32 GMT" + ], + "ocp-batch-file-isdirectory": [ + "False" + ], + "ocp-batch-file-url": [ + "https%3A%2F%2Fpstests.eastus.batch.azure.com%2Fpools%2FtestPool%2Fnodes%2Ftvm-4155946844_1-20150730t163817z%2Ffiles%2Fstartup%2Fstdout.txt" + ], + "Date": [ + "Thu, 30 Jul 2015 16:49:06 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup%5Cstdout.txt?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcy9zdGFydHVwJTVDc3Rkb3V0LnR4dD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ec5bc9e1-2640-4fb0-a29f-460b969aadc2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:49:07 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "hello\r\n", + "ResponseHeaders": { + "Content-Type": [ + "application/octet-stream" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:42:33 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "328e4afa-a204-4a77-9795-3cab0ff429ca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ec5bc9e1-2640-4fb0-a29f-460b969aadc2" + ], + "DataServiceVersion": [ + "3.0" + ], + "ocp-creation-time": [ + "Thu, 30 Jul 2015 16:42:32 GMT" + ], + "ocp-batch-file-isdirectory": [ + "False" + ], + "ocp-batch-file-url": [ + "https%3A%2F%2Fpstests.eastus.batch.azure.com%2Fpools%2FtestPool%2Fnodes%2Ftvm-4155946844_1-20150730t163817z%2Ffiles%2Fstartup%2Fstdout.txt" + ], + "Date": [ + "Thu, 30 Jul 2015 16:49:06 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup%5Cstdout.txt?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcy9zdGFydHVwJTVDc3Rkb3V0LnR4dD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ec5bc9e1-2640-4fb0-a29f-460b969aadc2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:49:07 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "hello\r\n", + "ResponseHeaders": { + "Content-Type": [ + "application/octet-stream" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:42:33 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "328e4afa-a204-4a77-9795-3cab0ff429ca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ec5bc9e1-2640-4fb0-a29f-460b969aadc2" + ], + "DataServiceVersion": [ + "3.0" + ], + "ocp-creation-time": [ + "Thu, 30 Jul 2015 16:42:32 GMT" + ], + "ocp-batch-file-isdirectory": [ + "False" + ], + "ocp-batch-file-url": [ + "https%3A%2F%2Fpstests.eastus.batch.azure.com%2Fpools%2FtestPool%2Fnodes%2Ftvm-4155946844_1-20150730t163817z%2Ffiles%2Fstartup%2Fstdout.txt" + ], + "Date": [ + "Thu, 30 Jul 2015 16:49:06 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup%5Cstdout.txt?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcy9zdGFydHVwJTVDc3Rkb3V0LnR4dD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ec5bc9e1-2640-4fb0-a29f-460b969aadc2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:49:07 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "hello\r\n", + "ResponseHeaders": { + "Content-Type": [ + "application/octet-stream" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:42:33 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "328e4afa-a204-4a77-9795-3cab0ff429ca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ec5bc9e1-2640-4fb0-a29f-460b969aadc2" + ], + "DataServiceVersion": [ + "3.0" + ], + "ocp-creation-time": [ + "Thu, 30 Jul 2015 16:42:32 GMT" + ], + "ocp-batch-file-isdirectory": [ + "False" + ], + "ocp-batch-file-url": [ + "https%3A%2F%2Fpstests.eastus.batch.azure.com%2Fpools%2FtestPool%2Fnodes%2Ftvm-4155946844_1-20150730t163817z%2Ffiles%2Fstartup%2Fstdout.txt" + ], + "Date": [ + "Thu, 30 Jul 2015 16:49:06 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListJobPipeline.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByComputeNodeByPipeline.json similarity index 57% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListJobPipeline.json rename to src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByComputeNodeByPipeline.json index 4dcf4bddf10c..1c2203f16a84 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListJobPipeline.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByComputeNodeByPipeline.json @@ -10,10 +10,10 @@ "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}", + "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/cmdletexample\",\r\n \"name\": \"cmdletexample\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "237" + "475" ], "Content-Type": [ "application/json; charset=utf-8" @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14960" + "14969" ], "x-ms-request-id": [ - "c051c275-34f2-4c44-a0c8-7b683da54997" + "537aee69-2bcf-4a0e-a7f4-85d2055da918" ], "x-ms-correlation-request-id": [ - "c051c275-34f2-4c44-a0c8-7b683da54997" + "537aee69-2bcf-4a0e-a7f4-85d2055da918" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192837Z:c051c275-34f2-4c44-a0c8-7b683da54997" + "WESTUS:20150730T165122Z:537aee69-2bcf-4a0e-a7f4-85d2055da918" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:28:36 GMT" + "Thu, 30 Jul 2015 16:51:21 GMT" ] }, "StatusCode": 200 @@ -58,10 +58,10 @@ "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}", + "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/cmdletexample\",\r\n \"name\": \"cmdletexample\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "237" + "475" ], "Content-Type": [ "application/json; charset=utf-8" @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14959" + "14968" ], "x-ms-request-id": [ - "b02f36b1-4cd9-458a-bd6c-a014d984dd03" + "63a37e6d-ab41-4481-8c7d-94a91ac3e201" ], "x-ms-correlation-request-id": [ - "b02f36b1-4cd9-458a-bd6c-a014d984dd03" + "63a37e6d-ab41-4481-8c7d-94a91ac3e201" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192839Z:b02f36b1-4cd9-458a-bd6c-a014d984dd03" + "WESTUS:20150730T165124Z:63a37e6d-ab41-4481-8c7d-94a91ac3e201" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:28:38 GMT" + "Thu, 30 Jul 2015 16:51:23 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:28:37 GMT" + "Thu, 30 Jul 2015 16:51:23 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "9b364ecb-50d8-4a91-afc2-b6e13dd8d722" + "0104aca7-7342-4ab1-b257-a7b8bcd11087" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14969" + "14991" ], "x-ms-request-id": [ - "c7160666-7af5-4e42-810c-6711bc4b650b" + "8b5ad4cb-729c-48e7-bd31-7a856592f2bd" ], "x-ms-correlation-request-id": [ - "c7160666-7af5-4e42-810c-6711bc4b650b" + "8b5ad4cb-729c-48e7-bd31-7a856592f2bd" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192837Z:c7160666-7af5-4e42-810c-6711bc4b650b" + "WESTUS:20150730T165123Z:8b5ad4cb-729c-48e7-bd31-7a856592f2bd" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:28:37 GMT" + "Thu, 30 Jul 2015 16:51:23 GMT" ], "ETag": [ - "0x8D28894969928B5" + "0x8D298FF1A52259C" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:28:39 GMT" + "Thu, 30 Jul 2015 16:51:24 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "423db144-6b52-4964-a9c4-4d824831b5aa" + "16e88ae9-1cf3-40e1-b2d7-a0c3921f9898" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14968" + "14990" ], "x-ms-request-id": [ - "52762205-8d0a-4263-aacb-f656c35e458c" + "609cff13-f6ff-4d94-a9a5-0bb6bf62d33e" ], "x-ms-correlation-request-id": [ - "52762205-8d0a-4263-aacb-f656c35e458c" + "609cff13-f6ff-4d94-a9a5-0bb6bf62d33e" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192839Z:52762205-8d0a-4263-aacb-f656c35e458c" + "WESTUS:20150730T165124Z:609cff13-f6ff-4d94-a9a5-0bb6bf62d33e" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:28:38 GMT" + "Thu, 30 Jul 2015 16:51:24 GMT" ], "ETag": [ - "0x8D28894977723F4" + "0x8D298FF1AE03584" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "d8d8ec9a-1f39-4d2e-bc65-e789f0395c00" + "ab5f9e3b-af71-489f-9dc5-fd1370fae4ea" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1186" + "1193" ], "x-ms-request-id": [ - "3ecc87e1-c1b2-46a7-9986-0a4406031d1e" + "e2668f12-e377-4c7a-80a6-80c4970efdce" ], "x-ms-correlation-request-id": [ - "3ecc87e1-c1b2-46a7-9986-0a4406031d1e" + "e2668f12-e377-4c7a-80a6-80c4970efdce" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192838Z:3ecc87e1-c1b2-46a7-9986-0a4406031d1e" + "WESTUS:20150730T165123Z:e2668f12-e377-4c7a-80a6-80c4970efdce" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:28:37 GMT" + "Thu, 30 Jul 2015 16:51:23 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "35abdd19-8abf-4b78-8726-204006d3acc2" + "5db7c60c-cda6-4189-8637-3b5744b4d5ec" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1185" + "1192" ], "x-ms-request-id": [ - "1a1562e5-18b2-45b3-ae7b-e5587a08d41e" + "88e833c8-0be5-4311-9aec-df4d2cb80707" ], "x-ms-correlation-request-id": [ - "1a1562e5-18b2-45b3-ae7b-e5587a08d41e" + "88e833c8-0be5-4311-9aec-df4d2cb80707" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192839Z:1a1562e5-18b2-45b3-ae7b-e5587a08d41e" + "WESTUS:20150730T165124Z:88e833c8-0be5-4311-9aec-df4d2cb80707" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:28:39 GMT" + "Thu, 30 Jul 2015 16:51:24 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,109 +337,108 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "168" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "f1d9420d-ba59-43fb-9544-112ba4937d13" + "691309bc-1498-4671-80a8-58dbd755c3c5" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:23 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:28:37 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 2,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { - "Last-Modified": [ - "Thu, 09 Jul 2015 19:28:38 GMT" + "Content-Type": [ + "application/json; odata=minimalmetadata" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "96d58f52-73cf-4e63-a175-736416298f8d" + "a1026708-e2c9-4f69-8568-cfa34dfc203f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "691309bc-1498-4671-80a8-58dbd755c3c5" + ], "DataServiceVersion": [ "3.0" ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testWorkItem" - ], "Date": [ - "Thu, 09 Jul 2015 19:28:37 GMT" - ], - "ETag": [ - "0x8D2889497434D08" - ], - "Location": [ - "https://pstests.batch.core.windows.net/workitems/testWorkItem" + "Thu, 30 Jul 2015 16:51:24 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 201 + "StatusCode": 200 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup%5Cstdout.txt?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcy9zdGFydHVwJTVDc3Rkb3V0LnR4dD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "HEAD", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "1a25d110-5795-48d4-8994-ff9eb4e57ce5" + "07aa09a3-8dde-42a8-b990-5b2d5cf1916b" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:24 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:28:38 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D2889497434D08\",\r\n \"lastModified\": \"2015-07-09T19:28:38.696884Z\",\r\n \"creationTime\": \"2015-07-09T19:28:38.696884Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:28:38.696884Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { + "Content-Length": [ + "7" + ], "Content-Type": [ - "application/json; odata=minimalmetadata" + "application/octet-stream" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:28:38 GMT" - ], - "Transfer-Encoding": [ - "chunked" + "Thu, 30 Jul 2015 16:42:33 GMT" ], "request-id": [ - "4c9ea1a2-efe0-4a6c-98ba-64f805efd3ba" + "b7348508-16d9-4260-980b-4ce57c04d3fa" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "07aa09a3-8dde-42a8-b990-5b2d5cf1916b" + ], "DataServiceVersion": [ "3.0" ], - "Date": [ - "Thu, 09 Jul 2015 19:28:37 GMT" + "ocp-creation-time": [ + "Thu, 30 Jul 2015 16:42:32 GMT" ], - "ETag": [ - "0x8D2889497434D08" + "ocp-batch-file-isdirectory": [ + "False" + ], + "ocp-batch-file-url": [ + "https%3A%2F%2Fpstests.eastus.batch.azure.com%2Fpools%2FtestPool%2Fnodes%2Ftvm-4155946844_1-20150730t163817z%2Ffiles%2Fstartup%2Fstdout.txt" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:24 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -448,49 +447,59 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup%5Cstdout.txt?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcy9zdGFydHVwJTVDc3Rkb3V0LnR4dD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "59161d1d-8549-478f-a345-52e97b9aaf6a" + "5c7a6cb7-0036-4649-8487-fa3eb65c2fd6" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:25 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:28:39 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D2889497434D08\",\r\n \"lastModified\": \"2015-07-09T19:28:38.696884Z\",\r\n \"creationTime\": \"2015-07-09T19:28:38.696884Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:28:38.696884Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "hello\r\n", "ResponseHeaders": { "Content-Type": [ - "application/json; odata=minimalmetadata" + "application/octet-stream" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:28:38 GMT" + "Thu, 30 Jul 2015 16:42:33 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "3381b69e-a931-421b-a8dc-94de5577d847" + "dcb236e6-5618-465a-a03d-bf7a80230f49" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "5c7a6cb7-0036-4649-8487-fa3eb65c2fd6" + ], "DataServiceVersion": [ "3.0" ], - "Date": [ - "Thu, 09 Jul 2015 19:28:39 GMT" + "ocp-creation-time": [ + "Thu, 30 Jul 2015 16:42:32 GMT" ], - "ETag": [ - "0x8D2889497434D08" + "ocp-batch-file-isdirectory": [ + "False" + ], + "ocp-batch-file-url": [ + "https%3A%2F%2Fpstests.eastus.batch.azure.com%2Fpools%2FtestPool%2Fnodes%2Ftvm-4155946844_1-20150730t163817z%2Ffiles%2Fstartup%2Fstdout.txt" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:24 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -499,91 +508,65 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testWorkItem/jobs?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0vam9icz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup%5Cstdout.txt?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcy9zdGFydHVwJTVDc3Rkb3V0LnR4dD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "e86b1044-b8ce-4ef0-9dfe-9ebc0bede3f6" + "5c7a6cb7-0036-4649-8487-fa3eb65c2fd6" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:25 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:28:39 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"name\": \"job-0000000001\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"eTag\": \"0x8D28894974C4DFD\",\r\n \"lastModified\": \"2015-07-09T19:28:38.7558909Z\",\r\n \"creationTime\": \"2015-07-09T19:28:38.7388848Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:28:38.7558909Z\",\r\n \"poolName\": \"testPool\",\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T19:28:38.7558909Z\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "hello\r\n", "ResponseHeaders": { "Content-Type": [ - "application/json; odata=minimalmetadata" + "application/octet-stream" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:42:33 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "1fd2552b-782f-4bb2-8252-0422423808f3" + "dcb236e6-5618-465a-a03d-bf7a80230f49" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "5c7a6cb7-0036-4649-8487-fa3eb65c2fd6" + ], "DataServiceVersion": [ "3.0" ], - "Date": [ - "Thu, 09 Jul 2015 19:28:39 GMT" + "ocp-creation-time": [ + "Thu, 30 Jul 2015 16:42:32 GMT" ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "4bd95e40-6a47-494a-9274-0cc7fa99aadb" - ], - "return-client-request-id": [ + "ocp-batch-file-isdirectory": [ "False" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:28:39 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "6e54968c-51cc-4b59-924c-a5cf655f772f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" + "ocp-batch-file-url": [ + "https%3A%2F%2Fpstests.eastus.batch.azure.com%2Fpools%2FtestPool%2Fnodes%2Ftvm-4155946844_1-20150730t163817z%2Ffiles%2Fstartup%2Fstdout.txt" ], "Date": [ - "Thu, 09 Jul 2015 19:28:40 GMT" + "Thu, 30 Jul 2015 16:51:24 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 202 + "StatusCode": 200 } ], "Names": {}, diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByTaskByName.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByTaskByName.json new file mode 100644 index 000000000000..6adf9b1aaec8 --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByTaskByName.json @@ -0,0 +1,1362 @@ +{ + "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/cmdletexample\",\r\n \"name\": \"cmdletexample\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "475" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-request-id": [ + "c1382318-1ed6-420c-9c0b-f799525701bb" + ], + "x-ms-correlation-request-id": [ + "c1382318-1ed6-420c-9c0b-f799525701bb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165056Z:c1382318-1ed6-420c-9c0b-f799525701bb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:56 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-westus/providers/Microsoft.Batch/batchAccounts/cmdletexample\",\r\n \"name\": \"cmdletexample\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "475" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-request-id": [ + "3c235df3-b7f2-4c2c-b8b5-4d4217e7c663" + ], + "x-ms-correlation-request-id": [ + "3c235df3-b7f2-4c2c-b8b5-4d4217e7c663" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165100Z:3c235df3-b7f2-4c2c-b8b5-4d4217e7c663" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:00 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:50:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "7944272d-3c8b-46dd-9163-d7adc5169b10" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14973" + ], + "x-ms-request-id": [ + "aca1ec5c-03bc-4f63-95f9-5daeced1b64d" + ], + "x-ms-correlation-request-id": [ + "aca1ec5c-03bc-4f63-95f9-5daeced1b64d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165057Z:aca1ec5c-03bc-4f63-95f9-5daeced1b64d" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:56 GMT" + ], + "ETag": [ + "0x8D298FF0A4D15C2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:51:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "64e4f729-584f-4f64-b4b5-fd8f8c27aa28" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14972" + ], + "x-ms-request-id": [ + "c1e4d699-1e77-402e-8629-f057ac82496a" + ], + "x-ms-correlation-request-id": [ + "c1e4d699-1e77-402e-8629-f057ac82496a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165100Z:c1e4d699-1e77-402e-8629-f057ac82496a" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:00 GMT" + ], + "ETag": [ + "0x8D298FF0C6838F7" + ], + "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": [ + "9ab6f27f-a6f0-4f0a-a513-902fa5947ff6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-request-id": [ + "43cb6fac-fd32-4368-a424-a02265587784" + ], + "x-ms-correlation-request-id": [ + "43cb6fac-fd32-4368-a424-a02265587784" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165057Z:43cb6fac-fd32-4368-a424-a02265587784" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:56 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": [ + "a7abfd52-8942-4fc6-9359-0f2cdc1afff1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-request-id": [ + "feb29cfb-8396-4eaa-9475-8fb1ef90a02f" + ], + "x-ms-correlation-request-id": [ + "feb29cfb-8396-4eaa-9475-8fb1ef90a02f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165100Z:feb29cfb-8396-4eaa-9475-8fb1ef90a02f" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:00 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\": \"nodeFileContentByTaskJob\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "107" + ], + "client-request-id": [ + "e0f0b1ff-73c5-4fb8-91d3-55a47c74ad68" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:57 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 16:50:57 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e3f71a2a-ca13-43fd-843e-429aad778529" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e0f0b1ff-73c5-4fb8-91d3-55a47c74ad68" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:56 GMT" + ], + "ETag": [ + "0x8D298FF0AD9513D" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrSm9iL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask\",\r\n \"commandLine\": \"cmd /c echo test file contents > testFile.txt\",\r\n \"runElevated\": true\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "115" + ], + "client-request-id": [ + "ed9dba55-ea04-435e-94d7-a0b9eb24e0a4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:57 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 16:50:57 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "91bbc41b-9520-4f52-84c6-00d3c5220243" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ed9dba55-ea04-435e-94d7-a0b9eb24e0a4" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/nodeFileContentByTaskJob/tasks/testTask" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:57 GMT" + ], + "ETag": [ + "0x8D298FF0ACF95CC" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/nodeFileContentByTaskJob/tasks/testTask" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrSm9iL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask\",\r\n \"commandLine\": \"cmd /c echo test file contents > testFile.txt\",\r\n \"runElevated\": true\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "115" + ], + "client-request-id": [ + "ed9dba55-ea04-435e-94d7-a0b9eb24e0a4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:57 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 16:50:57 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "91bbc41b-9520-4f52-84c6-00d3c5220243" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ed9dba55-ea04-435e-94d7-a0b9eb24e0a4" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/nodeFileContentByTaskJob/tasks/testTask" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:57 GMT" + ], + "ETag": [ + "0x8D298FF0ACF95CC" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/nodeFileContentByTaskJob/tasks/testTask" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrSm9iL3Rhc2tzL3Rlc3RUYXNrP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "de0fa08e-0f37-49a7-a93b-94a1c307e068" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:57 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileContentByTaskJob/tasks/testTask\",\r\n \"eTag\": \"0x8D298FF0ACF95CC\",\r\n \"creationTime\": \"2015-07-30T16:50:57.812014Z\",\r\n \"lastModified\": \"2015-07-30T16:50:57.812014Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:50:57.812014Z\",\r\n \"commandLine\": \"cmd /c echo test file contents > testFile.txt\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:50:57 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6f3b44ef-0228-469e-8669-5b0af40725ee" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "de0fa08e-0f37-49a7-a93b-94a1c307e068" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:57 GMT" + ], + "ETag": [ + "0x8D298FF0ACF95CC" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrSm9iL3Rhc2tzL3Rlc3RUYXNrP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "de0fa08e-0f37-49a7-a93b-94a1c307e068" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:57 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileContentByTaskJob/tasks/testTask\",\r\n \"eTag\": \"0x8D298FF0ACF95CC\",\r\n \"creationTime\": \"2015-07-30T16:50:57.812014Z\",\r\n \"lastModified\": \"2015-07-30T16:50:57.812014Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:50:57.812014Z\",\r\n \"commandLine\": \"cmd /c echo test file contents > testFile.txt\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:50:57 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6f3b44ef-0228-469e-8669-5b0af40725ee" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "de0fa08e-0f37-49a7-a93b-94a1c307e068" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:57 GMT" + ], + "ETag": [ + "0x8D298FF0ACF95CC" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrSm9iL3Rhc2tzL3Rlc3RUYXNrP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "de0fa08e-0f37-49a7-a93b-94a1c307e068" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:57 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileContentByTaskJob/tasks/testTask\",\r\n \"eTag\": \"0x8D298FF0ACF95CC\",\r\n \"creationTime\": \"2015-07-30T16:50:57.812014Z\",\r\n \"lastModified\": \"2015-07-30T16:50:57.812014Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:50:57.812014Z\",\r\n \"commandLine\": \"cmd /c echo test file contents > testFile.txt\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:50:57 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6f3b44ef-0228-469e-8669-5b0af40725ee" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "de0fa08e-0f37-49a7-a93b-94a1c307e068" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:57 GMT" + ], + "ETag": [ + "0x8D298FF0ACF95CC" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrSm9iL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8335abbc-0752-43b8-a2d9-7f1d2aa76a22" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:58 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "fa99cf5f-2d50-40b8-a8cb-6d5b39fdd3c2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8335abbc-0752-43b8-a2d9-7f1d2aa76a22" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:57 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrSm9iL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8335abbc-0752-43b8-a2d9-7f1d2aa76a22" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:58 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "fa99cf5f-2d50-40b8-a8cb-6d5b39fdd3c2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8335abbc-0752-43b8-a2d9-7f1d2aa76a22" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:57 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrSm9iL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8335abbc-0752-43b8-a2d9-7f1d2aa76a22" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:50:58 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "fa99cf5f-2d50-40b8-a8cb-6d5b39fdd3c2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8335abbc-0752-43b8-a2d9-7f1d2aa76a22" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:50:57 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrSm9iL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "5ebdad12-4d9f-4339-b694-9d5f17fd717b" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:00 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "0a00f7b7-23b3-4eee-ae09-2757e9de63ed" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "5ebdad12-4d9f-4339-b694-9d5f17fd717b" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:00 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrSm9iL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "5ebdad12-4d9f-4339-b694-9d5f17fd717b" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:00 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "0a00f7b7-23b3-4eee-ae09-2757e9de63ed" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "5ebdad12-4d9f-4339-b694-9d5f17fd717b" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:00 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrSm9iL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "5ebdad12-4d9f-4339-b694-9d5f17fd717b" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:00 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "0a00f7b7-23b3-4eee-ae09-2757e9de63ed" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "5ebdad12-4d9f-4339-b694-9d5f17fd717b" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:00 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskJob/tasks/testTask/files/wd%5CtestFile.txt?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrSm9iL3Rhc2tzL3Rlc3RUYXNrL2ZpbGVzL3dkJTVDdGVzdEZpbGUudHh0P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "HEAD", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6c3a18be-f421-469b-a8e6-a98a9517e503" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:00 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/octet-stream" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:50:58 GMT" + ], + "request-id": [ + "e8ca141c-ecc5-42d5-b1bd-bd46a0dc5d58" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6c3a18be-f421-469b-a8e6-a98a9517e503" + ], + "DataServiceVersion": [ + "3.0" + ], + "ocp-creation-time": [ + "Thu, 30 Jul 2015 16:50:58 GMT" + ], + "ocp-batch-file-isdirectory": [ + "False" + ], + "ocp-batch-file-url": [ + "https%3A%2F%2Fpstests.eastus.batch.azure.com%2Fjobs%2FnodeFileContentByTaskJob%2Ftasks%2FtestTask%2Ffiles%2Fwd%2FtestFile.txt" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:00 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskJob/tasks/testTask/files/wd%5CtestFile.txt?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrSm9iL3Rhc2tzL3Rlc3RUYXNrL2ZpbGVzL3dkJTVDdGVzdEZpbGUudHh0P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2efc1238-9599-47f9-87ba-b89ef813dd4c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:01 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "test file contents \r\n", + "ResponseHeaders": { + "Content-Type": [ + "application/octet-stream" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:50:58 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ff3f559a-7ca1-4957-8d5c-9a47fac3eef2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2efc1238-9599-47f9-87ba-b89ef813dd4c" + ], + "DataServiceVersion": [ + "3.0" + ], + "ocp-creation-time": [ + "Thu, 30 Jul 2015 16:50:58 GMT" + ], + "ocp-batch-file-isdirectory": [ + "False" + ], + "ocp-batch-file-url": [ + "https%3A%2F%2Fpstests.eastus.batch.azure.com%2Fjobs%2FnodeFileContentByTaskJob%2Ftasks%2FtestTask%2Ffiles%2Fwd%2FtestFile.txt" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:00 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskJob/tasks/testTask/files/wd%5CtestFile.txt?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrSm9iL3Rhc2tzL3Rlc3RUYXNrL2ZpbGVzL3dkJTVDdGVzdEZpbGUudHh0P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2efc1238-9599-47f9-87ba-b89ef813dd4c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:01 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "test file contents \r\n", + "ResponseHeaders": { + "Content-Type": [ + "application/octet-stream" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:50:58 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ff3f559a-7ca1-4957-8d5c-9a47fac3eef2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2efc1238-9599-47f9-87ba-b89ef813dd4c" + ], + "DataServiceVersion": [ + "3.0" + ], + "ocp-creation-time": [ + "Thu, 30 Jul 2015 16:50:58 GMT" + ], + "ocp-batch-file-isdirectory": [ + "False" + ], + "ocp-batch-file-url": [ + "https%3A%2F%2Fpstests.eastus.batch.azure.com%2Fjobs%2FnodeFileContentByTaskJob%2Ftasks%2FtestTask%2Ffiles%2Fwd%2FtestFile.txt" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:00 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrSm9iP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2810089d-f543-41a1-b935-ddbf23f6de00" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:01 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": [ + "d135b00c-9c3d-4936-a18c-b509a91745e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2810089d-f543-41a1-b935-ddbf23f6de00" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:01 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrSm9iP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2810089d-f543-41a1-b935-ddbf23f6de00" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:01 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": [ + "d135b00c-9c3d-4936-a18c-b509a91745e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2810089d-f543-41a1-b935-ddbf23f6de00" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:01 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrSm9iP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2810089d-f543-41a1-b935-ddbf23f6de00" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:01 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": [ + "d135b00c-9c3d-4936-a18c-b509a91745e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2810089d-f543-41a1-b935-ddbf23f6de00" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:01 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrSm9iP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2810089d-f543-41a1-b935-ddbf23f6de00" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:01 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": [ + "d135b00c-9c3d-4936-a18c-b509a91745e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2810089d-f543-41a1-b935-ddbf23f6de00" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:01 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/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByTaskPipeline.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByTaskPipeline.json new file mode 100644 index 000000000000..14536f60d95f --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetNodeFileContentByTaskPipeline.json @@ -0,0 +1,1362 @@ +{ + "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/cmdletexample\",\r\n \"name\": \"cmdletexample\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "475" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14966" + ], + "x-ms-request-id": [ + "9240385b-2ec8-4d56-94c5-fcb93e05c4e3" + ], + "x-ms-correlation-request-id": [ + "9240385b-2ec8-4d56-94c5-fcb93e05c4e3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165144Z:9240385b-2ec8-4d56-94c5-fcb93e05c4e3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51: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/cmdletexample\",\r\n \"name\": \"cmdletexample\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "475" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14965" + ], + "x-ms-request-id": [ + "1bee7d7c-fe60-4f1d-ba06-eae8b4862eee" + ], + "x-ms-correlation-request-id": [ + "1bee7d7c-fe60-4f1d-ba06-eae8b4862eee" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165148Z:1bee7d7c-fe60-4f1d-ba06-eae8b4862eee" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:48 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:51:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "ae2f2435-8fe0-44b1-b5f0-ac67532c209f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-request-id": [ + "ab194b23-8655-4978-913a-efd442d130e4" + ], + "x-ms-correlation-request-id": [ + "ab194b23-8655-4978-913a-efd442d130e4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165145Z:ab194b23-8655-4978-913a-efd442d130e4" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:44 GMT" + ], + "ETag": [ + "0x8D298FF2737672E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:51:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "2decbf90-252e-4bf3-9111-385a0ae397ec" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-request-id": [ + "93a38b14-2b25-40f1-8563-4d98169c63f6" + ], + "x-ms-correlation-request-id": [ + "93a38b14-2b25-40f1-8563-4d98169c63f6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165148Z:93a38b14-2b25-40f1-8563-4d98169c63f6" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:48 GMT" + ], + "ETag": [ + "0x8D298FF293CDB4B" + ], + "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": [ + "992bf0cb-3ac3-478a-82f4-aee76b4554c7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-request-id": [ + "3c6a9e5f-ec8e-4142-9f15-27a0f9650642" + ], + "x-ms-correlation-request-id": [ + "3c6a9e5f-ec8e-4142-9f15-27a0f9650642" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165145Z:3c6a9e5f-ec8e-4142-9f15-27a0f9650642" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:44 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": [ + "60186d6f-321d-433b-8dc7-ffd40bff2a6c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" + ], + "x-ms-request-id": [ + "a007d9ca-1209-4be3-a69d-60aa44bf7e09" + ], + "x-ms-correlation-request-id": [ + "a007d9ca-1209-4be3-a69d-60aa44bf7e09" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165148Z:a007d9ca-1209-4be3-a69d-60aa44bf7e09" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:48 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\": \"nodeFileContentByTaskPipe\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "108" + ], + "client-request-id": [ + "9b4f29d6-3f64-4d40-af0d-4b7b520564de" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:45 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 16:51:46 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9112755d-d1c8-4890-b036-6d64b2abca2c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9b4f29d6-3f64-4d40-af0d-4b7b520564de" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:45 GMT" + ], + "ETag": [ + "0x8D298FF278C6C69" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskPipe/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrUGlwZS90YXNrcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask\",\r\n \"commandLine\": \"cmd /c echo test file contents > testFile.txt\",\r\n \"runElevated\": true\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "115" + ], + "client-request-id": [ + "6da61988-7b60-4e5e-9ef5-4fc7933afbe4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:45 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 16:51:46 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cedf3a1f-9103-4599-802e-b98c2f13f61f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6da61988-7b60-4e5e-9ef5-4fc7933afbe4" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/nodeFileContentByTaskPipe/tasks/testTask" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:45 GMT" + ], + "ETag": [ + "0x8D298FF27932642" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/nodeFileContentByTaskPipe/tasks/testTask" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskPipe/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrUGlwZS90YXNrcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask\",\r\n \"commandLine\": \"cmd /c echo test file contents > testFile.txt\",\r\n \"runElevated\": true\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "115" + ], + "client-request-id": [ + "6da61988-7b60-4e5e-9ef5-4fc7933afbe4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:45 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 16:51:46 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cedf3a1f-9103-4599-802e-b98c2f13f61f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6da61988-7b60-4e5e-9ef5-4fc7933afbe4" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/nodeFileContentByTaskPipe/tasks/testTask" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:45 GMT" + ], + "ETag": [ + "0x8D298FF27932642" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/nodeFileContentByTaskPipe/tasks/testTask" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskPipe/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrUGlwZS90YXNrcy90ZXN0VGFzaz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "0226cfc5-92ce-4ef7-9978-63346910034f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:46 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#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileContentByTaskPipe/tasks/testTask\",\r\n \"eTag\": \"0x8D298FF27932642\",\r\n \"creationTime\": \"2015-07-30T16:51:46.069869Z\",\r\n \"lastModified\": \"2015-07-30T16:51:46.069869Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:51:46.069869Z\",\r\n \"commandLine\": \"cmd /c echo test file contents > testFile.txt\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:51:46 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "49fadf79-ec03-47c2-8691-c01d532327dd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "0226cfc5-92ce-4ef7-9978-63346910034f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:45 GMT" + ], + "ETag": [ + "0x8D298FF27932642" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskPipe/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrUGlwZS90YXNrcy90ZXN0VGFzaz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "0226cfc5-92ce-4ef7-9978-63346910034f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:46 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#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileContentByTaskPipe/tasks/testTask\",\r\n \"eTag\": \"0x8D298FF27932642\",\r\n \"creationTime\": \"2015-07-30T16:51:46.069869Z\",\r\n \"lastModified\": \"2015-07-30T16:51:46.069869Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:51:46.069869Z\",\r\n \"commandLine\": \"cmd /c echo test file contents > testFile.txt\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:51:46 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "49fadf79-ec03-47c2-8691-c01d532327dd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "0226cfc5-92ce-4ef7-9978-63346910034f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:45 GMT" + ], + "ETag": [ + "0x8D298FF27932642" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskPipe/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrUGlwZS90YXNrcy90ZXN0VGFzaz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "0226cfc5-92ce-4ef7-9978-63346910034f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:46 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#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileContentByTaskPipe/tasks/testTask\",\r\n \"eTag\": \"0x8D298FF27932642\",\r\n \"creationTime\": \"2015-07-30T16:51:46.069869Z\",\r\n \"lastModified\": \"2015-07-30T16:51:46.069869Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:51:46.069869Z\",\r\n \"commandLine\": \"cmd /c echo test file contents > testFile.txt\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:51:46 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "49fadf79-ec03-47c2-8691-c01d532327dd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "0226cfc5-92ce-4ef7-9978-63346910034f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:45 GMT" + ], + "ETag": [ + "0x8D298FF27932642" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskPipe/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrUGlwZS90YXNrcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0VGFzayUyNyYkc2VsZWN0PWlkJTJDc3RhdGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "260d9209-a7dc-45b1-a08b-ae081067982a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:46 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "37a74ad5-a7a0-43c9-9828-f2f5689b0cde" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "260d9209-a7dc-45b1-a08b-ae081067982a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:45 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskPipe/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrUGlwZS90YXNrcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0VGFzayUyNyYkc2VsZWN0PWlkJTJDc3RhdGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "260d9209-a7dc-45b1-a08b-ae081067982a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:46 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "37a74ad5-a7a0-43c9-9828-f2f5689b0cde" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "260d9209-a7dc-45b1-a08b-ae081067982a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:45 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskPipe/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrUGlwZS90YXNrcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0VGFzayUyNyYkc2VsZWN0PWlkJTJDc3RhdGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "260d9209-a7dc-45b1-a08b-ae081067982a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:46 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "37a74ad5-a7a0-43c9-9828-f2f5689b0cde" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "260d9209-a7dc-45b1-a08b-ae081067982a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:45 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskPipe/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrUGlwZS90YXNrcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0VGFzayUyNyYkc2VsZWN0PWlkJTJDc3RhdGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1f362b62-2d10-4abd-b7d8-05dd645754a4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51: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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "47462626-e899-4ba1-9084-a52b14f9715b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1f362b62-2d10-4abd-b7d8-05dd645754a4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskPipe/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrUGlwZS90YXNrcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0VGFzayUyNyYkc2VsZWN0PWlkJTJDc3RhdGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1f362b62-2d10-4abd-b7d8-05dd645754a4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51: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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "47462626-e899-4ba1-9084-a52b14f9715b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1f362b62-2d10-4abd-b7d8-05dd645754a4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskPipe/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrUGlwZS90YXNrcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0VGFzayUyNyYkc2VsZWN0PWlkJTJDc3RhdGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1f362b62-2d10-4abd-b7d8-05dd645754a4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51: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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "47462626-e899-4ba1-9084-a52b14f9715b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1f362b62-2d10-4abd-b7d8-05dd645754a4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskPipe/tasks/testTask/files/wd%5CtestFile.txt?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrUGlwZS90YXNrcy90ZXN0VGFzay9maWxlcy93ZCU1Q3Rlc3RGaWxlLnR4dD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "HEAD", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4d1d1e09-1c41-4f13-be45-0476654751a6" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51: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": { + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/octet-stream" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:51:46 GMT" + ], + "request-id": [ + "4ec7a189-928c-44c6-911b-af2ac5e824d9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4d1d1e09-1c41-4f13-be45-0476654751a6" + ], + "DataServiceVersion": [ + "3.0" + ], + "ocp-creation-time": [ + "Thu, 30 Jul 2015 16:51:46 GMT" + ], + "ocp-batch-file-isdirectory": [ + "False" + ], + "ocp-batch-file-url": [ + "https%3A%2F%2Fpstests.eastus.batch.azure.com%2Fjobs%2FnodeFileContentByTaskPipe%2Ftasks%2FtestTask%2Ffiles%2Fwd%2FtestFile.txt" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskPipe/tasks/testTask/files/wd%5CtestFile.txt?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrUGlwZS90YXNrcy90ZXN0VGFzay9maWxlcy93ZCU1Q3Rlc3RGaWxlLnR4dD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "37f9b8ed-961b-413f-a4c5-fc76a40dd343" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:49 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "test file contents \r\n", + "ResponseHeaders": { + "Content-Type": [ + "application/octet-stream" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:51:46 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b414b5e2-940a-4dc5-8017-31c9089eb1e9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "37f9b8ed-961b-413f-a4c5-fc76a40dd343" + ], + "DataServiceVersion": [ + "3.0" + ], + "ocp-creation-time": [ + "Thu, 30 Jul 2015 16:51:46 GMT" + ], + "ocp-batch-file-isdirectory": [ + "False" + ], + "ocp-batch-file-url": [ + "https%3A%2F%2Fpstests.eastus.batch.azure.com%2Fjobs%2FnodeFileContentByTaskPipe%2Ftasks%2FtestTask%2Ffiles%2Fwd%2FtestFile.txt" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskPipe/tasks/testTask/files/wd%5CtestFile.txt?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrUGlwZS90YXNrcy90ZXN0VGFzay9maWxlcy93ZCU1Q3Rlc3RGaWxlLnR4dD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "37f9b8ed-961b-413f-a4c5-fc76a40dd343" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:49 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "test file contents \r\n", + "ResponseHeaders": { + "Content-Type": [ + "application/octet-stream" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:51:46 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b414b5e2-940a-4dc5-8017-31c9089eb1e9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "37f9b8ed-961b-413f-a4c5-fc76a40dd343" + ], + "DataServiceVersion": [ + "3.0" + ], + "ocp-creation-time": [ + "Thu, 30 Jul 2015 16:51:46 GMT" + ], + "ocp-batch-file-isdirectory": [ + "False" + ], + "ocp-batch-file-url": [ + "https%3A%2F%2Fpstests.eastus.batch.azure.com%2Fjobs%2FnodeFileContentByTaskPipe%2Ftasks%2FtestTask%2Ffiles%2Fwd%2FtestFile.txt" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskPipe?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrUGlwZT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "175e654f-df23-4c82-a3ae-04f81d956240" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:49 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": [ + "e5463cc9-2bc0-493e-a167-9d361a580678" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "175e654f-df23-4c82-a3ae-04f81d956240" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:49 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskPipe?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrUGlwZT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "175e654f-df23-4c82-a3ae-04f81d956240" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:49 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": [ + "e5463cc9-2bc0-493e-a167-9d361a580678" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "175e654f-df23-4c82-a3ae-04f81d956240" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:49 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskPipe?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrUGlwZT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "175e654f-df23-4c82-a3ae-04f81d956240" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:49 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": [ + "e5463cc9-2bc0-493e-a167-9d361a580678" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "175e654f-df23-4c82-a3ae-04f81d956240" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:49 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/nodeFileContentByTaskPipe?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVDb250ZW50QnlUYXNrUGlwZT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "175e654f-df23-4c82-a3ae-04f81d956240" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:51:49 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": [ + "e5463cc9-2bc0-493e-a167-9d361a580678" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "175e654f-df23-4c82-a3ae-04f81d956240" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:51:49 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/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetRDPFileByName.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetRDPFileByName.json deleted file mode 100644 index 57d274261c8a..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetRDPFileByName.json +++ /dev/null @@ -1,266 +0,0 @@ -{ - "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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14969" - ], - "x-ms-request-id": [ - "6e8e6142-e7bc-427f-bffe-4982fcd0ea2a" - ], - "x-ms-correlation-request-id": [ - "6e8e6142-e7bc-427f-bffe-4982fcd0ea2a" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191407Z:6e8e6142-e7bc-427f-bffe-4982fcd0ea2a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:14:06 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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:14:08 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "582f15ca-0f31-4609-8fb8-1bca8ac24574" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14938" - ], - "x-ms-request-id": [ - "28968e0d-8665-4da3-a38d-b34f2d502951" - ], - "x-ms-correlation-request-id": [ - "28968e0d-8665-4da3-a38d-b34f2d502951" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191408Z:28968e0d-8665-4da3-a38d-b34f2d502951" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:14:08 GMT" - ], - "ETag": [ - "0x8D28892909404EC" - ], - "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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "019a89f5-e32c-4b46-85d3-c093e981909b" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1178" - ], - "x-ms-request-id": [ - "8ad1997a-d947-46ec-9706-52d61fbd7a77" - ], - "x-ms-correlation-request-id": [ - "8ad1997a-d947-46ec-9706-52d61fbd7a77" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191408Z:8ad1997a-d947-46ec-9706-52d61fbd7a77" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:14:08 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/rdp?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L3JkcD9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "b9d7e128-6679-4c2d-b765-7f828047c5e5" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:14:08 GMT" - ] - }, - "ResponseBody": "full address:s:137.117.90.4\r\nLoadBalanceInfo:s:Cookie: mstshash=TVM#TVM_IN_0", - "ResponseHeaders": { - "Content-Type": [ - "application/octet-stream" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "07f9f0eb-0994-4cf8-ad50-2dbaeb2fc456" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:14:08 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/rdp?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L3JkcD9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "6b0765a5-4bdf-46f9-9425-7741b5a44286" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:14:08 GMT" - ] - }, - "ResponseBody": "full address:s:137.117.90.4\r\nLoadBalanceInfo:s:Cookie: mstshash=TVM#TVM_IN_0", - "ResponseHeaders": { - "Content-Type": [ - "application/octet-stream" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "e85c2801-ccb0-4b43-b55b-a37f1d27a79c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:14:08 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" - } -} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetRDPFilePipeline.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetRDPFilePipeline.json deleted file mode 100644 index 04a07526983a..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetRDPFilePipeline.json +++ /dev/null @@ -1,266 +0,0 @@ -{ - "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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14971" - ], - "x-ms-request-id": [ - "f1a7797b-9ab8-4719-862d-024a68f53554" - ], - "x-ms-correlation-request-id": [ - "f1a7797b-9ab8-4719-862d-024a68f53554" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191609Z:f1a7797b-9ab8-4719-862d-024a68f53554" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:09 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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:16:11 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "ed8f83a0-9014-43eb-8f85-9fe65ef44ac1" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14970" - ], - "x-ms-request-id": [ - "c178363c-ddfe-4504-adfa-d4b897bf2e94" - ], - "x-ms-correlation-request-id": [ - "c178363c-ddfe-4504-adfa-d4b897bf2e94" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191610Z:c178363c-ddfe-4504-adfa-d4b897bf2e94" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:10 GMT" - ], - "ETag": [ - "0x8D28892D9A04543" - ], - "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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "fe1b4dda-14c7-459c-9804-7620d9929cd9" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1183" - ], - "x-ms-request-id": [ - "a4f2060a-6780-4270-b31e-983e3e8f5820" - ], - "x-ms-correlation-request-id": [ - "a4f2060a-6780-4270-b31e-983e3e8f5820" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191610Z:a4f2060a-6780-4270-b31e-983e3e8f5820" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:10 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6P2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "f951b4be-23ae-4d39-a61c-4f04ff3d872e" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:16:10 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tvms/@Element\",\r\n \"name\": \"tvm-4155946844_1-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-09T19:08:35.5466164Z\",\r\n \"lastBootTime\": \"2015-07-09T19:08:35.4786184Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.28.116\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 9,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-09T19:08:35.5776188Z\",\r\n \"endTime\": \"2015-07-09T19:08:36.4942084Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "2736bb32-24ea-424c-83a7-7628b4c072c7" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:11 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/rdp?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L3JkcD9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "8cd4645b-21bb-43e9-9a66-6bfe13c6a30b" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:16:11 GMT" - ] - }, - "ResponseBody": "full address:s:137.117.90.4\r\nLoadBalanceInfo:s:Cookie: mstshash=TVM#TVM_IN_0", - "ResponseHeaders": { - "Content-Type": [ - "application/octet-stream" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "37d1089f-5d5b-492b-a1fc-7b1dde7e65e6" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:11 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" - } -} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestResizePoolByName.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetRemoteDesktopProtocolFileById.json similarity index 59% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestResizePoolByName.json rename to src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetRemoteDesktopProtocolFileById.json index 88ec32a335fb..f14ae9dad67e 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestResizePoolByName.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetRemoteDesktopProtocolFileById.json @@ -10,10 +10,10 @@ "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}", + "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/cmdletexample\",\r\n \"name\": \"cmdletexample\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "237" + "475" ], "Content-Type": [ "application/json; charset=utf-8" @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14983" + "14991" ], "x-ms-request-id": [ - "fa60c10e-6047-40b6-ac85-caa0ecbe0f2b" + "43b2f3e3-eac1-4a71-b563-a22a4d53772b" ], "x-ms-correlation-request-id": [ - "fa60c10e-6047-40b6-ac85-caa0ecbe0f2b" + "43b2f3e3-eac1-4a71-b563-a22a4d53772b" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210704Z:fa60c10e-6047-40b6-ac85-caa0ecbe0f2b" + "WESTUS:20150730T164947Z:43b2f3e3-eac1-4a71-b563-a22a4d53772b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:07:04 GMT" + "Thu, 30 Jul 2015 16:49:46 GMT" ] }, "StatusCode": 200 @@ -58,10 +58,10 @@ "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}", + "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/cmdletexample\",\r\n \"name\": \"cmdletexample\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "237" + "475" ], "Content-Type": [ "application/json; charset=utf-8" @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14982" + "14990" ], "x-ms-request-id": [ - "ae26f201-8fa9-4c6f-857d-634dd1f7e2ef" + "069e5b02-d4f6-4c98-87be-3f9633c910bb" ], "x-ms-correlation-request-id": [ - "ae26f201-8fa9-4c6f-857d-634dd1f7e2ef" + "069e5b02-d4f6-4c98-87be-3f9633c910bb" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210706Z:ae26f201-8fa9-4c6f-857d-634dd1f7e2ef" + "WESTUS:20150730T164949Z:069e5b02-d4f6-4c98-87be-3f9633c910bb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:07:06 GMT" + "Thu, 30 Jul 2015 16:49:49 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 21:07:05 GMT" + "Thu, 30 Jul 2015 16:49:48 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "b034b3b0-37e5-4331-a04c-90de31b030a7" + "57be1cc4-358c-4202-b541-89abfb2d5e6d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14983" + "14991" ], "x-ms-request-id": [ - "d76373ca-6f4e-44bd-99f2-fff0eb07553f" + "4ca2a772-af26-407b-ba9c-8d95ffc97cef" ], "x-ms-correlation-request-id": [ - "d76373ca-6f4e-44bd-99f2-fff0eb07553f" + "4ca2a772-af26-407b-ba9c-8d95ffc97cef" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210706Z:d76373ca-6f4e-44bd-99f2-fff0eb07553f" + "WESTUS:20150730T164948Z:4ca2a772-af26-407b-ba9c-8d95ffc97cef" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:07:05 GMT" + "Thu, 30 Jul 2015 16:49:48 GMT" ], "ETag": [ - "0x8D288A25841C63F" + "0x8D298FEE15DAB70" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 21:07:06 GMT" + "Thu, 30 Jul 2015 16:49:49 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "6d1a5433-7ff1-4c6d-b8cb-f55fc8abc744" + "66389a5b-7ce5-4e2a-904e-336a0a474c9c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14982" + "14990" ], "x-ms-request-id": [ - "e32e4b0a-d07e-4415-b6a6-10b00a73861c" + "e0300054-67b3-4e89-b7cf-ec44cecb9240" ], "x-ms-correlation-request-id": [ - "e32e4b0a-d07e-4415-b6a6-10b00a73861c" + "e0300054-67b3-4e89-b7cf-ec44cecb9240" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210706Z:e32e4b0a-d07e-4415-b6a6-10b00a73861c" + "WESTUS:20150730T164949Z:e0300054-67b3-4e89-b7cf-ec44cecb9240" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:07:06 GMT" + "Thu, 30 Jul 2015 16:49:49 GMT" ], "ETag": [ - "0x8D288A258B69250" + "0x8D298FEE1DC24DD" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "2c70408b-fabc-4210-b730-8d2b7bdcd657" + "6bd5f20b-1e57-40d5-86ad-ad458c7e06a0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1187" + "1196" ], "x-ms-request-id": [ - "4e7be36e-f4af-4e61-a6f0-319f4f76611e" + "83e80143-cd9a-475e-89a1-472106160de1" ], "x-ms-correlation-request-id": [ - "4e7be36e-f4af-4e61-a6f0-319f4f76611e" + "83e80143-cd9a-475e-89a1-472106160de1" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210706Z:4e7be36e-f4af-4e61-a6f0-319f4f76611e" + "WESTUS:20150730T164948Z:83e80143-cd9a-475e-89a1-472106160de1" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:07:05 GMT" + "Thu, 30 Jul 2015 16:49:48 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "25898b35-df97-446a-a8e8-56cba12f350d" + "6e63d8cc-b4a0-4d51-a593-26096f31b0cc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1186" + "1195" ], "x-ms-request-id": [ - "4d16babb-edc3-48c2-8477-9c3e7cc8a311" + "2accc890-7fe5-49ba-a338-df8bf159de30" ], "x-ms-correlation-request-id": [ - "4d16babb-edc3-48c2-8477-9c3e7cc8a311" + "2accc890-7fe5-49ba-a338-df8bf159de30" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210707Z:4d16babb-edc3-48c2-8477-9c3e7cc8a311" + "WESTUS:20150730T164949Z:2accc890-7fe5-49ba-a338-df8bf159de30" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:07:06 GMT" + "Thu, 30 Jul 2015 16:49:49 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,49 +337,47 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "ea562a89-a330-4f48-a138-6a0dcb07a71a" + "44dc257a-fc44-467e-85a6-4905d57eec98" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:49:48 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:07:06 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A24A4581EF\",\r\n \"lastModified\": \"2015-07-09T21:06:42.4809967Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:06:45.2066566Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"resizeError\": {\r\n \"code\": \"ResizeStopped\",\r\n \"message\": \"Desired number of dedicated TVMs could not be allocated due to a StopPoolResize operation\"\r\n },\r\n \"currentDedicated\": 5,\r\n \"targetDedicated\": 10,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:06:42 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "32b36c8a-ecfa-4533-b83f-7ba84e522d5c" + "3a136e24-7696-49de-88df-577fddafa912" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "44dc257a-fc44-467e-85a6-4905d57eec98" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 21:07:06 GMT" - ], - "ETag": [ - "0x8D288A24A4581EF" + "Thu, 30 Jul 2015 16:49:48 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -388,49 +386,47 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/rdp?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9yZHA/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "4835f52c-9bee-460f-84df-b520900b3e53" + "fe84134d-8d18-454e-b3d6-ba43aa7a2f97" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:49:49 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:07:06 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A24A4581EF\",\r\n \"lastModified\": \"2015-07-09T21:06:42.4809967Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:06:45.2066566Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"resizeError\": {\r\n \"code\": \"ResizeStopped\",\r\n \"message\": \"Desired number of dedicated TVMs could not be allocated due to a StopPoolResize operation\"\r\n },\r\n \"currentDedicated\": 5,\r\n \"targetDedicated\": 10,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", + "ResponseBody": "full address:s:168.61.44.120\r\nLoadBalanceInfo:s:Cookie: mstshash=TVM#TVM_IN_0", "ResponseHeaders": { "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:06:42 GMT" + "application/octet-stream" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "bfa3bd31-08de-4439-93aa-c5643e18fcd9" + "abcf4771-792c-41df-a83c-2c7f5b6bfca5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "fe84134d-8d18-454e-b3d6-ba43aa7a2f97" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 21:07:07 GMT" - ], - "ETag": [ - "0x8D288A24A4581EF" + "Thu, 30 Jul 2015 16:49:48 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -439,49 +435,47 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/rdp?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9yZHA/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "9a49e98a-b529-4e18-bedf-953466fa643c" + "40a6d53b-4c0c-4e6d-b2c3-f26c265d449f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:49:49 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:07:07 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A2595DBBA1\",\r\n \"lastModified\": \"2015-07-09T21:07:07.8055841Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:07:07.8055841Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 5,\r\n \"targetDedicated\": 12,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", + "ResponseBody": "full address:s:168.61.44.120\r\nLoadBalanceInfo:s:Cookie: mstshash=TVM#TVM_IN_0", "ResponseHeaders": { "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:07:07 GMT" + "application/octet-stream" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "6637d20c-5cf6-4b39-85b4-662edb6f832b" + "fb5aac81-f4fb-46e7-b665-3bf0f587822d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "40a6d53b-4c0c-4e6d-b2c3-f26c265d449f" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 21:07:07 GMT" - ], - "ETag": [ - "0x8D288A2595DBBA1" + "Thu, 30 Jul 2015 16:49:48 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -490,61 +484,53 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testPool?resize&api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3Jlc2l6ZSZhcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"targetDedicated\": 12,\r\n \"resizeTimeout\": \"PT5M\"\r\n}", + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/rdp?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9yZHA/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "51" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "726b2875-7c96-4f1c-a962-11695bec4f88" + "40a6d53b-4c0c-4e6d-b2c3-f26c265d449f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:49:49 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:07:07 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "", + "ResponseBody": "full address:s:168.61.44.120\r\nLoadBalanceInfo:s:Cookie: mstshash=TVM#TVM_IN_0", "ResponseHeaders": { - "Last-Modified": [ - "Thu, 09 Jul 2015 21:07:07 GMT" + "Content-Type": [ + "application/octet-stream" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "3cac38a9-e730-42bc-a2bc-0b2c5cd6aa3b" + "fb5aac81-f4fb-46e7-b665-3bf0f587822d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "40a6d53b-4c0c-4e6d-b2c3-f26c265d449f" + ], "DataServiceVersion": [ "3.0" ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/pools/testPool" - ], "Date": [ - "Thu, 09 Jul 2015 21:07:08 GMT" - ], - "ETag": [ - "0x8D288A2595DBBA1" + "Thu, 30 Jul 2015 16:49:48 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 202 + "StatusCode": 200 } ], "Names": {}, diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.WorkItemTests/TestDeleteWorkItemPipeline.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetRemoteDesktopProtocolFilePipeline.json similarity index 57% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.WorkItemTests/TestDeleteWorkItemPipeline.json rename to src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetRemoteDesktopProtocolFilePipeline.json index d6f2d1001f26..acb2b32622d1 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.WorkItemTests/TestDeleteWorkItemPipeline.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetRemoteDesktopProtocolFilePipeline.json @@ -10,10 +10,10 @@ "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}", + "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/cmdletexample\",\r\n \"name\": \"cmdletexample\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "237" + "475" ], "Content-Type": [ "application/json; charset=utf-8" @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14928" + "14997" ], "x-ms-request-id": [ - "8b36dfad-d06e-45e2-bd44-5b1bfef56d30" + "a4e4284d-1da0-4fbd-8d1f-4ca15a36af39" ], "x-ms-correlation-request-id": [ - "8b36dfad-d06e-45e2-bd44-5b1bfef56d30" + "a4e4284d-1da0-4fbd-8d1f-4ca15a36af39" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192335Z:8b36dfad-d06e-45e2-bd44-5b1bfef56d30" + "WESTUS:20150730T164925Z:a4e4284d-1da0-4fbd-8d1f-4ca15a36af39" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:23:34 GMT" + "Thu, 30 Jul 2015 16:49:24 GMT" ] }, "StatusCode": 200 @@ -58,10 +58,10 @@ "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}", + "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/cmdletexample\",\r\n \"name\": \"cmdletexample\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "237" + "475" ], "Content-Type": [ "application/json; charset=utf-8" @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14927" + "14996" ], "x-ms-request-id": [ - "4cd8d825-56d9-4aa8-a7f9-9beb0dfc9cbf" + "f53c3f7f-b84e-4c12-a881-9d7a527a88d5" ], "x-ms-correlation-request-id": [ - "4cd8d825-56d9-4aa8-a7f9-9beb0dfc9cbf" + "f53c3f7f-b84e-4c12-a881-9d7a527a88d5" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192337Z:4cd8d825-56d9-4aa8-a7f9-9beb0dfc9cbf" + "WESTUS:20150730T164926Z:f53c3f7f-b84e-4c12-a881-9d7a527a88d5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:23:36 GMT" + "Thu, 30 Jul 2015 16:49:25 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:23:36 GMT" + "Thu, 30 Jul 2015 16:49:25 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "c3553244-89bd-4d9b-9f5b-db3ddf7db394" + "b798f071-17e3-43e8-a90c-247167b4285f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14933" + "14993" ], "x-ms-request-id": [ - "374de562-7a11-4371-96a8-4738fda719be" + "8941e06d-5e60-4dbc-91a2-d1248a8380c7" ], "x-ms-correlation-request-id": [ - "374de562-7a11-4371-96a8-4738fda719be" + "8941e06d-5e60-4dbc-91a2-d1248a8380c7" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192336Z:374de562-7a11-4371-96a8-4738fda719be" + "WESTUS:20150730T164925Z:8941e06d-5e60-4dbc-91a2-d1248a8380c7" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:23:35 GMT" + "Thu, 30 Jul 2015 16:49:25 GMT" ], "ETag": [ - "0x8D28893E3591E71" + "0x8D298FED3EC3B41" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:23:37 GMT" + "Thu, 30 Jul 2015 16:49:26 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "0329ff33-9c75-4d6a-a337-ea8f8110082a" + "c458ba1e-72ed-41bc-9ca7-1d729ad900c0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14932" + "14992" ], "x-ms-request-id": [ - "ef23c3bb-4dfb-4ff9-8975-72ef0a2d7540" + "9eb432dd-b5da-4fc3-8f4b-aab99a2734ed" ], "x-ms-correlation-request-id": [ - "ef23c3bb-4dfb-4ff9-8975-72ef0a2d7540" + "9eb432dd-b5da-4fc3-8f4b-aab99a2734ed" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192337Z:ef23c3bb-4dfb-4ff9-8975-72ef0a2d7540" + "WESTUS:20150730T164926Z:9eb432dd-b5da-4fc3-8f4b-aab99a2734ed" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:23:36 GMT" + "Thu, 30 Jul 2015 16:49:26 GMT" ], "ETag": [ - "0x8D28893E40573C8" + "0x8D298FED4668DBF" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "65f9808c-0228-4ca2-8375-04ac3b7cd85c" + "a387e2a2-f46e-4dc8-8453-2843f0253a8a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1163" + "1195" ], "x-ms-request-id": [ - "ed7cfdbf-88bc-4340-8ad5-b95e1f709c51" + "4d208caf-eecf-4d6b-bc9a-07726f58b881" ], "x-ms-correlation-request-id": [ - "ed7cfdbf-88bc-4340-8ad5-b95e1f709c51" + "4d208caf-eecf-4d6b-bc9a-07726f58b881" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192336Z:ed7cfdbf-88bc-4340-8ad5-b95e1f709c51" + "WESTUS:20150730T164925Z:4d208caf-eecf-4d6b-bc9a-07726f58b881" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:23:35 GMT" + "Thu, 30 Jul 2015 16:49:25 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "2a2d3500-80f4-4f81-97b0-878dc16425c7" + "40089a59-56cf-4328-b7fd-cd9817356b37" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1162" + "1194" ], "x-ms-request-id": [ - "d2f61fca-5dd5-4edf-97aa-f3b5c5345d70" + "0e568ab1-0e2e-4a7b-81cf-13e9e769d7d9" ], "x-ms-correlation-request-id": [ - "d2f61fca-5dd5-4edf-97aa-f3b5c5345d70" + "0e568ab1-0e2e-4a7b-81cf-13e9e769d7d9" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192337Z:d2f61fca-5dd5-4edf-97aa-f3b5c5345d70" + "WESTUS:20150730T164926Z:0e568ab1-0e2e-4a7b-81cf-13e9e769d7d9" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:23:36 GMT" + "Thu, 30 Jul 2015 16:49:26 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,85 +337,26 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "168" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "8b304b47-1989-4e1f-b539-b806ecc1f96d" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:23:36 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Last-Modified": [ - "Thu, 09 Jul 2015 19:23:37 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "4bdfbe39-af3a-4826-853d-93f182a1729c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testWorkItem" - ], - "Date": [ - "Thu, 09 Jul 2015 19:23:36 GMT" - ], - "ETag": [ - "0x8D28893E3B38210" - ], - "Location": [ - "https://pstests.batch.core.windows.net/workitems/testWorkItem" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "a4949563-31e0-4941-983a-ed432e83b116" + "9fa9985a-6415-4031-a588-9e484c929aeb" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:49:25 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:23:37 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems\",\r\n \"value\": [\r\n {\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D28893E3B38210\",\r\n \"lastModified\": \"2015-07-09T19:23:37.4423568Z\",\r\n \"creationTime\": \"2015-07-09T19:23:37.4423568Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:23:37.4423568Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" @@ -424,16 +365,19 @@ "chunked" ], "request-id": [ - "86e8310c-5d1a-4cf5-a3c5-b68884523acc" + "7396b5d6-db40-4951-91c6-b8e240f07195" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "9fa9985a-6415-4031-a588-9e484c929aeb" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:23:36 GMT" + "Thu, 30 Jul 2015 16:49:25 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -442,25 +386,26 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "6e9825f3-ceb2-4ce4-b073-1f4dcc7a253f" + "2df5ea6e-073d-493d-9637-234c7c3a0e85" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:49:26 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:23:38 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems\",\r\n \"value\": [\r\n {\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D28893E3B38210\",\r\n \"lastModified\": \"2015-07-09T19:23:37.4423568Z\",\r\n \"creationTime\": \"2015-07-09T19:23:37.4423568Z\",\r\n \"state\": \"deleting\",\r\n \"stateTransitionTime\": \"2015-07-09T19:23:39.1485788Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-09T19:23:37.4423568Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" @@ -469,16 +414,19 @@ "chunked" ], "request-id": [ - "d715d146-390b-438e-8413-ab93fbad8a2f" + "593ef146-6d5a-4fd5-a488-07265c2b14a0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "2df5ea6e-073d-493d-9637-234c7c3a0e85" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:23:38 GMT" + "Thu, 30 Jul 2015 16:49:26 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -487,49 +435,47 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/rdp?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9yZHA/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "bf1946e5-c632-445d-a357-4b98f7c6b163" + "850f256d-5a1f-4289-af40-f06eed8c6978" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:49:27 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:23:38 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D28893E3B38210\",\r\n \"lastModified\": \"2015-07-09T19:23:37.4423568Z\",\r\n \"creationTime\": \"2015-07-09T19:23:37.4423568Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:23:37.4423568Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "full address:s:168.61.44.120\r\nLoadBalanceInfo:s:Cookie: mstshash=TVM#TVM_IN_0", "ResponseHeaders": { "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:23:37 GMT" + "application/octet-stream" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "7d712550-57cb-4cc4-a94c-5e04c4b7da61" + "6b0c2de3-9509-4ebc-b949-80a8e09f448f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "850f256d-5a1f-4289-af40-f06eed8c6978" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:23:37 GMT" - ], - "ETag": [ - "0x8D28893E3B38210" + "Thu, 30 Jul 2015 16:49:26 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -538,46 +484,53 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "DELETE", + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/rdp?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9yZHA/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "4e3d9ba7-2778-4762-9d0a-a2a77c50d548" + "850f256d-5a1f-4289-af40-f06eed8c6978" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:49:27 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:23:38 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "", + "ResponseBody": "full address:s:168.61.44.120\r\nLoadBalanceInfo:s:Cookie: mstshash=TVM#TVM_IN_0", "ResponseHeaders": { + "Content-Type": [ + "application/octet-stream" + ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "b0f61d35-43e2-4c25-9a2b-38720ac9366b" + "6b0c2de3-9509-4ebc-b949-80a8e09f448f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "850f256d-5a1f-4289-af40-f06eed8c6978" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:23:38 GMT" + "Thu, 30 Jul 2015 16:49:26 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 202 + "StatusCode": 200 } ], "Names": {}, diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetVMFileByName.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetVMFileByName.json deleted file mode 100644 index 90a311ecc01e..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetVMFileByName.json +++ /dev/null @@ -1,290 +0,0 @@ -{ - "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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14937" - ], - "x-ms-request-id": [ - "c2961d48-3f18-4eb6-b6d0-15e35a284c7d" - ], - "x-ms-correlation-request-id": [ - "c2961d48-3f18-4eb6-b6d0-15e35a284c7d" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T192035Z:c2961d48-3f18-4eb6-b6d0-15e35a284c7d" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:20:35 GMT" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-version": [ - "2015-07-01" - ], - "User-Agent": [ - "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:20:37 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "39730de0-e727-4af6-b63a-3a3e15ab5461" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14965" - ], - "x-ms-request-id": [ - "fdba840d-6eef-4a4f-941c-19d089856c80" - ], - "x-ms-correlation-request-id": [ - "fdba840d-6eef-4a4f-941c-19d089856c80" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T192037Z:fdba840d-6eef-4a4f-941c-19d089856c80" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:20:36 GMT" - ], - "ETag": [ - "0x8D28893782E02AD" - ], - "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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "1482b401-fa80-4aed-972e-dfd138952086" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1182" - ], - "x-ms-request-id": [ - "2d294c49-0812-480c-b0d8-f46d8a5b2d77" - ], - "x-ms-correlation-request-id": [ - "2d294c49-0812-480c-b0d8-f46d8a5b2d77" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T192037Z:2d294c49-0812-480c-b0d8-f46d8a5b2d77" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:20:37 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/startup/stdout.txt?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L2ZpbGVzL3N0YXJ0dXAvc3Rkb3V0LnR4dD9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "HEAD", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "e129b747-fdd5-4fd6-86f0-b4381152ef7b" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:20:37 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "7" - ], - "Content-Type": [ - "application/octet-stream" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:08:36 GMT" - ], - "request-id": [ - "441b645a-4116-4a8b-a7bb-c9d0b956f6a6" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "ocp-creation-time": [ - "Thu, 09 Jul 2015 19:08:36 GMT" - ], - "ocp-batch-file-isdirectory": [ - "False" - ], - "ocp-batch-file-url": [ - "https%3A%2F%2Fpstests.batch.core.windows.net%2Fpools%2FtestPool%2Ftvms%2Ftvm-4155946844_1-20150709t190321z%2Ffiles%2Fstartup%2Fstdout.txt" - ], - "Date": [ - "Thu, 09 Jul 2015 19:20:37 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/startup/stdout.txt?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L2ZpbGVzL3N0YXJ0dXAvc3Rkb3V0LnR4dD9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "HEAD", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "2f017206-dbb6-4daa-b738-82699c04922f" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:20:38 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "7" - ], - "Content-Type": [ - "application/octet-stream" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:08:36 GMT" - ], - "request-id": [ - "9f70a0b5-7efa-4995-90a1-0d8aecd2311c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "ocp-creation-time": [ - "Thu, 09 Jul 2015 19:08:36 GMT" - ], - "ocp-batch-file-isdirectory": [ - "False" - ], - "ocp-batch-file-url": [ - "https%3A%2F%2Fpstests.batch.core.windows.net%2Fpools%2FtestPool%2Ftvms%2Ftvm-4155946844_1-20150709t190321z%2Ffiles%2Fstartup%2Fstdout.txt" - ], - "Date": [ - "Thu, 09 Jul 2015 19:20:38 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" - } -} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetVMFileContentByName.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetVMFileContentByName.json deleted file mode 100644 index e5cb7ad151ce..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetVMFileContentByName.json +++ /dev/null @@ -1,404 +0,0 @@ -{ - "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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14939" - ], - "x-ms-request-id": [ - "94fb1db2-14df-41a4-a9a3-c9c14c405951" - ], - "x-ms-correlation-request-id": [ - "94fb1db2-14df-41a4-a9a3-c9c14c405951" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191807Z:94fb1db2-14df-41a4-a9a3-c9c14c405951" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:18:07 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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:18:09 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "b6a29508-267a-4889-9eac-3e4ac3dfde40" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14943" - ], - "x-ms-request-id": [ - "fe962535-9599-49ea-82a9-7e66fb928e49" - ], - "x-ms-correlation-request-id": [ - "fe962535-9599-49ea-82a9-7e66fb928e49" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191808Z:fe962535-9599-49ea-82a9-7e66fb928e49" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:18:08 GMT" - ], - "ETag": [ - "0x8D28893200CCE9B" - ], - "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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "449927b4-b99d-4483-9f30-f12842ec00eb" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1171" - ], - "x-ms-request-id": [ - "9ee56171-4ba2-4760-88b6-67571a8a8383" - ], - "x-ms-correlation-request-id": [ - "9ee56171-4ba2-4760-88b6-67571a8a8383" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191809Z:9ee56171-4ba2-4760-88b6-67571a8a8383" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:18:08 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/startup/stdout.txt?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L2ZpbGVzL3N0YXJ0dXAvc3Rkb3V0LnR4dD9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "HEAD", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "e51a5691-901b-4628-883f-fbb4497507d1" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:18:08 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "7" - ], - "Content-Type": [ - "application/octet-stream" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:08:36 GMT" - ], - "request-id": [ - "bd309d44-4a2e-43c8-b132-05b6a6c8873f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "ocp-creation-time": [ - "Thu, 09 Jul 2015 19:08:36 GMT" - ], - "ocp-batch-file-isdirectory": [ - "False" - ], - "ocp-batch-file-url": [ - "https%3A%2F%2Fpstests.batch.core.windows.net%2Fpools%2FtestPool%2Ftvms%2Ftvm-4155946844_1-20150709t190321z%2Ffiles%2Fstartup%2Fstdout.txt" - ], - "Date": [ - "Thu, 09 Jul 2015 19:18:08 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/startup/stdout.txt?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L2ZpbGVzL3N0YXJ0dXAvc3Rkb3V0LnR4dD9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "HEAD", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "99ee3f6f-0723-4ace-89ae-1cbf17e8861b" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:18:09 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "7" - ], - "Content-Type": [ - "application/octet-stream" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:08:36 GMT" - ], - "request-id": [ - "7ec9d845-f676-433d-850a-c4bb2b1e85d7" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "ocp-creation-time": [ - "Thu, 09 Jul 2015 19:08:36 GMT" - ], - "ocp-batch-file-isdirectory": [ - "False" - ], - "ocp-batch-file-url": [ - "https%3A%2F%2Fpstests.batch.core.windows.net%2Fpools%2FtestPool%2Ftvms%2Ftvm-4155946844_1-20150709t190321z%2Ffiles%2Fstartup%2Fstdout.txt" - ], - "Date": [ - "Thu, 09 Jul 2015 19:18:10 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/startup/stdout.txt?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L2ZpbGVzL3N0YXJ0dXAvc3Rkb3V0LnR4dD9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "0417cbdc-6e5c-4f9c-90c5-b2bb545510db" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:18:09 GMT" - ] - }, - "ResponseBody": "hello\r\n", - "ResponseHeaders": { - "Content-Type": [ - "application/octet-stream" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:08:36 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "a4736254-b5a0-4e3c-9a48-158ed3092bcf" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "ocp-creation-time": [ - "Thu, 09 Jul 2015 19:08:36 GMT" - ], - "ocp-batch-file-isdirectory": [ - "False" - ], - "ocp-batch-file-url": [ - "https%3A%2F%2Fpstests.batch.core.windows.net%2Fpools%2FtestPool%2Ftvms%2Ftvm-4155946844_1-20150709t190321z%2Ffiles%2Fstartup%2Fstdout.txt" - ], - "Date": [ - "Thu, 09 Jul 2015 19:18:08 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/startup/stdout.txt?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L2ZpbGVzL3N0YXJ0dXAvc3Rkb3V0LnR4dD9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "22fd7cb4-e8c4-48dd-99ee-e9ac809a9063" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:18:10 GMT" - ] - }, - "ResponseBody": "hello\r\n", - "ResponseHeaders": { - "Content-Type": [ - "application/octet-stream" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:08:36 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "c10e6082-d0c3-4c23-83c5-b92c87039366" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "ocp-creation-time": [ - "Thu, 09 Jul 2015 19:08:36 GMT" - ], - "ocp-batch-file-isdirectory": [ - "False" - ], - "ocp-batch-file-url": [ - "https%3A%2F%2Fpstests.batch.core.windows.net%2Fpools%2FtestPool%2Ftvms%2Ftvm-4155946844_1-20150709t190321z%2Ffiles%2Fstartup%2Fstdout.txt" - ], - "Date": [ - "Thu, 09 Jul 2015 19:18:09 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" - } -} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetVMFileContentPipeline.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetVMFileContentPipeline.json deleted file mode 100644 index 1672a8f0ff40..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetVMFileContentPipeline.json +++ /dev/null @@ -1,290 +0,0 @@ -{ - "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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14978" - ], - "x-ms-request-id": [ - "64826166-ee26-4884-a4bc-d589451f4ee9" - ], - "x-ms-correlation-request-id": [ - "64826166-ee26-4884-a4bc-d589451f4ee9" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191830Z:64826166-ee26-4884-a4bc-d589451f4ee9" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:18:30 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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:18:31 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "e441b99c-3d71-4cf4-84fa-fbdb336b781b" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14938" - ], - "x-ms-request-id": [ - "46834423-53e4-42db-aab1-b74c3dbaa1ba" - ], - "x-ms-correlation-request-id": [ - "46834423-53e4-42db-aab1-b74c3dbaa1ba" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191831Z:46834423-53e4-42db-aab1-b74c3dbaa1ba" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:18:30 GMT" - ], - "ETag": [ - "0x8D288932D725D69" - ], - "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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "c4ea44f6-0c51-4bf9-b984-c3be390c89ba" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1187" - ], - "x-ms-request-id": [ - "8bd99a37-8f9e-4a6a-a806-7da45af9e8e3" - ], - "x-ms-correlation-request-id": [ - "8bd99a37-8f9e-4a6a-a806-7da45af9e8e3" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191831Z:8bd99a37-8f9e-4a6a-a806-7da45af9e8e3" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:18:31 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/startup/stdout.txt?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L2ZpbGVzL3N0YXJ0dXAvc3Rkb3V0LnR4dD9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "HEAD", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "48dc74cc-4424-4d9e-aae4-139a9b3ea0d4" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:18:31 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "7" - ], - "Content-Type": [ - "application/octet-stream" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:08:36 GMT" - ], - "request-id": [ - "2e47041e-d016-4cf2-ac40-2d3423fd6116" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "ocp-creation-time": [ - "Thu, 09 Jul 2015 19:08:36 GMT" - ], - "ocp-batch-file-isdirectory": [ - "False" - ], - "ocp-batch-file-url": [ - "https%3A%2F%2Fpstests.batch.core.windows.net%2Fpools%2FtestPool%2Ftvms%2Ftvm-4155946844_1-20150709t190321z%2Ffiles%2Fstartup%2Fstdout.txt" - ], - "Date": [ - "Thu, 09 Jul 2015 19:18:32 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/startup/stdout.txt?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L2ZpbGVzL3N0YXJ0dXAvc3Rkb3V0LnR4dD9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "481882d7-5e90-4d87-ac8c-56cd46ac89b3" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:18:32 GMT" - ] - }, - "ResponseBody": "hello\r\n", - "ResponseHeaders": { - "Content-Type": [ - "application/octet-stream" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:08:36 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "6a6b5479-9345-4974-8c1e-37e33878add3" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "ocp-creation-time": [ - "Thu, 09 Jul 2015 19:08:36 GMT" - ], - "ocp-batch-file-isdirectory": [ - "False" - ], - "ocp-batch-file-url": [ - "https%3A%2F%2Fpstests.batch.core.windows.net%2Fpools%2FtestPool%2Ftvms%2Ftvm-4155946844_1-20150709t190321z%2Ffiles%2Fstartup%2Fstdout.txt" - ], - "Date": [ - "Thu, 09 Jul 2015 19:18:32 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" - } -} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListAllNodeFilesByComputeNode.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListAllNodeFilesByComputeNode.json new file mode 100644 index 000000000000..e26b81557078 --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListAllNodeFilesByComputeNode.json @@ -0,0 +1,687 @@ +{ + "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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14977" + ], + "x-ms-request-id": [ + "880627b0-d52e-459f-a855-a1f6adab20bd" + ], + "x-ms-correlation-request-id": [ + "880627b0-d52e-459f-a855-a1f6adab20bd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170017Z:880627b0-d52e-459f-a855-a1f6adab20bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:16 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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-request-id": [ + "486a360f-0278-4c25-a606-189741e56d37" + ], + "x-ms-correlation-request-id": [ + "486a360f-0278-4c25-a606-189741e56d37" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170019Z:486a360f-0278-4c25-a606-189741e56d37" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:18 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:00:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "6e2da719-ca7e-46e6-8fa2-597cbd7cb7a7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14943" + ], + "x-ms-request-id": [ + "b23359bd-c711-4e37-8e78-d20ec06098e5" + ], + "x-ms-correlation-request-id": [ + "b23359bd-c711-4e37-8e78-d20ec06098e5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170018Z:b23359bd-c711-4e37-8e78-d20ec06098e5" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:17 GMT" + ], + "ETag": [ + "0x8D2990058B2F6D9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:00:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "e32a0652-5b04-4f46-b4b1-97ba777a8b38" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14942" + ], + "x-ms-request-id": [ + "6a130ed6-f714-470d-87c6-e23e974c7a02" + ], + "x-ms-correlation-request-id": [ + "6a130ed6-f714-470d-87c6-e23e974c7a02" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170019Z:6a130ed6-f714-470d-87c6-e23e974c7a02" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:18 GMT" + ], + "ETag": [ + "0x8D29900592F25C2" + ], + "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": [ + "2fec0fec-f645-4702-b24b-b5d4f798f285" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1181" + ], + "x-ms-request-id": [ + "45f1b7eb-ac03-4adc-8349-be9e3170bd05" + ], + "x-ms-correlation-request-id": [ + "45f1b7eb-ac03-4adc-8349-be9e3170bd05" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170018Z:45f1b7eb-ac03-4adc-8349-be9e3170bd05" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:18 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": [ + "c7aa75d3-f45c-45d2-b8d4-d1b5987c1db1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1180" + ], + "x-ms-request-id": [ + "72a2531c-2597-4a2c-86a4-3fca11a0490c" + ], + "x-ms-correlation-request-id": [ + "72a2531c-2597-4a2c-86a4-3fca11a0490c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170019Z:72a2531c-2597-4a2c-86a4-3fca11a0490c" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:18 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "35d5dbf0-7147-451e-be50-9a899b71032a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 6,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c876224e-9396-44bd-9e98-a35b0a57a5b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "35d5dbf0-7147-451e-be50-9a899b71032a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:17 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files?recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcz9yZWN1cnNpdmU9ZmFsc2UmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8c8ade45-c880-4cc9-874f-84c57d04d124" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:19 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"shared\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/shared\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"startup\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"workitems\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/workitems\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "634378c1-7921-4d89-bdb9-0c1afe6104ce" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8c8ade45-c880-4cc9-874f-84c57d04d124" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:18 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files?recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcz9yZWN1cnNpdmU9ZmFsc2UmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "a1a0ba16-1cf4-4437-add0-8b381aa90965" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:19 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"shared\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/shared\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"startup\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"workitems\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/workitems\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5c9894d2-f763-457b-89f5-4f3adaf8a854" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "a1a0ba16-1cf4-4437-add0-8b381aa90965" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:18 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files?recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcz9yZWN1cnNpdmU9ZmFsc2UmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "a1a0ba16-1cf4-4437-add0-8b381aa90965" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:19 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"shared\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/shared\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"startup\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"workitems\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/workitems\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5c9894d2-f763-457b-89f5-4f3adaf8a854" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "a1a0ba16-1cf4-4437-add0-8b381aa90965" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:18 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files?recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcz9yZWN1cnNpdmU9ZmFsc2UmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "a1a0ba16-1cf4-4437-add0-8b381aa90965" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:19 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"shared\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/shared\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"startup\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"workitems\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/workitems\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5c9894d2-f763-457b-89f5-4f3adaf8a854" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "a1a0ba16-1cf4-4437-add0-8b381aa90965" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:18 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "65e8bd2f-1545-475a-b5df-21987b726bf2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:19 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 6,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "1e1f5d1b-1d36-47b2-adea-e531967be439" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "65e8bd2f-1545-475a-b5df-21987b726bf2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:18 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "65e8bd2f-1545-475a-b5df-21987b726bf2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:19 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 6,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "1e1f5d1b-1d36-47b2-adea-e531967be439" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "65e8bd2f-1545-475a-b5df-21987b726bf2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:18 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListAllNodeFilesByTask.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListAllNodeFilesByTask.json new file mode 100644 index 000000000000..381cf03ef1cd --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListAllNodeFilesByTask.json @@ -0,0 +1,1485 @@ +{ + "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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-request-id": [ + "3cf17b05-b7de-4062-9745-ae62d72a30e5" + ], + "x-ms-correlation-request-id": [ + "3cf17b05-b7de-4062-9745-ae62d72a30e5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165952Z:3cf17b05-b7de-4062-9745-ae62d72a30e5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:51 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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-request-id": [ + "f47ab97c-3a03-4150-836a-5b9d0769caa5" + ], + "x-ms-correlation-request-id": [ + "f47ab97c-3a03-4150-836a-5b9d0769caa5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165956Z:f47ab97c-3a03-4150-836a-5b9d0769caa5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:56 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:59:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "52e5566d-c6ef-435a-bcba-4ac454d1ef67" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14945" + ], + "x-ms-request-id": [ + "6207ac1a-96f2-4a98-bc67-ea3f8ca2b844" + ], + "x-ms-correlation-request-id": [ + "6207ac1a-96f2-4a98-bc67-ea3f8ca2b844" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165952Z:6207ac1a-96f2-4a98-bc67-ea3f8ca2b844" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:52 GMT" + ], + "ETag": [ + "0x8D2990049912ADB" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:59:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "69bc590c-9017-4409-b7e1-289073b7dfc3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14944" + ], + "x-ms-request-id": [ + "92bd9bbe-6f38-48ee-948d-b24d475be6bd" + ], + "x-ms-correlation-request-id": [ + "92bd9bbe-6f38-48ee-948d-b24d475be6bd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165956Z:92bd9bbe-6f38-48ee-948d-b24d475be6bd" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:55 GMT" + ], + "ETag": [ + "0x8D299004B9176F3" + ], + "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": [ + "d8747f55-c8d6-4124-86c0-71da45396af9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1183" + ], + "x-ms-request-id": [ + "fa24cd04-8cc5-4dcf-95f3-2a15325db935" + ], + "x-ms-correlation-request-id": [ + "fa24cd04-8cc5-4dcf-95f3-2a15325db935" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165952Z:fa24cd04-8cc5-4dcf-95f3-2a15325db935" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:52 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": [ + "6963b336-4ff6-4c7d-bf43-4baa76ebd1cc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1182" + ], + "x-ms-request-id": [ + "00aa4164-ade0-4697-a98d-2222b32406f4" + ], + "x-ms-correlation-request-id": [ + "00aa4164-ade0-4697-a98d-2222b32406f4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165956Z:00aa4164-ade0-4697-a98d-2222b32406f4" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:55 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\": \"listNodeFilesByTaskJob\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "105" + ], + "client-request-id": [ + "a286a0c6-8b2b-476a-8ad4-9b3be3294bee" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59: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": [ + "Thu, 30 Jul 2015 16:59:53 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "1f477513-06c5-4d4c-b5bf-df795ff86c65" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "a286a0c6-8b2b-476a-8ad4-9b3be3294bee" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:53 GMT" + ], + "ETag": [ + "0x8D299004A20E5EB" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/listNodeFilesByTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlc0J5VGFza0pvYi90YXNrcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "83" + ], + "client-request-id": [ + "f58fee1d-d0bc-4e8d-99ed-72e6cd2d8ed1" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:53 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 16:59:53 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "1cca16ed-74d1-47c3-a844-3036c5cd771a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f58fee1d-d0bc-4e8d-99ed-72e6cd2d8ed1" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/listNodeFilesByTaskJob/tasks/testTask" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:53 GMT" + ], + "ETag": [ + "0x8D299004A450FC7" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/listNodeFilesByTaskJob/tasks/testTask" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/listNodeFilesByTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlc0J5VGFza0pvYi90YXNrcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "83" + ], + "client-request-id": [ + "f58fee1d-d0bc-4e8d-99ed-72e6cd2d8ed1" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:53 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 16:59:53 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "1cca16ed-74d1-47c3-a844-3036c5cd771a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f58fee1d-d0bc-4e8d-99ed-72e6cd2d8ed1" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/listNodeFilesByTaskJob/tasks/testTask" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:53 GMT" + ], + "ETag": [ + "0x8D299004A450FC7" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/listNodeFilesByTaskJob/tasks/testTask" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/listNodeFilesByTaskJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlc0J5VGFza0pvYi90YXNrcy90ZXN0VGFzaz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ad8c87dc-93d0-49ff-8e39-baf7da047319" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:53 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#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFilesByTaskJob/tasks/testTask\",\r\n \"eTag\": \"0x8D299004A450FC7\",\r\n \"creationTime\": \"2015-07-30T16:59:53.7750983Z\",\r\n \"lastModified\": \"2015-07-30T16:59:53.7750983Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:59:53.7750983Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:59:53 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "34d0fe62-8496-4473-b2e8-cab657c56e40" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ad8c87dc-93d0-49ff-8e39-baf7da047319" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:53 GMT" + ], + "ETag": [ + "0x8D299004A450FC7" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFilesByTaskJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlc0J5VGFza0pvYi90YXNrcy90ZXN0VGFzaz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ad8c87dc-93d0-49ff-8e39-baf7da047319" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:53 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#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFilesByTaskJob/tasks/testTask\",\r\n \"eTag\": \"0x8D299004A450FC7\",\r\n \"creationTime\": \"2015-07-30T16:59:53.7750983Z\",\r\n \"lastModified\": \"2015-07-30T16:59:53.7750983Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:59:53.7750983Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:59:53 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "34d0fe62-8496-4473-b2e8-cab657c56e40" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ad8c87dc-93d0-49ff-8e39-baf7da047319" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:53 GMT" + ], + "ETag": [ + "0x8D299004A450FC7" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFilesByTaskJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlc0J5VGFza0pvYi90YXNrcy90ZXN0VGFzaz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ad8c87dc-93d0-49ff-8e39-baf7da047319" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:53 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#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFilesByTaskJob/tasks/testTask\",\r\n \"eTag\": \"0x8D299004A450FC7\",\r\n \"creationTime\": \"2015-07-30T16:59:53.7750983Z\",\r\n \"lastModified\": \"2015-07-30T16:59:53.7750983Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:59:53.7750983Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:59:53 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "34d0fe62-8496-4473-b2e8-cab657c56e40" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ad8c87dc-93d0-49ff-8e39-baf7da047319" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:53 GMT" + ], + "ETag": [ + "0x8D299004A450FC7" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFilesByTaskJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlc0J5VGFza0pvYi90YXNrcy90ZXN0VGFzaz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "030f8e4b-71d6-46d0-8921-9956051dd7b9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:56 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFilesByTaskJob/tasks/testTask\",\r\n \"eTag\": \"0x8D299004A450FC7\",\r\n \"creationTime\": \"2015-07-30T16:59:53.7750983Z\",\r\n \"lastModified\": \"2015-07-30T16:59:53.7750983Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T16:59:54.95917Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-30T16:59:54.8261798Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T16:59:54.8261798Z\",\r\n \"endTime\": \"2015-07-30T16:59:54.95917Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_1-20150730t163817z\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:59:53 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6533f49e-0ce7-426f-85cb-7a88c1776398" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "030f8e4b-71d6-46d0-8921-9956051dd7b9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:56 GMT" + ], + "ETag": [ + "0x8D299004A450FC7" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFilesByTaskJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlc0J5VGFza0pvYi90YXNrcy90ZXN0VGFzaz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "030f8e4b-71d6-46d0-8921-9956051dd7b9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:56 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFilesByTaskJob/tasks/testTask\",\r\n \"eTag\": \"0x8D299004A450FC7\",\r\n \"creationTime\": \"2015-07-30T16:59:53.7750983Z\",\r\n \"lastModified\": \"2015-07-30T16:59:53.7750983Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T16:59:54.95917Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-30T16:59:54.8261798Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T16:59:54.8261798Z\",\r\n \"endTime\": \"2015-07-30T16:59:54.95917Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_1-20150730t163817z\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:59:53 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6533f49e-0ce7-426f-85cb-7a88c1776398" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "030f8e4b-71d6-46d0-8921-9956051dd7b9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:56 GMT" + ], + "ETag": [ + "0x8D299004A450FC7" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFilesByTaskJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlc0J5VGFza0pvYi90YXNrcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0VGFzayUyNyYkc2VsZWN0PWlkJTJDc3RhdGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c4300980-3d11-4b50-b72e-1dbd2f58949d" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:53 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "273a49bb-568b-4546-8a79-269d23a58195" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c4300980-3d11-4b50-b72e-1dbd2f58949d" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:53 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFilesByTaskJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlc0J5VGFza0pvYi90YXNrcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0VGFzayUyNyYkc2VsZWN0PWlkJTJDc3RhdGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c4300980-3d11-4b50-b72e-1dbd2f58949d" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:53 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "273a49bb-568b-4546-8a79-269d23a58195" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c4300980-3d11-4b50-b72e-1dbd2f58949d" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:53 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFilesByTaskJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlc0J5VGFza0pvYi90YXNrcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0VGFzayUyNyYkc2VsZWN0PWlkJTJDc3RhdGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c4300980-3d11-4b50-b72e-1dbd2f58949d" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:53 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "273a49bb-568b-4546-8a79-269d23a58195" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c4300980-3d11-4b50-b72e-1dbd2f58949d" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:53 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFilesByTaskJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlc0J5VGFza0pvYi90YXNrcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0VGFzayUyNyYkc2VsZWN0PWlkJTJDc3RhdGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "54b878b3-a411-4eba-97c2-52f2d1cfd70c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59: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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "554951d3-5126-47d7-b9a3-2420d089c60a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "54b878b3-a411-4eba-97c2-52f2d1cfd70c" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFilesByTaskJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlc0J5VGFza0pvYi90YXNrcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0VGFzayUyNyYkc2VsZWN0PWlkJTJDc3RhdGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "54b878b3-a411-4eba-97c2-52f2d1cfd70c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59: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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "554951d3-5126-47d7-b9a3-2420d089c60a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "54b878b3-a411-4eba-97c2-52f2d1cfd70c" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFilesByTaskJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlc0J5VGFza0pvYi90YXNrcz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0VGFzayUyNyYkc2VsZWN0PWlkJTJDc3RhdGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "54b878b3-a411-4eba-97c2-52f2d1cfd70c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59: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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "554951d3-5126-47d7-b9a3-2420d089c60a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "54b878b3-a411-4eba-97c2-52f2d1cfd70c" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFilesByTaskJob/tasks/testTask/files?recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlc0J5VGFza0pvYi90YXNrcy90ZXN0VGFzay9maWxlcz9yZWN1cnNpdmU9ZmFsc2UmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6333d566-8f14-45bf-804b-81619a225cb5" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:56 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"ProcessEnv.cmd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFilesByTaskJob/tasks/testTask/files/ProcessEnv.cmd\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:59:54.9361683Z\",\r\n \"lastModified\": \"2015-07-30T16:59:54.9361683Z\",\r\n \"contentLength\": \"2432\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stderr.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFilesByTaskJob/tasks/testTask/files/stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:59:54.8421649Z\",\r\n \"lastModified\": \"2015-07-30T16:59:54.8421649Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stdout.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFilesByTaskJob/tasks/testTask/files/stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:59:54.8411645Z\",\r\n \"lastModified\": \"2015-07-30T16:59:54.9481697Z\",\r\n \"contentLength\": \"414\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"wd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFilesByTaskJob/tasks/testTask/files/wd\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "df9d9538-3a15-4324-bf11-4ee2f86c37bf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6333d566-8f14-45bf-804b-81619a225cb5" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFilesByTaskJob/tasks/testTask/files?recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlc0J5VGFza0pvYi90YXNrcy90ZXN0VGFzay9maWxlcz9yZWN1cnNpdmU9ZmFsc2UmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d447f09d-3f09-47f2-af1f-b6449b24fdf4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:56 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"ProcessEnv.cmd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFilesByTaskJob/tasks/testTask/files/ProcessEnv.cmd\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:59:54.9361683Z\",\r\n \"lastModified\": \"2015-07-30T16:59:54.9361683Z\",\r\n \"contentLength\": \"2432\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stderr.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFilesByTaskJob/tasks/testTask/files/stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:59:54.8421649Z\",\r\n \"lastModified\": \"2015-07-30T16:59:54.8421649Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stdout.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFilesByTaskJob/tasks/testTask/files/stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:59:54.8411645Z\",\r\n \"lastModified\": \"2015-07-30T16:59:54.9481697Z\",\r\n \"contentLength\": \"414\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"wd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFilesByTaskJob/tasks/testTask/files/wd\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "acd369a1-474b-446c-9cd9-90a2b6333cce" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d447f09d-3f09-47f2-af1f-b6449b24fdf4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFilesByTaskJob/tasks/testTask/files?recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlc0J5VGFza0pvYi90YXNrcy90ZXN0VGFzay9maWxlcz9yZWN1cnNpdmU9ZmFsc2UmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d447f09d-3f09-47f2-af1f-b6449b24fdf4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:56 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"ProcessEnv.cmd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFilesByTaskJob/tasks/testTask/files/ProcessEnv.cmd\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:59:54.9361683Z\",\r\n \"lastModified\": \"2015-07-30T16:59:54.9361683Z\",\r\n \"contentLength\": \"2432\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stderr.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFilesByTaskJob/tasks/testTask/files/stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:59:54.8421649Z\",\r\n \"lastModified\": \"2015-07-30T16:59:54.8421649Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stdout.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFilesByTaskJob/tasks/testTask/files/stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:59:54.8411645Z\",\r\n \"lastModified\": \"2015-07-30T16:59:54.9481697Z\",\r\n \"contentLength\": \"414\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"wd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFilesByTaskJob/tasks/testTask/files/wd\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "acd369a1-474b-446c-9cd9-90a2b6333cce" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d447f09d-3f09-47f2-af1f-b6449b24fdf4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFilesByTaskJob/tasks/testTask/files?recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlc0J5VGFza0pvYi90YXNrcy90ZXN0VGFzay9maWxlcz9yZWN1cnNpdmU9ZmFsc2UmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d447f09d-3f09-47f2-af1f-b6449b24fdf4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:56 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"ProcessEnv.cmd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFilesByTaskJob/tasks/testTask/files/ProcessEnv.cmd\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:59:54.9361683Z\",\r\n \"lastModified\": \"2015-07-30T16:59:54.9361683Z\",\r\n \"contentLength\": \"2432\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stderr.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFilesByTaskJob/tasks/testTask/files/stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:59:54.8421649Z\",\r\n \"lastModified\": \"2015-07-30T16:59:54.8421649Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stdout.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFilesByTaskJob/tasks/testTask/files/stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:59:54.8411645Z\",\r\n \"lastModified\": \"2015-07-30T16:59:54.9481697Z\",\r\n \"contentLength\": \"414\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"wd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFilesByTaskJob/tasks/testTask/files/wd\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "acd369a1-474b-446c-9cd9-90a2b6333cce" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d447f09d-3f09-47f2-af1f-b6449b24fdf4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:56 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFilesByTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlc0J5VGFza0pvYj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "18c16e0e-1250-4ac6-afd2-fe8787ebd003" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:57 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": [ + "036c5064-f3a2-4fac-a144-06a1cdbf9657" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "18c16e0e-1250-4ac6-afd2-fe8787ebd003" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:57 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/listNodeFilesByTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlc0J5VGFza0pvYj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "18c16e0e-1250-4ac6-afd2-fe8787ebd003" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:57 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": [ + "036c5064-f3a2-4fac-a144-06a1cdbf9657" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "18c16e0e-1250-4ac6-afd2-fe8787ebd003" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:57 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/listNodeFilesByTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlc0J5VGFza0pvYj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "18c16e0e-1250-4ac6-afd2-fe8787ebd003" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:57 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": [ + "036c5064-f3a2-4fac-a144-06a1cdbf9657" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "18c16e0e-1250-4ac6-afd2-fe8787ebd003" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:57 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/listNodeFilesByTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlc0J5VGFza0pvYj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "18c16e0e-1250-4ac6-afd2-fe8787ebd003" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:57 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": [ + "036c5064-f3a2-4fac-a144-06a1cdbf9657" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "18c16e0e-1250-4ac6-afd2-fe8787ebd003" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:57 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/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListAllVMFiles.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListAllVMFiles.json deleted file mode 100644 index bbe3e7bda23e..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListAllVMFiles.json +++ /dev/null @@ -1,311 +0,0 @@ -{ - "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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14978" - ], - "x-ms-request-id": [ - "1dd5ab89-c1b1-403f-88b8-ef4940183442" - ], - "x-ms-correlation-request-id": [ - "1dd5ab89-c1b1-403f-88b8-ef4940183442" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191429Z:1dd5ab89-c1b1-403f-88b8-ef4940183442" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:14:29 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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:14:31 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "75e929a9-d8f5-4a77-add8-5202fcb657ed" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14943" - ], - "x-ms-request-id": [ - "77e4ab52-191e-48fa-b4fe-3323c9f3ba4b" - ], - "x-ms-correlation-request-id": [ - "77e4ab52-191e-48fa-b4fe-3323c9f3ba4b" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191431Z:77e4ab52-191e-48fa-b4fe-3323c9f3ba4b" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:14:30 GMT" - ], - "ETag": [ - "0x8D288929E0C8B9D" - ], - "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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "dfe070af-b67d-45bd-a9f9-96a0f18b842a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1188" - ], - "x-ms-request-id": [ - "2e579f57-ca48-4a25-8652-95f597aae043" - ], - "x-ms-correlation-request-id": [ - "2e579f57-ca48-4a25-8652-95f597aae043" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191431Z:2e579f57-ca48-4a25-8652-95f597aae043" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:14:30 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files?api-version=2014-10-01.1.0&recursive=False", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L2ZpbGVzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4wJnJlY3Vyc2l2ZT1GYWxzZQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "592c42a9-6da8-4d0c-add5-f0fd2a7b3e65" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:14:31 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"shared\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/shared\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"startup\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/startup\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"workitems\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/workitems\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "c1fd0bbf-0594-44b0-a14f-d78d95eeb6de" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:14:32 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files?api-version=2014-10-01.1.0&recursive=False", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L2ZpbGVzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4wJnJlY3Vyc2l2ZT1GYWxzZQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "dc6bc935-854a-4872-9c83-aa060469562c" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:14:32 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"shared\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/shared\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"startup\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/startup\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"workitems\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/workitems\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "402f550f-aaf0-4540-a2f1-09f296981c1b" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:14:31 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6P2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "6cb12a57-1d3b-43b9-ad57-d2cdbe4b2ec6" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:14:31 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tvms/@Element\",\r\n \"name\": \"tvm-4155946844_1-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-09T19:08:35.5466164Z\",\r\n \"lastBootTime\": \"2015-07-09T19:08:35.4786184Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.28.116\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 6,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-09T19:08:35.5776188Z\",\r\n \"endTime\": \"2015-07-09T19:08:36.4942084Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "06fe22d9-c2d3-4ea3-b6f2-b53e0d7977d7" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:14:32 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" - } -} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFileByComputeNodePipeline.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFileByComputeNodePipeline.json new file mode 100644 index 000000000000..f2d9633dead8 --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFileByComputeNodePipeline.json @@ -0,0 +1,540 @@ +{ + "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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-request-id": [ + "e19971aa-c941-4c51-ae44-72fce05916a3" + ], + "x-ms-correlation-request-id": [ + "e19971aa-c941-4c51-ae44-72fce05916a3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165846Z:e19971aa-c941-4c51-ae44-72fce05916a3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:46 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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-request-id": [ + "408022c8-bd08-46cd-b0ed-17d8003bf22b" + ], + "x-ms-correlation-request-id": [ + "408022c8-bd08-46cd-b0ed-17d8003bf22b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165848Z:408022c8-bd08-46cd-b0ed-17d8003bf22b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:47 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:58:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "96a8f621-462a-4f7d-9924-4c36ad3090f0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14977" + ], + "x-ms-request-id": [ + "2a19298e-b9f4-417e-8672-f44b6cc3bd87" + ], + "x-ms-correlation-request-id": [ + "2a19298e-b9f4-417e-8672-f44b6cc3bd87" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165847Z:2a19298e-b9f4-417e-8672-f44b6cc3bd87" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:47 GMT" + ], + "ETag": [ + "0x8D2990022FD4D41" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:58:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "19bd376d-2316-4854-b95a-fb99604488a2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-request-id": [ + "a3c30d9d-a75e-466b-83f7-de2cc8f2326d" + ], + "x-ms-correlation-request-id": [ + "a3c30d9d-a75e-466b-83f7-de2cc8f2326d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165848Z:a3c30d9d-a75e-466b-83f7-de2cc8f2326d" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:48 GMT" + ], + "ETag": [ + "0x8D2990023912F91" + ], + "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": [ + "d615e61a-0951-4e87-b4d6-0f1ac9510a59" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1185" + ], + "x-ms-request-id": [ + "2a56d670-89c6-4fe8-bb1a-a4c59f76ec2b" + ], + "x-ms-correlation-request-id": [ + "2a56d670-89c6-4fe8-bb1a-a4c59f76ec2b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165848Z:2a56d670-89c6-4fe8-bb1a-a4c59f76ec2b" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:47 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": [ + "cce0148e-c6b4-4a86-aa0a-767f7a15cf5f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1184" + ], + "x-ms-request-id": [ + "1458fa30-bbf7-4481-8bd7-ced4b8e86b87" + ], + "x-ms-correlation-request-id": [ + "1458fa30-bbf7-4481-8bd7-ced4b8e86b87" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165849Z:1458fa30-bbf7-4481-8bd7-ced4b8e86b87" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "fc0889f6-5213-4da2-bcf5-aba15898eb00" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58: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#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 4,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "0ea08148-e022-43c4-85c2-005779dcf24c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "fc0889f6-5213-4da2-bcf5-aba15898eb00" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "022b69c9-f36f-401d-8388-327bb1bb40b7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58: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#nodes/@Element\",\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 4,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "89735f79-93fb-4bd1-a53b-84ffd31548a4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "022b69c9-f36f-401d-8388-327bb1bb40b7" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files?recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcz9yZWN1cnNpdmU9ZmFsc2UmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bf6f840c-ac4a-4c92-a316-01d2158a9631" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:49 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#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"shared\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/shared\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"startup\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"workitems\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/workitems\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "61e5792f-967e-46b8-ba92-1fd41786384c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bf6f840c-ac4a-4c92-a316-01d2158a9631" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files?recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcz9yZWN1cnNpdmU9ZmFsc2UmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bf6f840c-ac4a-4c92-a316-01d2158a9631" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:49 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#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"shared\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/shared\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"startup\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"workitems\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/workitems\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "61e5792f-967e-46b8-ba92-1fd41786384c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bf6f840c-ac4a-4c92-a316-01d2158a9631" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFileByTaskPipeline.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFileByTaskPipeline.json new file mode 100644 index 000000000000..1fd33ad49c76 --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFileByTaskPipeline.json @@ -0,0 +1,1938 @@ +{ + "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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14951" + ], + "x-ms-request-id": [ + "2d34f520-2c6c-4b57-bbb7-fcd8f0c30138" + ], + "x-ms-correlation-request-id": [ + "2d34f520-2c6c-4b57-bbb7-fcd8f0c30138" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165823Z:2d34f520-2c6c-4b57-bbb7-fcd8f0c30138" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:22 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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14950" + ], + "x-ms-request-id": [ + "61e25930-0163-4874-8652-255def0e1d34" + ], + "x-ms-correlation-request-id": [ + "61e25930-0163-4874-8652-255def0e1d34" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165827Z:61e25930-0163-4874-8652-255def0e1d34" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:27 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:58:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "db13e5f7-cf86-4e1c-bc1e-02a964b63ea6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-request-id": [ + "c75c4638-8c9c-4a95-b041-cd8d5afff682" + ], + "x-ms-correlation-request-id": [ + "c75c4638-8c9c-4a95-b041-cd8d5afff682" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165824Z:c75c4638-8c9c-4a95-b041-cd8d5afff682" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:23 GMT" + ], + "ETag": [ + "0x8D2990014E4E38B" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:58:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "e2e214de-3e43-413c-abbf-1966e9fd2d2e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-request-id": [ + "f4c31a47-6e81-427b-81f5-dc8141dcc0ef" + ], + "x-ms-correlation-request-id": [ + "f4c31a47-6e81-427b-81f5-dc8141dcc0ef" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165828Z:f4c31a47-6e81-427b-81f5-dc8141dcc0ef" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:28 GMT" + ], + "ETag": [ + "0x8D299001700428F" + ], + "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": [ + "b44e1ef3-3944-48de-a4f6-e32ac02f10b3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1187" + ], + "x-ms-request-id": [ + "980a9d03-9e70-424e-9428-9646b62bcc13" + ], + "x-ms-correlation-request-id": [ + "980a9d03-9e70-424e-9428-9646b62bcc13" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165824Z:980a9d03-9e70-424e-9428-9646b62bcc13" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:23 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": [ + "bd72f81c-92bd-4d6c-94b3-2c8e6ec9c5a9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1186" + ], + "x-ms-request-id": [ + "d4172351-61c1-47fc-9f24-b186548d7487" + ], + "x-ms-correlation-request-id": [ + "d4172351-61c1-47fc-9f24-b186548d7487" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165828Z:d4172351-61c1-47fc-9f24-b186548d7487" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:28 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\": \"nodeFileByTaskPipe\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "101" + ], + "client-request-id": [ + "39819f6f-66af-4e9f-b0b1-331656d8098b" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:24 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 16:58:25 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "05c9c915-c302-4861-afe3-5d8727fec5a1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "39819f6f-66af-4e9f-b0b1-331656d8098b" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:24 GMT" + ], + "ETag": [ + "0x8D29900157C3DA9" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "83" + ], + "client-request-id": [ + "0330c4e4-296f-4b09-bc19-93e35e78bf8e" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 16:58:25 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "2dea35a9-c907-4476-a1f8-fd164f153657" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "0330c4e4-296f-4b09-bc19-93e35e78bf8e" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:25 GMT" + ], + "ETag": [ + "0x8D2990015780AF6" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "83" + ], + "client-request-id": [ + "0330c4e4-296f-4b09-bc19-93e35e78bf8e" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 16:58:25 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "2dea35a9-c907-4476-a1f8-fd164f153657" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "0330c4e4-296f-4b09-bc19-93e35e78bf8e" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:25 GMT" + ], + "ETag": [ + "0x8D2990015780AF6" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlL3Rhc2tzL3Rlc3RUYXNrP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c15a5d1d-4bef-4060-b1cf-125036274d65" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask\",\r\n \"eTag\": \"0x8D2990015780AF6\",\r\n \"creationTime\": \"2015-07-30T16:58:25.1899638Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.1899638Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:58:25.1899638Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:58:25 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "2b36e661-195c-4db1-9ebc-e076653c86c4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c15a5d1d-4bef-4060-b1cf-125036274d65" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:25 GMT" + ], + "ETag": [ + "0x8D2990015780AF6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlL3Rhc2tzL3Rlc3RUYXNrP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c15a5d1d-4bef-4060-b1cf-125036274d65" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask\",\r\n \"eTag\": \"0x8D2990015780AF6\",\r\n \"creationTime\": \"2015-07-30T16:58:25.1899638Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.1899638Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:58:25.1899638Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:58:25 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "2b36e661-195c-4db1-9ebc-e076653c86c4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c15a5d1d-4bef-4060-b1cf-125036274d65" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:25 GMT" + ], + "ETag": [ + "0x8D2990015780AF6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlL3Rhc2tzL3Rlc3RUYXNrP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c15a5d1d-4bef-4060-b1cf-125036274d65" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask\",\r\n \"eTag\": \"0x8D2990015780AF6\",\r\n \"creationTime\": \"2015-07-30T16:58:25.1899638Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.1899638Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:58:25.1899638Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:58:25 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "2b36e661-195c-4db1-9ebc-e076653c86c4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c15a5d1d-4bef-4060-b1cf-125036274d65" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:25 GMT" + ], + "ETag": [ + "0x8D2990015780AF6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlL3Rhc2tzL3Rlc3RUYXNrP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1a6ecfae-015f-4b93-b98b-ef750064f51b" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:28 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#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask\",\r\n \"eTag\": \"0x8D2990015780AF6\",\r\n \"creationTime\": \"2015-07-30T16:58:25.1899638Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.1899638Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T16:58:25.7852556Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-30T16:58:25.664251Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T16:58:25.664251Z\",\r\n \"endTime\": \"2015-07-30T16:58:25.7852556Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_1-20150730t163817z\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:58:25 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b65665bb-ede1-453a-8bcb-7db2787a1e87" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1a6ecfae-015f-4b93-b98b-ef750064f51b" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:27 GMT" + ], + "ETag": [ + "0x8D2990015780AF6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f1b3e103-6fdf-46ad-a732-bb823acc9426" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4182bc74-8ca5-4c61-94c8-d990906f753f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f1b3e103-6fdf-46ad-a732-bb823acc9426" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:25 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f1b3e103-6fdf-46ad-a732-bb823acc9426" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4182bc74-8ca5-4c61-94c8-d990906f753f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f1b3e103-6fdf-46ad-a732-bb823acc9426" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:25 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f1b3e103-6fdf-46ad-a732-bb823acc9426" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4182bc74-8ca5-4c61-94c8-d990906f753f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f1b3e103-6fdf-46ad-a732-bb823acc9426" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:25 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "920131a5-f619-40da-8b3b-51d3cf917bc0" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:27 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "39f070a6-209c-45ee-9e4c-e5952eb69515" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "920131a5-f619-40da-8b3b-51d3cf917bc0" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:27 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "920131a5-f619-40da-8b3b-51d3cf917bc0" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:27 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "39f070a6-209c-45ee-9e4c-e5952eb69515" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "920131a5-f619-40da-8b3b-51d3cf917bc0" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:27 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "920131a5-f619-40da-8b3b-51d3cf917bc0" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:27 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "39f070a6-209c-45ee-9e4c-e5952eb69515" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "920131a5-f619-40da-8b3b-51d3cf917bc0" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:27 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe/tasks/testTask/files?recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlL3Rhc2tzL3Rlc3RUYXNrL2ZpbGVzP3JlY3Vyc2l2ZT1mYWxzZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d8137951-3e00-49fb-8ab0-40168269fafe" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:28 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#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"ProcessEnv.cmd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/ProcessEnv.cmd\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:58:25.7642553Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.7642553Z\",\r\n \"contentLength\": \"2408\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stderr.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:58:25.6762511Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.6762511Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stdout.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:58:25.6762511Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.771257Z\",\r\n \"contentLength\": \"410\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"wd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/wd\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "935a0c03-a2e1-4d55-aff9-f524c07b0f18" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d8137951-3e00-49fb-8ab0-40168269fafe" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:27 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe/tasks/testTask/files?recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlL3Rhc2tzL3Rlc3RUYXNrL2ZpbGVzP3JlY3Vyc2l2ZT1mYWxzZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d8137951-3e00-49fb-8ab0-40168269fafe" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:28 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#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"ProcessEnv.cmd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/ProcessEnv.cmd\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:58:25.7642553Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.7642553Z\",\r\n \"contentLength\": \"2408\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stderr.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:58:25.6762511Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.6762511Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stdout.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:58:25.6762511Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.771257Z\",\r\n \"contentLength\": \"410\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"wd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/wd\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "935a0c03-a2e1-4d55-aff9-f524c07b0f18" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d8137951-3e00-49fb-8ab0-40168269fafe" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:27 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe/tasks/testTask/files?recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlL3Rhc2tzL3Rlc3RUYXNrL2ZpbGVzP3JlY3Vyc2l2ZT1mYWxzZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c3d8dae5-32ca-4634-819f-c6db37bd290b" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:28 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#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"ProcessEnv.cmd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/ProcessEnv.cmd\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:58:25.7642553Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.7642553Z\",\r\n \"contentLength\": \"2408\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stderr.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:58:25.6762511Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.6762511Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stdout.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:58:25.6762511Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.771257Z\",\r\n \"contentLength\": \"410\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"wd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/wd\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "58daa48b-5cb8-4224-9a81-3dbb4c303bf8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c3d8dae5-32ca-4634-819f-c6db37bd290b" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:28 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe/tasks/testTask/files?recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlL3Rhc2tzL3Rlc3RUYXNrL2ZpbGVzP3JlY3Vyc2l2ZT1mYWxzZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c3d8dae5-32ca-4634-819f-c6db37bd290b" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:28 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#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"ProcessEnv.cmd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/ProcessEnv.cmd\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:58:25.7642553Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.7642553Z\",\r\n \"contentLength\": \"2408\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stderr.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:58:25.6762511Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.6762511Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stdout.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:58:25.6762511Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.771257Z\",\r\n \"contentLength\": \"410\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"wd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/wd\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "58daa48b-5cb8-4224-9a81-3dbb4c303bf8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c3d8dae5-32ca-4634-819f-c6db37bd290b" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:28 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe/tasks/testTask/files?recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlL3Rhc2tzL3Rlc3RUYXNrL2ZpbGVzP3JlY3Vyc2l2ZT1mYWxzZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c3d8dae5-32ca-4634-819f-c6db37bd290b" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:28 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#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"ProcessEnv.cmd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/ProcessEnv.cmd\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:58:25.7642553Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.7642553Z\",\r\n \"contentLength\": \"2408\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stderr.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:58:25.6762511Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.6762511Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stdout.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:58:25.6762511Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.771257Z\",\r\n \"contentLength\": \"410\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"wd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/wd\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "58daa48b-5cb8-4224-9a81-3dbb4c303bf8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c3d8dae5-32ca-4634-819f-c6db37bd290b" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:28 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe/tasks/testTask/files?recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlL3Rhc2tzL3Rlc3RUYXNrL2ZpbGVzP3JlY3Vyc2l2ZT1mYWxzZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c3d8dae5-32ca-4634-819f-c6db37bd290b" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:28 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#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"ProcessEnv.cmd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/ProcessEnv.cmd\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:58:25.7642553Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.7642553Z\",\r\n \"contentLength\": \"2408\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stderr.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:58:25.6762511Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.6762511Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stdout.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:58:25.6762511Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.771257Z\",\r\n \"contentLength\": \"410\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"wd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/wd\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "58daa48b-5cb8-4224-9a81-3dbb4c303bf8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c3d8dae5-32ca-4634-819f-c6db37bd290b" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:28 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe/tasks/testTask/files?recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlL3Rhc2tzL3Rlc3RUYXNrL2ZpbGVzP3JlY3Vyc2l2ZT1mYWxzZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c3d8dae5-32ca-4634-819f-c6db37bd290b" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:28 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#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"ProcessEnv.cmd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/ProcessEnv.cmd\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:58:25.7642553Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.7642553Z\",\r\n \"contentLength\": \"2408\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stderr.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:58:25.6762511Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.6762511Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stdout.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:58:25.6762511Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.771257Z\",\r\n \"contentLength\": \"410\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"wd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask/files/wd\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "58daa48b-5cb8-4224-9a81-3dbb4c303bf8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c3d8dae5-32ca-4634-819f-c6db37bd290b" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:28 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "b6f787d2-ac34-4f24-9972-9e50671fcbb1" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:28 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\": \"nodeFileByTaskPipe\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe\",\r\n \"eTag\": \"0x8D29900157C3DA9\",\r\n \"lastModified\": \"2015-07-30T16:58:25.2174761Z\",\r\n \"creationTime\": \"2015-07-30T16:58:25.2000325Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:58:25.2174761Z\",\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-07-30T16:58:25.2174761Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:58:25 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ee2d224d-e8d8-49b7-8764-492586a5935f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "b6f787d2-ac34-4f24-9972-9e50671fcbb1" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:28 GMT" + ], + "ETag": [ + "0x8D29900157C3DA9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "b6f787d2-ac34-4f24-9972-9e50671fcbb1" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:28 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\": \"nodeFileByTaskPipe\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe\",\r\n \"eTag\": \"0x8D29900157C3DA9\",\r\n \"lastModified\": \"2015-07-30T16:58:25.2174761Z\",\r\n \"creationTime\": \"2015-07-30T16:58:25.2000325Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:58:25.2174761Z\",\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-07-30T16:58:25.2174761Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:58:25 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ee2d224d-e8d8-49b7-8764-492586a5935f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "b6f787d2-ac34-4f24-9972-9e50671fcbb1" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:28 GMT" + ], + "ETag": [ + "0x8D29900157C3DA9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "b6f787d2-ac34-4f24-9972-9e50671fcbb1" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:28 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\": \"nodeFileByTaskPipe\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe\",\r\n \"eTag\": \"0x8D29900157C3DA9\",\r\n \"lastModified\": \"2015-07-30T16:58:25.2174761Z\",\r\n \"creationTime\": \"2015-07-30T16:58:25.2000325Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:58:25.2174761Z\",\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-07-30T16:58:25.2174761Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:58:25 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ee2d224d-e8d8-49b7-8764-492586a5935f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "b6f787d2-ac34-4f24-9972-9e50671fcbb1" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:28 GMT" + ], + "ETag": [ + "0x8D29900157C3DA9" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "fdeee0e0-2ff6-48b7-a1e7-0737a999acf2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:28 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask\",\r\n \"eTag\": \"0x8D2990015780AF6\",\r\n \"creationTime\": \"2015-07-30T16:58:25.1899638Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.1899638Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T16:58:25.7852556Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-30T16:58:25.664251Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T16:58:25.664251Z\",\r\n \"endTime\": \"2015-07-30T16:58:25.7852556Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_1-20150730t163817z\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "7ab33066-9bb0-4acb-a9e6-e231e57ab1bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "fdeee0e0-2ff6-48b7-a1e7-0737a999acf2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:28 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "fdeee0e0-2ff6-48b7-a1e7-0737a999acf2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:28 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask\",\r\n \"eTag\": \"0x8D2990015780AF6\",\r\n \"creationTime\": \"2015-07-30T16:58:25.1899638Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.1899638Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T16:58:25.7852556Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-30T16:58:25.664251Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T16:58:25.664251Z\",\r\n \"endTime\": \"2015-07-30T16:58:25.7852556Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_1-20150730t163817z\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "7ab33066-9bb0-4acb-a9e6-e231e57ab1bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "fdeee0e0-2ff6-48b7-a1e7-0737a999acf2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:28 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "fdeee0e0-2ff6-48b7-a1e7-0737a999acf2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:28 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask\",\r\n \"eTag\": \"0x8D2990015780AF6\",\r\n \"creationTime\": \"2015-07-30T16:58:25.1899638Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.1899638Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T16:58:25.7852556Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-30T16:58:25.664251Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T16:58:25.664251Z\",\r\n \"endTime\": \"2015-07-30T16:58:25.7852556Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_1-20150730t163817z\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "7ab33066-9bb0-4acb-a9e6-e231e57ab1bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "fdeee0e0-2ff6-48b7-a1e7-0737a999acf2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:28 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "fdeee0e0-2ff6-48b7-a1e7-0737a999acf2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:28 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskPipe/tasks/testTask\",\r\n \"eTag\": \"0x8D2990015780AF6\",\r\n \"creationTime\": \"2015-07-30T16:58:25.1899638Z\",\r\n \"lastModified\": \"2015-07-30T16:58:25.1899638Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T16:58:25.7852556Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-30T16:58:25.664251Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T16:58:25.664251Z\",\r\n \"endTime\": \"2015-07-30T16:58:25.7852556Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_1-20150730t163817z\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "7ab33066-9bb0-4acb-a9e6-e231e57ab1bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "fdeee0e0-2ff6-48b7-a1e7-0737a999acf2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:28 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "11262440-ccae-4c21-bdf4-c1a15f155012" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:29 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": [ + "e1840aa1-c8bd-43b7-83e6-d68969d19723" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "11262440-ccae-4c21-bdf4-c1a15f155012" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:28 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "11262440-ccae-4c21-bdf4-c1a15f155012" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:29 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": [ + "e1840aa1-c8bd-43b7-83e6-d68969d19723" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "11262440-ccae-4c21-bdf4-c1a15f155012" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:28 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "11262440-ccae-4c21-bdf4-c1a15f155012" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:29 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": [ + "e1840aa1-c8bd-43b7-83e6-d68969d19723" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "11262440-ccae-4c21-bdf4-c1a15f155012" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:28 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/nodeFileByTaskPipe?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tQaXBlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "11262440-ccae-4c21-bdf4-c1a15f155012" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:29 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": [ + "e1840aa1-c8bd-43b7-83e6-d68969d19723" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "11262440-ccae-4c21-bdf4-c1a15f155012" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:58:28 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/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByComputeNodeByFilter.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByComputeNodeByFilter.json new file mode 100644 index 000000000000..b6fee536651b --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByComputeNodeByFilter.json @@ -0,0 +1,687 @@ +{ + "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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14949" + ], + "x-ms-request-id": [ + "07dd6f86-b49d-4713-a350-2c70513cf590" + ], + "x-ms-correlation-request-id": [ + "07dd6f86-b49d-4713-a350-2c70513cf590" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165906Z:07dd6f86-b49d-4713-a350-2c70513cf590" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:06 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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14948" + ], + "x-ms-request-id": [ + "456d63a2-a661-44ac-9324-8ba23af194af" + ], + "x-ms-correlation-request-id": [ + "456d63a2-a661-44ac-9324-8ba23af194af" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165908Z:456d63a2-a661-44ac-9324-8ba23af194af" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:08 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:59:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "844c2674-ab60-425c-a44b-e917a16c7561" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-request-id": [ + "34b5c8a9-9755-4dc5-b528-4d7487fe56e9" + ], + "x-ms-correlation-request-id": [ + "34b5c8a9-9755-4dc5-b528-4d7487fe56e9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165907Z:34b5c8a9-9755-4dc5-b528-4d7487fe56e9" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:07 GMT" + ], + "ETag": [ + "0x8D299002EA09BC7" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:59:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "2fea2e2d-0c00-4aad-b5db-9b451eff1270" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-request-id": [ + "d227b410-34f1-4f0d-b74b-47933f8e7a57" + ], + "x-ms-correlation-request-id": [ + "d227b410-34f1-4f0d-b74b-47933f8e7a57" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165908Z:d227b410-34f1-4f0d-b74b-47933f8e7a57" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:08 GMT" + ], + "ETag": [ + "0x8D299002F3693A3" + ], + "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": [ + "d563a547-dc44-40d8-85a3-b92268e0489e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1185" + ], + "x-ms-request-id": [ + "75380eae-484f-4875-875a-ac11c9c5ee2b" + ], + "x-ms-correlation-request-id": [ + "75380eae-484f-4875-875a-ac11c9c5ee2b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165907Z:75380eae-484f-4875-875a-ac11c9c5ee2b" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:07 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": [ + "0ff47d18-a536-4b2e-b0c7-bdadbe817a52" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1184" + ], + "x-ms-request-id": [ + "d6d9e062-1417-435c-af79-52ef08adaa3a" + ], + "x-ms-correlation-request-id": [ + "d6d9e062-1417-435c-af79-52ef08adaa3a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165908Z:d6d9e062-1417-435c-af79-52ef08adaa3a" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:08 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2f3223ae-706c-44e3-9e3e-3061a306da81" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:07 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 4,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4faeef99-7b34-42f7-91a4-cbf52b1118e6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2f3223ae-706c-44e3-9e3e-3061a306da81" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:07 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files?$filter=startswith(name%2C's')&recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcz8kZmlsdGVyPXN0YXJ0c3dpdGglMjhuYW1lJTJDJTI3cyUyNyUyOSZyZWN1cnNpdmU9ZmFsc2UmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "5b1d4ca4-003a-4bd6-a815-6a681bfdfce4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:08 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#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"shared\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/shared\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"startup\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "183f98ce-bdb7-40ed-8445-8eff651ec352" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "5b1d4ca4-003a-4bd6-a815-6a681bfdfce4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:08 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files?$filter=startswith(name%2C's')&recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcz8kZmlsdGVyPXN0YXJ0c3dpdGglMjhuYW1lJTJDJTI3cyUyNyUyOSZyZWN1cnNpdmU9ZmFsc2UmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "089a5098-6397-4579-a7af-051c16cec095" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:09 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#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"shared\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/shared\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"startup\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e22e0051-5359-4dbc-b7e3-1483fce351c4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "089a5098-6397-4579-a7af-051c16cec095" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:08 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files?$filter=startswith(name%2C's')&recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcz8kZmlsdGVyPXN0YXJ0c3dpdGglMjhuYW1lJTJDJTI3cyUyNyUyOSZyZWN1cnNpdmU9ZmFsc2UmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "089a5098-6397-4579-a7af-051c16cec095" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:09 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#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"shared\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/shared\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"startup\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e22e0051-5359-4dbc-b7e3-1483fce351c4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "089a5098-6397-4579-a7af-051c16cec095" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:08 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files?$filter=startswith(name%2C's')&recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcz8kZmlsdGVyPXN0YXJ0c3dpdGglMjhuYW1lJTJDJTI3cyUyNyUyOSZyZWN1cnNpdmU9ZmFsc2UmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "089a5098-6397-4579-a7af-051c16cec095" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:09 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#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"shared\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/shared\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"startup\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e22e0051-5359-4dbc-b7e3-1483fce351c4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "089a5098-6397-4579-a7af-051c16cec095" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:08 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3cc1069d-cc99-4a69-8c5f-9f7e11229422" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:09 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 4,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d6d7c26d-4c2d-4f9e-ae44-9097616cd5ab" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3cc1069d-cc99-4a69-8c5f-9f7e11229422" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:08 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3cc1069d-cc99-4a69-8c5f-9f7e11229422" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:09 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 4,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d6d7c26d-4c2d-4f9e-ae44-9097616cd5ab" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3cc1069d-cc99-4a69-8c5f-9f7e11229422" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:08 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMTests/TestListAllVMs.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByComputeNodeRecursive.json similarity index 52% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMTests/TestListAllVMs.json rename to src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByComputeNodeRecursive.json index 8bd3d2ccb06c..26d176e2384c 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMTests/TestListAllVMs.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByComputeNodeRecursive.json @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14950" + "14983" ], "x-ms-request-id": [ - "e57f1fde-8ccc-4be2-9753-298a593360d9" + "bcc60f45-3b5c-4490-adad-c34bec522be9" ], "x-ms-correlation-request-id": [ - "e57f1fde-8ccc-4be2-9753-298a593360d9" + "bcc60f45-3b5c-4490-adad-c34bec522be9" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T190903Z:e57f1fde-8ccc-4be2-9753-298a593360d9" + "WESTUS:20150730T165759Z:bcc60f45-3b5c-4490-adad-c34bec522be9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:09:03 GMT" + "Thu, 30 Jul 2015 16:57:59 GMT" ] }, "StatusCode": 200 @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14949" + "14982" ], "x-ms-request-id": [ - "6020337e-cf49-43ef-821b-9815cce4de45" + "64a788de-af9c-45f1-8a1d-ab061ba1fede" ], "x-ms-correlation-request-id": [ - "6020337e-cf49-43ef-821b-9815cce4de45" + "64a788de-af9c-45f1-8a1d-ab061ba1fede" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T190904Z:6020337e-cf49-43ef-821b-9815cce4de45" + "WESTUS:20150730T165803Z:64a788de-af9c-45f1-8a1d-ab061ba1fede" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:09:04 GMT" + "Thu, 30 Jul 2015 16:58:03 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:09:04 GMT" + "Thu, 30 Jul 2015 16:58:00 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "4b86429d-7ea5-48d8-bcb0-404e7e754e64" + "4ff85fa4-90a8-4bdd-a43e-8b65012dc215" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14958" + "14953" ], "x-ms-request-id": [ - "db1f05fa-3f1b-44cf-a1f4-b955c1b07a55" + "e97b148d-791f-4ab9-ba68-bcfaa9f4f147" ], "x-ms-correlation-request-id": [ - "db1f05fa-3f1b-44cf-a1f4-b955c1b07a55" + "e97b148d-791f-4ab9-ba68-bcfaa9f4f147" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T190904Z:db1f05fa-3f1b-44cf-a1f4-b955c1b07a55" + "WESTUS:20150730T165800Z:e97b148d-791f-4ab9-ba68-bcfaa9f4f147" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:09:03 GMT" + "Thu, 30 Jul 2015 16:57:59 GMT" ], "ETag": [ - "0x8D28891DB3CA1AE" + "0x8D2990006990366" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:09:04 GMT" + "Thu, 30 Jul 2015 16:58:03 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "f38a5644-fd26-4fd4-b07c-71e5c1fb7a30" + "fa6057db-14fa-498c-a54d-d48f3da7a201" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14957" + "14952" ], "x-ms-request-id": [ - "f73adf44-facc-4f94-9663-eb111cd794de" + "8caa6b65-f15f-4bb5-83f3-828da6f59640" ], "x-ms-correlation-request-id": [ - "f73adf44-facc-4f94-9663-eb111cd794de" + "8caa6b65-f15f-4bb5-83f3-828da6f59640" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T190904Z:f73adf44-facc-4f94-9663-eb111cd794de" + "WESTUS:20150730T165803Z:8caa6b65-f15f-4bb5-83f3-828da6f59640" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:09:04 GMT" + "Thu, 30 Jul 2015 16:58:03 GMT" ], "ETag": [ - "0x8D28891DBAE7FDA" + "0x8D299000876DF60" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "88c94ee6-0af7-4521-a3e3-efec66ab662e" + "a8b2dd89-2140-4f27-8ed7-44f8681dd4ac" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1182" + "1187" ], "x-ms-request-id": [ - "565a500b-17d3-4e3c-9cb1-097ec98d773b" + "495f9062-81e3-4e3c-9508-30b4189b642f" ], "x-ms-correlation-request-id": [ - "565a500b-17d3-4e3c-9cb1-097ec98d773b" + "495f9062-81e3-4e3c-9508-30b4189b642f" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T190904Z:565a500b-17d3-4e3c-9cb1-097ec98d773b" + "WESTUS:20150730T165800Z:495f9062-81e3-4e3c-9508-30b4189b642f" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:09:03 GMT" + "Thu, 30 Jul 2015 16:58:00 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "eb52cceb-b758-4bf5-b701-c037fc87e575" + "fa41e05e-4906-4929-bb90-ea4999b6c781" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1181" + "1186" ], "x-ms-request-id": [ - "d1b9bd61-9ecf-4055-9217-6d83d9301203" + "c949caf8-5093-4125-8987-6cc78fea5814" ], "x-ms-correlation-request-id": [ - "d1b9bd61-9ecf-4055-9217-6d83d9301203" + "c949caf8-5093-4125-8987-6cc78fea5814" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T190905Z:d1b9bd61-9ecf-4055-9217-6d83d9301203" + "WESTUS:20150730T165803Z:c949caf8-5093-4125-8987-6cc78fea5814" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:09:04 GMT" + "Thu, 30 Jul 2015 16:58:03 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,49 +337,47 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "b1737f96-c506-408f-86ca-ece96afbd241" + "89bb7771-bed6-439d-a340-f12a317c4fd1" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:00 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:09:04 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D28890DD2FCEE8\",\r\n \"lastModified\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T19:03:22.4082136Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:01:58 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "351d1226-36e7-4499-9d0d-c9c869564ad2" + "95a709b3-0acb-421b-a0ff-d88c17dc7547" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "89bb7771-bed6-439d-a340-f12a317c4fd1" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:09:03 GMT" - ], - "ETag": [ - "0x8D28890DD2FCEE8" + "Thu, 30 Jul 2015 16:58:02 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -388,49 +386,47 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files?$filter=startswith(name%2C'startup')&recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcz8kZmlsdGVyPXN0YXJ0c3dpdGglMjhuYW1lJTJDJTI3c3RhcnR1cCUyNyUyOSZyZWN1cnNpdmU9ZmFsc2UmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "0813ace2-1a30-4a5c-9f76-51b3628ee713" + "7816eddd-c51e-46fe-bce1-a9ddca7ca49a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:03 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:09:05 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D28890DD2FCEE8\",\r\n \"lastModified\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T19:03:22.4082136Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"startup\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:01:58 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "d47033ba-ed58-4130-b44a-476f319eb332" + "19a8948b-a896-406d-938f-4b8a0aef3a80" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "7816eddd-c51e-46fe-bce1-a9ddca7ca49a" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:09:05 GMT" - ], - "ETag": [ - "0x8D28890DD2FCEE8" + "Thu, 30 Jul 2015 16:58:03 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -439,25 +435,26 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testPool/tvms?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXM/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files?$filter=startswith(name%2C'startup')&recursive=true&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcz8kZmlsdGVyPXN0YXJ0c3dpdGglMjhuYW1lJTJDJTI3c3RhcnR1cCUyNyUyOSZyZWN1cnNpdmU9dHJ1ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "97c5a71a-20ed-41a7-b8cc-1b81da0b1e90" + "62d2a62b-6d0e-4183-aec6-18d1064e0761" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:04 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:09:04 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tvms\",\r\n \"value\": [\r\n {\r\n \"name\": \"tvm-4155946844_1-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-09T19:08:35.5466164Z\",\r\n \"lastBootTime\": \"2015-07-09T19:08:35.4786184Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.28.116\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-09T19:08:35.5776188Z\",\r\n \"endTime\": \"2015-07-09T19:08:36.4942084Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"name\": \"tvm-4155946844_2-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_2-20150709t190321z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-09T19:08:05.7418843Z\",\r\n \"lastBootTime\": \"2015-07-09T19:08:05.6548918Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.16.79\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-09T19:08:05.773026Z\",\r\n \"endTime\": \"2015-07-09T19:08:06.6520273Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"name\": \"tvm-4155946844_3-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_3-20150709t190321z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-09T19:08:05.6824444Z\",\r\n \"lastBootTime\": \"2015-07-09T19:08:05.603148Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.12.86\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-09T19:08:05.7094503Z\",\r\n \"endTime\": \"2015-07-09T19:08:06.6014509Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"startup\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"startup\\\\ProcessEnv.cmd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup\\\\ProcessEnv.cmd\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:42:33.0667663Z\",\r\n \"lastModified\": \"2015-07-30T16:42:33.0667663Z\",\r\n \"contentLength\": \"1750\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"startup\\\\stderr.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup\\\\stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:42:32.6377471Z\",\r\n \"lastModified\": \"2015-07-30T16:42:32.6377471Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"startup\\\\stdout.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup\\\\stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:42:32.6377471Z\",\r\n \"lastModified\": \"2015-07-30T16:42:33.0917674Z\",\r\n \"contentLength\": \"7\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"startup\\\\wd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup\\\\wd\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" @@ -466,16 +463,19 @@ "chunked" ], "request-id": [ - "b8dc375a-d6a4-4485-a395-79de12725d14" + "c429ae0c-362f-421e-85fe-91ea18201512" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "62d2a62b-6d0e-4183-aec6-18d1064e0761" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:09:05 GMT" + "Thu, 30 Jul 2015 16:58:03 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -484,25 +484,26 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testPool/tvms?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXM/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files?$filter=startswith(name%2C'startup')&recursive=true&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcz8kZmlsdGVyPXN0YXJ0c3dpdGglMjhuYW1lJTJDJTI3c3RhcnR1cCUyNyUyOSZyZWN1cnNpdmU9dHJ1ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "cc4b156b-c680-4bab-a958-f7059f651fda" + "62d2a62b-6d0e-4183-aec6-18d1064e0761" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:58:04 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:09:05 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tvms\",\r\n \"value\": [\r\n {\r\n \"name\": \"tvm-4155946844_1-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-09T19:08:35.5466164Z\",\r\n \"lastBootTime\": \"2015-07-09T19:08:35.4786184Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.28.116\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-09T19:08:35.5776188Z\",\r\n \"endTime\": \"2015-07-09T19:08:36.4942084Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"name\": \"tvm-4155946844_2-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_2-20150709t190321z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-09T19:08:05.7418843Z\",\r\n \"lastBootTime\": \"2015-07-09T19:08:05.6548918Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.16.79\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-09T19:08:05.773026Z\",\r\n \"endTime\": \"2015-07-09T19:08:06.6520273Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"name\": \"tvm-4155946844_3-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_3-20150709t190321z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-09T19:08:05.6824444Z\",\r\n \"lastBootTime\": \"2015-07-09T19:08:05.603148Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.12.86\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-09T19:08:05.7094503Z\",\r\n \"endTime\": \"2015-07-09T19:08:06.6014509Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"startup\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"startup\\\\ProcessEnv.cmd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup\\\\ProcessEnv.cmd\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:42:33.0667663Z\",\r\n \"lastModified\": \"2015-07-30T16:42:33.0667663Z\",\r\n \"contentLength\": \"1750\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"startup\\\\stderr.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup\\\\stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:42:32.6377471Z\",\r\n \"lastModified\": \"2015-07-30T16:42:32.6377471Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"startup\\\\stdout.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup\\\\stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:42:32.6377471Z\",\r\n \"lastModified\": \"2015-07-30T16:42:33.0917674Z\",\r\n \"contentLength\": \"7\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"startup\\\\wd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup\\\\wd\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" @@ -511,16 +512,19 @@ "chunked" ], "request-id": [ - "fd2ebc3e-c897-4765-ba15-ba8bae0131c7" + "c429ae0c-362f-421e-85fe-91ea18201512" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "62d2a62b-6d0e-4183-aec6-18d1064e0761" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:09:05 GMT" + "Thu, 30 Jul 2015 16:58:03 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByComputeNodeWithMaxCount.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByComputeNodeWithMaxCount.json new file mode 100644 index 000000000000..f624d3343943 --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByComputeNodeWithMaxCount.json @@ -0,0 +1,687 @@ +{ + "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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14941" + ], + "x-ms-request-id": [ + "dd60b63d-bc87-47cd-9a0a-9443d7d6b26d" + ], + "x-ms-correlation-request-id": [ + "dd60b63d-bc87-47cd-9a0a-9443d7d6b26d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170101Z:dd60b63d-bc87-47cd-9a0a-9443d7d6b26d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:01 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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14940" + ], + "x-ms-request-id": [ + "8653f706-b23e-473d-8db4-7e5ee950c672" + ], + "x-ms-correlation-request-id": [ + "8653f706-b23e-473d-8db4-7e5ee950c672" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170103Z:8653f706-b23e-473d-8db4-7e5ee950c672" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:03 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "b916008c-dcc5-45ae-a779-5a93ae0bfbd1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14977" + ], + "x-ms-request-id": [ + "2820077b-5ba5-4fa9-a1d3-f02343114e34" + ], + "x-ms-correlation-request-id": [ + "2820077b-5ba5-4fa9-a1d3-f02343114e34" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170102Z:2820077b-5ba5-4fa9-a1d3-f02343114e34" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:02 GMT" + ], + "ETag": [ + "0x8D29900732BC9ED" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "04de6a30-1ebe-41eb-a5ff-dab64d4243b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-request-id": [ + "0ab0290b-637f-4175-aae2-469eafc7c798" + ], + "x-ms-correlation-request-id": [ + "0ab0290b-637f-4175-aae2-469eafc7c798" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170103Z:0ab0290b-637f-4175-aae2-469eafc7c798" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:02 GMT" + ], + "ETag": [ + "0x8D2990073B5F7AB" + ], + "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": [ + "a1f827fd-1b04-45b0-8794-32e7a2bddf47" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1183" + ], + "x-ms-request-id": [ + "140e7439-7e20-434d-8fe0-2c257bda55ef" + ], + "x-ms-correlation-request-id": [ + "140e7439-7e20-434d-8fe0-2c257bda55ef" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170102Z:140e7439-7e20-434d-8fe0-2c257bda55ef" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:02 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": [ + "b1a84ca2-7721-44b9-8fc9-de7d179be22b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1182" + ], + "x-ms-request-id": [ + "c4679f58-d5d3-4653-a2c4-a02bd04f91d9" + ], + "x-ms-correlation-request-id": [ + "c4679f58-d5d3-4653-a2c4-a02bd04f91d9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170103Z:c4679f58-d5d3-4653-a2c4-a02bd04f91d9" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:03 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "fc62a731-79a7-4a6d-997d-95973f1c1e56" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:02 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes\",\r\n \"value\": [\r\n {\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 7,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_2-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:01.126861Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:01.0268576Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.172.110\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:01.1718639Z\",\r\n \"endTime\": \"2015-07-30T16:42:02.553915Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"tvm-4155946844_3-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:43.5934055Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:43.4594048Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.168.95\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:43.6314061Z\",\r\n \"endTime\": \"2015-07-30T16:42:45.1414143Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "602f7d4b-cb48-4714-92e5-49b2f1dcb6b2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "fc62a731-79a7-4a6d-997d-95973f1c1e56" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:03 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files?recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcz9yZWN1cnNpdmU9ZmFsc2UmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "85b25ce0-9d3b-4635-abcf-1d67a29f3940" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:03 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#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"shared\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/shared\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"startup\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"workitems\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/workitems\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cd280cea-6675-44bc-b3ac-708f69833a59" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "85b25ce0-9d3b-4635-abcf-1d67a29f3940" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:03 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files?recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcz9yZWN1cnNpdmU9ZmFsc2UmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "51f0922d-d1b8-473e-af7c-0591da5d6047" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:04 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#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"shared\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/shared\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"startup\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"workitems\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/workitems\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "3354bfc3-149d-4cd1-a91e-9f0026ffbb27" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "51f0922d-d1b8-473e-af7c-0591da5d6047" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:03 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files?recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcz9yZWN1cnNpdmU9ZmFsc2UmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "51f0922d-d1b8-473e-af7c-0591da5d6047" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:04 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#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"shared\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/shared\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"startup\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"workitems\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/workitems\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "3354bfc3-149d-4cd1-a91e-9f0026ffbb27" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "51f0922d-d1b8-473e-af7c-0591da5d6047" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:03 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files?recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ei9maWxlcz9yZWN1cnNpdmU9ZmFsc2UmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "51f0922d-d1b8-473e-af7c-0591da5d6047" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:04 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#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"shared\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/shared\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"startup\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/startup\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"workitems\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z/files/workitems\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "3354bfc3-149d-4cd1-a91e-9f0026ffbb27" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "51f0922d-d1b8-473e-af7c-0591da5d6047" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:03 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "dd729955-353f-4762-96c4-cc76bd7f6685" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:04 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 7,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "a2a51620-d051-4757-986b-29e06bfe19ea" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "dd729955-353f-4762-96c4-cc76bd7f6685" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:03 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL25vZGVzL3R2bS00MTU1OTQ2ODQ0XzEtMjAxNTA3MzB0MTYzODE3ej9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "dd729955-353f-4762-96c4-cc76bd7f6685" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:04 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#nodes/@Element\",\r\n \"id\": \"tvm-4155946844_1-20150730t163817z\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-30T16:42:31.4316915Z\",\r\n \"lastBootTime\": \"2015-07-30T16:42:31.3306882Z\",\r\n \"allocationTime\": \"2015-07-30T16:38:17.4009205Z\",\r\n \"ipAddress\": \"100.112.234.31\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"vmSize\": \"small\",\r\n \"totalTasksRun\": 7,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-30T16:42:31.4856955Z\",\r\n \"endTime\": \"2015-07-30T16:42:33.1103345Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "a2a51620-d051-4757-986b-29e06bfe19ea" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "dd729955-353f-4762-96c4-cc76bd7f6685" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:03 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByTaskByFilter.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByTaskByFilter.json new file mode 100644 index 000000000000..bccbab26e205 --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByTaskByFilter.json @@ -0,0 +1,1485 @@ +{ + "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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-request-id": [ + "88161fd0-e436-4484-bcab-087ee542dec3" + ], + "x-ms-correlation-request-id": [ + "88161fd0-e436-4484-bcab-087ee542dec3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165928Z:88161fd0-e436-4484-bcab-087ee542dec3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:28 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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-request-id": [ + "2cb30694-4f6d-4e63-9045-54723667afd2" + ], + "x-ms-correlation-request-id": [ + "2cb30694-4f6d-4e63-9045-54723667afd2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165932Z:2cb30694-4f6d-4e63-9045-54723667afd2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:32 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:59:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "1ac723d4-9540-4dd6-94b6-a2a6b5915b08" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14947" + ], + "x-ms-request-id": [ + "30e7e0e8-82b0-4898-b090-e7dabe295129" + ], + "x-ms-correlation-request-id": [ + "30e7e0e8-82b0-4898-b090-e7dabe295129" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165929Z:30e7e0e8-82b0-4898-b090-e7dabe295129" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:28 GMT" + ], + "ETag": [ + "0x8D299003BB41147" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:59:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "40349519-80bc-42e1-aa8d-c230d2eba95f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14946" + ], + "x-ms-request-id": [ + "a2e97592-2847-4e78-8598-29023de22000" + ], + "x-ms-correlation-request-id": [ + "a2e97592-2847-4e78-8598-29023de22000" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165933Z:a2e97592-2847-4e78-8598-29023de22000" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:32 GMT" + ], + "ETag": [ + "0x8D299003DC54AE7" + ], + "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": [ + "3dfbfa3f-45cd-4438-bcef-1ff3c810c1b0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1185" + ], + "x-ms-request-id": [ + "700e790d-24b0-466a-846e-570b8f85db51" + ], + "x-ms-correlation-request-id": [ + "700e790d-24b0-466a-846e-570b8f85db51" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165929Z:700e790d-24b0-466a-846e-570b8f85db51" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:28 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": [ + "00587065-4741-4029-8cca-bd8cf12fa426" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1184" + ], + "x-ms-request-id": [ + "262d3463-5048-434e-810d-e40415a3e9ed" + ], + "x-ms-correlation-request-id": [ + "262d3463-5048-434e-810d-e40415a3e9ed" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T165933Z:262d3463-5048-434e-810d-e40415a3e9ed" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:32 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\": \"listNodeFileByTaskFilterJob\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "110" + ], + "client-request-id": [ + "a8578793-2981-4788-b5c4-58dc931b35b0" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:29 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 16:59:30 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "75c3c8c7-1848-46f4-b68c-e4899aed3319" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "a8578793-2981-4788-b5c4-58dc931b35b0" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:30 GMT" + ], + "ETag": [ + "0x8D299003C41833F" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskFilterJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrRmlsdGVySm9iL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "83" + ], + "client-request-id": [ + "de5a804e-e4ab-44f4-95fa-b1f96959dc72" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:30 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 16:59:30 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "da81bb8f-026e-4843-8f92-6844c9a5fe63" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "de5a804e-e4ab-44f4-95fa-b1f96959dc72" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskFilterJob/tasks/testTask" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:30 GMT" + ], + "ETag": [ + "0x8D299003C41A7F6" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskFilterJob/tasks/testTask" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskFilterJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrRmlsdGVySm9iL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "83" + ], + "client-request-id": [ + "de5a804e-e4ab-44f4-95fa-b1f96959dc72" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:30 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 16:59:30 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "da81bb8f-026e-4843-8f92-6844c9a5fe63" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "de5a804e-e4ab-44f4-95fa-b1f96959dc72" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskFilterJob/tasks/testTask" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:30 GMT" + ], + "ETag": [ + "0x8D299003C41A7F6" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskFilterJob/tasks/testTask" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskFilterJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrRmlsdGVySm9iL3Rhc2tzL3Rlc3RUYXNrP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "a46dd29b-9824-4114-9ba1-3df8e7b4fd4b" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:30 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#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskFilterJob/tasks/testTask\",\r\n \"eTag\": \"0x8D299003C41A7F6\",\r\n \"creationTime\": \"2015-07-30T16:59:30.2646774Z\",\r\n \"lastModified\": \"2015-07-30T16:59:30.2646774Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:59:30.2646774Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:59:30 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d5d82dff-994c-47ad-bfdb-573b722d0527" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "a46dd29b-9824-4114-9ba1-3df8e7b4fd4b" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:30 GMT" + ], + "ETag": [ + "0x8D299003C41A7F6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskFilterJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrRmlsdGVySm9iL3Rhc2tzL3Rlc3RUYXNrP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "a46dd29b-9824-4114-9ba1-3df8e7b4fd4b" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:30 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#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskFilterJob/tasks/testTask\",\r\n \"eTag\": \"0x8D299003C41A7F6\",\r\n \"creationTime\": \"2015-07-30T16:59:30.2646774Z\",\r\n \"lastModified\": \"2015-07-30T16:59:30.2646774Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:59:30.2646774Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:59:30 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d5d82dff-994c-47ad-bfdb-573b722d0527" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "a46dd29b-9824-4114-9ba1-3df8e7b4fd4b" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:30 GMT" + ], + "ETag": [ + "0x8D299003C41A7F6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskFilterJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrRmlsdGVySm9iL3Rhc2tzL3Rlc3RUYXNrP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "a46dd29b-9824-4114-9ba1-3df8e7b4fd4b" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:30 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#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskFilterJob/tasks/testTask\",\r\n \"eTag\": \"0x8D299003C41A7F6\",\r\n \"creationTime\": \"2015-07-30T16:59:30.2646774Z\",\r\n \"lastModified\": \"2015-07-30T16:59:30.2646774Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:59:30.2646774Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:59:30 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d5d82dff-994c-47ad-bfdb-573b722d0527" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "a46dd29b-9824-4114-9ba1-3df8e7b4fd4b" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:30 GMT" + ], + "ETag": [ + "0x8D299003C41A7F6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskFilterJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrRmlsdGVySm9iL3Rhc2tzL3Rlc3RUYXNrP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "a48ba1c0-e732-4b34-834c-d8e18bc467b9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskFilterJob/tasks/testTask\",\r\n \"eTag\": \"0x8D299003C41A7F6\",\r\n \"creationTime\": \"2015-07-30T16:59:30.2646774Z\",\r\n \"lastModified\": \"2015-07-30T16:59:30.2646774Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T16:59:32.1149412Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-30T16:59:32.0019357Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T16:59:32.0019357Z\",\r\n \"endTime\": \"2015-07-30T16:59:32.1149412Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_1-20150730t163817z\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:59:30 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "8d3f7d5e-ad07-46dc-b13e-92766f52a229" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "a48ba1c0-e732-4b34-834c-d8e18bc467b9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:32 GMT" + ], + "ETag": [ + "0x8D299003C41A7F6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskFilterJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrRmlsdGVySm9iL3Rhc2tzL3Rlc3RUYXNrP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "a48ba1c0-e732-4b34-834c-d8e18bc467b9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskFilterJob/tasks/testTask\",\r\n \"eTag\": \"0x8D299003C41A7F6\",\r\n \"creationTime\": \"2015-07-30T16:59:30.2646774Z\",\r\n \"lastModified\": \"2015-07-30T16:59:30.2646774Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T16:59:32.1149412Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-30T16:59:32.0019357Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T16:59:32.0019357Z\",\r\n \"endTime\": \"2015-07-30T16:59:32.1149412Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_1-20150730t163817z\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:59:30 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "8d3f7d5e-ad07-46dc-b13e-92766f52a229" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "a48ba1c0-e732-4b34-834c-d8e18bc467b9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:32 GMT" + ], + "ETag": [ + "0x8D299003C41A7F6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskFilterJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrRmlsdGVySm9iL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d0447ff7-75dd-485e-9d7c-c7051ce0445d" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:30 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "2452de0f-ec99-4422-859b-d3b16c43fbd7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d0447ff7-75dd-485e-9d7c-c7051ce0445d" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:30 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskFilterJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrRmlsdGVySm9iL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d0447ff7-75dd-485e-9d7c-c7051ce0445d" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:30 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "2452de0f-ec99-4422-859b-d3b16c43fbd7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d0447ff7-75dd-485e-9d7c-c7051ce0445d" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:30 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskFilterJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrRmlsdGVySm9iL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d0447ff7-75dd-485e-9d7c-c7051ce0445d" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:30 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "2452de0f-ec99-4422-859b-d3b16c43fbd7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d0447ff7-75dd-485e-9d7c-c7051ce0445d" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:30 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskFilterJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrRmlsdGVySm9iL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2c0e0473-7d22-40c7-b083-6c7f2768fa30" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:32 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "827caea8-7fd7-4f6c-b721-50f8e4b15f94" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2c0e0473-7d22-40c7-b083-6c7f2768fa30" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:32 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskFilterJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrRmlsdGVySm9iL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2c0e0473-7d22-40c7-b083-6c7f2768fa30" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:32 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "827caea8-7fd7-4f6c-b721-50f8e4b15f94" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2c0e0473-7d22-40c7-b083-6c7f2768fa30" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:32 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskFilterJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrRmlsdGVySm9iL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2c0e0473-7d22-40c7-b083-6c7f2768fa30" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:32 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "827caea8-7fd7-4f6c-b721-50f8e4b15f94" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2c0e0473-7d22-40c7-b083-6c7f2768fa30" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:32 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskFilterJob/tasks/testTask/files?$filter=startswith(name%2C'std')&recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrRmlsdGVySm9iL3Rhc2tzL3Rlc3RUYXNrL2ZpbGVzPyRmaWx0ZXI9c3RhcnRzd2l0aCUyOG5hbWUlMkMlMjdzdGQlMjclMjkmcmVjdXJzaXZlPWZhbHNlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6d6f5c61-a180-4021-b168-b9bab58b5799" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"stderr.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskFilterJob/tasks/testTask/files/stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:59:32.0119372Z\",\r\n \"lastModified\": \"2015-07-30T16:59:32.0119372Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stdout.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskFilterJob/tasks/testTask/files/stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:59:32.0119372Z\",\r\n \"lastModified\": \"2015-07-30T16:59:32.1039414Z\",\r\n \"contentLength\": \"419\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e581ed86-56aa-4c4a-b6a7-0c941615725a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6d6f5c61-a180-4021-b168-b9bab58b5799" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:32 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskFilterJob/tasks/testTask/files?$filter=startswith(name%2C'std')&recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrRmlsdGVySm9iL3Rhc2tzL3Rlc3RUYXNrL2ZpbGVzPyRmaWx0ZXI9c3RhcnRzd2l0aCUyOG5hbWUlMkMlMjdzdGQlMjclMjkmcmVjdXJzaXZlPWZhbHNlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "327bb087-a29e-4f07-a1d2-4b5794ba9dfb" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"stderr.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskFilterJob/tasks/testTask/files/stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:59:32.0119372Z\",\r\n \"lastModified\": \"2015-07-30T16:59:32.0119372Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stdout.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskFilterJob/tasks/testTask/files/stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:59:32.0119372Z\",\r\n \"lastModified\": \"2015-07-30T16:59:32.1039414Z\",\r\n \"contentLength\": \"419\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "83e4e9a4-f455-47f8-a513-ccf1f3a2b2ac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "327bb087-a29e-4f07-a1d2-4b5794ba9dfb" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:32 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskFilterJob/tasks/testTask/files?$filter=startswith(name%2C'std')&recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrRmlsdGVySm9iL3Rhc2tzL3Rlc3RUYXNrL2ZpbGVzPyRmaWx0ZXI9c3RhcnRzd2l0aCUyOG5hbWUlMkMlMjdzdGQlMjclMjkmcmVjdXJzaXZlPWZhbHNlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "327bb087-a29e-4f07-a1d2-4b5794ba9dfb" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"stderr.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskFilterJob/tasks/testTask/files/stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:59:32.0119372Z\",\r\n \"lastModified\": \"2015-07-30T16:59:32.0119372Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stdout.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskFilterJob/tasks/testTask/files/stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:59:32.0119372Z\",\r\n \"lastModified\": \"2015-07-30T16:59:32.1039414Z\",\r\n \"contentLength\": \"419\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "83e4e9a4-f455-47f8-a513-ccf1f3a2b2ac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "327bb087-a29e-4f07-a1d2-4b5794ba9dfb" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:32 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskFilterJob/tasks/testTask/files?$filter=startswith(name%2C'std')&recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrRmlsdGVySm9iL3Rhc2tzL3Rlc3RUYXNrL2ZpbGVzPyRmaWx0ZXI9c3RhcnRzd2l0aCUyOG5hbWUlMkMlMjdzdGQlMjclMjkmcmVjdXJzaXZlPWZhbHNlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "327bb087-a29e-4f07-a1d2-4b5794ba9dfb" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"stderr.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskFilterJob/tasks/testTask/files/stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:59:32.0119372Z\",\r\n \"lastModified\": \"2015-07-30T16:59:32.0119372Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stdout.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskFilterJob/tasks/testTask/files/stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T16:59:32.0119372Z\",\r\n \"lastModified\": \"2015-07-30T16:59:32.1039414Z\",\r\n \"contentLength\": \"419\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "83e4e9a4-f455-47f8-a513-ccf1f3a2b2ac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "327bb087-a29e-4f07-a1d2-4b5794ba9dfb" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:32 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskFilterJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrRmlsdGVySm9iP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7d04dadb-08bf-410f-8d27-f1126c21e2b2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "044d2805-4d61-42b3-9944-d8c8575f704f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7d04dadb-08bf-410f-8d27-f1126c21e2b2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:34 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskFilterJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrRmlsdGVySm9iP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7d04dadb-08bf-410f-8d27-f1126c21e2b2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "044d2805-4d61-42b3-9944-d8c8575f704f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7d04dadb-08bf-410f-8d27-f1126c21e2b2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:34 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskFilterJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrRmlsdGVySm9iP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7d04dadb-08bf-410f-8d27-f1126c21e2b2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "044d2805-4d61-42b3-9944-d8c8575f704f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7d04dadb-08bf-410f-8d27-f1126c21e2b2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:34 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskFilterJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrRmlsdGVySm9iP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7d04dadb-08bf-410f-8d27-f1126c21e2b2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:59:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "044d2805-4d61-42b3-9944-d8c8575f704f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7d04dadb-08bf-410f-8d27-f1126c21e2b2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:59:34 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/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByTaskRecursive.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByTaskRecursive.json new file mode 100644 index 000000000000..24b5c5b99889 --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByTaskRecursive.json @@ -0,0 +1,1326 @@ +{ + "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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14939" + ], + "x-ms-request-id": [ + "7b120938-3ff1-4267-873e-d790a101a24a" + ], + "x-ms-correlation-request-id": [ + "7b120938-3ff1-4267-873e-d790a101a24a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170122Z:7b120938-3ff1-4267-873e-d790a101a24a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:21 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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14938" + ], + "x-ms-request-id": [ + "d1bea869-9d5c-4a2c-a4aa-35eb58d0728b" + ], + "x-ms-correlation-request-id": [ + "d1bea869-9d5c-4a2c-a4aa-35eb58d0728b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170126Z:d1bea869-9d5c-4a2c-a4aa-35eb58d0728b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:25 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "6986a63b-628b-4770-8a33-bbdeddbc15de" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14975" + ], + "x-ms-request-id": [ + "bc72feb7-b9b4-4230-a1b1-ffc3c1a5bea6" + ], + "x-ms-correlation-request-id": [ + "bc72feb7-b9b4-4230-a1b1-ffc3c1a5bea6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170122Z:bc72feb7-b9b4-4230-a1b1-ffc3c1a5bea6" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:22 GMT" + ], + "ETag": [ + "0x8D299007F22C67B" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "62628b51-41fc-4306-84fc-507493c2f715" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14974" + ], + "x-ms-request-id": [ + "339803f2-2934-4242-bb64-bc43c3d428b0" + ], + "x-ms-correlation-request-id": [ + "339803f2-2934-4242-bb64-bc43c3d428b0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170126Z:339803f2-2934-4242-bb64-bc43c3d428b0" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:26 GMT" + ], + "ETag": [ + "0x8D29900813EE2B0" + ], + "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": [ + "1865c014-c937-489e-8c8f-d84300d25121" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1181" + ], + "x-ms-request-id": [ + "bfa7435c-6410-4548-9359-0f7e327b3ee1" + ], + "x-ms-correlation-request-id": [ + "bfa7435c-6410-4548-9359-0f7e327b3ee1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170122Z:bfa7435c-6410-4548-9359-0f7e327b3ee1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:22 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": [ + "5e51608f-1973-4d28-b45a-e38dca84d709" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1180" + ], + "x-ms-request-id": [ + "f8b1aedc-b7b8-47f8-a657-284adf0d6e3d" + ], + "x-ms-correlation-request-id": [ + "f8b1aedc-b7b8-47f8-a657-284adf0d6e3d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170126Z:f8b1aedc-b7b8-47f8-a657-284adf0d6e3d" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:26 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\": \"listNodeFileByTaskRecursiveJob\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "113" + ], + "client-request-id": [ + "e692d332-0c0e-40d2-98fc-0be91197c0a2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:22 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:23 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b35cef20-6e82-4498-8f9a-5402ccf07405" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e692d332-0c0e-40d2-98fc-0be91197c0a2" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:23 GMT" + ], + "ETag": [ + "0x8D299007FB65505" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskRecursiveJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrUmVjdXJzaXZlSm9iL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask\",\r\n \"commandLine\": \"cmd /c echo \\\"test file\\\" > testFile.txt\",\r\n \"runElevated\": true\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "110" + ], + "client-request-id": [ + "60f2a0c6-e7da-4165-9754-4424d206e970" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:23 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:23 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4ab58fec-2d60-4e50-8dcb-a7b1f4ea0732" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "60f2a0c6-e7da-4165-9754-4424d206e970" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskRecursiveJob/tasks/testTask" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:23 GMT" + ], + "ETag": [ + "0x8D299007FAF1B2A" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskRecursiveJob/tasks/testTask" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskRecursiveJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrUmVjdXJzaXZlSm9iL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask\",\r\n \"commandLine\": \"cmd /c echo \\\"test file\\\" > testFile.txt\",\r\n \"runElevated\": true\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "110" + ], + "client-request-id": [ + "60f2a0c6-e7da-4165-9754-4424d206e970" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:23 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:23 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4ab58fec-2d60-4e50-8dcb-a7b1f4ea0732" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "60f2a0c6-e7da-4165-9754-4424d206e970" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskRecursiveJob/tasks/testTask" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:23 GMT" + ], + "ETag": [ + "0x8D299007FAF1B2A" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskRecursiveJob/tasks/testTask" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskRecursiveJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrUmVjdXJzaXZlSm9iL3Rhc2tzL3Rlc3RUYXNrP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "61b889f1-a0d6-47c8-aee7-5effaefd7d19" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:23 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#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskRecursiveJob/tasks/testTask\",\r\n \"eTag\": \"0x8D299007FAF1B2A\",\r\n \"creationTime\": \"2015-07-30T17:01:23.3893162Z\",\r\n \"lastModified\": \"2015-07-30T17:01:23.3893162Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:23.3893162Z\",\r\n \"commandLine\": \"cmd /c echo \\\"test file\\\" > testFile.txt\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:23 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d54db1ed-5ac6-43c4-a3f1-bbeacd48b9ee" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "61b889f1-a0d6-47c8-aee7-5effaefd7d19" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:23 GMT" + ], + "ETag": [ + "0x8D299007FAF1B2A" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskRecursiveJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrUmVjdXJzaXZlSm9iL3Rhc2tzL3Rlc3RUYXNrP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "61b889f1-a0d6-47c8-aee7-5effaefd7d19" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:23 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#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskRecursiveJob/tasks/testTask\",\r\n \"eTag\": \"0x8D299007FAF1B2A\",\r\n \"creationTime\": \"2015-07-30T17:01:23.3893162Z\",\r\n \"lastModified\": \"2015-07-30T17:01:23.3893162Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:23.3893162Z\",\r\n \"commandLine\": \"cmd /c echo \\\"test file\\\" > testFile.txt\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:23 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d54db1ed-5ac6-43c4-a3f1-bbeacd48b9ee" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "61b889f1-a0d6-47c8-aee7-5effaefd7d19" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:23 GMT" + ], + "ETag": [ + "0x8D299007FAF1B2A" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskRecursiveJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrUmVjdXJzaXZlSm9iL3Rhc2tzL3Rlc3RUYXNrP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "61b889f1-a0d6-47c8-aee7-5effaefd7d19" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:23 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#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskRecursiveJob/tasks/testTask\",\r\n \"eTag\": \"0x8D299007FAF1B2A\",\r\n \"creationTime\": \"2015-07-30T17:01:23.3893162Z\",\r\n \"lastModified\": \"2015-07-30T17:01:23.3893162Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:23.3893162Z\",\r\n \"commandLine\": \"cmd /c echo \\\"test file\\\" > testFile.txt\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:23 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d54db1ed-5ac6-43c4-a3f1-bbeacd48b9ee" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "61b889f1-a0d6-47c8-aee7-5effaefd7d19" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:23 GMT" + ], + "ETag": [ + "0x8D299007FAF1B2A" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskRecursiveJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrUmVjdXJzaXZlSm9iL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7407bfbe-2a17-4566-9373-fda0b78e0b02" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:23 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "a7235cfd-fa18-41c8-9045-eeecc35c831e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7407bfbe-2a17-4566-9373-fda0b78e0b02" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:23 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskRecursiveJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrUmVjdXJzaXZlSm9iL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7407bfbe-2a17-4566-9373-fda0b78e0b02" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:23 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "a7235cfd-fa18-41c8-9045-eeecc35c831e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7407bfbe-2a17-4566-9373-fda0b78e0b02" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:23 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskRecursiveJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrUmVjdXJzaXZlSm9iL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7407bfbe-2a17-4566-9373-fda0b78e0b02" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:23 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "a7235cfd-fa18-41c8-9045-eeecc35c831e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7407bfbe-2a17-4566-9373-fda0b78e0b02" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:23 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskRecursiveJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrUmVjdXJzaXZlSm9iL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3e292bfa-d13e-41f0-8455-3bc54fd638d0" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "db9a3bc0-c06e-499d-93ec-e84f1fa05b52" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3e292bfa-d13e-41f0-8455-3bc54fd638d0" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:25 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskRecursiveJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrUmVjdXJzaXZlSm9iL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3e292bfa-d13e-41f0-8455-3bc54fd638d0" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "db9a3bc0-c06e-499d-93ec-e84f1fa05b52" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3e292bfa-d13e-41f0-8455-3bc54fd638d0" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:25 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskRecursiveJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrUmVjdXJzaXZlSm9iL3Rhc2tzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3JiRzZWxlY3Q9aWQlMkNzdGF0ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3e292bfa-d13e-41f0-8455-3bc54fd638d0" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "db9a3bc0-c06e-499d-93ec-e84f1fa05b52" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3e292bfa-d13e-41f0-8455-3bc54fd638d0" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:25 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskRecursiveJob/tasks/testTask/files?$filter=startswith(name%2C'wd')&recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrUmVjdXJzaXZlSm9iL3Rhc2tzL3Rlc3RUYXNrL2ZpbGVzPyRmaWx0ZXI9c3RhcnRzd2l0aCUyOG5hbWUlMkMlMjd3ZCUyNyUyOSZyZWN1cnNpdmU9ZmFsc2UmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "00edc7f4-d5b9-4352-b35f-f2382775c81e" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:26 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#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"wd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskRecursiveJob/tasks/testTask/files/wd\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6cf3ba6f-7f36-4f4f-85b6-083780433738" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "00edc7f4-d5b9-4352-b35f-f2382775c81e" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:26 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskRecursiveJob/tasks/testTask/files?$filter=startswith(name%2C'wd')&recursive=true&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrUmVjdXJzaXZlSm9iL3Rhc2tzL3Rlc3RUYXNrL2ZpbGVzPyRmaWx0ZXI9c3RhcnRzd2l0aCUyOG5hbWUlMkMlMjd3ZCUyNyUyOSZyZWN1cnNpdmU9dHJ1ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6a979efe-5fa9-4599-bafa-24484f470522" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:26 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#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"wd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskRecursiveJob/tasks/testTask/files/wd\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"wd\\\\testFile.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskRecursiveJob/tasks/testTask/files/wd\\\\testFile.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T17:01:24.9801459Z\",\r\n \"lastModified\": \"2015-07-30T17:01:24.9801459Z\",\r\n \"contentLength\": \"14\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ef744df0-38ab-434c-b1bf-21f127585f33" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6a979efe-5fa9-4599-bafa-24484f470522" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:26 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskRecursiveJob/tasks/testTask/files?$filter=startswith(name%2C'wd')&recursive=true&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrUmVjdXJzaXZlSm9iL3Rhc2tzL3Rlc3RUYXNrL2ZpbGVzPyRmaWx0ZXI9c3RhcnRzd2l0aCUyOG5hbWUlMkMlMjd3ZCUyNyUyOSZyZWN1cnNpdmU9dHJ1ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6a979efe-5fa9-4599-bafa-24484f470522" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:26 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#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"wd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskRecursiveJob/tasks/testTask/files/wd\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"wd\\\\testFile.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listNodeFileByTaskRecursiveJob/tasks/testTask/files/wd\\\\testFile.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T17:01:24.9801459Z\",\r\n \"lastModified\": \"2015-07-30T17:01:24.9801459Z\",\r\n \"contentLength\": \"14\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ef744df0-38ab-434c-b1bf-21f127585f33" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6a979efe-5fa9-4599-bafa-24484f470522" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:26 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskRecursiveJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrUmVjdXJzaXZlSm9iP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8391e754-02ba-409b-a26d-1164e95a8e40" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:27 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": [ + "98de7e5f-eb33-4d64-832d-40cdb68a89d0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8391e754-02ba-409b-a26d-1164e95a8e40" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:27 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskRecursiveJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrUmVjdXJzaXZlSm9iP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8391e754-02ba-409b-a26d-1164e95a8e40" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:27 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": [ + "98de7e5f-eb33-4d64-832d-40cdb68a89d0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8391e754-02ba-409b-a26d-1164e95a8e40" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:27 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskRecursiveJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrUmVjdXJzaXZlSm9iP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8391e754-02ba-409b-a26d-1164e95a8e40" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:27 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": [ + "98de7e5f-eb33-4d64-832d-40cdb68a89d0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8391e754-02ba-409b-a26d-1164e95a8e40" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:27 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/listNodeFileByTaskRecursiveJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdE5vZGVGaWxlQnlUYXNrUmVjdXJzaXZlSm9iP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8391e754-02ba-409b-a26d-1164e95a8e40" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:27 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": [ + "98de7e5f-eb33-4d64-832d-40cdb68a89d0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8391e754-02ba-409b-a26d-1164e95a8e40" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:27 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/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByTaskWithMaxCount.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByTaskWithMaxCount.json new file mode 100644 index 000000000000..df1d4f090787 --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListNodeFilesByTaskWithMaxCount.json @@ -0,0 +1,1485 @@ +{ + "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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-request-id": [ + "7d195d63-ed51-4504-b043-249632b6fabe" + ], + "x-ms-correlation-request-id": [ + "7d195d63-ed51-4504-b043-249632b6fabe" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170038Z:7d195d63-ed51-4504-b043-249632b6fabe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:37 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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-request-id": [ + "8da0fc6c-0575-444b-8398-3813eb504cff" + ], + "x-ms-correlation-request-id": [ + "8da0fc6c-0575-444b-8398-3813eb504cff" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170042Z:8da0fc6c-0575-444b-8398-3813eb504cff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:41 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:00:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "2dd85a24-00bf-403f-8159-fd9dd7c9d323" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14975" + ], + "x-ms-request-id": [ + "7443a55b-f2aa-4a7a-b627-775695f27c70" + ], + "x-ms-correlation-request-id": [ + "7443a55b-f2aa-4a7a-b627-775695f27c70" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170039Z:7443a55b-f2aa-4a7a-b627-775695f27c70" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:38 GMT" + ], + "ETag": [ + "0x8D29900654BCCC5" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:00:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "d91eb68f-e1bb-4894-ba72-56f8938538b8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14974" + ], + "x-ms-request-id": [ + "32258530-9fc5-40f0-9b2b-3855a11c9e3c" + ], + "x-ms-correlation-request-id": [ + "32258530-9fc5-40f0-9b2b-3855a11c9e3c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170042Z:32258530-9fc5-40f0-9b2b-3855a11c9e3c" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:42 GMT" + ], + "ETag": [ + "0x8D29900675E0D65" + ], + "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": [ + "e0d3f071-236f-43f8-aed9-dfee197ddad7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-request-id": [ + "9763ac1a-6ec9-4819-a568-7a75afaf741e" + ], + "x-ms-correlation-request-id": [ + "9763ac1a-6ec9-4819-a568-7a75afaf741e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170039Z:9763ac1a-6ec9-4819-a568-7a75afaf741e" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:39 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": [ + "c50145ad-67ee-43a0-8b8f-135618acff8d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-request-id": [ + "ba21d749-2b99-4ad9-88bc-958a5ae8b2cb" + ], + "x-ms-correlation-request-id": [ + "ba21d749-2b99-4ad9-88bc-958a5ae8b2cb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170043Z:ba21d749-2b99-4ad9-88bc-958a5ae8b2cb" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:42 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\": \"nodeFileByTaskMaxJob\",\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": [ + "8e816414-59d2-40af-8dbd-30cf1dc1367c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:39 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:00:40 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e4005efb-9595-4162-9201-12cc408163d4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8e816414-59d2-40af-8dbd-30cf1dc1367c" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:39 GMT" + ], + "ETag": [ + "0x8D2990065E6A6EF" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/nodeFileByTaskMaxJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tNYXhKb2IvdGFza3M/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "83" + ], + "client-request-id": [ + "b6a71e26-9c1d-4169-9ecf-2b1f4068ab8d" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:39 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:00:40 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b5c2e950-9ca3-4e78-bcd0-16d7c6748275" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "b6a71e26-9c1d-4169-9ecf-2b1f4068ab8d" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskMaxJob/tasks/testTask" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:40 GMT" + ], + "ETag": [ + "0x8D2990065E5DDD0" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskMaxJob/tasks/testTask" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/nodeFileByTaskMaxJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tNYXhKb2IvdGFza3M/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "83" + ], + "client-request-id": [ + "b6a71e26-9c1d-4169-9ecf-2b1f4068ab8d" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:39 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:00:40 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b5c2e950-9ca3-4e78-bcd0-16d7c6748275" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "b6a71e26-9c1d-4169-9ecf-2b1f4068ab8d" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskMaxJob/tasks/testTask" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:40 GMT" + ], + "ETag": [ + "0x8D2990065E5DDD0" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskMaxJob/tasks/testTask" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/nodeFileByTaskMaxJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tNYXhKb2IvdGFza3MvdGVzdFRhc2s/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "be0b75c0-499d-41a8-af0b-be6bee2c3c68" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:40 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#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskMaxJob/tasks/testTask\",\r\n \"eTag\": \"0x8D2990065E5DDD0\",\r\n \"creationTime\": \"2015-07-30T17:00:40.127432Z\",\r\n \"lastModified\": \"2015-07-30T17:00:40.127432Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:00:40.127432Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:00:40 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "426da9b0-001d-4c4c-a394-b913ae04aa2c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "be0b75c0-499d-41a8-af0b-be6bee2c3c68" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:40 GMT" + ], + "ETag": [ + "0x8D2990065E5DDD0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskMaxJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tNYXhKb2IvdGFza3MvdGVzdFRhc2s/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "be0b75c0-499d-41a8-af0b-be6bee2c3c68" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:40 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#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskMaxJob/tasks/testTask\",\r\n \"eTag\": \"0x8D2990065E5DDD0\",\r\n \"creationTime\": \"2015-07-30T17:00:40.127432Z\",\r\n \"lastModified\": \"2015-07-30T17:00:40.127432Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:00:40.127432Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:00:40 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "426da9b0-001d-4c4c-a394-b913ae04aa2c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "be0b75c0-499d-41a8-af0b-be6bee2c3c68" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:40 GMT" + ], + "ETag": [ + "0x8D2990065E5DDD0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskMaxJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tNYXhKb2IvdGFza3MvdGVzdFRhc2s/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "be0b75c0-499d-41a8-af0b-be6bee2c3c68" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:40 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#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskMaxJob/tasks/testTask\",\r\n \"eTag\": \"0x8D2990065E5DDD0\",\r\n \"creationTime\": \"2015-07-30T17:00:40.127432Z\",\r\n \"lastModified\": \"2015-07-30T17:00:40.127432Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:00:40.127432Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:00:40 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "426da9b0-001d-4c4c-a394-b913ae04aa2c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "be0b75c0-499d-41a8-af0b-be6bee2c3c68" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:40 GMT" + ], + "ETag": [ + "0x8D2990065E5DDD0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskMaxJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tNYXhKb2IvdGFza3MvdGVzdFRhc2s/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ef0ac57d-8732-4eab-9a23-4a03fb39456c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:43 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#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskMaxJob/tasks/testTask\",\r\n \"eTag\": \"0x8D2990065E5DDD0\",\r\n \"creationTime\": \"2015-07-30T17:00:40.127432Z\",\r\n \"lastModified\": \"2015-07-30T17:00:40.127432Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:00:41.9417403Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:00:41.8197339Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T17:00:41.8197339Z\",\r\n \"endTime\": \"2015-07-30T17:00:41.9417403Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_1-20150730t163817z\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:00:40 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4a3d75c2-325b-4164-83f1-1589a0e68037" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ef0ac57d-8732-4eab-9a23-4a03fb39456c" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:42 GMT" + ], + "ETag": [ + "0x8D2990065E5DDD0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskMaxJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tNYXhKb2IvdGFza3MvdGVzdFRhc2s/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ef0ac57d-8732-4eab-9a23-4a03fb39456c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:43 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#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskMaxJob/tasks/testTask\",\r\n \"eTag\": \"0x8D2990065E5DDD0\",\r\n \"creationTime\": \"2015-07-30T17:00:40.127432Z\",\r\n \"lastModified\": \"2015-07-30T17:00:40.127432Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:00:41.9417403Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:00:41.8197339Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T17:00:41.8197339Z\",\r\n \"endTime\": \"2015-07-30T17:00:41.9417403Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_1-20150730t163817z\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:00:40 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4a3d75c2-325b-4164-83f1-1589a0e68037" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ef0ac57d-8732-4eab-9a23-4a03fb39456c" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:42 GMT" + ], + "ETag": [ + "0x8D2990065E5DDD0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskMaxJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tNYXhKb2IvdGFza3M/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdFRhc2slMjcmJHNlbGVjdD1pZCUyQ3N0YXRlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1e9c5d9e-1306-483d-8ca4-48619e7a14a0" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:40 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4cff24f0-dd28-44c2-968f-4776891dd01a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1e9c5d9e-1306-483d-8ca4-48619e7a14a0" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:40 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskMaxJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tNYXhKb2IvdGFza3M/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdFRhc2slMjcmJHNlbGVjdD1pZCUyQ3N0YXRlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1e9c5d9e-1306-483d-8ca4-48619e7a14a0" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:40 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4cff24f0-dd28-44c2-968f-4776891dd01a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1e9c5d9e-1306-483d-8ca4-48619e7a14a0" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:40 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskMaxJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tNYXhKb2IvdGFza3M/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdFRhc2slMjcmJHNlbGVjdD1pZCUyQ3N0YXRlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1e9c5d9e-1306-483d-8ca4-48619e7a14a0" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:40 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4cff24f0-dd28-44c2-968f-4776891dd01a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1e9c5d9e-1306-483d-8ca4-48619e7a14a0" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:40 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskMaxJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tNYXhKb2IvdGFza3M/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdFRhc2slMjcmJHNlbGVjdD1pZCUyQ3N0YXRlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c5e311e7-e683-4d82-a3dc-554ed58cb16a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:42 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b0eb157f-ec45-4cb9-942a-43fd53722052" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c5e311e7-e683-4d82-a3dc-554ed58cb16a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:41 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskMaxJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tNYXhKb2IvdGFza3M/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdFRhc2slMjcmJHNlbGVjdD1pZCUyQ3N0YXRlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c5e311e7-e683-4d82-a3dc-554ed58cb16a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:42 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b0eb157f-ec45-4cb9-942a-43fd53722052" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c5e311e7-e683-4d82-a3dc-554ed58cb16a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:41 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskMaxJob/tasks?$filter=id%20eq%20'testTask'&$select=id%2Cstate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tNYXhKb2IvdGFza3M/JGZpbHRlcj1pZCUyMGVxJTIwJTI3dGVzdFRhc2slMjcmJHNlbGVjdD1pZCUyQ3N0YXRlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c5e311e7-e683-4d82-a3dc-554ed58cb16a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:42 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b0eb157f-ec45-4cb9-942a-43fd53722052" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c5e311e7-e683-4d82-a3dc-554ed58cb16a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:41 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskMaxJob/tasks/testTask/files?recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tNYXhKb2IvdGFza3MvdGVzdFRhc2svZmlsZXM/cmVjdXJzaXZlPWZhbHNlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "5ef999f7-f2e4-457b-8a4e-f9159cdc706e" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:43 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#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"ProcessEnv.cmd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskMaxJob/tasks/testTask/files/ProcessEnv.cmd\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T17:00:41.9187391Z\",\r\n \"lastModified\": \"2015-07-30T17:00:41.9187391Z\",\r\n \"contentLength\": \"2420\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stderr.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskMaxJob/tasks/testTask/files/stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T17:00:41.838035Z\",\r\n \"lastModified\": \"2015-07-30T17:00:41.838035Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stdout.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskMaxJob/tasks/testTask/files/stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T17:00:41.838035Z\",\r\n \"lastModified\": \"2015-07-30T17:00:41.9317402Z\",\r\n \"contentLength\": \"412\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"wd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskMaxJob/tasks/testTask/files/wd\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "bb0a05c9-0bef-4e30-a731-40dbb25da2a2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "5ef999f7-f2e4-457b-8a4e-f9159cdc706e" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:42 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskMaxJob/tasks/testTask/files?recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tNYXhKb2IvdGFza3MvdGVzdFRhc2svZmlsZXM/cmVjdXJzaXZlPWZhbHNlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d38cce3f-6fd6-41f9-9757-ecf8cee85d7a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:43 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#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"ProcessEnv.cmd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskMaxJob/tasks/testTask/files/ProcessEnv.cmd\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T17:00:41.9187391Z\",\r\n \"lastModified\": \"2015-07-30T17:00:41.9187391Z\",\r\n \"contentLength\": \"2420\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stderr.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskMaxJob/tasks/testTask/files/stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T17:00:41.838035Z\",\r\n \"lastModified\": \"2015-07-30T17:00:41.838035Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stdout.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskMaxJob/tasks/testTask/files/stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T17:00:41.838035Z\",\r\n \"lastModified\": \"2015-07-30T17:00:41.9317402Z\",\r\n \"contentLength\": \"412\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"wd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskMaxJob/tasks/testTask/files/wd\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f6c7460a-9bfb-46e1-b86b-d6f71abcccfb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d38cce3f-6fd6-41f9-9757-ecf8cee85d7a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:43 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskMaxJob/tasks/testTask/files?recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tNYXhKb2IvdGFza3MvdGVzdFRhc2svZmlsZXM/cmVjdXJzaXZlPWZhbHNlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d38cce3f-6fd6-41f9-9757-ecf8cee85d7a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:43 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#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"ProcessEnv.cmd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskMaxJob/tasks/testTask/files/ProcessEnv.cmd\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T17:00:41.9187391Z\",\r\n \"lastModified\": \"2015-07-30T17:00:41.9187391Z\",\r\n \"contentLength\": \"2420\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stderr.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskMaxJob/tasks/testTask/files/stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T17:00:41.838035Z\",\r\n \"lastModified\": \"2015-07-30T17:00:41.838035Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stdout.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskMaxJob/tasks/testTask/files/stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T17:00:41.838035Z\",\r\n \"lastModified\": \"2015-07-30T17:00:41.9317402Z\",\r\n \"contentLength\": \"412\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"wd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskMaxJob/tasks/testTask/files/wd\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f6c7460a-9bfb-46e1-b86b-d6f71abcccfb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d38cce3f-6fd6-41f9-9757-ecf8cee85d7a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:43 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskMaxJob/tasks/testTask/files?recursive=false&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tNYXhKb2IvdGFza3MvdGVzdFRhc2svZmlsZXM/cmVjdXJzaXZlPWZhbHNlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d38cce3f-6fd6-41f9-9757-ecf8cee85d7a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:43 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#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"ProcessEnv.cmd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskMaxJob/tasks/testTask/files/ProcessEnv.cmd\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T17:00:41.9187391Z\",\r\n \"lastModified\": \"2015-07-30T17:00:41.9187391Z\",\r\n \"contentLength\": \"2420\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stderr.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskMaxJob/tasks/testTask/files/stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T17:00:41.838035Z\",\r\n \"lastModified\": \"2015-07-30T17:00:41.838035Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stdout.txt\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskMaxJob/tasks/testTask/files/stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-30T17:00:41.838035Z\",\r\n \"lastModified\": \"2015-07-30T17:00:41.9317402Z\",\r\n \"contentLength\": \"412\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"wd\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/nodeFileByTaskMaxJob/tasks/testTask/files/wd\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f6c7460a-9bfb-46e1-b86b-d6f71abcccfb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d38cce3f-6fd6-41f9-9757-ecf8cee85d7a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:43 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/nodeFileByTaskMaxJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tNYXhKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1b9c5200-caff-4b54-bd4d-ddcfc797e1b8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:43 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": [ + "26bd9e15-35d8-4848-9c82-7ae400464bbe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1b9c5200-caff-4b54-bd4d-ddcfc797e1b8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:43 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/nodeFileByTaskMaxJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tNYXhKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1b9c5200-caff-4b54-bd4d-ddcfc797e1b8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:43 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": [ + "26bd9e15-35d8-4848-9c82-7ae400464bbe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1b9c5200-caff-4b54-bd4d-ddcfc797e1b8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:43 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/nodeFileByTaskMaxJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tNYXhKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1b9c5200-caff-4b54-bd4d-ddcfc797e1b8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:43 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": [ + "26bd9e15-35d8-4848-9c82-7ae400464bbe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1b9c5200-caff-4b54-bd4d-ddcfc797e1b8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:43 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/nodeFileByTaskMaxJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbm9kZUZpbGVCeVRhc2tNYXhKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1b9c5200-caff-4b54-bd4d-ddcfc797e1b8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:00:43 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": [ + "26bd9e15-35d8-4848-9c82-7ae400464bbe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1b9c5200-caff-4b54-bd4d-ddcfc797e1b8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:00:43 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/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListTaskFilePipeline.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListTaskFilePipeline.json deleted file mode 100644 index b4b6f42bd79b..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListTaskFilePipeline.json +++ /dev/null @@ -1,980 +0,0 @@ -{ - "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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14970" - ], - "x-ms-request-id": [ - "07e3dccd-4e81-495c-aba1-38bfef23e939" - ], - "x-ms-correlation-request-id": [ - "07e3dccd-4e81-495c-aba1-38bfef23e939" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191630Z:07e3dccd-4e81-495c-aba1-38bfef23e939" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:29 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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14969" - ], - "x-ms-request-id": [ - "e1e33be3-46f0-4983-bbaf-04a8cefb0f5b" - ], - "x-ms-correlation-request-id": [ - "e1e33be3-46f0-4983-bbaf-04a8cefb0f5b" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191635Z:e1e33be3-46f0-4983-bbaf-04a8cefb0f5b" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:34 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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:16:31 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "f97987b1-9295-4fdf-97bf-890a00541b7c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14969" - ], - "x-ms-request-id": [ - "98f8fc5b-83b9-43bc-86be-31208458909a" - ], - "x-ms-correlation-request-id": [ - "98f8fc5b-83b9-43bc-86be-31208458909a" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191631Z:98f8fc5b-83b9-43bc-86be-31208458909a" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:30 GMT" - ], - "ETag": [ - "0x8D28892E5A62A15" - ], - "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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:16:36 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "f4a0baeb-6127-4b60-9c19-bba0878a41dc" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14968" - ], - "x-ms-request-id": [ - "ccb5a504-a092-4ace-90b7-bd07e1accf91" - ], - "x-ms-correlation-request-id": [ - "ccb5a504-a092-4ace-90b7-bd07e1accf91" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191635Z:ccb5a504-a092-4ace-90b7-bd07e1accf91" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:34 GMT" - ], - "ETag": [ - "0x8D28892E88889FA" - ], - "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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "b3909a3f-42fc-4f76-b510-c72875819ac6" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1182" - ], - "x-ms-request-id": [ - "0b62e477-2747-444e-b835-c56750e19d69" - ], - "x-ms-correlation-request-id": [ - "0b62e477-2747-444e-b835-c56750e19d69" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191631Z:0b62e477-2747-444e-b835-c56750e19d69" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:30 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-version": [ - "2015-07-01" - ], - "User-Agent": [ - "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "26cf3f95-870b-4033-9ac1-c892f6238a18" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1181" - ], - "x-ms-request-id": [ - "ea4593a3-07a2-4a89-a017-e23a7354ed3f" - ], - "x-ms-correlation-request-id": [ - "ea4593a3-07a2-4a89-a017-e23a7354ed3f" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191635Z:ea4593a3-07a2-4a89-a017-e23a7354ed3f" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:35 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testListTaskPipeWI\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "174" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "dc346937-a902-4f3c-8644-2c84bab88f66" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:16:31 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Last-Modified": [ - "Thu, 09 Jul 2015 19:16:31 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "8aa5b0a6-4776-41d8-8456-6d5da7a76b2f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testListTaskPipeWI" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:31 GMT" - ], - "ETag": [ - "0x8D28892E6040C11" - ], - "Location": [ - "https://pstests.batch.core.windows.net/workitems/testListTaskPipeWI" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/workitems/testListTaskPipeWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tQaXBlV0k/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "93e82b85-6e83-4366-b198-4e0fe5d32e97" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:16:31 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testListTaskPipeWI\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskPipeWI\",\r\n \"eTag\": \"0x8D28892E6040C11\",\r\n \"lastModified\": \"2015-07-09T19:16:31.8288913Z\",\r\n \"creationTime\": \"2015-07-09T19:16:31.8288913Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:16:31.8288913Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskPipeWI/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:16:31 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "59ec968e-4953-44f5-b207-9bf231cdffc2" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:31 GMT" - ], - "ETag": [ - "0x8D28892E6040C11" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testListTaskPipeWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tQaXBlV0k/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "b5e02626-b090-4c64-9d3b-db5188cac096" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:16:36 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testListTaskPipeWI\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskPipeWI\",\r\n \"eTag\": \"0x8D28892E6040C11\",\r\n \"lastModified\": \"2015-07-09T19:16:31.8288913Z\",\r\n \"creationTime\": \"2015-07-09T19:16:31.8288913Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:16:31.8288913Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskPipeWI/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:16:31 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "99f607e9-f501-4b32-b644-9c16174a92a7" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:36 GMT" - ], - "ETag": [ - "0x8D28892E6040C11" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testListTaskPipeWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tQaXBlV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "149" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "2ec11812-c301-4147-b13a-a18adbfdae4c" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:16:31 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Last-Modified": [ - "Thu, 09 Jul 2015 19:16:32 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "c1e14423-6150-4610-b2ee-820d1c934a8e" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testListTaskPipeWI/jobs/job-0000000001/tasks/testTask" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:31 GMT" - ], - "ETag": [ - "0x8D28892E673DB7C" - ], - "Location": [ - "https://pstests.batch.core.windows.net/workitems/testListTaskPipeWI/jobs/job-0000000001/tasks/testTask" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/workitems/testListTaskPipeWI/jobs/job-0000000001/tasks/testTask?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tQaXBlV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcy90ZXN0VGFzaz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "4241ee15-9c67-45e1-bc2d-4822007dfd14" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:16:32 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskPipeWI/jobs/job-0000000001/tasks/testTask\",\r\n \"eTag\": \"0x8D28892E673DB7C\",\r\n \"creationTime\": \"2015-07-09T19:16:32.5616508Z\",\r\n \"lastModified\": \"2015-07-09T19:16:32.5616508Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:16:32.5616508Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:16:32 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "7ec2ed3d-e375-4e9c-b875-6d96ad115904" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:32 GMT" - ], - "ETag": [ - "0x8D28892E673DB7C" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testListTaskPipeWI/jobs/job-0000000001/tasks/testTask?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tQaXBlV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcy90ZXN0VGFzaz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "90b3120d-f0bf-4206-91c7-bcea8e72abd9" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:16:35 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskPipeWI/jobs/job-0000000001/tasks/testTask\",\r\n \"eTag\": \"0x8D28892E673DB7C\",\r\n \"creationTime\": \"2015-07-09T19:16:32.5616508Z\",\r\n \"lastModified\": \"2015-07-09T19:16:32.5616508Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-09T19:16:32.7978126Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-09T19:16:32.6976001Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T19:16:32.6976001Z\",\r\n \"endTime\": \"2015-07-09T19:16:32.7978126Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"tvmInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmUrl\": \"https://pstests.batch.core.windows.net/pools/testpool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"poolName\": \"testpool\",\r\n \"tvmName\": \"tvm-4155946844_1-20150709t190321z\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:16:32 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "fc2426e0-b0fd-45da-9e7c-e85c789fc95a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:35 GMT" - ], - "ETag": [ - "0x8D28892E673DB7C" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testListTaskPipeWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0&$select=name%2Cstate&$filter=name%20eq%20'testTask'", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tQaXBlV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMCYkc2VsZWN0PW5hbWUlMkNzdGF0ZSYkZmlsdGVyPW5hbWUlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "792c62c6-c7d2-4aa8-8033-acdd1eb97806" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:16:32 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"name\": \"testTask\",\r\n \"state\": \"running\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "a35a1ed3-3031-4db7-8f1c-33fc1514d763" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:32 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testListTaskPipeWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0&$select=name%2Cstate&$filter=name%20eq%20'testTask'", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tQaXBlV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMCYkc2VsZWN0PW5hbWUlMkNzdGF0ZSYkZmlsdGVyPW5hbWUlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "5d51c887-ae56-4ec6-8148-57bcd9d80fb6" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:16:35 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"name\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "019d6549-6c94-495a-bed3-24ccf258cb46" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:34 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testListTaskPipeWI/jobs/job-0000000001/tasks/testTask/files?api-version=2014-10-01.1.0&recursive=False", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tQaXBlV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcy90ZXN0VGFzay9maWxlcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMCZyZWN1cnNpdmU9RmFsc2U=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "ad663dcb-15e6-4ac0-a9a2-4ca72f9d55e3" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:16:36 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"ProcessEnv.cmd\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskPipeWI/jobs/job-0000000001/tasks/testTask/files/ProcessEnv.cmd\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-09T19:16:32.7808149Z\",\r\n \"lastModified\": \"2015-07-09T19:16:32.7808149Z\",\r\n \"contentLength\": \"2471\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stderr.txt\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskPipeWI/jobs/job-0000000001/tasks/testTask/files/stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-09T19:16:32.7158137Z\",\r\n \"lastModified\": \"2015-07-09T19:16:32.7158137Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stdout.txt\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskPipeWI/jobs/job-0000000001/tasks/testTask/files/stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-09T19:16:32.7158137Z\",\r\n \"lastModified\": \"2015-07-09T19:16:32.7888122Z\",\r\n \"contentLength\": \"419\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"wd\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskPipeWI/jobs/job-0000000001/tasks/testTask/files/wd\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "e848a8cc-c4b5-49cf-af4f-2439cd17e6c4" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:35 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testListTaskPipeWI/jobs/job-0000000001/tasks/testTask/files?api-version=2014-10-01.1.0&recursive=False", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tQaXBlV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcy90ZXN0VGFzay9maWxlcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMCZyZWN1cnNpdmU9RmFsc2U=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "9ae55278-fec1-4ec3-965a-33b0ecdc27e5" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:16:38 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"ProcessEnv.cmd\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskPipeWI/jobs/job-0000000001/tasks/testTask/files/ProcessEnv.cmd\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-09T19:16:32.7808149Z\",\r\n \"lastModified\": \"2015-07-09T19:16:32.7808149Z\",\r\n \"contentLength\": \"2471\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stderr.txt\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskPipeWI/jobs/job-0000000001/tasks/testTask/files/stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-09T19:16:32.7158137Z\",\r\n \"lastModified\": \"2015-07-09T19:16:32.7158137Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stdout.txt\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskPipeWI/jobs/job-0000000001/tasks/testTask/files/stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-09T19:16:32.7158137Z\",\r\n \"lastModified\": \"2015-07-09T19:16:32.7888122Z\",\r\n \"contentLength\": \"419\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"wd\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskPipeWI/jobs/job-0000000001/tasks/testTask/files/wd\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "ad07ca52-f419-4a04-b8d7-0ad6f2c456e3" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:38 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testListTaskPipeWI/jobs?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tQaXBlV0kvam9icz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "1ef3fc62-ea56-47fa-ad14-1f20f907678f" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:16:37 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"name\": \"job-0000000001\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskPipeWI/jobs/job-0000000001\",\r\n \"eTag\": \"0x8D28892E614800E\",\r\n \"lastModified\": \"2015-07-09T19:16:31.9367182Z\",\r\n \"creationTime\": \"2015-07-09T19:16:31.9177107Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:16:31.9367182Z\",\r\n \"poolName\": \"testPool\",\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T19:16:31.9367182Z\"\r\n }\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "6586ee0e-df9d-4c88-8928-6c063cd470a7" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:36 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testListTaskPipeWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tQaXBlV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "258a0463-c274-4d53-9e24-41680449146b" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:16:37 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"name\": \"testTask\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskPipeWI/jobs/job-0000000001/tasks/testTask\",\r\n \"eTag\": \"0x8D28892E673DB7C\",\r\n \"creationTime\": \"2015-07-09T19:16:32.5616508Z\",\r\n \"lastModified\": \"2015-07-09T19:16:32.5616508Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-09T19:16:32.7978126Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-09T19:16:32.6976001Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T19:16:32.6976001Z\",\r\n \"endTime\": \"2015-07-09T19:16:32.7978126Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"tvmInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmUrl\": \"https://pstests.batch.core.windows.net/pools/testpool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"poolName\": \"testpool\",\r\n \"tvmName\": \"tvm-4155946844_1-20150709t190321z\"\r\n }\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "82688b1d-941c-4d09-94ea-5e61dcb9d34a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:37 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testListTaskPipeWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tQaXBlV0k/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "f2f3c209-278e-4e18-a4c4-cd404d0572f2" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:16:38 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "6201c7cb-abf7-4f7d-90a2-8ed880ede66e" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:39 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/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListTaskFilesByFilter.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListTaskFilesByFilter.json deleted file mode 100644 index dd4e77d97375..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListTaskFilesByFilter.json +++ /dev/null @@ -1,839 +0,0 @@ -{ - "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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14939" - ], - "x-ms-request-id": [ - "2870229b-2cf1-45be-917c-52a40bb57195" - ], - "x-ms-correlation-request-id": [ - "2870229b-2cf1-45be-917c-52a40bb57195" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191543Z:2870229b-2cf1-45be-917c-52a40bb57195" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:42 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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14938" - ], - "x-ms-request-id": [ - "de0d68d8-8def-40fb-a0a8-17a65680cac5" - ], - "x-ms-correlation-request-id": [ - "de0d68d8-8def-40fb-a0a8-17a65680cac5" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191549Z:de0d68d8-8def-40fb-a0a8-17a65680cac5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:49 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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:15:44 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "330b16cc-5666-4f53-a267-349d094396eb" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14980" - ], - "x-ms-request-id": [ - "6dcae16b-4241-4844-af14-cf7cd850e31c" - ], - "x-ms-correlation-request-id": [ - "6dcae16b-4241-4844-af14-cf7cd850e31c" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191544Z:6dcae16b-4241-4844-af14-cf7cd850e31c" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:43 GMT" - ], - "ETag": [ - "0x8D28892C9CCF4B3" - ], - "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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:15:49 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "46e955ef-ee51-494d-8b94-07695237e3a7" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14979" - ], - "x-ms-request-id": [ - "083d8ccc-4dd2-4f92-8428-cb99026393eb" - ], - "x-ms-correlation-request-id": [ - "083d8ccc-4dd2-4f92-8428-cb99026393eb" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191549Z:083d8ccc-4dd2-4f92-8428-cb99026393eb" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:48 GMT" - ], - "ETag": [ - "0x8D28892CC978AEF" - ], - "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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "8dec9441-3cfb-4724-96a4-e40e61ba6493" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1192" - ], - "x-ms-request-id": [ - "b30b14b2-c9fd-44cf-9c87-b4847109db86" - ], - "x-ms-correlation-request-id": [ - "b30b14b2-c9fd-44cf-9c87-b4847109db86" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191544Z:b30b14b2-c9fd-44cf-9c87-b4847109db86" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:44 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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "c13e8576-b7d7-47af-9869-e0d2c0c585d0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1191" - ], - "x-ms-request-id": [ - "bd73f64b-6337-4429-bdfa-9fcd424fe6cb" - ], - "x-ms-correlation-request-id": [ - "bd73f64b-6337-4429-bdfa-9fcd424fe6cb" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191549Z:bd73f64b-6337-4429-bdfa-9fcd424fe6cb" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:48 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testListTaskFileFilterWI\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "180" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "ff24d528-0ccf-4f4e-b0a3-6b8d7c287060" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:15:44 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Last-Modified": [ - "Thu, 09 Jul 2015 19:15:45 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "53d8d807-0547-45ae-9dd2-b2e88f1a544b" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testListTaskFileFilterWI" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:44 GMT" - ], - "ETag": [ - "0x8D28892CA459289" - ], - "Location": [ - "https://pstests.batch.core.windows.net/workitems/testListTaskFileFilterWI" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/workitems/testListTaskFileFilterWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tGaWxlRmlsdGVyV0k/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "78aff494-0aa9-48c4-aab2-aa6a8aa178bb" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:15:44 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testListTaskFileFilterWI\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskFileFilterWI\",\r\n \"eTag\": \"0x8D28892CA459289\",\r\n \"lastModified\": \"2015-07-09T19:15:45.2821129Z\",\r\n \"creationTime\": \"2015-07-09T19:15:45.2821129Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:15:45.2821129Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskFileFilterWI/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:15:45 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "51c5fb7b-1e2e-450c-86a3-5432844bf83e" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:44 GMT" - ], - "ETag": [ - "0x8D28892CA459289" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testListTaskFileFilterWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tGaWxlRmlsdGVyV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "149" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "362cfe12-f827-42b3-97e0-4872b267b53f" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:15:45 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Last-Modified": [ - "Thu, 09 Jul 2015 19:15:45 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "28df353e-1b6b-489c-a99d-e1ae5c79a9ce" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testListTaskFileFilterWI/jobs/job-0000000001/tasks/testTask" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:45 GMT" - ], - "ETag": [ - "0x8D28892CAAF21F5" - ], - "Location": [ - "https://pstests.batch.core.windows.net/workitems/testListTaskFileFilterWI/jobs/job-0000000001/tasks/testTask" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/workitems/testListTaskFileFilterWI/jobs/job-0000000001/tasks/testTask?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tGaWxlRmlsdGVyV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcy90ZXN0VGFzaz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "f0d650ce-2446-411d-888d-4086e149916e" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:15:45 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskFileFilterWI/jobs/job-0000000001/tasks/testTask\",\r\n \"eTag\": \"0x8D28892CAAF21F5\",\r\n \"creationTime\": \"2015-07-09T19:15:45.9739125Z\",\r\n \"lastModified\": \"2015-07-09T19:15:45.9739125Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:15:45.9739125Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:15:45 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "b512e90a-d9c4-4958-90f1-fa8684c8c764" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:46 GMT" - ], - "ETag": [ - "0x8D28892CAAF21F5" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testListTaskFileFilterWI/jobs/job-0000000001/tasks/testTask?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tGaWxlRmlsdGVyV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcy90ZXN0VGFzaz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "e01e594c-3f6c-42c7-bd2f-0fe3cccf2f25" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:15:49 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskFileFilterWI/jobs/job-0000000001/tasks/testTask\",\r\n \"eTag\": \"0x8D28892CAAF21F5\",\r\n \"creationTime\": \"2015-07-09T19:15:45.9739125Z\",\r\n \"lastModified\": \"2015-07-09T19:15:45.9739125Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-09T19:15:46.4572447Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-09T19:15:46.3532477Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T19:15:46.3532477Z\",\r\n \"endTime\": \"2015-07-09T19:15:46.4572447Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"tvmInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmUrl\": \"https://pstests.batch.core.windows.net/pools/testpool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"poolName\": \"testpool\",\r\n \"tvmName\": \"tvm-4155946844_1-20150709t190321z\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:15:45 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "e4282c95-7ca2-4085-9b77-2609f4d4b8c5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:49 GMT" - ], - "ETag": [ - "0x8D28892CAAF21F5" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testListTaskFileFilterWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0&$select=name%2Cstate&$filter=name%20eq%20'testTask'", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tGaWxlRmlsdGVyV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMCYkc2VsZWN0PW5hbWUlMkNzdGF0ZSYkZmlsdGVyPW5hbWUlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "486a826d-26d3-4beb-92d5-bcac2702c922" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:15:46 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"name\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "92498806-f60e-4d08-bdf5-db3f671e57b1" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:46 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testListTaskFileFilterWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0&$select=name%2Cstate&$filter=name%20eq%20'testTask'", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tGaWxlRmlsdGVyV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMCYkc2VsZWN0PW5hbWUlMkNzdGF0ZSYkZmlsdGVyPW5hbWUlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "119efc79-7203-467a-bef0-86c5cdd3ee4a" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:15:48 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"name\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "2d5f947c-bf36-4d4e-a66a-39636a2386e4" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:48 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testListTaskFileFilterWI/jobs/job-0000000001/tasks/testTask/files?api-version=2014-10-01.1.0&recursive=False&$filter=startswith(name%2C'std')", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tGaWxlRmlsdGVyV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcy90ZXN0VGFzay9maWxlcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMCZyZWN1cnNpdmU9RmFsc2UmJGZpbHRlcj1zdGFydHN3aXRoJTI4bmFtZSUyQyUyN3N0ZCUyNyUyOQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "afd9604d-f82c-43f5-96a9-aa48b77a4356" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:15:49 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"stderr.txt\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskFileFilterWI/jobs/job-0000000001/tasks/testTask/files/stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-09T19:15:46.3632448Z\",\r\n \"lastModified\": \"2015-07-09T19:15:46.3632448Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stdout.txt\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskFileFilterWI/jobs/job-0000000001/tasks/testTask/files/stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-09T19:15:46.362245Z\",\r\n \"lastModified\": \"2015-07-09T19:15:46.4332452Z\",\r\n \"contentLength\": \"425\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "54aac630-2dd8-4c01-8bbb-a29bb583debd" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:49 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testListTaskFileFilterWI/jobs/job-0000000001/tasks/testTask/files?api-version=2014-10-01.1.0&recursive=False&$filter=startswith(name%2C'std')", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tGaWxlRmlsdGVyV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcy90ZXN0VGFzay9maWxlcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMCZyZWN1cnNpdmU9RmFsc2UmJGZpbHRlcj1zdGFydHN3aXRoJTI4bmFtZSUyQyUyN3N0ZCUyNyUyOQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "a1f28ac6-e74c-420e-99a9-a82426b7c8b6" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:15:50 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"stderr.txt\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskFileFilterWI/jobs/job-0000000001/tasks/testTask/files/stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-09T19:15:46.3632448Z\",\r\n \"lastModified\": \"2015-07-09T19:15:46.3632448Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stdout.txt\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskFileFilterWI/jobs/job-0000000001/tasks/testTask/files/stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-09T19:15:46.362245Z\",\r\n \"lastModified\": \"2015-07-09T19:15:46.4332452Z\",\r\n \"contentLength\": \"425\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "645b7f22-b6a6-4f49-ad16-9bb0acff3af8" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:50 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testListTaskFileFilterWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tGaWxlRmlsdGVyV0k/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "75ccb2d7-97ca-4406-bb9c-a6e78a08cec6" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:15:50 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "a46bbf0f-5a33-4f18-ad23-f2913b8ca5d0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:50 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/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListTaskFilesWithMaxCount.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListTaskFilesWithMaxCount.json deleted file mode 100644 index 98344d2039e5..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListTaskFilesWithMaxCount.json +++ /dev/null @@ -1,839 +0,0 @@ -{ - "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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14942" - ], - "x-ms-request-id": [ - "794e5f38-cac4-427a-af7c-bb595e84f1d7" - ], - "x-ms-correlation-request-id": [ - "794e5f38-cac4-427a-af7c-bb595e84f1d7" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191517Z:794e5f38-cac4-427a-af7c-bb595e84f1d7" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:17 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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14941" - ], - "x-ms-request-id": [ - "4565c9ff-a064-4e08-8a0b-fc249d49efb8" - ], - "x-ms-correlation-request-id": [ - "4565c9ff-a064-4e08-8a0b-fc249d49efb8" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191523Z:4565c9ff-a064-4e08-8a0b-fc249d49efb8" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:22 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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:15:18 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "e4dcafd5-4811-48f9-808b-27edaed18983" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14949" - ], - "x-ms-request-id": [ - "22da4047-03a2-40f3-98f6-5b0fb3e6b576" - ], - "x-ms-correlation-request-id": [ - "22da4047-03a2-40f3-98f6-5b0fb3e6b576" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191518Z:22da4047-03a2-40f3-98f6-5b0fb3e6b576" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:17 GMT" - ], - "ETag": [ - "0x8D28892BA283B5C" - ], - "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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:15:23 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "bed4c52e-f03c-4a00-9382-3eccf4de1445" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14948" - ], - "x-ms-request-id": [ - "54b070d1-60e3-47e6-9545-c3ae61791ea8" - ], - "x-ms-correlation-request-id": [ - "54b070d1-60e3-47e6-9545-c3ae61791ea8" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191523Z:54b070d1-60e3-47e6-9545-c3ae61791ea8" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:23 GMT" - ], - "ETag": [ - "0x8D28892BD056037" - ], - "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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "4d802655-af84-44ef-bb51-fb5ee4afaa65" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1174" - ], - "x-ms-request-id": [ - "1683eb9c-5633-4555-a82f-993cda407abe" - ], - "x-ms-correlation-request-id": [ - "1683eb9c-5633-4555-a82f-993cda407abe" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191518Z:1683eb9c-5633-4555-a82f-993cda407abe" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:17 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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "8ec73bc8-c7ba-4324-9cb1-69bfdfbc2257" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1173" - ], - "x-ms-request-id": [ - "b5492b28-e5f1-4183-8633-d4a7697df32f" - ], - "x-ms-correlation-request-id": [ - "b5492b28-e5f1-4183-8633-d4a7697df32f" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191523Z:b5492b28-e5f1-4183-8633-d4a7697df32f" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:23 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testTaskFileMaxWI\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "173" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "45ce2b34-c113-4c19-99f8-ad7348b019f3" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:15:18 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Last-Modified": [ - "Thu, 09 Jul 2015 19:15:19 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "ab0b585f-4328-4cd2-93d3-574c5efe35e0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testTaskFileMaxWI" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:18 GMT" - ], - "ETag": [ - "0x8D28892BAB5821A" - ], - "Location": [ - "https://pstests.batch.core.windows.net/workitems/testTaskFileMaxWI" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/workitems/testTaskFileMaxWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0VGFza0ZpbGVNYXhXST9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "ca032581-707e-4eaf-b87e-615d29bf669e" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:15:18 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testTaskFileMaxWI\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testTaskFileMaxWI\",\r\n \"eTag\": \"0x8D28892BAB5821A\",\r\n \"lastModified\": \"2015-07-09T19:15:19.1721498Z\",\r\n \"creationTime\": \"2015-07-09T19:15:19.1721498Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:15:19.1721498Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testTaskFileMaxWI/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:15:19 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "870cf570-6a52-4ae6-a16e-df586f688585" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:19 GMT" - ], - "ETag": [ - "0x8D28892BAB5821A" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testTaskFileMaxWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0VGFza0ZpbGVNYXhXSS9qb2JzL2pvYi0wMDAwMDAwMDAxL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "149" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "057283f4-1c7b-4d50-8c63-eb9647bb4582" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:15:19 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Last-Modified": [ - "Thu, 09 Jul 2015 19:15:19 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "a1fcbfd8-734e-4e21-8f20-18e366ee78fb" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testTaskFileMaxWI/jobs/job-0000000001/tasks/testTask" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:19 GMT" - ], - "ETag": [ - "0x8D28892BB17730E" - ], - "Location": [ - "https://pstests.batch.core.windows.net/workitems/testTaskFileMaxWI/jobs/job-0000000001/tasks/testTask" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/workitems/testTaskFileMaxWI/jobs/job-0000000001/tasks/testTask?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0VGFza0ZpbGVNYXhXSS9qb2JzL2pvYi0wMDAwMDAwMDAxL3Rhc2tzL3Rlc3RUYXNrP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "a8e392d5-ec2d-4447-b38e-14b48f353e17" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:15:19 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testTaskFileMaxWI/jobs/job-0000000001/tasks/testTask\",\r\n \"eTag\": \"0x8D28892BB17730E\",\r\n \"creationTime\": \"2015-07-09T19:15:19.8140174Z\",\r\n \"lastModified\": \"2015-07-09T19:15:19.8140174Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:15:19.8140174Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:15:19 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "85872ada-5f5c-4939-a30d-6621f4aeb55c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:20 GMT" - ], - "ETag": [ - "0x8D28892BB17730E" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testTaskFileMaxWI/jobs/job-0000000001/tasks/testTask?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0VGFza0ZpbGVNYXhXSS9qb2JzL2pvYi0wMDAwMDAwMDAxL3Rhc2tzL3Rlc3RUYXNrP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "b606be1e-ea5c-4fba-9282-85389f614eba" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:15:23 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testTaskFileMaxWI/jobs/job-0000000001/tasks/testTask\",\r\n \"eTag\": \"0x8D28892BB17730E\",\r\n \"creationTime\": \"2015-07-09T19:15:19.8140174Z\",\r\n \"lastModified\": \"2015-07-09T19:15:19.8140174Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-09T19:15:21.1613669Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-09T19:15:21.0683519Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T19:15:21.0683519Z\",\r\n \"endTime\": \"2015-07-09T19:15:21.1613669Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"tvmInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmUrl\": \"https://pstests.batch.core.windows.net/pools/testpool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"poolName\": \"testpool\",\r\n \"tvmName\": \"tvm-4155946844_1-20150709t190321z\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:15:19 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "e3b302be-3a58-41a6-983e-52e2c738b220" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:23 GMT" - ], - "ETag": [ - "0x8D28892BB17730E" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testTaskFileMaxWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0&$select=name%2Cstate&$filter=name%20eq%20'testTask'", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0VGFza0ZpbGVNYXhXSS9qb2JzL2pvYi0wMDAwMDAwMDAxL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4wJiRzZWxlY3Q9bmFtZSUyQ3N0YXRlJiRmaWx0ZXI9bmFtZSUyMGVxJTIwJTI3dGVzdFRhc2slMjc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "5cc1f117-0a59-4e05-a480-89fff1d4ca2b" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:15:19 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"name\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "d6cecfb4-08cd-4903-ba30-9a6ce1d7ac6b" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:19 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testTaskFileMaxWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0&$select=name%2Cstate&$filter=name%20eq%20'testTask'", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0VGFza0ZpbGVNYXhXSS9qb2JzL2pvYi0wMDAwMDAwMDAxL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4wJiRzZWxlY3Q9bmFtZSUyQ3N0YXRlJiRmaWx0ZXI9bmFtZSUyMGVxJTIwJTI3dGVzdFRhc2slMjc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "023676fe-7a54-4d43-96d0-3e8c5cb5ff96" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:15:22 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"name\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "90fb9c75-9739-4c7a-b15b-641d0e5057e2" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:22 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testTaskFileMaxWI/jobs/job-0000000001/tasks/testTask/files?api-version=2014-10-01.1.0&recursive=False", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0VGFza0ZpbGVNYXhXSS9qb2JzL2pvYi0wMDAwMDAwMDAxL3Rhc2tzL3Rlc3RUYXNrL2ZpbGVzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4wJnJlY3Vyc2l2ZT1GYWxzZQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "c6bc01a6-7b71-425c-9aa0-d7ffe66d593e" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:15:23 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"ProcessEnv.cmd\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testTaskFileMaxWI/jobs/job-0000000001/tasks/testTask/files/ProcessEnv.cmd\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-09T19:15:21.1413682Z\",\r\n \"lastModified\": \"2015-07-09T19:15:21.1423675Z\",\r\n \"contentLength\": \"2461\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stderr.txt\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testTaskFileMaxWI/jobs/job-0000000001/tasks/testTask/files/stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-09T19:15:21.0783673Z\",\r\n \"lastModified\": \"2015-07-09T19:15:21.0783673Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stdout.txt\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testTaskFileMaxWI/jobs/job-0000000001/tasks/testTask/files/stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-09T19:15:21.0773658Z\",\r\n \"lastModified\": \"2015-07-09T19:15:21.1493677Z\",\r\n \"contentLength\": \"418\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"wd\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testTaskFileMaxWI/jobs/job-0000000001/tasks/testTask/files/wd\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "61dd311e-8fce-42d4-b62e-7b849a00a077" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:23 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testTaskFileMaxWI/jobs/job-0000000001/tasks/testTask/files?api-version=2014-10-01.1.0&recursive=False", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0VGFza0ZpbGVNYXhXSS9qb2JzL2pvYi0wMDAwMDAwMDAxL3Rhc2tzL3Rlc3RUYXNrL2ZpbGVzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4wJnJlY3Vyc2l2ZT1GYWxzZQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "11511e54-111b-4350-81d5-693a233b9326" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:15:24 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"ProcessEnv.cmd\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testTaskFileMaxWI/jobs/job-0000000001/tasks/testTask/files/ProcessEnv.cmd\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-09T19:15:21.1413682Z\",\r\n \"lastModified\": \"2015-07-09T19:15:21.1423675Z\",\r\n \"contentLength\": \"2461\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stderr.txt\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testTaskFileMaxWI/jobs/job-0000000001/tasks/testTask/files/stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-09T19:15:21.0783673Z\",\r\n \"lastModified\": \"2015-07-09T19:15:21.0783673Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stdout.txt\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testTaskFileMaxWI/jobs/job-0000000001/tasks/testTask/files/stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-09T19:15:21.0773658Z\",\r\n \"lastModified\": \"2015-07-09T19:15:21.1493677Z\",\r\n \"contentLength\": \"418\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"wd\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testTaskFileMaxWI/jobs/job-0000000001/tasks/testTask/files/wd\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "ad134e8b-49d9-4af5-bfde-170f1a6ea293" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:24 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testTaskFileMaxWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0VGFza0ZpbGVNYXhXST9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "45c05cda-86df-4624-9cb4-0f7180be66a6" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:15:24 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "18b52f59-41a2-4abc-95bd-b3ec3b4d5c3d" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:15:24 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/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListVMFilePipeline.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListVMFilePipeline.json deleted file mode 100644 index 50f69b614123..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListVMFilePipeline.json +++ /dev/null @@ -1,266 +0,0 @@ -{ - "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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14946" - ], - "x-ms-request-id": [ - "abf884c0-4077-474d-8df7-89f11e19ede5" - ], - "x-ms-correlation-request-id": [ - "abf884c0-4077-474d-8df7-89f11e19ede5" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191720Z:abf884c0-4077-474d-8df7-89f11e19ede5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:17:20 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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:17:21 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "d1e3c874-f8e5-412c-9cb9-acf051cf2b86" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14968" - ], - "x-ms-request-id": [ - "456dac2a-e887-4e52-a31b-d102f752e9ec" - ], - "x-ms-correlation-request-id": [ - "456dac2a-e887-4e52-a31b-d102f752e9ec" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191721Z:456dac2a-e887-4e52-a31b-d102f752e9ec" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:17:20 GMT" - ], - "ETag": [ - "0x8D2889303E00CA3" - ], - "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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "369d9273-03b4-4545-8cb2-e5ddbfc300b0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1185" - ], - "x-ms-request-id": [ - "51eb70b2-d38d-43d6-884a-b2a8b5e4d506" - ], - "x-ms-correlation-request-id": [ - "51eb70b2-d38d-43d6-884a-b2a8b5e4d506" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191721Z:51eb70b2-d38d-43d6-884a-b2a8b5e4d506" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:17:20 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6P2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "1d080909-39fc-4a8f-925a-10eeb82a44f4" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:17:21 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tvms/@Element\",\r\n \"name\": \"tvm-4155946844_1-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-09T19:08:35.5466164Z\",\r\n \"lastBootTime\": \"2015-07-09T19:08:35.4786184Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.28.116\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 10,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-09T19:08:35.5776188Z\",\r\n \"endTime\": \"2015-07-09T19:08:36.4942084Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "15a711b2-a151-473b-aff3-17e02a35014c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:17:21 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files?api-version=2014-10-01.1.0&recursive=False", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L2ZpbGVzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4wJnJlY3Vyc2l2ZT1GYWxzZQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "b4a9420d-556b-4fd2-976b-42c213586cc5" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:17:22 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"shared\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/shared\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"startup\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/startup\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"workitems\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/workitems\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "825a61b0-f58d-4463-93a5-4cba092cddb0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:17:21 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" - } -} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListVMFilesByFilter.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListVMFilesByFilter.json deleted file mode 100644 index 436f3ab02cf4..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListVMFilesByFilter.json +++ /dev/null @@ -1,311 +0,0 @@ -{ - "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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14940" - ], - "x-ms-request-id": [ - "db0c8a74-9127-4f8e-8429-5c110b88c062" - ], - "x-ms-correlation-request-id": [ - "db0c8a74-9127-4f8e-8429-5c110b88c062" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191658Z:db0c8a74-9127-4f8e-8429-5c110b88c062" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:57 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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:16:59 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "fa09da7a-23df-4bc3-a4f1-98e5e0c6d072" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14947" - ], - "x-ms-request-id": [ - "488b0862-6087-4382-b495-df2e6825ee6f" - ], - "x-ms-correlation-request-id": [ - "488b0862-6087-4382-b495-df2e6825ee6f" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191659Z:488b0862-6087-4382-b495-df2e6825ee6f" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:58 GMT" - ], - "ETag": [ - "0x8D28892F6A1E423" - ], - "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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "57cabe46-0bb4-4534-b4bc-3b1427c56b76" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1172" - ], - "x-ms-request-id": [ - "0ba2f925-acfa-4892-971a-294ba5bca537" - ], - "x-ms-correlation-request-id": [ - "0ba2f925-acfa-4892-971a-294ba5bca537" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191659Z:0ba2f925-acfa-4892-971a-294ba5bca537" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:58 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files?api-version=2014-10-01.1.0&recursive=False&$filter=startswith(name%2C's')", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L2ZpbGVzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4wJnJlY3Vyc2l2ZT1GYWxzZSYkZmlsdGVyPXN0YXJ0c3dpdGglMjhuYW1lJTJDJTI3cyUyNyUyOQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "03114fa8-6dbd-4b95-b583-c8cd891a9766" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:16:59 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"shared\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/shared\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"startup\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/startup\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "95867e68-c55c-43e9-9d6d-a25111b3e372" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:16:59 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files?api-version=2014-10-01.1.0&recursive=False&$filter=startswith(name%2C's')", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L2ZpbGVzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4wJnJlY3Vyc2l2ZT1GYWxzZSYkZmlsdGVyPXN0YXJ0c3dpdGglMjhuYW1lJTJDJTI3cyUyNyUyOQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "46c65920-151e-4030-b37c-3e7967660636" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:17:00 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"shared\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/shared\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"startup\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/startup\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "84e69a53-822b-4293-bd43-fcd7418d4651" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:17:00 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6P2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "45abb274-7b02-4ab8-8d57-1738f6f6a64d" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:17:00 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tvms/@Element\",\r\n \"name\": \"tvm-4155946844_1-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-09T19:08:35.5466164Z\",\r\n \"lastBootTime\": \"2015-07-09T19:08:35.4786184Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.28.116\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 10,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-09T19:08:35.5776188Z\",\r\n \"endTime\": \"2015-07-09T19:08:36.4942084Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "bf56409b-c89e-44b0-8c4f-83dbec276eeb" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:17:00 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" - } -} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListVMFilesRecursive.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListVMFilesRecursive.json deleted file mode 100644 index f7c8f0ffc855..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListVMFilesRecursive.json +++ /dev/null @@ -1,266 +0,0 @@ -{ - "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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14935" - ], - "x-ms-request-id": [ - "12e2bc47-533e-48c9-b2e0-28aa5c6f5d65" - ], - "x-ms-correlation-request-id": [ - "12e2bc47-533e-48c9-b2e0-28aa5c6f5d65" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191926Z:12e2bc47-533e-48c9-b2e0-28aa5c6f5d65" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:19:26 GMT" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-version": [ - "2015-07-01" - ], - "User-Agent": [ - "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:19:27 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "c1bfa957-f1bd-4ec4-8871-958cb4b34503" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14940" - ], - "x-ms-request-id": [ - "086ec9a0-9b4c-45df-9213-7fa5e870de9b" - ], - "x-ms-correlation-request-id": [ - "086ec9a0-9b4c-45df-9213-7fa5e870de9b" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191927Z:086ec9a0-9b4c-45df-9213-7fa5e870de9b" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:19:26 GMT" - ], - "ETag": [ - "0x8D288934ED760E9" - ], - "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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "dd43aea6-840d-4a67-9da5-3a132368c127" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1168" - ], - "x-ms-request-id": [ - "cd9aab7b-c152-4b95-92c4-c45f18b00585" - ], - "x-ms-correlation-request-id": [ - "cd9aab7b-c152-4b95-92c4-c45f18b00585" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191927Z:cd9aab7b-c152-4b95-92c4-c45f18b00585" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:19:26 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files?api-version=2014-10-01.1.0&recursive=False&$filter=startswith(name%2C'startup')", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L2ZpbGVzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4wJnJlY3Vyc2l2ZT1GYWxzZSYkZmlsdGVyPXN0YXJ0c3dpdGglMjhuYW1lJTJDJTI3c3RhcnR1cCUyNyUyOQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "2941e257-3903-43e4-8933-3308a0da0e19" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:19:27 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"startup\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/startup\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "c716e8a2-24a3-45d6-ba64-20f59b3e61b4" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:19:27 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files?api-version=2014-10-01.1.0&recursive=True&$filter=startswith(name%2C'startup')", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L2ZpbGVzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4wJnJlY3Vyc2l2ZT1UcnVlJiRmaWx0ZXI9c3RhcnRzd2l0aCUyOG5hbWUlMkMlMjdzdGFydHVwJTI3JTI5", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "2e654afe-6a26-4193-bd87-1bfae2009ebb" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:19:27 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"startup\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/startup\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"startup\\\\ProcessEnv.cmd\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/startup\\\\ProcessEnv.cmd\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-09T19:08:36.470202Z\",\r\n \"lastModified\": \"2015-07-09T19:08:36.4722005Z\",\r\n \"contentLength\": \"1749\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"startup\\\\stderr.txt\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/startup\\\\stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-09T19:08:36.3016231Z\",\r\n \"lastModified\": \"2015-07-09T19:08:36.3016231Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"startup\\\\stdout.txt\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/startup\\\\stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-09T19:08:36.2966236Z\",\r\n \"lastModified\": \"2015-07-09T19:08:36.4822017Z\",\r\n \"contentLength\": \"7\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"startup\\\\wd\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/startup\\\\wd\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "8f20f49e-32dc-4776-8943-6f1008148c84" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:19:27 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" - } -} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListVMFilesWithMaxCount.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListVMFilesWithMaxCount.json deleted file mode 100644 index 19733b00e309..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListVMFilesWithMaxCount.json +++ /dev/null @@ -1,311 +0,0 @@ -{ - "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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14967" - ], - "x-ms-request-id": [ - "cfd43064-9d8d-43fb-ab98-0aff95869af6" - ], - "x-ms-correlation-request-id": [ - "cfd43064-9d8d-43fb-ab98-0aff95869af6" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T192058Z:cfd43064-9d8d-43fb-ab98-0aff95869af6" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:20:57 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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:21:00 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "975d7056-c4ab-42e3-b3bc-8c3bde814141" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14935" - ], - "x-ms-request-id": [ - "3a7fc130-5c26-48f5-a404-2a71386138cc" - ], - "x-ms-correlation-request-id": [ - "3a7fc130-5c26-48f5-a404-2a71386138cc" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T192100Z:3a7fc130-5c26-48f5-a404-2a71386138cc" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:20:59 GMT" - ], - "ETag": [ - "0x8D2889385EE4A1F" - ], - "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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "bea9e07a-aa8d-4ca5-94ef-3c354c2e9bdf" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1177" - ], - "x-ms-request-id": [ - "62fec282-c7b0-41bd-852d-81bddf549416" - ], - "x-ms-correlation-request-id": [ - "62fec282-c7b0-41bd-852d-81bddf549416" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T192100Z:62fec282-c7b0-41bd-852d-81bddf549416" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:20:59 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files?api-version=2014-10-01.1.0&recursive=False", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L2ZpbGVzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4wJnJlY3Vyc2l2ZT1GYWxzZQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "19f3ec37-f583-4676-98c0-22db3f3880c8" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:21:00 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"shared\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/shared\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"startup\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/startup\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"workitems\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/workitems\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "16c1ad12-e746-4ea0-b16b-a5eb65bc9304" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:20:59 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files?api-version=2014-10-01.1.0&recursive=False", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L2ZpbGVzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4wJnJlY3Vyc2l2ZT1GYWxzZQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "bec3d9ba-a55a-4a0d-b3ec-bbdcda3d4c84" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:21:01 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"shared\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/shared\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"startup\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/startup\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"workitems\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/files/workitems\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "b05d392f-93e2-4b8d-9ee4-9d5365bad856" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:21:01 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6P2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "a2f01768-e18e-4466-a33e-4ff994cc3c9a" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:21:00 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tvms/@Element\",\r\n \"name\": \"tvm-4155946844_1-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-09T19:08:35.5466164Z\",\r\n \"lastBootTime\": \"2015-07-09T19:08:35.4786184Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.28.116\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 14,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-09T19:08:35.5776188Z\",\r\n \"endTime\": \"2015-07-09T19:08:36.4942084Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "9c55803a-62a5-4011-a3b9-f62ce6cbc29f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:21:00 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" - } -} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetTaskFileContentPipeline.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestDeleteJobSchedule.json similarity index 58% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetTaskFileContentPipeline.json rename to src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestDeleteJobSchedule.json index 174d526976ad..01a60e7a802e 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetTaskFileContentPipeline.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestDeleteJobSchedule.json @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14937" + "14983" ], "x-ms-request-id": [ - "babde362-f7a4-47b9-a6a2-52b8a95a2616" + "0d369bc1-a8f7-4a39-9e7a-65c86d53ab2b" ], "x-ms-correlation-request-id": [ - "babde362-f7a4-47b9-a6a2-52b8a95a2616" + "0d369bc1-a8f7-4a39-9e7a-65c86d53ab2b" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191946Z:babde362-f7a4-47b9-a6a2-52b8a95a2616" + "WESTUS:20150730T165602Z:0d369bc1-a8f7-4a39-9e7a-65c86d53ab2b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:19:46 GMT" + "Thu, 30 Jul 2015 16:56:02 GMT" ] }, "StatusCode": 200 @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14936" + "14982" ], "x-ms-request-id": [ - "4c3b03a4-25c6-4c1e-9a05-53f0d45f68c7" + "5dffefe5-acb1-4885-a9a5-e7955a27eda0" ], "x-ms-correlation-request-id": [ - "4c3b03a4-25c6-4c1e-9a05-53f0d45f68c7" + "5dffefe5-acb1-4885-a9a5-e7955a27eda0" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191949Z:4c3b03a4-25c6-4c1e-9a05-53f0d45f68c7" + "WESTUS:20150730T165604Z:5dffefe5-acb1-4885-a9a5-e7955a27eda0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:19:49 GMT" + "Thu, 30 Jul 2015 16:56:04 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:19:47 GMT" + "Thu, 30 Jul 2015 16:56:03 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "b8bc1e9c-a86e-4473-bc73-c9a0825bb94e" + "3bf21f53-14fd-4759-8b94-5182770fddcb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14977" + "14979" ], "x-ms-request-id": [ - "7da12741-c7ab-4359-9e5a-abc96c489181" + "5c38b88c-06ac-4a74-a8d1-590487b6dfe7" ], "x-ms-correlation-request-id": [ - "7da12741-c7ab-4359-9e5a-abc96c489181" + "5c38b88c-06ac-4a74-a8d1-590487b6dfe7" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191947Z:7da12741-c7ab-4359-9e5a-abc96c489181" + "WESTUS:20150730T165603Z:5c38b88c-06ac-4a74-a8d1-590487b6dfe7" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:19:46 GMT" + "Thu, 30 Jul 2015 16:56:03 GMT" ], "ETag": [ - "0x8D288935A773035" + "0x8D298FFC1072A2D" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:19:49 GMT" + "Thu, 30 Jul 2015 16:56:04 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "d1166633-f6e7-41c7-951e-e7fef622b29b" + "d5566368-169d-41b1-b051-3cc9c4f78c11" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14976" + "14978" ], "x-ms-request-id": [ - "6d5f3ce0-fa0d-4b99-86f2-f56c939950d8" + "767e28f7-cf7f-48c9-bce9-5379975281dd" ], "x-ms-correlation-request-id": [ - "6d5f3ce0-fa0d-4b99-86f2-f56c939950d8" + "767e28f7-cf7f-48c9-bce9-5379975281dd" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191949Z:6d5f3ce0-fa0d-4b99-86f2-f56c939950d8" + "WESTUS:20150730T165604Z:767e28f7-cf7f-48c9-bce9-5379975281dd" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:19:49 GMT" + "Thu, 30 Jul 2015 16:56:04 GMT" ], "ETag": [ - "0x8D288935C104907" + "0x8D298FFC197CF6E" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "78e4663e-4977-4318-a3fc-80ddfec8b22e" + "5e61cdae-99b9-4136-90c1-82748db4f880" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1190" + "1187" ], "x-ms-request-id": [ - "f15bed2f-4cfd-4564-8a74-2eac93500ec7" + "1ed32bad-f7ed-4272-aab3-b143d8db84bf" ], "x-ms-correlation-request-id": [ - "f15bed2f-4cfd-4564-8a74-2eac93500ec7" + "1ed32bad-f7ed-4272-aab3-b143d8db84bf" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191947Z:f15bed2f-4cfd-4564-8a74-2eac93500ec7" + "WESTUS:20150730T165603Z:1ed32bad-f7ed-4272-aab3-b143d8db84bf" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:19:47 GMT" + "Thu, 30 Jul 2015 16:56:03 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "62f287d8-0c63-4736-bee9-dd77ae0e0068" + "dd3bd180-5e88-4ff9-9d68-641fd24fb394" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1189" + "1186" ], "x-ms-request-id": [ - "37e4aaee-27cd-4ffe-a908-b36e638077d4" + "e9c6eb20-2e92-481c-a70e-5cf34607a61d" ], "x-ms-correlation-request-id": [ - "37e4aaee-27cd-4ffe-a908-b36e638077d4" + "e9c6eb20-2e92-481c-a70e-5cf34607a61d" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191950Z:37e4aaee-27cd-4ffe-a908-b36e638077d4" + "WESTUS:20150730T165604Z:e9c6eb20-2e92-481c-a70e-5cf34607a61d" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:19:49 GMT" + "Thu, 30 Jul 2015 16:56:04 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,58 +337,62 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testGetTFContentPipeWI\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", + "RequestBody": "{\r\n \"id\": \"testDeleteJobSchedule\",\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" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "178" - ], - "User-Agent": [ - "WA-Batch/1.0" + "179" ], "client-request-id": [ - "55dc45e6-c169-40d1-8303-db55a5a50ed1" + "6fd6033b-a438-4937-a0c0-0963bd206f41" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:56:03 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:19:47 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 19:19:48 GMT" + "Thu, 30 Jul 2015 16:56:04 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "961c8c93-f9c8-4846-8afb-8761e97448c0" + "70e793fc-1100-4c13-8196-93cf7e6dcab6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "6fd6033b-a438-4937-a0c0-0963bd206f41" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testGetTFContentPipeWI" + "https://pstests.eastus.batch.azure.com/jobschedules/testDeleteJobSchedule" ], "Date": [ - "Thu, 09 Jul 2015 19:19:46 GMT" + "Thu, 30 Jul 2015 16:56:04 GMT" ], "ETag": [ - "0x8D288935B0DF116" + "0x8D298FFC17252A2" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/testGetTFContentPipeWI" + "https://pstests.eastus.batch.azure.com/jobschedules/testDeleteJobSchedule" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -397,160 +401,96 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/testGetTFContentPipeWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0R2V0VEZDb250ZW50UGlwZVdJP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "03f9a61d-a44e-4aeb-ac11-dcf475f8a2aa" + "e95b87c7-5246-4e7e-b692-9fb99e689534" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:56:04 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:19:47 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testGetTFContentPipeWI\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testGetTFContentPipeWI\",\r\n \"eTag\": \"0x8D288935B0DF116\",\r\n \"lastModified\": \"2015-07-09T19:19:48.1871638Z\",\r\n \"creationTime\": \"2015-07-09T19:19:48.1871638Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:19:48.1871638Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testGetTFContentPipeWI/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDeleteJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDeleteJobSchedule\",\r\n \"eTag\": \"0x8D298FFC17252A2\",\r\n \"lastModified\": \"2015-07-30T16:56:04.2238626Z\",\r\n \"creationTime\": \"2015-07-30T16:56:04.2238626Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:56:04.2238626Z\",\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/testDeleteJobSchedule:job-1\",\r\n \"id\": \"testDeleteJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:19:48 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "b92ee383-b434-4b97-94bd-c6ecf8c6169d" + "46ca41eb-8f9a-45e8-8196-0ca5d124a21e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:19:47 GMT" - ], - "ETag": [ - "0x8D288935B0DF116" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testGetTFContentPipeWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0R2V0VEZDb250ZW50UGlwZVdJL2pvYnMvam9iLTAwMDAwMDAwMDEvdGFza3M/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask\",\r\n \"commandLine\": \"cmd /c echo test file contents > testFile.txt\",\r\n \"runElevated\": true\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "181" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "7a2371a9-6ef7-4c0a-9865-66d21ced8056" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:19:48 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Last-Modified": [ - "Thu, 09 Jul 2015 19:19:48 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "c32a6d6a-3225-43f0-ab50-70d863cae7d6" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "e95b87c7-5246-4e7e-b692-9fb99e689534" ], "DataServiceVersion": [ "3.0" ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testGetTFContentPipeWI/jobs/job-0000000001/tasks/testTask" - ], "Date": [ - "Thu, 09 Jul 2015 19:19:48 GMT" - ], - "ETag": [ - "0x8D288935B495AD3" - ], - "Location": [ - "https://pstests.batch.core.windows.net/workitems/testGetTFContentPipeWI/jobs/job-0000000001/tasks/testTask" + "Thu, 30 Jul 2015 16:56:04 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 201 + "StatusCode": 200 }, { - "RequestUri": "/workitems/testGetTFContentPipeWI/jobs/job-0000000001/tasks/testTask?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0R2V0VEZDb250ZW50UGlwZVdJL2pvYnMvam9iLTAwMDAwMDAwMDEvdGFza3MvdGVzdFRhc2s/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "e1a382c3-0e0a-4512-aa74-5c7d553c330a" + "d13cfed1-6bc3-4543-ba9b-63931ae56348" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:56:05 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:19:48 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testGetTFContentPipeWI/jobs/job-0000000001/tasks/testTask\",\r\n \"eTag\": \"0x8D288935B495AD3\",\r\n \"creationTime\": \"2015-07-09T19:19:48.5765331Z\",\r\n \"lastModified\": \"2015-07-09T19:19:48.5765331Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:19:48.5765331Z\",\r\n \"commandLine\": \"cmd /c echo test file contents > testFile.txt\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDeleteJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDeleteJobSchedule\",\r\n \"eTag\": \"0x8D298FFC17252A2\",\r\n \"lastModified\": \"2015-07-30T16:56:04.2238626Z\",\r\n \"creationTime\": \"2015-07-30T16:56:04.2238626Z\",\r\n \"state\": \"deleting\",\r\n \"stateTransitionTime\": \"2015-07-30T16:56:05.2075396Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T16:56:04.2238626Z\",\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/testDeleteJobSchedule:job-1\",\r\n \"id\": \"testDeleteJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:19:48 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "830eed05-17f2-4f18-8496-b407580e8a45" + "f8e985d9-1f79-4a1f-a3ef-6f3a17273718" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "d13cfed1-6bc3-4543-ba9b-63931ae56348" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:19:49 GMT" - ], - "ETag": [ - "0x8D288935B495AD3" + "Thu, 30 Jul 2015 16:56:05 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -559,25 +499,26 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testGetTFContentPipeWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0&$select=name%2Cstate&$filter=name%20eq%20'testTask'", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0R2V0VEZDb250ZW50UGlwZVdJL2pvYnMvam9iLTAwMDAwMDAwMDEvdGFza3M/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjAmJHNlbGVjdD1uYW1lJTJDc3RhdGUmJGZpbHRlcj1uYW1lJTIwZXElMjAlMjd0ZXN0VGFzayUyNw==", + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "7740611c-b38f-4c50-9341-ca918383b9f7" + "d13cfed1-6bc3-4543-ba9b-63931ae56348" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:56:05 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:19:49 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"name\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDeleteJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDeleteJobSchedule\",\r\n \"eTag\": \"0x8D298FFC17252A2\",\r\n \"lastModified\": \"2015-07-30T16:56:04.2238626Z\",\r\n \"creationTime\": \"2015-07-30T16:56:04.2238626Z\",\r\n \"state\": \"deleting\",\r\n \"stateTransitionTime\": \"2015-07-30T16:56:05.2075396Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T16:56:04.2238626Z\",\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/testDeleteJobSchedule:job-1\",\r\n \"id\": \"testDeleteJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" @@ -586,16 +527,19 @@ "chunked" ], "request-id": [ - "7b59522f-7010-42ea-b454-386541596dd2" + "f8e985d9-1f79-4a1f-a3ef-6f3a17273718" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "d13cfed1-6bc3-4543-ba9b-63931ae56348" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:19:49 GMT" + "Thu, 30 Jul 2015 16:56:05 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -604,55 +548,47 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testGetTFContentPipeWI/jobs/job-0000000001/tasks/testTask/files/wd/testFile.txt?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0R2V0VEZDb250ZW50UGlwZVdJL2pvYnMvam9iLTAwMDAwMDAwMDEvdGFza3MvdGVzdFRhc2svZmlsZXMvd2QvdGVzdEZpbGUudHh0P2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "HEAD", + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "65fb382e-533e-4558-9e36-e2762df6b4d0" + "d13cfed1-6bc3-4543-ba9b-63931ae56348" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:56:05 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:19:49 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDeleteJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDeleteJobSchedule\",\r\n \"eTag\": \"0x8D298FFC17252A2\",\r\n \"lastModified\": \"2015-07-30T16:56:04.2238626Z\",\r\n \"creationTime\": \"2015-07-30T16:56:04.2238626Z\",\r\n \"state\": \"deleting\",\r\n \"stateTransitionTime\": \"2015-07-30T16:56:05.2075396Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T16:56:04.2238626Z\",\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/testDeleteJobSchedule:job-1\",\r\n \"id\": \"testDeleteJobSchedule:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { - "Content-Length": [ - "21" - ], "Content-Type": [ - "application/octet-stream" + "application/json; odata=minimalmetadata" ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:19:49 GMT" + "Transfer-Encoding": [ + "chunked" ], "request-id": [ - "403923f9-f4c5-46f7-b0a2-f1407f4796a7" + "f8e985d9-1f79-4a1f-a3ef-6f3a17273718" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "d13cfed1-6bc3-4543-ba9b-63931ae56348" + ], "DataServiceVersion": [ "3.0" ], - "ocp-creation-time": [ - "Thu, 09 Jul 2015 19:19:49 GMT" - ], - "ocp-batch-file-isdirectory": [ - "False" - ], - "ocp-batch-file-url": [ - "https%3A%2F%2Fpstests.batch.core.windows.net%2Fworkitems%2FtestGetTFContentPipeWI%2Fjobs%2Fjob-0000000001%2Ftasks%2FtestTask%2Ffiles%2Fwd%2FtestFile.txt" - ], "Date": [ - "Thu, 09 Jul 2015 19:19:50 GMT" + "Thu, 30 Jul 2015 16:56:05 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -661,79 +597,69 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testGetTFContentPipeWI/jobs/job-0000000001/tasks/testTask/files/wd/testFile.txt?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0R2V0VEZDb250ZW50UGlwZVdJL2pvYnMvam9iLTAwMDAwMDAwMDEvdGFza3MvdGVzdFRhc2svZmlsZXMvd2QvdGVzdEZpbGUudHh0P2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", + "RequestUri": "/jobschedules/testDeleteJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGVsZXRlSm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "5b3373da-6f83-47cb-b6f3-d276e8f845d3" + "60d0066d-7ca7-49d8-9ade-dffab9d6eef0" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:56:04 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:19:50 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "test file contents \r\n", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/octet-stream" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:19:49 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "9e0f9a46-67a4-4e5e-81ef-9222ff72b026" + "6b82a0c1-1443-4b7a-9d72-aab9a7cff907" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "60d0066d-7ca7-49d8-9ade-dffab9d6eef0" + ], "DataServiceVersion": [ "3.0" ], - "ocp-creation-time": [ - "Thu, 09 Jul 2015 19:19:49 GMT" - ], - "ocp-batch-file-isdirectory": [ - "False" - ], - "ocp-batch-file-url": [ - "https%3A%2F%2Fpstests.batch.core.windows.net%2Fworkitems%2FtestGetTFContentPipeWI%2Fjobs%2Fjob-0000000001%2Ftasks%2FtestTask%2Ffiles%2Fwd%2FtestFile.txt" - ], "Date": [ - "Thu, 09 Jul 2015 19:19:50 GMT" + "Thu, 30 Jul 2015 16:56:05 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testGetTFContentPipeWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0R2V0VEZDb250ZW50UGlwZVdJP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/jobschedules/testDeleteJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGVsZXRlSm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "c8dd6c6c-8735-4842-b602-80dbad7a3069" + "60d0066d-7ca7-49d8-9ade-dffab9d6eef0" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:56:04 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:19:51 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -742,16 +668,19 @@ "chunked" ], "request-id": [ - "62d606bb-6355-4448-a0f3-c826ecf56669" + "6b82a0c1-1443-4b7a-9d72-aab9a7cff907" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "60d0066d-7ca7-49d8-9ade-dffab9d6eef0" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:19:50 GMT" + "Thu, 30 Jul 2015 16:56:05 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListAllTaskFiles.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestDeleteJobSchedulePipeline.json similarity index 51% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListAllTaskFiles.json rename to src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestDeleteJobSchedulePipeline.json index 4af3cc304c87..5390d9cc50b0 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListAllTaskFiles.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestDeleteJobSchedulePipeline.json @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14934" + "14986" ], "x-ms-request-id": [ - "c0f31186-48e7-41ec-b0b0-7d10a9757e33" + "556e1ca4-12a9-4fd6-97f2-0092439fae5a" ], "x-ms-correlation-request-id": [ - "c0f31186-48e7-41ec-b0b0-7d10a9757e33" + "556e1ca4-12a9-4fd6-97f2-0092439fae5a" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192010Z:c0f31186-48e7-41ec-b0b0-7d10a9757e33" + "WESTUS:20150730T165623Z:556e1ca4-12a9-4fd6-97f2-0092439fae5a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:20:09 GMT" + "Thu, 30 Jul 2015 16:56:23 GMT" ] }, "StatusCode": 200 @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14933" + "14985" ], "x-ms-request-id": [ - "5f543c79-4788-4967-896a-3fc4b16849bd" + "109810ba-31eb-409f-b796-409a2c9a5f26" ], "x-ms-correlation-request-id": [ - "5f543c79-4788-4967-896a-3fc4b16849bd" + "109810ba-31eb-409f-b796-409a2c9a5f26" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192015Z:5f543c79-4788-4967-896a-3fc4b16849bd" + "WESTUS:20150730T165626Z:109810ba-31eb-409f-b796-409a2c9a5f26" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:20:14 GMT" + "Thu, 30 Jul 2015 16:56:26 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:20:11 GMT" + "Thu, 30 Jul 2015 16:56:24 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "09e5b89b-1e83-4f29-8b9c-4ed0c1d09e14" + "ba6899a4-e1b8-4f77-b945-87a2679afaa8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14939" + "14956" ], "x-ms-request-id": [ - "11e0b21d-28fd-4971-ac0c-491a415e9d1f" + "9675138d-afda-4fea-93a9-c0f5152d0291" ], "x-ms-correlation-request-id": [ - "11e0b21d-28fd-4971-ac0c-491a415e9d1f" + "9675138d-afda-4fea-93a9-c0f5152d0291" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192010Z:11e0b21d-28fd-4971-ac0c-491a415e9d1f" + "WESTUS:20150730T165624Z:9675138d-afda-4fea-93a9-c0f5152d0291" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:20:10 GMT" + "Thu, 30 Jul 2015 16:56:24 GMT" ], "ETag": [ - "0x8D2889368A90F58" + "0x8D298FFCDA919C5" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:20:15 GMT" + "Thu, 30 Jul 2015 16:56:25 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "c39e58da-6129-4317-9a8a-3063b0a3bace" + "743d7269-2c0f-4cb1-9be1-2e430ae6e9ae" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14938" + "14955" ], "x-ms-request-id": [ - "f8018bca-f0d4-479f-91b7-9fb4a11b6a34" + "b9a005db-3dab-42e7-a0c2-d51d47079206" ], "x-ms-correlation-request-id": [ - "f8018bca-f0d4-479f-91b7-9fb4a11b6a34" + "b9a005db-3dab-42e7-a0c2-d51d47079206" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192015Z:f8018bca-f0d4-479f-91b7-9fb4a11b6a34" + "WESTUS:20150730T165626Z:b9a005db-3dab-42e7-a0c2-d51d47079206" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:20:14 GMT" + "Thu, 30 Jul 2015 16:56:25 GMT" ], "ETag": [ - "0x8D288936B7E563C" + "0x8D298FFCE698EBF" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "5d70e279-f664-4365-b4a7-e7ffd6cff1b4" + "57824890-056b-411d-804a-934ea846bbd1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1167" + "1190" ], "x-ms-request-id": [ - "6b874324-c653-4680-97ce-bdbf036b9cdd" + "3f1ccea3-6f68-4f63-abcd-a700000c08e6" ], "x-ms-correlation-request-id": [ - "6b874324-c653-4680-97ce-bdbf036b9cdd" + "3f1ccea3-6f68-4f63-abcd-a700000c08e6" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192010Z:6b874324-c653-4680-97ce-bdbf036b9cdd" + "WESTUS:20150730T165625Z:3f1ccea3-6f68-4f63-abcd-a700000c08e6" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:20:10 GMT" + "Thu, 30 Jul 2015 16:56:24 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "650d3816-6cd0-428d-8156-ee38481f492f" + "b17025c7-7b54-49b6-afae-2d7e9162b9eb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1166" + "1189" ], "x-ms-request-id": [ - "d4e74649-64e2-4e5a-be0a-6885a8bd98bc" + "966e8279-5bb4-44cd-ab0f-e5a36a69437d" ], "x-ms-correlation-request-id": [ - "d4e74649-64e2-4e5a-be0a-6885a8bd98bc" + "966e8279-5bb4-44cd-ab0f-e5a36a69437d" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192015Z:d4e74649-64e2-4e5a-be0a-6885a8bd98bc" + "WESTUS:20150730T165626Z:966e8279-5bb4-44cd-ab0f-e5a36a69437d" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:20:14 GMT" + "Thu, 30 Jul 2015 16:56:25 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,58 +337,62 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testListTaskFileWI\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", + "RequestBody": "{\r\n \"id\": \"testDeleteJobSchedulePipe\",\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" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "174" - ], - "User-Agent": [ - "WA-Batch/1.0" + "183" ], "client-request-id": [ - "3a816b1c-49c1-41c9-b7f5-3e8c167f9332" + "66972d87-b722-4e2b-add6-dbcf6a468800" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:56:24 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:20:10 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 19:20:11 GMT" + "Thu, 30 Jul 2015 16:56:25 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "a890eac6-3501-497f-b0a3-0a32bcff5152" + "011f91c4-f258-44e5-87b7-75c341256c70" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "66972d87-b722-4e2b-add6-dbcf6a468800" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testListTaskFileWI" + "https://pstests.eastus.batch.azure.com/jobschedules/testDeleteJobSchedulePipe" ], "Date": [ - "Thu, 09 Jul 2015 19:20:10 GMT" + "Thu, 30 Jul 2015 16:56:24 GMT" ], "ETag": [ - "0x8D2889368EFB41E" + "0x8D298FFCE2E8F3C" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/testListTaskFileWI" + "https://pstests.eastus.batch.azure.com/jobschedules/testDeleteJobSchedulePipe" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -397,49 +401,47 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/testListTaskFileWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tGaWxlV0k/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "3d90e432-c3ea-4c35-8234-334403dbee63" + "fcaf1b89-1e8d-4fb5-ad0b-b339fbdaf389" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:56:26 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:20:11 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testListTaskFileWI\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskFileWI\",\r\n \"eTag\": \"0x8D2889368EFB41E\",\r\n \"lastModified\": \"2015-07-09T19:20:11.4770974Z\",\r\n \"creationTime\": \"2015-07-09T19:20:11.4770974Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:20:11.4770974Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskFileWI/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDeleteJobSchedulePipe\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDeleteJobSchedulePipe\",\r\n \"eTag\": \"0x8D298FFCE2E8F3C\",\r\n \"lastModified\": \"2015-07-30T16:56:25.59015Z\",\r\n \"creationTime\": \"2015-07-30T16:56:25.59015Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:56:25.59015Z\",\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/testDeleteJobSchedulePipe:job-1\",\r\n \"id\": \"testDeleteJobSchedulePipe:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:20:11 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "ac2c789c-da75-425c-aab6-80ebaa659057" + "76f079dc-b3b7-4514-87d4-6cb108074c79" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "fcaf1b89-1e8d-4fb5-ad0b-b339fbdaf389" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:20:10 GMT" - ], - "ETag": [ - "0x8D2889368EFB41E" + "Thu, 30 Jul 2015 16:56:25 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -448,109 +450,96 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testListTaskFileWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tGaWxlV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "149" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "81c08938-9b22-4f37-8734-49069a60cc00" + "36357b4f-f374-4174-a0d3-d507faa0e91a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:56:26 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:20:11 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDeleteJobSchedulePipe\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDeleteJobSchedulePipe\",\r\n \"eTag\": \"0x8D298FFCE2E8F3C\",\r\n \"lastModified\": \"2015-07-30T16:56:25.59015Z\",\r\n \"creationTime\": \"2015-07-30T16:56:25.59015Z\",\r\n \"state\": \"deleting\",\r\n \"stateTransitionTime\": \"2015-07-30T16:56:26.9322743Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T16:56:25.59015Z\",\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/testDeleteJobSchedulePipe:job-1\",\r\n \"id\": \"testDeleteJobSchedulePipe:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { - "Last-Modified": [ - "Thu, 09 Jul 2015 19:20:12 GMT" + "Content-Type": [ + "application/json; odata=minimalmetadata" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "b43f8443-a9b0-4bbe-b12b-47622c97ad04" + "d5e54944-157a-47a8-ab72-11050d440071" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "36357b4f-f374-4174-a0d3-d507faa0e91a" + ], "DataServiceVersion": [ "3.0" ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testListTaskFileWI/jobs/job-0000000001/tasks/testTask" - ], "Date": [ - "Thu, 09 Jul 2015 19:20:11 GMT" - ], - "ETag": [ - "0x8D2889369559F65" - ], - "Location": [ - "https://pstests.batch.core.windows.net/workitems/testListTaskFileWI/jobs/job-0000000001/tasks/testTask" + "Thu, 30 Jul 2015 16:56:26 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 201 + "StatusCode": 200 }, { - "RequestUri": "/workitems/testListTaskFileWI/jobs/job-0000000001/tasks/testTask?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tGaWxlV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcy90ZXN0VGFzaz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "85b5c047-cf85-4e10-b857-2f8d7e5d3618" + "36357b4f-f374-4174-a0d3-d507faa0e91a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:56:26 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:20:11 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskFileWI/jobs/job-0000000001/tasks/testTask\",\r\n \"eTag\": \"0x8D2889369559F65\",\r\n \"creationTime\": \"2015-07-09T19:20:12.1450341Z\",\r\n \"lastModified\": \"2015-07-09T19:20:12.1450341Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:20:12.1450341Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDeleteJobSchedulePipe\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDeleteJobSchedulePipe\",\r\n \"eTag\": \"0x8D298FFCE2E8F3C\",\r\n \"lastModified\": \"2015-07-30T16:56:25.59015Z\",\r\n \"creationTime\": \"2015-07-30T16:56:25.59015Z\",\r\n \"state\": \"deleting\",\r\n \"stateTransitionTime\": \"2015-07-30T16:56:26.9322743Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T16:56:25.59015Z\",\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/testDeleteJobSchedulePipe:job-1\",\r\n \"id\": \"testDeleteJobSchedulePipe:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:20:12 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "8bf3241b-5adc-4757-b1be-b8ed474f146b" + "d5e54944-157a-47a8-ab72-11050d440071" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "36357b4f-f374-4174-a0d3-d507faa0e91a" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:20:12 GMT" - ], - "ETag": [ - "0x8D2889369559F65" + "Thu, 30 Jul 2015 16:56:26 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -559,49 +548,47 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testListTaskFileWI/jobs/job-0000000001/tasks/testTask?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tGaWxlV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcy90ZXN0VGFzaz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "05b1c94f-e81a-4513-b782-343e36dc5c8e" + "36357b4f-f374-4174-a0d3-d507faa0e91a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:56:26 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:20:16 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskFileWI/jobs/job-0000000001/tasks/testTask\",\r\n \"eTag\": \"0x8D2889369559F65\",\r\n \"creationTime\": \"2015-07-09T19:20:12.1450341Z\",\r\n \"lastModified\": \"2015-07-09T19:20:12.1450341Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-09T19:20:13.0896145Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-09T19:20:12.9946197Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T19:20:12.9946197Z\",\r\n \"endTime\": \"2015-07-09T19:20:13.0896145Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"tvmInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmUrl\": \"https://pstests.batch.core.windows.net/pools/testpool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"poolName\": \"testpool\",\r\n \"tvmName\": \"tvm-4155946844_1-20150709t190321z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDeleteJobSchedulePipe\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDeleteJobSchedulePipe\",\r\n \"eTag\": \"0x8D298FFCE2E8F3C\",\r\n \"lastModified\": \"2015-07-30T16:56:25.59015Z\",\r\n \"creationTime\": \"2015-07-30T16:56:25.59015Z\",\r\n \"state\": \"deleting\",\r\n \"stateTransitionTime\": \"2015-07-30T16:56:26.9322743Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T16:56:25.59015Z\",\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/testDeleteJobSchedulePipe:job-1\",\r\n \"id\": \"testDeleteJobSchedulePipe:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:20:12 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "3de68743-3cb7-443c-af8f-f766510521ff" + "d5e54944-157a-47a8-ab72-11050d440071" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "36357b4f-f374-4174-a0d3-d507faa0e91a" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:20:15 GMT" - ], - "ETag": [ - "0x8D2889369559F65" + "Thu, 30 Jul 2015 16:56:26 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -610,25 +597,26 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testListTaskFileWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0&$select=name%2Cstate&$filter=name%20eq%20'testTask'", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tGaWxlV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMCYkc2VsZWN0PW5hbWUlMkNzdGF0ZSYkZmlsdGVyPW5hbWUlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3", + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "33e490a9-db37-458d-8b43-5ecbe476810c" + "36357b4f-f374-4174-a0d3-d507faa0e91a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:56:26 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:20:12 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"name\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDeleteJobSchedulePipe\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDeleteJobSchedulePipe\",\r\n \"eTag\": \"0x8D298FFCE2E8F3C\",\r\n \"lastModified\": \"2015-07-30T16:56:25.59015Z\",\r\n \"creationTime\": \"2015-07-30T16:56:25.59015Z\",\r\n \"state\": \"deleting\",\r\n \"stateTransitionTime\": \"2015-07-30T16:56:26.9322743Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T16:56:25.59015Z\",\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/testDeleteJobSchedulePipe:job-1\",\r\n \"id\": \"testDeleteJobSchedulePipe:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" @@ -637,16 +625,19 @@ "chunked" ], "request-id": [ - "e07c1a3b-1034-4840-9f38-f54724b4e16f" + "d5e54944-157a-47a8-ab72-11050d440071" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "36357b4f-f374-4174-a0d3-d507faa0e91a" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:20:12 GMT" + "Thu, 30 Jul 2015 16:56:26 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -655,43 +646,53 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testListTaskFileWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0&$select=name%2Cstate&$filter=name%20eq%20'testTask'", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tGaWxlV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMCYkc2VsZWN0PW5hbWUlMkNzdGF0ZSYkZmlsdGVyPW5hbWUlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3", + "RequestUri": "/jobschedules/testDeleteJobSchedulePipe?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGVsZXRlSm9iU2NoZWR1bGVQaXBlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "f7d2323b-c718-4c7c-a018-558c71685aa8" + "fb2bc94d-0c51-4e46-aa9d-c021959dd6a2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:56:26 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:20:14 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"name\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testDeleteJobSchedulePipe\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDeleteJobSchedulePipe\",\r\n \"eTag\": \"0x8D298FFCE2E8F3C\",\r\n \"lastModified\": \"2015-07-30T16:56:25.59015Z\",\r\n \"creationTime\": \"2015-07-30T16:56:25.59015Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:56:25.59015Z\",\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/testDeleteJobSchedulePipe:job-1\",\r\n \"id\": \"testDeleteJobSchedulePipe:job-1\"\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:56:25 GMT" + ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "aadd3a67-c047-4c6d-8df7-d68141715147" + "a62023dd-9585-4d57-8cc9-4d982e6be418" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "fb2bc94d-0c51-4e46-aa9d-c021959dd6a2" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:20:14 GMT" + "Thu, 30 Jul 2015 16:56:26 GMT" + ], + "ETag": [ + "0x8D298FFCE2E8F3C" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -700,43 +701,53 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testListTaskFileWI/jobs/job-0000000001/tasks/testTask/files?api-version=2014-10-01.1.0&recursive=False", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tGaWxlV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcy90ZXN0VGFzay9maWxlcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMCZyZWN1cnNpdmU9RmFsc2U=", + "RequestUri": "/jobschedules/testDeleteJobSchedulePipe?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGVsZXRlSm9iU2NoZWR1bGVQaXBlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "4f09c0d2-2950-499d-a718-bc56e5931922" + "fb2bc94d-0c51-4e46-aa9d-c021959dd6a2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:56:26 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:20:15 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"ProcessEnv.cmd\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskFileWI/jobs/job-0000000001/tasks/testTask/files/ProcessEnv.cmd\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-09T19:20:13.0716142Z\",\r\n \"lastModified\": \"2015-07-09T19:20:13.0716142Z\",\r\n \"contentLength\": \"2471\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stderr.txt\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskFileWI/jobs/job-0000000001/tasks/testTask/files/stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-09T19:20:13.0056142Z\",\r\n \"lastModified\": \"2015-07-09T19:20:13.0056142Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stdout.txt\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskFileWI/jobs/job-0000000001/tasks/testTask/files/stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-09T19:20:13.0056142Z\",\r\n \"lastModified\": \"2015-07-09T19:20:13.0806143Z\",\r\n \"contentLength\": \"419\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"wd\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskFileWI/jobs/job-0000000001/tasks/testTask/files/wd\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testDeleteJobSchedulePipe\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testDeleteJobSchedulePipe\",\r\n \"eTag\": \"0x8D298FFCE2E8F3C\",\r\n \"lastModified\": \"2015-07-30T16:56:25.59015Z\",\r\n \"creationTime\": \"2015-07-30T16:56:25.59015Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:56:25.59015Z\",\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/testDeleteJobSchedulePipe:job-1\",\r\n \"id\": \"testDeleteJobSchedulePipe:job-1\"\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:56:25 GMT" + ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "6efa9ff6-91c2-4760-afc2-f23a39d288e5" + "a62023dd-9585-4d57-8cc9-4d982e6be418" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "fb2bc94d-0c51-4e46-aa9d-c021959dd6a2" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:20:15 GMT" + "Thu, 30 Jul 2015 16:56:26 GMT" + ], + "ETag": [ + "0x8D298FFCE2E8F3C" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -745,67 +756,115 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testListTaskFileWI/jobs/job-0000000001/tasks/testTask/files?api-version=2014-10-01.1.0&recursive=False", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tGaWxlV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcy90ZXN0VGFzay9maWxlcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMCZyZWN1cnNpdmU9RmFsc2U=", - "RequestMethod": "GET", + "RequestUri": "/jobschedules/testDeleteJobSchedulePipe?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGVsZXRlSm9iU2NoZWR1bGVQaXBlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "6bf0402a-a44d-4245-bf39-72eba055d34a" + "99cc8cfe-050e-4651-bbae-5c0cb4ada61e" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:56:26 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:20:16 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"ProcessEnv.cmd\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskFileWI/jobs/job-0000000001/tasks/testTask/files/ProcessEnv.cmd\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-09T19:20:13.0716142Z\",\r\n \"lastModified\": \"2015-07-09T19:20:13.0716142Z\",\r\n \"contentLength\": \"2471\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stderr.txt\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskFileWI/jobs/job-0000000001/tasks/testTask/files/stderr.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-09T19:20:13.0056142Z\",\r\n \"lastModified\": \"2015-07-09T19:20:13.0056142Z\",\r\n \"contentLength\": \"0\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"stdout.txt\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskFileWI/jobs/job-0000000001/tasks/testTask/files/stdout.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-09T19:20:13.0056142Z\",\r\n \"lastModified\": \"2015-07-09T19:20:13.0806143Z\",\r\n \"contentLength\": \"419\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n },\r\n {\r\n \"name\": \"wd\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTaskFileWI/jobs/job-0000000001/tasks/testTask/files/wd\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "5a8d4de6-a655-4918-80c8-959411c918e5" + "b0a1f1a2-8bf9-4ea1-b83a-b4dd6c72f8e4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "99cc8cfe-050e-4651-bbae-5c0cb4ada61e" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:20:16 GMT" + "Thu, 30 Jul 2015 16:56:26 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testListTaskFileWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRhc2tGaWxlV0k/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/jobschedules/testDeleteJobSchedulePipe?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGVsZXRlSm9iU2NoZWR1bGVQaXBlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "99cc8cfe-050e-4651-bbae-5c0cb4ada61e" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:56:26 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b0a1f1a2-8bf9-4ea1-b83a-b4dd6c72f8e4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "640d8a25-c602-4503-bf9a-6f096174daf1" + "99cc8cfe-050e-4651-bbae-5c0cb4ada61e" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:56:26 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testDeleteJobSchedulePipe?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0RGVsZXRlSm9iU2NoZWR1bGVQaXBlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "99cc8cfe-050e-4651-bbae-5c0cb4ada61e" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:20:16 GMT" + "Thu, 30 Jul 2015 16:56:26 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -814,16 +873,19 @@ "chunked" ], "request-id": [ - "73fa86b0-cec5-4dc7-87c7-5e7964511983" + "b0a1f1a2-8bf9-4ea1-b83a-b4dd6c72f8e4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "99cc8cfe-050e-4651-bbae-5c0cb4ada61e" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:20:16 GMT" + "Thu, 30 Jul 2015 16:56:26 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.WorkItemTests/TestDeleteWorkItem.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestGetJobScheduleById.json similarity index 68% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.WorkItemTests/TestDeleteWorkItem.json rename to src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestGetJobScheduleById.json index bc0edc8ec973..9d193dcad24c 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.WorkItemTests/TestDeleteWorkItem.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestGetJobScheduleById.json @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14932" + "14985" ], "x-ms-request-id": [ - "ad2d38ee-27af-49b6-a6a6-c2d86bf3986f" + "4e5179a6-67c5-4b30-bf9b-5fe11ef615cf" ], "x-ms-correlation-request-id": [ - "ad2d38ee-27af-49b6-a6a6-c2d86bf3986f" + "4e5179a6-67c5-4b30-bf9b-5fe11ef615cf" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192144Z:ad2d38ee-27af-49b6-a6a6-c2d86bf3986f" + "WESTUS:20150730T165541Z:4e5179a6-67c5-4b30-bf9b-5fe11ef615cf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:21:44 GMT" + "Thu, 30 Jul 2015 16:55:40 GMT" ] }, "StatusCode": 200 @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14931" + "14984" ], "x-ms-request-id": [ - "26a3cf5c-7164-4bb6-a0ec-f3608ce7c5a4" + "8b4b9071-3332-4516-b28d-25519d124f90" ], "x-ms-correlation-request-id": [ - "26a3cf5c-7164-4bb6-a0ec-f3608ce7c5a4" + "8b4b9071-3332-4516-b28d-25519d124f90" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192146Z:26a3cf5c-7164-4bb6-a0ec-f3608ce7c5a4" + "WESTUS:20150730T165543Z:8b4b9071-3332-4516-b28d-25519d124f90" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:21:46 GMT" + "Thu, 30 Jul 2015 16:55:43 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:21:45 GMT" + "Thu, 30 Jul 2015 16:55:42 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "ce3458f9-c3b5-4efc-a718-e8cf00128d00" + "0264ef8a-e14c-4f61-8fd5-d041b23ff383" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14935" + "14988" ], "x-ms-request-id": [ - "9757d2fc-f063-4d57-9ae9-4423bf6880b0" + "ef28fa79-abe9-4276-94aa-356ee3dc6b02" ], "x-ms-correlation-request-id": [ - "9757d2fc-f063-4d57-9ae9-4423bf6880b0" + "ef28fa79-abe9-4276-94aa-356ee3dc6b02" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192145Z:9757d2fc-f063-4d57-9ae9-4423bf6880b0" + "WESTUS:20150730T165542Z:ef28fa79-abe9-4276-94aa-356ee3dc6b02" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:21:45 GMT" + "Thu, 30 Jul 2015 16:55:41 GMT" ], "ETag": [ - "0x8D28893A122A157" + "0x8D298FFB44997E6" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:21:46 GMT" + "Thu, 30 Jul 2015 16:55:43 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "c2c2fba8-f3c7-4b0d-b83c-772d03d624ba" + "bcf3e1a5-1f38-419b-b74e-fe05e36dc952" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14934" + "14987" ], "x-ms-request-id": [ - "976094c4-8515-4173-ab05-2a39763c160e" + "af0ad3bf-9cd5-4252-8db7-7705a23f4720" ], "x-ms-correlation-request-id": [ - "976094c4-8515-4173-ab05-2a39763c160e" + "af0ad3bf-9cd5-4252-8db7-7705a23f4720" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192146Z:976094c4-8515-4173-ab05-2a39763c160e" + "WESTUS:20150730T165543Z:af0ad3bf-9cd5-4252-8db7-7705a23f4720" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:21:46 GMT" + "Thu, 30 Jul 2015 16:55:42 GMT" ], "ETag": [ - "0x8D28893A1C6EF56" + "0x8D298FFB4ECD475" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "f9830db4-de43-475f-a89b-990decb7258f" + "e9ad1368-68a7-4e0d-bc3d-c4c7ea0fe78f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1165" + "1195" ], "x-ms-request-id": [ - "59a9eb8c-ea15-4dc2-9807-022ee1888b57" + "b3dc3ad6-e705-490f-9cfb-b3316cdfde47" ], "x-ms-correlation-request-id": [ - "59a9eb8c-ea15-4dc2-9807-022ee1888b57" + "b3dc3ad6-e705-490f-9cfb-b3316cdfde47" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192146Z:59a9eb8c-ea15-4dc2-9807-022ee1888b57" + "WESTUS:20150730T165542Z:b3dc3ad6-e705-490f-9cfb-b3316cdfde47" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:21:45 GMT" + "Thu, 30 Jul 2015 16:55:41 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "2ab05e4d-3cd1-410e-9b1b-7382ea36057b" + "ce47a156-c972-4fd0-b027-a8aa0d610eed" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1164" + "1194" ], "x-ms-request-id": [ - "b8249d27-5e46-426f-ac6b-d399f6266c16" + "65d21e97-6e58-4ce3-b337-01a3654f0146" ], "x-ms-correlation-request-id": [ - "b8249d27-5e46-426f-ac6b-d399f6266c16" + "65d21e97-6e58-4ce3-b337-01a3654f0146" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192147Z:b8249d27-5e46-426f-ac6b-d399f6266c16" + "WESTUS:20150730T165543Z:65d21e97-6e58-4ce3-b337-01a3654f0146" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:21:47 GMT" + "Thu, 30 Jul 2015 16:55:42 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,58 +337,62 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", + "RequestBody": "{\r\n \"id\": \"testId\",\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" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "168" - ], - "User-Agent": [ - "WA-Batch/1.0" + "164" ], "client-request-id": [ - "6b6a5cd8-c986-427c-9502-245d8057b5c5" + "f16cf191-4325-4c4a-a04b-f4b3ea61f43b" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:55:42 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:21:46 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 19:21:46 GMT" + "Thu, 30 Jul 2015 16:55:43 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "fe46b6e2-fe16-4c67-bae2-3cecc87a4c9d" + "c7cfe56e-2004-4ddf-8cd7-4c3472a95f26" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "f16cf191-4325-4c4a-a04b-f4b3ea61f43b" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testWorkItem" + "https://pstests.eastus.batch.azure.com/jobschedules/testId" ], "Date": [ - "Thu, 09 Jul 2015 19:21:45 GMT" + "Thu, 30 Jul 2015 16:55:42 GMT" ], "ETag": [ - "0x8D28893A1CA0CF7" + "0x8D298FFB4E7F509" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/testWorkItem" + "https://pstests.eastus.batch.azure.com/jobschedules/testId" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -397,43 +401,53 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobschedules/testId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "b72982b1-e33b-404f-af0a-7277f9eea080" + "c028f739-f344-43db-907a-8a1fdbdda1be" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:55:43 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:21:47 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems\",\r\n \"value\": [\r\n {\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D28893A1CA0CF7\",\r\n \"lastModified\": \"2015-07-09T19:21:46.8604663Z\",\r\n \"creationTime\": \"2015-07-09T19:21:46.8604663Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:21:46.8604663Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testId\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testId\",\r\n \"eTag\": \"0x8D298FFB4E7F509\",\r\n \"lastModified\": \"2015-07-30T16:55:43.1844105Z\",\r\n \"creationTime\": \"2015-07-30T16:55:43.1844105Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:55:43.1844105Z\",\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/testId:job-1\",\r\n \"id\": \"testId:job-1\"\r\n }\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:55:43 GMT" + ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "aa1ec397-eb26-4d79-bd69-05f8fa99256f" + "fecc553f-4bbc-4d04-8efd-162ecdcb1805" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "c028f739-f344-43db-907a-8a1fdbdda1be" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:21:47 GMT" + "Thu, 30 Jul 2015 16:55:42 GMT" + ], + "ETag": [ + "0x8D298FFB4E7F509" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -442,67 +456,69 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", + "RequestUri": "/jobschedules/testId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "29f48353-e048-4e8a-aa78-706a950a6ab2" + "40c746d8-1a5a-4549-9b7f-60f4e1ab1439" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:55:43 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:21:48 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems\",\r\n \"value\": [\r\n {\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D28893A1CA0CF7\",\r\n \"lastModified\": \"2015-07-09T19:21:46.8604663Z\",\r\n \"creationTime\": \"2015-07-09T19:21:46.8604663Z\",\r\n \"state\": \"deleting\",\r\n \"stateTransitionTime\": \"2015-07-09T19:21:48.7260097Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-09T19:21:46.8604663Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "4ba6ee85-c674-4fb8-bb53-180cc9efa44d" + "83940b06-83b6-4ae2-b1c7-bee15853dfb1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "40c746d8-1a5a-4549-9b7f-60f4e1ab1439" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:21:48 GMT" + "Thu, 30 Jul 2015 16:55:44 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/jobschedules/testId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "366e78c0-2640-448d-9a8f-7a7c2e619898" + "40c746d8-1a5a-4549-9b7f-60f4e1ab1439" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:55:43 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:21:48 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -511,16 +527,19 @@ "chunked" ], "request-id": [ - "50bbb297-3a32-4e54-a73e-43dadb402d51" + "83940b06-83b6-4ae2-b1c7-bee15853dfb1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "40c746d8-1a5a-4549-9b7f-60f4e1ab1439" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:21:47 GMT" + "Thu, 30 Jul 2015 16:55:44 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestListAllJobSchedules.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestListAllJobSchedules.json new file mode 100644 index 000000000000..99538b713de6 --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestListAllJobSchedules.json @@ -0,0 +1,1467 @@ +{ + "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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14964" + ], + "x-ms-request-id": [ + "3f8120c5-0ac4-4d63-beef-bda506ce4ace" + ], + "x-ms-correlation-request-id": [ + "3f8120c5-0ac4-4d63-beef-bda506ce4ace" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170705Z:3f8120c5-0ac4-4d63-beef-bda506ce4ace" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:05 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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14963" + ], + "x-ms-request-id": [ + "4fc0176c-2d1c-4673-9bc5-0d7ffbbf22bf" + ], + "x-ms-correlation-request-id": [ + "4fc0176c-2d1c-4673-9bc5-0d7ffbbf22bf" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170708Z:4fc0176c-2d1c-4673-9bc5-0d7ffbbf22bf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:07 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:07:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "cbcb62ac-76d4-4ed4-9aa1-27af59069a12" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14972" + ], + "x-ms-request-id": [ + "b313bc2f-d6bd-4373-b044-ef76b591e592" + ], + "x-ms-correlation-request-id": [ + "b313bc2f-d6bd-4373-b044-ef76b591e592" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170706Z:b313bc2f-d6bd-4373-b044-ef76b591e592" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:06 GMT" + ], + "ETag": [ + "0x8D299014C666683" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:07:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "02939f68-01ff-4554-a16c-de9ef95532f2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14971" + ], + "x-ms-request-id": [ + "cfdd5446-f76b-44ff-b233-750edfae1bcb" + ], + "x-ms-correlation-request-id": [ + "cfdd5446-f76b-44ff-b233-750edfae1bcb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170708Z:cfdd5446-f76b-44ff-b233-750edfae1bcb" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:07 GMT" + ], + "ETag": [ + "0x8D299014D35F7B6" + ], + "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": [ + "91bbbbeb-1e87-4ed3-9e6d-4e4995afeea6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-request-id": [ + "0f3136c9-b6de-4b0e-b7ce-41f702be69bf" + ], + "x-ms-correlation-request-id": [ + "0f3136c9-b6de-4b0e-b7ce-41f702be69bf" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170706Z:0f3136c9-b6de-4b0e-b7ce-41f702be69bf" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:06 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": [ + "6360b629-4d17-4dbb-a20d-301b0abfa01e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" + ], + "x-ms-request-id": [ + "11e78d55-da82-479b-9589-acc56c46b4d7" + ], + "x-ms-correlation-request-id": [ + "11e78d55-da82-479b-9589-acc56c46b4d7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170708Z:11e78d55-da82-479b-9589-acc56c46b4d7" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:08 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\": \"testId1\",\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": [ + "165" + ], + "client-request-id": [ + "35744aa8-d680-41c9-877a-23a20fa533a6" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:06 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:07:07 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b6d684d3-326e-431c-ae3d-a052656ebadd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "35744aa8-d680-41c9-877a-23a20fa533a6" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testId1" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:07 GMT" + ], + "ETag": [ + "0x8D299014CBCE192" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testId1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testId2\",\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": [ + "165" + ], + "client-request-id": [ + "15e19e5c-d63b-41da-8838-d23abd44daf7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:07 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:07:07 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c7a72a4f-3070-4dd2-9b60-489537e4bc38" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "15e19e5c-d63b-41da-8838-d23abd44daf7" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testId2" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:07 GMT" + ], + "ETag": [ + "0x8D299014CDA33F0" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testId2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testId2\",\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": [ + "165" + ], + "client-request-id": [ + "15e19e5c-d63b-41da-8838-d23abd44daf7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:07 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:07:07 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c7a72a4f-3070-4dd2-9b60-489537e4bc38" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "15e19e5c-d63b-41da-8838-d23abd44daf7" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testId2" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:07 GMT" + ], + "ETag": [ + "0x8D299014CDA33F0" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testId2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdtestId\",\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": [ + "169" + ], + "client-request-id": [ + "cc694d2c-de08-41cd-b5d1-c80689213edf" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:07 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:07:07 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cfa2901f-a62c-4ac1-921d-068c67d717e8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "cc694d2c-de08-41cd-b5d1-c80689213edf" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/thirdtestId" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:07 GMT" + ], + "ETag": [ + "0x8D299014CF967A1" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobschedules/thirdtestId" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdtestId\",\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": [ + "169" + ], + "client-request-id": [ + "cc694d2c-de08-41cd-b5d1-c80689213edf" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:07 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:07:07 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cfa2901f-a62c-4ac1-921d-068c67d717e8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "cc694d2c-de08-41cd-b5d1-c80689213edf" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/thirdtestId" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:07 GMT" + ], + "ETag": [ + "0x8D299014CF967A1" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobschedules/thirdtestId" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdtestId\",\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": [ + "169" + ], + "client-request-id": [ + "cc694d2c-de08-41cd-b5d1-c80689213edf" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:07 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:07:07 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cfa2901f-a62c-4ac1-921d-068c67d717e8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "cc694d2c-de08-41cd-b5d1-c80689213edf" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/thirdtestId" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:07 GMT" + ], + "ETag": [ + "0x8D299014CF967A1" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobschedules/thirdtestId" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "25aec572-cc8f-449a-afbf-d00ae84f05be" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:08 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\": \"testId1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testId1\",\r\n \"eTag\": \"0x8D299014CBCE192\",\r\n \"lastModified\": \"2015-07-30T17:07:07.4125202Z\",\r\n \"creationTime\": \"2015-07-30T17:07:07.4125202Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:07:07.4125202Z\",\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/testId1:job-1\",\r\n \"id\": \"testId1:job-1\"\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"testId2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testId2\",\r\n \"eTag\": \"0x8D299014CDA33F0\",\r\n \"lastModified\": \"2015-07-30T17:07:07.6046832Z\",\r\n \"creationTime\": \"2015-07-30T17:07:07.6046832Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:07:07.6046832Z\",\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/testId2:job-1\",\r\n \"id\": \"testId2:job-1\"\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"thirdtestId\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/thirdtestId\",\r\n \"eTag\": \"0x8D299014CF967A1\",\r\n \"lastModified\": \"2015-07-30T17:07:07.8091681Z\",\r\n \"creationTime\": \"2015-07-30T17:07:07.8091681Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:07:07.8091681Z\",\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/thirdtestId:job-1\",\r\n \"id\": \"thirdtestId:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "45f17e7e-d1d2-485a-a21d-2aac95e48a3e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "25aec572-cc8f-449a-afbf-d00ae84f05be" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:08 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testId1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQxP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "646353c3-ef85-4cc7-a785-f2e922f05825" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:08 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": [ + "6e1ccf25-5006-41ab-b01b-d181d3c4d0e7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "646353c3-ef85-4cc7-a785-f2e922f05825" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:08 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testId1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQxP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "646353c3-ef85-4cc7-a785-f2e922f05825" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:08 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": [ + "6e1ccf25-5006-41ab-b01b-d181d3c4d0e7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "646353c3-ef85-4cc7-a785-f2e922f05825" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:08 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testId1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQxP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "646353c3-ef85-4cc7-a785-f2e922f05825" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:08 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": [ + "6e1ccf25-5006-41ab-b01b-d181d3c4d0e7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "646353c3-ef85-4cc7-a785-f2e922f05825" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:08 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testId1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQxP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "646353c3-ef85-4cc7-a785-f2e922f05825" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:08 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": [ + "6e1ccf25-5006-41ab-b01b-d181d3c4d0e7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "646353c3-ef85-4cc7-a785-f2e922f05825" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:08 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQyP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "cf857c97-e35d-4c4d-bfe9-fcf160615597" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:08 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": [ + "6dcbbd04-11e6-4927-b207-c3e965586013" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "cf857c97-e35d-4c4d-bfe9-fcf160615597" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:08 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQyP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "cf857c97-e35d-4c4d-bfe9-fcf160615597" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:08 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": [ + "6dcbbd04-11e6-4927-b207-c3e965586013" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "cf857c97-e35d-4c4d-bfe9-fcf160615597" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:08 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQyP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "cf857c97-e35d-4c4d-bfe9-fcf160615597" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:08 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": [ + "6dcbbd04-11e6-4927-b207-c3e965586013" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "cf857c97-e35d-4c4d-bfe9-fcf160615597" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:08 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQyP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "cf857c97-e35d-4c4d-bfe9-fcf160615597" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:08 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": [ + "6dcbbd04-11e6-4927-b207-c3e965586013" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "cf857c97-e35d-4c4d-bfe9-fcf160615597" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:08 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQyP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "cf857c97-e35d-4c4d-bfe9-fcf160615597" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:08 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": [ + "6dcbbd04-11e6-4927-b207-c3e965586013" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "cf857c97-e35d-4c4d-bfe9-fcf160615597" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:08 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90aGlyZHRlc3RJZD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "294278b0-541f-485e-8c9d-b84a2c805208" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:08 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": [ + "05d1513b-f305-47fc-b904-2c5cd1fcf105" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "294278b0-541f-485e-8c9d-b84a2c805208" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:08 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90aGlyZHRlc3RJZD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "294278b0-541f-485e-8c9d-b84a2c805208" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:08 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": [ + "05d1513b-f305-47fc-b904-2c5cd1fcf105" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "294278b0-541f-485e-8c9d-b84a2c805208" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:08 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90aGlyZHRlc3RJZD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "294278b0-541f-485e-8c9d-b84a2c805208" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:08 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": [ + "05d1513b-f305-47fc-b904-2c5cd1fcf105" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "294278b0-541f-485e-8c9d-b84a2c805208" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:08 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90aGlyZHRlc3RJZD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "294278b0-541f-485e-8c9d-b84a2c805208" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:08 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": [ + "05d1513b-f305-47fc-b904-2c5cd1fcf105" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "294278b0-541f-485e-8c9d-b84a2c805208" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:08 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90aGlyZHRlc3RJZD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "294278b0-541f-485e-8c9d-b84a2c805208" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:08 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": [ + "05d1513b-f305-47fc-b904-2c5cd1fcf105" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "294278b0-541f-485e-8c9d-b84a2c805208" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:08 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90aGlyZHRlc3RJZD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "294278b0-541f-485e-8c9d-b84a2c805208" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:08 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": [ + "05d1513b-f305-47fc-b904-2c5cd1fcf105" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "294278b0-541f-485e-8c9d-b84a2c805208" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:08 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/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestListJobSchedulesByFilter.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestListJobSchedulesByFilter.json new file mode 100644 index 000000000000..aa7702dd2d3a --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestListJobSchedulesByFilter.json @@ -0,0 +1,1467 @@ +{ + "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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14968" + ], + "x-ms-request-id": [ + "ec3e70f9-2a33-4d76-a5ac-4aeccf39ec48" + ], + "x-ms-correlation-request-id": [ + "ec3e70f9-2a33-4d76-a5ac-4aeccf39ec48" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170623Z:ec3e70f9-2a33-4d76-a5ac-4aeccf39ec48" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:23 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14967" + ], + "x-ms-request-id": [ + "61c3f892-c958-4db0-b35f-d2c05d3013e2" + ], + "x-ms-correlation-request-id": [ + "61c3f892-c958-4db0-b35f-d2c05d3013e2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170625Z:61c3f892-c958-4db0-b35f-d2c05d3013e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:25 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:06:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "0dafa5f5-4bf1-49ce-bb37-bc67e16c3606" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14930" + ], + "x-ms-request-id": [ + "5f04a86d-2062-41d2-974c-b1e37e9cdaba" + ], + "x-ms-correlation-request-id": [ + "5f04a86d-2062-41d2-974c-b1e37e9cdaba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170624Z:5f04a86d-2062-41d2-974c-b1e37e9cdaba" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:24 GMT" + ], + "ETag": [ + "0x8D29901330CE5E8" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:06:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "325f95d9-97cc-4246-af2f-b49f8836558d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14929" + ], + "x-ms-request-id": [ + "16699d63-e05f-45bc-9ca4-54100d8bbddc" + ], + "x-ms-correlation-request-id": [ + "16699d63-e05f-45bc-9ca4-54100d8bbddc" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170625Z:16699d63-e05f-45bc-9ca4-54100d8bbddc" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:25 GMT" + ], + "ETag": [ + "0x8D2990133D38845" + ], + "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": [ + "13bc9740-4446-4dc0-a7dc-18f6cccba762" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1175" + ], + "x-ms-request-id": [ + "f5564898-1d01-47e0-a66e-be4acf4163cd" + ], + "x-ms-correlation-request-id": [ + "f5564898-1d01-47e0-a66e-be4acf4163cd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170624Z:f5564898-1d01-47e0-a66e-be4acf4163cd" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:24 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "63c16f47-3082-44c7-af66-25a0843bdf6e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1174" + ], + "x-ms-request-id": [ + "ed94924a-01a6-4fee-b35f-41717139fc2c" + ], + "x-ms-correlation-request-id": [ + "ed94924a-01a6-4fee-b35f-41717139fc2c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170625Z:ed94924a-01a6-4fee-b35f-41717139fc2c" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:25 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\": \"testId1\",\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": [ + "165" + ], + "client-request-id": [ + "fa1c8dbc-f3db-43ae-b7e4-16e64d279f61" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06:24 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:06:25 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "8fcb5eee-af68-49c1-85f7-e8bf47554f39" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "fa1c8dbc-f3db-43ae-b7e4-16e64d279f61" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testId1" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:23 GMT" + ], + "ETag": [ + "0x8D2990133929284" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testId1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testId2\",\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": [ + "165" + ], + "client-request-id": [ + "d3410e36-430d-4a4f-ae08-d611f4dea7d4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:06:25 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "3def0194-2dbf-4e14-b031-1bcf6dcbbdac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d3410e36-430d-4a4f-ae08-d611f4dea7d4" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testId2" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:23 GMT" + ], + "ETag": [ + "0x8D2990133B13C57" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testId2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testId2\",\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": [ + "165" + ], + "client-request-id": [ + "d3410e36-430d-4a4f-ae08-d611f4dea7d4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:06:25 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "3def0194-2dbf-4e14-b031-1bcf6dcbbdac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d3410e36-430d-4a4f-ae08-d611f4dea7d4" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testId2" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:23 GMT" + ], + "ETag": [ + "0x8D2990133B13C57" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testId2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdtestId\",\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": [ + "169" + ], + "client-request-id": [ + "1c15efd7-ccae-4881-b48f-4c5e5874f45d" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:06:25 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6502dc36-f05a-4bd1-bd19-bcd425b6843c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1c15efd7-ccae-4881-b48f-4c5e5874f45d" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/thirdtestId" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:24 GMT" + ], + "ETag": [ + "0x8D2990133D00EC1" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobschedules/thirdtestId" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdtestId\",\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": [ + "169" + ], + "client-request-id": [ + "1c15efd7-ccae-4881-b48f-4c5e5874f45d" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:06:25 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6502dc36-f05a-4bd1-bd19-bcd425b6843c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1c15efd7-ccae-4881-b48f-4c5e5874f45d" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/thirdtestId" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:24 GMT" + ], + "ETag": [ + "0x8D2990133D00EC1" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobschedules/thirdtestId" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdtestId\",\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": [ + "169" + ], + "client-request-id": [ + "1c15efd7-ccae-4881-b48f-4c5e5874f45d" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:06:25 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6502dc36-f05a-4bd1-bd19-bcd425b6843c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1c15efd7-ccae-4881-b48f-4c5e5874f45d" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/thirdtestId" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:24 GMT" + ], + "ETag": [ + "0x8D2990133D00EC1" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobschedules/thirdtestId" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobschedules?$filter=startswith(id%2C'testId')&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz8kZmlsdGVyPXN0YXJ0c3dpdGglMjhpZCUyQyUyN3Rlc3RJZCUyNyUyOSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f16c694d-bc69-4265-ade9-25c751b1bfd7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06:25 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testId1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testId1\",\r\n \"eTag\": \"0x8D2990133929284\",\r\n \"lastModified\": \"2015-07-30T17:06:25.1922052Z\",\r\n \"creationTime\": \"2015-07-30T17:06:25.1922052Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:06:25.1922052Z\",\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/testId1:job-1\",\r\n \"id\": \"testId1:job-1\"\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"testId2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testId2\",\r\n \"eTag\": \"0x8D2990133B13C57\",\r\n \"lastModified\": \"2015-07-30T17:06:25.3931607Z\",\r\n \"creationTime\": \"2015-07-30T17:06:25.3931607Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:06:25.3931607Z\",\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/testId2:job-1\",\r\n \"id\": \"testId2:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "bbab2c98-8305-4b0b-b870-d97a05dd06a7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f16c694d-bc69-4265-ade9-25c751b1bfd7" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:26 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testId1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQxP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "79524d6c-2ac8-4929-9622-53eb7c5477ce" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06:26 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e2774401-322a-4b26-a793-acb8f7bd4f08" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "79524d6c-2ac8-4929-9622-53eb7c5477ce" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:24 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testId1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQxP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "79524d6c-2ac8-4929-9622-53eb7c5477ce" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06:26 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e2774401-322a-4b26-a793-acb8f7bd4f08" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "79524d6c-2ac8-4929-9622-53eb7c5477ce" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:24 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testId1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQxP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "79524d6c-2ac8-4929-9622-53eb7c5477ce" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06:26 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e2774401-322a-4b26-a793-acb8f7bd4f08" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "79524d6c-2ac8-4929-9622-53eb7c5477ce" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:24 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testId1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQxP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "79524d6c-2ac8-4929-9622-53eb7c5477ce" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06:26 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e2774401-322a-4b26-a793-acb8f7bd4f08" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "79524d6c-2ac8-4929-9622-53eb7c5477ce" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:24 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQyP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "fb399999-da8c-4aa1-b600-47d9109e3b5f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06:26 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "92f6d5ef-af77-416b-ae5e-d71fd618ce54" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "fb399999-da8c-4aa1-b600-47d9109e3b5f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:24 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQyP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "fb399999-da8c-4aa1-b600-47d9109e3b5f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06:26 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "92f6d5ef-af77-416b-ae5e-d71fd618ce54" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "fb399999-da8c-4aa1-b600-47d9109e3b5f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:24 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQyP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "fb399999-da8c-4aa1-b600-47d9109e3b5f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06:26 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "92f6d5ef-af77-416b-ae5e-d71fd618ce54" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "fb399999-da8c-4aa1-b600-47d9109e3b5f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:24 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQyP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "fb399999-da8c-4aa1-b600-47d9109e3b5f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06:26 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "92f6d5ef-af77-416b-ae5e-d71fd618ce54" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "fb399999-da8c-4aa1-b600-47d9109e3b5f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:24 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQyP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "fb399999-da8c-4aa1-b600-47d9109e3b5f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06:26 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "92f6d5ef-af77-416b-ae5e-d71fd618ce54" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "fb399999-da8c-4aa1-b600-47d9109e3b5f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:24 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90aGlyZHRlc3RJZD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "96647fd4-8e9a-47cd-9c3d-a85014507dac" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06:26 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "28d80f80-b479-46c5-8834-3ffba03c8fbc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "96647fd4-8e9a-47cd-9c3d-a85014507dac" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:25 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90aGlyZHRlc3RJZD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "96647fd4-8e9a-47cd-9c3d-a85014507dac" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06:26 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "28d80f80-b479-46c5-8834-3ffba03c8fbc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "96647fd4-8e9a-47cd-9c3d-a85014507dac" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:25 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90aGlyZHRlc3RJZD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "96647fd4-8e9a-47cd-9c3d-a85014507dac" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06:26 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "28d80f80-b479-46c5-8834-3ffba03c8fbc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "96647fd4-8e9a-47cd-9c3d-a85014507dac" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:25 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90aGlyZHRlc3RJZD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "96647fd4-8e9a-47cd-9c3d-a85014507dac" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06:26 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "28d80f80-b479-46c5-8834-3ffba03c8fbc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "96647fd4-8e9a-47cd-9c3d-a85014507dac" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:25 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90aGlyZHRlc3RJZD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "96647fd4-8e9a-47cd-9c3d-a85014507dac" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06:26 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "28d80f80-b479-46c5-8834-3ffba03c8fbc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "96647fd4-8e9a-47cd-9c3d-a85014507dac" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:25 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90aGlyZHRlc3RJZD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "96647fd4-8e9a-47cd-9c3d-a85014507dac" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06:26 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "28d80f80-b479-46c5-8834-3ffba03c8fbc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "96647fd4-8e9a-47cd-9c3d-a85014507dac" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:25 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/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestListJobSchedulesWithMaxCount.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestListJobSchedulesWithMaxCount.json new file mode 100644 index 000000000000..a9d13165c4e3 --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestListJobSchedulesWithMaxCount.json @@ -0,0 +1,1467 @@ +{ + "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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14928" + ], + "x-ms-request-id": [ + "03777c26-abe6-49e3-a231-74274f95cb46" + ], + "x-ms-correlation-request-id": [ + "03777c26-abe6-49e3-a231-74274f95cb46" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170644Z:03777c26-abe6-49e3-a231-74274f95cb46" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06: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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14927" + ], + "x-ms-request-id": [ + "36ecf608-2f48-4bfb-b761-18e3ad6f2858" + ], + "x-ms-correlation-request-id": [ + "36ecf608-2f48-4bfb-b761-18e3ad6f2858" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170646Z:36ecf608-2f48-4bfb-b761-18e3ad6f2858" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06: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": [ + "Thu, 30 Jul 2015 17:06:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "18257608-aa4c-4115-bded-dc07cdaeab2c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14966" + ], + "x-ms-request-id": [ + "77d5141d-19f4-4746-a535-6dd5a1bc4939" + ], + "x-ms-correlation-request-id": [ + "77d5141d-19f4-4746-a535-6dd5a1bc4939" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170645Z:77d5141d-19f4-4746-a535-6dd5a1bc4939" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:44 GMT" + ], + "ETag": [ + "0x8D299013F98E354" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:06:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "a18ee63f-7630-4a7d-96dc-80399d0f6ec2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14965" + ], + "x-ms-request-id": [ + "9cff8ce7-07b6-403b-b33c-9c6254334fd3" + ], + "x-ms-correlation-request-id": [ + "9cff8ce7-07b6-403b-b33c-9c6254334fd3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170647Z:9cff8ce7-07b6-403b-b33c-9c6254334fd3" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:46 GMT" + ], + "ETag": [ + "0x8D2990140670738" + ], + "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": [ + "f0dd2eba-1af1-4f68-8dbc-4a7a027e0af1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1176" + ], + "x-ms-request-id": [ + "fbad0659-cf9b-4c0f-a28b-159b158976e5" + ], + "x-ms-correlation-request-id": [ + "fbad0659-cf9b-4c0f-a28b-159b158976e5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170645Z:fbad0659-cf9b-4c0f-a28b-159b158976e5" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:44 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": [ + "c0c548fe-89e6-4acd-a462-23cab6c6d634" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1175" + ], + "x-ms-request-id": [ + "cee8e6d5-a3a0-42b2-b776-0ad7635e4f0d" + ], + "x-ms-correlation-request-id": [ + "cee8e6d5-a3a0-42b2-b776-0ad7635e4f0d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170647Z:cee8e6d5-a3a0-42b2-b776-0ad7635e4f0d" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:46 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\": \"testId1\",\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": [ + "165" + ], + "client-request-id": [ + "ebdd01bd-056b-44ae-b0e3-bfc39b3b63d6" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06:45 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:06:46 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "be64b90d-16d8-432b-ab45-c47ec99be15c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ebdd01bd-056b-44ae-b0e3-bfc39b3b63d6" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testId1" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:46 GMT" + ], + "ETag": [ + "0x8D29901401AE7FF" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testId1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testId2\",\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": [ + "165" + ], + "client-request-id": [ + "c4402bb2-59e6-48f9-ae3e-008b11ce9af1" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06: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": [ + "Thu, 30 Jul 2015 17:06:46 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c1737588-cd72-4c8f-89ef-5a15f8bcb008" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c4402bb2-59e6-48f9-ae3e-008b11ce9af1" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testId2" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:46 GMT" + ], + "ETag": [ + "0x8D2990140401DB4" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testId2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testId2\",\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": [ + "165" + ], + "client-request-id": [ + "c4402bb2-59e6-48f9-ae3e-008b11ce9af1" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06: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": [ + "Thu, 30 Jul 2015 17:06:46 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c1737588-cd72-4c8f-89ef-5a15f8bcb008" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c4402bb2-59e6-48f9-ae3e-008b11ce9af1" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testId2" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:46 GMT" + ], + "ETag": [ + "0x8D2990140401DB4" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testId2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdtestId\",\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": [ + "169" + ], + "client-request-id": [ + "437adf4c-599b-4efa-b825-5f4c4bcdb5d1" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06: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": [ + "Thu, 30 Jul 2015 17:06:46 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4c797f68-0901-4569-9fa3-a8a5090ae862" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "437adf4c-599b-4efa-b825-5f4c4bcdb5d1" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/thirdtestId" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:46 GMT" + ], + "ETag": [ + "0x8D29901405D0F86" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobschedules/thirdtestId" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdtestId\",\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": [ + "169" + ], + "client-request-id": [ + "437adf4c-599b-4efa-b825-5f4c4bcdb5d1" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06: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": [ + "Thu, 30 Jul 2015 17:06:46 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4c797f68-0901-4569-9fa3-a8a5090ae862" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "437adf4c-599b-4efa-b825-5f4c4bcdb5d1" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/thirdtestId" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:46 GMT" + ], + "ETag": [ + "0x8D29901405D0F86" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobschedules/thirdtestId" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdtestId\",\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": [ + "169" + ], + "client-request-id": [ + "437adf4c-599b-4efa-b825-5f4c4bcdb5d1" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06: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": [ + "Thu, 30 Jul 2015 17:06:46 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4c797f68-0901-4569-9fa3-a8a5090ae862" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "437adf4c-599b-4efa-b825-5f4c4bcdb5d1" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/thirdtestId" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:46 GMT" + ], + "ETag": [ + "0x8D29901405D0F86" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobschedules/thirdtestId" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2bbeafe4-2488-48c8-9de2-eae1b4fe7c2f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06: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#jobschedules\",\r\n \"value\": [\r\n {\r\n \"id\": \"testId1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testId1\",\r\n \"eTag\": \"0x8D29901401AE7FF\",\r\n \"lastModified\": \"2015-07-30T17:06:46.2183423Z\",\r\n \"creationTime\": \"2015-07-30T17:06:46.2183423Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:06:46.2183423Z\",\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/testId1:job-1\",\r\n \"id\": \"testId1:job-1\"\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"testId2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testId2\",\r\n \"eTag\": \"0x8D2990140401DB4\",\r\n \"lastModified\": \"2015-07-30T17:06:46.4622004Z\",\r\n \"creationTime\": \"2015-07-30T17:06:46.4622004Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:06:46.4622004Z\",\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/testId2:job-1\",\r\n \"id\": \"testId2:job-1\"\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"thirdtestId\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/thirdtestId\",\r\n \"eTag\": \"0x8D29901405D0F86\",\r\n \"lastModified\": \"2015-07-30T17:06:46.6518918Z\",\r\n \"creationTime\": \"2015-07-30T17:06:46.6518918Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:06:46.6518918Z\",\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/thirdtestId:job-1\",\r\n \"id\": \"thirdtestId:job-1\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e3bf9022-51f8-4775-bdea-510a3f5f76fe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2bbeafe4-2488-48c8-9de2-eae1b4fe7c2f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:47 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testId1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQxP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2d07ff71-1c3c-408e-9cbe-2980c165c970" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06: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": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "fe39d4d9-cb0f-4af7-b183-79aaf93f5f22" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2d07ff71-1c3c-408e-9cbe-2980c165c970" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:47 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testId1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQxP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2d07ff71-1c3c-408e-9cbe-2980c165c970" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06: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": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "fe39d4d9-cb0f-4af7-b183-79aaf93f5f22" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2d07ff71-1c3c-408e-9cbe-2980c165c970" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:47 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testId1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQxP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2d07ff71-1c3c-408e-9cbe-2980c165c970" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06: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": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "fe39d4d9-cb0f-4af7-b183-79aaf93f5f22" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2d07ff71-1c3c-408e-9cbe-2980c165c970" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:47 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testId1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQxP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2d07ff71-1c3c-408e-9cbe-2980c165c970" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06: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": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "fe39d4d9-cb0f-4af7-b183-79aaf93f5f22" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2d07ff71-1c3c-408e-9cbe-2980c165c970" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:47 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQyP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e435f369-f0ad-41c2-89a9-91bc74792a70" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06: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": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "97ea2ff8-432c-4f9a-bc4b-93db8ee55bcd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e435f369-f0ad-41c2-89a9-91bc74792a70" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:47 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQyP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e435f369-f0ad-41c2-89a9-91bc74792a70" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06: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": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "97ea2ff8-432c-4f9a-bc4b-93db8ee55bcd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e435f369-f0ad-41c2-89a9-91bc74792a70" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:47 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQyP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e435f369-f0ad-41c2-89a9-91bc74792a70" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06: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": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "97ea2ff8-432c-4f9a-bc4b-93db8ee55bcd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e435f369-f0ad-41c2-89a9-91bc74792a70" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:47 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQyP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e435f369-f0ad-41c2-89a9-91bc74792a70" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06: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": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "97ea2ff8-432c-4f9a-bc4b-93db8ee55bcd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e435f369-f0ad-41c2-89a9-91bc74792a70" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:47 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0SWQyP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e435f369-f0ad-41c2-89a9-91bc74792a70" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06: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": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "97ea2ff8-432c-4f9a-bc4b-93db8ee55bcd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e435f369-f0ad-41c2-89a9-91bc74792a70" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:47 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90aGlyZHRlc3RJZD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8f5bdadc-574a-4217-9247-dcfae7d78eeb" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06: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": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "0d70cc62-1adb-486a-8da5-a8ee8f56a092" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8f5bdadc-574a-4217-9247-dcfae7d78eeb" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:47 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90aGlyZHRlc3RJZD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8f5bdadc-574a-4217-9247-dcfae7d78eeb" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06: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": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "0d70cc62-1adb-486a-8da5-a8ee8f56a092" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8f5bdadc-574a-4217-9247-dcfae7d78eeb" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:47 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90aGlyZHRlc3RJZD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8f5bdadc-574a-4217-9247-dcfae7d78eeb" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06: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": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "0d70cc62-1adb-486a-8da5-a8ee8f56a092" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8f5bdadc-574a-4217-9247-dcfae7d78eeb" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:47 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90aGlyZHRlc3RJZD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8f5bdadc-574a-4217-9247-dcfae7d78eeb" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06: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": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "0d70cc62-1adb-486a-8da5-a8ee8f56a092" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8f5bdadc-574a-4217-9247-dcfae7d78eeb" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:47 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90aGlyZHRlc3RJZD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8f5bdadc-574a-4217-9247-dcfae7d78eeb" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06: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": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "0d70cc62-1adb-486a-8da5-a8ee8f56a092" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8f5bdadc-574a-4217-9247-dcfae7d78eeb" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:47 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90aGlyZHRlc3RJZD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8f5bdadc-574a-4217-9247-dcfae7d78eeb" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:06: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": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "0d70cc62-1adb-486a-8da5-a8ee8f56a092" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8f5bdadc-574a-4217-9247-dcfae7d78eeb" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:06:47 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/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestNewJobSchedule.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestNewJobSchedule.json new file mode 100644 index 000000000000..463e3df4bb80 --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobScheduleTests/TestNewJobSchedule.json @@ -0,0 +1,1268 @@ +{ + "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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14919" + ], + "x-ms-request-id": [ + "d41a5378-5c49-45ca-9a8e-85e37ece8ec8" + ], + "x-ms-correlation-request-id": [ + "d41a5378-5c49-45ca-9a8e-85e37ece8ec8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T172443Z:d41a5378-5c49-45ca-9a8e-85e37ece8ec8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:24:43 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:24:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "2f7c5cfd-8210-4b42-891f-601c30c69643" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14955" + ], + "x-ms-request-id": [ + "09297fc9-5d03-40f6-bd5a-053eab0c7404" + ], + "x-ms-correlation-request-id": [ + "09297fc9-5d03-40f6-bd5a-053eab0c7404" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T172444Z:09297fc9-5d03-40f6-bd5a-053eab0c7404" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:24:44 GMT" + ], + "ETag": [ + "0x8D29903C2A86447" + ], + "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": [ + "2ab216fc-f7b8-4134-9427-ce17f66e643f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1172" + ], + "x-ms-request-id": [ + "760abc67-e43d-4f86-b4f5-a85b3e936f80" + ], + "x-ms-correlation-request-id": [ + "760abc67-e43d-4f86-b4f5-a85b3e936f80" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T172444Z:760abc67-e43d-4f86-b4f5-a85b3e936f80" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:24:44 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\": \"simple\",\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": [ + "164" + ], + "client-request-id": [ + "3a015124-2fe7-4f24-bbb3-a38dba95f490" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:24:44 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "7b2bc09d-6ed6-4ac5-a0e9-f2c7522a6e17" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3a015124-2fe7-4f24-bbb3-a38dba95f490" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/simple" + ], + "Date": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "ETag": [ + "0x8D29903C33589FE" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobschedules/simple" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"complex\",\r\n \"displayName\": \"displayName\",\r\n \"schedule\": {\r\n \"startWindow\": \"P1D\",\r\n \"recurrenceInterval\": \"P2D\"\r\n },\r\n \"jobSpecification\": {\r\n \"priority\": 1,\r\n \"displayName\": \"jobSpecDisplayName\",\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P1D\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"jobManagerTask\": {\r\n \"id\": \"jobManager\",\r\n \"displayName\": \"jobManagerDisplay\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"filePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"name1\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"name2\",\r\n \"value\": \"value2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"PT1H\"\r\n },\r\n \"killJobOnCompletion\": false,\r\n \"runElevated\": false\r\n },\r\n \"jobPreparationTask\": {\r\n \"id\": \"jobPrep\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobPrepFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobPrepName1\",\r\n \"value\": \"jobPrepValue1\"\r\n },\r\n {\r\n \"name\": \"jobPrepName2\",\r\n \"value\": \"jobPrepValue2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxTaskRetryCount\": 2\r\n },\r\n \"runElevated\": false\r\n },\r\n \"jobReleaseTask\": {\r\n \"id\": \"jobRelease\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobReleaseFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobReleaseName1\",\r\n \"value\": \"jobReleaseValue1\"\r\n },\r\n {\r\n \"name\": \"jobReleaseName2\",\r\n \"value\": \"jobReleaseValue2\"\r\n }\r\n ],\r\n \"runElevated\": false\r\n },\r\n \"commonEnvironmentSettings\": [\r\n {\r\n \"name\": \"commonName1\",\r\n \"value\": \"commonValue1\"\r\n },\r\n {\r\n \"name\": \"commonName2\",\r\n \"value\": \"commonValue2\"\r\n }\r\n ],\r\n \"poolInfo\": {\r\n \"autoPoolSpecification\": {\r\n \"autoPoolIdPrefix\": \"TestSpecPrefix\",\r\n \"poolLifetimeOption\": \"jobschedule\",\r\n \"keepAlive\": false,\r\n \"pool\": {\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"targetDedicated\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c dir /s\"\r\n },\r\n \"certificateReferences\": [\r\n {\r\n \"thumbprint\": \"0123456789ABCDEF\",\r\n \"thumbprintAlgorithm\": \"sha1\",\r\n \"storeLocation\": \"localmachine\",\r\n \"storeName\": \"certStore\",\r\n \"visibility\": \"starttask\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"specMeta1\",\r\n \"value\": \"specMetaValue1\"\r\n },\r\n {\r\n \"name\": \"specMeta2\",\r\n \"value\": \"specMetaValue2\"\r\n }\r\n ]\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"meta2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"meta1\",\r\n \"value\": \"value1\"\r\n }\r\n ]\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "3384" + ], + "client-request-id": [ + "db72a174-2a72-4450-ab4c-d3db652afb0a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ab829ee7-98c8-4066-907e-cc295ca55315" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "db72a174-2a72-4450-ab4c-d3db652afb0a" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/complex" + ], + "Date": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "ETag": [ + "0x8D29903C39AC2EB" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobschedules/complex" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"complex\",\r\n \"displayName\": \"displayName\",\r\n \"schedule\": {\r\n \"startWindow\": \"P1D\",\r\n \"recurrenceInterval\": \"P2D\"\r\n },\r\n \"jobSpecification\": {\r\n \"priority\": 1,\r\n \"displayName\": \"jobSpecDisplayName\",\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P1D\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"jobManagerTask\": {\r\n \"id\": \"jobManager\",\r\n \"displayName\": \"jobManagerDisplay\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"filePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"name1\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"name2\",\r\n \"value\": \"value2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"PT1H\"\r\n },\r\n \"killJobOnCompletion\": false,\r\n \"runElevated\": false\r\n },\r\n \"jobPreparationTask\": {\r\n \"id\": \"jobPrep\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobPrepFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobPrepName1\",\r\n \"value\": \"jobPrepValue1\"\r\n },\r\n {\r\n \"name\": \"jobPrepName2\",\r\n \"value\": \"jobPrepValue2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxTaskRetryCount\": 2\r\n },\r\n \"runElevated\": false\r\n },\r\n \"jobReleaseTask\": {\r\n \"id\": \"jobRelease\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobReleaseFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobReleaseName1\",\r\n \"value\": \"jobReleaseValue1\"\r\n },\r\n {\r\n \"name\": \"jobReleaseName2\",\r\n \"value\": \"jobReleaseValue2\"\r\n }\r\n ],\r\n \"runElevated\": false\r\n },\r\n \"commonEnvironmentSettings\": [\r\n {\r\n \"name\": \"commonName1\",\r\n \"value\": \"commonValue1\"\r\n },\r\n {\r\n \"name\": \"commonName2\",\r\n \"value\": \"commonValue2\"\r\n }\r\n ],\r\n \"poolInfo\": {\r\n \"autoPoolSpecification\": {\r\n \"autoPoolIdPrefix\": \"TestSpecPrefix\",\r\n \"poolLifetimeOption\": \"jobschedule\",\r\n \"keepAlive\": false,\r\n \"pool\": {\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"targetDedicated\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c dir /s\"\r\n },\r\n \"certificateReferences\": [\r\n {\r\n \"thumbprint\": \"0123456789ABCDEF\",\r\n \"thumbprintAlgorithm\": \"sha1\",\r\n \"storeLocation\": \"localmachine\",\r\n \"storeName\": \"certStore\",\r\n \"visibility\": \"starttask\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"specMeta1\",\r\n \"value\": \"specMetaValue1\"\r\n },\r\n {\r\n \"name\": \"specMeta2\",\r\n \"value\": \"specMetaValue2\"\r\n }\r\n ]\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"meta2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"meta1\",\r\n \"value\": \"value1\"\r\n }\r\n ]\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "3384" + ], + "client-request-id": [ + "db72a174-2a72-4450-ab4c-d3db652afb0a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ab829ee7-98c8-4066-907e-cc295ca55315" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "db72a174-2a72-4450-ab4c-d3db652afb0a" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/complex" + ], + "Date": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "ETag": [ + "0x8D29903C39AC2EB" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobschedules/complex" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"complex\",\r\n \"displayName\": \"displayName\",\r\n \"schedule\": {\r\n \"startWindow\": \"P1D\",\r\n \"recurrenceInterval\": \"P2D\"\r\n },\r\n \"jobSpecification\": {\r\n \"priority\": 1,\r\n \"displayName\": \"jobSpecDisplayName\",\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P1D\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"jobManagerTask\": {\r\n \"id\": \"jobManager\",\r\n \"displayName\": \"jobManagerDisplay\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"filePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"name1\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"name2\",\r\n \"value\": \"value2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"PT1H\"\r\n },\r\n \"killJobOnCompletion\": false,\r\n \"runElevated\": false\r\n },\r\n \"jobPreparationTask\": {\r\n \"id\": \"jobPrep\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobPrepFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobPrepName1\",\r\n \"value\": \"jobPrepValue1\"\r\n },\r\n {\r\n \"name\": \"jobPrepName2\",\r\n \"value\": \"jobPrepValue2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxTaskRetryCount\": 2\r\n },\r\n \"runElevated\": false\r\n },\r\n \"jobReleaseTask\": {\r\n \"id\": \"jobRelease\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobReleaseFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobReleaseName1\",\r\n \"value\": \"jobReleaseValue1\"\r\n },\r\n {\r\n \"name\": \"jobReleaseName2\",\r\n \"value\": \"jobReleaseValue2\"\r\n }\r\n ],\r\n \"runElevated\": false\r\n },\r\n \"commonEnvironmentSettings\": [\r\n {\r\n \"name\": \"commonName1\",\r\n \"value\": \"commonValue1\"\r\n },\r\n {\r\n \"name\": \"commonName2\",\r\n \"value\": \"commonValue2\"\r\n }\r\n ],\r\n \"poolInfo\": {\r\n \"autoPoolSpecification\": {\r\n \"autoPoolIdPrefix\": \"TestSpecPrefix\",\r\n \"poolLifetimeOption\": \"jobschedule\",\r\n \"keepAlive\": false,\r\n \"pool\": {\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"targetDedicated\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c dir /s\"\r\n },\r\n \"certificateReferences\": [\r\n {\r\n \"thumbprint\": \"0123456789ABCDEF\",\r\n \"thumbprintAlgorithm\": \"sha1\",\r\n \"storeLocation\": \"localmachine\",\r\n \"storeName\": \"certStore\",\r\n \"visibility\": \"starttask\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"specMeta1\",\r\n \"value\": \"specMetaValue1\"\r\n },\r\n {\r\n \"name\": \"specMeta2\",\r\n \"value\": \"specMetaValue2\"\r\n }\r\n ]\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"meta2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"meta1\",\r\n \"value\": \"value1\"\r\n }\r\n ]\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "3384" + ], + "client-request-id": [ + "db72a174-2a72-4450-ab4c-d3db652afb0a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ab829ee7-98c8-4066-907e-cc295ca55315" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "db72a174-2a72-4450-ab4c-d3db652afb0a" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/complex" + ], + "Date": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "ETag": [ + "0x8D29903C39AC2EB" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobschedules/complex" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobschedules/simple?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy9zaW1wbGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1b0ff613-439e-45f4-9561-14982a038eab" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:24:45 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\": \"simple\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/simple\",\r\n \"eTag\": \"0x8D29903C33589FE\",\r\n \"lastModified\": \"2015-07-30T17:24:45.1678718Z\",\r\n \"creationTime\": \"2015-07-30T17:24:45.1678718Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:24:45.1678718Z\",\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/simple:job-1\",\r\n \"id\": \"simple:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b50ebb5b-a531-4031-b284-cfb492cff4bc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1b0ff613-439e-45f4-9561-14982a038eab" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "ETag": [ + "0x8D29903C33589FE" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/simple?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy9zaW1wbGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1b0ff613-439e-45f4-9561-14982a038eab" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:24:45 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\": \"simple\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/simple\",\r\n \"eTag\": \"0x8D29903C33589FE\",\r\n \"lastModified\": \"2015-07-30T17:24:45.1678718Z\",\r\n \"creationTime\": \"2015-07-30T17:24:45.1678718Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:24:45.1678718Z\",\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/simple:job-1\",\r\n \"id\": \"simple:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b50ebb5b-a531-4031-b284-cfb492cff4bc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1b0ff613-439e-45f4-9561-14982a038eab" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "ETag": [ + "0x8D29903C33589FE" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy9jb21wbGV4P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "eaf4c03e-b208-4176-a27c-cd91c8240e94" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:24:45 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\": \"complex\",\r\n \"displayName\": \"displayName\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/complex\",\r\n \"eTag\": \"0x8D29903C39AC2EB\",\r\n \"lastModified\": \"2015-07-30T17:24:45.8312427Z\",\r\n \"creationTime\": \"2015-07-30T17:24:45.8312427Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:24:45.8312427Z\",\r\n \"schedule\": {\r\n \"startWindow\": \"P1D\",\r\n \"recurrenceInterval\": \"P2D\"\r\n },\r\n \"jobSpecification\": {\r\n \"displayName\": \"jobSpecDisplayName\",\r\n \"priority\": 1,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P1D\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"jobManagerTask\": {\r\n \"id\": \"jobManager\",\r\n \"displayName\": \"jobManagerDisplay\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"filePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"name1\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"name2\",\r\n \"value\": \"value2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"PT1H\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"runElevated\": false,\r\n \"runExclusive\": true,\r\n \"killJobOnCompletion\": false\r\n },\r\n \"jobPreparationTask\": {\r\n \"id\": \"jobPrep\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobPrepFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobPrepName1\",\r\n \"value\": \"jobPrepValue1\"\r\n },\r\n {\r\n \"name\": \"jobPrepName2\",\r\n \"value\": \"jobPrepValue2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 2\r\n },\r\n \"runElevated\": false,\r\n \"waitForSuccess\": true,\r\n \"rerunOnNodeRebootAfterSuccess\": true\r\n },\r\n \"jobReleaseTask\": {\r\n \"id\": \"jobRelease\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobReleaseFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobReleaseName1\",\r\n \"value\": \"jobReleaseValue1\"\r\n },\r\n {\r\n \"name\": \"jobReleaseName2\",\r\n \"value\": \"jobReleaseValue2\"\r\n }\r\n ],\r\n \"maxWallClockTime\": \"PT15M\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"runElevated\": false\r\n },\r\n \"commonEnvironmentSettings\": [\r\n {\r\n \"name\": \"commonName1\",\r\n \"value\": \"commonValue1\"\r\n },\r\n {\r\n \"name\": \"commonName2\",\r\n \"value\": \"commonValue2\"\r\n }\r\n ],\r\n \"poolInfo\": {\r\n \"autoPoolSpecification\": {\r\n \"autoPoolIdPrefix\": \"TestSpecPrefix\",\r\n \"poolLifetimeOption\": \"jobschedule\",\r\n \"keepAlive\": false,\r\n \"pool\": {\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n },\r\n \"resizeTimeout\": \"PT5M\",\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"certificateReferences\": [\r\n {\r\n \"thumbprint\": \"0123456789abcdef\",\r\n \"thumbprintAlgorithm\": \"sha1\",\r\n \"storeLocation\": \"LocalMachine\",\r\n \"storeName\": \"certStore\",\r\n \"visibility\": \"starttask\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"specMeta1\",\r\n \"value\": \"specMetaValue1\"\r\n },\r\n {\r\n \"name\": \"specMeta2\",\r\n \"value\": \"specMetaValue2\"\r\n }\r\n ]\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-30T17:24:45.8312427Z\"\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"meta2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"meta1\",\r\n \"value\": \"value1\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d2db261e-3428-4dc1-a58e-6d1534f69eea" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "eaf4c03e-b208-4176-a27c-cd91c8240e94" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "ETag": [ + "0x8D29903C39AC2EB" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy9jb21wbGV4P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "eaf4c03e-b208-4176-a27c-cd91c8240e94" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:24:45 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\": \"complex\",\r\n \"displayName\": \"displayName\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/complex\",\r\n \"eTag\": \"0x8D29903C39AC2EB\",\r\n \"lastModified\": \"2015-07-30T17:24:45.8312427Z\",\r\n \"creationTime\": \"2015-07-30T17:24:45.8312427Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:24:45.8312427Z\",\r\n \"schedule\": {\r\n \"startWindow\": \"P1D\",\r\n \"recurrenceInterval\": \"P2D\"\r\n },\r\n \"jobSpecification\": {\r\n \"displayName\": \"jobSpecDisplayName\",\r\n \"priority\": 1,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P1D\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"jobManagerTask\": {\r\n \"id\": \"jobManager\",\r\n \"displayName\": \"jobManagerDisplay\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"filePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"name1\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"name2\",\r\n \"value\": \"value2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"PT1H\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"runElevated\": false,\r\n \"runExclusive\": true,\r\n \"killJobOnCompletion\": false\r\n },\r\n \"jobPreparationTask\": {\r\n \"id\": \"jobPrep\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobPrepFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobPrepName1\",\r\n \"value\": \"jobPrepValue1\"\r\n },\r\n {\r\n \"name\": \"jobPrepName2\",\r\n \"value\": \"jobPrepValue2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 2\r\n },\r\n \"runElevated\": false,\r\n \"waitForSuccess\": true,\r\n \"rerunOnNodeRebootAfterSuccess\": true\r\n },\r\n \"jobReleaseTask\": {\r\n \"id\": \"jobRelease\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobReleaseFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobReleaseName1\",\r\n \"value\": \"jobReleaseValue1\"\r\n },\r\n {\r\n \"name\": \"jobReleaseName2\",\r\n \"value\": \"jobReleaseValue2\"\r\n }\r\n ],\r\n \"maxWallClockTime\": \"PT15M\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"runElevated\": false\r\n },\r\n \"commonEnvironmentSettings\": [\r\n {\r\n \"name\": \"commonName1\",\r\n \"value\": \"commonValue1\"\r\n },\r\n {\r\n \"name\": \"commonName2\",\r\n \"value\": \"commonValue2\"\r\n }\r\n ],\r\n \"poolInfo\": {\r\n \"autoPoolSpecification\": {\r\n \"autoPoolIdPrefix\": \"TestSpecPrefix\",\r\n \"poolLifetimeOption\": \"jobschedule\",\r\n \"keepAlive\": false,\r\n \"pool\": {\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n },\r\n \"resizeTimeout\": \"PT5M\",\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"certificateReferences\": [\r\n {\r\n \"thumbprint\": \"0123456789abcdef\",\r\n \"thumbprintAlgorithm\": \"sha1\",\r\n \"storeLocation\": \"LocalMachine\",\r\n \"storeName\": \"certStore\",\r\n \"visibility\": \"starttask\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"specMeta1\",\r\n \"value\": \"specMetaValue1\"\r\n },\r\n {\r\n \"name\": \"specMeta2\",\r\n \"value\": \"specMetaValue2\"\r\n }\r\n ]\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-30T17:24:45.8312427Z\"\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"meta2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"meta1\",\r\n \"value\": \"value1\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d2db261e-3428-4dc1-a58e-6d1534f69eea" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "eaf4c03e-b208-4176-a27c-cd91c8240e94" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "ETag": [ + "0x8D29903C39AC2EB" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy9jb21wbGV4P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "eaf4c03e-b208-4176-a27c-cd91c8240e94" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:24:45 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\": \"complex\",\r\n \"displayName\": \"displayName\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/complex\",\r\n \"eTag\": \"0x8D29903C39AC2EB\",\r\n \"lastModified\": \"2015-07-30T17:24:45.8312427Z\",\r\n \"creationTime\": \"2015-07-30T17:24:45.8312427Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:24:45.8312427Z\",\r\n \"schedule\": {\r\n \"startWindow\": \"P1D\",\r\n \"recurrenceInterval\": \"P2D\"\r\n },\r\n \"jobSpecification\": {\r\n \"displayName\": \"jobSpecDisplayName\",\r\n \"priority\": 1,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P1D\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"jobManagerTask\": {\r\n \"id\": \"jobManager\",\r\n \"displayName\": \"jobManagerDisplay\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"filePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"name1\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"name2\",\r\n \"value\": \"value2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"PT1H\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"runElevated\": false,\r\n \"runExclusive\": true,\r\n \"killJobOnCompletion\": false\r\n },\r\n \"jobPreparationTask\": {\r\n \"id\": \"jobPrep\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobPrepFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobPrepName1\",\r\n \"value\": \"jobPrepValue1\"\r\n },\r\n {\r\n \"name\": \"jobPrepName2\",\r\n \"value\": \"jobPrepValue2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 2\r\n },\r\n \"runElevated\": false,\r\n \"waitForSuccess\": true,\r\n \"rerunOnNodeRebootAfterSuccess\": true\r\n },\r\n \"jobReleaseTask\": {\r\n \"id\": \"jobRelease\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobReleaseFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobReleaseName1\",\r\n \"value\": \"jobReleaseValue1\"\r\n },\r\n {\r\n \"name\": \"jobReleaseName2\",\r\n \"value\": \"jobReleaseValue2\"\r\n }\r\n ],\r\n \"maxWallClockTime\": \"PT15M\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"runElevated\": false\r\n },\r\n \"commonEnvironmentSettings\": [\r\n {\r\n \"name\": \"commonName1\",\r\n \"value\": \"commonValue1\"\r\n },\r\n {\r\n \"name\": \"commonName2\",\r\n \"value\": \"commonValue2\"\r\n }\r\n ],\r\n \"poolInfo\": {\r\n \"autoPoolSpecification\": {\r\n \"autoPoolIdPrefix\": \"TestSpecPrefix\",\r\n \"poolLifetimeOption\": \"jobschedule\",\r\n \"keepAlive\": false,\r\n \"pool\": {\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n },\r\n \"resizeTimeout\": \"PT5M\",\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"certificateReferences\": [\r\n {\r\n \"thumbprint\": \"0123456789abcdef\",\r\n \"thumbprintAlgorithm\": \"sha1\",\r\n \"storeLocation\": \"LocalMachine\",\r\n \"storeName\": \"certStore\",\r\n \"visibility\": \"starttask\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"specMeta1\",\r\n \"value\": \"specMetaValue1\"\r\n },\r\n {\r\n \"name\": \"specMeta2\",\r\n \"value\": \"specMetaValue2\"\r\n }\r\n ]\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-30T17:24:45.8312427Z\"\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"meta2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"meta1\",\r\n \"value\": \"value1\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d2db261e-3428-4dc1-a58e-6d1534f69eea" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "eaf4c03e-b208-4176-a27c-cd91c8240e94" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "ETag": [ + "0x8D29903C39AC2EB" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy9jb21wbGV4P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "eaf4c03e-b208-4176-a27c-cd91c8240e94" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:24:45 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\": \"complex\",\r\n \"displayName\": \"displayName\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/complex\",\r\n \"eTag\": \"0x8D29903C39AC2EB\",\r\n \"lastModified\": \"2015-07-30T17:24:45.8312427Z\",\r\n \"creationTime\": \"2015-07-30T17:24:45.8312427Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:24:45.8312427Z\",\r\n \"schedule\": {\r\n \"startWindow\": \"P1D\",\r\n \"recurrenceInterval\": \"P2D\"\r\n },\r\n \"jobSpecification\": {\r\n \"displayName\": \"jobSpecDisplayName\",\r\n \"priority\": 1,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P1D\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"jobManagerTask\": {\r\n \"id\": \"jobManager\",\r\n \"displayName\": \"jobManagerDisplay\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"filePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"name1\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"name2\",\r\n \"value\": \"value2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"PT1H\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"runElevated\": false,\r\n \"runExclusive\": true,\r\n \"killJobOnCompletion\": false\r\n },\r\n \"jobPreparationTask\": {\r\n \"id\": \"jobPrep\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobPrepFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobPrepName1\",\r\n \"value\": \"jobPrepValue1\"\r\n },\r\n {\r\n \"name\": \"jobPrepName2\",\r\n \"value\": \"jobPrepValue2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 2\r\n },\r\n \"runElevated\": false,\r\n \"waitForSuccess\": true,\r\n \"rerunOnNodeRebootAfterSuccess\": true\r\n },\r\n \"jobReleaseTask\": {\r\n \"id\": \"jobRelease\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobReleaseFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobReleaseName1\",\r\n \"value\": \"jobReleaseValue1\"\r\n },\r\n {\r\n \"name\": \"jobReleaseName2\",\r\n \"value\": \"jobReleaseValue2\"\r\n }\r\n ],\r\n \"maxWallClockTime\": \"PT15M\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"runElevated\": false\r\n },\r\n \"commonEnvironmentSettings\": [\r\n {\r\n \"name\": \"commonName1\",\r\n \"value\": \"commonValue1\"\r\n },\r\n {\r\n \"name\": \"commonName2\",\r\n \"value\": \"commonValue2\"\r\n }\r\n ],\r\n \"poolInfo\": {\r\n \"autoPoolSpecification\": {\r\n \"autoPoolIdPrefix\": \"TestSpecPrefix\",\r\n \"poolLifetimeOption\": \"jobschedule\",\r\n \"keepAlive\": false,\r\n \"pool\": {\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n },\r\n \"resizeTimeout\": \"PT5M\",\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"certificateReferences\": [\r\n {\r\n \"thumbprint\": \"0123456789abcdef\",\r\n \"thumbprintAlgorithm\": \"sha1\",\r\n \"storeLocation\": \"LocalMachine\",\r\n \"storeName\": \"certStore\",\r\n \"visibility\": \"starttask\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"specMeta1\",\r\n \"value\": \"specMetaValue1\"\r\n },\r\n {\r\n \"name\": \"specMeta2\",\r\n \"value\": \"specMetaValue2\"\r\n }\r\n ]\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-30T17:24:45.8312427Z\"\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"meta2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"meta1\",\r\n \"value\": \"value1\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d2db261e-3428-4dc1-a58e-6d1534f69eea" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "eaf4c03e-b208-4176-a27c-cd91c8240e94" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "ETag": [ + "0x8D29903C39AC2EB" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/simple?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy9zaW1wbGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e8b8be0b-7bde-4c90-8f71-605c28ab4e50" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:24:45 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": [ + "899c1cfc-982e-4b23-9244-22c22be2aea8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e8b8be0b-7bde-4c90-8f71-605c28ab4e50" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/simple?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy9zaW1wbGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e8b8be0b-7bde-4c90-8f71-605c28ab4e50" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:24:45 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": [ + "899c1cfc-982e-4b23-9244-22c22be2aea8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e8b8be0b-7bde-4c90-8f71-605c28ab4e50" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/simple?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy9zaW1wbGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e8b8be0b-7bde-4c90-8f71-605c28ab4e50" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:24:45 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": [ + "899c1cfc-982e-4b23-9244-22c22be2aea8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e8b8be0b-7bde-4c90-8f71-605c28ab4e50" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/simple?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy9zaW1wbGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e8b8be0b-7bde-4c90-8f71-605c28ab4e50" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:24:45 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": [ + "899c1cfc-982e-4b23-9244-22c22be2aea8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e8b8be0b-7bde-4c90-8f71-605c28ab4e50" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/simple?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy9zaW1wbGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e8b8be0b-7bde-4c90-8f71-605c28ab4e50" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:24:45 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": [ + "899c1cfc-982e-4b23-9244-22c22be2aea8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e8b8be0b-7bde-4c90-8f71-605c28ab4e50" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy9jb21wbGV4P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1f9e3535-ba34-423f-a660-8d77c2ae3582" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:24:45 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": [ + "6883311a-485b-405d-983d-5476f449d42f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1f9e3535-ba34-423f-a660-8d77c2ae3582" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy9jb21wbGV4P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1f9e3535-ba34-423f-a660-8d77c2ae3582" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:24:45 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": [ + "6883311a-485b-405d-983d-5476f449d42f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1f9e3535-ba34-423f-a660-8d77c2ae3582" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy9jb21wbGV4P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1f9e3535-ba34-423f-a660-8d77c2ae3582" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:24:45 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": [ + "6883311a-485b-405d-983d-5476f449d42f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1f9e3535-ba34-423f-a660-8d77c2ae3582" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy9jb21wbGV4P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1f9e3535-ba34-423f-a660-8d77c2ae3582" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:24:45 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": [ + "6883311a-485b-405d-983d-5476f449d42f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1f9e3535-ba34-423f-a660-8d77c2ae3582" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy9jb21wbGV4P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1f9e3535-ba34-423f-a660-8d77c2ae3582" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:24:45 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": [ + "6883311a-485b-405d-983d-5476f449d42f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1f9e3535-ba34-423f-a660-8d77c2ae3582" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:24:45 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy9jb21wbGV4P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "1f9e3535-ba34-423f-a660-8d77c2ae3582" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:24:45 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": [ + "6883311a-485b-405d-983d-5476f449d42f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1f9e3535-ba34-423f-a660-8d77c2ae3582" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:24:45 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/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestDeleteJob.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestDeleteJob.json index a61e66443366..4ba70b553995 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestDeleteJob.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestDeleteJob.json @@ -10,10 +10,10 @@ "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}", + "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/cmdletexample\",\r\n \"name\": \"cmdletexample\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "237" + "475" ], "Content-Type": [ "application/json; charset=utf-8" @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14927" + "14995" ], "x-ms-request-id": [ - "ec06dd1b-3b77-4938-84b0-ca9a3ebead0c" + "8cf14b5e-8a4d-4672-b239-bc3024c3d25a" ], "x-ms-correlation-request-id": [ - "ec06dd1b-3b77-4938-84b0-ca9a3ebead0c" + "8cf14b5e-8a4d-4672-b239-bc3024c3d25a" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192553Z:ec06dd1b-3b77-4938-84b0-ca9a3ebead0c" + "WESTUS:20150730T164823Z:8cf14b5e-8a4d-4672-b239-bc3024c3d25a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:25:52 GMT" + "Thu, 30 Jul 2015 16:48:23 GMT" ] }, "StatusCode": 200 @@ -58,10 +58,10 @@ "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}", + "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/cmdletexample\",\r\n \"name\": \"cmdletexample\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "237" + "475" ], "Content-Type": [ "application/json; charset=utf-8" @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14926" + "14994" ], "x-ms-request-id": [ - "e678dbcc-3b73-492f-a53e-bd5230c100b6" + "5c49dd12-9c8c-4c99-9833-9b550e23c51e" ], "x-ms-correlation-request-id": [ - "e678dbcc-3b73-492f-a53e-bd5230c100b6" + "5c49dd12-9c8c-4c99-9833-9b550e23c51e" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192555Z:e678dbcc-3b73-492f-a53e-bd5230c100b6" + "WESTUS:20150730T164825Z:5c49dd12-9c8c-4c99-9833-9b550e23c51e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:25:54 GMT" + "Thu, 30 Jul 2015 16:48:24 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:25:54 GMT" + "Thu, 30 Jul 2015 16:48:24 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "0498b738-1f35-4e16-b6c1-15828bb05cca" + "97f7df59-f0f6-4457-9693-d47dce9fb5e3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14933" + "14997" ], "x-ms-request-id": [ - "6924abfa-9686-4d9c-8985-3d7248666a25" + "0c8e790e-d0f8-40a5-8d6b-7018abf95903" ], "x-ms-correlation-request-id": [ - "6924abfa-9686-4d9c-8985-3d7248666a25" + "0c8e790e-d0f8-40a5-8d6b-7018abf95903" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192554Z:6924abfa-9686-4d9c-8985-3d7248666a25" + "WESTUS:20150730T164824Z:0c8e790e-d0f8-40a5-8d6b-7018abf95903" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:25:53 GMT" + "Thu, 30 Jul 2015 16:48:24 GMT" ], "ETag": [ - "0x8D288943595A96A" + "0x8D298FEAFA57526" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:25:56 GMT" + "Thu, 30 Jul 2015 16:48:25 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "aa54202e-6d2a-4850-b384-2a7245255e0e" + "35b9f47e-66a8-46fe-8cb7-1b9a0fce91a5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14932" + "14996" ], "x-ms-request-id": [ - "2ad310d6-78b9-443d-9856-064596c73f0a" + "3bd49363-affd-46ac-be50-26d0f0af9cae" ], "x-ms-correlation-request-id": [ - "2ad310d6-78b9-443d-9856-064596c73f0a" + "3bd49363-affd-46ac-be50-26d0f0af9cae" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192555Z:2ad310d6-78b9-443d-9856-064596c73f0a" + "WESTUS:20150730T164825Z:3bd49363-affd-46ac-be50-26d0f0af9cae" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:25:55 GMT" + "Thu, 30 Jul 2015 16:48:25 GMT" ], "ETag": [ - "0x8D288943665333A" + "0x8D298FEB03686B7" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "aa3fb879-cf06-466d-b146-da778045b81e" + "06d14dae-e3f8-4074-84cd-51eae19524d9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1162" + "1199" ], "x-ms-request-id": [ - "cf91a6fe-a03d-4ec5-9286-bee5d74d6598" + "28d330bd-97f6-4a33-a96e-0f59afbe443c" ], "x-ms-correlation-request-id": [ - "cf91a6fe-a03d-4ec5-9286-bee5d74d6598" + "28d330bd-97f6-4a33-a96e-0f59afbe443c" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192554Z:cf91a6fe-a03d-4ec5-9286-bee5d74d6598" + "WESTUS:20150730T164825Z:28d330bd-97f6-4a33-a96e-0f59afbe443c" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:25:53 GMT" + "Thu, 30 Jul 2015 16:48:24 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "3d99f567-b4d1-45b5-b2de-3f05e0525ffc" + "2d200bdf-b337-4cb3-a78c-f7e234288cd1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1161" + "1198" ], "x-ms-request-id": [ - "434c3175-ea47-4ff5-ab28-4d97269abea1" + "aa5e55f3-bb03-47c2-bec3-e797f9646028" ], "x-ms-correlation-request-id": [ - "434c3175-ea47-4ff5-ab28-4d97269abea1" + "aa5e55f3-bb03-47c2-bec3-e797f9646028" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192556Z:434c3175-ea47-4ff5-ab28-4d97269abea1" + "WESTUS:20150730T164826Z:aa5e55f3-bb03-47c2-bec3-e797f9646028" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:25:55 GMT" + "Thu, 30 Jul 2015 16:48:25 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,58 +337,62 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", + "RequestBody": "{\r\n \"id\": \"deleteJobTest\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "168" - ], - "User-Agent": [ - "WA-Batch/1.0" + "96" ], "client-request-id": [ - "b88df7fe-c825-431f-abce-91bc0a634a2c" + "1f52a68c-010c-4c04-8d59-bd4579d32852" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:48:24 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:25:54 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 19:25:55 GMT" + "Thu, 30 Jul 2015 16:48:25 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "775b133a-d073-462c-90b8-6b32c3902c27" + "1686b471-411b-4b4a-9202-3bc7aa971a86" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "1f52a68c-010c-4c04-8d59-bd4579d32852" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testWorkItem" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Date": [ - "Thu, 09 Jul 2015 19:25:55 GMT" + "Thu, 30 Jul 2015 16:48:25 GMT" ], "ETag": [ - "0x8D2889435FF7C01" + "0x8D298FEB0146225" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/testWorkItem" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -397,49 +401,47 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "c6ee54ac-545b-4120-ae49-b323da12598f" + "93ac6a3b-489a-45d9-a85f-927c14971131" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:48:25 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:25:55 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D2889435FF7C01\",\r\n \"lastModified\": \"2015-07-09T19:25:55.5134465Z\",\r\n \"creationTime\": \"2015-07-09T19:25:55.5134465Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:25:55.5134465Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"deleteJobTest\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/deleteJobTest\",\r\n \"eTag\": \"0x8D298FEB0146225\",\r\n \"lastModified\": \"2015-07-30T16:48:25.5902245Z\",\r\n \"creationTime\": \"2015-07-30T16:48:25.5612169Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:48:25.5902245Z\",\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-07-30T16:48:25.5902245Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:25:55 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "89126c6a-9fcd-47c6-b036-ff7d3d80cb94" + "c3ebe2b0-80f5-49a5-b625-b916391121a4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "93ac6a3b-489a-45d9-a85f-927c14971131" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:25:54 GMT" - ], - "ETag": [ - "0x8D2889435FF7C01" + "Thu, 30 Jul 2015 16:48:25 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -448,25 +450,26 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testWorkItem/jobs?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0vam9icz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "88a4aaf0-989d-4784-858f-535d7ca0c614" + "a6364522-5bdf-409d-b350-ee0c6755830c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:48:26 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:25:56 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"name\": \"job-0000000001\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"eTag\": \"0x8D288943609521C\",\r\n \"lastModified\": \"2015-07-09T19:25:55.57791Z\",\r\n \"creationTime\": \"2015-07-09T19:25:55.5591985Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:25:55.57791Z\",\r\n \"poolName\": \"testPool\",\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T19:25:55.57791Z\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"deleteJobTest\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/deleteJobTest\",\r\n \"eTag\": \"0x8D298FEB0146225\",\r\n \"lastModified\": \"2015-07-30T16:48:25.5902245Z\",\r\n \"creationTime\": \"2015-07-30T16:48:25.5612169Z\",\r\n \"state\": \"deleting\",\r\n \"stateTransitionTime\": \"2015-07-30T16:48:26.55427Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T16:48:25.5902245Z\",\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-07-30T16:48:25.5902245Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" @@ -475,16 +478,19 @@ "chunked" ], "request-id": [ - "c78612fb-cbcd-4b59-ba0d-36a2489f1c3d" + "4851cad4-4bc1-4fd8-be96-2d5132e8cee6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "a6364522-5bdf-409d-b350-ee0c6755830c" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:25:55 GMT" + "Thu, 30 Jul 2015 16:48:25 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -493,25 +499,75 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testWorkItem/jobs?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0vam9icz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "a6364522-5bdf-409d-b350-ee0c6755830c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:48:26 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "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\": \"deleteJobTest\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/deleteJobTest\",\r\n \"eTag\": \"0x8D298FEB0146225\",\r\n \"lastModified\": \"2015-07-30T16:48:25.5902245Z\",\r\n \"creationTime\": \"2015-07-30T16:48:25.5612169Z\",\r\n \"state\": \"deleting\",\r\n \"stateTransitionTime\": \"2015-07-30T16:48:26.55427Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T16:48:25.5902245Z\",\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-07-30T16:48:25.5902245Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4851cad4-4bc1-4fd8-be96-2d5132e8cee6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "23f02ef5-5a36-49af-a493-e30f739f98db" + "a6364522-5bdf-409d-b350-ee0c6755830c" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:48:25 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "a6364522-5bdf-409d-b350-ee0c6755830c" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:25:57 GMT" + "Thu, 30 Jul 2015 16:48:26 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.batch.core.windows.net/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"name\": \"job-0000000001\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"eTag\": \"0x8D288943609521C\",\r\n \"lastModified\": \"2015-07-09T19:25:55.57791Z\",\r\n \"creationTime\": \"2015-07-09T19:25:55.5591985Z\",\r\n \"state\": \"deleting\",\r\n \"stateTransitionTime\": \"2015-07-09T19:25:57.3704568Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-09T19:25:55.57791Z\",\r\n \"poolName\": \"testPool\",\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T19:25:55.57791Z\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"deleteJobTest\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/deleteJobTest\",\r\n \"eTag\": \"0x8D298FEB0146225\",\r\n \"lastModified\": \"2015-07-30T16:48:25.5902245Z\",\r\n \"creationTime\": \"2015-07-30T16:48:25.5612169Z\",\r\n \"state\": \"deleting\",\r\n \"stateTransitionTime\": \"2015-07-30T16:48:26.55427Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T16:48:25.5902245Z\",\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-07-30T16:48:25.5902245Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" @@ -520,16 +576,19 @@ "chunked" ], "request-id": [ - "2b261348-70a8-4fe7-abdf-322aa3697f38" + "4851cad4-4bc1-4fd8-be96-2d5132e8cee6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "a6364522-5bdf-409d-b350-ee0c6755830c" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:25:57 GMT" + "Thu, 30 Jul 2015 16:48:25 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -538,22 +597,23 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testWorkItem/jobs/job-0000000001?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0vam9icy9qb2ItMDAwMDAwMDAwMT9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs/deleteJobTest?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlSm9iVGVzdD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "de95d2fb-c8e1-4842-a279-567bd88a37f1" + "b69c5c22-a918-48a8-984e-57a60a3557dd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:48:26 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:25:56 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -562,16 +622,19 @@ "chunked" ], "request-id": [ - "f54bd960-dece-44d3-ab93-0713ad4f3544" + "6c4f8e9c-24e7-4b4f-a760-5c6d401c8d7b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "b69c5c22-a918-48a8-984e-57a60a3557dd" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:25:56 GMT" + "Thu, 30 Jul 2015 16:48:25 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -580,22 +643,23 @@ "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/jobs/deleteJobTest?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlSm9iVGVzdD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "c8c18fe1-1dc2-47b4-93f7-d0680a61807a" + "b69c5c22-a918-48a8-984e-57a60a3557dd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:48:26 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:25:57 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -604,16 +668,19 @@ "chunked" ], "request-id": [ - "e217d6ba-f13c-4171-81ef-5cc59b316cac" + "6c4f8e9c-24e7-4b4f-a760-5c6d401c8d7b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "b69c5c22-a918-48a8-984e-57a60a3557dd" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:25:57 GMT" + "Thu, 30 Jul 2015 16:48:25 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestDeleteJobPipeline.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestDeleteJobPipeline.json index 526bb2c8124f..35f5c233578a 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestDeleteJobPipeline.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestDeleteJobPipeline.json @@ -10,10 +10,10 @@ "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}", + "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/cmdletexample\",\r\n \"name\": \"cmdletexample\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "237" + "475" ], "Content-Type": [ "application/json; charset=utf-8" @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14924" + "14999" ], "x-ms-request-id": [ - "c3ce66eb-2f87-41d3-bcdf-05f58f3f880a" + "65d411b9-d456-4d78-b3b6-10e79f7e0126" ], "x-ms-correlation-request-id": [ - "c3ce66eb-2f87-41d3-bcdf-05f58f3f880a" + "65d411b9-d456-4d78-b3b6-10e79f7e0126" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T193029Z:c3ce66eb-2f87-41d3-bcdf-05f58f3f880a" + "WESTUS:20150730T164844Z:65d411b9-d456-4d78-b3b6-10e79f7e0126" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:30:29 GMT" + "Thu, 30 Jul 2015 16:48:44 GMT" ] }, "StatusCode": 200 @@ -58,10 +58,10 @@ "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}", + "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/cmdletexample\",\r\n \"name\": \"cmdletexample\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "237" + "475" ], "Content-Type": [ "application/json; charset=utf-8" @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14923" + "14998" ], "x-ms-request-id": [ - "e17e9879-addf-4fc9-9e19-b7f7e6939a59" + "db6de5cc-3334-403b-b69c-d06eb793bb63" ], "x-ms-correlation-request-id": [ - "e17e9879-addf-4fc9-9e19-b7f7e6939a59" + "db6de5cc-3334-403b-b69c-d06eb793bb63" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T193031Z:e17e9879-addf-4fc9-9e19-b7f7e6939a59" + "WESTUS:20150730T164845Z:db6de5cc-3334-403b-b69c-d06eb793bb63" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:30:31 GMT" + "Thu, 30 Jul 2015 16:48:45 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:30:30 GMT" + "Thu, 30 Jul 2015 16:48:45 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "998c63f7-1bb2-4f6a-9a0c-44aae55d1ecb" + "b38c98b6-0a84-4af7-adc5-c19b169b46da" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14931" + "14995" ], "x-ms-request-id": [ - "84588649-c078-46cf-891c-3d54d26c516a" + "4b6eb716-4487-4812-94bf-b5b4a79db90a" ], "x-ms-correlation-request-id": [ - "84588649-c078-46cf-891c-3d54d26c516a" + "4b6eb716-4487-4812-94bf-b5b4a79db90a" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T193030Z:84588649-c078-46cf-891c-3d54d26c516a" + "WESTUS:20150730T164845Z:4b6eb716-4487-4812-94bf-b5b4a79db90a" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:30:30 GMT" + "Thu, 30 Jul 2015 16:48:44 GMT" ], "ETag": [ - "0x8D28894D9CF3B56" + "0x8D298FEBBA71206" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:30:31 GMT" + "Thu, 30 Jul 2015 16:48:45 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "20c6e229-0772-4cc9-a3e8-3244d49a7c74" + "d5b5611f-360c-4a1a-9c0d-8ee923695f4d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14930" + "14994" ], "x-ms-request-id": [ - "b6da6950-5254-4989-9838-dbc7b1d00667" + "07e3bbc0-efba-4642-861f-288c05b9e2e7" ], "x-ms-correlation-request-id": [ - "b6da6950-5254-4989-9838-dbc7b1d00667" + "07e3bbc0-efba-4642-861f-288c05b9e2e7" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T193031Z:b6da6950-5254-4989-9838-dbc7b1d00667" + "WESTUS:20150730T164846Z:07e3bbc0-efba-4642-861f-288c05b9e2e7" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:30:31 GMT" + "Thu, 30 Jul 2015 16:48:45 GMT" ], "ETag": [ - "0x8D28894DA8E8AA4" + "0x8D298FEBC3E19FB" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "a1e6d4b4-d273-4eff-af53-631ef5e7637f" + "7bfce3ab-ecdb-44bb-afce-7bf764ea324c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1161" + "1197" ], "x-ms-request-id": [ - "885b2e68-f6f4-4b46-a528-42bc7c51187b" + "3d35c1e6-d53c-4efb-96b3-a0c700322deb" ], "x-ms-correlation-request-id": [ - "885b2e68-f6f4-4b46-a528-42bc7c51187b" + "3d35c1e6-d53c-4efb-96b3-a0c700322deb" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T193030Z:885b2e68-f6f4-4b46-a528-42bc7c51187b" + "WESTUS:20150730T164845Z:3d35c1e6-d53c-4efb-96b3-a0c700322deb" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:30:30 GMT" + "Thu, 30 Jul 2015 16:48:45 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "e4a4bb72-0ccf-4b8d-bdad-faab315ebd5e" + "5a6bc0d2-a0f8-4f07-a607-fb8334ed8ca9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1160" + "1196" ], "x-ms-request-id": [ - "ab352243-2b97-4491-a40a-9e639aff039a" + "de18c65f-8d8d-4af6-b72c-2eaedd1ca9f9" ], "x-ms-correlation-request-id": [ - "ab352243-2b97-4491-a40a-9e639aff039a" + "de18c65f-8d8d-4af6-b72c-2eaedd1ca9f9" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T193031Z:ab352243-2b97-4491-a40a-9e639aff039a" + "WESTUS:20150730T164846Z:de18c65f-8d8d-4af6-b72c-2eaedd1ca9f9" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:30:31 GMT" + "Thu, 30 Jul 2015 16:48:46 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,58 +337,62 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", + "RequestBody": "{\r\n \"id\": \"testDeleteJobPipe\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "168" - ], - "User-Agent": [ - "WA-Batch/1.0" + "100" ], "client-request-id": [ - "6dae8c7a-7ccd-4080-a957-d7e05b75bdac" + "8dfd8979-29a9-4531-afce-323351e371b4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:48:45 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:30:30 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 19:30:31 GMT" + "Thu, 30 Jul 2015 16:48:45 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "c9e8e3d7-57bf-490f-a796-fe15706fca44" + "0f262032-4df0-4cc8-9b6c-7b6acc117342" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "8dfd8979-29a9-4531-afce-323351e371b4" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testWorkItem" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Date": [ - "Thu, 09 Jul 2015 19:30:31 GMT" + "Thu, 30 Jul 2015 16:48:45 GMT" ], "ETag": [ - "0x8D28894DA52625A" + "0x8D298FEBC157D68" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/testWorkItem" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -397,49 +401,47 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "9245b8ac-2ebf-447f-82e9-28ad9f145328" + "841f3627-29f0-428b-9c4c-51c77678e8fa" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:48:46 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:30:30 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D28894DA52625A\",\r\n \"lastModified\": \"2015-07-09T19:30:31.203081Z\",\r\n \"creationTime\": \"2015-07-09T19:30:31.203081Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:30:31.203081Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDeleteJobPipe\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDeleteJobPipe\",\r\n \"eTag\": \"0x8D298FEBC157D68\",\r\n \"lastModified\": \"2015-07-30T16:48:45.7301352Z\",\r\n \"creationTime\": \"2015-07-30T16:48:45.7131275Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:48:45.7301352Z\",\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-07-30T16:48:45.7301352Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:30:31 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "8a0fd325-a47c-4559-87ca-84cd79410694" + "4bc26b44-0a26-41c1-900f-39b42ac55daf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "841f3627-29f0-428b-9c4c-51c77678e8fa" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:30:30 GMT" - ], - "ETag": [ - "0x8D28894DA52625A" + "Thu, 30 Jul 2015 16:48:45 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -448,25 +450,75 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testWorkItem/jobs?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0vam9icz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "5bc47bc7-1c80-40b8-bb96-722fde9a36ae" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:48:46 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "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\": \"testDeleteJobPipe\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDeleteJobPipe\",\r\n \"eTag\": \"0x8D298FEBC157D68\",\r\n \"lastModified\": \"2015-07-30T16:48:45.7301352Z\",\r\n \"creationTime\": \"2015-07-30T16:48:45.7131275Z\",\r\n \"state\": \"deleting\",\r\n \"stateTransitionTime\": \"2015-07-30T16:48:46.7911054Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T16:48:45.7301352Z\",\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-07-30T16:48:45.7301352Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "436d7430-08b2-42a1-ba92-e8b1f0571395" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "670ee320-91b8-46c9-bf6d-33b44f963658" + "5bc47bc7-1c80-40b8-bb96-722fde9a36ae" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:48:45 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "5bc47bc7-1c80-40b8-bb96-722fde9a36ae" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:30:31 GMT" + "Thu, 30 Jul 2015 16:48:46 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.batch.core.windows.net/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"name\": \"job-0000000001\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"eTag\": \"0x8D28894DA5BB130\",\r\n \"lastModified\": \"2015-07-09T19:30:31.2640816Z\",\r\n \"creationTime\": \"2015-07-09T19:30:31.2400729Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:30:31.2640816Z\",\r\n \"poolName\": \"testPool\",\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T19:30:31.2640816Z\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDeleteJobPipe\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDeleteJobPipe\",\r\n \"eTag\": \"0x8D298FEBC157D68\",\r\n \"lastModified\": \"2015-07-30T16:48:45.7301352Z\",\r\n \"creationTime\": \"2015-07-30T16:48:45.7131275Z\",\r\n \"state\": \"deleting\",\r\n \"stateTransitionTime\": \"2015-07-30T16:48:46.7911054Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T16:48:45.7301352Z\",\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-07-30T16:48:45.7301352Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" @@ -475,16 +527,19 @@ "chunked" ], "request-id": [ - "1d169475-43de-408c-9548-60e5839e813d" + "436d7430-08b2-42a1-ba92-e8b1f0571395" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "5bc47bc7-1c80-40b8-bb96-722fde9a36ae" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:30:32 GMT" + "Thu, 30 Jul 2015 16:48:45 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -493,25 +548,75 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testWorkItem/jobs?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0vam9icz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "5bc47bc7-1c80-40b8-bb96-722fde9a36ae" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:48:46 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "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\": \"testDeleteJobPipe\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDeleteJobPipe\",\r\n \"eTag\": \"0x8D298FEBC157D68\",\r\n \"lastModified\": \"2015-07-30T16:48:45.7301352Z\",\r\n \"creationTime\": \"2015-07-30T16:48:45.7131275Z\",\r\n \"state\": \"deleting\",\r\n \"stateTransitionTime\": \"2015-07-30T16:48:46.7911054Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T16:48:45.7301352Z\",\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-07-30T16:48:45.7301352Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "436d7430-08b2-42a1-ba92-e8b1f0571395" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "284f1f71-4aa2-4422-9e0c-36598a1a4b66" + "5bc47bc7-1c80-40b8-bb96-722fde9a36ae" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:48:45 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "5bc47bc7-1c80-40b8-bb96-722fde9a36ae" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:30:32 GMT" + "Thu, 30 Jul 2015 16:48:46 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.batch.core.windows.net/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"name\": \"job-0000000001\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"eTag\": \"0x8D28894DA5BB130\",\r\n \"lastModified\": \"2015-07-09T19:30:31.2640816Z\",\r\n \"creationTime\": \"2015-07-09T19:30:31.2400729Z\",\r\n \"state\": \"deleting\",\r\n \"stateTransitionTime\": \"2015-07-09T19:30:33.1659099Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-09T19:30:31.2640816Z\",\r\n \"poolName\": \"testPool\",\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T19:30:31.2640816Z\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testDeleteJobPipe\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDeleteJobPipe\",\r\n \"eTag\": \"0x8D298FEBC157D68\",\r\n \"lastModified\": \"2015-07-30T16:48:45.7301352Z\",\r\n \"creationTime\": \"2015-07-30T16:48:45.7131275Z\",\r\n \"state\": \"deleting\",\r\n \"stateTransitionTime\": \"2015-07-30T16:48:46.7911054Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T16:48:45.7301352Z\",\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-07-30T16:48:45.7301352Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" @@ -520,16 +625,19 @@ "chunked" ], "request-id": [ - "45604776-fd4d-44c1-a659-335b32ced53d" + "436d7430-08b2-42a1-ba92-e8b1f0571395" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "5bc47bc7-1c80-40b8-bb96-722fde9a36ae" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:30:32 GMT" + "Thu, 30 Jul 2015 16:48:45 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -538,49 +646,108 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testWorkItem/jobs/job-0000000001?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0vam9icy9qb2ItMDAwMDAwMDAwMT9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs/testDeleteJobPipe?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERlbGV0ZUpvYlBpcGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "d9834821-a094-4bbc-b395-acb3de2038f1" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:48:46 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "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\": \"testDeleteJobPipe\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDeleteJobPipe\",\r\n \"eTag\": \"0x8D298FEBC157D68\",\r\n \"lastModified\": \"2015-07-30T16:48:45.7301352Z\",\r\n \"creationTime\": \"2015-07-30T16:48:45.7131275Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:48:45.7301352Z\",\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-07-30T16:48:45.7301352Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:48:45 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "48a779e2-8ace-4b2d-92a2-445389e48b5c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "030b6b1e-9375-489a-8659-e6e3ff475f58" + "d9834821-a094-4bbc-b395-acb3de2038f1" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:48:45 GMT" + ], + "ETag": [ + "0x8D298FEBC157D68" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testDeleteJobPipe?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERlbGV0ZUpvYlBpcGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d9834821-a094-4bbc-b395-acb3de2038f1" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:30:32 GMT" + "Thu, 30 Jul 2015 16:48:46 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.batch.core.windows.net/$metadata#jobs/@Element\",\r\n \"name\": \"job-0000000001\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"eTag\": \"0x8D28894DA5BB130\",\r\n \"lastModified\": \"2015-07-09T19:30:31.2640816Z\",\r\n \"creationTime\": \"2015-07-09T19:30:31.2400729Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:30:31.2640816Z\",\r\n \"poolName\": \"testPool\",\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T19:30:31.2640816Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"testDeleteJobPipe\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testDeleteJobPipe\",\r\n \"eTag\": \"0x8D298FEBC157D68\",\r\n \"lastModified\": \"2015-07-30T16:48:45.7301352Z\",\r\n \"creationTime\": \"2015-07-30T16:48:45.7131275Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:48:45.7301352Z\",\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-07-30T16:48:45.7301352Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:30:31 GMT" + "Thu, 30 Jul 2015 16:48:45 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "e4fde3f3-0d0d-4b86-9a3d-24247127fb23" + "48a779e2-8ace-4b2d-92a2-445389e48b5c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "d9834821-a094-4bbc-b395-acb3de2038f1" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:30:32 GMT" + "Thu, 30 Jul 2015 16:48:45 GMT" ], "ETag": [ - "0x8D28894DA5BB130" + "0x8D298FEBC157D68" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -589,22 +756,23 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testWorkItem/jobs/job-0000000001?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0vam9icy9qb2ItMDAwMDAwMDAwMT9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs/testDeleteJobPipe?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERlbGV0ZUpvYlBpcGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "acad34a9-c40c-4e94-a6aa-2d8143d83068" + "d5d52c78-df5d-4a81-b0eb-92d21961deab" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:48:46 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:30:32 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -613,16 +781,19 @@ "chunked" ], "request-id": [ - "89e63f8f-3e40-4d5e-8012-aa1f8db1b025" + "d3800b8d-6100-4722-a2b8-983addbc779d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "d5d52c78-df5d-4a81-b0eb-92d21961deab" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:30:32 GMT" + "Thu, 30 Jul 2015 16:48:45 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -631,22 +802,69 @@ "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/jobs/testDeleteJobPipe?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERlbGV0ZUpvYlBpcGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "d5d52c78-df5d-4a81-b0eb-92d21961deab" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:48:46 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d3800b8d-6100-4722-a2b8-983addbc779d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "6aa1c040-b68e-4e6f-9b6b-195fa58cbe4a" + "d5d52c78-df5d-4a81-b0eb-92d21961deab" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:48:45 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testDeleteJobPipe?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdERlbGV0ZUpvYlBpcGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d5d52c78-df5d-4a81-b0eb-92d21961deab" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:30:33 GMT" + "Thu, 30 Jul 2015 16:48:46 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -655,16 +873,19 @@ "chunked" ], "request-id": [ - "d85d5d19-7709-45ab-8009-bc84cdafdec5" + "d3800b8d-6100-4722-a2b8-983addbc779d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "d5d52c78-df5d-4a81-b0eb-92d21961deab" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:30:33 GMT" + "Thu, 30 Jul 2015 16:48:45 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.WorkItemTests/TestListWorkItemsByFilter.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestGetJobById.json similarity index 61% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.WorkItemTests/TestListWorkItemsByFilter.json rename to src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestGetJobById.json index 48f9c54c4478..52c04bec402b 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.WorkItemTests/TestListWorkItemsByFilter.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestGetJobById.json @@ -10,10 +10,10 @@ "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}", + "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/cmdletexample\",\r\n \"name\": \"cmdletexample\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "237" + "475" ], "Content-Type": [ "application/json; charset=utf-8" @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14932" + "14999" ], "x-ms-request-id": [ - "f8ed737c-cfb8-4b04-8743-0082cb4a429e" + "9ab7fc63-7264-46b7-8f83-96044874636c" ], "x-ms-correlation-request-id": [ - "f8ed737c-cfb8-4b04-8743-0082cb4a429e" + "9ab7fc63-7264-46b7-8f83-96044874636c" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192305Z:f8ed737c-cfb8-4b04-8743-0082cb4a429e" + "WESTUS:20150730T164801Z:9ab7fc63-7264-46b7-8f83-96044874636c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:23:04 GMT" + "Thu, 30 Jul 2015 16:48:00 GMT" ] }, "StatusCode": 200 @@ -58,10 +58,10 @@ "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}", + "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/cmdletexample\",\r\n \"name\": \"cmdletexample\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "237" + "475" ], "Content-Type": [ "application/json; charset=utf-8" @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14931" + "14998" ], "x-ms-request-id": [ - "70d4328c-4c25-4f24-8861-8f940869fa65" + "e7fde02e-b425-43f0-9b8e-8fd9ea316341" ], "x-ms-correlation-request-id": [ - "70d4328c-4c25-4f24-8861-8f940869fa65" + "e7fde02e-b425-43f0-9b8e-8fd9ea316341" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192311Z:70d4328c-4c25-4f24-8861-8f940869fa65" + "WESTUS:20150730T164804Z:e7fde02e-b425-43f0-9b8e-8fd9ea316341" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:23:10 GMT" + "Thu, 30 Jul 2015 16:48:04 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:23:06 GMT" + "Thu, 30 Jul 2015 16:48:02 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "67746449-ebad-46fd-91a3-39617fb3f8c3" + "4c2e4898-912b-4dcb-a355-b9677707331b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14973" + "14995" ], "x-ms-request-id": [ - "8dc29d13-1287-4735-8bce-a7ff622fc81f" + "8dc62fed-2025-416c-92a7-e57c3ba90f61" ], "x-ms-correlation-request-id": [ - "8dc29d13-1287-4735-8bce-a7ff622fc81f" + "8dc62fed-2025-416c-92a7-e57c3ba90f61" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192306Z:8dc29d13-1287-4735-8bce-a7ff622fc81f" + "WESTUS:20150730T164802Z:8dc62fed-2025-416c-92a7-e57c3ba90f61" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:23:05 GMT" + "Thu, 30 Jul 2015 16:48:02 GMT" ], "ETag": [ - "0x8D28893D11D0E9F" + "0x8D298FEA2638B2E" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:23:11 GMT" + "Thu, 30 Jul 2015 16:48:04 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "cecbe199-9c95-4adf-8b87-4938e9e1cbbc" + "2fcc4b62-d788-4c4e-a3fb-bce3c156438f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14972" + "14994" ], "x-ms-request-id": [ - "3283a55b-97f8-4181-92fb-fc1dc2be5bca" + "ebc1547c-a802-4b28-a441-3c22244726e3" ], "x-ms-correlation-request-id": [ - "3283a55b-97f8-4181-92fb-fc1dc2be5bca" + "ebc1547c-a802-4b28-a441-3c22244726e3" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192311Z:3283a55b-97f8-4181-92fb-fc1dc2be5bca" + "WESTUS:20150730T164804Z:ebc1547c-a802-4b28-a441-3c22244726e3" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:23:11 GMT" + "Thu, 30 Jul 2015 16:48:04 GMT" ], "ETag": [ - "0x8D28893D431F9D2" + "0x8D298FEA38AA890" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "c623e7c4-9bae-42b7-9d70-58fb458132aa" + "5289ffb3-c7f7-4ec3-afe2-9cce956794b9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1188" + "1198" ], "x-ms-request-id": [ - "dde96591-d0e2-4d30-a446-ba9d63975c56" + "2e40a8ae-3b3a-4960-9a2d-6893a14f5a6f" ], "x-ms-correlation-request-id": [ - "dde96591-d0e2-4d30-a446-ba9d63975c56" + "2e40a8ae-3b3a-4960-9a2d-6893a14f5a6f" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192306Z:dde96591-d0e2-4d30-a446-ba9d63975c56" + "WESTUS:20150730T164803Z:2e40a8ae-3b3a-4960-9a2d-6893a14f5a6f" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:23:05 GMT" + "Thu, 30 Jul 2015 16:48:02 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "ce92fc3f-8f3a-4a0b-9936-65648ad40287" + "58a6f57f-7933-4dbc-b49e-fefb97a9f78b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1187" + "1197" ], "x-ms-request-id": [ - "f15c7d3d-2dd4-44b9-9451-8e25284ee857" + "75a58c13-da8c-4d25-b6a9-5f2ab4d726a8" ], "x-ms-correlation-request-id": [ - "f15c7d3d-2dd4-44b9-9451-8e25284ee857" + "75a58c13-da8c-4d25-b6a9-5f2ab4d726a8" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192311Z:f15c7d3d-2dd4-44b9-9451-8e25284ee857" + "WESTUS:20150730T164804Z:75a58c13-da8c-4d25-b6a9-5f2ab4d726a8" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:23:11 GMT" + "Thu, 30 Jul 2015 16:48:04 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,58 +337,62 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testName1\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", + "RequestBody": "{\r\n \"id\": \"testJob\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "165" - ], - "User-Agent": [ - "WA-Batch/1.0" + "90" ], "client-request-id": [ - "bbb2bbf2-cecd-43a3-bf4d-1d02b338bda8" + "200e95e7-75e6-4e38-99bb-5a7537816415" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:48:03 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:23:06 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 19:23:07 GMT" + "Thu, 30 Jul 2015 16:48:04 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "c2cf056c-65d2-4886-96b9-36667928e2c5" + "231a1aa3-ff88-4785-8e85-806b9a525a6c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "200e95e7-75e6-4e38-99bb-5a7537816415" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testName1" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Date": [ - "Thu, 09 Jul 2015 19:23:06 GMT" + "Thu, 30 Jul 2015 16:48:03 GMT" ], "ETag": [ - "0x8D28893D1CF08D9" + "0x8D298FEA374A6ED" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/testName1" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -397,163 +401,163 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testName2\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", + "RequestUri": "/jobs/testJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "165" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "d915b401-d816-4101-9c29-3c7b01bbf849" + "3e23cec0-1be4-435c-9924-ed66208be10f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:48:04 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:23:07 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"testJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJob\",\r\n \"eTag\": \"0x8D298FEA374A6ED\",\r\n \"lastModified\": \"2015-07-30T16:48:04.4107501Z\",\r\n \"creationTime\": \"2015-07-30T16:48:04.38059Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:48:04.4107501Z\",\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-07-30T16:48:04.4107501Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:23:07 GMT" + "Thu, 30 Jul 2015 16:48:04 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "59db8b18-60d0-4159-8d05-d88d031c6f43" + "f77334ae-0d24-4b60-89b3-3796f4f91cb5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "3e23cec0-1be4-435c-9924-ed66208be10f" + ], "DataServiceVersion": [ "3.0" ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testName2" - ], "Date": [ - "Thu, 09 Jul 2015 19:23:07 GMT" + "Thu, 30 Jul 2015 16:48:04 GMT" ], "ETag": [ - "0x8D28893D21D52B9" - ], - "Location": [ - "https://pstests.batch.core.windows.net/workitems/testName2" + "0x8D298FEA374A6ED" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 201 + "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"thirdtestName\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", + "RequestUri": "/jobs/testJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "169" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "ccff526c-531e-48b3-8db4-8699d813bc45" + "d17b0966-2bd5-4712-87d7-1c1da23513b1" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:48:05 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:23:07 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"testJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJob\",\r\n \"eTag\": \"0x8D298FEA374A6ED\",\r\n \"lastModified\": \"2015-07-30T16:48:04.4107501Z\",\r\n \"creationTime\": \"2015-07-30T16:48:04.38059Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:48:04.4107501Z\",\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-07-30T16:48:04.4107501Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:23:11 GMT" + "Thu, 30 Jul 2015 16:48:04 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "4955c4e8-771c-41a8-9d2c-eac453321076" + "3cb9470b-c088-48fd-8170-0aeeeedad2cd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "d17b0966-2bd5-4712-87d7-1c1da23513b1" + ], "DataServiceVersion": [ "3.0" ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/thirdtestName" - ], "Date": [ - "Thu, 09 Jul 2015 19:23:10 GMT" + "Thu, 30 Jul 2015 16:48:04 GMT" ], "ETag": [ - "0x8D28893D432B858" - ], - "Location": [ - "https://pstests.batch.core.windows.net/workitems/thirdtestName" + "0x8D298FEA374A6ED" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 201 + "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0&$filter=startswith(name%2C'testName')", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMCYkZmlsdGVyPXN0YXJ0c3dpdGglMjhuYW1lJTJDJTI3dGVzdE5hbWUlMjclMjk=", + "RequestUri": "/jobs/testJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "5edb69b1-7c32-47e1-9967-c111c3dfe9c6" + "d17b0966-2bd5-4712-87d7-1c1da23513b1" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:48:05 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:23:11 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems\",\r\n \"value\": [\r\n {\r\n \"name\": \"testName1\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testName1\",\r\n \"eTag\": \"0x8D28893D1CF08D9\",\r\n \"lastModified\": \"2015-07-09T19:23:07.4237657Z\",\r\n \"creationTime\": \"2015-07-09T19:23:07.4237657Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:23:07.4237657Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testName1/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"testName2\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testName2\",\r\n \"eTag\": \"0x8D28893D21D52B9\",\r\n \"lastModified\": \"2015-07-09T19:23:07.9368377Z\",\r\n \"creationTime\": \"2015-07-09T19:23:07.9368377Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:23:07.9368377Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testName2/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"testJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJob\",\r\n \"eTag\": \"0x8D298FEA374A6ED\",\r\n \"lastModified\": \"2015-07-30T16:48:04.4107501Z\",\r\n \"creationTime\": \"2015-07-30T16:48:04.38059Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:48:04.4107501Z\",\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-07-30T16:48:04.4107501Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:48:04 GMT" + ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "3c501bf5-2d05-463a-95f1-fb560af3afa9" + "3cb9470b-c088-48fd-8170-0aeeeedad2cd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "d17b0966-2bd5-4712-87d7-1c1da23513b1" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:23:10 GMT" + "Thu, 30 Jul 2015 16:48:04 GMT" + ], + "ETag": [ + "0x8D298FEA374A6ED" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -562,64 +566,23 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testName1?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TmFtZTE/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/jobs/testJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "a57ec9b4-0986-4f40-b1ac-9fd4c16f5ef4" - ], - "return-client-request-id": [ - "False" + "0c3e0a13-e38f-4a9b-bcfb-0a8818f4c87d" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:23:11 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "75b700ab-6920-4a58-b96a-71ce6952124b" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:23:12 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/workitems/testName2?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TmFtZTI/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "f19fff49-aa12-4dac-94b8-a893a80ff249" + "Thu, 30 Jul 2015 16:48:05 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:23:12 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -628,16 +591,19 @@ "chunked" ], "request-id": [ - "63e73104-ce2c-4885-a137-b1cd2f0f6d86" + "228c8d55-87d9-4199-a067-974fa822e7c3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "0c3e0a13-e38f-4a9b-bcfb-0a8818f4c87d" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:23:12 GMT" + "Thu, 30 Jul 2015 16:48:04 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -646,22 +612,23 @@ "StatusCode": 202 }, { - "RequestUri": "/workitems/thirdtestName?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90aGlyZHRlc3ROYW1lP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/jobs/testJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "24d9d038-b508-4ff8-83a8-b531be1f980f" + "0c3e0a13-e38f-4a9b-bcfb-0a8818f4c87d" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:48:05 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:23:12 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -670,16 +637,19 @@ "chunked" ], "request-id": [ - "c339f605-4b5b-4415-aa16-9b3faf61c7e9" + "228c8d55-87d9-4199-a067-974fa822e7c3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "0c3e0a13-e38f-4a9b-bcfb-0a8818f4c87d" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:23:12 GMT" + "Thu, 30 Jul 2015 16:48:04 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestGetJobRequiredParameters.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestGetJobRequiredParameters.json deleted file mode 100644 index 2af54be507b8..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestGetJobRequiredParameters.json +++ /dev/null @@ -1,176 +0,0 @@ -{ - "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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14961" - ], - "x-ms-request-id": [ - "ea1ad235-e654-4983-80f3-3a59b10edccf" - ], - "x-ms-correlation-request-id": [ - "ea1ad235-e654-4983-80f3-3a59b10edccf" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T192641Z:ea1ad235-e654-4983-80f3-3a59b10edccf" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:26:41 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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:26:44 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "64788420-d2b3-4c99-9ddb-84bcbc3519ca" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14932" - ], - "x-ms-request-id": [ - "09660411-7722-4878-9939-fc5a81c3c4e2" - ], - "x-ms-correlation-request-id": [ - "09660411-7722-4878-9939-fc5a81c3c4e2" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T192644Z:09660411-7722-4878-9939-fc5a81c3c4e2" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:26:44 GMT" - ], - "ETag": [ - "0x8D2889453022B80" - ], - "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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "1996edb8-63b0-40c1-8920-c28af65d96b0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1173" - ], - "x-ms-request-id": [ - "c127f464-1694-488f-9dd0-cc6d57102d4f" - ], - "x-ms-correlation-request-id": [ - "c127f464-1694-488f-9dd0-cc6d57102d4f" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T192645Z:c127f464-1694-488f-9dd0-cc6d57102d4f" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:26:45 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" - } -} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListAllJobs.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListAllJobs.json index 72d200d97184..99330bcac19c 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListAllJobs.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListAllJobs.json @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14962" + "14961" ], "x-ms-request-id": [ - "802b96f0-46c2-4f09-8d64-88f745f8b7e3" + "a55024c6-600d-4dae-90dc-3b8b99b7f91b" ], "x-ms-correlation-request-id": [ - "802b96f0-46c2-4f09-8d64-88f745f8b7e3" + "a55024c6-600d-4dae-90dc-3b8b99b7f91b" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192424Z:802b96f0-46c2-4f09-8d64-88f745f8b7e3" + "WESTUS:20150730T171829Z:a55024c6-600d-4dae-90dc-3b8b99b7f91b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:24:24 GMT" + "Thu, 30 Jul 2015 17:18:28 GMT" ] }, "StatusCode": 200 @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14962" + "14960" ], "x-ms-request-id": [ - "ff033689-3163-4a55-b6ae-2c5b323b4178" + "514f92fa-b8da-4504-a520-bf696faf13cb" ], "x-ms-correlation-request-id": [ - "ff033689-3163-4a55-b6ae-2c5b323b4178" + "514f92fa-b8da-4504-a520-bf696faf13cb" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192532Z:ff033689-3163-4a55-b6ae-2c5b323b4178" + "WESTUS:20150730T171832Z:514f92fa-b8da-4504-a520-bf696faf13cb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:25:31 GMT" + "Thu, 30 Jul 2015 17:18:31 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:24:25 GMT" + "Thu, 30 Jul 2015 17:18:30 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "6f558034-8d06-4518-aba1-49a4653ad012" + "30892d8f-fcc3-4fba-929f-7ee2261ff595" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14930" + "14924" ], "x-ms-request-id": [ - "12e8c072-fb41-4c12-a321-59f1e83711ff" + "77cc6329-1838-4f00-b346-0e075a04e5ed" ], "x-ms-correlation-request-id": [ - "12e8c072-fb41-4c12-a321-59f1e83711ff" + "77cc6329-1838-4f00-b346-0e075a04e5ed" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192425Z:12e8c072-fb41-4c12-a321-59f1e83711ff" + "WESTUS:20150730T171830Z:77cc6329-1838-4f00-b346-0e075a04e5ed" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:24:25 GMT" + "Thu, 30 Jul 2015 17:18:29 GMT" ], "ETag": [ - "0x8D288940062F845" + "0x8D29902E3B10EB1" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:25:32 GMT" + "Thu, 30 Jul 2015 17:18:31 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "dc5b39b7-4e3e-4ed5-89eb-f8583286ab29" + "c3e0c198-2c4a-446d-b9f7-55191f1254f9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14933" + "14923" ], "x-ms-request-id": [ - "63e031cf-1aac-41fe-9078-625fb4874677" + "16bff5c0-6e06-4cc0-a2aa-26eb60e2cdf8" ], "x-ms-correlation-request-id": [ - "63e031cf-1aac-41fe-9078-625fb4874677" + "16bff5c0-6e06-4cc0-a2aa-26eb60e2cdf8" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192532Z:63e031cf-1aac-41fe-9078-625fb4874677" + "WESTUS:20150730T171832Z:16bff5c0-6e06-4cc0-a2aa-26eb60e2cdf8" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:25:32 GMT" + "Thu, 30 Jul 2015 17:18:31 GMT" ], "ETag": [ - "0x8D2889428649AC4" + "0x8D29902E4BCCF34" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "a27ff5da-5304-49fc-9f2e-0e9f72d4fbd9" + "95c4fce8-f110-4ab3-9db4-8621baab4f8f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1174" + "1171" ], "x-ms-request-id": [ - "8bbd5169-15f2-4207-9f0b-0dbfbe384b57" + "8c0fca7c-ea60-4cd6-ad63-3e8fd85bfb3b" ], "x-ms-correlation-request-id": [ - "8bbd5169-15f2-4207-9f0b-0dbfbe384b57" + "8c0fca7c-ea60-4cd6-ad63-3e8fd85bfb3b" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192426Z:8bbd5169-15f2-4207-9f0b-0dbfbe384b57" + "WESTUS:20150730T171830Z:8c0fca7c-ea60-4cd6-ad63-3e8fd85bfb3b" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:24:26 GMT" + "Thu, 30 Jul 2015 17:18:29 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "41406bee-b65a-4a1e-acbe-af7565325535" + "929ff3f8-45d9-4ebb-a8fe-0e3dfc6d2961" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1174" + "1170" ], "x-ms-request-id": [ - "9b0523fc-b9a6-406e-bf27-334f1e14aec0" + "291f8f17-b854-479b-a089-ad137247581c" ], "x-ms-correlation-request-id": [ - "9b0523fc-b9a6-406e-bf27-334f1e14aec0" + "291f8f17-b854-479b-a089-ad137247581c" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192533Z:9b0523fc-b9a6-406e-bf27-334f1e14aec0" + "WESTUS:20150730T171832Z:291f8f17-b854-479b-a089-ad137247581c" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:25:32 GMT" + "Thu, 30 Jul 2015 17:18:31 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,58 +337,62 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", + "RequestBody": "{\r\n \"id\": \"testId1\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "219" - ], - "User-Agent": [ - "WA-Batch/1.0" + "90" ], "client-request-id": [ - "c2bdb930-e4df-4527-a521-dc0cdea5c0b6" + "be616469-ceda-4a84-ae1a-812af07cf857" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:30 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:24:26 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 19:24:26 GMT" + "Thu, 30 Jul 2015 17:18:31 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "0bcdfc13-9a56-46dc-a124-ff027a3649d6" + "7b1121ea-212d-459c-8c44-219412351b17" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "be616469-ceda-4a84-ae1a-812af07cf857" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testWorkItem" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Date": [ - "Thu, 09 Jul 2015 19:24:26 GMT" + "Thu, 30 Jul 2015 17:18:30 GMT" ], "ETag": [ - "0x8D288940133C046" + "0x8D29902E44F766B" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/testWorkItem" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -397,304 +401,367 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testId2\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "90" ], "client-request-id": [ - "1f94ad9c-3222-4108-bc07-9aa7667cef68" + "8e583805-4a66-450f-b13f-cac195a7b036" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:31 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:24:26 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288940133C046\",\r\n \"lastModified\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"creationTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:25:26.9367366Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:24:26 GMT" + "Thu, 30 Jul 2015 17:18:31 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "e11d4b40-4005-4c62-a6f6-b251751a36b4" + "42efb120-9f58-47a4-ae63-fa5a7756a18d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "8e583805-4a66-450f-b13f-cac195a7b036" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], "Date": [ - "Thu, 09 Jul 2015 19:24:26 GMT" + "Thu, 30 Jul 2015 17:18:30 GMT" ], "ETag": [ - "0x8D288940133C046" + "0x8D29902E46F62A5" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testId2\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "90" ], "client-request-id": [ - "09059329-e4e9-4da4-95a6-1ff9308d03d3" + "8e583805-4a66-450f-b13f-cac195a7b036" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:31 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:24:27 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288940133C046\",\r\n \"lastModified\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"creationTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:25:26.9367366Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:24:26 GMT" + "Thu, 30 Jul 2015 17:18:31 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "d7ecc334-8386-4f85-a201-1432ea64e34e" + "42efb120-9f58-47a4-ae63-fa5a7756a18d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "8e583805-4a66-450f-b13f-cac195a7b036" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], "Date": [ - "Thu, 09 Jul 2015 19:24:27 GMT" + "Thu, 30 Jul 2015 17:18:30 GMT" ], "ETag": [ - "0x8D288940133C046" + "0x8D29902E46F62A5" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdtestId\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "94" ], "client-request-id": [ - "d9e6bce9-6ec2-4042-b5f8-630121c8db1b" + "23eded10-558d-4982-979d-2dbb8293fe3c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:31 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:24:32 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288940133C046\",\r\n \"lastModified\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"creationTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:25:26.9367366Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:24:26 GMT" + "Thu, 30 Jul 2015 17:18:31 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "e12332ef-5a77-4319-b3df-0fbc9fffa3f5" + "8b27a69f-9471-4e48-8e5b-dab2c5a0bab1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "23eded10-558d-4982-979d-2dbb8293fe3c" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], "Date": [ - "Thu, 09 Jul 2015 19:24:33 GMT" + "Thu, 30 Jul 2015 17:18:30 GMT" ], "ETag": [ - "0x8D288940133C046" + "0x8D29902E48EB1DA" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdtestId\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "94" ], "client-request-id": [ - "70450220-90a7-43f6-b84a-0c21835ab60d" + "23eded10-558d-4982-979d-2dbb8293fe3c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:31 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:24:38 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288940133C046\",\r\n \"lastModified\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"creationTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:25:26.9367366Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:24:26 GMT" + "Thu, 30 Jul 2015 17:18:31 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "10e24bcd-0c30-465f-b2eb-2c0c741a34da" + "8b27a69f-9471-4e48-8e5b-dab2c5a0bab1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "23eded10-558d-4982-979d-2dbb8293fe3c" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], "Date": [ - "Thu, 09 Jul 2015 19:24:37 GMT" + "Thu, 30 Jul 2015 17:18:30 GMT" ], "ETag": [ - "0x8D288940133C046" + "0x8D29902E48EB1DA" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdtestId\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "94" ], "client-request-id": [ - "77f8b348-77a5-45ed-821a-7d1b0ed53df1" + "23eded10-558d-4982-979d-2dbb8293fe3c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:31 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:24:43 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288940133C046\",\r\n \"lastModified\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"creationTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:25:26.9367366Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:24:26 GMT" + "Thu, 30 Jul 2015 17:18:31 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "ab02d0c0-7fe0-443d-9115-5844f128f194" + "8b27a69f-9471-4e48-8e5b-dab2c5a0bab1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "23eded10-558d-4982-979d-2dbb8293fe3c" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], "Date": [ - "Thu, 09 Jul 2015 19:24:43 GMT" + "Thu, 30 Jul 2015 17:18:30 GMT" ], "ETag": [ - "0x8D288940133C046" + "0x8D29902E48EB1DA" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "cf4ad976-3170-46d9-adf1-c16c2962843c" + "3adab090-5b83-41d2-9426-259328ab191d" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:32 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:24:48 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288940133C046\",\r\n \"lastModified\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"creationTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:25:26.9367366Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testId1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testId1\",\r\n \"eTag\": \"0x8D29902E44F766B\",\r\n \"lastModified\": \"2015-07-30T17:18:31.2058475Z\",\r\n \"creationTime\": \"2015-07-30T17:18:31.1898032Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:18:31.2058475Z\",\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-07-30T17:18:31.2058475Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n {\r\n \"id\": \"testId2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testId2\",\r\n \"eTag\": \"0x8D29902E46F62A5\",\r\n \"lastModified\": \"2015-07-30T17:18:31.4150565Z\",\r\n \"creationTime\": \"2015-07-30T17:18:31.3970571Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:18:31.4150565Z\",\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-07-30T17:18:31.4150565Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n {\r\n \"id\": \"thirdtestId\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/thirdtestId\",\r\n \"eTag\": \"0x8D29902E48EB1DA\",\r\n \"lastModified\": \"2015-07-30T17:18:31.6202458Z\",\r\n \"creationTime\": \"2015-07-30T17:18:31.6036658Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:18:31.6202458Z\",\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-07-30T17:18:31.6202458Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:24:26 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "6487c167-3139-4424-9c21-856e7a2a47e9" + "0b1c08be-106e-4bd3-8f04-c8f094876f97" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "3adab090-5b83-41d2-9426-259328ab191d" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:24:48 GMT" - ], - "ETag": [ - "0x8D288940133C046" + "Thu, 30 Jul 2015 17:18:32 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -703,571 +770,667 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", + "RequestUri": "/jobs/testId1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "a260b404-7300-466f-8cc9-e067dc7017e7" + "e9145b8f-1d3f-45c6-bd4a-c55914269b97" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:32 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:24:54 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288940133C046\",\r\n \"lastModified\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"creationTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:25:26.9367366Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:24:26 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "062db519-de25-41e6-8687-ed389c80a438" + "138c277d-5e42-4a02-86cc-fc73716d3b8a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "e9145b8f-1d3f-45c6-bd4a-c55914269b97" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:24:54 GMT" - ], - "ETag": [ - "0x8D288940133C046" + "Thu, 30 Jul 2015 17:18:31 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", + "RequestUri": "/jobs/testId1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "6ced48e6-3988-4fe2-9251-d1651f782119" + "e9145b8f-1d3f-45c6-bd4a-c55914269b97" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:32 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:24:59 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288940133C046\",\r\n \"lastModified\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"creationTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:25:26.9367366Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:24:26 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "492a5836-fa26-49f7-8a8e-c1a2508ed54d" + "138c277d-5e42-4a02-86cc-fc73716d3b8a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "e9145b8f-1d3f-45c6-bd4a-c55914269b97" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:24:59 GMT" - ], - "ETag": [ - "0x8D288940133C046" + "Thu, 30 Jul 2015 17:18:31 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", + "RequestUri": "/jobs/testId1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "0957eaf6-40a9-43fb-beef-062e71b10e4d" + "e9145b8f-1d3f-45c6-bd4a-c55914269b97" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:32 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:25:04 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288940133C046\",\r\n \"lastModified\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"creationTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:25:26.9367366Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:24:26 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "ddfecc53-50e5-47b6-bb73-4205981f630b" + "138c277d-5e42-4a02-86cc-fc73716d3b8a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "e9145b8f-1d3f-45c6-bd4a-c55914269b97" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:25:05 GMT" - ], - "ETag": [ - "0x8D288940133C046" + "Thu, 30 Jul 2015 17:18:31 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", + "RequestUri": "/jobs/testId1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "401fbf88-2b94-449e-93dc-51e153fb28bf" + "e9145b8f-1d3f-45c6-bd4a-c55914269b97" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:32 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:25:10 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288940133C046\",\r\n \"lastModified\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"creationTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:25:26.9367366Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:24:26 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "da44ac7e-ffba-47c9-9167-6db16c0dcc26" + "138c277d-5e42-4a02-86cc-fc73716d3b8a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "e9145b8f-1d3f-45c6-bd4a-c55914269b97" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:25:09 GMT" - ], - "ETag": [ - "0x8D288940133C046" + "Thu, 30 Jul 2015 17:18:31 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", + "RequestUri": "/jobs/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "67da34ec-0797-4b74-ad88-dff82f6abfd9" + "a63eb457-95eb-4bd0-adbc-838b085724d6" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:32 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:25:15 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288940133C046\",\r\n \"lastModified\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"creationTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:25:26.9367366Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:24:26 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "c5b884aa-9707-4736-8cbb-475729c7d3cf" + "2b3f95b3-facf-410b-b8e1-4fcfbbf951ff" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "a63eb457-95eb-4bd0-adbc-838b085724d6" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:25:15 GMT" - ], - "ETag": [ - "0x8D288940133C046" + "Thu, 30 Jul 2015 17:18:31 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", + "RequestUri": "/jobs/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "f641c7bf-7541-41c7-bba8-6dfc7143c538" + "a63eb457-95eb-4bd0-adbc-838b085724d6" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:32 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:25:20 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288940133C046\",\r\n \"lastModified\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"creationTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:25:26.9367366Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:24:26 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "fdbe55ef-1edd-4b05-a19f-d55bbba4d27a" + "2b3f95b3-facf-410b-b8e1-4fcfbbf951ff" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "a63eb457-95eb-4bd0-adbc-838b085724d6" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:25:20 GMT" - ], - "ETag": [ - "0x8D288940133C046" + "Thu, 30 Jul 2015 17:18:31 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", + "RequestUri": "/jobs/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "7dd82edb-071e-4b48-96f3-7d8ee742554a" + "a63eb457-95eb-4bd0-adbc-838b085724d6" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:32 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:25:26 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288940133C046\",\r\n \"lastModified\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"creationTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:25:26.9367366Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:24:26 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "733119f9-4032-4555-a421-6a23d5fb70f8" + "2b3f95b3-facf-410b-b8e1-4fcfbbf951ff" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "a63eb457-95eb-4bd0-adbc-838b085724d6" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:25:26 GMT" - ], - "ETag": [ - "0x8D288940133C046" + "Thu, 30 Jul 2015 17:18:31 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", + "RequestUri": "/jobs/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "f417002a-c1de-4e86-82c2-81e7a2e1e3e4" + "a63eb457-95eb-4bd0-adbc-838b085724d6" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:32 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:25:31 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288940133C046\",\r\n \"lastModified\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"creationTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:26:26.9367366Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000002\",\r\n \"name\": \"job-0000000002\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:24:26 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "ff1a19c8-ecf0-474f-a00a-6bc95132385d" + "2b3f95b3-facf-410b-b8e1-4fcfbbf951ff" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "a63eb457-95eb-4bd0-adbc-838b085724d6" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:25:32 GMT" - ], - "ETag": [ - "0x8D288940133C046" + "Thu, 30 Jul 2015 17:18:31 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", + "RequestUri": "/jobs/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "66677582-37b5-4022-b9b4-dc69ad0fab81" + "a63eb457-95eb-4bd0-adbc-838b085724d6" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:32 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:25:33 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288940133C046\",\r\n \"lastModified\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"creationTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:24:26.9367366Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:26:26.9367366Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000002\",\r\n \"name\": \"job-0000000002\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:24:26 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "25222882-5c38-47db-9289-73068f453d00" + "2b3f95b3-facf-410b-b8e1-4fcfbbf951ff" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "a63eb457-95eb-4bd0-adbc-838b085724d6" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:25:33 GMT" - ], - "ETag": [ - "0x8D288940133C046" + "Thu, 30 Jul 2015 17:18:31 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem/jobs?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0vam9icz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", + "RequestUri": "/jobs/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGhpcmR0ZXN0SWQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "2316f59d-8350-420f-92de-ac8edcbf35e4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:32 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4045d995-c811-4375-85ab-2b92de327ff2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "a96c58a3-4956-4cdb-a392-322b62ad1fa2" + "2316f59d-8350-420f-92de-ac8edcbf35e4" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:18:31 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGhpcmR0ZXN0SWQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2316f59d-8350-420f-92de-ac8edcbf35e4" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:25:32 GMT" + "Thu, 30 Jul 2015 17:18:32 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.batch.core.windows.net/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"name\": \"job-0000000002\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000002\",\r\n \"eTag\": \"0x8D2889424F98774\",\r\n \"lastModified\": \"2015-07-09T19:25:26.9531508Z\",\r\n \"creationTime\": \"2015-07-09T19:25:26.9371428Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:25:26.9531508Z\",\r\n \"poolName\": \"testPool\",\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T19:25:26.9531508Z\"\r\n }\r\n },\r\n {\r\n \"name\": \"job-0000000001\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"eTag\": \"0x8D2889401B9F8D6\",\r\n \"lastModified\": \"2015-07-09T19:24:27.816367Z\",\r\n \"creationTime\": \"2015-07-09T19:24:26.977735Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-09T19:24:28.4685017Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-09T19:24:26.9937263Z\",\r\n \"poolName\": \"testPool\",\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T19:24:26.9937263Z\",\r\n \"endTime\": \"2015-07-09T19:24:28.4685017Z\",\r\n \"terminateReason\": \"UserTerminate\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "ebafd00f-bbb4-4bf7-89b8-e8ba2461a80d" + "4045d995-c811-4375-85ab-2b92de327ff2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "2316f59d-8350-420f-92de-ac8edcbf35e4" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:25:33 GMT" + "Thu, 30 Jul 2015 17:18:31 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem/jobs?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0vam9icz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", + "RequestUri": "/jobs/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGhpcmR0ZXN0SWQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "2316f59d-8350-420f-92de-ac8edcbf35e4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:32 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4045d995-c811-4375-85ab-2b92de327ff2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "eff70d6f-b6b4-429a-8352-2ba58511e764" + "2316f59d-8350-420f-92de-ac8edcbf35e4" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:18:31 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGhpcmR0ZXN0SWQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2316f59d-8350-420f-92de-ac8edcbf35e4" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:25:33 GMT" + "Thu, 30 Jul 2015 17:18:32 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.batch.core.windows.net/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"name\": \"job-0000000002\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000002\",\r\n \"eTag\": \"0x8D2889424F98774\",\r\n \"lastModified\": \"2015-07-09T19:25:26.9531508Z\",\r\n \"creationTime\": \"2015-07-09T19:25:26.9371428Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:25:26.9531508Z\",\r\n \"poolName\": \"testPool\",\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T19:25:26.9531508Z\"\r\n }\r\n },\r\n {\r\n \"name\": \"job-0000000001\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"eTag\": \"0x8D2889401B9F8D6\",\r\n \"lastModified\": \"2015-07-09T19:24:27.816367Z\",\r\n \"creationTime\": \"2015-07-09T19:24:26.977735Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-09T19:24:28.4685017Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-09T19:24:26.9937263Z\",\r\n \"poolName\": \"testPool\",\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T19:24:26.9937263Z\",\r\n \"endTime\": \"2015-07-09T19:24:28.4685017Z\",\r\n \"terminateReason\": \"UserTerminate\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "dccb6fd6-35a8-40e2-ae65-8883c7d1d8e4" + "4045d995-c811-4375-85ab-2b92de327ff2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "2316f59d-8350-420f-92de-ac8edcbf35e4" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:25:33 GMT" + "Thu, 30 Jul 2015 17:18:31 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/jobs/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGhpcmR0ZXN0SWQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "2316f59d-8350-420f-92de-ac8edcbf35e4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:32 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4045d995-c811-4375-85ab-2b92de327ff2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "829c8c02-675f-4931-82b2-34e5a40530e7" + "2316f59d-8350-420f-92de-ac8edcbf35e4" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:18:31 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGhpcmR0ZXN0SWQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2316f59d-8350-420f-92de-ac8edcbf35e4" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:25:33 GMT" + "Thu, 30 Jul 2015 17:18:32 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -1276,16 +1439,19 @@ "chunked" ], "request-id": [ - "d34e67df-66e2-4022-8d4e-b60a3391276f" + "4045d995-c811-4375-85ab-2b92de327ff2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "2316f59d-8350-420f-92de-ac8edcbf35e4" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:25:33 GMT" + "Thu, 30 Jul 2015 17:18:31 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListJobsByFilter.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListJobsByFilter.json index a0393ed28993..2813f741a178 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListJobsByFilter.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListJobsByFilter.json @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14931" + "14973" ], "x-ms-request-id": [ - "fcd2c209-d9ec-4e50-af64-1b57bb1d74a6" + "9e4e0a53-b2e1-473f-aac8-00bc1a082d52" ], "x-ms-correlation-request-id": [ - "fcd2c209-d9ec-4e50-af64-1b57bb1d74a6" + "9e4e0a53-b2e1-473f-aac8-00bc1a082d52" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192703Z:fcd2c209-d9ec-4e50-af64-1b57bb1d74a6" + "WESTUS:20150730T170350Z:9e4e0a53-b2e1-473f-aac8-00bc1a082d52" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:27:02 GMT" + "Thu, 30 Jul 2015 17:03:49 GMT" ] }, "StatusCode": 200 @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14930" + "14972" ], "x-ms-request-id": [ - "dd68b225-48ba-40f2-9361-d31c3d5857ee" + "9611bee9-acc3-47f2-8803-295752cf38a8" ], "x-ms-correlation-request-id": [ - "dd68b225-48ba-40f2-9361-d31c3d5857ee" + "9611bee9-acc3-47f2-8803-295752cf38a8" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192810Z:dd68b225-48ba-40f2-9361-d31c3d5857ee" + "WESTUS:20150730T170352Z:9611bee9-acc3-47f2-8803-295752cf38a8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:28:10 GMT" + "Thu, 30 Jul 2015 17:03:52 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:27:04 GMT" + "Thu, 30 Jul 2015 17:03:51 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "63183d5a-5194-4e76-9648-51fc88d01b4b" + "7e99c79b-2020-44b6-8530-3483d3997c5c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14962" + "14934" ], "x-ms-request-id": [ - "3028282d-5e12-4426-bb05-5a3d9272ac52" + "ec39bc37-2e2b-4a6e-8b02-78f0c6d5c70e" ], "x-ms-correlation-request-id": [ - "3028282d-5e12-4426-bb05-5a3d9272ac52" + "ec39bc37-2e2b-4a6e-8b02-78f0c6d5c70e" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192704Z:3028282d-5e12-4426-bb05-5a3d9272ac52" + "WESTUS:20150730T170351Z:ec39bc37-2e2b-4a6e-8b02-78f0c6d5c70e" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:27:04 GMT" + "Thu, 30 Jul 2015 17:03:50 GMT" ], "ETag": [ - "0x8D288945F038ADE" + "0x8D29900D7AE3E19" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:28:11 GMT" + "Thu, 30 Jul 2015 17:03:52 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "b3a4884b-dfa5-4576-a7b6-3c0614ae286a" + "59ef6c3b-e866-44fa-a47f-f824818fc6bf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14961" + "14933" ], "x-ms-request-id": [ - "8b6f6596-369d-4496-93e8-d08cbbdea149" + "a1724779-7331-43a0-a498-55531d8ad113" ], "x-ms-correlation-request-id": [ - "8b6f6596-369d-4496-93e8-d08cbbdea149" + "a1724779-7331-43a0-a498-55531d8ad113" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192811Z:8b6f6596-369d-4496-93e8-d08cbbdea149" + "WESTUS:20150730T170353Z:a1724779-7331-43a0-a498-55531d8ad113" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:28:10 GMT" + "Thu, 30 Jul 2015 17:03:52 GMT" ], "ETag": [ - "0x8D2889486D0A6B0" + "0x8D29900D8BC77B7" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "c0178206-6225-4ac1-9e07-e80e985cf465" + "0c9a7cdb-6e55-4e3d-866d-42081f2852bf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1180" + "1179" ], "x-ms-request-id": [ - "ab04c51d-b226-4a0d-90a0-9a860ef0d14c" + "c9245ab5-2570-4023-a0fb-b73e3bdea09b" ], "x-ms-correlation-request-id": [ - "ab04c51d-b226-4a0d-90a0-9a860ef0d14c" + "c9245ab5-2570-4023-a0fb-b73e3bdea09b" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192704Z:ab04c51d-b226-4a0d-90a0-9a860ef0d14c" + "WESTUS:20150730T170351Z:c9245ab5-2570-4023-a0fb-b73e3bdea09b" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:27:04 GMT" + "Thu, 30 Jul 2015 17:03:50 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "163b284f-e15e-48fe-8ef2-92a6cc76074d" + "29501777-196d-4b97-9681-ff15552a22e9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1179" + "1178" ], "x-ms-request-id": [ - "14cfb262-0065-47e9-9db3-3aaadb4d2976" + "43ef44e1-dfa3-40dc-87fd-0ac11df97dc0" ], "x-ms-correlation-request-id": [ - "14cfb262-0065-47e9-9db3-3aaadb4d2976" + "43ef44e1-dfa3-40dc-87fd-0ac11df97dc0" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192811Z:14cfb262-0065-47e9-9db3-3aaadb4d2976" + "WESTUS:20150730T170353Z:43ef44e1-dfa3-40dc-87fd-0ac11df97dc0" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:28:10 GMT" + "Thu, 30 Jul 2015 17:03:52 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,58 +337,62 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", + "RequestBody": "{\r\n \"id\": \"testId1\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "219" - ], - "User-Agent": [ - "WA-Batch/1.0" + "90" ], "client-request-id": [ - "0cd716a9-bc92-4828-b31b-066117b51146" + "b681a3cc-6e18-4fd5-995c-ed4073a53c42" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:51 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:27:04 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 19:27:05 GMT" + "Thu, 30 Jul 2015 17:03:51 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "a6b8eb66-dba7-4059-a76d-1a365d6474ac" + "9a284e91-8ecd-491c-9e9a-c5fe7b868180" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "b681a3cc-6e18-4fd5-995c-ed4073a53c42" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testWorkItem" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Date": [ - "Thu, 09 Jul 2015 19:27:04 GMT" + "Thu, 30 Jul 2015 17:03:51 GMT" ], "ETag": [ - "0x8D288945FCFF753" + "0x8D29900D842834E" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/testWorkItem" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -397,508 +401,611 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testId2\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "90" ], "client-request-id": [ - "cf8f970a-958d-4bd0-9f4f-095009ca5905" + "154fbbc1-c759-4b12-a510-20fdaa5ccdfd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:51 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:27:05 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288945FCFF753\",\r\n \"lastModified\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"creationTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:28:05.6663379Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:27:05 GMT" + "Thu, 30 Jul 2015 17:03:52 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "28f9418c-3a27-4155-a832-a7e4de485ce0" + "7092a550-db32-4a23-bc21-0d75e93893eb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "154fbbc1-c759-4b12-a510-20fdaa5ccdfd" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], "Date": [ - "Thu, 09 Jul 2015 19:27:05 GMT" + "Thu, 30 Jul 2015 17:03:51 GMT" ], "ETag": [ - "0x8D288945FCFF753" + "0x8D29900D86B22FC" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testId2\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "90" ], "client-request-id": [ - "4eabc734-fe54-40be-b926-883ca456d005" + "154fbbc1-c759-4b12-a510-20fdaa5ccdfd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:51 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:27:06 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288945FCFF753\",\r\n \"lastModified\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"creationTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:28:05.6663379Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:27:05 GMT" + "Thu, 30 Jul 2015 17:03:52 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "ab470bac-d482-4386-81da-3b33e0f6031d" + "7092a550-db32-4a23-bc21-0d75e93893eb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "154fbbc1-c759-4b12-a510-20fdaa5ccdfd" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], "Date": [ - "Thu, 09 Jul 2015 19:27:06 GMT" + "Thu, 30 Jul 2015 17:03:51 GMT" ], "ETag": [ - "0x8D288945FCFF753" + "0x8D29900D86B22FC" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdtestId\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "94" ], "client-request-id": [ - "fc0b8509-d7cf-4954-ac90-3d8dda0402dc" + "7eb207b9-bb31-48e7-834b-a3015d42db8b" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:52 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:27:11 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288945FCFF753\",\r\n \"lastModified\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"creationTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:28:05.6663379Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:27:05 GMT" + "Thu, 30 Jul 2015 17:03:52 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "b487118b-217a-47e2-b559-86f866ce094e" + "a265344a-2385-4d4e-b857-6544bce0a96b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "7eb207b9-bb31-48e7-834b-a3015d42db8b" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], "Date": [ - "Thu, 09 Jul 2015 19:27:11 GMT" + "Thu, 30 Jul 2015 17:03:52 GMT" ], "ETag": [ - "0x8D288945FCFF753" + "0x8D29900D88B12E7" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdtestId\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "94" ], "client-request-id": [ - "ef9d8020-f931-44b9-8305-8d4a1e76d7dc" + "7eb207b9-bb31-48e7-834b-a3015d42db8b" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:52 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:27:16 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288945FCFF753\",\r\n \"lastModified\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"creationTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:28:05.6663379Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:27:05 GMT" + "Thu, 30 Jul 2015 17:03:52 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "790327ce-89fc-4f0a-88a4-b60e9f16b293" + "a265344a-2385-4d4e-b857-6544bce0a96b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "7eb207b9-bb31-48e7-834b-a3015d42db8b" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], "Date": [ - "Thu, 09 Jul 2015 19:27:16 GMT" + "Thu, 30 Jul 2015 17:03:52 GMT" ], "ETag": [ - "0x8D288945FCFF753" + "0x8D29900D88B12E7" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdtestId\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "94" ], "client-request-id": [ - "7fb86bd7-3748-4194-b978-e416ac607ffb" + "7eb207b9-bb31-48e7-834b-a3015d42db8b" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:52 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:27:22 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288945FCFF753\",\r\n \"lastModified\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"creationTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:28:05.6663379Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:27:05 GMT" + "Thu, 30 Jul 2015 17:03:52 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "927d62dd-4ebf-439b-9503-570230e1f76d" + "a265344a-2385-4d4e-b857-6544bce0a96b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "7eb207b9-bb31-48e7-834b-a3015d42db8b" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], "Date": [ - "Thu, 09 Jul 2015 19:27:20 GMT" + "Thu, 30 Jul 2015 17:03:52 GMT" ], "ETag": [ - "0x8D288945FCFF753" + "0x8D29900D88B12E7" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs/testId1?terminate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMT90ZXJtaW5hdGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "2" ], "client-request-id": [ - "b185e4c8-67c4-4139-9490-9babe38df6c5" + "2a047490-06c2-453f-9ec6-8fe9d7ae1dfd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:52 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:27:27 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288945FCFF753\",\r\n \"lastModified\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"creationTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:28:05.6663379Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:27:05 GMT" + "Thu, 30 Jul 2015 17:03:52 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "1c34d799-5867-4a11-b998-070e0d80b5f5" + "6d84a352-dc5f-43ca-b026-37340ede96bc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "2a047490-06c2-453f-9ec6-8fe9d7ae1dfd" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testId1" + ], "Date": [ - "Thu, 09 Jul 2015 19:27:27 GMT" + "Thu, 30 Jul 2015 17:03:52 GMT" ], "ETag": [ - "0x8D288945FCFF753" + "0x8D29900D8A42E95" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs/testId1?terminate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMT90ZXJtaW5hdGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "2" ], "client-request-id": [ - "16060753-30bf-4875-8575-2650e91eafbc" + "2a047490-06c2-453f-9ec6-8fe9d7ae1dfd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:52 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:27:32 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288945FCFF753\",\r\n \"lastModified\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"creationTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:28:05.6663379Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:27:05 GMT" + "Thu, 30 Jul 2015 17:03:52 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "301add79-b841-4683-ab67-039ff2c26772" + "6d84a352-dc5f-43ca-b026-37340ede96bc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "2a047490-06c2-453f-9ec6-8fe9d7ae1dfd" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testId1" + ], "Date": [ - "Thu, 09 Jul 2015 19:27:32 GMT" + "Thu, 30 Jul 2015 17:03:52 GMT" ], "ETag": [ - "0x8D288945FCFF753" + "0x8D29900D8A42E95" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs/testId1?terminate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMT90ZXJtaW5hdGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "2" ], "client-request-id": [ - "272de535-58c2-4f3b-9b9a-d2c639a26b6f" + "2a047490-06c2-453f-9ec6-8fe9d7ae1dfd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:52 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:27:38 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288945FCFF753\",\r\n \"lastModified\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"creationTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:28:05.6663379Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:27:05 GMT" + "Thu, 30 Jul 2015 17:03:52 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "06fcfe39-9b38-41ae-988a-cfbe43cb162f" + "6d84a352-dc5f-43ca-b026-37340ede96bc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "2a047490-06c2-453f-9ec6-8fe9d7ae1dfd" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testId1" + ], "Date": [ - "Thu, 09 Jul 2015 19:27:37 GMT" + "Thu, 30 Jul 2015 17:03:52 GMT" ], "ETag": [ - "0x8D288945FCFF753" + "0x8D29900D8A42E95" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs/testId1?terminate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMT90ZXJtaW5hdGUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "2" ], "client-request-id": [ - "631f0f3d-8e27-4cca-917c-1cdcbd74abb8" + "2a047490-06c2-453f-9ec6-8fe9d7ae1dfd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:52 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:27:43 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288945FCFF753\",\r\n \"lastModified\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"creationTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:28:05.6663379Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:27:05 GMT" + "Thu, 30 Jul 2015 17:03:52 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "1d00e957-4720-462c-8329-b43ec7b0d1db" + "6d84a352-dc5f-43ca-b026-37340ede96bc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "2a047490-06c2-453f-9ec6-8fe9d7ae1dfd" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testId1" + ], "Date": [ - "Thu, 09 Jul 2015 19:27:43 GMT" + "Thu, 30 Jul 2015 17:03:52 GMT" ], "ETag": [ - "0x8D288945FCFF753" + "0x8D29900D8A42E95" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/jobs?$filter=state%20eq'active'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/JGZpbHRlcj1zdGF0ZSUyMGVxJTI3YWN0aXZlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "f8862225-8806-4338-bfe3-84f4fa2094a4" + "98cf9dc2-74c1-4ebd-9220-75e0928bff8d" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:53 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:27:48 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288945FCFF753\",\r\n \"lastModified\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"creationTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:28:05.6663379Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testId2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testId2\",\r\n \"eTag\": \"0x8D29900D86B22FC\",\r\n \"lastModified\": \"2015-07-30T17:03:52.261094Z\",\r\n \"creationTime\": \"2015-07-30T17:03:52.2440865Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:03:52.261094Z\",\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-07-30T17:03:52.261094Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n {\r\n \"id\": \"thirdtestId\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/thirdtestId\",\r\n \"eTag\": \"0x8D29900D88B12E7\",\r\n \"lastModified\": \"2015-07-30T17:03:52.4703975Z\",\r\n \"creationTime\": \"2015-07-30T17:03:52.4522625Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:03:52.4703975Z\",\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-07-30T17:03:52.4703975Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:27:05 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "99626cf6-a069-4a25-b394-b57bec61d29b" + "a71d2ee9-6d66-43c3-98fc-312795ef57b0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "98cf9dc2-74c1-4ebd-9220-75e0928bff8d" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:27:48 GMT" - ], - "ETag": [ - "0x8D288945FCFF753" + "Thu, 30 Jul 2015 17:03:53 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -907,367 +1014,805 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", + "RequestUri": "/jobs/testId1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "9df484fe-f714-45f3-8d0b-a535d2e31c53" + "48d85eb5-452e-44ac-bb66-1a275b253527" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:53 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:27:54 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288945FCFF753\",\r\n \"lastModified\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"creationTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:28:05.6663379Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:27:05 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "17522028-0321-4bab-b9a0-fb3f95ecc25e" + "7c45dd4f-38b6-4137-a01a-9a706303bbe2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "48d85eb5-452e-44ac-bb66-1a275b253527" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:27:54 GMT" - ], - "ETag": [ - "0x8D288945FCFF753" + "Thu, 30 Jul 2015 17:03:53 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", + "RequestUri": "/jobs/testId1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "0e087a78-ad21-4a08-b93e-9b651fd5c3ff" - ], - "return-client-request-id": [ - "False" + "48d85eb5-452e-44ac-bb66-1a275b253527" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:27:59 GMT" + "Thu, 30 Jul 2015 17:03:53 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.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288945FCFF753\",\r\n \"lastModified\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"creationTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:28:05.6663379Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" + "Transfer-Encoding": [ + "chunked" ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:27:05 GMT" + "request-id": [ + "7c45dd4f-38b6-4137-a01a-9a706303bbe2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "48d85eb5-452e-44ac-bb66-1a275b253527" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:03:53 GMT" ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testId1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "48d85eb5-452e-44ac-bb66-1a275b253527" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:53 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": [ - "3ab2c6f9-3e1e-47cc-9feb-2a974122cfd7" + "7c45dd4f-38b6-4137-a01a-9a706303bbe2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "48d85eb5-452e-44ac-bb66-1a275b253527" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:27:59 GMT" - ], - "ETag": [ - "0x8D288945FCFF753" + "Thu, 30 Jul 2015 17:03:53 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", + "RequestUri": "/jobs/testId1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "48d85eb5-452e-44ac-bb66-1a275b253527" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:53 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "7c45dd4f-38b6-4137-a01a-9a706303bbe2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "a953f36f-0294-4d9b-a395-d26d230df2e7" + "48d85eb5-452e-44ac-bb66-1a275b253527" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:03:53 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testId1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "48d85eb5-452e-44ac-bb66-1a275b253527" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:28:04 GMT" + "Thu, 30 Jul 2015 17:03:53 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.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288945FCFF753\",\r\n \"lastModified\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"creationTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:28:05.6663379Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" + "Transfer-Encoding": [ + "chunked" ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:27:05 GMT" + "request-id": [ + "7c45dd4f-38b6-4137-a01a-9a706303bbe2" ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "48d85eb5-452e-44ac-bb66-1a275b253527" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:03:53 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8f1806db-cdb8-40e2-8855-7a65e85996de" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:53 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": [ - "5b0700e7-cf78-4b7c-a1ff-c94243fc15b5" + "6fffca4f-5960-4b06-bddd-9fcb6a91741f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "8f1806db-cdb8-40e2-8855-7a65e85996de" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:28:04 GMT" - ], - "ETag": [ - "0x8D288945FCFF753" + "Thu, 30 Jul 2015 17:03:53 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", + "RequestUri": "/jobs/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "8f1806db-cdb8-40e2-8855-7a65e85996de" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:53 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6fffca4f-5960-4b06-bddd-9fcb6a91741f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "1fba3510-2ccf-4d06-85f9-6edc22d7fb15" + "8f1806db-cdb8-40e2-8855-7a65e85996de" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:03:53 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8f1806db-cdb8-40e2-8855-7a65e85996de" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:28:10 GMT" + "Thu, 30 Jul 2015 17:03:53 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.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288945FCFF753\",\r\n \"lastModified\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"creationTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:29:05.6663379Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000002\",\r\n \"name\": \"job-0000000002\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" + "Transfer-Encoding": [ + "chunked" ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:27:05 GMT" + "request-id": [ + "6fffca4f-5960-4b06-bddd-9fcb6a91741f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8f1806db-cdb8-40e2-8855-7a65e85996de" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:03:53 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8f1806db-cdb8-40e2-8855-7a65e85996de" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:53 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": [ - "d4de29cb-16a9-4163-8855-15d2885f05bc" + "6fffca4f-5960-4b06-bddd-9fcb6a91741f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "8f1806db-cdb8-40e2-8855-7a65e85996de" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:28:09 GMT" - ], - "ETag": [ - "0x8D288945FCFF753" + "Thu, 30 Jul 2015 17:03:53 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", + "RequestUri": "/jobs/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "8f1806db-cdb8-40e2-8855-7a65e85996de" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:53 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6fffca4f-5960-4b06-bddd-9fcb6a91741f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "c984e004-67cf-4097-b526-39b1747f5f56" + "8f1806db-cdb8-40e2-8855-7a65e85996de" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:03:53 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8f1806db-cdb8-40e2-8855-7a65e85996de" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:28:11 GMT" + "Thu, 30 Jul 2015 17:03:53 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.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D288945FCFF753\",\r\n \"lastModified\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"creationTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:27:05.6663379Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:29:05.6663379Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000002\",\r\n \"name\": \"job-0000000002\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" + "Transfer-Encoding": [ + "chunked" ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:27:05 GMT" + "request-id": [ + "6fffca4f-5960-4b06-bddd-9fcb6a91741f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8f1806db-cdb8-40e2-8855-7a65e85996de" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:03:53 GMT" ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGhpcmR0ZXN0SWQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "27d1f524-c1ea-495f-9e44-b81359dd4728" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:53 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": [ - "c657cbd7-cd2d-4a31-a2a1-d89e81cc3c5b" + "9dbe08c2-2faa-40c2-899f-55bc306ae973" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "27d1f524-c1ea-495f-9e44-b81359dd4728" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:28:11 GMT" - ], - "ETag": [ - "0x8D288945FCFF753" + "Thu, 30 Jul 2015 17:03:53 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem/jobs?api-version=2014-10-01.1.0&$filter=state%20eq%20'active'", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0vam9icz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMCYkZmlsdGVyPXN0YXRlJTIwZXElMjAlMjdhY3RpdmUlMjc=", - "RequestMethod": "GET", + "RequestUri": "/jobs/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGhpcmR0ZXN0SWQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "27d1f524-c1ea-495f-9e44-b81359dd4728" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:53 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9dbe08c2-2faa-40c2-899f-55bc306ae973" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "b72514b9-f050-49cd-bfae-1ab2486ecbfd" + "27d1f524-c1ea-495f-9e44-b81359dd4728" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:03:53 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGhpcmR0ZXN0SWQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "27d1f524-c1ea-495f-9e44-b81359dd4728" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:28:11 GMT" + "Thu, 30 Jul 2015 17:03:53 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.batch.core.windows.net/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"name\": \"job-0000000002\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000002\",\r\n \"eTag\": \"0x8D288948395892D\",\r\n \"lastModified\": \"2015-07-09T19:28:05.6813869Z\",\r\n \"creationTime\": \"2015-07-09T19:28:05.6663871Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:28:05.6813869Z\",\r\n \"poolName\": \"testPool\",\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T19:28:05.6813869Z\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "fc32a6ca-1392-4a89-8c48-5fd4da0a4e3d" + "9dbe08c2-2faa-40c2-899f-55bc306ae973" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "27d1f524-c1ea-495f-9e44-b81359dd4728" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:28:10 GMT" + "Thu, 30 Jul 2015 17:03:53 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem/jobs?api-version=2014-10-01.1.0&$filter=state%20eq%20'active'", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0vam9icz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMCYkZmlsdGVyPXN0YXRlJTIwZXElMjAlMjdhY3RpdmUlMjc=", - "RequestMethod": "GET", + "RequestUri": "/jobs/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGhpcmR0ZXN0SWQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "27d1f524-c1ea-495f-9e44-b81359dd4728" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:53 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9dbe08c2-2faa-40c2-899f-55bc306ae973" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "0cac3c1a-646a-4ee1-91a2-bb1bc0cf5de3" + "27d1f524-c1ea-495f-9e44-b81359dd4728" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:03:53 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGhpcmR0ZXN0SWQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "27d1f524-c1ea-495f-9e44-b81359dd4728" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:28:11 GMT" + "Thu, 30 Jul 2015 17:03:53 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.batch.core.windows.net/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"name\": \"job-0000000002\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000002\",\r\n \"eTag\": \"0x8D288948395892D\",\r\n \"lastModified\": \"2015-07-09T19:28:05.6813869Z\",\r\n \"creationTime\": \"2015-07-09T19:28:05.6663871Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:28:05.6813869Z\",\r\n \"poolName\": \"testPool\",\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T19:28:05.6813869Z\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "738abcc4-740b-4763-a7b1-bc3fb0dfe4b8" + "9dbe08c2-2faa-40c2-899f-55bc306ae973" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "27d1f524-c1ea-495f-9e44-b81359dd4728" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:28:11 GMT" + "Thu, 30 Jul 2015 17:03:53 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/jobs/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGhpcmR0ZXN0SWQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "27d1f524-c1ea-495f-9e44-b81359dd4728" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:53 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9dbe08c2-2faa-40c2-899f-55bc306ae973" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "e98c7678-46f2-43dd-ac5f-65c2a3269fee" + "27d1f524-c1ea-495f-9e44-b81359dd4728" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:03:53 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGhpcmR0ZXN0SWQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "27d1f524-c1ea-495f-9e44-b81359dd4728" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:28:12 GMT" + "Thu, 30 Jul 2015 17:03:53 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -1276,16 +1821,19 @@ "chunked" ], "request-id": [ - "f5f55185-7ffd-4fa4-9fa9-3b0c1fb89a71" + "9dbe08c2-2faa-40c2-899f-55bc306ae973" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "27d1f524-c1ea-495f-9e44-b81359dd4728" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:28:12 GMT" + "Thu, 30 Jul 2015 17:03:53 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListJobsUnderSchedule.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListJobsUnderSchedule.json new file mode 100644 index 000000000000..1d44d4d36a6f --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListJobsUnderSchedule.json @@ -0,0 +1,13139 @@ +{ + "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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14973" + ], + "x-ms-request-id": [ + "c1113b8b-0c7c-449d-8b75-88a7112597d5" + ], + "x-ms-correlation-request-id": [ + "c1113b8b-0c7c-449d-8b75-88a7112597d5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170145Z:c1113b8b-0c7c-449d-8b75-88a7112597d5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01: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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14972" + ], + "x-ms-request-id": [ + "0babb474-ef27-4247-8213-0749bfa5c4d5" + ], + "x-ms-correlation-request-id": [ + "0babb474-ef27-4247-8213-0749bfa5c4d5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170249Z:0babb474-ef27-4247-8213-0749bfa5c4d5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:48 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "2cb8c470-d144-4883-a747-cdff568a9292" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-request-id": [ + "b648deef-d7f8-4f79-8452-f2ceecc91591" + ], + "x-ms-correlation-request-id": [ + "b648deef-d7f8-4f79-8452-f2ceecc91591" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170146Z:b648deef-d7f8-4f79-8452-f2ceecc91591" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:45 GMT" + ], + "ETag": [ + "0x8D299008D8039F1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:02:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "b84828f7-dec7-4d93-93fd-42574a4da82a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-request-id": [ + "aa412460-0dd2-47ff-b671-f40ede81145a" + ], + "x-ms-correlation-request-id": [ + "aa412460-0dd2-47ff-b671-f40ede81145a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170249Z:aa412460-0dd2-47ff-b671-f40ede81145a" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:49 GMT" + ], + "ETag": [ + "0x8D29900B2EAFF68" + ], + "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": [ + "c27d9ef3-3ea9-44cb-8c8d-3dc95bfbf3c2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-request-id": [ + "528a1ddd-577e-4dd3-ad1a-917acf86182d" + ], + "x-ms-correlation-request-id": [ + "528a1ddd-577e-4dd3-ad1a-917acf86182d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170146Z:528a1ddd-577e-4dd3-ad1a-917acf86182d" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01: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": [ + "c777d3e6-547a-4af2-8a69-7cd1c5bed991" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-request-id": [ + "b9534ea4-e916-4a01-bfc4-4f19de77daef" + ], + "x-ms-correlation-request-id": [ + "b9534ea4-e916-4a01-bfc4-4f19de77daef" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T170249Z:b9534ea4-e916-4a01-bfc4-4f19de77daef" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:49 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\": \"runOnceId\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "92" + ], + "client-request-id": [ + "1204c03b-4866-4647-961b-6ec5d85a48f2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01: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": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b79bc3ef-0c47-4f6c-a4ba-f480515012e7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1204c03b-4866-4647-961b-6ec5d85a48f2" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:46 GMT" + ], + "ETag": [ + "0x8D299008DD651C0" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testJobSchedule\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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": [ + "211" + ], + "client-request-id": [ + "6fb111a0-337f-4b60-98d6-843972841146" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01: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": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "110a23fa-48fd-4f53-a796-4c48f565eebb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6fb111a0-337f-4b60-98d6-843972841146" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:46 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobschedules?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testJobSchedule\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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": [ + "211" + ], + "client-request-id": [ + "6fb111a0-337f-4b60-98d6-843972841146" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01: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": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "110a23fa-48fd-4f53-a796-4c48f565eebb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6fb111a0-337f-4b60-98d6-843972841146" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:46 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "59cb1bf9-5111-441e-a075-53ade6128e0e" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01: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#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "53bcfa20-0aed-4b84-8e78-1e6cc8065e6e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "59cb1bf9-5111-441e-a075-53ade6128e0e" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "59cb1bf9-5111-441e-a075-53ade6128e0e" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01: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#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "53bcfa20-0aed-4b84-8e78-1e6cc8065e6e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "59cb1bf9-5111-441e-a075-53ade6128e0e" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "59cb1bf9-5111-441e-a075-53ade6128e0e" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01: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#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "53bcfa20-0aed-4b84-8e78-1e6cc8065e6e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "59cb1bf9-5111-441e-a075-53ade6128e0e" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c33fb4e3-f043-4cfb-8316-6a695768e82a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01: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#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "77c3c47a-3196-4acc-bd97-84bc955b4cf1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c33fb4e3-f043-4cfb-8316-6a695768e82a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c33fb4e3-f043-4cfb-8316-6a695768e82a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01: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#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "77c3c47a-3196-4acc-bd97-84bc955b4cf1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c33fb4e3-f043-4cfb-8316-6a695768e82a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c33fb4e3-f043-4cfb-8316-6a695768e82a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01: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#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "77c3c47a-3196-4acc-bd97-84bc955b4cf1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c33fb4e3-f043-4cfb-8316-6a695768e82a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c33fb4e3-f043-4cfb-8316-6a695768e82a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01: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#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "77c3c47a-3196-4acc-bd97-84bc955b4cf1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c33fb4e3-f043-4cfb-8316-6a695768e82a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "c33fb4e3-f043-4cfb-8316-6a695768e82a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01: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#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "77c3c47a-3196-4acc-bd97-84bc955b4cf1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "c33fb4e3-f043-4cfb-8316-6a695768e82a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3a919b8b-2008-40c7-848c-6104bc144e89" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:52 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c739cd9f-deaa-4de8-8a51-43e93d847c51" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3a919b8b-2008-40c7-848c-6104bc144e89" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:52 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3a919b8b-2008-40c7-848c-6104bc144e89" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:52 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c739cd9f-deaa-4de8-8a51-43e93d847c51" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3a919b8b-2008-40c7-848c-6104bc144e89" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:52 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3a919b8b-2008-40c7-848c-6104bc144e89" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:52 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c739cd9f-deaa-4de8-8a51-43e93d847c51" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3a919b8b-2008-40c7-848c-6104bc144e89" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:52 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3a919b8b-2008-40c7-848c-6104bc144e89" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:52 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c739cd9f-deaa-4de8-8a51-43e93d847c51" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3a919b8b-2008-40c7-848c-6104bc144e89" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:52 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3a919b8b-2008-40c7-848c-6104bc144e89" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:52 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c739cd9f-deaa-4de8-8a51-43e93d847c51" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3a919b8b-2008-40c7-848c-6104bc144e89" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:52 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3a919b8b-2008-40c7-848c-6104bc144e89" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:52 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c739cd9f-deaa-4de8-8a51-43e93d847c51" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3a919b8b-2008-40c7-848c-6104bc144e89" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:52 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2012b3da-6f32-47dc-9b39-b049ee364c71" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:57 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9f1ae9f7-f9ce-4a11-a4aa-78a7cb4dca97" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2012b3da-6f32-47dc-9b39-b049ee364c71" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:57 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2012b3da-6f32-47dc-9b39-b049ee364c71" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:57 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9f1ae9f7-f9ce-4a11-a4aa-78a7cb4dca97" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2012b3da-6f32-47dc-9b39-b049ee364c71" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:57 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2012b3da-6f32-47dc-9b39-b049ee364c71" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:57 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9f1ae9f7-f9ce-4a11-a4aa-78a7cb4dca97" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2012b3da-6f32-47dc-9b39-b049ee364c71" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:57 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2012b3da-6f32-47dc-9b39-b049ee364c71" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:57 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9f1ae9f7-f9ce-4a11-a4aa-78a7cb4dca97" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2012b3da-6f32-47dc-9b39-b049ee364c71" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:57 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2012b3da-6f32-47dc-9b39-b049ee364c71" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:57 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9f1ae9f7-f9ce-4a11-a4aa-78a7cb4dca97" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2012b3da-6f32-47dc-9b39-b049ee364c71" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:57 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2012b3da-6f32-47dc-9b39-b049ee364c71" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:57 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9f1ae9f7-f9ce-4a11-a4aa-78a7cb4dca97" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2012b3da-6f32-47dc-9b39-b049ee364c71" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:57 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2012b3da-6f32-47dc-9b39-b049ee364c71" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01:57 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9f1ae9f7-f9ce-4a11-a4aa-78a7cb4dca97" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2012b3da-6f32-47dc-9b39-b049ee364c71" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:57 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "93013c93-c88a-43da-88dc-73b530e40e90" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:02 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5176ace8-3d8f-47b5-ad82-411a7ccbee23" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "93013c93-c88a-43da-88dc-73b530e40e90" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:02 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "93013c93-c88a-43da-88dc-73b530e40e90" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:02 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5176ace8-3d8f-47b5-ad82-411a7ccbee23" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "93013c93-c88a-43da-88dc-73b530e40e90" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:02 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "93013c93-c88a-43da-88dc-73b530e40e90" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:02 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5176ace8-3d8f-47b5-ad82-411a7ccbee23" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "93013c93-c88a-43da-88dc-73b530e40e90" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:02 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "93013c93-c88a-43da-88dc-73b530e40e90" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:02 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5176ace8-3d8f-47b5-ad82-411a7ccbee23" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "93013c93-c88a-43da-88dc-73b530e40e90" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:02 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "93013c93-c88a-43da-88dc-73b530e40e90" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:02 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5176ace8-3d8f-47b5-ad82-411a7ccbee23" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "93013c93-c88a-43da-88dc-73b530e40e90" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:02 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "93013c93-c88a-43da-88dc-73b530e40e90" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:02 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5176ace8-3d8f-47b5-ad82-411a7ccbee23" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "93013c93-c88a-43da-88dc-73b530e40e90" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:02 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "93013c93-c88a-43da-88dc-73b530e40e90" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:02 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5176ace8-3d8f-47b5-ad82-411a7ccbee23" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "93013c93-c88a-43da-88dc-73b530e40e90" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:02 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "93013c93-c88a-43da-88dc-73b530e40e90" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:02 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5176ace8-3d8f-47b5-ad82-411a7ccbee23" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "93013c93-c88a-43da-88dc-73b530e40e90" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:02 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "0c98953e-987c-475b-98dc-88523d509ff9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:07 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ea9c0fee-2e50-4b01-8af9-8abb77fad440" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "0c98953e-987c-475b-98dc-88523d509ff9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:07 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "0c98953e-987c-475b-98dc-88523d509ff9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:07 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ea9c0fee-2e50-4b01-8af9-8abb77fad440" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "0c98953e-987c-475b-98dc-88523d509ff9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:07 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "0c98953e-987c-475b-98dc-88523d509ff9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:07 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ea9c0fee-2e50-4b01-8af9-8abb77fad440" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "0c98953e-987c-475b-98dc-88523d509ff9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:07 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "0c98953e-987c-475b-98dc-88523d509ff9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:07 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ea9c0fee-2e50-4b01-8af9-8abb77fad440" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "0c98953e-987c-475b-98dc-88523d509ff9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:07 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "0c98953e-987c-475b-98dc-88523d509ff9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:07 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ea9c0fee-2e50-4b01-8af9-8abb77fad440" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "0c98953e-987c-475b-98dc-88523d509ff9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:07 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "0c98953e-987c-475b-98dc-88523d509ff9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:07 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ea9c0fee-2e50-4b01-8af9-8abb77fad440" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "0c98953e-987c-475b-98dc-88523d509ff9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:07 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "0c98953e-987c-475b-98dc-88523d509ff9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:07 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ea9c0fee-2e50-4b01-8af9-8abb77fad440" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "0c98953e-987c-475b-98dc-88523d509ff9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:07 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "0c98953e-987c-475b-98dc-88523d509ff9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:07 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ea9c0fee-2e50-4b01-8af9-8abb77fad440" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "0c98953e-987c-475b-98dc-88523d509ff9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:07 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "0c98953e-987c-475b-98dc-88523d509ff9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:07 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ea9c0fee-2e50-4b01-8af9-8abb77fad440" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "0c98953e-987c-475b-98dc-88523d509ff9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:07 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "feaff08b-66c4-4e0e-b9b2-f2bc449812f2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:12 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "70c8d190-2899-43aa-a73c-f10abe5b3507" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "feaff08b-66c4-4e0e-b9b2-f2bc449812f2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:13 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "feaff08b-66c4-4e0e-b9b2-f2bc449812f2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:12 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "70c8d190-2899-43aa-a73c-f10abe5b3507" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "feaff08b-66c4-4e0e-b9b2-f2bc449812f2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:13 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "feaff08b-66c4-4e0e-b9b2-f2bc449812f2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:12 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "70c8d190-2899-43aa-a73c-f10abe5b3507" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "feaff08b-66c4-4e0e-b9b2-f2bc449812f2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:13 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "feaff08b-66c4-4e0e-b9b2-f2bc449812f2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:12 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "70c8d190-2899-43aa-a73c-f10abe5b3507" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "feaff08b-66c4-4e0e-b9b2-f2bc449812f2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:13 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "feaff08b-66c4-4e0e-b9b2-f2bc449812f2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:12 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "70c8d190-2899-43aa-a73c-f10abe5b3507" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "feaff08b-66c4-4e0e-b9b2-f2bc449812f2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:13 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "feaff08b-66c4-4e0e-b9b2-f2bc449812f2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:12 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "70c8d190-2899-43aa-a73c-f10abe5b3507" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "feaff08b-66c4-4e0e-b9b2-f2bc449812f2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:13 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "feaff08b-66c4-4e0e-b9b2-f2bc449812f2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:12 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "70c8d190-2899-43aa-a73c-f10abe5b3507" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "feaff08b-66c4-4e0e-b9b2-f2bc449812f2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:13 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "feaff08b-66c4-4e0e-b9b2-f2bc449812f2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:12 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "70c8d190-2899-43aa-a73c-f10abe5b3507" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "feaff08b-66c4-4e0e-b9b2-f2bc449812f2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:13 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "feaff08b-66c4-4e0e-b9b2-f2bc449812f2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:12 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "70c8d190-2899-43aa-a73c-f10abe5b3507" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "feaff08b-66c4-4e0e-b9b2-f2bc449812f2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:13 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "feaff08b-66c4-4e0e-b9b2-f2bc449812f2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:12 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "70c8d190-2899-43aa-a73c-f10abe5b3507" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "feaff08b-66c4-4e0e-b9b2-f2bc449812f2" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:13 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4dc3e025-3219-4ff2-b5c7-b95b43839bd8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d7c6a3d2-2780-46c4-a026-b04e773d2438" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4dc3e025-3219-4ff2-b5c7-b95b43839bd8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:17 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4dc3e025-3219-4ff2-b5c7-b95b43839bd8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d7c6a3d2-2780-46c4-a026-b04e773d2438" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4dc3e025-3219-4ff2-b5c7-b95b43839bd8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:17 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4dc3e025-3219-4ff2-b5c7-b95b43839bd8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d7c6a3d2-2780-46c4-a026-b04e773d2438" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4dc3e025-3219-4ff2-b5c7-b95b43839bd8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:17 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4dc3e025-3219-4ff2-b5c7-b95b43839bd8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d7c6a3d2-2780-46c4-a026-b04e773d2438" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4dc3e025-3219-4ff2-b5c7-b95b43839bd8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:17 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4dc3e025-3219-4ff2-b5c7-b95b43839bd8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d7c6a3d2-2780-46c4-a026-b04e773d2438" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4dc3e025-3219-4ff2-b5c7-b95b43839bd8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:17 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4dc3e025-3219-4ff2-b5c7-b95b43839bd8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d7c6a3d2-2780-46c4-a026-b04e773d2438" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4dc3e025-3219-4ff2-b5c7-b95b43839bd8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:17 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4dc3e025-3219-4ff2-b5c7-b95b43839bd8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d7c6a3d2-2780-46c4-a026-b04e773d2438" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4dc3e025-3219-4ff2-b5c7-b95b43839bd8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:17 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4dc3e025-3219-4ff2-b5c7-b95b43839bd8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d7c6a3d2-2780-46c4-a026-b04e773d2438" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4dc3e025-3219-4ff2-b5c7-b95b43839bd8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:17 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4dc3e025-3219-4ff2-b5c7-b95b43839bd8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d7c6a3d2-2780-46c4-a026-b04e773d2438" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4dc3e025-3219-4ff2-b5c7-b95b43839bd8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:17 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4dc3e025-3219-4ff2-b5c7-b95b43839bd8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d7c6a3d2-2780-46c4-a026-b04e773d2438" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4dc3e025-3219-4ff2-b5c7-b95b43839bd8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:17 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4dc3e025-3219-4ff2-b5c7-b95b43839bd8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d7c6a3d2-2780-46c4-a026-b04e773d2438" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4dc3e025-3219-4ff2-b5c7-b95b43839bd8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:17 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "58f7da0a-d1cb-4fa2-abff-8d3afd24e820" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:23 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ab76ee7e-cda4-4ece-a01d-90a303d5c287" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "58f7da0a-d1cb-4fa2-abff-8d3afd24e820" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:22 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "58f7da0a-d1cb-4fa2-abff-8d3afd24e820" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:23 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ab76ee7e-cda4-4ece-a01d-90a303d5c287" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "58f7da0a-d1cb-4fa2-abff-8d3afd24e820" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:22 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "58f7da0a-d1cb-4fa2-abff-8d3afd24e820" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:23 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ab76ee7e-cda4-4ece-a01d-90a303d5c287" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "58f7da0a-d1cb-4fa2-abff-8d3afd24e820" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:22 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "58f7da0a-d1cb-4fa2-abff-8d3afd24e820" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:23 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ab76ee7e-cda4-4ece-a01d-90a303d5c287" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "58f7da0a-d1cb-4fa2-abff-8d3afd24e820" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:22 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "58f7da0a-d1cb-4fa2-abff-8d3afd24e820" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:23 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ab76ee7e-cda4-4ece-a01d-90a303d5c287" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "58f7da0a-d1cb-4fa2-abff-8d3afd24e820" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:22 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "58f7da0a-d1cb-4fa2-abff-8d3afd24e820" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:23 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ab76ee7e-cda4-4ece-a01d-90a303d5c287" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "58f7da0a-d1cb-4fa2-abff-8d3afd24e820" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:22 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "58f7da0a-d1cb-4fa2-abff-8d3afd24e820" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:23 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ab76ee7e-cda4-4ece-a01d-90a303d5c287" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "58f7da0a-d1cb-4fa2-abff-8d3afd24e820" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:22 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "58f7da0a-d1cb-4fa2-abff-8d3afd24e820" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:23 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ab76ee7e-cda4-4ece-a01d-90a303d5c287" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "58f7da0a-d1cb-4fa2-abff-8d3afd24e820" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:22 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "58f7da0a-d1cb-4fa2-abff-8d3afd24e820" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:23 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ab76ee7e-cda4-4ece-a01d-90a303d5c287" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "58f7da0a-d1cb-4fa2-abff-8d3afd24e820" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:22 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "58f7da0a-d1cb-4fa2-abff-8d3afd24e820" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:23 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ab76ee7e-cda4-4ece-a01d-90a303d5c287" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "58f7da0a-d1cb-4fa2-abff-8d3afd24e820" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:22 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "58f7da0a-d1cb-4fa2-abff-8d3afd24e820" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:23 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ab76ee7e-cda4-4ece-a01d-90a303d5c287" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "58f7da0a-d1cb-4fa2-abff-8d3afd24e820" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:22 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "58f7da0a-d1cb-4fa2-abff-8d3afd24e820" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:23 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ab76ee7e-cda4-4ece-a01d-90a303d5c287" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "58f7da0a-d1cb-4fa2-abff-8d3afd24e820" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:22 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4079db00-54c1-4938-9852-c791e7be2686" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:28 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "621b3ec8-f5fe-48ac-8bab-0cc858e43d45" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4079db00-54c1-4938-9852-c791e7be2686" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:27 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4079db00-54c1-4938-9852-c791e7be2686" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:28 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "621b3ec8-f5fe-48ac-8bab-0cc858e43d45" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4079db00-54c1-4938-9852-c791e7be2686" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:27 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4079db00-54c1-4938-9852-c791e7be2686" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:28 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "621b3ec8-f5fe-48ac-8bab-0cc858e43d45" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4079db00-54c1-4938-9852-c791e7be2686" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:27 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4079db00-54c1-4938-9852-c791e7be2686" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:28 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "621b3ec8-f5fe-48ac-8bab-0cc858e43d45" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4079db00-54c1-4938-9852-c791e7be2686" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:27 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4079db00-54c1-4938-9852-c791e7be2686" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:28 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "621b3ec8-f5fe-48ac-8bab-0cc858e43d45" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4079db00-54c1-4938-9852-c791e7be2686" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:27 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4079db00-54c1-4938-9852-c791e7be2686" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:28 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "621b3ec8-f5fe-48ac-8bab-0cc858e43d45" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4079db00-54c1-4938-9852-c791e7be2686" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:27 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4079db00-54c1-4938-9852-c791e7be2686" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:28 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "621b3ec8-f5fe-48ac-8bab-0cc858e43d45" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4079db00-54c1-4938-9852-c791e7be2686" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:27 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4079db00-54c1-4938-9852-c791e7be2686" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:28 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "621b3ec8-f5fe-48ac-8bab-0cc858e43d45" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4079db00-54c1-4938-9852-c791e7be2686" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:27 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4079db00-54c1-4938-9852-c791e7be2686" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:28 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "621b3ec8-f5fe-48ac-8bab-0cc858e43d45" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4079db00-54c1-4938-9852-c791e7be2686" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:27 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4079db00-54c1-4938-9852-c791e7be2686" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:28 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "621b3ec8-f5fe-48ac-8bab-0cc858e43d45" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4079db00-54c1-4938-9852-c791e7be2686" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:27 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4079db00-54c1-4938-9852-c791e7be2686" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:28 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "621b3ec8-f5fe-48ac-8bab-0cc858e43d45" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4079db00-54c1-4938-9852-c791e7be2686" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:27 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4079db00-54c1-4938-9852-c791e7be2686" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:28 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "621b3ec8-f5fe-48ac-8bab-0cc858e43d45" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4079db00-54c1-4938-9852-c791e7be2686" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:27 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4079db00-54c1-4938-9852-c791e7be2686" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:28 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "621b3ec8-f5fe-48ac-8bab-0cc858e43d45" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4079db00-54c1-4938-9852-c791e7be2686" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:27 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "dcfba2aa-0d81-421c-90e5-835714b6e977" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:32 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "dcfba2aa-0d81-421c-90e5-835714b6e977" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:32 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "dcfba2aa-0d81-421c-90e5-835714b6e977" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:32 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "dcfba2aa-0d81-421c-90e5-835714b6e977" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:32 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "dcfba2aa-0d81-421c-90e5-835714b6e977" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:32 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "dcfba2aa-0d81-421c-90e5-835714b6e977" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:32 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "dcfba2aa-0d81-421c-90e5-835714b6e977" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:32 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "dcfba2aa-0d81-421c-90e5-835714b6e977" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:32 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "dcfba2aa-0d81-421c-90e5-835714b6e977" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:32 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "dcfba2aa-0d81-421c-90e5-835714b6e977" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:32 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "dcfba2aa-0d81-421c-90e5-835714b6e977" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:32 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "dcfba2aa-0d81-421c-90e5-835714b6e977" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:32 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "dcfba2aa-0d81-421c-90e5-835714b6e977" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:32 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "dcfba2aa-0d81-421c-90e5-835714b6e977" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ac6c95fd-d631-4a3f-a599-1c38b3651a0c" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:32 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:38 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c2a8c4af-99f6-45c0-a8f9-7e289832a06e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:37 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:38 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c2a8c4af-99f6-45c0-a8f9-7e289832a06e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:37 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:38 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c2a8c4af-99f6-45c0-a8f9-7e289832a06e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:37 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:38 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c2a8c4af-99f6-45c0-a8f9-7e289832a06e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:37 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:38 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c2a8c4af-99f6-45c0-a8f9-7e289832a06e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:37 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:38 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c2a8c4af-99f6-45c0-a8f9-7e289832a06e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:37 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:38 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c2a8c4af-99f6-45c0-a8f9-7e289832a06e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:37 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:38 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c2a8c4af-99f6-45c0-a8f9-7e289832a06e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:37 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:38 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c2a8c4af-99f6-45c0-a8f9-7e289832a06e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:37 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:38 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c2a8c4af-99f6-45c0-a8f9-7e289832a06e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:37 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:38 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c2a8c4af-99f6-45c0-a8f9-7e289832a06e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:37 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:38 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c2a8c4af-99f6-45c0-a8f9-7e289832a06e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:37 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:38 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c2a8c4af-99f6-45c0-a8f9-7e289832a06e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:37 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:38 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c2a8c4af-99f6-45c0-a8f9-7e289832a06e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:37 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:38 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c2a8c4af-99f6-45c0-a8f9-7e289832a06e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6417789d-d4ee-4d47-93ea-575c1a65f2e7" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:37 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:43 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f1f05c23-a43a-4f76-9c2d-2d16676c5861" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:43 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:43 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f1f05c23-a43a-4f76-9c2d-2d16676c5861" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:43 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:43 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f1f05c23-a43a-4f76-9c2d-2d16676c5861" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:43 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:43 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f1f05c23-a43a-4f76-9c2d-2d16676c5861" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:43 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:43 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f1f05c23-a43a-4f76-9c2d-2d16676c5861" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:43 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:43 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f1f05c23-a43a-4f76-9c2d-2d16676c5861" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:43 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:43 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f1f05c23-a43a-4f76-9c2d-2d16676c5861" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:43 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:43 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f1f05c23-a43a-4f76-9c2d-2d16676c5861" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:43 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:43 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f1f05c23-a43a-4f76-9c2d-2d16676c5861" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:43 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:43 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f1f05c23-a43a-4f76-9c2d-2d16676c5861" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:43 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:43 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f1f05c23-a43a-4f76-9c2d-2d16676c5861" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:43 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:43 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f1f05c23-a43a-4f76-9c2d-2d16676c5861" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:43 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:43 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f1f05c23-a43a-4f76-9c2d-2d16676c5861" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:43 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:43 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f1f05c23-a43a-4f76-9c2d-2d16676c5861" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:43 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:43 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f1f05c23-a43a-4f76-9c2d-2d16676c5861" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:43 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:43 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:02:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"id\": \"testJobSchedule:job-1\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f1f05c23-a43a-4f76-9c2d-2d16676c5861" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "de988e85-be08-4e54-b505-c702b5b71a47" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:43 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02: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#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:03:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"id\": \"testJobSchedule:job-2\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "20a3d0c1-9469-4c94-b65b-61054a83fb8a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:47 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02: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#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:03:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"id\": \"testJobSchedule:job-2\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "20a3d0c1-9469-4c94-b65b-61054a83fb8a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:47 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02: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#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:03:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"id\": \"testJobSchedule:job-2\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "20a3d0c1-9469-4c94-b65b-61054a83fb8a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:47 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02: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#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:03:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"id\": \"testJobSchedule:job-2\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "20a3d0c1-9469-4c94-b65b-61054a83fb8a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:47 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02: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#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:03:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"id\": \"testJobSchedule:job-2\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "20a3d0c1-9469-4c94-b65b-61054a83fb8a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:47 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02: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#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:03:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"id\": \"testJobSchedule:job-2\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "20a3d0c1-9469-4c94-b65b-61054a83fb8a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:47 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02: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#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:03:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"id\": \"testJobSchedule:job-2\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "20a3d0c1-9469-4c94-b65b-61054a83fb8a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:47 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02: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#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:03:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"id\": \"testJobSchedule:job-2\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "20a3d0c1-9469-4c94-b65b-61054a83fb8a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:47 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02: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#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:03:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"id\": \"testJobSchedule:job-2\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "20a3d0c1-9469-4c94-b65b-61054a83fb8a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:47 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02: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#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:03:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"id\": \"testJobSchedule:job-2\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "20a3d0c1-9469-4c94-b65b-61054a83fb8a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:47 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02: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#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:03:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"id\": \"testJobSchedule:job-2\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "20a3d0c1-9469-4c94-b65b-61054a83fb8a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:47 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02: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#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:03:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"id\": \"testJobSchedule:job-2\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "20a3d0c1-9469-4c94-b65b-61054a83fb8a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:47 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02: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#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:03:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"id\": \"testJobSchedule:job-2\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "20a3d0c1-9469-4c94-b65b-61054a83fb8a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:47 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02: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#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:03:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"id\": \"testJobSchedule:job-2\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "20a3d0c1-9469-4c94-b65b-61054a83fb8a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:47 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02: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#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:03:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"id\": \"testJobSchedule:job-2\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "20a3d0c1-9469-4c94-b65b-61054a83fb8a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:47 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02: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#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:03:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"id\": \"testJobSchedule:job-2\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "20a3d0c1-9469-4c94-b65b-61054a83fb8a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:47 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02: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#jobschedules/@Element\",\r\n \"id\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:03:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"id\": \"testJobSchedule:job-2\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "20a3d0c1-9469-4c94-b65b-61054a83fb8a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "dffe28ec-82f3-43d5-9e5f-8a482e7749bd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:47 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "702b08f3-d97a-4e1b-9c13-93f96b0d8f00" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:49 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\": \"testJobSchedule\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobschedules/testJobSchedule\",\r\n \"eTag\": \"0x8D299008DF7C86C\",\r\n \"lastModified\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.3537132Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\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 \"nextRunTime\": \"2015-07-30T17:03:47.3537132Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"id\": \"testJobSchedule:job-2\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "82c60d69-7e9b-4970-971c-ff8d0072332f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "702b08f3-d97a-4e1b-9c13-93f96b0d8f00" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:49 GMT" + ], + "ETag": [ + "0x8D299008DF7C86C" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-1?terminate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTE/dGVybWluYXRlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "2" + ], + "client-request-id": [ + "ac54c311-faac-4f7e-ac1e-ff79689bb3db" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01: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": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5cab3ae2-97fc-4bcd-a36e-1e4698fe5432" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ac54c311-faac-4f7e-ac1e-ff79689bb3db" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "ETag": [ + "0x8D299008E2AE5B5" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-1?terminate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTE/dGVybWluYXRlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "2" + ], + "client-request-id": [ + "ac54c311-faac-4f7e-ac1e-ff79689bb3db" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01: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": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5cab3ae2-97fc-4bcd-a36e-1e4698fe5432" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ac54c311-faac-4f7e-ac1e-ff79689bb3db" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "ETag": [ + "0x8D299008E2AE5B5" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-1?terminate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTE/dGVybWluYXRlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "2" + ], + "client-request-id": [ + "ac54c311-faac-4f7e-ac1e-ff79689bb3db" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01: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": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5cab3ae2-97fc-4bcd-a36e-1e4698fe5432" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ac54c311-faac-4f7e-ac1e-ff79689bb3db" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "ETag": [ + "0x8D299008E2AE5B5" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-1?terminate&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTE/dGVybWluYXRlJmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "2" + ], + "client-request-id": [ + "ac54c311-faac-4f7e-ac1e-ff79689bb3db" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:01: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": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5cab3ae2-97fc-4bcd-a36e-1e4698fe5432" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ac54c311-faac-4f7e-ac1e-ff79689bb3db" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1" + ], + "Date": [ + "Thu, 30 Jul 2015 17:01:47 GMT" + ], + "ETag": [ + "0x8D299008E2AE5B5" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "fffd4124-6dfe-4efd-bfa5-1d8948a830e8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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\": \"runOnceId\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/runOnceId\",\r\n \"eTag\": \"0x8D299008DD651C0\",\r\n \"lastModified\": \"2015-07-30T17:01:47.1344064Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.115397Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.1344064Z\",\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-07-30T17:01:47.1344064Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n {\r\n \"id\": \"testJobSchedule:job-2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"eTag\": \"0x8D29900B1BD82FB\",\r\n \"lastModified\": \"2015-07-30T17:02:47.3698043Z\",\r\n \"creationTime\": \"2015-07-30T17:02:47.3538392Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:02:47.3698043Z\",\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-07-30T17:02:47.3698043Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n {\r\n \"id\": \"testJobSchedule:job-1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"eTag\": \"0x8D299008E2AE5B5\",\r\n \"lastModified\": \"2015-07-30T17:01:47.6886965Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.4066684Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:01:47.4256695Z\",\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-07-30T17:01:47.4256695Z\",\r\n \"endTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"poolId\": \"testPool\",\r\n \"terminateReason\": \"UserTerminate\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "8e1e6dd9-2e42-4eb2-9fcd-51748282c68a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "fffd4124-6dfe-4efd-bfa5-1d8948a830e8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:49 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "fffd4124-6dfe-4efd-bfa5-1d8948a830e8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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\": \"runOnceId\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/runOnceId\",\r\n \"eTag\": \"0x8D299008DD651C0\",\r\n \"lastModified\": \"2015-07-30T17:01:47.1344064Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.115397Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:47.1344064Z\",\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-07-30T17:01:47.1344064Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n {\r\n \"id\": \"testJobSchedule:job-2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"eTag\": \"0x8D29900B1BD82FB\",\r\n \"lastModified\": \"2015-07-30T17:02:47.3698043Z\",\r\n \"creationTime\": \"2015-07-30T17:02:47.3538392Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:02:47.3698043Z\",\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-07-30T17:02:47.3698043Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n {\r\n \"id\": \"testJobSchedule:job-1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"eTag\": \"0x8D299008E2AE5B5\",\r\n \"lastModified\": \"2015-07-30T17:01:47.6886965Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.4066684Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:01:47.4256695Z\",\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-07-30T17:01:47.4256695Z\",\r\n \"endTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"poolId\": \"testPool\",\r\n \"terminateReason\": \"UserTerminate\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "8e1e6dd9-2e42-4eb2-9fcd-51748282c68a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "fffd4124-6dfe-4efd-bfa5-1d8948a830e8" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:49 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGUvam9icz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3d7cc387-5fda-44f5-b107-ca0ff6b50a38" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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\": \"testJobSchedule:job-2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"eTag\": \"0x8D29900B1BD82FB\",\r\n \"lastModified\": \"2015-07-30T17:02:47.3698043Z\",\r\n \"creationTime\": \"2015-07-30T17:02:47.3538392Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:02:47.3698043Z\",\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-07-30T17:02:47.3698043Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n {\r\n \"id\": \"testJobSchedule:job-1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"eTag\": \"0x8D299008E2AE5B5\",\r\n \"lastModified\": \"2015-07-30T17:01:47.6886965Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.4066684Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:01:47.4256695Z\",\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-07-30T17:01:47.4256695Z\",\r\n \"endTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"poolId\": \"testPool\",\r\n \"terminateReason\": \"UserTerminate\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "0517376b-8710-45d2-b377-a019a6e84882" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3d7cc387-5fda-44f5-b107-ca0ff6b50a38" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:49 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGUvam9icz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3d7cc387-5fda-44f5-b107-ca0ff6b50a38" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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\": \"testJobSchedule:job-2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"eTag\": \"0x8D29900B1BD82FB\",\r\n \"lastModified\": \"2015-07-30T17:02:47.3698043Z\",\r\n \"creationTime\": \"2015-07-30T17:02:47.3538392Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:02:47.3698043Z\",\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-07-30T17:02:47.3698043Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n {\r\n \"id\": \"testJobSchedule:job-1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"eTag\": \"0x8D299008E2AE5B5\",\r\n \"lastModified\": \"2015-07-30T17:01:47.6886965Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.4066684Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:01:47.4256695Z\",\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-07-30T17:01:47.4256695Z\",\r\n \"endTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"poolId\": \"testPool\",\r\n \"terminateReason\": \"UserTerminate\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "0517376b-8710-45d2-b377-a019a6e84882" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3d7cc387-5fda-44f5-b107-ca0ff6b50a38" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:49 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGUvam9icz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3d7cc387-5fda-44f5-b107-ca0ff6b50a38" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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\": \"testJobSchedule:job-2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"eTag\": \"0x8D29900B1BD82FB\",\r\n \"lastModified\": \"2015-07-30T17:02:47.3698043Z\",\r\n \"creationTime\": \"2015-07-30T17:02:47.3538392Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:02:47.3698043Z\",\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-07-30T17:02:47.3698043Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n {\r\n \"id\": \"testJobSchedule:job-1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"eTag\": \"0x8D299008E2AE5B5\",\r\n \"lastModified\": \"2015-07-30T17:01:47.6886965Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.4066684Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:01:47.4256695Z\",\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-07-30T17:01:47.4256695Z\",\r\n \"endTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"poolId\": \"testPool\",\r\n \"terminateReason\": \"UserTerminate\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "0517376b-8710-45d2-b377-a019a6e84882" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3d7cc387-5fda-44f5-b107-ca0ff6b50a38" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:49 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGUvam9icz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bcf0553b-fcdf-4196-843d-74cba1fb1339" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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\": \"testJobSchedule:job-2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"eTag\": \"0x8D29900B1BD82FB\",\r\n \"lastModified\": \"2015-07-30T17:02:47.3698043Z\",\r\n \"creationTime\": \"2015-07-30T17:02:47.3538392Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:02:47.3698043Z\",\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-07-30T17:02:47.3698043Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n {\r\n \"id\": \"testJobSchedule:job-1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"eTag\": \"0x8D299008E2AE5B5\",\r\n \"lastModified\": \"2015-07-30T17:01:47.6886965Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.4066684Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:01:47.4256695Z\",\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-07-30T17:01:47.4256695Z\",\r\n \"endTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"poolId\": \"testPool\",\r\n \"terminateReason\": \"UserTerminate\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b4b0ea5d-f28e-4737-9de1-d2b31724ebdf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bcf0553b-fcdf-4196-843d-74cba1fb1339" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:49 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGUvam9icz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bcf0553b-fcdf-4196-843d-74cba1fb1339" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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\": \"testJobSchedule:job-2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"eTag\": \"0x8D29900B1BD82FB\",\r\n \"lastModified\": \"2015-07-30T17:02:47.3698043Z\",\r\n \"creationTime\": \"2015-07-30T17:02:47.3538392Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:02:47.3698043Z\",\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-07-30T17:02:47.3698043Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n {\r\n \"id\": \"testJobSchedule:job-1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"eTag\": \"0x8D299008E2AE5B5\",\r\n \"lastModified\": \"2015-07-30T17:01:47.6886965Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.4066684Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:01:47.4256695Z\",\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-07-30T17:01:47.4256695Z\",\r\n \"endTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"poolId\": \"testPool\",\r\n \"terminateReason\": \"UserTerminate\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b4b0ea5d-f28e-4737-9de1-d2b31724ebdf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bcf0553b-fcdf-4196-843d-74cba1fb1339" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:49 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGUvam9icz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bcf0553b-fcdf-4196-843d-74cba1fb1339" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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\": \"testJobSchedule:job-2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"eTag\": \"0x8D29900B1BD82FB\",\r\n \"lastModified\": \"2015-07-30T17:02:47.3698043Z\",\r\n \"creationTime\": \"2015-07-30T17:02:47.3538392Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:02:47.3698043Z\",\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-07-30T17:02:47.3698043Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n {\r\n \"id\": \"testJobSchedule:job-1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"eTag\": \"0x8D299008E2AE5B5\",\r\n \"lastModified\": \"2015-07-30T17:01:47.6886965Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.4066684Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:01:47.4256695Z\",\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-07-30T17:01:47.4256695Z\",\r\n \"endTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"poolId\": \"testPool\",\r\n \"terminateReason\": \"UserTerminate\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b4b0ea5d-f28e-4737-9de1-d2b31724ebdf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bcf0553b-fcdf-4196-843d-74cba1fb1339" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:49 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGUvam9icz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bcf0553b-fcdf-4196-843d-74cba1fb1339" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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\": \"testJobSchedule:job-2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"eTag\": \"0x8D29900B1BD82FB\",\r\n \"lastModified\": \"2015-07-30T17:02:47.3698043Z\",\r\n \"creationTime\": \"2015-07-30T17:02:47.3538392Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:02:47.3698043Z\",\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-07-30T17:02:47.3698043Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n {\r\n \"id\": \"testJobSchedule:job-1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"eTag\": \"0x8D299008E2AE5B5\",\r\n \"lastModified\": \"2015-07-30T17:01:47.6886965Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.4066684Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:01:47.4256695Z\",\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-07-30T17:01:47.4256695Z\",\r\n \"endTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"poolId\": \"testPool\",\r\n \"terminateReason\": \"UserTerminate\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b4b0ea5d-f28e-4737-9de1-d2b31724ebdf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bcf0553b-fcdf-4196-843d-74cba1fb1339" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:49 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule/jobs?$filter=id%20eq%20'testJobSchedule:job-1'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGUvam9icz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0Sm9iU2NoZWR1bGUlM0Fqb2ItMSUyNyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "a67d6702-f147-43a0-be53-4c7da31b8e4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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\": \"testJobSchedule:job-1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"eTag\": \"0x8D299008E2AE5B5\",\r\n \"lastModified\": \"2015-07-30T17:01:47.6886965Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.4066684Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:01:47.4256695Z\",\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-07-30T17:01:47.4256695Z\",\r\n \"endTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"poolId\": \"testPool\",\r\n \"terminateReason\": \"UserTerminate\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "2efc964c-117f-4788-8b74-1d7a98294e3e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "a67d6702-f147-43a0-be53-4c7da31b8e4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:49 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule/jobs?$filter=id%20eq%20'testJobSchedule:job-1'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGUvam9icz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0Sm9iU2NoZWR1bGUlM0Fqb2ItMSUyNyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "a67d6702-f147-43a0-be53-4c7da31b8e4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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\": \"testJobSchedule:job-1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"eTag\": \"0x8D299008E2AE5B5\",\r\n \"lastModified\": \"2015-07-30T17:01:47.6886965Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.4066684Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:01:47.4256695Z\",\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-07-30T17:01:47.4256695Z\",\r\n \"endTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"poolId\": \"testPool\",\r\n \"terminateReason\": \"UserTerminate\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "2efc964c-117f-4788-8b74-1d7a98294e3e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "a67d6702-f147-43a0-be53-4c7da31b8e4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:49 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule/jobs?$filter=id%20eq%20'testJobSchedule:job-1'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGUvam9icz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0Sm9iU2NoZWR1bGUlM0Fqb2ItMSUyNyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "a67d6702-f147-43a0-be53-4c7da31b8e4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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\": \"testJobSchedule:job-1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"eTag\": \"0x8D299008E2AE5B5\",\r\n \"lastModified\": \"2015-07-30T17:01:47.6886965Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.4066684Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:01:47.4256695Z\",\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-07-30T17:01:47.4256695Z\",\r\n \"endTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"poolId\": \"testPool\",\r\n \"terminateReason\": \"UserTerminate\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "2efc964c-117f-4788-8b74-1d7a98294e3e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "a67d6702-f147-43a0-be53-4c7da31b8e4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:49 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule/jobs?$filter=id%20eq%20'testJobSchedule:job-1'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGUvam9icz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0Sm9iU2NoZWR1bGUlM0Fqb2ItMSUyNyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "a67d6702-f147-43a0-be53-4c7da31b8e4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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\": \"testJobSchedule:job-1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"eTag\": \"0x8D299008E2AE5B5\",\r\n \"lastModified\": \"2015-07-30T17:01:47.6886965Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.4066684Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:01:47.4256695Z\",\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-07-30T17:01:47.4256695Z\",\r\n \"endTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"poolId\": \"testPool\",\r\n \"terminateReason\": \"UserTerminate\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "2efc964c-117f-4788-8b74-1d7a98294e3e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "a67d6702-f147-43a0-be53-4c7da31b8e4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:49 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobschedules/testJobSchedule/jobs?$filter=id%20eq%20'testJobSchedule:job-1'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGUvam9icz8kZmlsdGVyPWlkJTIwZXElMjAlMjd0ZXN0Sm9iU2NoZWR1bGUlM0Fqb2ItMSUyNyZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "a67d6702-f147-43a0-be53-4c7da31b8e4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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\": \"testJobSchedule:job-1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-1\",\r\n \"eTag\": \"0x8D299008E2AE5B5\",\r\n \"lastModified\": \"2015-07-30T17:01:47.6886965Z\",\r\n \"creationTime\": \"2015-07-30T17:01:47.4066684Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:01:47.4256695Z\",\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-07-30T17:01:47.4256695Z\",\r\n \"endTime\": \"2015-07-30T17:01:48.3828629Z\",\r\n \"poolId\": \"testPool\",\r\n \"terminateReason\": \"UserTerminate\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "2efc964c-117f-4788-8b74-1d7a98294e3e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "a67d6702-f147-43a0-be53-4c7da31b8e4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:49 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/runOnceId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvcnVuT25jZUlkP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5b794799-0200-4c91-a599-8580086f3854" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/runOnceId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvcnVuT25jZUlkP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5b794799-0200-4c91-a599-8580086f3854" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/runOnceId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvcnVuT25jZUlkP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5b794799-0200-4c91-a599-8580086f3854" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/runOnceId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvcnVuT25jZUlkP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5b794799-0200-4c91-a599-8580086f3854" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/runOnceId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvcnVuT25jZUlkP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5b794799-0200-4c91-a599-8580086f3854" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/runOnceId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvcnVuT25jZUlkP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5b794799-0200-4c91-a599-8580086f3854" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/runOnceId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvcnVuT25jZUlkP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5b794799-0200-4c91-a599-8580086f3854" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/runOnceId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvcnVuT25jZUlkP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5b794799-0200-4c91-a599-8580086f3854" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/runOnceId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvcnVuT25jZUlkP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5b794799-0200-4c91-a599-8580086f3854" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/runOnceId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvcnVuT25jZUlkP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5b794799-0200-4c91-a599-8580086f3854" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/runOnceId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvcnVuT25jZUlkP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5b794799-0200-4c91-a599-8580086f3854" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/runOnceId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvcnVuT25jZUlkP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5b794799-0200-4c91-a599-8580086f3854" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/runOnceId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvcnVuT25jZUlkP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5b794799-0200-4c91-a599-8580086f3854" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/runOnceId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvcnVuT25jZUlkP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5b794799-0200-4c91-a599-8580086f3854" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/runOnceId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvcnVuT25jZUlkP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5b794799-0200-4c91-a599-8580086f3854" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/runOnceId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvcnVuT25jZUlkP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5b794799-0200-4c91-a599-8580086f3854" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/runOnceId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvcnVuT25jZUlkP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5b794799-0200-4c91-a599-8580086f3854" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/runOnceId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvcnVuT25jZUlkP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5b794799-0200-4c91-a599-8580086f3854" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ae2c5b42-6bae-40a4-a60d-16f99b1d6e4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTE/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "be4805d0-b20b-4955-bfe1-b0da4fde64bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTE/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "be4805d0-b20b-4955-bfe1-b0da4fde64bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTE/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "be4805d0-b20b-4955-bfe1-b0da4fde64bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTE/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "be4805d0-b20b-4955-bfe1-b0da4fde64bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTE/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "be4805d0-b20b-4955-bfe1-b0da4fde64bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTE/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "be4805d0-b20b-4955-bfe1-b0da4fde64bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTE/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "be4805d0-b20b-4955-bfe1-b0da4fde64bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTE/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "be4805d0-b20b-4955-bfe1-b0da4fde64bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTE/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "be4805d0-b20b-4955-bfe1-b0da4fde64bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTE/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "be4805d0-b20b-4955-bfe1-b0da4fde64bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTE/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "be4805d0-b20b-4955-bfe1-b0da4fde64bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTE/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "be4805d0-b20b-4955-bfe1-b0da4fde64bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTE/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "be4805d0-b20b-4955-bfe1-b0da4fde64bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTE/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "be4805d0-b20b-4955-bfe1-b0da4fde64bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTE/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "be4805d0-b20b-4955-bfe1-b0da4fde64bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTE/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "be4805d0-b20b-4955-bfe1-b0da4fde64bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTE/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "be4805d0-b20b-4955-bfe1-b0da4fde64bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTE/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "be4805d0-b20b-4955-bfe1-b0da4fde64bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTE/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "be4805d0-b20b-4955-bfe1-b0da4fde64bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9312a52a-e46c-4042-adda-bba9b10577b4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTI/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "7fbe9502-0ab0-4f92-b3ee-79a6b13ee0d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTI/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "7fbe9502-0ab0-4f92-b3ee-79a6b13ee0d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTI/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "7fbe9502-0ab0-4f92-b3ee-79a6b13ee0d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTI/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "7fbe9502-0ab0-4f92-b3ee-79a6b13ee0d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTI/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "7fbe9502-0ab0-4f92-b3ee-79a6b13ee0d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTI/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "7fbe9502-0ab0-4f92-b3ee-79a6b13ee0d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTI/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "7fbe9502-0ab0-4f92-b3ee-79a6b13ee0d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTI/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "7fbe9502-0ab0-4f92-b3ee-79a6b13ee0d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTI/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "7fbe9502-0ab0-4f92-b3ee-79a6b13ee0d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTI/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "7fbe9502-0ab0-4f92-b3ee-79a6b13ee0d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTI/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "7fbe9502-0ab0-4f92-b3ee-79a6b13ee0d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTI/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "7fbe9502-0ab0-4f92-b3ee-79a6b13ee0d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTI/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "7fbe9502-0ab0-4f92-b3ee-79a6b13ee0d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTI/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "7fbe9502-0ab0-4f92-b3ee-79a6b13ee0d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTI/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "7fbe9502-0ab0-4f92-b3ee-79a6b13ee0d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTI/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "7fbe9502-0ab0-4f92-b3ee-79a6b13ee0d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTI/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "7fbe9502-0ab0-4f92-b3ee-79a6b13ee0d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTI/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "7fbe9502-0ab0-4f92-b3ee-79a6b13ee0d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTI/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "7fbe9502-0ab0-4f92-b3ee-79a6b13ee0d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/testJobSchedule:job-2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdEpvYlNjaGVkdWxlJTNBam9iLTI/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "7fbe9502-0ab0-4f92-b3ee-79a6b13ee0d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "bc40924b-8295-4a79-8e28-15fb43cd33af" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5f68c7e8-c231-4906-91e9-4812124aa35d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5f68c7e8-c231-4906-91e9-4812124aa35d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5f68c7e8-c231-4906-91e9-4812124aa35d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5f68c7e8-c231-4906-91e9-4812124aa35d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5f68c7e8-c231-4906-91e9-4812124aa35d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5f68c7e8-c231-4906-91e9-4812124aa35d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5f68c7e8-c231-4906-91e9-4812124aa35d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5f68c7e8-c231-4906-91e9-4812124aa35d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5f68c7e8-c231-4906-91e9-4812124aa35d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5f68c7e8-c231-4906-91e9-4812124aa35d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5f68c7e8-c231-4906-91e9-4812124aa35d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5f68c7e8-c231-4906-91e9-4812124aa35d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5f68c7e8-c231-4906-91e9-4812124aa35d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5f68c7e8-c231-4906-91e9-4812124aa35d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5f68c7e8-c231-4906-91e9-4812124aa35d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5f68c7e8-c231-4906-91e9-4812124aa35d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5f68c7e8-c231-4906-91e9-4812124aa35d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5f68c7e8-c231-4906-91e9-4812124aa35d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5f68c7e8-c231-4906-91e9-4812124aa35d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5f68c7e8-c231-4906-91e9-4812124aa35d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobschedules/testJobSchedule?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnNjaGVkdWxlcy90ZXN0Sm9iU2NoZWR1bGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:02:50 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": [ + "5f68c7e8-c231-4906-91e9-4812124aa35d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f992e9b7-b459-4fb4-b038-b998ee11898a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:02:50 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/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListJobsWithMaxCount.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListJobsWithMaxCount.json index c0e3e66753ab..94c6579036f7 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListJobsWithMaxCount.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestListJobsWithMaxCount.json @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14960" + "14937" ], "x-ms-request-id": [ - "bd0fc85d-779a-4261-953f-dd2be3b9c35f" + "c26d46c4-7d24-410e-a496-91ea4954e7d1" ], "x-ms-correlation-request-id": [ - "bd0fc85d-779a-4261-953f-dd2be3b9c35f" + "c26d46c4-7d24-410e-a496-91ea4954e7d1" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192900Z:bd0fc85d-779a-4261-953f-dd2be3b9c35f" + "WESTUS:20150730T170308Z:c26d46c4-7d24-410e-a496-91ea4954e7d1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:29:00 GMT" + "Thu, 30 Jul 2015 17:03:08 GMT" ] }, "StatusCode": 200 @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14959" + "14936" ], "x-ms-request-id": [ - "9d80910e-2ceb-4ed2-86d0-e5a32922fd25" + "ecf215fa-2442-4c1c-812b-fd04dba05d74" ], "x-ms-correlation-request-id": [ - "9d80910e-2ceb-4ed2-86d0-e5a32922fd25" + "ecf215fa-2442-4c1c-812b-fd04dba05d74" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T193007Z:9d80910e-2ceb-4ed2-86d0-e5a32922fd25" + "WESTUS:20150730T170311Z:ecf215fa-2442-4c1c-812b-fd04dba05d74" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:30:07 GMT" + "Thu, 30 Jul 2015 17:03:11 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:29:02 GMT" + "Thu, 30 Jul 2015 17:03:09 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "10653f3e-c281-4b35-a0b4-b1aaea11cbc7" + "2711c6bf-cc01-4370-b33e-1cfa090498bb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14958" + "14971" ], "x-ms-request-id": [ - "0fa5977b-f5cb-4d32-a95f-f5a3fc8252d1" + "511fcba8-3a25-4ba2-aaba-16723974278a" ], "x-ms-correlation-request-id": [ - "0fa5977b-f5cb-4d32-a95f-f5a3fc8252d1" + "511fcba8-3a25-4ba2-aaba-16723974278a" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192901Z:0fa5977b-f5cb-4d32-a95f-f5a3fc8252d1" + "WESTUS:20150730T170310Z:511fcba8-3a25-4ba2-aaba-16723974278a" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:29:01 GMT" + "Thu, 30 Jul 2015 17:03:10 GMT" ], "ETag": [ - "0x8D28894A544DC95" + "0x8D29900BF115301" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:30:08 GMT" + "Thu, 30 Jul 2015 17:03:11 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "8415c1b9-6b93-470f-8f25-98dbfd3f3296" + "66dde2a7-a074-42ef-8aca-6b261946e528" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14958" + "14970" ], "x-ms-request-id": [ - "89b045af-7138-47c5-9f95-7f411c0f1dee" + "8230577b-fd77-4eb8-a508-909fcf43cc8e" ], "x-ms-correlation-request-id": [ - "89b045af-7138-47c5-9f95-7f411c0f1dee" + "8230577b-fd77-4eb8-a508-909fcf43cc8e" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T193008Z:89b045af-7138-47c5-9f95-7f411c0f1dee" + "WESTUS:20150730T170311Z:8230577b-fd77-4eb8-a508-909fcf43cc8e" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:30:07 GMT" + "Thu, 30 Jul 2015 17:03:11 GMT" ], "ETag": [ - "0x8D28894CCD1CE62" + "0x8D29900C0188EDC" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "fac4caff-6203-4fc3-926f-c2431deed5d3" + "8d64e056-5aaa-4d03-b11a-2b59b8505c58" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1185" + "1179" ], "x-ms-request-id": [ - "818ac719-aa7a-448f-b8c6-6a51770aefc6" + "c5002294-a185-423c-9c83-d85593b2b6a0" ], "x-ms-correlation-request-id": [ - "818ac719-aa7a-448f-b8c6-6a51770aefc6" + "c5002294-a185-423c-9c83-d85593b2b6a0" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T192902Z:818ac719-aa7a-448f-b8c6-6a51770aefc6" + "WESTUS:20150730T170310Z:c5002294-a185-423c-9c83-d85593b2b6a0" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:29:02 GMT" + "Thu, 30 Jul 2015 17:03:10 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "32be320a-4ce5-48a4-8df1-8c4d99e5a8a6" + "488a4b31-58b6-43f8-af40-f877aa83ec20" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1184" + "1178" ], "x-ms-request-id": [ - "e51e8680-669b-4681-8f49-f3e05c99e497" + "05a663ce-03fe-476b-a0df-0c08f91b18bb" ], "x-ms-correlation-request-id": [ - "e51e8680-669b-4681-8f49-f3e05c99e497" + "05a663ce-03fe-476b-a0df-0c08f91b18bb" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T193008Z:e51e8680-669b-4681-8f49-f3e05c99e497" + "WESTUS:20150730T170311Z:05a663ce-03fe-476b-a0df-0c08f91b18bb" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:30:07 GMT" + "Thu, 30 Jul 2015 17:03:11 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,58 +337,62 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", + "RequestBody": "{\r\n \"id\": \"testId1\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "219" - ], - "User-Agent": [ - "WA-Batch/1.0" + "90" ], "client-request-id": [ - "fe985cd2-efaf-4006-8490-71745b0d1a3d" + "aee53537-98bb-41e5-95df-7e950171e1d7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:10 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:29:02 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 19:29:02 GMT" + "Thu, 30 Jul 2015 17:03:10 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "35867b6a-a110-4823-9514-659dcc49321a" + "237ef04c-a6bd-4a5d-9f65-cc1e48d5b661" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "aee53537-98bb-41e5-95df-7e950171e1d7" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testWorkItem" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Date": [ - "Thu, 09 Jul 2015 19:29:01 GMT" + "Thu, 30 Jul 2015 17:03:09 GMT" ], "ETag": [ - "0x8D28894A5A8A077" + "0x8D29900BFC96DA1" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/testWorkItem" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -397,304 +401,367 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testId2\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "90" ], "client-request-id": [ - "2f4cc6c6-46fb-4f2b-bb81-414ab6f44d36" + "4d7e43f0-d919-48ef-a334-1f6305b88d7f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:10 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:29:02 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D28894A5A8A077\",\r\n \"lastModified\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"creationTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:30:02.8490359Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:29:02 GMT" + "Thu, 30 Jul 2015 17:03:11 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "bd052931-11e7-48fa-b141-eb09d553f60e" + "b858025c-68b0-4fa5-af1b-ec5704179ef7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "4d7e43f0-d919-48ef-a334-1f6305b88d7f" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], "Date": [ - "Thu, 09 Jul 2015 19:29:03 GMT" + "Thu, 30 Jul 2015 17:03:09 GMT" ], "ETag": [ - "0x8D28894A5A8A077" + "0x8D29900BFEBD1F5" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testId2\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "90" ], "client-request-id": [ - "5c862170-015a-4b2e-bb28-7a694760c331" + "4d7e43f0-d919-48ef-a334-1f6305b88d7f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:10 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:29:03 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D28894A5A8A077\",\r\n \"lastModified\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"creationTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:30:02.8490359Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:29:02 GMT" + "Thu, 30 Jul 2015 17:03:11 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "134a0281-1082-4bae-a078-fb45c4848e66" + "b858025c-68b0-4fa5-af1b-ec5704179ef7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "4d7e43f0-d919-48ef-a334-1f6305b88d7f" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], "Date": [ - "Thu, 09 Jul 2015 19:29:03 GMT" + "Thu, 30 Jul 2015 17:03:09 GMT" ], "ETag": [ - "0x8D28894A5A8A077" + "0x8D29900BFEBD1F5" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdtestId\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "94" ], "client-request-id": [ - "234e336d-25eb-4046-bdf9-6b8934d98064" + "d573b380-61b1-4d62-816f-392438d0adfc" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:10 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:29:08 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D28894A5A8A077\",\r\n \"lastModified\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"creationTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:30:02.8490359Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:29:02 GMT" + "Thu, 30 Jul 2015 17:03:11 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "1fe46470-924f-4dfe-b234-59e93a9f5a53" + "58932d46-f844-4387-8278-d277771b907f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "d573b380-61b1-4d62-816f-392438d0adfc" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], "Date": [ - "Thu, 09 Jul 2015 19:29:08 GMT" + "Thu, 30 Jul 2015 17:03:10 GMT" ], "ETag": [ - "0x8D28894A5A8A077" + "0x8D29900C00E5D5E" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdtestId\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "94" ], "client-request-id": [ - "0c1725a6-de2b-4284-b883-b2592d573e19" + "d573b380-61b1-4d62-816f-392438d0adfc" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:10 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:29:13 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D28894A5A8A077\",\r\n \"lastModified\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"creationTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:30:02.8490359Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:29:02 GMT" + "Thu, 30 Jul 2015 17:03:11 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "c4ad02b8-4048-45a1-82b8-03233bea4ab4" + "58932d46-f844-4387-8278-d277771b907f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "d573b380-61b1-4d62-816f-392438d0adfc" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], "Date": [ - "Thu, 09 Jul 2015 19:29:12 GMT" + "Thu, 30 Jul 2015 17:03:10 GMT" ], "ETag": [ - "0x8D28894A5A8A077" + "0x8D29900C00E5D5E" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdtestId\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "94" ], "client-request-id": [ - "1fcd1113-7fb8-403d-ade6-5a22dd115328" + "d573b380-61b1-4d62-816f-392438d0adfc" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:10 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:29:19 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D28894A5A8A077\",\r\n \"lastModified\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"creationTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:30:02.8490359Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:29:02 GMT" + "Thu, 30 Jul 2015 17:03:11 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "d344e9db-e751-46c2-a145-d86932a3dc43" + "58932d46-f844-4387-8278-d277771b907f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "d573b380-61b1-4d62-816f-392438d0adfc" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], "Date": [ - "Thu, 09 Jul 2015 19:29:19 GMT" + "Thu, 30 Jul 2015 17:03:10 GMT" ], "ETag": [ - "0x8D28894A5A8A077" + "0x8D29900C00E5D5E" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "1adf673d-efbd-4bc0-9c18-65621b775d4a" + "8bf2d09f-ed94-457f-b99f-c3095325bf4a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:11 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:29:24 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D28894A5A8A077\",\r\n \"lastModified\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"creationTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:30:02.8490359Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"id\": \"testId1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testId1\",\r\n \"eTag\": \"0x8D29900BFC96DA1\",\r\n \"lastModified\": \"2015-07-30T17:03:10.9360033Z\",\r\n \"creationTime\": \"2015-07-30T17:03:10.9200033Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:03:10.9360033Z\",\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-07-30T17:03:10.9360033Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n {\r\n \"id\": \"testId2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testId2\",\r\n \"eTag\": \"0x8D29900BFEBD1F5\",\r\n \"lastModified\": \"2015-07-30T17:03:11.1613941Z\",\r\n \"creationTime\": \"2015-07-30T17:03:11.1443932Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:03:11.1613941Z\",\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-07-30T17:03:11.1613941Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n {\r\n \"id\": \"testJobSchedule:job-2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/testJobSchedule:job-2\",\r\n \"eTag\": \"0x8D29900B1BD82FB\",\r\n \"lastModified\": \"2015-07-30T17:02:47.3698043Z\",\r\n \"creationTime\": \"2015-07-30T17:02:47.3538392Z\",\r\n \"state\": \"deleting\",\r\n \"stateTransitionTime\": \"2015-07-30T17:02:51.0175063Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:02:47.3698043Z\",\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-07-30T17:02:47.3698043Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n },\r\n {\r\n \"id\": \"thirdtestId\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/thirdtestId\",\r\n \"eTag\": \"0x8D29900C00E5D5E\",\r\n \"lastModified\": \"2015-07-30T17:03:11.3877854Z\",\r\n \"creationTime\": \"2015-07-30T17:03:11.365317Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:03:11.3877854Z\",\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-07-30T17:03:11.3877854Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:29:02 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "b652a791-dc69-4573-8c80-6434f58a263b" + "554b4ef2-8603-4f87-a2df-b7f3a09d9c49" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "8bf2d09f-ed94-457f-b99f-c3095325bf4a" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:29:24 GMT" - ], - "ETag": [ - "0x8D28894A5A8A077" + "Thu, 30 Jul 2015 17:03:11 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -703,571 +770,667 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", + "RequestUri": "/jobs/testId1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "67127205-4d86-4392-94f2-4703309f0bc6" + "cc205a07-2aed-4a34-a950-fe4fbde8116f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:12 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:29:29 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D28894A5A8A077\",\r\n \"lastModified\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"creationTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:30:02.8490359Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:29:02 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "d4899ebd-a009-4ff7-8351-5f2758a6b28c" + "617b960d-8c17-4656-8b2a-364380a27d23" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "cc205a07-2aed-4a34-a950-fe4fbde8116f" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:29:30 GMT" - ], - "ETag": [ - "0x8D28894A5A8A077" + "Thu, 30 Jul 2015 17:03:11 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", + "RequestUri": "/jobs/testId1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "03ed67cf-0e76-40ff-8ac0-b55e81bc21c5" + "cc205a07-2aed-4a34-a950-fe4fbde8116f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:12 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:29:35 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D28894A5A8A077\",\r\n \"lastModified\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"creationTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:30:02.8490359Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:29:02 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "a5e5b26c-797f-46ef-8db4-f5853c31ed73" + "617b960d-8c17-4656-8b2a-364380a27d23" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "cc205a07-2aed-4a34-a950-fe4fbde8116f" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:29:35 GMT" - ], - "ETag": [ - "0x8D28894A5A8A077" + "Thu, 30 Jul 2015 17:03:11 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", + "RequestUri": "/jobs/testId1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "e9b027de-61e7-4ed5-be11-9ce14040bd06" + "cc205a07-2aed-4a34-a950-fe4fbde8116f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:12 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:29:40 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D28894A5A8A077\",\r\n \"lastModified\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"creationTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:30:02.8490359Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:29:02 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "4183a701-192e-4a47-85aa-54a4097640ff" + "617b960d-8c17-4656-8b2a-364380a27d23" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "cc205a07-2aed-4a34-a950-fe4fbde8116f" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:29:41 GMT" - ], - "ETag": [ - "0x8D28894A5A8A077" + "Thu, 30 Jul 2015 17:03:11 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", + "RequestUri": "/jobs/testId1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "5e326f85-e3d0-4648-8d9c-5349fbb31323" + "cc205a07-2aed-4a34-a950-fe4fbde8116f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:12 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:29:45 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D28894A5A8A077\",\r\n \"lastModified\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"creationTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:30:02.8490359Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:29:02 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "bb3d88ae-467a-4d5a-8690-8a8fbe21c821" + "617b960d-8c17-4656-8b2a-364380a27d23" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "cc205a07-2aed-4a34-a950-fe4fbde8116f" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:29:46 GMT" - ], - "ETag": [ - "0x8D28894A5A8A077" + "Thu, 30 Jul 2015 17:03:11 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", + "RequestUri": "/jobs/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "d4c007ac-c6dd-4e57-a791-535913a4b3c2" + "b11de4bd-86ab-41ae-973e-145fbcc8bf69" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:12 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:29:51 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D28894A5A8A077\",\r\n \"lastModified\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"creationTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:30:02.8490359Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:29:02 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "a8480e44-94fd-4256-8eba-63724a7de436" + "8bde5a9a-6ee8-465f-8d0e-a4049c39b241" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "b11de4bd-86ab-41ae-973e-145fbcc8bf69" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:29:51 GMT" - ], - "ETag": [ - "0x8D28894A5A8A077" + "Thu, 30 Jul 2015 17:03:11 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", + "RequestUri": "/jobs/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "d8d08f03-ea90-49e7-8ed7-d4a7109c6163" + "b11de4bd-86ab-41ae-973e-145fbcc8bf69" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:12 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:29:56 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D28894A5A8A077\",\r\n \"lastModified\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"creationTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:30:02.8490359Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:29:02 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "ef5bb2b1-d292-4009-9bf9-9a979726941f" + "8bde5a9a-6ee8-465f-8d0e-a4049c39b241" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "b11de4bd-86ab-41ae-973e-145fbcc8bf69" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:29:56 GMT" - ], - "ETag": [ - "0x8D28894A5A8A077" + "Thu, 30 Jul 2015 17:03:11 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", + "RequestUri": "/jobs/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "145372f7-2775-4614-97e3-884cc0976802" + "b11de4bd-86ab-41ae-973e-145fbcc8bf69" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:12 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:30:01 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D28894A5A8A077\",\r\n \"lastModified\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"creationTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:30:02.8490359Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:29:02 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "b4ddee1a-599a-49d8-884d-047047962055" + "8bde5a9a-6ee8-465f-8d0e-a4049c39b241" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "b11de4bd-86ab-41ae-973e-145fbcc8bf69" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:30:00 GMT" - ], - "ETag": [ - "0x8D28894A5A8A077" + "Thu, 30 Jul 2015 17:03:11 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", + "RequestUri": "/jobs/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "40e00610-4d11-4114-bec6-3558c2157f69" + "b11de4bd-86ab-41ae-973e-145fbcc8bf69" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:12 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:30:07 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D28894A5A8A077\",\r\n \"lastModified\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"creationTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:31:02.8490359Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000002\",\r\n \"name\": \"job-0000000002\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:29:02 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "b917fff7-f6e8-49f3-be42-bb8be0489225" + "8bde5a9a-6ee8-465f-8d0e-a4049c39b241" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "b11de4bd-86ab-41ae-973e-145fbcc8bf69" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:30:06 GMT" - ], - "ETag": [ - "0x8D28894A5A8A077" + "Thu, 30 Jul 2015 17:03:11 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", + "RequestUri": "/jobs/testId2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGVzdElkMj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "8e9c12fb-536c-40bf-8b41-02357082450f" + "b11de4bd-86ab-41ae-973e-145fbcc8bf69" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:12 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:30:08 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testWorkItem\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem\",\r\n \"eTag\": \"0x8D28894A5A8A077\",\r\n \"lastModified\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"creationTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:29:02.8490359Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"PT1M\"\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-09T19:31:02.8490359Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000002\",\r\n \"name\": \"job-0000000002\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:29:02 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "150556f2-5e79-4032-8ef9-8d472e2dd02a" + "8bde5a9a-6ee8-465f-8d0e-a4049c39b241" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "b11de4bd-86ab-41ae-973e-145fbcc8bf69" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:30:08 GMT" - ], - "ETag": [ - "0x8D28894A5A8A077" + "Thu, 30 Jul 2015 17:03:11 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem/jobs?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0vam9icz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", + "RequestUri": "/jobs/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGhpcmR0ZXN0SWQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "cae8dfd6-5c34-448d-88bf-877d91fb727d" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:12 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "43a79140-52cd-44a8-bfa5-b36500258f2b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "985268a1-89eb-43de-af25-a37e2d7d5abd" + "cae8dfd6-5c34-448d-88bf-877d91fb727d" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:03:11 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGhpcmR0ZXN0SWQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "cae8dfd6-5c34-448d-88bf-877d91fb727d" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:30:08 GMT" + "Thu, 30 Jul 2015 17:03:12 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.batch.core.windows.net/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"name\": \"job-0000000002\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000002\",\r\n \"eTag\": \"0x8D28894C96E9943\",\r\n \"lastModified\": \"2015-07-09T19:30:02.8667203Z\",\r\n \"creationTime\": \"2015-07-09T19:30:02.8494213Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:30:02.8667203Z\",\r\n \"poolName\": \"testPool\",\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T19:30:02.8667203Z\"\r\n }\r\n },\r\n {\r\n \"name\": \"job-0000000001\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"eTag\": \"0x8D28894A60FFFC2\",\r\n \"lastModified\": \"2015-07-09T19:29:03.5264962Z\",\r\n \"creationTime\": \"2015-07-09T19:29:02.8873755Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-09T19:29:04.449729Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-09T19:29:02.9033103Z\",\r\n \"poolName\": \"testPool\",\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T19:29:02.9033103Z\",\r\n \"endTime\": \"2015-07-09T19:29:04.449729Z\",\r\n \"terminateReason\": \"UserTerminate\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "dbb06b71-aada-44d9-ae80-acf84c440cbc" + "43a79140-52cd-44a8-bfa5-b36500258f2b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "cae8dfd6-5c34-448d-88bf-877d91fb727d" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:30:08 GMT" + "Thu, 30 Jul 2015 17:03:11 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem/jobs?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0vam9icz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", + "RequestUri": "/jobs/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGhpcmR0ZXN0SWQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "cae8dfd6-5c34-448d-88bf-877d91fb727d" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:12 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "43a79140-52cd-44a8-bfa5-b36500258f2b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "7e30e0fd-e0dd-44a3-829b-cd8ba7d3f080" + "cae8dfd6-5c34-448d-88bf-877d91fb727d" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:03:11 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGhpcmR0ZXN0SWQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "cae8dfd6-5c34-448d-88bf-877d91fb727d" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:30:09 GMT" + "Thu, 30 Jul 2015 17:03:12 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.batch.core.windows.net/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"name\": \"job-0000000002\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000002\",\r\n \"eTag\": \"0x8D28894C96E9943\",\r\n \"lastModified\": \"2015-07-09T19:30:02.8667203Z\",\r\n \"creationTime\": \"2015-07-09T19:30:02.8494213Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:30:02.8667203Z\",\r\n \"poolName\": \"testPool\",\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T19:30:02.8667203Z\"\r\n }\r\n },\r\n {\r\n \"name\": \"job-0000000001\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testWorkItem/jobs/job-0000000001\",\r\n \"eTag\": \"0x8D28894A60FFFC2\",\r\n \"lastModified\": \"2015-07-09T19:29:03.5264962Z\",\r\n \"creationTime\": \"2015-07-09T19:29:02.8873755Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-09T19:29:04.449729Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-09T19:29:02.9033103Z\",\r\n \"poolName\": \"testPool\",\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T19:29:02.9033103Z\",\r\n \"endTime\": \"2015-07-09T19:29:04.449729Z\",\r\n \"terminateReason\": \"UserTerminate\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "4b93591a-459b-455e-84f6-a8b35e473572" + "43a79140-52cd-44a8-bfa5-b36500258f2b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "cae8dfd6-5c34-448d-88bf-877d91fb727d" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:30:09 GMT" + "Thu, 30 Jul 2015 17:03:11 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testWorkItem?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0V29ya0l0ZW0/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/jobs/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGhpcmR0ZXN0SWQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "cae8dfd6-5c34-448d-88bf-877d91fb727d" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:03:12 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "43a79140-52cd-44a8-bfa5-b36500258f2b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "feb2e643-4c46-4ee4-82e8-18e10ea96148" + "cae8dfd6-5c34-448d-88bf-877d91fb727d" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:03:11 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/thirdtestId?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvdGhpcmR0ZXN0SWQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "cae8dfd6-5c34-448d-88bf-877d91fb727d" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:30:09 GMT" + "Thu, 30 Jul 2015 17:03:12 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -1276,16 +1439,19 @@ "chunked" ], "request-id": [ - "e2cd96cc-2591-4ae3-ab31-5bd76066298a" + "43a79140-52cd-44a8-bfa5-b36500258f2b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "cae8dfd6-5c34-448d-88bf-877d91fb727d" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:30:09 GMT" + "Thu, 30 Jul 2015 17:03:11 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestNewJob.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestNewJob.json new file mode 100644 index 000000000000..1db8593e0595 --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.JobTests/TestNewJob.json @@ -0,0 +1,1268 @@ +{ + "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}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14958" + ], + "x-ms-request-id": [ + "597c4619-25cd-4e65-a616-8e2fd34f6a1a" + ], + "x-ms-correlation-request-id": [ + "597c4619-25cd-4e65-a616-8e2fd34f6a1a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T171851Z:597c4619-25cd-4e65-a616-8e2fd34f6a1a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:18:50 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-07-01" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.eastus.batch.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "323" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:18:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "bf38649d-941b-475f-b7ea-c25b654fe385" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14962" + ], + "x-ms-request-id": [ + "189d7281-d7ec-42b9-b2a0-52c10c01a06d" + ], + "x-ms-correlation-request-id": [ + "189d7281-d7ec-42b9-b2a0-52c10c01a06d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T171852Z:189d7281-d7ec-42b9-b2a0-52c10c01a06d" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:18:51 GMT" + ], + "ETag": [ + "0x8D29902F09B724E" + ], + "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": [ + "a5d7a835-daa7-4c8b-a449-c1e3692b22e7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1185" + ], + "x-ms-request-id": [ + "3e47c6de-584f-4d0d-a178-27634868cf99" + ], + "x-ms-correlation-request-id": [ + "3e47c6de-584f-4d0d-a178-27634868cf99" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150730T171852Z:3e47c6de-584f-4d0d-a178-27634868cf99" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 30 Jul 2015 17:18:52 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\": \"simple\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "89" + ], + "client-request-id": [ + "a7d366c2-8261-49f5-8b31-840b7b861648" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18: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": [ + "Thu, 30 Jul 2015 17:18:52 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "a837e058-1765-47e2-9e33-0adc59db1cae" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "a7d366c2-8261-49f5-8b31-840b7b861648" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Date": [ + "Thu, 30 Jul 2015 17:18:52 GMT" + ], + "ETag": [ + "0x8D29902F129221A" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"complex\",\r\n \"displayName\": \"displayName\",\r\n \"priority\": 1,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P1D\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"jobManagerTask\": {\r\n \"id\": \"jobManager\",\r\n \"displayName\": \"jobManagerDisplay\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"filePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"name1\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"name2\",\r\n \"value\": \"value2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"PT1H\"\r\n },\r\n \"killJobOnCompletion\": false,\r\n \"runElevated\": false\r\n },\r\n \"jobPreparationTask\": {\r\n \"id\": \"jobPrep\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobPrepFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobPrepName1\",\r\n \"value\": \"jobPrepValue1\"\r\n },\r\n {\r\n \"name\": \"jobPrepName2\",\r\n \"value\": \"jobPrepValue2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxTaskRetryCount\": 2\r\n },\r\n \"runElevated\": false\r\n },\r\n \"jobReleaseTask\": {\r\n \"id\": \"jobRelease\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobReleaseFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobReleaseName1\",\r\n \"value\": \"jobReleaseValue1\"\r\n },\r\n {\r\n \"name\": \"jobReleaseName2\",\r\n \"value\": \"jobReleaseValue2\"\r\n }\r\n ],\r\n \"runElevated\": false\r\n },\r\n \"commonEnvironmentSettings\": [\r\n {\r\n \"name\": \"commonEnv1\",\r\n \"value\": \"envValue1\"\r\n },\r\n {\r\n \"name\": \"commonEnv2\",\r\n \"value\": \"envValue2\"\r\n }\r\n ],\r\n \"poolInfo\": {\r\n \"autoPoolSpecification\": {\r\n \"autoPoolIdPrefix\": \"TestSpecPrefix\",\r\n \"poolLifetimeOption\": \"job\",\r\n \"keepAlive\": false,\r\n \"pool\": {\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"targetDedicated\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c dir /s\"\r\n },\r\n \"certificateReferences\": [\r\n {\r\n \"thumbprint\": \"0123456789ABCDEF\",\r\n \"thumbprintAlgorithm\": \"sha1\",\r\n \"storeLocation\": \"localmachine\",\r\n \"storeName\": \"certStore\",\r\n \"visibility\": \"starttask\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"meta2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"meta1\",\r\n \"value\": \"value1\"\r\n }\r\n ]\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "2797" + ], + "client-request-id": [ + "5ef09a94-951d-469b-be11-14b2ccd49ae7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18: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": [ + "Thu, 30 Jul 2015 17:18:53 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b0440fd1-5302-4b3b-ad1e-2aacef8080cf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "5ef09a94-951d-469b-be11-14b2ccd49ae7" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Date": [ + "Thu, 30 Jul 2015 17:18:52 GMT" + ], + "ETag": [ + "0x8D29902F17B92CF" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"complex\",\r\n \"displayName\": \"displayName\",\r\n \"priority\": 1,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P1D\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"jobManagerTask\": {\r\n \"id\": \"jobManager\",\r\n \"displayName\": \"jobManagerDisplay\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"filePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"name1\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"name2\",\r\n \"value\": \"value2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"PT1H\"\r\n },\r\n \"killJobOnCompletion\": false,\r\n \"runElevated\": false\r\n },\r\n \"jobPreparationTask\": {\r\n \"id\": \"jobPrep\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobPrepFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobPrepName1\",\r\n \"value\": \"jobPrepValue1\"\r\n },\r\n {\r\n \"name\": \"jobPrepName2\",\r\n \"value\": \"jobPrepValue2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxTaskRetryCount\": 2\r\n },\r\n \"runElevated\": false\r\n },\r\n \"jobReleaseTask\": {\r\n \"id\": \"jobRelease\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobReleaseFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobReleaseName1\",\r\n \"value\": \"jobReleaseValue1\"\r\n },\r\n {\r\n \"name\": \"jobReleaseName2\",\r\n \"value\": \"jobReleaseValue2\"\r\n }\r\n ],\r\n \"runElevated\": false\r\n },\r\n \"commonEnvironmentSettings\": [\r\n {\r\n \"name\": \"commonEnv1\",\r\n \"value\": \"envValue1\"\r\n },\r\n {\r\n \"name\": \"commonEnv2\",\r\n \"value\": \"envValue2\"\r\n }\r\n ],\r\n \"poolInfo\": {\r\n \"autoPoolSpecification\": {\r\n \"autoPoolIdPrefix\": \"TestSpecPrefix\",\r\n \"poolLifetimeOption\": \"job\",\r\n \"keepAlive\": false,\r\n \"pool\": {\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"targetDedicated\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c dir /s\"\r\n },\r\n \"certificateReferences\": [\r\n {\r\n \"thumbprint\": \"0123456789ABCDEF\",\r\n \"thumbprintAlgorithm\": \"sha1\",\r\n \"storeLocation\": \"localmachine\",\r\n \"storeName\": \"certStore\",\r\n \"visibility\": \"starttask\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"meta2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"meta1\",\r\n \"value\": \"value1\"\r\n }\r\n ]\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "2797" + ], + "client-request-id": [ + "5ef09a94-951d-469b-be11-14b2ccd49ae7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18: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": [ + "Thu, 30 Jul 2015 17:18:53 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b0440fd1-5302-4b3b-ad1e-2aacef8080cf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "5ef09a94-951d-469b-be11-14b2ccd49ae7" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Date": [ + "Thu, 30 Jul 2015 17:18:52 GMT" + ], + "ETag": [ + "0x8D29902F17B92CF" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"complex\",\r\n \"displayName\": \"displayName\",\r\n \"priority\": 1,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P1D\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"jobManagerTask\": {\r\n \"id\": \"jobManager\",\r\n \"displayName\": \"jobManagerDisplay\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"filePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"name1\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"name2\",\r\n \"value\": \"value2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"PT1H\"\r\n },\r\n \"killJobOnCompletion\": false,\r\n \"runElevated\": false\r\n },\r\n \"jobPreparationTask\": {\r\n \"id\": \"jobPrep\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobPrepFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobPrepName1\",\r\n \"value\": \"jobPrepValue1\"\r\n },\r\n {\r\n \"name\": \"jobPrepName2\",\r\n \"value\": \"jobPrepValue2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxTaskRetryCount\": 2\r\n },\r\n \"runElevated\": false\r\n },\r\n \"jobReleaseTask\": {\r\n \"id\": \"jobRelease\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobReleaseFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobReleaseName1\",\r\n \"value\": \"jobReleaseValue1\"\r\n },\r\n {\r\n \"name\": \"jobReleaseName2\",\r\n \"value\": \"jobReleaseValue2\"\r\n }\r\n ],\r\n \"runElevated\": false\r\n },\r\n \"commonEnvironmentSettings\": [\r\n {\r\n \"name\": \"commonEnv1\",\r\n \"value\": \"envValue1\"\r\n },\r\n {\r\n \"name\": \"commonEnv2\",\r\n \"value\": \"envValue2\"\r\n }\r\n ],\r\n \"poolInfo\": {\r\n \"autoPoolSpecification\": {\r\n \"autoPoolIdPrefix\": \"TestSpecPrefix\",\r\n \"poolLifetimeOption\": \"job\",\r\n \"keepAlive\": false,\r\n \"pool\": {\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"targetDedicated\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c dir /s\"\r\n },\r\n \"certificateReferences\": [\r\n {\r\n \"thumbprint\": \"0123456789ABCDEF\",\r\n \"thumbprintAlgorithm\": \"sha1\",\r\n \"storeLocation\": \"localmachine\",\r\n \"storeName\": \"certStore\",\r\n \"visibility\": \"starttask\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"meta2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"meta1\",\r\n \"value\": \"value1\"\r\n }\r\n ]\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "2797" + ], + "client-request-id": [ + "5ef09a94-951d-469b-be11-14b2ccd49ae7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18: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": [ + "Thu, 30 Jul 2015 17:18:53 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b0440fd1-5302-4b3b-ad1e-2aacef8080cf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "5ef09a94-951d-469b-be11-14b2ccd49ae7" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Date": [ + "Thu, 30 Jul 2015 17:18:52 GMT" + ], + "ETag": [ + "0x8D29902F17B92CF" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/job-1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/simple?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvc2ltcGxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6f8d3fe8-d222-4831-88ad-d95c367b2cdf" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:52 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\": \"simple\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/simple\",\r\n \"eTag\": \"0x8D29902F129221A\",\r\n \"lastModified\": \"2015-07-30T17:18:52.765033Z\",\r\n \"creationTime\": \"2015-07-30T17:18:52.7490243Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:18:52.765033Z\",\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-07-30T17:18:52.765033Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:18:52 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ceecddc1-ccd8-47a4-9000-215932094007" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6f8d3fe8-d222-4831-88ad-d95c367b2cdf" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:18:52 GMT" + ], + "ETag": [ + "0x8D29902F129221A" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/simple?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvc2ltcGxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6f8d3fe8-d222-4831-88ad-d95c367b2cdf" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:52 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\": \"simple\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/simple\",\r\n \"eTag\": \"0x8D29902F129221A\",\r\n \"lastModified\": \"2015-07-30T17:18:52.765033Z\",\r\n \"creationTime\": \"2015-07-30T17:18:52.7490243Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:18:52.765033Z\",\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-07-30T17:18:52.765033Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:18:52 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ceecddc1-ccd8-47a4-9000-215932094007" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6f8d3fe8-d222-4831-88ad-d95c367b2cdf" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:18:52 GMT" + ], + "ETag": [ + "0x8D29902F129221A" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvY29tcGxleD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "a1f35e5d-cc69-4b04-99c8-e250b3f304b4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:53 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\": \"complex\",\r\n \"displayName\": \"displayName\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/complex\",\r\n \"eTag\": \"0x8D29902F17B92CF\",\r\n \"lastModified\": \"2015-07-30T17:18:53.3053135Z\",\r\n \"creationTime\": \"2015-07-30T17:18:53.2713085Z\",\r\n \"state\": \"terminating\",\r\n \"stateTransitionTime\": \"2015-07-30T17:18:53.3844489Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:18:53.3053135Z\",\r\n \"priority\": 1,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P1D\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"jobManagerTask\": {\r\n \"id\": \"jobManager\",\r\n \"displayName\": \"jobManagerDisplay\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"filePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"name1\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"name2\",\r\n \"value\": \"value2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"PT1H\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"runElevated\": false,\r\n \"runExclusive\": true,\r\n \"killJobOnCompletion\": false\r\n },\r\n \"jobPreparationTask\": {\r\n \"id\": \"jobPrep\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobPrepFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobPrepName1\",\r\n \"value\": \"jobPrepValue1\"\r\n },\r\n {\r\n \"name\": \"jobPrepName2\",\r\n \"value\": \"jobPrepValue2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 2\r\n },\r\n \"runElevated\": false,\r\n \"waitForSuccess\": true,\r\n \"rerunOnNodeRebootAfterSuccess\": true\r\n },\r\n \"jobReleaseTask\": {\r\n \"id\": \"jobRelease\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobReleaseFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobReleaseName1\",\r\n \"value\": \"jobReleaseValue1\"\r\n },\r\n {\r\n \"name\": \"jobReleaseName2\",\r\n \"value\": \"jobReleaseValue2\"\r\n }\r\n ],\r\n \"maxWallClockTime\": \"PT15M\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"runElevated\": false\r\n },\r\n \"commonEnvironmentSettings\": [\r\n {\r\n \"name\": \"commonEnv1\",\r\n \"value\": \"envValue1\"\r\n },\r\n {\r\n \"name\": \"commonEnv2\",\r\n \"value\": \"envValue2\"\r\n }\r\n ],\r\n \"poolInfo\": {\r\n \"autoPoolSpecification\": {\r\n \"autoPoolIdPrefix\": \"TestSpecPrefix\",\r\n \"poolLifetimeOption\": \"job\",\r\n \"keepAlive\": false,\r\n \"pool\": {\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n },\r\n \"resizeTimeout\": \"PT5M\",\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"certificateReferences\": [\r\n {\r\n \"thumbprint\": \"0123456789abcdef\",\r\n \"thumbprintAlgorithm\": \"sha1\",\r\n \"storeLocation\": \"LocalMachine\",\r\n \"storeName\": \"certStore\",\r\n \"visibility\": \"starttask\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"meta2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"meta1\",\r\n \"value\": \"value1\"\r\n }\r\n ],\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T17:18:53.3053135Z\",\r\n \"poolId\": \"TestSpecPrefix_76E591E4-4A82-4A8F-ABED-340C445563D1\",\r\n \"schedulingError\": {\r\n \"category\": \"UserError\",\r\n \"code\": \"InvalidCertificatesInAutoPool\",\r\n \"message\": \"One or more certificates specified for the pool are invalid\",\r\n \"details\": [\r\n {\r\n \"name\": \"sha1-0123456789abcdef\",\r\n \"value\": \"The specified certificate does not exist.\"\r\n }\r\n ]\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:18:53 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "64fa4f93-113f-4995-b8b5-89635acb532a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "a1f35e5d-cc69-4b04-99c8-e250b3f304b4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:18:52 GMT" + ], + "ETag": [ + "0x8D29902F17B92CF" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvY29tcGxleD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "a1f35e5d-cc69-4b04-99c8-e250b3f304b4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:53 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\": \"complex\",\r\n \"displayName\": \"displayName\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/complex\",\r\n \"eTag\": \"0x8D29902F17B92CF\",\r\n \"lastModified\": \"2015-07-30T17:18:53.3053135Z\",\r\n \"creationTime\": \"2015-07-30T17:18:53.2713085Z\",\r\n \"state\": \"terminating\",\r\n \"stateTransitionTime\": \"2015-07-30T17:18:53.3844489Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:18:53.3053135Z\",\r\n \"priority\": 1,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P1D\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"jobManagerTask\": {\r\n \"id\": \"jobManager\",\r\n \"displayName\": \"jobManagerDisplay\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"filePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"name1\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"name2\",\r\n \"value\": \"value2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"PT1H\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"runElevated\": false,\r\n \"runExclusive\": true,\r\n \"killJobOnCompletion\": false\r\n },\r\n \"jobPreparationTask\": {\r\n \"id\": \"jobPrep\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobPrepFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobPrepName1\",\r\n \"value\": \"jobPrepValue1\"\r\n },\r\n {\r\n \"name\": \"jobPrepName2\",\r\n \"value\": \"jobPrepValue2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 2\r\n },\r\n \"runElevated\": false,\r\n \"waitForSuccess\": true,\r\n \"rerunOnNodeRebootAfterSuccess\": true\r\n },\r\n \"jobReleaseTask\": {\r\n \"id\": \"jobRelease\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobReleaseFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobReleaseName1\",\r\n \"value\": \"jobReleaseValue1\"\r\n },\r\n {\r\n \"name\": \"jobReleaseName2\",\r\n \"value\": \"jobReleaseValue2\"\r\n }\r\n ],\r\n \"maxWallClockTime\": \"PT15M\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"runElevated\": false\r\n },\r\n \"commonEnvironmentSettings\": [\r\n {\r\n \"name\": \"commonEnv1\",\r\n \"value\": \"envValue1\"\r\n },\r\n {\r\n \"name\": \"commonEnv2\",\r\n \"value\": \"envValue2\"\r\n }\r\n ],\r\n \"poolInfo\": {\r\n \"autoPoolSpecification\": {\r\n \"autoPoolIdPrefix\": \"TestSpecPrefix\",\r\n \"poolLifetimeOption\": \"job\",\r\n \"keepAlive\": false,\r\n \"pool\": {\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n },\r\n \"resizeTimeout\": \"PT5M\",\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"certificateReferences\": [\r\n {\r\n \"thumbprint\": \"0123456789abcdef\",\r\n \"thumbprintAlgorithm\": \"sha1\",\r\n \"storeLocation\": \"LocalMachine\",\r\n \"storeName\": \"certStore\",\r\n \"visibility\": \"starttask\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"meta2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"meta1\",\r\n \"value\": \"value1\"\r\n }\r\n ],\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T17:18:53.3053135Z\",\r\n \"poolId\": \"TestSpecPrefix_76E591E4-4A82-4A8F-ABED-340C445563D1\",\r\n \"schedulingError\": {\r\n \"category\": \"UserError\",\r\n \"code\": \"InvalidCertificatesInAutoPool\",\r\n \"message\": \"One or more certificates specified for the pool are invalid\",\r\n \"details\": [\r\n {\r\n \"name\": \"sha1-0123456789abcdef\",\r\n \"value\": \"The specified certificate does not exist.\"\r\n }\r\n ]\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:18:53 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "64fa4f93-113f-4995-b8b5-89635acb532a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "a1f35e5d-cc69-4b04-99c8-e250b3f304b4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:18:52 GMT" + ], + "ETag": [ + "0x8D29902F17B92CF" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvY29tcGxleD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "a1f35e5d-cc69-4b04-99c8-e250b3f304b4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:53 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\": \"complex\",\r\n \"displayName\": \"displayName\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/complex\",\r\n \"eTag\": \"0x8D29902F17B92CF\",\r\n \"lastModified\": \"2015-07-30T17:18:53.3053135Z\",\r\n \"creationTime\": \"2015-07-30T17:18:53.2713085Z\",\r\n \"state\": \"terminating\",\r\n \"stateTransitionTime\": \"2015-07-30T17:18:53.3844489Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:18:53.3053135Z\",\r\n \"priority\": 1,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P1D\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"jobManagerTask\": {\r\n \"id\": \"jobManager\",\r\n \"displayName\": \"jobManagerDisplay\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"filePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"name1\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"name2\",\r\n \"value\": \"value2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"PT1H\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"runElevated\": false,\r\n \"runExclusive\": true,\r\n \"killJobOnCompletion\": false\r\n },\r\n \"jobPreparationTask\": {\r\n \"id\": \"jobPrep\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobPrepFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobPrepName1\",\r\n \"value\": \"jobPrepValue1\"\r\n },\r\n {\r\n \"name\": \"jobPrepName2\",\r\n \"value\": \"jobPrepValue2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 2\r\n },\r\n \"runElevated\": false,\r\n \"waitForSuccess\": true,\r\n \"rerunOnNodeRebootAfterSuccess\": true\r\n },\r\n \"jobReleaseTask\": {\r\n \"id\": \"jobRelease\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobReleaseFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobReleaseName1\",\r\n \"value\": \"jobReleaseValue1\"\r\n },\r\n {\r\n \"name\": \"jobReleaseName2\",\r\n \"value\": \"jobReleaseValue2\"\r\n }\r\n ],\r\n \"maxWallClockTime\": \"PT15M\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"runElevated\": false\r\n },\r\n \"commonEnvironmentSettings\": [\r\n {\r\n \"name\": \"commonEnv1\",\r\n \"value\": \"envValue1\"\r\n },\r\n {\r\n \"name\": \"commonEnv2\",\r\n \"value\": \"envValue2\"\r\n }\r\n ],\r\n \"poolInfo\": {\r\n \"autoPoolSpecification\": {\r\n \"autoPoolIdPrefix\": \"TestSpecPrefix\",\r\n \"poolLifetimeOption\": \"job\",\r\n \"keepAlive\": false,\r\n \"pool\": {\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n },\r\n \"resizeTimeout\": \"PT5M\",\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"certificateReferences\": [\r\n {\r\n \"thumbprint\": \"0123456789abcdef\",\r\n \"thumbprintAlgorithm\": \"sha1\",\r\n \"storeLocation\": \"LocalMachine\",\r\n \"storeName\": \"certStore\",\r\n \"visibility\": \"starttask\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"meta2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"meta1\",\r\n \"value\": \"value1\"\r\n }\r\n ],\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T17:18:53.3053135Z\",\r\n \"poolId\": \"TestSpecPrefix_76E591E4-4A82-4A8F-ABED-340C445563D1\",\r\n \"schedulingError\": {\r\n \"category\": \"UserError\",\r\n \"code\": \"InvalidCertificatesInAutoPool\",\r\n \"message\": \"One or more certificates specified for the pool are invalid\",\r\n \"details\": [\r\n {\r\n \"name\": \"sha1-0123456789abcdef\",\r\n \"value\": \"The specified certificate does not exist.\"\r\n }\r\n ]\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:18:53 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "64fa4f93-113f-4995-b8b5-89635acb532a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "a1f35e5d-cc69-4b04-99c8-e250b3f304b4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:18:52 GMT" + ], + "ETag": [ + "0x8D29902F17B92CF" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvY29tcGxleD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "a1f35e5d-cc69-4b04-99c8-e250b3f304b4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:53 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\": \"complex\",\r\n \"displayName\": \"displayName\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/complex\",\r\n \"eTag\": \"0x8D29902F17B92CF\",\r\n \"lastModified\": \"2015-07-30T17:18:53.3053135Z\",\r\n \"creationTime\": \"2015-07-30T17:18:53.2713085Z\",\r\n \"state\": \"terminating\",\r\n \"stateTransitionTime\": \"2015-07-30T17:18:53.3844489Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:18:53.3053135Z\",\r\n \"priority\": 1,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P1D\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"jobManagerTask\": {\r\n \"id\": \"jobManager\",\r\n \"displayName\": \"jobManagerDisplay\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"filePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"name1\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"name2\",\r\n \"value\": \"value2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"PT1H\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"runElevated\": false,\r\n \"runExclusive\": true,\r\n \"killJobOnCompletion\": false\r\n },\r\n \"jobPreparationTask\": {\r\n \"id\": \"jobPrep\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobPrepFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobPrepName1\",\r\n \"value\": \"jobPrepValue1\"\r\n },\r\n {\r\n \"name\": \"jobPrepName2\",\r\n \"value\": \"jobPrepValue2\"\r\n }\r\n ],\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 2\r\n },\r\n \"runElevated\": false,\r\n \"waitForSuccess\": true,\r\n \"rerunOnNodeRebootAfterSuccess\": true\r\n },\r\n \"jobReleaseTask\": {\r\n \"id\": \"jobRelease\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"jobReleaseFilePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"jobReleaseName1\",\r\n \"value\": \"jobReleaseValue1\"\r\n },\r\n {\r\n \"name\": \"jobReleaseName2\",\r\n \"value\": \"jobReleaseValue2\"\r\n }\r\n ],\r\n \"maxWallClockTime\": \"PT15M\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"runElevated\": false\r\n },\r\n \"commonEnvironmentSettings\": [\r\n {\r\n \"name\": \"commonEnv1\",\r\n \"value\": \"envValue1\"\r\n },\r\n {\r\n \"name\": \"commonEnv2\",\r\n \"value\": \"envValue2\"\r\n }\r\n ],\r\n \"poolInfo\": {\r\n \"autoPoolSpecification\": {\r\n \"autoPoolIdPrefix\": \"TestSpecPrefix\",\r\n \"poolLifetimeOption\": \"job\",\r\n \"keepAlive\": false,\r\n \"pool\": {\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n },\r\n \"resizeTimeout\": \"PT5M\",\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"certificateReferences\": [\r\n {\r\n \"thumbprint\": \"0123456789abcdef\",\r\n \"thumbprintAlgorithm\": \"sha1\",\r\n \"storeLocation\": \"LocalMachine\",\r\n \"storeName\": \"certStore\",\r\n \"visibility\": \"starttask\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"meta2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"meta1\",\r\n \"value\": \"value1\"\r\n }\r\n ],\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T17:18:53.3053135Z\",\r\n \"poolId\": \"TestSpecPrefix_76E591E4-4A82-4A8F-ABED-340C445563D1\",\r\n \"schedulingError\": {\r\n \"category\": \"UserError\",\r\n \"code\": \"InvalidCertificatesInAutoPool\",\r\n \"message\": \"One or more certificates specified for the pool are invalid\",\r\n \"details\": [\r\n {\r\n \"name\": \"sha1-0123456789abcdef\",\r\n \"value\": \"The specified certificate does not exist.\"\r\n }\r\n ]\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:18:53 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "64fa4f93-113f-4995-b8b5-89635acb532a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "a1f35e5d-cc69-4b04-99c8-e250b3f304b4" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:18:52 GMT" + ], + "ETag": [ + "0x8D29902F17B92CF" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/simple?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvc2ltcGxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ab3d048e-dc55-466a-8a02-2d066dc018ea" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:53 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": [ + "259972bf-1852-4d27-957c-41afccace681" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ab3d048e-dc55-466a-8a02-2d066dc018ea" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:18:52 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/simple?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvc2ltcGxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ab3d048e-dc55-466a-8a02-2d066dc018ea" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:53 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": [ + "259972bf-1852-4d27-957c-41afccace681" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ab3d048e-dc55-466a-8a02-2d066dc018ea" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:18:52 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/simple?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvc2ltcGxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ab3d048e-dc55-466a-8a02-2d066dc018ea" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:53 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": [ + "259972bf-1852-4d27-957c-41afccace681" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ab3d048e-dc55-466a-8a02-2d066dc018ea" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:18:52 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/simple?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvc2ltcGxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ab3d048e-dc55-466a-8a02-2d066dc018ea" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:53 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": [ + "259972bf-1852-4d27-957c-41afccace681" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ab3d048e-dc55-466a-8a02-2d066dc018ea" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:18:52 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/simple?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvc2ltcGxlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ab3d048e-dc55-466a-8a02-2d066dc018ea" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:53 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": [ + "259972bf-1852-4d27-957c-41afccace681" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ab3d048e-dc55-466a-8a02-2d066dc018ea" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:18:52 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvY29tcGxleD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e56e8a94-ef4b-4e66-a593-b24abfbc5973" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:53 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": [ + "e64b32b6-76d4-4fcf-92d6-36080d511378" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e56e8a94-ef4b-4e66-a593-b24abfbc5973" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:18:52 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvY29tcGxleD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e56e8a94-ef4b-4e66-a593-b24abfbc5973" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:53 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": [ + "e64b32b6-76d4-4fcf-92d6-36080d511378" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e56e8a94-ef4b-4e66-a593-b24abfbc5973" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:18:52 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvY29tcGxleD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e56e8a94-ef4b-4e66-a593-b24abfbc5973" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:53 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": [ + "e64b32b6-76d4-4fcf-92d6-36080d511378" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e56e8a94-ef4b-4e66-a593-b24abfbc5973" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:18:52 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvY29tcGxleD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e56e8a94-ef4b-4e66-a593-b24abfbc5973" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:53 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": [ + "e64b32b6-76d4-4fcf-92d6-36080d511378" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e56e8a94-ef4b-4e66-a593-b24abfbc5973" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:18:52 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvY29tcGxleD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e56e8a94-ef4b-4e66-a593-b24abfbc5973" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:53 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": [ + "e64b32b6-76d4-4fcf-92d6-36080d511378" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e56e8a94-ef4b-4e66-a593-b24abfbc5973" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:18:52 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvY29tcGxleD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e56e8a94-ef4b-4e66-a593-b24abfbc5973" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:18:53 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": [ + "e64b32b6-76d4-4fcf-92d6-36080d511378" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e56e8a94-ef4b-4e66-a593-b24abfbc5973" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:18:52 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/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestDeletePool.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestDeletePool.json index fc47365a3b00..d4b44a6aee99 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestDeletePool.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestDeletePool.json @@ -10,10 +10,10 @@ "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}", + "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/cmdletexample\",\r\n \"name\": \"cmdletexample\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "237" + "475" ], "Content-Type": [ "application/json; charset=utf-8" @@ -28,13 +28,13 @@ "14987" ], "x-ms-request-id": [ - "4cb09d50-9ef4-418a-aeb8-7f4f124b44a3" + "6c257555-0dba-443c-9aa8-bdd4f51bbe67" ], "x-ms-correlation-request-id": [ - "4cb09d50-9ef4-418a-aeb8-7f4f124b44a3" + "6c257555-0dba-443c-9aa8-bdd4f51bbe67" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210143Z:4cb09d50-9ef4-418a-aeb8-7f4f124b44a3" + "WESTUS:20150730T165207Z:6c257555-0dba-443c-9aa8-bdd4f51bbe67" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:01:43 GMT" + "Thu, 30 Jul 2015 16:52:07 GMT" ] }, "StatusCode": 200 @@ -58,10 +58,10 @@ "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}", + "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/cmdletexample\",\r\n \"name\": \"cmdletexample\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "237" + "475" ], "Content-Type": [ "application/json; charset=utf-8" @@ -76,13 +76,13 @@ "14986" ], "x-ms-request-id": [ - "843705c3-a119-41e2-8f2c-3db57c74e217" + "118f67e1-bf51-44e4-98e4-fa138ed516a2" ], "x-ms-correlation-request-id": [ - "843705c3-a119-41e2-8f2c-3db57c74e217" + "118f67e1-bf51-44e4-98e4-fa138ed516a2" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210146Z:843705c3-a119-41e2-8f2c-3db57c74e217" + "WESTUS:20150730T165209Z:118f67e1-bf51-44e4-98e4-fa138ed516a2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:01:46 GMT" + "Thu, 30 Jul 2015 16:52:09 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 21:01:44 GMT" + "Thu, 30 Jul 2015 16:52:08 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "ee8a3642-fa4b-4e7b-ba23-16ec6f8fdf9a" + "6664e957-70a8-40cf-ace4-8f8386a79460" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14993" ], "x-ms-request-id": [ - "184b62a0-739d-4b85-b31f-6d099927922a" + "2d9d7771-788f-4cec-8c4e-48b2197412cc" ], "x-ms-correlation-request-id": [ - "184b62a0-739d-4b85-b31f-6d099927922a" + "2d9d7771-788f-4cec-8c4e-48b2197412cc" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210144Z:184b62a0-739d-4b85-b31f-6d099927922a" + "WESTUS:20150730T165208Z:2d9d7771-788f-4cec-8c4e-48b2197412cc" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:01:44 GMT" + "Thu, 30 Jul 2015 16:52:07 GMT" ], "ETag": [ - "0x8D288A198ADB96D" + "0x8D298FF34C77E95" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 21:01:46 GMT" + "Thu, 30 Jul 2015 16:52:09 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "46fee2ab-4c82-4924-8336-f6779030d7c0" + "dde8088d-d612-43b8-9bd2-6c585fdaccb9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" + "14992" ], "x-ms-request-id": [ - "3289f9f8-2ee1-4444-a387-d8ccba3ad3f8" + "bbcae546-6a98-464f-8423-51c5c5f80443" ], "x-ms-correlation-request-id": [ - "3289f9f8-2ee1-4444-a387-d8ccba3ad3f8" + "bbcae546-6a98-464f-8423-51c5c5f80443" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210146Z:3289f9f8-2ee1-4444-a387-d8ccba3ad3f8" + "WESTUS:20150730T165209Z:bbcae546-6a98-464f-8423-51c5c5f80443" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:01:46 GMT" + "Thu, 30 Jul 2015 16:52:09 GMT" ], "ETag": [ - "0x8D288A199DD35A9" + "0x8D298FF357C9FB3" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,7 +250,7 @@ "no-cache" ], "request-id": [ - "48046a39-0292-44a8-9d41-5f2a5e05c1c8" + "14816897-bfb7-4372-9c97-645f271aff2c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -259,19 +259,19 @@ "1199" ], "x-ms-request-id": [ - "ca3a221d-e4ab-43e8-9e1d-7fe4e6f4afd3" + "942a7a01-4919-4839-b0b0-2844b8766ce4" ], "x-ms-correlation-request-id": [ - "ca3a221d-e4ab-43e8-9e1d-7fe4e6f4afd3" + "942a7a01-4919-4839-b0b0-2844b8766ce4" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210145Z:ca3a221d-e4ab-43e8-9e1d-7fe4e6f4afd3" + "WESTUS:20150730T165208Z:942a7a01-4919-4839-b0b0-2844b8766ce4" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:01:44 GMT" + "Thu, 30 Jul 2015 16:52:08 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,7 +307,7 @@ "no-cache" ], "request-id": [ - "c480e243-97dc-419e-a143-b88a5a1ee75e" + "004dbb97-d322-43f1-8ce9-49027be1d057" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -316,19 +316,19 @@ "1198" ], "x-ms-request-id": [ - "b3e08902-2851-41aa-8966-c9fac160af4b" + "330aabc5-d909-4f2c-8fb5-962ad2c18a9e" ], "x-ms-correlation-request-id": [ - "b3e08902-2851-41aa-8966-c9fac160af4b" + "330aabc5-d909-4f2c-8fb5-962ad2c18a9e" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210146Z:b3e08902-2851-41aa-8966-c9fac160af4b" + "WESTUS:20150730T165209Z:330aabc5-d909-4f2c-8fb5-962ad2c18a9e" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:01:46 GMT" + "Thu, 30 Jul 2015 16:52:09 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,58 +337,62 @@ "StatusCode": 200 }, { - "RequestUri": "/pools?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testDelete\",\r\n \"tvmSize\": \"small\",\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"osFamily\": \"4\"\r\n}", + "RequestBody": "{\r\n \"id\": \"testDelete\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetDedicated\": 0,\r\n \"enableInterNodeCommunication\": false\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "201" - ], - "User-Agent": [ - "WA-Batch/1.0" + "135" ], "client-request-id": [ - "b65d0361-ff29-4f78-b916-9ec383282842" + "3dfa1b35-937e-400a-a93d-ed63ada5bb7e" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:52:08 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:01:45 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 21:01:46 GMT" + "Thu, 30 Jul 2015 16:52:08 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "284976b0-fd1b-4637-85d4-a12fb01d61c6" + "0a89026a-8c60-46d6-87cf-398caf5808e0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "3dfa1b35-937e-400a-a93d-ed63ada5bb7e" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/pools/testDelete" + "https://pstests.eastus.batch.azure.com/pools/testDelete" ], "Date": [ - "Thu, 09 Jul 2015 21:01:45 GMT" + "Thu, 30 Jul 2015 16:52:08 GMT" ], "ETag": [ - "0x8D288A1999610BE" + "0x8D298FF350A9C60" ], "Location": [ - "https://pstests.batch.core.windows.net/pools/testDelete" + "https://pstests.eastus.batch.azure.com/pools/testDelete" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -397,49 +401,53 @@ "StatusCode": 201 }, { - "RequestUri": "/pools/testDelete?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3REZWxldGU/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/pools/testDelete?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3REZWxldGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "0588adaf-52e7-4cc9-9720-24da716c3725" + "23a64063-2510-498d-ae48-2e88a0bb7cbc" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:52:09 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:01:46 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testDelete\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testDelete\",\r\n \"eTag\": \"0x8D288A1999610BE\",\r\n \"lastModified\": \"2015-07-09T21:01:46.0522174Z\",\r\n \"creationTime\": \"2015-07-09T21:01:46.0522174Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T21:01:46.0522174Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:01:46.1568298Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testDelete\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testDelete\",\r\n \"eTag\": \"0x8D298FF350A9C60\",\r\n \"lastModified\": \"2015-07-30T16:52:08.663152Z\",\r\n \"creationTime\": \"2015-07-30T16:52:08.663152Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:52:08.663152Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T16:52:08.7466241Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 09 Jul 2015 21:01:46 GMT" + "Thu, 30 Jul 2015 16:52:08 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "78bc60ad-1f0e-45d1-b33e-b3bc7d2ce8e8" + "374afe30-8b7e-4905-bccb-068f6ba09daf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "23a64063-2510-498d-ae48-2e88a0bb7cbc" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 21:01:47 GMT" + "Thu, 30 Jul 2015 16:52:09 GMT" ], "ETag": [ - "0x8D288A1999610BE" + "0x8D298FF350A9C60" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -448,22 +456,69 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testDelete?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3REZWxldGU/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/pools/testDelete?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3REZWxldGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "4215544c-22ec-4f80-a3ff-b41487dd56df" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:52:09 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b8f1006c-91da-4280-818b-5d76896f843c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "ad44a58c-fd3b-414d-9d61-e99816a0afb8" + "4215544c-22ec-4f80-a3ff-b41487dd56df" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:52:09 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testDelete?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3REZWxldGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4215544c-22ec-4f80-a3ff-b41487dd56df" ], "ocp-date": [ - "Thu, 09 Jul 2015 21:01:47 GMT" + "Thu, 30 Jul 2015 16:52:09 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -472,16 +527,19 @@ "chunked" ], "request-id": [ - "f0e3c1fd-a24b-4694-a7b5-d42c9d989ef3" + "b8f1006c-91da-4280-818b-5d76896f843c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "4215544c-22ec-4f80-a3ff-b41487dd56df" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 21:01:47 GMT" + "Thu, 30 Jul 2015 16:52:09 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -490,25 +548,124 @@ "StatusCode": 202 }, { - "RequestUri": "/pools?api-version=2014-10-01.1.0&$filter=name%20eq%20'testDelete'", - "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4wJiRmaWx0ZXI9bmFtZSUyMGVxJTIwJTI3dGVzdERlbGV0ZSUyNw==", + "RequestUri": "/pools?$filter=id%20eq%20'testDelete'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3REZWxldGUlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "e4eb00f9-b221-4e02-86dc-5b0d7d598d4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:52:09 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f7e71a67-cea6-457d-b6a8-7f48cc7d852d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "245a7dd4-fa23-4a10-8ef9-cd34d81ab159" + "e4eb00f9-b221-4e02-86dc-5b0d7d598d4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:52:09 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools?$filter=id%20eq%20'testDelete'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3REZWxldGUlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e4eb00f9-b221-4e02-86dc-5b0d7d598d4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:52:09 GMT" ], "return-client-request-id": [ - "False" + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f7e71a67-cea6-457d-b6a8-7f48cc7d852d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e4eb00f9-b221-4e02-86dc-5b0d7d598d4f" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:52:09 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools?$filter=id%20eq%20'testDelete'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3REZWxldGUlMjcmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e4eb00f9-b221-4e02-86dc-5b0d7d598d4f" ], "ocp-date": [ - "Thu, 09 Jul 2015 21:01:47 GMT" + "Thu, 30 Jul 2015 16:52:09 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.batch.core.windows.net/$metadata#pools\",\r\n \"value\": []\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": []\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" @@ -517,16 +674,19 @@ "chunked" ], "request-id": [ - "ee25b43f-a7cb-4641-aeac-13067fb098dd" + "f7e71a67-cea6-457d-b6a8-7f48cc7d852d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "e4eb00f9-b221-4e02-86dc-5b0d7d598d4f" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 21:01:47 GMT" + "Thu, 30 Jul 2015 16:52:09 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestDeletePoolPipeline.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestDeletePoolPipeline.json index 02f6faaa849e..dd9729d39c89 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestDeletePoolPipeline.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestDeletePoolPipeline.json @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14979" + "14962" ], "x-ms-request-id": [ - "fa0e8b91-d658-41d8-a773-1ad886021572" + "13c9b916-5cbe-45e0-8c61-c28c46f2c4f8" ], "x-ms-correlation-request-id": [ - "fa0e8b91-d658-41d8-a773-1ad886021572" + "13c9b916-5cbe-45e0-8c61-c28c46f2c4f8" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210242Z:fa0e8b91-d658-41d8-a773-1ad886021572" + "WESTUS:20150730T165228Z:13c9b916-5cbe-45e0-8c61-c28c46f2c4f8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:02:41 GMT" + "Thu, 30 Jul 2015 16:52:27 GMT" ] }, "StatusCode": 200 @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14978" + "14961" ], "x-ms-request-id": [ - "3174d756-4344-4bee-a1d8-91b5708de58d" + "dcf2516e-4b5a-4aa1-b81f-c06ac0082b55" ], "x-ms-correlation-request-id": [ - "3174d756-4344-4bee-a1d8-91b5708de58d" + "dcf2516e-4b5a-4aa1-b81f-c06ac0082b55" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210244Z:3174d756-4344-4bee-a1d8-91b5708de58d" + "WESTUS:20150730T165230Z:dcf2516e-4b5a-4aa1-b81f-c06ac0082b55" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:02:43 GMT" + "Thu, 30 Jul 2015 16:52:29 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 21:02:43 GMT" + "Thu, 30 Jul 2015 16:52:29 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "7d9bce68-7392-4e25-bee3-b2036809b84e" + "3e11d255-7b09-4f82-a5e2-7b1b5a1b34dc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14984" + "14985" ], "x-ms-request-id": [ - "7e3d2e4e-a822-4328-a59e-38335198b487" + "518b9e66-eb4f-4d2a-acee-c296bb6240c2" ], "x-ms-correlation-request-id": [ - "7e3d2e4e-a822-4328-a59e-38335198b487" + "518b9e66-eb4f-4d2a-acee-c296bb6240c2" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210243Z:7e3d2e4e-a822-4328-a59e-38335198b487" + "WESTUS:20150730T165229Z:518b9e66-eb4f-4d2a-acee-c296bb6240c2" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:02:42 GMT" + "Thu, 30 Jul 2015 16:52:28 GMT" ], "ETag": [ - "0x8D288A1BB911BD3" + "0x8D298FF415ED6ED" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 21:02:44 GMT" + "Thu, 30 Jul 2015 16:52:30 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "eca1ac95-71ef-476b-b2f2-807c871807b9" + "f2d8d81c-0ec8-446d-97f0-d28620d71839" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14983" + "14984" ], "x-ms-request-id": [ - "46bef400-915e-4827-bac9-2d8acc8e57a9" + "2931c06e-4f1b-4e7f-9513-67db672cb65f" ], "x-ms-correlation-request-id": [ - "46bef400-915e-4827-bac9-2d8acc8e57a9" + "2931c06e-4f1b-4e7f-9513-67db672cb65f" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210244Z:46bef400-915e-4827-bac9-2d8acc8e57a9" + "WESTUS:20150730T165230Z:2931c06e-4f1b-4e7f-9513-67db672cb65f" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:02:44 GMT" + "Thu, 30 Jul 2015 16:52:30 GMT" ], "ETag": [ - "0x8D288A1BCA062EF" + "0x8D298FF41F7E6C1" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "339af7f9-c43c-4023-8f8e-68cfb5703fd6" + "19bd8077-c655-46dd-b9c9-f53991c769bb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1186" + "1189" ], "x-ms-request-id": [ - "270ceea3-469e-4b2e-82d6-49fcb3022a8f" + "3b49c197-7508-45bb-abae-089fb8d2326f" ], "x-ms-correlation-request-id": [ - "270ceea3-469e-4b2e-82d6-49fcb3022a8f" + "3b49c197-7508-45bb-abae-089fb8d2326f" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210243Z:270ceea3-469e-4b2e-82d6-49fcb3022a8f" + "WESTUS:20150730T165229Z:3b49c197-7508-45bb-abae-089fb8d2326f" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:02:42 GMT" + "Thu, 30 Jul 2015 16:52:28 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "4f453d7e-699d-427f-aba1-a94760258e8d" + "f312bb05-8e19-4fb7-9797-5ce14f329e85" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1185" + "1188" ], "x-ms-request-id": [ - "09d8c5d6-7d30-4773-831d-34e22d0d43dd" + "68b3a7bf-027a-43aa-a3c8-33717b81cda1" ], "x-ms-correlation-request-id": [ - "09d8c5d6-7d30-4773-831d-34e22d0d43dd" + "68b3a7bf-027a-43aa-a3c8-33717b81cda1" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210245Z:09d8c5d6-7d30-4773-831d-34e22d0d43dd" + "WESTUS:20150730T165230Z:68b3a7bf-027a-43aa-a3c8-33717b81cda1" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:02:44 GMT" + "Thu, 30 Jul 2015 16:52:30 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,58 +337,62 @@ "StatusCode": 200 }, { - "RequestUri": "/pools?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testDeletePipe\",\r\n \"tvmSize\": \"small\",\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"osFamily\": \"4\"\r\n}", + "RequestBody": "{\r\n \"id\": \"testDeletePipe\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetDedicated\": 0,\r\n \"enableInterNodeCommunication\": false\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "205" - ], - "User-Agent": [ - "WA-Batch/1.0" + "139" ], "client-request-id": [ - "9974affc-0e48-4d2c-8dc9-f40cc45d8e42" + "981a6a41-5096-49fb-8151-e54e7506322b" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:52:29 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:02:43 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 21:02:44 GMT" + "Thu, 30 Jul 2015 16:52:29 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "18df1f05-acd7-472b-9141-702e25f97c92" + "39690b83-6d0f-4ed1-b27e-b04a2d07df11" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "981a6a41-5096-49fb-8151-e54e7506322b" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/pools/testDeletePipe" + "https://pstests.eastus.batch.azure.com/pools/testDeletePipe" ], "Date": [ - "Thu, 09 Jul 2015 21:02:43 GMT" + "Thu, 30 Jul 2015 16:52:29 GMT" ], "ETag": [ - "0x8D288A1BC580284" + "0x8D298FF4188A48E" ], "Location": [ - "https://pstests.batch.core.windows.net/pools/testDeletePipe" + "https://pstests.eastus.batch.azure.com/pools/testDeletePipe" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -397,49 +401,53 @@ "StatusCode": 201 }, { - "RequestUri": "/pools/testDeletePipe?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3REZWxldGVQaXBlP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools/testDeletePipe?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3REZWxldGVQaXBlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "55e80a90-7ac3-40ac-a610-607b95408abc" + "8317d11c-9415-4ccf-b3e6-3135bf09c127" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:52:30 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:02:45 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testDeletePipe\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testDeletePipe\",\r\n \"eTag\": \"0x8D288A1BC580284\",\r\n \"lastModified\": \"2015-07-09T21:02:44.365786Z\",\r\n \"creationTime\": \"2015-07-09T21:02:44.365786Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T21:02:44.365786Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:02:44.4557884Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testDeletePipe\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testDeletePipe\",\r\n \"eTag\": \"0x8D298FF4188A48E\",\r\n \"lastModified\": \"2015-07-30T16:52:29.6217742Z\",\r\n \"creationTime\": \"2015-07-30T16:52:29.6217742Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:52:29.6217742Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T16:52:29.7077717Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 09 Jul 2015 21:02:44 GMT" + "Thu, 30 Jul 2015 16:52:29 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "349833d8-0f12-42b7-87dc-a6bb5eba65db" + "afdbe7a0-9370-4a84-9bc2-c8acdbf7de6d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "8317d11c-9415-4ccf-b3e6-3135bf09c127" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 21:02:45 GMT" + "Thu, 30 Jul 2015 16:52:30 GMT" ], "ETag": [ - "0x8D288A1BC580284" + "0x8D298FF4188A48E" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -448,49 +456,108 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testDeletePipe?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3REZWxldGVQaXBlP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools/testDeletePipe?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3REZWxldGVQaXBlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "cb7974de-dbb7-43dd-bbb0-c4c5af7a9f68" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:52:30 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testDeletePipe\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testDeletePipe\",\r\n \"eTag\": \"0x8D298FF4188A48E\",\r\n \"lastModified\": \"2015-07-30T16:52:29.6217742Z\",\r\n \"creationTime\": \"2015-07-30T16:52:29.6217742Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:52:29.6217742Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T16:52:29.7077717Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:52:29 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "31ae2057-c952-4910-bfc6-e2aa5c1c3811" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "2e62b6b4-a051-46f0-a01f-d1ea547fdd19" + "cb7974de-dbb7-43dd-bbb0-c4c5af7a9f68" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:52:30 GMT" + ], + "ETag": [ + "0x8D298FF4188A48E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testDeletePipe?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3REZWxldGVQaXBlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "cb7974de-dbb7-43dd-bbb0-c4c5af7a9f68" ], "ocp-date": [ - "Thu, 09 Jul 2015 21:02:45 GMT" + "Thu, 30 Jul 2015 16:52:30 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.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testDeletePipe\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testDeletePipe\",\r\n \"eTag\": \"0x8D288A1BC580284\",\r\n \"lastModified\": \"2015-07-09T21:02:44.365786Z\",\r\n \"creationTime\": \"2015-07-09T21:02:44.365786Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T21:02:44.365786Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:02:44.4557884Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testDeletePipe\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testDeletePipe\",\r\n \"eTag\": \"0x8D298FF4188A48E\",\r\n \"lastModified\": \"2015-07-30T16:52:29.6217742Z\",\r\n \"creationTime\": \"2015-07-30T16:52:29.6217742Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:52:29.6217742Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T16:52:29.7077717Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 09 Jul 2015 21:02:44 GMT" + "Thu, 30 Jul 2015 16:52:29 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "a4b162b7-b3a9-4576-ae32-f8df486326bf" + "31ae2057-c952-4910-bfc6-e2aa5c1c3811" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "cb7974de-dbb7-43dd-bbb0-c4c5af7a9f68" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 21:02:45 GMT" + "Thu, 30 Jul 2015 16:52:30 GMT" ], "ETag": [ - "0x8D288A1BC580284" + "0x8D298FF4188A48E" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -499,22 +566,115 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testDeletePipe?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3REZWxldGVQaXBlP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools/testDeletePipe?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3REZWxldGVQaXBlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "a8c7f250-f471-4e8a-b110-c42a69e0b27b" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:52:30 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f4f0bd11-c74d-434f-927d-238768b4a467" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "a8c7f250-f471-4e8a-b110-c42a69e0b27b" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:52:31 GMT" ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testDeletePipe?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3REZWxldGVQaXBlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { "client-request-id": [ - "6deb1797-a802-4b07-8ccb-e5a1357cbecb" + "a8c7f250-f471-4e8a-b110-c42a69e0b27b" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:52:30 GMT" ], "return-client-request-id": [ - "False" + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f4f0bd11-c74d-434f-927d-238768b4a467" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "a8c7f250-f471-4e8a-b110-c42a69e0b27b" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:52:31 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testDeletePipe?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3REZWxldGVQaXBlP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "a8c7f250-f471-4e8a-b110-c42a69e0b27b" ], "ocp-date": [ - "Thu, 09 Jul 2015 21:02:45 GMT" + "Thu, 30 Jul 2015 16:52:30 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -523,16 +683,19 @@ "chunked" ], "request-id": [ - "ed30105d-3836-448e-b366-2ac3c7c0f0e6" + "f4f0bd11-c74d-434f-927d-238768b4a467" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "a8c7f250-f471-4e8a-b110-c42a69e0b27b" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 21:02:46 GMT" + "Thu, 30 Jul 2015 16:52:31 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -541,25 +704,124 @@ "StatusCode": 202 }, { - "RequestUri": "/pools?api-version=2014-10-01.1.0&$filter=name%20eq%20'testDeletePipe'", - "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4wJiRmaWx0ZXI9bmFtZSUyMGVxJTIwJTI3dGVzdERlbGV0ZVBpcGUlMjc=", + "RequestUri": "/pools?$filter=id%20eq%20'testDeletePipe'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3REZWxldGVQaXBlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "be1490a1-49fc-4da5-b1f2-a1fce86d4895" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:52:30 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ce9d2a6f-e971-4cd4-86ad-c262ac94c0d2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "be1490a1-49fc-4da5-b1f2-a1fce86d4895" ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:52:31 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools?$filter=id%20eq%20'testDeletePipe'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3REZWxldGVQaXBlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { "client-request-id": [ - "e98451c6-98d3-4e2a-9500-53246704dc07" + "be1490a1-49fc-4da5-b1f2-a1fce86d4895" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:52:30 GMT" ], "return-client-request-id": [ - "False" + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ce9d2a6f-e971-4cd4-86ad-c262ac94c0d2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "be1490a1-49fc-4da5-b1f2-a1fce86d4895" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:52:31 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools?$filter=id%20eq%20'testDeletePipe'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3REZWxldGVQaXBlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "be1490a1-49fc-4da5-b1f2-a1fce86d4895" ], "ocp-date": [ - "Thu, 09 Jul 2015 21:02:46 GMT" + "Thu, 30 Jul 2015 16:52:30 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.batch.core.windows.net/$metadata#pools\",\r\n \"value\": []\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": []\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" @@ -568,16 +830,68 @@ "chunked" ], "request-id": [ - "f0001806-55b2-4b72-8ba4-cd14823437ab" + "ce9d2a6f-e971-4cd4-86ad-c262ac94c0d2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "be1490a1-49fc-4da5-b1f2-a1fce86d4895" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:52:31 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools?$filter=id%20eq%20'testDeletePipe'&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzPyRmaWx0ZXI9aWQlMjBlcSUyMCUyN3Rlc3REZWxldGVQaXBlJTI3JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "be1490a1-49fc-4da5-b1f2-a1fce86d4895" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:52:30 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ce9d2a6f-e971-4cd4-86ad-c262ac94c0d2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "be1490a1-49fc-4da5-b1f2-a1fce86d4895" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 21:02:45 GMT" + "Thu, 30 Jul 2015 16:52:31 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMUserTests/TestCreateUserPipeline.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestGetPoolById.json similarity index 66% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMUserTests/TestCreateUserPipeline.json rename to src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestGetPoolById.json index 6b4d5a5ecc1c..f6ee65c13d32 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMUserTests/TestCreateUserPipeline.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestGetPoolById.json @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14940" + "14992" ], "x-ms-request-id": [ - "c242e5b2-be99-4205-90b8-dea526eaeafa" + "1e7660de-99a7-4e89-98ff-097cade23df6" ], "x-ms-correlation-request-id": [ - "c242e5b2-be99-4205-90b8-dea526eaeafa" + "1e7660de-99a7-4e89-98ff-097cade23df6" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191343Z:c242e5b2-be99-4205-90b8-dea526eaeafa" + "WESTUS:20150730T165248Z:1e7660de-99a7-4e89-98ff-097cade23df6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:13:42 GMT" + "Thu, 30 Jul 2015 16:52:48 GMT" ] }, "StatusCode": 200 @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14939" + "14991" ], "x-ms-request-id": [ - "1fb5558b-af75-4506-8361-3d44f89adbfd" + "9f008e14-f038-4bbd-9d48-226be6e6de9c" ], "x-ms-correlation-request-id": [ - "1fb5558b-af75-4506-8361-3d44f89adbfd" + "9f008e14-f038-4bbd-9d48-226be6e6de9c" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191346Z:1fb5558b-af75-4506-8361-3d44f89adbfd" + "WESTUS:20150730T165250Z:9f008e14-f038-4bbd-9d48-226be6e6de9c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:13:45 GMT" + "Thu, 30 Jul 2015 16:52:50 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:13:43 GMT" + "Thu, 30 Jul 2015 16:52:49 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "64249f21-2a12-4632-9451-8f2dbe09b11a" + "be8874e2-0728-45fd-8cec-341a4ef2fdf0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14980" + "14960" ], "x-ms-request-id": [ - "931cf84a-ac1c-44e6-a89b-4f7ef9686634" + "82a88293-e158-4391-969c-df35c7d26213" ], "x-ms-correlation-request-id": [ - "931cf84a-ac1c-44e6-a89b-4f7ef9686634" + "82a88293-e158-4391-969c-df35c7d26213" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191343Z:931cf84a-ac1c-44e6-a89b-4f7ef9686634" + "WESTUS:20150730T165249Z:82a88293-e158-4391-969c-df35c7d26213" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:13:43 GMT" + "Thu, 30 Jul 2015 16:52:49 GMT" ], "ETag": [ - "0x8D2889281F83F30" + "0x8D298FF4DA7FAFC" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:13:46 GMT" + "Thu, 30 Jul 2015 16:52:50 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "0622491c-cbb3-4c41-899d-7bee064c6975" + "96f5e0ef-259d-4e54-a572-72ce3f048f7f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14979" + "14959" ], "x-ms-request-id": [ - "1020b287-2b60-47b1-b176-76baba5da4b8" + "3f32d1d9-9a67-44ba-8916-6c8410dfd743" ], "x-ms-correlation-request-id": [ - "1020b287-2b60-47b1-b176-76baba5da4b8" + "3f32d1d9-9a67-44ba-8916-6c8410dfd743" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191346Z:1020b287-2b60-47b1-b176-76baba5da4b8" + "WESTUS:20150730T165250Z:3f32d1d9-9a67-44ba-8916-6c8410dfd743" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:13:45 GMT" + "Thu, 30 Jul 2015 16:52:50 GMT" ], "ETag": [ - "0x8D28892836F5A83" + "0x8D298FF4E464AA7" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,7 +250,7 @@ "no-cache" ], "request-id": [ - "e4e43540-818a-4782-b6a2-c6c67eb2de9b" + "27806aaf-92af-465c-81e4-50dc3c664892" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -259,19 +259,19 @@ "1194" ], "x-ms-request-id": [ - "2de704c3-d109-4b72-a4d0-616218b838a3" + "d6abacda-9312-4a4c-92e3-ee116fcd475a" ], "x-ms-correlation-request-id": [ - "2de704c3-d109-4b72-a4d0-616218b838a3" + "d6abacda-9312-4a4c-92e3-ee116fcd475a" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191343Z:2de704c3-d109-4b72-a4d0-616218b838a3" + "WESTUS:20150730T165249Z:d6abacda-9312-4a4c-92e3-ee116fcd475a" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:13:43 GMT" + "Thu, 30 Jul 2015 16:52:49 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,7 +307,7 @@ "no-cache" ], "request-id": [ - "82f0a5fa-c5e9-4dce-986f-e1e2be5bd47f" + "8cd3700c-8bc7-4e66-a93b-93951219897d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -316,19 +316,19 @@ "1193" ], "x-ms-request-id": [ - "95d49206-c522-4eff-bf2a-9009bd14d17c" + "6c37b2c7-66a7-4216-a6d3-8819696077f3" ], "x-ms-correlation-request-id": [ - "95d49206-c522-4eff-bf2a-9009bd14d17c" + "6c37b2c7-66a7-4216-a6d3-8819696077f3" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191346Z:95d49206-c522-4eff-bf2a-9009bd14d17c" + "WESTUS:20150730T165250Z:6c37b2c7-66a7-4216-a6d3-8819696077f3" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:13:45 GMT" + "Thu, 30 Jul 2015 16:52:50 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,172 +337,188 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6P2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testGetPool\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetDedicated\": 0,\r\n \"enableInterNodeCommunication\": false\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "136" ], "client-request-id": [ - "45067313-4d20-49e4-8b2e-66cf085a3840" + "c643ca20-f87a-4094-a7c3-ca36e1ddb584" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:52:49 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:13:43 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tvms/@Element\",\r\n \"name\": \"tvm-4155946844_1-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-09T19:08:35.5466164Z\",\r\n \"lastBootTime\": \"2015-07-09T19:08:35.4786184Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.28.116\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 6,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-09T19:08:35.5776188Z\",\r\n \"endTime\": \"2015-07-09T19:08:36.4942084Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" + "Last-Modified": [ + "Thu, 30 Jul 2015 16:52:50 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "da4cd283-cf0f-4a1f-b6e4-b291ad5cc43d" + "0c4e01a3-5b0a-442f-b55f-27063e5c4cda" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "c643ca20-f87a-4094-a7c3-ca36e1ddb584" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testGetPool" + ], "Date": [ - "Thu, 09 Jul 2015 19:13:43 GMT" + "Thu, 30 Jul 2015 16:52:49 GMT" + ], + "ETag": [ + "0x8D298FF4DD2C8DA" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/pools/testGetPool" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/users?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L3VzZXJzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#users/@Element\",\r\n \"name\": \"testCreateUserPipe\",\r\n \"isAdmin\": true,\r\n \"expiryTime\": \"2015-07-14T12:13:43.8552601-07:00\",\r\n \"password\": \"Password1234!\"\r\n}", + "RequestUri": "/pools/testGetPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RHZXRQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "201" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "e1814419-7f23-4a86-b9c3-37cd7a78a016" + "c359bb15-c11c-40b7-aa9b-92a682394eba" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:52:50 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:13:44 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testGetPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testGetPool\",\r\n \"eTag\": \"0x8D298FF4DD2C8DA\",\r\n \"lastModified\": \"2015-07-30T16:52:50.240329Z\",\r\n \"creationTime\": \"2015-07-30T16:52:50.240329Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:52:50.240329Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T16:52:50.3446142Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:52:50 GMT" + ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "7bb27e99-78bc-4066-99f6-c5564ce8f0c3" + "185622f8-b46f-4b43-b9e9-f5d143df890d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "c359bb15-c11c-40b7-aa9b-92a682394eba" + ], "DataServiceVersion": [ "3.0" ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/users/testCreateUserPipe" - ], "Date": [ - "Thu, 09 Jul 2015 19:13:44 GMT" + "Thu, 30 Jul 2015 16:52:51 GMT" ], - "Location": [ - "https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/users/testCreateUserPipe" + "ETag": [ + "0x8D298FF4DD2C8DA" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 201 + "StatusCode": 200 }, { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/users?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L3VzZXJzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#users/@Element\",\r\n \"name\": \"testCreateUserPipe\",\r\n \"isAdmin\": false,\r\n \"password\": \"Password1234!\"\r\n}", + "RequestUri": "/pools/testGetPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RHZXRQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "153" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "4a1bd4c2-3d0d-462d-948f-56838f21ad00" + "d5d07624-7f65-4111-8f39-a73969b38301" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:52:51 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:13:45 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\r\n \"code\": \"TVMUserExists\",\r\n \"message\": {\r\n \"lang\": \"en-US\",\r\n \"value\": \"The specified TVM user already exists.\\nRequestId:45c16cc4-1412-4b84-aae4-22216cb4a3fd\\nTime:2015-07-09T19:13:46.1877610Z\"\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "333" - ], - "Content-Type": [ - "application/json; odata=minimalmetadata" + "Transfer-Encoding": [ + "chunked" ], "request-id": [ - "45c16cc4-1412-4b84-aae4-22216cb4a3fd" + "e7e18929-1009-4dc9-a405-ae76121b4a20" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "d5d07624-7f65-4111-8f39-a73969b38301" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:13:46 GMT" + "Thu, 30 Jul 2015 16:52:51 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 409 + "StatusCode": 202 }, { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/users/testCreateUserPipe?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L3VzZXJzL3Rlc3RDcmVhdGVVc2VyUGlwZT9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/pools/testGetPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RHZXRQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "e66e0c6f-7cf0-42b3-85c3-da7b1d2df3cf" + "d5d07624-7f65-4111-8f39-a73969b38301" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:52:51 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:13:46 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -511,22 +527,25 @@ "chunked" ], "request-id": [ - "c9b438b8-5f1a-4993-9194-54d41cc392df" + "e7e18929-1009-4dc9-a405-ae76121b4a20" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "d5d07624-7f65-4111-8f39-a73969b38301" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:13:46 GMT" + "Thu, 30 Jul 2015 16:52:51 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 } ], "Names": {}, diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestGetPoolByName.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestGetPoolByName.json deleted file mode 100644 index ed0c6023f2ed..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestGetPoolByName.json +++ /dev/null @@ -1,497 +0,0 @@ -{ - "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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14953" - ], - "x-ms-request-id": [ - "7ce511b8-d0f1-4810-983c-301ab4b9c99d" - ], - "x-ms-correlation-request-id": [ - "7ce511b8-d0f1-4810-983c-301ab4b9c99d" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T193315Z:7ce511b8-d0f1-4810-983c-301ab4b9c99d" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:33:14 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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14952" - ], - "x-ms-request-id": [ - "8482bc5c-e3e5-44e1-b5a5-7194ba602fc6" - ], - "x-ms-correlation-request-id": [ - "8482bc5c-e3e5-44e1-b5a5-7194ba602fc6" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T193317Z:8482bc5c-e3e5-44e1-b5a5-7194ba602fc6" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:33:16 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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:33:16 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "bdcbd1af-3baf-42f8-a7a5-e93e68ee0aee" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14953" - ], - "x-ms-request-id": [ - "9501dc4a-bf9d-41cc-9393-f70b32bd2110" - ], - "x-ms-correlation-request-id": [ - "9501dc4a-bf9d-41cc-9393-f70b32bd2110" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T193316Z:9501dc4a-bf9d-41cc-9393-f70b32bd2110" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:33:16 GMT" - ], - "ETag": [ - "0x8D288953CFE453E" - ], - "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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:33:17 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "ad571bdf-3dad-45d0-8ecb-3b16abc319fa" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14952" - ], - "x-ms-request-id": [ - "2d1db790-aee4-4a0d-9771-c503e3b161e7" - ], - "x-ms-correlation-request-id": [ - "2d1db790-aee4-4a0d-9771-c503e3b161e7" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T193318Z:2d1db790-aee4-4a0d-9771-c503e3b161e7" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:33:17 GMT" - ], - "ETag": [ - "0x8D288953DAABD37" - ], - "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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "b18cbbf5-fbf2-40b2-b27d-bd3afb636170" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1179" - ], - "x-ms-request-id": [ - "40750e4f-c80a-4e53-85dd-bf0e33ed8a22" - ], - "x-ms-correlation-request-id": [ - "40750e4f-c80a-4e53-85dd-bf0e33ed8a22" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T193317Z:40750e4f-c80a-4e53-85dd-bf0e33ed8a22" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:33:16 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-version": [ - "2015-07-01" - ], - "User-Agent": [ - "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "6fc7095d-56aa-43a1-b4c6-71d51c7e33a5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1178" - ], - "x-ms-request-id": [ - "98f8129b-5372-4a85-bdc0-b4fd7a135668" - ], - "x-ms-correlation-request-id": [ - "98f8129b-5372-4a85-bdc0-b4fd7a135668" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T193318Z:98f8129b-5372-4a85-bdc0-b4fd7a135668" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:33:17 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testGetPool\",\r\n \"tvmSize\": \"small\",\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"osFamily\": \"4\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "202" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "fb8e591c-b549-404b-b262-eb4616b897b5" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:33:16 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Last-Modified": [ - "Thu, 09 Jul 2015 19:33:17 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "2261ba78-2278-4105-ae20-eb24db6a1d87" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/pools/testGetPool" - ], - "Date": [ - "Thu, 09 Jul 2015 19:33:16 GMT" - ], - "ETag": [ - "0x8D288953D7FCC60" - ], - "Location": [ - "https://pstests.batch.core.windows.net/pools/testGetPool" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/pools/testGetPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RHZXRQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "5fd0329f-84e0-4b09-81ba-c6cffaac232d" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:33:18 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testGetPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testGetPool\",\r\n \"eTag\": \"0x8D288953D7FCC60\",\r\n \"lastModified\": \"2015-07-09T19:33:17.5951456Z\",\r\n \"creationTime\": \"2015-07-09T19:33:17.5951456Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:33:17.5951456Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T19:33:17.6880992Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:33:17 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "79218dde-7aaa-44f1-9f01-f913bff4716f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:33:17 GMT" - ], - "ETag": [ - "0x8D288953D7FCC60" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testGetPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RHZXRQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "7b37767a-7eff-47ed-bb96-4a92d0f7fbb0" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:33:18 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "430c8888-6efc-43b6-98cb-98ed392dba0f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:33:18 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/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestListAllPools.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestListAllPools.json index 6fdc3d45cde9..5630fcf8e920 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestListAllPools.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestListAllPools.json @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14988" + "14977" ], "x-ms-request-id": [ - "31c8a4e1-22d6-4747-890d-85b2ce28534b" + "94ab677f-198e-4889-a3bc-e7aab4c5d444" ], "x-ms-correlation-request-id": [ - "31c8a4e1-22d6-4747-890d-85b2ce28534b" + "94ab677f-198e-4889-a3bc-e7aab4c5d444" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T212451Z:31c8a4e1-22d6-4747-890d-85b2ce28534b" + "WESTUS:20150730T170454Z:94ab677f-198e-4889-a3bc-e7aab4c5d444" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:24:51 GMT" + "Thu, 30 Jul 2015 17:04:54 GMT" ] }, "StatusCode": 200 @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14987" + "14976" ], "x-ms-request-id": [ - "1d8de408-3e2d-4aed-aa9e-e5a14b794633" + "5b4cf448-83fb-405e-a2fb-1de129e43292" ], "x-ms-correlation-request-id": [ - "1d8de408-3e2d-4aed-aa9e-e5a14b794633" + "5b4cf448-83fb-405e-a2fb-1de129e43292" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T212456Z:1d8de408-3e2d-4aed-aa9e-e5a14b794633" + "WESTUS:20150730T170457Z:5b4cf448-83fb-405e-a2fb-1de129e43292" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:24:56 GMT" + "Thu, 30 Jul 2015 17:04:56 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 21:24:52 GMT" + "Thu, 30 Jul 2015 17:04:55 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "276153cd-499e-4a8f-9ebd-ebf4bdc5f5fe" + "fba3dc41-e736-46bb-945c-71663cad0179" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14977" + "14973" ], "x-ms-request-id": [ - "ce615c40-311d-4e64-881e-1ff5a6f48c6e" + "68ed8c84-84be-4d81-8ddc-7a214378eb9c" ], "x-ms-correlation-request-id": [ - "ce615c40-311d-4e64-881e-1ff5a6f48c6e" + "68ed8c84-84be-4d81-8ddc-7a214378eb9c" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T212452Z:ce615c40-311d-4e64-881e-1ff5a6f48c6e" + "WESTUS:20150730T170455Z:68ed8c84-84be-4d81-8ddc-7a214378eb9c" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:24:52 GMT" + "Thu, 30 Jul 2015 17:04:55 GMT" ], "ETag": [ - "0x8D288A4D3DE09C9" + "0x8D29900FE4002A8" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 21:24:56 GMT" + "Thu, 30 Jul 2015 17:04:57 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "1f8f75d3-ce83-4d75-9ac4-9b1dc6257cf1" + "e84ecfd5-f095-4679-b6ce-b39971d16760" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14976" + "14972" ], "x-ms-request-id": [ - "eb1c86d9-a76f-41ef-851a-3cd5abfca776" + "7a2a7553-aa87-4b2c-9a0d-0c68293ba6ca" ], "x-ms-correlation-request-id": [ - "eb1c86d9-a76f-41ef-851a-3cd5abfca776" + "7a2a7553-aa87-4b2c-9a0d-0c68293ba6ca" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T212456Z:eb1c86d9-a76f-41ef-851a-3cd5abfca776" + "WESTUS:20150730T170457Z:7a2a7553-aa87-4b2c-9a0d-0c68293ba6ca" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:24:56 GMT" + "Thu, 30 Jul 2015 17:04:56 GMT" ], "ETag": [ - "0x8D288A4D66F8561" + "0x8D29900FF5420BA" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "0cd2ab50-4097-4cf1-ab17-69f0e9a07f3c" + "bccbf75a-e9c1-4bb2-bc95-e89cc97f7655" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1192" + "1183" ], "x-ms-request-id": [ - "96b1166b-1ad5-4221-ab63-28b15a8a056a" + "3b13d615-1a20-42ce-82a7-872246ee48ec" ], "x-ms-correlation-request-id": [ - "96b1166b-1ad5-4221-ab63-28b15a8a056a" + "3b13d615-1a20-42ce-82a7-872246ee48ec" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T212452Z:96b1166b-1ad5-4221-ab63-28b15a8a056a" + "WESTUS:20150730T170456Z:3b13d615-1a20-42ce-82a7-872246ee48ec" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:24:52 GMT" + "Thu, 30 Jul 2015 17:04:55 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "bd31edd8-6392-4dd4-b384-3599b3209d2d" + "93759950-0112-47b5-af0f-426677f7de94" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1191" + "1182" ], "x-ms-request-id": [ - "c1b168b3-9429-4fd3-8417-9abaea9e6c53" + "d7023659-8007-4970-9b30-d6f8779fb5cc" ], "x-ms-correlation-request-id": [ - "c1b168b3-9429-4fd3-8417-9abaea9e6c53" + "d7023659-8007-4970-9b30-d6f8779fb5cc" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T212456Z:c1b168b3-9429-4fd3-8417-9abaea9e6c53" + "WESTUS:20150730T170457Z:d7023659-8007-4970-9b30-d6f8779fb5cc" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:24:56 GMT" + "Thu, 30 Jul 2015 17:04:57 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,25 +337,26 @@ "StatusCode": 200 }, { - "RequestUri": "/pools?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "5e8bce91-e177-4a11-82ad-e48d7408da43" + "fa88202f-1902-43bf-9622-5c1744dd99f6" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:55 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:24:52 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools\",\r\n \"value\": []\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"id\": \"complex\",\r\n \"displayName\": \"displayName\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/complex\",\r\n \"eTag\": \"0x8D29900F2A356A0\",\r\n \"lastModified\": \"2015-07-30T17:04:36.2501792Z\",\r\n \"creationTime\": \"2015-07-30T17:04:35.6360353Z\",\r\n \"state\": \"deleting\",\r\n \"stateTransitionTime\": \"2015-07-30T17:04:36.2501792Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:04:35.6360353Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-07-30T17:04:35.6360353Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": true,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct1.blob.core.windows.net/\",\r\n \"filePath\": \"filePath1\"\r\n },\r\n {\r\n \"blobSource\": \"https://testacct2.blob.core.windows.net/\",\r\n \"filePath\": \"filePath2\"\r\n }\r\n ],\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"meta2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"meta1\",\r\n \"value\": \"value1\"\r\n }\r\n ],\r\n \"maxTasksPerNode\": 2,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Pack\"\r\n }\r\n },\r\n {\r\n \"id\": \"simple\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/simple\",\r\n \"eTag\": \"0x8D29900F28EB216\",\r\n \"lastModified\": \"2015-07-30T17:04:36.114895Z\",\r\n \"creationTime\": \"2015-07-30T17:04:35.1125723Z\",\r\n \"state\": \"deleting\",\r\n \"stateTransitionTime\": \"2015-07-30T17:04:36.114895Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:04:35.1125723Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT10M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 1,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n },\r\n {\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D298FCFBDD1459\",\r\n \"lastModified\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T16:38:18.3097919Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" @@ -364,16 +365,19 @@ "chunked" ], "request-id": [ - "36305c7d-275b-47ee-84df-35abd2508ef2" + "4fe61296-44c9-41f3-a1be-8f0371de7e75" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "fa88202f-1902-43bf-9622-5c1744dd99f6" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 21:24:53 GMT" + "Thu, 30 Jul 2015 17:04:55 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -382,25 +386,26 @@ "StatusCode": 200 }, { - "RequestUri": "/pools?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "59525f66-cc9c-44c0-80ca-483eb63f2c00" + "8d0e3646-e01a-49b6-93c9-1542fb74c1a7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:57 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:24:56 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"name\": \"testList1\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testList1\",\r\n \"eTag\": \"0x8D288A4D56464D8\",\r\n \"lastModified\": \"2015-07-09T21:24:54.8801752Z\",\r\n \"creationTime\": \"2015-07-09T21:24:54.8801752Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T21:24:54.8801752Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:24:54.9774592Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n },\r\n {\r\n \"name\": \"testList2\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testList2\",\r\n \"eTag\": \"0x8D288A4D5BA230F\",\r\n \"lastModified\": \"2015-07-09T21:24:55.4421007Z\",\r\n \"creationTime\": \"2015-07-09T21:24:55.4421007Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T21:24:55.4421007Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:24:55.5247104Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n },\r\n {\r\n \"name\": \"thirdTestList\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/thirdTestList\",\r\n \"eTag\": \"0x8D288A4D60DAD11\",\r\n \"lastModified\": \"2015-07-09T21:24:55.9895825Z\",\r\n \"creationTime\": \"2015-07-09T21:24:55.9895825Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T21:24:55.9895825Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:24:56.0695725Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"id\": \"complex\",\r\n \"displayName\": \"displayName\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/complex\",\r\n \"eTag\": \"0x8D29900F2A356A0\",\r\n \"lastModified\": \"2015-07-30T17:04:36.2501792Z\",\r\n \"creationTime\": \"2015-07-30T17:04:35.6360353Z\",\r\n \"state\": \"deleting\",\r\n \"stateTransitionTime\": \"2015-07-30T17:04:36.2501792Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:04:35.6360353Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-07-30T17:04:35.6360353Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": true,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct1.blob.core.windows.net/\",\r\n \"filePath\": \"filePath1\"\r\n },\r\n {\r\n \"blobSource\": \"https://testacct2.blob.core.windows.net/\",\r\n \"filePath\": \"filePath2\"\r\n }\r\n ],\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"meta2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"meta1\",\r\n \"value\": \"value1\"\r\n }\r\n ],\r\n \"maxTasksPerNode\": 2,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Pack\"\r\n }\r\n },\r\n {\r\n \"id\": \"simple\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/simple\",\r\n \"eTag\": \"0x8D29900F28EB216\",\r\n \"lastModified\": \"2015-07-30T17:04:36.114895Z\",\r\n \"creationTime\": \"2015-07-30T17:04:35.1125723Z\",\r\n \"state\": \"deleting\",\r\n \"stateTransitionTime\": \"2015-07-30T17:04:36.114895Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:04:35.1125723Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT10M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 1,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n },\r\n {\r\n \"id\": \"testList1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testList1\",\r\n \"eTag\": \"0x8D29900FEA147F4\",\r\n \"lastModified\": \"2015-07-30T17:04:56.3693556Z\",\r\n \"creationTime\": \"2015-07-30T17:04:56.3693556Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:04:56.3693556Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:04:56.4821084Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n },\r\n {\r\n \"id\": \"testList2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testList2\",\r\n \"eTag\": \"0x8D29900FED034DE\",\r\n \"lastModified\": \"2015-07-30T17:04:56.6768862Z\",\r\n \"creationTime\": \"2015-07-30T17:04:56.6768862Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:04:56.6768862Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:04:56.7638845Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n },\r\n {\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D298FCFBDD1459\",\r\n \"lastModified\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T16:38:18.3097919Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n },\r\n {\r\n \"id\": \"thirdTestList\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/thirdTestList\",\r\n \"eTag\": \"0x8D29900FEFB48F3\",\r\n \"lastModified\": \"2015-07-30T17:04:56.9592051Z\",\r\n \"creationTime\": \"2015-07-30T17:04:56.9592051Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:04:56.9592051Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:04:57.0753227Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" @@ -409,16 +414,19 @@ "chunked" ], "request-id": [ - "d79fc9ea-1f56-4e3a-b2da-2155acfd5f33" + "61e7e28a-70c9-407b-9a90-14e76728288c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "8d0e3646-e01a-49b6-93c9-1542fb74c1a7" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 21:24:57 GMT" + "Thu, 30 Jul 2015 17:04:57 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -427,58 +435,126 @@ "StatusCode": 200 }, { - "RequestUri": "/pools?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testList1\",\r\n \"tvmSize\": \"small\",\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"osFamily\": \"4\"\r\n}", + "RequestBody": "{\r\n \"id\": \"testList1\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetDedicated\": 0,\r\n \"enableInterNodeCommunication\": false\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "200" + "134" + ], + "client-request-id": [ + "2fc93581-0fd5-4ebb-88eb-4f3f793adf50" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:56 GMT" + ], + "return-client-request-id": [ + "true" ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:04:56 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "5ffb77ee-1b5a-48bc-a93b-e5c7bb221d08" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "d3198e61-a91a-4315-8465-4948fe556188" + "2fc93581-0fd5-4ebb-88eb-4f3f793adf50" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testList1" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:55 GMT" + ], + "ETag": [ + "0x8D29900FEA147F4" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/pools/testList1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testList1\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetDedicated\": 0,\r\n \"enableInterNodeCommunication\": false\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "134" + ], + "client-request-id": [ + "2fc93581-0fd5-4ebb-88eb-4f3f793adf50" ], "ocp-date": [ - "Thu, 09 Jul 2015 21:24:54 GMT" + "Thu, 30 Jul 2015 17:04:56 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 21:24:54 GMT" + "Thu, 30 Jul 2015 17:04:56 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "04241d13-3448-4d25-af04-98fc43fe85a1" + "5ffb77ee-1b5a-48bc-a93b-e5c7bb221d08" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "2fc93581-0fd5-4ebb-88eb-4f3f793adf50" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/pools/testList1" + "https://pstests.eastus.batch.azure.com/pools/testList1" ], "Date": [ - "Thu, 09 Jul 2015 21:24:54 GMT" + "Thu, 30 Jul 2015 17:04:55 GMT" ], "ETag": [ - "0x8D288A4D56464D8" + "0x8D29900FEA147F4" ], "Location": [ - "https://pstests.batch.core.windows.net/pools/testList1" + "https://pstests.eastus.batch.azure.com/pools/testList1" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -487,58 +563,126 @@ "StatusCode": 201 }, { - "RequestUri": "/pools?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testList2\",\r\n \"tvmSize\": \"small\",\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"osFamily\": \"4\"\r\n}", + "RequestBody": "{\r\n \"id\": \"testList2\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetDedicated\": 0,\r\n \"enableInterNodeCommunication\": false\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "200" + "134" + ], + "client-request-id": [ + "f219dd7f-ce11-4a6e-989a-53cd1141b1e7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:56 GMT" + ], + "return-client-request-id": [ + "true" ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:04:56 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "a164ddc8-d7cd-48e0-9c55-b213002db685" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "3d049ab6-599e-4056-a675-3898bc678e34" + "f219dd7f-ce11-4a6e-989a-53cd1141b1e7" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testList2" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:56 GMT" + ], + "ETag": [ + "0x8D29900FED034DE" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/pools/testList2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testList2\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetDedicated\": 0,\r\n \"enableInterNodeCommunication\": false\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "134" + ], + "client-request-id": [ + "f219dd7f-ce11-4a6e-989a-53cd1141b1e7" ], "ocp-date": [ - "Thu, 09 Jul 2015 21:24:54 GMT" + "Thu, 30 Jul 2015 17:04:56 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 21:24:55 GMT" + "Thu, 30 Jul 2015 17:04:56 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "acb45f74-922f-4aca-8569-2cefed60a119" + "a164ddc8-d7cd-48e0-9c55-b213002db685" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "f219dd7f-ce11-4a6e-989a-53cd1141b1e7" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/pools/testList2" + "https://pstests.eastus.batch.azure.com/pools/testList2" ], "Date": [ - "Thu, 09 Jul 2015 21:24:54 GMT" + "Thu, 30 Jul 2015 17:04:56 GMT" ], "ETag": [ - "0x8D288A4D5BA230F" + "0x8D29900FED034DE" ], "Location": [ - "https://pstests.batch.core.windows.net/pools/testList2" + "https://pstests.eastus.batch.azure.com/pools/testList2" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -547,58 +691,126 @@ "StatusCode": 201 }, { - "RequestUri": "/pools?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"thirdTestList\",\r\n \"tvmSize\": \"small\",\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"osFamily\": \"4\"\r\n}", + "RequestBody": "{\r\n \"id\": \"testList2\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetDedicated\": 0,\r\n \"enableInterNodeCommunication\": false\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "204" + "134" + ], + "client-request-id": [ + "f219dd7f-ce11-4a6e-989a-53cd1141b1e7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:56 GMT" + ], + "return-client-request-id": [ + "true" ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:04:56 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "a164ddc8-d7cd-48e0-9c55-b213002db685" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "a3036f28-b39b-478c-bb28-90f35de993a3" + "f219dd7f-ce11-4a6e-989a-53cd1141b1e7" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testList2" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:56 GMT" + ], + "ETag": [ + "0x8D29900FED034DE" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/pools/testList2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdTestList\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetDedicated\": 0,\r\n \"enableInterNodeCommunication\": false\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "138" + ], + "client-request-id": [ + "9e4efa35-eff1-4799-ad48-d258ff6e90d6" ], "ocp-date": [ - "Thu, 09 Jul 2015 21:24:55 GMT" + "Thu, 30 Jul 2015 17:04:56 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 21:24:55 GMT" + "Thu, 30 Jul 2015 17:04:56 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "de9ea0b8-5729-41c9-a1be-bf98eac12b42" + "2d51b271-2631-41a9-835d-f2c0c0f82d91" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "9e4efa35-eff1-4799-ad48-d258ff6e90d6" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/pools/thirdTestList" + "https://pstests.eastus.batch.azure.com/pools/thirdTestList" ], "Date": [ - "Thu, 09 Jul 2015 21:24:55 GMT" + "Thu, 30 Jul 2015 17:04:56 GMT" ], "ETag": [ - "0x8D288A4D60DAD11" + "0x8D29900FEFB48F3" ], "Location": [ - "https://pstests.batch.core.windows.net/pools/thirdTestList" + "https://pstests.eastus.batch.azure.com/pools/thirdTestList" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -607,124 +819,1018 @@ "StatusCode": 201 }, { - "RequestUri": "/pools/testList1?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RMaXN0MT9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "DELETE", - "RequestBody": "", + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdTestList\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetDedicated\": 0,\r\n \"enableInterNodeCommunication\": false\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "138" ], "client-request-id": [ - "3de7bac1-2976-4ed8-9015-4c068490dbf3" + "9e4efa35-eff1-4799-ad48-d258ff6e90d6" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:56 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:24:57 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:04:56 GMT" + ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "c79f8676-030c-4f2e-b161-3c3417b7f326" + "2d51b271-2631-41a9-835d-f2c0c0f82d91" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "9e4efa35-eff1-4799-ad48-d258ff6e90d6" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/thirdTestList" + ], "Date": [ - "Thu, 09 Jul 2015 21:24:57 GMT" + "Thu, 30 Jul 2015 17:04:56 GMT" + ], + "ETag": [ + "0x8D29900FEFB48F3" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/pools/thirdTestList" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 202 + "StatusCode": 201 }, { - "RequestUri": "/pools/testList2?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RMaXN0Mj9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "DELETE", - "RequestBody": "", + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdTestList\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetDedicated\": 0,\r\n \"enableInterNodeCommunication\": false\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "138" ], "client-request-id": [ - "56df5a80-035d-4e69-9365-2725ae015c28" + "9e4efa35-eff1-4799-ad48-d258ff6e90d6" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:56 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:24:57 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:04:56 GMT" + ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "acee9bae-92d3-49aa-a864-7ab3135ccedb" + "2d51b271-2631-41a9-835d-f2c0c0f82d91" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "9e4efa35-eff1-4799-ad48-d258ff6e90d6" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/thirdTestList" + ], "Date": [ - "Thu, 09 Jul 2015 21:24:57 GMT" + "Thu, 30 Jul 2015 17:04:56 GMT" + ], + "ETag": [ + "0x8D29900FEFB48F3" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/pools/thirdTestList" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 202 + "StatusCode": 201 }, { - "RequestUri": "/pools/thirdTestList?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3RoaXJkVGVzdExpc3Q/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "DELETE", - "RequestBody": "", + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdTestList\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetDedicated\": 0,\r\n \"enableInterNodeCommunication\": false\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "138" ], "client-request-id": [ - "f31ac337-fa73-41de-95b0-e116a52e06a5" + "9e4efa35-eff1-4799-ad48-d258ff6e90d6" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:56 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:24:57 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:04:56 GMT" + ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "3c84e03d-f13e-4de6-8cda-d011b229f230" + "2d51b271-2631-41a9-835d-f2c0c0f82d91" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "9e4efa35-eff1-4799-ad48-d258ff6e90d6" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/thirdTestList" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:56 GMT" + ], + "ETag": [ + "0x8D29900FEFB48F3" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/pools/thirdTestList" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/pools/testList1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RMaXN0MT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2a81ad92-17c2-4082-903c-65b795fe8d07" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:58 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": [ + "9a0faedb-b8ea-4c28-be28-94d7b32ef875" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2a81ad92-17c2-4082-903c-65b795fe8d07" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:58 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testList1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RMaXN0MT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2a81ad92-17c2-4082-903c-65b795fe8d07" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:58 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": [ + "9a0faedb-b8ea-4c28-be28-94d7b32ef875" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2a81ad92-17c2-4082-903c-65b795fe8d07" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:58 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testList1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RMaXN0MT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2a81ad92-17c2-4082-903c-65b795fe8d07" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:58 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": [ + "9a0faedb-b8ea-4c28-be28-94d7b32ef875" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2a81ad92-17c2-4082-903c-65b795fe8d07" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:58 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testList1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RMaXN0MT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2a81ad92-17c2-4082-903c-65b795fe8d07" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:58 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": [ + "9a0faedb-b8ea-4c28-be28-94d7b32ef875" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2a81ad92-17c2-4082-903c-65b795fe8d07" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:58 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testList1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RMaXN0MT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "2a81ad92-17c2-4082-903c-65b795fe8d07" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:58 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": [ + "9a0faedb-b8ea-4c28-be28-94d7b32ef875" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "2a81ad92-17c2-4082-903c-65b795fe8d07" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:58 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testList2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RMaXN0Mj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "5fbd8bae-1c3a-4c99-8d6c-748b3043bca9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:58 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": [ + "c00e5ecf-ddf4-411e-b27b-6efa7449be3e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "5fbd8bae-1c3a-4c99-8d6c-748b3043bca9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:58 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testList2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RMaXN0Mj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "5fbd8bae-1c3a-4c99-8d6c-748b3043bca9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:58 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": [ + "c00e5ecf-ddf4-411e-b27b-6efa7449be3e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "5fbd8bae-1c3a-4c99-8d6c-748b3043bca9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:58 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testList2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RMaXN0Mj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "5fbd8bae-1c3a-4c99-8d6c-748b3043bca9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:58 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": [ + "c00e5ecf-ddf4-411e-b27b-6efa7449be3e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "5fbd8bae-1c3a-4c99-8d6c-748b3043bca9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:58 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testList2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RMaXN0Mj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "5fbd8bae-1c3a-4c99-8d6c-748b3043bca9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:58 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": [ + "c00e5ecf-ddf4-411e-b27b-6efa7449be3e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "5fbd8bae-1c3a-4c99-8d6c-748b3043bca9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:58 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testList2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RMaXN0Mj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "5fbd8bae-1c3a-4c99-8d6c-748b3043bca9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:58 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": [ + "c00e5ecf-ddf4-411e-b27b-6efa7449be3e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "5fbd8bae-1c3a-4c99-8d6c-748b3043bca9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:58 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testList2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RMaXN0Mj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "5fbd8bae-1c3a-4c99-8d6c-748b3043bca9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:58 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": [ + "c00e5ecf-ddf4-411e-b27b-6efa7449be3e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "5fbd8bae-1c3a-4c99-8d6c-748b3043bca9" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:58 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/thirdTestList?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3RoaXJkVGVzdExpc3Q/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7528abbb-10c6-49d0-ac69-ac79688e3345" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:58 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": [ + "50891e5b-5781-41cd-bad1-710ba721c816" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7528abbb-10c6-49d0-ac69-ac79688e3345" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:58 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/thirdTestList?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3RoaXJkVGVzdExpc3Q/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7528abbb-10c6-49d0-ac69-ac79688e3345" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:58 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": [ + "50891e5b-5781-41cd-bad1-710ba721c816" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7528abbb-10c6-49d0-ac69-ac79688e3345" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:58 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/thirdTestList?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3RoaXJkVGVzdExpc3Q/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7528abbb-10c6-49d0-ac69-ac79688e3345" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:58 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": [ + "50891e5b-5781-41cd-bad1-710ba721c816" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7528abbb-10c6-49d0-ac69-ac79688e3345" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:58 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/thirdTestList?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3RoaXJkVGVzdExpc3Q/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7528abbb-10c6-49d0-ac69-ac79688e3345" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:58 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": [ + "50891e5b-5781-41cd-bad1-710ba721c816" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7528abbb-10c6-49d0-ac69-ac79688e3345" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:58 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/thirdTestList?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3RoaXJkVGVzdExpc3Q/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7528abbb-10c6-49d0-ac69-ac79688e3345" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:58 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": [ + "50891e5b-5781-41cd-bad1-710ba721c816" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7528abbb-10c6-49d0-ac69-ac79688e3345" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:58 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/thirdTestList?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3RoaXJkVGVzdExpc3Q/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7528abbb-10c6-49d0-ac69-ac79688e3345" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:58 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": [ + "50891e5b-5781-41cd-bad1-710ba721c816" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7528abbb-10c6-49d0-ac69-ac79688e3345" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:58 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/thirdTestList?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3RoaXJkVGVzdExpc3Q/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7528abbb-10c6-49d0-ac69-ac79688e3345" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:58 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": [ + "50891e5b-5781-41cd-bad1-710ba721c816" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7528abbb-10c6-49d0-ac69-ac79688e3345" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 21:24:57 GMT" + "Thu, 30 Jul 2015 17:04:58 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestListPoolsByFilter.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestListPoolsByFilter.json index 0c30340cd296..4cad27b15099 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestListPoolsByFilter.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestListPoolsByFilter.json @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14955" + "14968" ], "x-ms-request-id": [ - "9d07f6a6-f6d8-460a-8c20-40ef0d7e3ad1" + "401c1b77-67a1-4eb2-9bce-5a6b1e9ca759" ], "x-ms-correlation-request-id": [ - "9d07f6a6-f6d8-460a-8c20-40ef0d7e3ad1" + "401c1b77-67a1-4eb2-9bce-5a6b1e9ca759" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T193206Z:9d07f6a6-f6d8-460a-8c20-40ef0d7e3ad1" + "WESTUS:20150730T170515Z:401c1b77-67a1-4eb2-9bce-5a6b1e9ca759" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:32:05 GMT" + "Thu, 30 Jul 2015 17:05:15 GMT" ] }, "StatusCode": 200 @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14954" + "14967" ], "x-ms-request-id": [ - "8d5a243c-83bf-4a3c-a92f-534de35c7461" + "c9ad0484-d3a1-4bb6-82c8-306b95ed5b83" ], "x-ms-correlation-request-id": [ - "8d5a243c-83bf-4a3c-a92f-534de35c7461" + "c9ad0484-d3a1-4bb6-82c8-306b95ed5b83" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T193209Z:8d5a243c-83bf-4a3c-a92f-534de35c7461" + "WESTUS:20150730T170518Z:c9ad0484-d3a1-4bb6-82c8-306b95ed5b83" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:32:09 GMT" + "Thu, 30 Jul 2015 17:05:18 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:32:07 GMT" + "Thu, 30 Jul 2015 17:05:17 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "a31fce70-b6c9-4421-be8e-d85d6466b5d0" + "0bd1b2d1-a56d-4ed0-8bee-a0db93572544" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14955" + "14975" ], "x-ms-request-id": [ - "adb2a6da-f37e-4830-9770-189aa641ebc7" + "611d727f-2f7f-40cd-b709-95bd85bc5b38" ], "x-ms-correlation-request-id": [ - "adb2a6da-f37e-4830-9770-189aa641ebc7" + "611d727f-2f7f-40cd-b709-95bd85bc5b38" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T193207Z:adb2a6da-f37e-4830-9770-189aa641ebc7" + "WESTUS:20150730T170517Z:611d727f-2f7f-40cd-b709-95bd85bc5b38" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:32:06 GMT" + "Thu, 30 Jul 2015 17:05:16 GMT" ], "ETag": [ - "0x8D2889513EDCA0D" + "0x8D299010B02EB82" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:32:09 GMT" + "Thu, 30 Jul 2015 17:05:18 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "dbc38435-b856-4bc6-b6eb-423b02f6e78b" + "82d7611f-2552-412f-8e9f-370a5c948792" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14954" + "14974" ], "x-ms-request-id": [ - "4856e516-130d-4c10-8035-1792348a39b2" + "dab0e9c7-eaa6-4412-9bb6-bf2e9fa21201" ], "x-ms-correlation-request-id": [ - "4856e516-130d-4c10-8035-1792348a39b2" + "dab0e9c7-eaa6-4412-9bb6-bf2e9fa21201" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T193209Z:4856e516-130d-4c10-8035-1792348a39b2" + "WESTUS:20150730T170518Z:dab0e9c7-eaa6-4412-9bb6-bf2e9fa21201" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:32:08 GMT" + "Thu, 30 Jul 2015 17:05:18 GMT" ], "ETag": [ - "0x8D2889515351FD2" + "0x8D299010C169D04" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "1d614c8b-41ac-445b-a3d1-4b0e964ad83b" + "49dd5434-e91e-44db-a363-0e8bf689421e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1181" + "1193" ], "x-ms-request-id": [ - "c6dbdc19-0e85-4adb-b9f3-7a26da4ae307" + "98e9b18d-2ee8-48c8-a15d-fe7c93cf3a15" ], "x-ms-correlation-request-id": [ - "c6dbdc19-0e85-4adb-b9f3-7a26da4ae307" + "98e9b18d-2ee8-48c8-a15d-fe7c93cf3a15" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T193207Z:c6dbdc19-0e85-4adb-b9f3-7a26da4ae307" + "WESTUS:20150730T170517Z:98e9b18d-2ee8-48c8-a15d-fe7c93cf3a15" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:32:06 GMT" + "Thu, 30 Jul 2015 17:05:16 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "53f4a9d5-8821-4c1c-a239-84618574d911" + "d325958a-1bd0-4506-8679-a729a2675fed" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1180" + "1192" ], "x-ms-request-id": [ - "13c2488f-1ba5-417b-a5fa-53a05650ad21" + "6d676ed4-b6e9-4162-83a2-a8938447c94a" ], "x-ms-correlation-request-id": [ - "13c2488f-1ba5-417b-a5fa-53a05650ad21" + "6d676ed4-b6e9-4162-83a2-a8938447c94a" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T193209Z:13c2488f-1ba5-417b-a5fa-53a05650ad21" + "WESTUS:20150730T170519Z:6d676ed4-b6e9-4162-83a2-a8938447c94a" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:32:09 GMT" + "Thu, 30 Jul 2015 17:05:18 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,58 +337,126 @@ "StatusCode": 200 }, { - "RequestUri": "/pools?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testFilter1\",\r\n \"tvmSize\": \"small\",\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"osFamily\": \"4\"\r\n}", + "RequestBody": "{\r\n \"id\": \"testFilter1\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetDedicated\": 0,\r\n \"enableInterNodeCommunication\": false\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "202" + "136" + ], + "client-request-id": [ + "565112b3-bce2-44ca-87b6-7293e0b87fb7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:17 GMT" + ], + "return-client-request-id": [ + "true" ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:05:17 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "bcf6d29a-555e-4f8c-b068-82b4d427e049" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "eb0e4e2e-7213-468c-a3cf-9e10e364e3bf" + "565112b3-bce2-44ca-87b6-7293e0b87fb7" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testFilter1" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:17 GMT" + ], + "ETag": [ + "0x8D299010B401DED" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/pools/testFilter1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testFilter2\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetDedicated\": 0,\r\n \"enableInterNodeCommunication\": false\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "136" + ], + "client-request-id": [ + "0c84ea0f-f97f-47ee-8247-228bdcd47126" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:32:07 GMT" + "Thu, 30 Jul 2015 17:05:17 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 19:32:08 GMT" + "Thu, 30 Jul 2015 17:05:17 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "003a8ca7-a115-45be-9460-5aa3ec49bf40" + "b95f74a3-40c5-437f-9abb-6adeae32404e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "0c84ea0f-f97f-47ee-8247-228bdcd47126" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/pools/testFilter1" + "https://pstests.eastus.batch.azure.com/pools/testFilter2" ], "Date": [ - "Thu, 09 Jul 2015 19:32:07 GMT" + "Thu, 30 Jul 2015 17:05:17 GMT" ], "ETag": [ - "0x8D28895142ED964" + "0x8D299010B6B5BD6" ], "Location": [ - "https://pstests.batch.core.windows.net/pools/testFilter1" + "https://pstests.eastus.batch.azure.com/pools/testFilter2" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -397,58 +465,126 @@ "StatusCode": 201 }, { - "RequestUri": "/pools?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testFilter2\",\r\n \"tvmSize\": \"small\",\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"osFamily\": \"4\"\r\n}", + "RequestBody": "{\r\n \"id\": \"testFilter2\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetDedicated\": 0,\r\n \"enableInterNodeCommunication\": false\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "202" + "136" + ], + "client-request-id": [ + "0c84ea0f-f97f-47ee-8247-228bdcd47126" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:17 GMT" + ], + "return-client-request-id": [ + "true" ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:05:17 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "b95f74a3-40c5-437f-9abb-6adeae32404e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "fe94277c-1e6d-4ae2-bcc0-b49a92d3b629" + "0c84ea0f-f97f-47ee-8247-228bdcd47126" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testFilter2" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:17 GMT" + ], + "ETag": [ + "0x8D299010B6B5BD6" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/pools/testFilter2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdFilterTest\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetDedicated\": 0,\r\n \"enableInterNodeCommunication\": false\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "140" + ], + "client-request-id": [ + "c7edebd0-a6cf-42af-8265-acff2660ee0c" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:32:08 GMT" + "Thu, 30 Jul 2015 17:05:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 19:32:08 GMT" + "Thu, 30 Jul 2015 17:05:18 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "f57850a7-f1c8-4372-ae08-01a077c5761d" + "4fd601d7-11ac-4ec6-9dfb-b5df2911ea35" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "c7edebd0-a6cf-42af-8265-acff2660ee0c" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/pools/testFilter2" + "https://pstests.eastus.batch.azure.com/pools/thirdFilterTest" ], "Date": [ - "Thu, 09 Jul 2015 19:32:08 GMT" + "Thu, 30 Jul 2015 17:05:17 GMT" ], "ETag": [ - "0x8D288951487E233" + "0x8D299010BA9A454" ], "Location": [ - "https://pstests.batch.core.windows.net/pools/testFilter2" + "https://pstests.eastus.batch.azure.com/pools/thirdFilterTest" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -457,58 +593,126 @@ "StatusCode": 201 }, { - "RequestUri": "/pools?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"thirdFilterTest\",\r\n \"tvmSize\": \"small\",\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"osFamily\": \"4\"\r\n}", + "RequestBody": "{\r\n \"id\": \"thirdFilterTest\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetDedicated\": 0,\r\n \"enableInterNodeCommunication\": false\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "206" + "140" + ], + "client-request-id": [ + "c7edebd0-a6cf-42af-8265-acff2660ee0c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:18 GMT" + ], + "return-client-request-id": [ + "true" ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:05:18 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4fd601d7-11ac-4ec6-9dfb-b5df2911ea35" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "117cdde8-d736-4cf1-b3a9-861daca14d02" + "c7edebd0-a6cf-42af-8265-acff2660ee0c" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/thirdFilterTest" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:17 GMT" + ], + "ETag": [ + "0x8D299010BA9A454" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/pools/thirdFilterTest" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdFilterTest\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetDedicated\": 0,\r\n \"enableInterNodeCommunication\": false\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "140" + ], + "client-request-id": [ + "c7edebd0-a6cf-42af-8265-acff2660ee0c" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:32:08 GMT" + "Thu, 30 Jul 2015 17:05:18 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 19:32:09 GMT" + "Thu, 30 Jul 2015 17:05:18 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "a05a7314-bf22-49a6-aa69-840cefa62287" + "4fd601d7-11ac-4ec6-9dfb-b5df2911ea35" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "c7edebd0-a6cf-42af-8265-acff2660ee0c" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/pools/thirdFilterTest" + "https://pstests.eastus.batch.azure.com/pools/thirdFilterTest" ], "Date": [ - "Thu, 09 Jul 2015 19:32:09 GMT" + "Thu, 30 Jul 2015 17:05:17 GMT" ], "ETag": [ - "0x8D2889514DE9429" + "0x8D299010BA9A454" ], "Location": [ - "https://pstests.batch.core.windows.net/pools/thirdFilterTest" + "https://pstests.eastus.batch.azure.com/pools/thirdFilterTest" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -517,25 +721,26 @@ "StatusCode": 201 }, { - "RequestUri": "/pools?api-version=2014-10-01.1.0&$filter=startswith(name%2C'testFilter')", - "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4wJiRmaWx0ZXI9c3RhcnRzd2l0aCUyOG5hbWUlMkMlMjd0ZXN0RmlsdGVyJTI3JTI5", + "RequestUri": "/pools?$filter=startswith(id%2C'testFilter')&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzPyRmaWx0ZXI9c3RhcnRzd2l0aCUyOGlkJTJDJTI3dGVzdEZpbHRlciUyNyUyOSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "b39288b5-263e-4c12-8633-8b8434b0de35" + "808a534e-3bf5-4e90-9358-c6e26ef900c5" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:18 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:32:09 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"name\": \"testFilter1\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testFilter1\",\r\n \"eTag\": \"0x8D28895142ED964\",\r\n \"lastModified\": \"2015-07-09T19:32:08.2780516Z\",\r\n \"creationTime\": \"2015-07-09T19:32:08.2780516Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:32:08.2780516Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T19:32:08.3720435Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n },\r\n {\r\n \"name\": \"testFilter2\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testFilter2\",\r\n \"eTag\": \"0x8D288951487E233\",\r\n \"lastModified\": \"2015-07-09T19:32:08.8615475Z\",\r\n \"creationTime\": \"2015-07-09T19:32:08.8615475Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:32:08.8615475Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T19:32:08.9485495Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"id\": \"testFilter1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testFilter1\",\r\n \"eTag\": \"0x8D299010B401DED\",\r\n \"lastModified\": \"2015-07-30T17:05:17.5429613Z\",\r\n \"creationTime\": \"2015-07-30T17:05:17.5429613Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:05:17.5429613Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:05:17.6292761Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n },\r\n {\r\n \"id\": \"testFilter2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testFilter2\",\r\n \"eTag\": \"0x8D299010B6B5BD6\",\r\n \"lastModified\": \"2015-07-30T17:05:17.826351Z\",\r\n \"creationTime\": \"2015-07-30T17:05:17.826351Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:05:17.826351Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:05:17.9068081Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" @@ -544,16 +749,19 @@ "chunked" ], "request-id": [ - "a9559b90-3ef8-426e-a35f-367904d08310" + "ae157f73-1b5b-4290-85fc-ad3a5eb54578" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "808a534e-3bf5-4e90-9358-c6e26ef900c5" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:32:08 GMT" + "Thu, 30 Jul 2015 17:05:18 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -562,22 +770,23 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testFilter1?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RGaWx0ZXIxP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools/testFilter1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RGaWx0ZXIxP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "5a08d942-c052-4cb3-a4ce-cd2fe38b54ff" + "93ea6533-36f9-4ecf-a0a1-e053d0012fd6" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:19 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:32:10 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -586,16 +795,19 @@ "chunked" ], "request-id": [ - "a77540c4-eb99-4145-88e9-02b4d5f8d8d3" + "e26bdb09-eb0f-4367-941e-d6baeae95d2f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "93ea6533-36f9-4ecf-a0a1-e053d0012fd6" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:32:10 GMT" + "Thu, 30 Jul 2015 17:05:19 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -604,22 +816,69 @@ "StatusCode": 202 }, { - "RequestUri": "/pools/testFilter2?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RGaWx0ZXIyP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools/testFilter1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RGaWx0ZXIxP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "93ea6533-36f9-4ecf-a0a1-e053d0012fd6" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:19 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e26bdb09-eb0f-4367-941e-d6baeae95d2f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "01906c97-08db-4f2b-9b7a-1d08b8b25e29" + "93ea6533-36f9-4ecf-a0a1-e053d0012fd6" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:19 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testFilter1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RGaWx0ZXIxP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "93ea6533-36f9-4ecf-a0a1-e053d0012fd6" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:32:10 GMT" + "Thu, 30 Jul 2015 17:05:19 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -628,16 +887,19 @@ "chunked" ], "request-id": [ - "41713212-b250-4848-902a-6b5fe0ae8f83" + "e26bdb09-eb0f-4367-941e-d6baeae95d2f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "93ea6533-36f9-4ecf-a0a1-e053d0012fd6" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:32:11 GMT" + "Thu, 30 Jul 2015 17:05:19 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -646,22 +908,69 @@ "StatusCode": 202 }, { - "RequestUri": "/pools/thirdFilterTest?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3RoaXJkRmlsdGVyVGVzdD9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/pools/testFilter1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RGaWx0ZXIxP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "93ea6533-36f9-4ecf-a0a1-e053d0012fd6" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:19 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e26bdb09-eb0f-4367-941e-d6baeae95d2f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "3b647f0f-1e27-46ba-997c-537e3d95355b" + "93ea6533-36f9-4ecf-a0a1-e053d0012fd6" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:19 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testFilter2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RGaWx0ZXIyP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7ca84f7c-7111-4885-8ba8-b065bbdab770" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:32:10 GMT" + "Thu, 30 Jul 2015 17:05:19 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -670,16 +979,479 @@ "chunked" ], "request-id": [ - "09ad93d1-69f6-4fb2-9a94-fddf1857c254" + "d36c7428-b6fa-4d98-a81e-a52ee793c1cb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "7ca84f7c-7111-4885-8ba8-b065bbdab770" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:19 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testFilter2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RGaWx0ZXIyP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7ca84f7c-7111-4885-8ba8-b065bbdab770" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:19 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": [ + "d36c7428-b6fa-4d98-a81e-a52ee793c1cb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7ca84f7c-7111-4885-8ba8-b065bbdab770" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:19 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testFilter2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RGaWx0ZXIyP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7ca84f7c-7111-4885-8ba8-b065bbdab770" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:19 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": [ + "d36c7428-b6fa-4d98-a81e-a52ee793c1cb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7ca84f7c-7111-4885-8ba8-b065bbdab770" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:19 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testFilter2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RGaWx0ZXIyP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7ca84f7c-7111-4885-8ba8-b065bbdab770" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:19 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": [ + "d36c7428-b6fa-4d98-a81e-a52ee793c1cb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7ca84f7c-7111-4885-8ba8-b065bbdab770" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:19 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testFilter2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RGaWx0ZXIyP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7ca84f7c-7111-4885-8ba8-b065bbdab770" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:19 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": [ + "d36c7428-b6fa-4d98-a81e-a52ee793c1cb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7ca84f7c-7111-4885-8ba8-b065bbdab770" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:19 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/thirdFilterTest?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3RoaXJkRmlsdGVyVGVzdD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b9e4344-d00f-4512-b0bb-bcfec0bc41cf" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:19 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": [ + "2f57290c-8c0f-405d-9dcb-429480a077b1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b9e4344-d00f-4512-b0bb-bcfec0bc41cf" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:19 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/thirdFilterTest?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3RoaXJkRmlsdGVyVGVzdD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b9e4344-d00f-4512-b0bb-bcfec0bc41cf" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:19 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": [ + "2f57290c-8c0f-405d-9dcb-429480a077b1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b9e4344-d00f-4512-b0bb-bcfec0bc41cf" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:19 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/thirdFilterTest?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3RoaXJkRmlsdGVyVGVzdD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b9e4344-d00f-4512-b0bb-bcfec0bc41cf" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:19 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": [ + "2f57290c-8c0f-405d-9dcb-429480a077b1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b9e4344-d00f-4512-b0bb-bcfec0bc41cf" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:19 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/thirdFilterTest?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3RoaXJkRmlsdGVyVGVzdD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b9e4344-d00f-4512-b0bb-bcfec0bc41cf" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:19 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": [ + "2f57290c-8c0f-405d-9dcb-429480a077b1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b9e4344-d00f-4512-b0bb-bcfec0bc41cf" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:19 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/thirdFilterTest?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3RoaXJkRmlsdGVyVGVzdD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b9e4344-d00f-4512-b0bb-bcfec0bc41cf" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:19 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": [ + "2f57290c-8c0f-405d-9dcb-429480a077b1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b9e4344-d00f-4512-b0bb-bcfec0bc41cf" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:19 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/thirdFilterTest?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3RoaXJkRmlsdGVyVGVzdD9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "4b9e4344-d00f-4512-b0bb-bcfec0bc41cf" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:19 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": [ + "2f57290c-8c0f-405d-9dcb-429480a077b1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "4b9e4344-d00f-4512-b0bb-bcfec0bc41cf" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:32:10 GMT" + "Thu, 30 Jul 2015 17:05:19 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestListPoolsWithMaxCount.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestListPoolsWithMaxCount.json index 148084184d4e..ec56e355d841 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestListPoolsWithMaxCount.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestListPoolsWithMaxCount.json @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14922" + "14970" ], "x-ms-request-id": [ - "a798c359-69eb-4436-8beb-31f0b6fc98d3" + "b756c1f3-b126-40a3-9352-ab4e1d5d33a4" ], "x-ms-correlation-request-id": [ - "a798c359-69eb-4436-8beb-31f0b6fc98d3" + "b756c1f3-b126-40a3-9352-ab4e1d5d33a4" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T193053Z:a798c359-69eb-4436-8beb-31f0b6fc98d3" + "WESTUS:20150730T170538Z:b756c1f3-b126-40a3-9352-ab4e1d5d33a4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:30:52 GMT" + "Thu, 30 Jul 2015 17:05:37 GMT" ] }, "StatusCode": 200 @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14921" + "14969" ], "x-ms-request-id": [ - "4fade442-a320-4f9b-8978-2246deda634b" + "f28c33f6-1b14-4d6d-83d6-475acc6c892e" ], "x-ms-correlation-request-id": [ - "4fade442-a320-4f9b-8978-2246deda634b" + "f28c33f6-1b14-4d6d-83d6-475acc6c892e" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T193056Z:4fade442-a320-4f9b-8978-2246deda634b" + "WESTUS:20150730T170541Z:f28c33f6-1b14-4d6d-83d6-475acc6c892e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:30:55 GMT" + "Thu, 30 Jul 2015 17:05:40 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:30:53 GMT" + "Thu, 30 Jul 2015 17:05:39 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "618e8156-2624-470c-901b-19887cdd3f68" + "53bcad7a-aa03-4b4b-a37e-f32aaa42e86d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14929" + "14932" ], "x-ms-request-id": [ - "a9cd4286-e695-403e-bd74-ed6699feab94" + "fc9e5c7a-cc7f-4fd0-a207-46a1fbf22f0c" ], "x-ms-correlation-request-id": [ - "a9cd4286-e695-403e-bd74-ed6699feab94" + "fc9e5c7a-cc7f-4fd0-a207-46a1fbf22f0c" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T193053Z:a9cd4286-e695-403e-bd74-ed6699feab94" + "WESTUS:20150730T170539Z:fc9e5c7a-cc7f-4fd0-a207-46a1fbf22f0c" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:30:53 GMT" + "Thu, 30 Jul 2015 17:05:38 GMT" ], "ETag": [ - "0x8D28894E7C54969" + "0x8D299011820365F" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:30:56 GMT" + "Thu, 30 Jul 2015 17:05:41 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "b3b2c067-26aa-4d75-b5b1-91a383eab4b4" + "efeca443-5555-4afe-822c-243c8abba20e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14928" + "14931" ], "x-ms-request-id": [ - "b664f5d6-d496-42e2-96e6-6f7d6c8fe160" + "f4012e6b-88bb-42de-a750-ca8254d76767" ], "x-ms-correlation-request-id": [ - "b664f5d6-d496-42e2-96e6-6f7d6c8fe160" + "f4012e6b-88bb-42de-a750-ca8254d76767" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T193056Z:b664f5d6-d496-42e2-96e6-6f7d6c8fe160" + "WESTUS:20150730T170541Z:f4012e6b-88bb-42de-a750-ca8254d76767" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:30:55 GMT" + "Thu, 30 Jul 2015 17:05:41 GMT" ], "ETag": [ - "0x8D28894E92B636A" + "0x8D29901198BCB3F" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "a8b2aae7-1328-49e2-a60c-673f1fd96bf4" + "8839fc1c-d769-4770-8f9a-592cecaf98a1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1159" + "1177" ], "x-ms-request-id": [ - "3e0d58b4-e03c-4cd9-8b36-c0e4508cde61" + "f46ee096-ff30-4015-9ad4-8ad01b6a4f8c" ], "x-ms-correlation-request-id": [ - "3e0d58b4-e03c-4cd9-8b36-c0e4508cde61" + "f46ee096-ff30-4015-9ad4-8ad01b6a4f8c" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T193054Z:3e0d58b4-e03c-4cd9-8b36-c0e4508cde61" + "WESTUS:20150730T170540Z:f46ee096-ff30-4015-9ad4-8ad01b6a4f8c" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:30:53 GMT" + "Thu, 30 Jul 2015 17:05:39 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "bb371899-8b6d-46d3-be4b-b1d2cf21c088" + "87e962a4-71aa-4b4d-bdb3-81f2140b8455" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1158" + "1176" ], "x-ms-request-id": [ - "0bf9e60e-d78a-40b5-ab32-720fca753e84" + "39a327c1-1373-43ff-93f9-7dc0e396696b" ], "x-ms-correlation-request-id": [ - "0bf9e60e-d78a-40b5-ab32-720fca753e84" + "39a327c1-1373-43ff-93f9-7dc0e396696b" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T193056Z:0bf9e60e-d78a-40b5-ab32-720fca753e84" + "WESTUS:20150730T170542Z:39a327c1-1373-43ff-93f9-7dc0e396696b" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:30:55 GMT" + "Thu, 30 Jul 2015 17:05:42 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,58 +337,126 @@ "StatusCode": 200 }, { - "RequestUri": "/pools?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testMaxCount1\",\r\n \"tvmSize\": \"small\",\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"osFamily\": \"4\"\r\n}", + "RequestBody": "{\r\n \"id\": \"testMaxCount1\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetDedicated\": 0,\r\n \"enableInterNodeCommunication\": false\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "204" + "138" + ], + "client-request-id": [ + "95a78f26-4714-4fc1-8315-75ca003b0aa5" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:40 GMT" + ], + "return-client-request-id": [ + "true" ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:05:40 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "29d5c835-b4e4-4df2-9ab5-620d695a509f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "f415c31a-6940-4998-a51e-40ad04fd57bc" + "95a78f26-4714-4fc1-8315-75ca003b0aa5" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testMaxCount1" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:40 GMT" + ], + "ETag": [ + "0x8D2990118F60C41" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/pools/testMaxCount1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testMaxCount2\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetDedicated\": 0,\r\n \"enableInterNodeCommunication\": false\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "138" + ], + "client-request-id": [ + "6e21da5d-85dc-424c-b189-97931e119fb2" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:30:54 GMT" + "Thu, 30 Jul 2015 17:05:40 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 19:30:54 GMT" + "Thu, 30 Jul 2015 17:05:40 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "ea4eecae-afb0-4e19-94b7-975c19827151" + "a84597c1-29d6-43e1-a980-c79c99260451" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "6e21da5d-85dc-424c-b189-97931e119fb2" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/pools/testMaxCount1" + "https://pstests.eastus.batch.azure.com/pools/testMaxCount2" ], "Date": [ - "Thu, 09 Jul 2015 19:30:53 GMT" + "Thu, 30 Jul 2015 17:05:40 GMT" ], "ETag": [ - "0x8D28894E83C368A" + "0x8D2990119214258" ], "Location": [ - "https://pstests.batch.core.windows.net/pools/testMaxCount1" + "https://pstests.eastus.batch.azure.com/pools/testMaxCount2" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -397,58 +465,126 @@ "StatusCode": 201 }, { - "RequestUri": "/pools?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testMaxCount2\",\r\n \"tvmSize\": \"small\",\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"osFamily\": \"4\"\r\n}", + "RequestBody": "{\r\n \"id\": \"testMaxCount2\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetDedicated\": 0,\r\n \"enableInterNodeCommunication\": false\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "204" + "138" + ], + "client-request-id": [ + "6e21da5d-85dc-424c-b189-97931e119fb2" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:40 GMT" + ], + "return-client-request-id": [ + "true" ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:05:40 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "a84597c1-29d6-43e1-a980-c79c99260451" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "2b66d171-7b5c-4f3a-a587-73f9a0d1a90c" + "6e21da5d-85dc-424c-b189-97931e119fb2" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testMaxCount2" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:40 GMT" + ], + "ETag": [ + "0x8D2990119214258" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/pools/testMaxCount2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdMaxCount\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetDedicated\": 0,\r\n \"enableInterNodeCommunication\": false\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "138" + ], + "client-request-id": [ + "43323561-6cc7-47b5-b1b5-1d499e79ab06" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:30:54 GMT" + "Thu, 30 Jul 2015 17:05:41 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 19:30:55 GMT" + "Thu, 30 Jul 2015 17:05:41 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "b4d115b4-214b-44a3-aecb-7e8344fde34c" + "e18f1c66-8a22-405a-ba88-6d639ad24c14" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "43323561-6cc7-47b5-b1b5-1d499e79ab06" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/pools/testMaxCount2" + "https://pstests.eastus.batch.azure.com/pools/thirdMaxCount" ], "Date": [ - "Thu, 09 Jul 2015 19:30:55 GMT" + "Thu, 30 Jul 2015 17:05:40 GMT" ], "ETag": [ - "0x8D28894E8939293" + "0x8D29901194BA43E" ], "Location": [ - "https://pstests.batch.core.windows.net/pools/testMaxCount2" + "https://pstests.eastus.batch.azure.com/pools/thirdMaxCount" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -457,58 +593,126 @@ "StatusCode": 201 }, { - "RequestUri": "/pools?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"thirdMaxCount\",\r\n \"tvmSize\": \"small\",\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"osFamily\": \"4\"\r\n}", + "RequestBody": "{\r\n \"id\": \"thirdMaxCount\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetDedicated\": 0,\r\n \"enableInterNodeCommunication\": false\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "204" + "138" + ], + "client-request-id": [ + "43323561-6cc7-47b5-b1b5-1d499e79ab06" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:41 GMT" + ], + "return-client-request-id": [ + "true" ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:05:41 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e18f1c66-8a22-405a-ba88-6d639ad24c14" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "3b1b169a-51ba-403b-a2e1-9e4225d379ec" + "43323561-6cc7-47b5-b1b5-1d499e79ab06" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/thirdMaxCount" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:40 GMT" + ], + "ETag": [ + "0x8D29901194BA43E" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/pools/thirdMaxCount" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdMaxCount\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"targetDedicated\": 0,\r\n \"enableInterNodeCommunication\": false\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "138" + ], + "client-request-id": [ + "43323561-6cc7-47b5-b1b5-1d499e79ab06" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:30:55 GMT" + "Thu, 30 Jul 2015 17:05:41 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 19:30:55 GMT" + "Thu, 30 Jul 2015 17:05:41 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "29c74d63-3038-473c-983b-88f2c985f739" + "e18f1c66-8a22-405a-ba88-6d639ad24c14" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "43323561-6cc7-47b5-b1b5-1d499e79ab06" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/pools/thirdMaxCount" + "https://pstests.eastus.batch.azure.com/pools/thirdMaxCount" ], "Date": [ - "Thu, 09 Jul 2015 19:30:54 GMT" + "Thu, 30 Jul 2015 17:05:40 GMT" ], "ETag": [ - "0x8D28894E8E66C7F" + "0x8D29901194BA43E" ], "Location": [ - "https://pstests.batch.core.windows.net/pools/thirdMaxCount" + "https://pstests.eastus.batch.azure.com/pools/thirdMaxCount" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -517,25 +721,26 @@ "StatusCode": 201 }, { - "RequestUri": "/pools?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "8d5a41ce-8eb5-4f36-b444-b38e70723362" + "7e8b3d89-2624-4aa5-8660-3502b4e0dd90" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:42 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:30:56 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"name\": \"testMaxCount1\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testMaxCount1\",\r\n \"eTag\": \"0x8D28894E83C368A\",\r\n \"lastModified\": \"2015-07-09T19:30:54.5458826Z\",\r\n \"creationTime\": \"2015-07-09T19:30:54.5458826Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:30:54.5458826Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T19:30:54.6399771Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n },\r\n {\r\n \"name\": \"testMaxCount2\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testMaxCount2\",\r\n \"eTag\": \"0x8D28894E8939293\",\r\n \"lastModified\": \"2015-07-09T19:30:55.1184019Z\",\r\n \"creationTime\": \"2015-07-09T19:30:55.1184019Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:30:55.1184019Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T19:30:55.1984015Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n },\r\n {\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D28890DD2FCEE8\",\r\n \"lastModified\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T19:03:22.4082136Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n },\r\n {\r\n \"name\": \"thirdMaxCount\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/thirdMaxCount\",\r\n \"eTag\": \"0x8D28894E8E66C7F\",\r\n \"lastModified\": \"2015-07-09T19:30:55.6613759Z\",\r\n \"creationTime\": \"2015-07-09T19:30:55.6613759Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:30:55.6613759Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T19:30:55.7764366Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"id\": \"testMaxCount1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testMaxCount1\",\r\n \"eTag\": \"0x8D2990118F60C41\",\r\n \"lastModified\": \"2015-07-30T17:05:40.5456449Z\",\r\n \"creationTime\": \"2015-07-30T17:05:40.5456449Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:05:40.5456449Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:05:40.6345551Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n },\r\n {\r\n \"id\": \"testMaxCount2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testMaxCount2\",\r\n \"eTag\": \"0x8D2990119214258\",\r\n \"lastModified\": \"2015-07-30T17:05:40.8288344Z\",\r\n \"creationTime\": \"2015-07-30T17:05:40.8288344Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:05:40.8288344Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:05:40.9102753Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n },\r\n {\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D298FCFBDD1459\",\r\n \"lastModified\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T16:38:18.3097919Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n },\r\n {\r\n \"id\": \"thirdMaxCount\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/thirdMaxCount\",\r\n \"eTag\": \"0x8D29901194BA43E\",\r\n \"lastModified\": \"2015-07-30T17:05:41.1065918Z\",\r\n \"creationTime\": \"2015-07-30T17:05:41.1065918Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:05:41.1065918Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:05:41.2105479Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 0,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" @@ -544,16 +749,19 @@ "chunked" ], "request-id": [ - "c794c883-e951-415d-adcd-74240a60eab2" + "fb67f3b3-f1f2-42df-9a83-c171be023cd6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "7e8b3d89-2624-4aa5-8660-3502b4e0dd90" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:30:56 GMT" + "Thu, 30 Jul 2015 17:05:42 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -562,22 +770,23 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testMaxCount1?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RNYXhDb3VudDE/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/pools/testMaxCount1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RNYXhDb3VudDE/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "d68b0dfb-7f88-4713-96b6-cc68e1d18df2" + "53aa20e9-4038-4019-830b-7c4e187d20a9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:43 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:30:56 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -586,16 +795,19 @@ "chunked" ], "request-id": [ - "04350bac-ec14-4b5e-9505-f7bda0dcdb5c" + "94d80aaf-6ecc-4a18-bea9-71d95a1f457f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "53aa20e9-4038-4019-830b-7c4e187d20a9" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:30:57 GMT" + "Thu, 30 Jul 2015 17:05:43 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -604,22 +816,69 @@ "StatusCode": 202 }, { - "RequestUri": "/pools/testMaxCount2?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RNYXhDb3VudDI/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/pools/testMaxCount1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RNYXhDb3VudDE/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "53aa20e9-4038-4019-830b-7c4e187d20a9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:43 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "94d80aaf-6ecc-4a18-bea9-71d95a1f457f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "b4176382-2d67-4f22-b4b3-ab9448e8b322" + "53aa20e9-4038-4019-830b-7c4e187d20a9" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:43 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testMaxCount1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RNYXhDb3VudDE/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "53aa20e9-4038-4019-830b-7c4e187d20a9" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:30:57 GMT" + "Thu, 30 Jul 2015 17:05:43 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -628,16 +887,19 @@ "chunked" ], "request-id": [ - "6f203c79-1b84-4221-8c8a-9797ac6b74b0" + "94d80aaf-6ecc-4a18-bea9-71d95a1f457f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "53aa20e9-4038-4019-830b-7c4e187d20a9" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:30:57 GMT" + "Thu, 30 Jul 2015 17:05:43 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -646,22 +908,69 @@ "StatusCode": 202 }, { - "RequestUri": "/pools/thirdMaxCount?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3RoaXJkTWF4Q291bnQ/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/pools/testMaxCount1?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RNYXhDb3VudDE/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "53aa20e9-4038-4019-830b-7c4e187d20a9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:43 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "94d80aaf-6ecc-4a18-bea9-71d95a1f457f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "5c057fce-841c-4e30-ba4c-dee59818b85e" + "53aa20e9-4038-4019-830b-7c4e187d20a9" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:43 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testMaxCount2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RNYXhDb3VudDI/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d064c8d8-7c50-4422-a8ec-7eb7bbd5f74d" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:30:57 GMT" + "Thu, 30 Jul 2015 17:05:43 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -670,16 +979,479 @@ "chunked" ], "request-id": [ - "83c7d158-b48d-41e4-8507-4c5569fa4afa" + "784a4feb-8f0e-4589-8049-3596cf7dd2b1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "d064c8d8-7c50-4422-a8ec-7eb7bbd5f74d" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:43 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testMaxCount2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RNYXhDb3VudDI/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d064c8d8-7c50-4422-a8ec-7eb7bbd5f74d" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:43 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": [ + "784a4feb-8f0e-4589-8049-3596cf7dd2b1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d064c8d8-7c50-4422-a8ec-7eb7bbd5f74d" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:43 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testMaxCount2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RNYXhDb3VudDI/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d064c8d8-7c50-4422-a8ec-7eb7bbd5f74d" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:43 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": [ + "784a4feb-8f0e-4589-8049-3596cf7dd2b1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d064c8d8-7c50-4422-a8ec-7eb7bbd5f74d" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:43 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testMaxCount2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RNYXhDb3VudDI/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d064c8d8-7c50-4422-a8ec-7eb7bbd5f74d" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:43 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": [ + "784a4feb-8f0e-4589-8049-3596cf7dd2b1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d064c8d8-7c50-4422-a8ec-7eb7bbd5f74d" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:43 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testMaxCount2?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RNYXhDb3VudDI/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d064c8d8-7c50-4422-a8ec-7eb7bbd5f74d" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:43 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": [ + "784a4feb-8f0e-4589-8049-3596cf7dd2b1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d064c8d8-7c50-4422-a8ec-7eb7bbd5f74d" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:43 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/thirdMaxCount?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3RoaXJkTWF4Q291bnQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9899e25d-2638-4e8d-858d-83a992f7ed78" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:43 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": [ + "ce105aa6-da18-4956-a5ae-e5efc0fecb89" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9899e25d-2638-4e8d-858d-83a992f7ed78" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:43 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/thirdMaxCount?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3RoaXJkTWF4Q291bnQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9899e25d-2638-4e8d-858d-83a992f7ed78" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:43 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": [ + "ce105aa6-da18-4956-a5ae-e5efc0fecb89" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9899e25d-2638-4e8d-858d-83a992f7ed78" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:43 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/thirdMaxCount?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3RoaXJkTWF4Q291bnQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9899e25d-2638-4e8d-858d-83a992f7ed78" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:43 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": [ + "ce105aa6-da18-4956-a5ae-e5efc0fecb89" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9899e25d-2638-4e8d-858d-83a992f7ed78" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:43 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/thirdMaxCount?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3RoaXJkTWF4Q291bnQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9899e25d-2638-4e8d-858d-83a992f7ed78" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:43 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": [ + "ce105aa6-da18-4956-a5ae-e5efc0fecb89" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9899e25d-2638-4e8d-858d-83a992f7ed78" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:43 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/thirdMaxCount?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3RoaXJkTWF4Q291bnQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9899e25d-2638-4e8d-858d-83a992f7ed78" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:43 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": [ + "ce105aa6-da18-4956-a5ae-e5efc0fecb89" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9899e25d-2638-4e8d-858d-83a992f7ed78" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:05:43 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/thirdMaxCount?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3RoaXJkTWF4Q291bnQ/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9899e25d-2638-4e8d-858d-83a992f7ed78" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:05:43 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": [ + "ce105aa6-da18-4956-a5ae-e5efc0fecb89" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9899e25d-2638-4e8d-858d-83a992f7ed78" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:30:57 GMT" + "Thu, 30 Jul 2015 17:05:43 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestNewPool.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestNewPool.json index 9b687e47686f..97f59b7c51df 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestNewPool.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestNewPool.json @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14927" + "14979" ], "x-ms-request-id": [ - "50029ee5-6201-432d-a2d5-c3ca1e5433bb" + "97667830-fc9c-421f-ba67-a65b1a4b3df5" ], "x-ms-correlation-request-id": [ - "50029ee5-6201-432d-a2d5-c3ca1e5433bb" + "97667830-fc9c-421f-ba67-a65b1a4b3df5" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T193118Z:50029ee5-6201-432d-a2d5-c3ca1e5433bb" + "WESTUS:20150730T170433Z:97667830-fc9c-421f-ba67-a65b1a4b3df5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:31:17 GMT" + "Thu, 30 Jul 2015 17:04:33 GMT" ] }, "StatusCode": 200 @@ -61,7 +61,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -73,37 +73,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:31:19 GMT" + "Thu, 30 Jul 2015 17:04:34 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "896fcaa6-e5aa-4e73-8e0e-047e5982e514" + "7d71dab9-01cd-492f-a7ca-6f02b7046ded" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14958" + "14971" ], "x-ms-request-id": [ - "77490f05-386f-4dee-85f1-cae5219f4f83" + "c6fdfd1e-cd1e-4a4a-b331-ffd143792aaf" ], "x-ms-correlation-request-id": [ - "77490f05-386f-4dee-85f1-cae5219f4f83" + "c6fdfd1e-cd1e-4a4a-b331-ffd143792aaf" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T193119Z:77490f05-386f-4dee-85f1-cae5219f4f83" + "WESTUS:20150730T170434Z:c6fdfd1e-cd1e-4a4a-b331-ffd143792aaf" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:31:19 GMT" + "Thu, 30 Jul 2015 17:04:33 GMT" ], "ETag": [ - "0x8D28894F6D5F917" + "0x8D29900F18EE535" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -124,7 +124,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -139,28 +139,28 @@ "no-cache" ], "request-id": [ - "83b9e340-c39e-4e6f-89e7-be833d8ced9d" + "0ed9c240-20f7-4607-92a6-d4c4af33d081" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1179" + "1191" ], "x-ms-request-id": [ - "9d9ab566-b18b-4f5e-8751-240c6deab37e" + "071f7a16-e3cb-49c5-af96-84afc5080e22" ], "x-ms-correlation-request-id": [ - "9d9ab566-b18b-4f5e-8751-240c6deab37e" + "071f7a16-e3cb-49c5-af96-84afc5080e22" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T193119Z:9d9ab566-b18b-4f5e-8751-240c6deab37e" + "WESTUS:20150730T170434Z:071f7a16-e3cb-49c5-af96-84afc5080e22" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:31:19 GMT" + "Thu, 30 Jul 2015 17:04:34 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -169,58 +169,126 @@ "StatusCode": 200 }, { - "RequestUri": "/pools?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"simple\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT10M\",\r\n \"targetDedicated\": 1,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"osFamily\": \"4\"\r\n}", + "RequestBody": "{\r\n \"id\": \"simple\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"resizeTimeout\": \"PT10M\",\r\n \"targetDedicated\": 1,\r\n \"enableInterNodeCommunication\": false\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "221" + "160" + ], + "client-request-id": [ + "83eef28a-9e40-4fa5-90fb-726b747284d9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:34 GMT" + ], + "return-client-request-id": [ + "true" ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:04:35 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "62a18fb0-d692-4d5b-9fb2-03b4c462dd99" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "bc997a12-9530-4624-aba9-633e9eebcc2c" + "83eef28a-9e40-4fa5-90fb-726b747284d9" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/simple" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:35 GMT" + ], + "ETag": [ + "0x8D29900F1F5C0DB" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/pools/simple" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"complex\",\r\n \"displayName\": \"displayName\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"enableInterNodeCommunication\": true,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct1.blob.core.windows.net/\",\r\n \"filePath\": \"filePath1\"\r\n },\r\n {\r\n \"blobSource\": \"https://testacct2.blob.core.windows.net/\",\r\n \"filePath\": \"filePath2\"\r\n }\r\n ]\r\n },\r\n \"maxTasksPerNode\": 2,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Pack\"\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"meta2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"meta1\",\r\n \"value\": \"value1\"\r\n }\r\n ]\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "779" + ], + "client-request-id": [ + "e23ae79e-bf00-4a6e-82bd-b24eb87801f5" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:31:19 GMT" + "Thu, 30 Jul 2015 17:04:35 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 19:31:19 GMT" + "Thu, 30 Jul 2015 17:04:35 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "0d532c22-a817-4b36-8c8a-f2f08c6f392c" + "d90a16c4-4d29-458b-962c-64f3f24db194" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "e23ae79e-bf00-4a6e-82bd-b24eb87801f5" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/pools/simple" + "https://pstests.eastus.batch.azure.com/pools/complex" ], "Date": [ - "Thu, 09 Jul 2015 19:31:19 GMT" + "Thu, 30 Jul 2015 17:04:35 GMT" ], "ETag": [ - "0x8D28894F75C51ED" + "0x8D29900F245A0A1" ], "Location": [ - "https://pstests.batch.core.windows.net/pools/simple" + "https://pstests.eastus.batch.azure.com/pools/complex" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -229,58 +297,126 @@ "StatusCode": 201 }, { - "RequestUri": "/pools?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"complex\",\r\n \"tvmSize\": \"small\",\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"communication\": true,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct1.blob.core.windows.net/\",\r\n \"filePath\": \"filePath1\"\r\n },\r\n {\r\n \"blobSource\": \"https://testacct2.blob.core.windows.net/\",\r\n \"filePath\": \"filePath2\"\r\n }\r\n ]\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"meta2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"meta1\",\r\n \"value\": \"value1\"\r\n }\r\n ],\r\n \"maxTasksPerTVM\": 2,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Pack\"\r\n },\r\n \"osFamily\": \"4\"\r\n}", + "RequestBody": "{\r\n \"id\": \"complex\",\r\n \"displayName\": \"displayName\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"enableInterNodeCommunication\": true,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct1.blob.core.windows.net/\",\r\n \"filePath\": \"filePath1\"\r\n },\r\n {\r\n \"blobSource\": \"https://testacct2.blob.core.windows.net/\",\r\n \"filePath\": \"filePath2\"\r\n }\r\n ]\r\n },\r\n \"maxTasksPerNode\": 2,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Pack\"\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"meta2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"meta1\",\r\n \"value\": \"value1\"\r\n }\r\n ]\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "690" + "779" + ], + "client-request-id": [ + "e23ae79e-bf00-4a6e-82bd-b24eb87801f5" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:35 GMT" + ], + "return-client-request-id": [ + "true" ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:04:35 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d90a16c4-4d29-458b-962c-64f3f24db194" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "5b2dc906-a98f-4887-bd00-8ec0c4ba8a0d" + "e23ae79e-bf00-4a6e-82bd-b24eb87801f5" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/complex" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:35 GMT" + ], + "ETag": [ + "0x8D29900F245A0A1" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/pools/complex" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/pools?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"complex\",\r\n \"displayName\": \"displayName\",\r\n \"vmSize\": \"small\",\r\n \"osFamily\": \"4\",\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"enableInterNodeCommunication\": true,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct1.blob.core.windows.net/\",\r\n \"filePath\": \"filePath1\"\r\n },\r\n {\r\n \"blobSource\": \"https://testacct2.blob.core.windows.net/\",\r\n \"filePath\": \"filePath2\"\r\n }\r\n ]\r\n },\r\n \"maxTasksPerNode\": 2,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Pack\"\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"meta2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"meta1\",\r\n \"value\": \"value1\"\r\n }\r\n ]\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "779" + ], + "client-request-id": [ + "e23ae79e-bf00-4a6e-82bd-b24eb87801f5" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:31:20 GMT" + "Thu, 30 Jul 2015 17:04:35 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 19:31:21 GMT" + "Thu, 30 Jul 2015 17:04:35 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "d0713053-dafb-4e3f-8d00-af68088a6c04" + "d90a16c4-4d29-458b-962c-64f3f24db194" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "e23ae79e-bf00-4a6e-82bd-b24eb87801f5" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/pools/complex" + "https://pstests.eastus.batch.azure.com/pools/complex" ], "Date": [ - "Thu, 09 Jul 2015 19:31:20 GMT" + "Thu, 30 Jul 2015 17:04:35 GMT" ], "ETag": [ - "0x8D28894F80EA52E" + "0x8D29900F245A0A1" ], "Location": [ - "https://pstests.batch.core.windows.net/pools/complex" + "https://pstests.eastus.batch.azure.com/pools/complex" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -289,49 +425,53 @@ "StatusCode": 201 }, { - "RequestUri": "/pools/simple?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3NpbXBsZT9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/pools/simple?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3NpbXBsZT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "7f25dba6-21f7-44ca-a2f6-766b40a8b928" + "dc790ee3-bbd2-4038-b7b5-dfbd9ebcdcbf" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:35 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:31:19 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"simple\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/simple\",\r\n \"eTag\": \"0x8D28894F75C51ED\",\r\n \"lastModified\": \"2015-07-09T19:31:19.9221229Z\",\r\n \"creationTime\": \"2015-07-09T19:31:19.9221229Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:31:19.9221229Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T19:31:19.9221229Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT10M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 1,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"simple\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/simple\",\r\n \"eTag\": \"0x8D29900F1F5C0DB\",\r\n \"lastModified\": \"2015-07-30T17:04:35.1125723Z\",\r\n \"creationTime\": \"2015-07-30T17:04:35.1125723Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:04:35.1125723Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:04:35.1125723Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT10M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 1,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:31:19 GMT" + "Thu, 30 Jul 2015 17:04:35 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "6f92b22f-dc04-4ac1-8c9a-a3f23f62ed59" + "df4ab629-bc46-4763-95d7-9cef72d50ba8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "dc790ee3-bbd2-4038-b7b5-dfbd9ebcdcbf" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:31:19 GMT" + "Thu, 30 Jul 2015 17:04:35 GMT" ], "ETag": [ - "0x8D28894F75C51ED" + "0x8D29900F1F5C0DB" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -340,49 +480,53 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/complex?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL2NvbXBsZXg/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/pools/simple?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3NpbXBsZT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "b5024b2e-67db-4118-8310-3de54a17386f" + "dc790ee3-bbd2-4038-b7b5-dfbd9ebcdcbf" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:35 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:31:21 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"complex\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/complex\",\r\n \"eTag\": \"0x8D28894F80EA52E\",\r\n \"lastModified\": \"2015-07-09T19:31:21.090795Z\",\r\n \"creationTime\": \"2015-07-09T19:31:21.090795Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:31:21.090795Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T19:31:21.090795Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-07-09T19:31:21.090795Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"communication\": true,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct1.blob.core.windows.net/\",\r\n \"filePath\": \"filePath1\"\r\n },\r\n {\r\n \"blobSource\": \"https://testacct2.blob.core.windows.net/\",\r\n \"filePath\": \"filePath2\"\r\n }\r\n ],\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"meta2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"meta1\",\r\n \"value\": \"value1\"\r\n }\r\n ],\r\n \"maxTasksPerTVM\": 2,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Pack\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"simple\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/simple\",\r\n \"eTag\": \"0x8D29900F1F5C0DB\",\r\n \"lastModified\": \"2015-07-30T17:04:35.1125723Z\",\r\n \"creationTime\": \"2015-07-30T17:04:35.1125723Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:04:35.1125723Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:04:35.1125723Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT10M\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 1,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:31:21 GMT" + "Thu, 30 Jul 2015 17:04:35 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "e3cdd31e-fd08-4444-a49c-b1b04fa26a6e" + "df4ab629-bc46-4763-95d7-9cef72d50ba8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "dc790ee3-bbd2-4038-b7b5-dfbd9ebcdcbf" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:31:21 GMT" + "Thu, 30 Jul 2015 17:04:35 GMT" ], "ETag": [ - "0x8D28894F80EA52E" + "0x8D29900F1F5C0DB" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -391,82 +535,724 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/simple?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3NpbXBsZT9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "DELETE", + "RequestUri": "/pools/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL2NvbXBsZXg/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "215ca1d0-3a19-4143-8679-abd8db2573a3" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:35 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"complex\",\r\n \"displayName\": \"displayName\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/complex\",\r\n \"eTag\": \"0x8D29900F245A0A1\",\r\n \"lastModified\": \"2015-07-30T17:04:35.6360353Z\",\r\n \"creationTime\": \"2015-07-30T17:04:35.6360353Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:04:35.6360353Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:04:35.6360353Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-07-30T17:04:35.6360353Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": true,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct1.blob.core.windows.net/\",\r\n \"filePath\": \"filePath1\"\r\n },\r\n {\r\n \"blobSource\": \"https://testacct2.blob.core.windows.net/\",\r\n \"filePath\": \"filePath2\"\r\n }\r\n ],\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"meta2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"meta1\",\r\n \"value\": \"value1\"\r\n }\r\n ],\r\n \"maxTasksPerNode\": 2,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Pack\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:04:35 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "07da4751-7262-4166-b6a4-426c5b58e1e7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "1e82e691-69c3-40b7-98c7-14f4759f8a33" + "215ca1d0-3a19-4143-8679-abd8db2573a3" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:35 GMT" + ], + "ETag": [ + "0x8D29900F245A0A1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL2NvbXBsZXg/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "215ca1d0-3a19-4143-8679-abd8db2573a3" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:31:21 GMT" + "Thu, 30 Jul 2015 17:04:35 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"complex\",\r\n \"displayName\": \"displayName\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/complex\",\r\n \"eTag\": \"0x8D29900F245A0A1\",\r\n \"lastModified\": \"2015-07-30T17:04:35.6360353Z\",\r\n \"creationTime\": \"2015-07-30T17:04:35.6360353Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:04:35.6360353Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:04:35.6360353Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-07-30T17:04:35.6360353Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": true,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct1.blob.core.windows.net/\",\r\n \"filePath\": \"filePath1\"\r\n },\r\n {\r\n \"blobSource\": \"https://testacct2.blob.core.windows.net/\",\r\n \"filePath\": \"filePath2\"\r\n }\r\n ],\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"meta2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"meta1\",\r\n \"value\": \"value1\"\r\n }\r\n ],\r\n \"maxTasksPerNode\": 2,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Pack\"\r\n }\r\n}", "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:04:35 GMT" + ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "0590e183-cfd6-4661-bb64-639e5b9bd504" + "07da4751-7262-4166-b6a4-426c5b58e1e7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "215ca1d0-3a19-4143-8679-abd8db2573a3" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:31:22 GMT" + "Thu, 30 Jul 2015 17:04:35 GMT" + ], + "ETag": [ + "0x8D29900F245A0A1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 202 + "StatusCode": 200 }, { - "RequestUri": "/pools/complex?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL2NvbXBsZXg/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "DELETE", + "RequestUri": "/pools/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL2NvbXBsZXg/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "215ca1d0-3a19-4143-8679-abd8db2573a3" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:35 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"complex\",\r\n \"displayName\": \"displayName\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/complex\",\r\n \"eTag\": \"0x8D29900F245A0A1\",\r\n \"lastModified\": \"2015-07-30T17:04:35.6360353Z\",\r\n \"creationTime\": \"2015-07-30T17:04:35.6360353Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:04:35.6360353Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:04:35.6360353Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-07-30T17:04:35.6360353Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": true,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct1.blob.core.windows.net/\",\r\n \"filePath\": \"filePath1\"\r\n },\r\n {\r\n \"blobSource\": \"https://testacct2.blob.core.windows.net/\",\r\n \"filePath\": \"filePath2\"\r\n }\r\n ],\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"meta2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"meta1\",\r\n \"value\": \"value1\"\r\n }\r\n ],\r\n \"maxTasksPerNode\": 2,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Pack\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:04:35 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "07da4751-7262-4166-b6a4-426c5b58e1e7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "357c0a8b-9829-4357-9f2d-2c080a41ff0a" + "215ca1d0-3a19-4143-8679-abd8db2573a3" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:35 GMT" + ], + "ETag": [ + "0x8D29900F245A0A1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL2NvbXBsZXg/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "215ca1d0-3a19-4143-8679-abd8db2573a3" ], "ocp-date": [ - "Thu, 09 Jul 2015 19:31:21 GMT" + "Thu, 30 Jul 2015 17:04:35 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"complex\",\r\n \"displayName\": \"displayName\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/complex\",\r\n \"eTag\": \"0x8D29900F245A0A1\",\r\n \"lastModified\": \"2015-07-30T17:04:35.6360353Z\",\r\n \"creationTime\": \"2015-07-30T17:04:35.6360353Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:04:35.6360353Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:04:35.6360353Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 0,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": true,\r\n \"autoScaleFormula\": \"$TargetDedicated=2\",\r\n \"autoScaleRun\": {\r\n \"timestamp\": \"2015-07-30T17:04:35.6360353Z\",\r\n \"results\": \"$TargetDedicated=2;$NodeDeallocationOption=requeue\"\r\n },\r\n \"enableInterNodeCommunication\": true,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct1.blob.core.windows.net/\",\r\n \"filePath\": \"filePath1\"\r\n },\r\n {\r\n \"blobSource\": \"https://testacct2.blob.core.windows.net/\",\r\n \"filePath\": \"filePath2\"\r\n }\r\n ],\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"meta2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"meta1\",\r\n \"value\": \"value1\"\r\n }\r\n ],\r\n \"maxTasksPerNode\": 2,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Pack\"\r\n }\r\n}", "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:04:35 GMT" + ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "6708f9be-9e7f-4e76-a58d-d6f9fbfdc813" + "07da4751-7262-4166-b6a4-426c5b58e1e7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "215ca1d0-3a19-4143-8679-abd8db2573a3" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:35 GMT" + ], + "ETag": [ + "0x8D29900F245A0A1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/simple?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3NpbXBsZT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ca5cd58e-53f2-42a0-97b5-9833d2536c1c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:36 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4eee6761-bd0b-46ec-8459-b70b96ec02b9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ca5cd58e-53f2-42a0-97b5-9833d2536c1c" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:35 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/simple?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3NpbXBsZT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ca5cd58e-53f2-42a0-97b5-9833d2536c1c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:36 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4eee6761-bd0b-46ec-8459-b70b96ec02b9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ca5cd58e-53f2-42a0-97b5-9833d2536c1c" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:35 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/simple?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3NpbXBsZT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ca5cd58e-53f2-42a0-97b5-9833d2536c1c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:36 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4eee6761-bd0b-46ec-8459-b70b96ec02b9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ca5cd58e-53f2-42a0-97b5-9833d2536c1c" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:35 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/simple?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3NpbXBsZT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ca5cd58e-53f2-42a0-97b5-9833d2536c1c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:36 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4eee6761-bd0b-46ec-8459-b70b96ec02b9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ca5cd58e-53f2-42a0-97b5-9833d2536c1c" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:35 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/simple?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3NpbXBsZT9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ca5cd58e-53f2-42a0-97b5-9833d2536c1c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:36 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "4eee6761-bd0b-46ec-8459-b70b96ec02b9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ca5cd58e-53f2-42a0-97b5-9833d2536c1c" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:35 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL2NvbXBsZXg/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "34102c43-db68-4287-adf4-59b7bcdc7ebb" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:36 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c437d10b-2a94-4c1e-8776-483aec545ab4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "34102c43-db68-4287-adf4-59b7bcdc7ebb" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:35 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL2NvbXBsZXg/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "34102c43-db68-4287-adf4-59b7bcdc7ebb" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:36 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c437d10b-2a94-4c1e-8776-483aec545ab4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "34102c43-db68-4287-adf4-59b7bcdc7ebb" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:35 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL2NvbXBsZXg/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "34102c43-db68-4287-adf4-59b7bcdc7ebb" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:36 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c437d10b-2a94-4c1e-8776-483aec545ab4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "34102c43-db68-4287-adf4-59b7bcdc7ebb" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:35 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL2NvbXBsZXg/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "34102c43-db68-4287-adf4-59b7bcdc7ebb" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:36 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c437d10b-2a94-4c1e-8776-483aec545ab4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "34102c43-db68-4287-adf4-59b7bcdc7ebb" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:35 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL2NvbXBsZXg/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "34102c43-db68-4287-adf4-59b7bcdc7ebb" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:36 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c437d10b-2a94-4c1e-8776-483aec545ab4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "34102c43-db68-4287-adf4-59b7bcdc7ebb" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:04:35 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL2NvbXBsZXg/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "34102c43-db68-4287-adf4-59b7bcdc7ebb" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:04:36 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c437d10b-2a94-4c1e-8776-483aec545ab4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "34102c43-db68-4287-adf4-59b7bcdc7ebb" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:31:22 GMT" + "Thu, 30 Jul 2015 17:04:35 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListTaskFilesRecursive.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestResizePoolById.json similarity index 56% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListTaskFilesRecursive.json rename to src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestResizePoolById.json index 52da17a40eb7..26c9b58f65c8 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestListTaskFilesRecursive.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestResizePoolById.json @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14945" + "14922" ], "x-ms-request-id": [ - "374fd330-153a-4e80-8600-3117e2e9e92c" + "6d9ab95f-9668-480c-9722-618b5fb18ba1" ], "x-ms-correlation-request-id": [ - "374fd330-153a-4e80-8600-3117e2e9e92c" + "6d9ab95f-9668-480c-9722-618b5fb18ba1" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191740Z:374fd330-153a-4e80-8600-3117e2e9e92c" + "WESTUS:20150730T171934Z:6d9ab95f-9668-480c-9722-618b5fb18ba1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:17:39 GMT" + "Thu, 30 Jul 2015 17:19:33 GMT" ] }, "StatusCode": 200 @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14944" + "14921" ], "x-ms-request-id": [ - "cffa3e1c-098c-4b5a-965e-7785df0d0c44" + "24e07c11-2924-4480-b8b2-25ccdec04a31" ], "x-ms-correlation-request-id": [ - "cffa3e1c-098c-4b5a-965e-7785df0d0c44" + "24e07c11-2924-4480-b8b2-25ccdec04a31" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191745Z:cffa3e1c-098c-4b5a-965e-7785df0d0c44" + "WESTUS:20150730T171935Z:24e07c11-2924-4480-b8b2-25ccdec04a31" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:17:44 GMT" + "Thu, 30 Jul 2015 17:19:35 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:17:41 GMT" + "Thu, 30 Jul 2015 17:19:34 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "aa27ab32-0ec8-42e6-8f80-06fb2d38a148" + "f4383fb9-27b9-4f2a-961b-a4242738cc69" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14967" + "14957" ], "x-ms-request-id": [ - "24e3743c-0519-4566-b1c1-f3e5a45c6a68" + "33349225-1164-4b94-a37a-fd91b8f7bb89" ], "x-ms-correlation-request-id": [ - "24e3743c-0519-4566-b1c1-f3e5a45c6a68" + "33349225-1164-4b94-a37a-fd91b8f7bb89" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191741Z:24e3743c-0519-4566-b1c1-f3e5a45c6a68" + "WESTUS:20150730T171935Z:33349225-1164-4b94-a37a-fd91b8f7bb89" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:17:40 GMT" + "Thu, 30 Jul 2015 17:19:35 GMT" ], "ETag": [ - "0x8D288930F77B503" + "0x8D299030A4BEC9C" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:17:46 GMT" + "Thu, 30 Jul 2015 17:19:35 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "5753459b-00c1-47f5-b06c-7d34e7800a66" + "830bbf2c-e0cf-43f0-8d6c-59d8aff980d2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14966" + "14956" ], "x-ms-request-id": [ - "b8a9231c-390a-4e56-b951-8e7795ba0122" + "8395498b-6b5b-4034-b3bb-c48f01397a97" ], "x-ms-correlation-request-id": [ - "b8a9231c-390a-4e56-b951-8e7795ba0122" + "8395498b-6b5b-4034-b3bb-c48f01397a97" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191745Z:b8a9231c-390a-4e56-b951-8e7795ba0122" + "WESTUS:20150730T171936Z:8395498b-6b5b-4034-b3bb-c48f01397a97" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:17:45 GMT" + "Thu, 30 Jul 2015 17:19:35 GMT" ], "ETag": [ - "0x8D2889312518078" + "0x8D299030AC2A27F" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "47e0ab43-1fe3-4281-a9d5-feda2678127d" + "d7cb5b8c-aeb7-4ec7-87d9-0de28ff26a94" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1184" + "1174" ], "x-ms-request-id": [ - "d706b5bd-8d5d-49db-835c-d10d1f5b1f92" + "1c304b19-c5c9-43f1-9f77-11ffe1e0ac9b" ], "x-ms-correlation-request-id": [ - "d706b5bd-8d5d-49db-835c-d10d1f5b1f92" + "1c304b19-c5c9-43f1-9f77-11ffe1e0ac9b" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191741Z:d706b5bd-8d5d-49db-835c-d10d1f5b1f92" + "WESTUS:20150730T171935Z:1c304b19-c5c9-43f1-9f77-11ffe1e0ac9b" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:17:40 GMT" + "Thu, 30 Jul 2015 17:19:35 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "1284ebae-a1a9-4e5e-bb51-0e1e66ce565d" + "7743c1e6-2f95-4c00-813d-5fe2180f24c6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1183" + "1173" ], "x-ms-request-id": [ - "1e8baf5d-a3ba-42bc-a8b5-4ba3827ee7d3" + "585d16b4-20e9-4829-9024-274fdb725bd7" ], "x-ms-correlation-request-id": [ - "1e8baf5d-a3ba-42bc-a8b5-4ba3827ee7d3" + "585d16b4-20e9-4829-9024-274fdb725bd7" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191745Z:1e8baf5d-a3ba-42bc-a8b5-4ba3827ee7d3" + "WESTUS:20150730T171936Z:585d16b4-20e9-4829-9024-274fdb725bd7" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:17:45 GMT" + "Thu, 30 Jul 2015 17:19:36 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,220 +337,163 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testListTFRecursiveWI\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "177" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "bc3a48bd-08b5-4fa9-a14d-604e89cfcbed" + "b398f80e-4e96-4f47-adbb-4c035251da4f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:19:35 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:17:41 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29902FDEC4865\",\r\n \"lastModified\": \"2015-07-30T17:19:14.1766245Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:19:17.9574855Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"resizeError\": {\r\n \"code\": \"ResizeStopped\",\r\n \"message\": \"Desired number of dedicated nodes could not be allocated due to a StopPoolResize operation\"\r\n },\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:17:41 GMT" + "Thu, 30 Jul 2015 17:19:14 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "220687f1-7aa5-4500-bcdd-a6e3e7b3474b" + "ebedaebb-8e2c-42c3-af9f-9d0171bbebae" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "b398f80e-4e96-4f47-adbb-4c035251da4f" + ], "DataServiceVersion": [ "3.0" ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testListTFRecursiveWI" - ], "Date": [ - "Thu, 09 Jul 2015 19:17:40 GMT" + "Thu, 30 Jul 2015 17:19:34 GMT" ], "ETag": [ - "0x8D288930FBFD620" - ], - "Location": [ - "https://pstests.batch.core.windows.net/workitems/testListTFRecursiveWI" + "0x8D29902FDEC4865" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 201 + "StatusCode": 200 }, { - "RequestUri": "/workitems/testListTFRecursiveWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRGUmVjdXJzaXZlV0k/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "5858cd66-6985-465f-baac-aa12b8fe5d78" + "2cd62ffc-037d-4c28-8ede-6d12e8f17dea" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:19:35 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:17:41 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testListTFRecursiveWI\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTFRecursiveWI\",\r\n \"eTag\": \"0x8D288930FBFD620\",\r\n \"lastModified\": \"2015-07-09T19:17:41.8461728Z\",\r\n \"creationTime\": \"2015-07-09T19:17:41.8461728Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:17:41.8461728Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTFRecursiveWI/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29902FDEC4865\",\r\n \"lastModified\": \"2015-07-30T17:19:14.1766245Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:19:17.9574855Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"resizeError\": {\r\n \"code\": \"ResizeStopped\",\r\n \"message\": \"Desired number of dedicated nodes could not be allocated due to a StopPoolResize operation\"\r\n },\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:17:41 GMT" + "Thu, 30 Jul 2015 17:19:14 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "77dd58e7-3f19-4992-b114-f85a0a600590" + "843caa5d-6a9b-49b0-bfe2-dcc051e1e4f4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:17:41 GMT" - ], - "ETag": [ - "0x8D288930FBFD620" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testListTFRecursiveWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRGUmVjdXJzaXZlV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask\",\r\n \"commandLine\": \"cmd /c echo \\\"test file\\\" > testFile.txt\",\r\n \"runElevated\": true\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "176" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "f30a5581-8f11-4343-8196-faa998b3f613" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:17:41 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Last-Modified": [ - "Thu, 09 Jul 2015 19:17:42 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "5301e6b7-264d-4ba3-8b4b-9509d33fc3e4" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "2cd62ffc-037d-4c28-8ede-6d12e8f17dea" ], "DataServiceVersion": [ "3.0" ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testListTFRecursiveWI/jobs/job-0000000001/tasks/testTask" - ], "Date": [ - "Thu, 09 Jul 2015 19:17:42 GMT" + "Thu, 30 Jul 2015 17:19:35 GMT" ], "ETag": [ - "0x8D288931028614F" - ], - "Location": [ - "https://pstests.batch.core.windows.net/workitems/testListTFRecursiveWI/jobs/job-0000000001/tasks/testTask" + "0x8D29902FDEC4865" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 201 + "StatusCode": 200 }, { - "RequestUri": "/workitems/testListTFRecursiveWI/jobs/job-0000000001/tasks/testTask?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRGUmVjdXJzaXZlV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcy90ZXN0VGFzaz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "6959a4c9-17c5-4afe-8682-52a3c644fecc" + "473fed1e-af62-41d3-b342-bbf3f1f8bdff" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:19:36 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:17:42 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTFRecursiveWI/jobs/job-0000000001/tasks/testTask\",\r\n \"eTag\": \"0x8D288931028614F\",\r\n \"creationTime\": \"2015-07-09T19:17:42.5313103Z\",\r\n \"lastModified\": \"2015-07-09T19:17:42.5313103Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:17:42.5313103Z\",\r\n \"commandLine\": \"cmd /c echo \\\"test file\\\" > testFile.txt\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D299030B2CF19A\",\r\n \"lastModified\": \"2015-07-30T17:19:36.4107674Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:19:36.4107674Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 6,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:17:42 GMT" + "Thu, 30 Jul 2015 17:19:36 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "8db9a67f-c23d-4e51-aad7-cfd1c62e3e45" + "3a8d3f2a-178a-48e6-8d20-cced9985937b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "473fed1e-af62-41d3-b342-bbf3f1f8bdff" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:17:42 GMT" + "Thu, 30 Jul 2015 17:19:35 GMT" ], "ETag": [ - "0x8D288931028614F" + "0x8D299030B2CF19A" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -559,43 +502,53 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testListTFRecursiveWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0&$select=name%2Cstate&$filter=name%20eq%20'testTask'", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRGUmVjdXJzaXZlV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMCYkc2VsZWN0PW5hbWUlMkNzdGF0ZSYkZmlsdGVyPW5hbWUlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3", + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "364dcb82-0a9c-4e86-9ff3-dce5ad631cbf" + "473fed1e-af62-41d3-b342-bbf3f1f8bdff" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:19:36 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:17:42 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"name\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D299030B2CF19A\",\r\n \"lastModified\": \"2015-07-30T17:19:36.4107674Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:19:36.4107674Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 6,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:19:36 GMT" + ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "ba76e9bd-fc56-4183-817c-5daaa56f3e41" + "3a8d3f2a-178a-48e6-8d20-cced9985937b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "473fed1e-af62-41d3-b342-bbf3f1f8bdff" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:17:42 GMT" + "Thu, 30 Jul 2015 17:19:35 GMT" + ], + "ETag": [ + "0x8D299030B2CF19A" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -604,43 +557,53 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testListTFRecursiveWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0&$select=name%2Cstate&$filter=name%20eq%20'testTask'", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRGUmVjdXJzaXZlV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMCYkc2VsZWN0PW5hbWUlMkNzdGF0ZSYkZmlsdGVyPW5hbWUlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3", + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "83d622e4-b126-4d1b-ac75-81ebbf8f841c" + "473fed1e-af62-41d3-b342-bbf3f1f8bdff" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:19:36 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:17:45 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"name\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D299030B2CF19A\",\r\n \"lastModified\": \"2015-07-30T17:19:36.4107674Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:19:36.4107674Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 6,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:19:36 GMT" + ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "fbe74b08-9a2a-4a15-a6c3-c497019d05ef" + "3a8d3f2a-178a-48e6-8d20-cced9985937b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "473fed1e-af62-41d3-b342-bbf3f1f8bdff" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:17:45 GMT" + "Thu, 30 Jul 2015 17:19:35 GMT" + ], + "ETag": [ + "0x8D299030B2CF19A" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -649,130 +612,120 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testListTFRecursiveWI/jobs/job-0000000001/tasks/testTask/files?api-version=2014-10-01.1.0&recursive=False&$filter=startswith(name%2C'wd')", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRGUmVjdXJzaXZlV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcy90ZXN0VGFzay9maWxlcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMCZyZWN1cnNpdmU9RmFsc2UmJGZpbHRlcj1zdGFydHN3aXRoJTI4bmFtZSUyQyUyN3dkJTI3JTI5", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/pools/testPool?resize&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3Jlc2l6ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"targetDedicated\": 6\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "68f7de0f-e9f6-4f46-8c96-f803b2333f53" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:17:45 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"wd\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTFRecursiveWI/jobs/job-0000000001/tasks/testTask/files/wd\",\r\n \"isDirectory\": true\r\n }\r\n ]\r\n}", - "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "9141d702-6630-4949-ac53-c738c2774c90" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:17:46 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testListTFRecursiveWI/jobs/job-0000000001/tasks/testTask/files?api-version=2014-10-01.1.0&recursive=True&$filter=startswith(name%2C'wd')", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRGUmVjdXJzaXZlV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcy90ZXN0VGFzay9maWxlcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMCZyZWN1cnNpdmU9VHJ1ZSYkZmlsdGVyPXN0YXJ0c3dpdGglMjhuYW1lJTJDJTI3d2QlMjclMjk=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Length": [ + "28" ], "client-request-id": [ - "33d853c3-7e44-4f5f-9a68-0f4d55995d9f" + "bbc84f73-4bdd-45a1-884c-9fa17b74d2e0" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:19:36 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:17:46 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#files\",\r\n \"value\": [\r\n {\r\n \"name\": \"wd\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTFRecursiveWI/jobs/job-0000000001/tasks/testTask/files/wd\",\r\n \"isDirectory\": true\r\n },\r\n {\r\n \"name\": \"wd\\\\testFile.txt\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testListTFRecursiveWI/jobs/job-0000000001/tasks/testTask/files/wd\\\\testFile.txt\",\r\n \"isDirectory\": false,\r\n \"properties\": {\r\n \"creationTime\": \"2015-07-09T19:17:43.1674558Z\",\r\n \"lastModified\": \"2015-07-09T19:17:43.1674558Z\",\r\n \"contentLength\": \"14\",\r\n \"contentType\": \"application/octet-stream\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" + "Last-Modified": [ + "Thu, 30 Jul 2015 17:19:36 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "530e12bb-36d0-457e-b452-a2f75851adf7" + "ecc85d50-f207-4b2b-814a-89a362d977bd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "bbc84f73-4bdd-45a1-884c-9fa17b74d2e0" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], "Date": [ - "Thu, 09 Jul 2015 19:17:45 GMT" + "Thu, 30 Jul 2015 17:19:35 GMT" + ], + "ETag": [ + "0x8D299030B2CF19A" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testListTFRecursiveWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TGlzdFRGUmVjdXJzaXZlV0k/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "DELETE", - "RequestBody": "", + "RequestUri": "/pools/testPool?resize&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3Jlc2l6ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"targetDedicated\": 6\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "28" ], "client-request-id": [ - "cc1ab08a-8e2c-4de3-a433-8615027b6528" + "bbc84f73-4bdd-45a1-884c-9fa17b74d2e0" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:19:36 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:17:46 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:19:36 GMT" + ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "0dcebced-60a5-4e63-993d-9b23c6ce3ae6" + "ecc85d50-f207-4b2b-814a-89a362d977bd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "bbc84f73-4bdd-45a1-884c-9fa17b74d2e0" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], "Date": [ - "Thu, 09 Jul 2015 19:17:46 GMT" + "Thu, 30 Jul 2015 17:19:35 GMT" + ], + "ETag": [ + "0x8D299030B2CF19A" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestResizePoolByPipeline.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestResizePoolByPipeline.json index 6bb6f23c18aa..51ba7f010607 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestResizePoolByPipeline.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestResizePoolByPipeline.json @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14985" + "14953" ], "x-ms-request-id": [ - "33f21145-2acb-4d6e-ba80-54c5e705704a" + "cbc4c251-480e-49a3-a9a8-e0d4d8954268" ], "x-ms-correlation-request-id": [ - "33f21145-2acb-4d6e-ba80-54c5e705704a" + "cbc4c251-480e-49a3-a9a8-e0d4d8954268" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210408Z:33f21145-2acb-4d6e-ba80-54c5e705704a" + "WESTUS:20150730T173238Z:cbc4c251-480e-49a3-a9a8-e0d4d8954268" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:04:08 GMT" + "Thu, 30 Jul 2015 17:32:37 GMT" ] }, "StatusCode": 200 @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14984" + "14952" ], "x-ms-request-id": [ - "fe17540f-321a-4bc2-9027-cbaed2aa9b4a" + "e0098383-76f5-4ae9-b640-62d1ec4b430a" ], "x-ms-correlation-request-id": [ - "fe17540f-321a-4bc2-9027-cbaed2aa9b4a" + "e0098383-76f5-4ae9-b640-62d1ec4b430a" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210411Z:fe17540f-321a-4bc2-9027-cbaed2aa9b4a" + "WESTUS:20150730T173239Z:e0098383-76f5-4ae9-b640-62d1ec4b430a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:04:10 GMT" + "Thu, 30 Jul 2015 17:32:38 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:09 GMT" + "Thu, 30 Jul 2015 17:32:38 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "41fd48e8-a2ef-4dd0-8145-e5d284797ebb" + "c557e0f0-4ebd-4078-b4b1-a1103e2dc138" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "14956" ], "x-ms-request-id": [ - "748d5259-6d81-47cf-a414-79567e357482" + "f92dd095-9f3e-4b82-8b02-d916c165650b" ], "x-ms-correlation-request-id": [ - "748d5259-6d81-47cf-a414-79567e357482" + "f92dd095-9f3e-4b82-8b02-d916c165650b" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210409Z:748d5259-6d81-47cf-a414-79567e357482" + "WESTUS:20150730T173238Z:f92dd095-9f3e-4b82-8b02-d916c165650b" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:04:08 GMT" + "Thu, 30 Jul 2015 17:32:38 GMT" ], "ETag": [ - "0x8D288A1EF585BC6" + "0x8D29904DD645998" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:11 GMT" + "Thu, 30 Jul 2015 17:32:39 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "f9b25f3d-b5a4-42d1-af75-29d2e5e6c9e7" + "136a2556-50fe-4203-83e6-5a7d166dd4c2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14989" + "14955" ], "x-ms-request-id": [ - "5b6e0acd-fdce-45b8-af75-8a41684c544a" + "1e1b1922-db63-4878-9972-8a6fdaf42074" ], "x-ms-correlation-request-id": [ - "5b6e0acd-fdce-45b8-af75-8a41684c544a" + "1e1b1922-db63-4878-9972-8a6fdaf42074" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210411Z:5b6e0acd-fdce-45b8-af75-8a41684c544a" + "WESTUS:20150730T173239Z:1e1b1922-db63-4878-9972-8a6fdaf42074" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:04:10 GMT" + "Thu, 30 Jul 2015 17:32:39 GMT" ], "ETag": [ - "0x8D288A1F0362212" + "0x8D29904DDE74A0C" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "274c04ee-1b8e-4ed6-9889-1a0eb581ad48" + "e431c90a-202a-4c3d-8920-edd2f6f90181" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1181" ], "x-ms-request-id": [ - "40b7f523-a14e-4882-a507-0bf391b00aa1" + "f50f6bc2-315b-4668-8e23-17123681e063" ], "x-ms-correlation-request-id": [ - "40b7f523-a14e-4882-a507-0bf391b00aa1" + "f50f6bc2-315b-4668-8e23-17123681e063" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210409Z:40b7f523-a14e-4882-a507-0bf391b00aa1" + "WESTUS:20150730T173238Z:f50f6bc2-315b-4668-8e23-17123681e063" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:04:09 GMT" + "Thu, 30 Jul 2015 17:32:38 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "37ca5668-3f11-438c-bb3c-5df8bd249eb4" + "371e4e8d-530c-4771-8987-d5d10ea0cfc6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1180" ], "x-ms-request-id": [ - "4c8af082-38b5-4239-b9d9-6781277bfac3" + "c47848fe-9915-4118-adaf-31eeb07f9b00" ], "x-ms-correlation-request-id": [ - "4c8af082-38b5-4239-b9d9-6781277bfac3" + "c47848fe-9915-4118-adaf-31eeb07f9b00" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210411Z:4c8af082-38b5-4239-b9d9-6781277bfac3" + "WESTUS:20150730T173239Z:c47848fe-9915-4118-adaf-31eeb07f9b00" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:04:10 GMT" + "Thu, 30 Jul 2015 17:32:39 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,49 +337,53 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "393e0607-ec90-4301-b9fb-3935ca72c24f" + "c02f3493-288f-4fdd-9f17-e1ceb39827a8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:32:38 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:04:09 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D28890DD2FCEE8\",\r\n \"lastModified\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T19:03:22.4082136Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29904D2686F78\",\r\n \"lastModified\": \"2015-07-30T17:32:20.16398Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:32:23.6284242Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"resizeError\": {\r\n \"code\": \"ResizeStopped\",\r\n \"message\": \"Desired number of dedicated nodes could not be allocated due to a StopPoolResize operation\"\r\n },\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 4,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:01:58 GMT" + "Thu, 30 Jul 2015 17:32:20 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "f45960b5-46b7-4c86-9377-8168e1e355d9" + "0b09630c-b6b4-4a2c-b56f-a3d5bab2d195" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "c02f3493-288f-4fdd-9f17-e1ceb39827a8" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 21:04:09 GMT" + "Thu, 30 Jul 2015 17:32:38 GMT" ], "ETag": [ - "0x8D28890DD2FCEE8" + "0x8D29904D2686F78" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -388,49 +392,108 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "54ab356f-22b7-4a6e-97f0-236a9bd3227c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:32:39 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29904D2686F78\",\r\n \"lastModified\": \"2015-07-30T17:32:20.16398Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:32:23.6284242Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"resizeError\": {\r\n \"code\": \"ResizeStopped\",\r\n \"message\": \"Desired number of dedicated nodes could not be allocated due to a StopPoolResize operation\"\r\n },\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 4,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:32:20 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "ed0f5513-dbd5-412c-b548-37150985a5c0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "aa7f6d57-318f-41b5-b10d-7c405658a59f" + "54ab356f-22b7-4a6e-97f0-236a9bd3227c" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:32:39 GMT" + ], + "ETag": [ + "0x8D29904D2686F78" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "5bc459a1-569d-4578-8b8c-d7c09807d102" ], "ocp-date": [ - "Thu, 09 Jul 2015 21:04:11 GMT" + "Thu, 30 Jul 2015 17:32:40 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.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D28890DD2FCEE8\",\r\n \"lastModified\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T19:03:22.4082136Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29904DE38055D\",\r\n \"lastModified\": \"2015-07-30T17:32:39.9793501Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:32:39.9793501Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:01:58 GMT" + "Thu, 30 Jul 2015 17:32:39 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "31688097-26a8-4f3c-8b6c-0bcdc516ce00" + "a1e9b9a3-21c3-4b42-b888-09d730658215" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "5bc459a1-569d-4578-8b8c-d7c09807d102" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 21:04:10 GMT" + "Thu, 30 Jul 2015 17:32:39 GMT" ], "ETag": [ - "0x8D28890DD2FCEE8" + "0x8D29904DE38055D" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -439,49 +502,108 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "5bc459a1-569d-4578-8b8c-d7c09807d102" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:32:40 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29904DE38055D\",\r\n \"lastModified\": \"2015-07-30T17:32:39.9793501Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:32:39.9793501Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:32:39 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "a1e9b9a3-21c3-4b42-b888-09d730658215" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "8d32d74f-3ce0-486b-bc30-976cd8467608" + "5bc459a1-569d-4578-8b8c-d7c09807d102" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:32:39 GMT" + ], + "ETag": [ + "0x8D29904DE38055D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "5bc459a1-569d-4578-8b8c-d7c09807d102" ], "ocp-date": [ - "Thu, 09 Jul 2015 21:04:12 GMT" + "Thu, 30 Jul 2015 17:32:40 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.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A1F0A22D45\",\r\n \"lastModified\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29904DE38055D\",\r\n \"lastModified\": \"2015-07-30T17:32:39.9793501Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:32:39.9793501Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:12 GMT" + "Thu, 30 Jul 2015 17:32:39 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "1b088666-ae16-4a8d-9ed0-125ae8732fc7" + "a1e9b9a3-21c3-4b42-b888-09d730658215" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "5bc459a1-569d-4578-8b8c-d7c09807d102" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 21:04:12 GMT" + "Thu, 30 Jul 2015 17:32:39 GMT" ], "ETag": [ - "0x8D288A1F0A22D45" + "0x8D29904DE38055D" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -490,55 +612,120 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testPool?resize&api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3Jlc2l6ZSZhcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/pools/testPool?resize&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3Jlc2l6ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "POST", - "RequestBody": "{\r\n \"targetDedicated\": 5,\r\n \"resizeTimeout\": \"PT1H\",\r\n \"tvmDeallocationOption\": \"terminate\"\r\n}", + "RequestBody": "{\r\n \"targetDedicated\": 3,\r\n \"resizeTimeout\": \"PT1H\",\r\n \"nodeDeallocationOption\": \"terminate\"\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "86" + "98" + ], + "client-request-id": [ + "f10a213f-6a47-43e9-80de-afdc93b8bdc0" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:32:39 GMT" + ], + "return-client-request-id": [ + "true" ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:32:39 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "c8f6c92e-d853-422c-8cc2-2139935292f2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "4a1b289c-5650-4c75-b704-a1bcb8cac887" + "f10a213f-6a47-43e9-80de-afdc93b8bdc0" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], + "Date": [ + "Thu, 30 Jul 2015 17:32:39 GMT" + ], + "ETag": [ + "0x8D29904DE38055D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/pools/testPool?resize&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3Jlc2l6ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"targetDedicated\": 3,\r\n \"resizeTimeout\": \"PT1H\",\r\n \"nodeDeallocationOption\": \"terminate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "98" + ], + "client-request-id": [ + "f10a213f-6a47-43e9-80de-afdc93b8bdc0" ], "ocp-date": [ - "Thu, 09 Jul 2015 21:04:11 GMT" + "Thu, 30 Jul 2015 17:32:39 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:12 GMT" + "Thu, 30 Jul 2015 17:32:39 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "e352bd79-8db7-4f07-b931-e1b739009f5f" + "c8f6c92e-d853-422c-8cc2-2139935292f2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "f10a213f-6a47-43e9-80de-afdc93b8bdc0" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/pools/testPool" + "https://pstests.eastus.batch.azure.com/pools/testPool" ], "Date": [ - "Thu, 09 Jul 2015 21:04:11 GMT" + "Thu, 30 Jul 2015 17:32:39 GMT" ], "ETag": [ - "0x8D288A1F0A22D45" + "0x8D29904DE38055D" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetTaskFileContentByName.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestStopResizePoolById.json similarity index 52% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetTaskFileContentByName.json rename to src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestStopResizePoolById.json index 34e647dd4903..3c3ca4c9708e 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetTaskFileContentByName.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestStopResizePoolById.json @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14937" + "14955" ], "x-ms-request-id": [ - "e6c5e67b-107a-41cd-bec9-55a9520ce447" + "77cf1edd-0d77-49a8-87df-4803e90df6a8" ], "x-ms-correlation-request-id": [ - "e6c5e67b-107a-41cd-bec9-55a9520ce447" + "77cf1edd-0d77-49a8-87df-4803e90df6a8" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191853Z:e6c5e67b-107a-41cd-bec9-55a9520ce447" + "WESTUS:20150730T173217Z:77cf1edd-0d77-49a8-87df-4803e90df6a8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:18:52 GMT" + "Thu, 30 Jul 2015 17:32:17 GMT" ] }, "StatusCode": 200 @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14936" + "14954" ], "x-ms-request-id": [ - "a1e25e1e-9785-42a4-93ce-3cb01d21e521" + "279212c0-42df-4af5-b6d0-37213700e1b7" ], "x-ms-correlation-request-id": [ - "a1e25e1e-9785-42a4-93ce-3cb01d21e521" + "279212c0-42df-4af5-b6d0-37213700e1b7" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191858Z:a1e25e1e-9785-42a4-93ce-3cb01d21e521" + "WESTUS:20150730T173219Z:279212c0-42df-4af5-b6d0-37213700e1b7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:18:58 GMT" + "Thu, 30 Jul 2015 17:32:18 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:18:54 GMT" + "Thu, 30 Jul 2015 17:32:18 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "d61a8f63-c0e2-4326-a6be-a7a7618a653f" + "65fccc4c-824c-49a5-83c0-c6fecb541c4b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14942" + "14958" ], "x-ms-request-id": [ - "d1c4ac70-a1ce-4b7d-9228-5a5761c512ad" + "be1dacf3-f7a5-487a-897d-3f06dec343a7" ], "x-ms-correlation-request-id": [ - "d1c4ac70-a1ce-4b7d-9228-5a5761c512ad" + "be1dacf3-f7a5-487a-897d-3f06dec343a7" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191854Z:d1c4ac70-a1ce-4b7d-9228-5a5761c512ad" + "WESTUS:20150730T173218Z:be1dacf3-f7a5-487a-897d-3f06dec343a7" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:18:54 GMT" + "Thu, 30 Jul 2015 17:32:17 GMT" ], "ETag": [ - "0x8D288933B0A57FD" + "0x8D29904D1441DF5" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:18:59 GMT" + "Thu, 30 Jul 2015 17:32:19 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "96ed1625-9113-4569-a68f-a1455e7111c0" + "b8680c2d-3d11-4ede-9330-7f4c4ca4af47" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14941" + "14957" ], "x-ms-request-id": [ - "44e5e988-d3f0-423f-a5e7-57cec758ffac" + "f3b872bc-c82f-4525-b3a0-284b25a41774" ], "x-ms-correlation-request-id": [ - "44e5e988-d3f0-423f-a5e7-57cec758ffac" + "f3b872bc-c82f-4525-b3a0-284b25a41774" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191858Z:44e5e988-d3f0-423f-a5e7-57cec758ffac" + "WESTUS:20150730T173219Z:f3b872bc-c82f-4525-b3a0-284b25a41774" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:18:58 GMT" + "Thu, 30 Jul 2015 17:32:18 GMT" ], "ETag": [ - "0x8D288933DDF49EA" + "0x8D29904D1E6E3C5" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "cdb0fbbb-5f11-4c93-afd9-5cb3edd2a7c6" + "dd579c01-64e2-4abb-b16c-43fff1d0d5a0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1170" + "1183" ], "x-ms-request-id": [ - "6816c517-062d-4742-affc-efc9ee325352" + "1a3fb969-9cd7-4d7a-a2cb-a6fc2f6f92ad" ], "x-ms-correlation-request-id": [ - "6816c517-062d-4742-affc-efc9ee325352" + "1a3fb969-9cd7-4d7a-a2cb-a6fc2f6f92ad" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191854Z:6816c517-062d-4742-affc-efc9ee325352" + "WESTUS:20150730T173218Z:1a3fb969-9cd7-4d7a-a2cb-a6fc2f6f92ad" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:18:54 GMT" + "Thu, 30 Jul 2015 17:32:17 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "ac6fca59-92af-48c8-bad1-a43a7f2123cd" + "60e264b6-554a-498c-a280-9cbd6dcefda2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1169" + "1182" ], "x-ms-request-id": [ - "07fbec2a-9703-49e2-9ec3-4e7ee614a0f1" + "bee7a489-0eff-44d7-937e-55ad0202dcc0" ], "x-ms-correlation-request-id": [ - "07fbec2a-9703-49e2-9ec3-4e7ee614a0f1" + "bee7a489-0eff-44d7-937e-55ad0202dcc0" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191859Z:07fbec2a-9703-49e2-9ec3-4e7ee614a0f1" + "WESTUS:20150730T173219Z:bee7a489-0eff-44d7-937e-55ad0202dcc0" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:18:58 GMT" + "Thu, 30 Jul 2015 17:32:18 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,109 +337,108 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testGetTaskFileContentWI\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "180" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "3859d7d6-7a6a-4e8c-b9a2-eb6a57f0db7d" + "34ae64de-b8d3-4642-b364-0fe4b32e629d" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:32:18 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:18:54 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29903DEC6EF78\",\r\n \"lastModified\": \"2015-07-30T17:25:31.4192248Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:30:22.4426668Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:18:54 GMT" + "Thu, 30 Jul 2015 17:25:31 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "31f1067d-8a55-4ce6-a995-a53fb7396a68" + "b9a8fd02-4188-48c7-bb04-810a73aff664" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "34ae64de-b8d3-4642-b364-0fe4b32e629d" + ], "DataServiceVersion": [ "3.0" ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testGetTaskFileContentWI" - ], "Date": [ - "Thu, 09 Jul 2015 19:18:54 GMT" + "Thu, 30 Jul 2015 17:32:18 GMT" ], "ETag": [ - "0x8D288933B539F7A" - ], - "Location": [ - "https://pstests.batch.core.windows.net/workitems/testGetTaskFileContentWI" + "0x8D29903DEC6EF78" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 201 + "StatusCode": 200 }, { - "RequestUri": "/workitems/testGetTaskFileContentWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0R2V0VGFza0ZpbGVDb250ZW50V0k/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "bbcce397-60f9-4b72-8eb4-9af1eab45b8d" + "dcc257bb-596c-42c9-a2bb-d8750d210b68" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:32:19 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:18:54 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testGetTaskFileContentWI\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testGetTaskFileContentWI\",\r\n \"eTag\": \"0x8D288933B539F7A\",\r\n \"lastModified\": \"2015-07-09T19:18:54.9567354Z\",\r\n \"creationTime\": \"2015-07-09T19:18:54.9567354Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:18:54.9567354Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testGetTaskFileContentWI/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29903DEC6EF78\",\r\n \"lastModified\": \"2015-07-30T17:25:31.4192248Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:30:22.4426668Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 2,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:18:54 GMT" + "Thu, 30 Jul 2015 17:25:31 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "17b19f54-c05d-4b2e-afeb-7c20ec9ec129" + "ddad1f2c-ec2e-40de-8359-90ef5a936698" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "dcc257bb-596c-42c9-a2bb-d8750d210b68" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:18:54 GMT" + "Thu, 30 Jul 2015 17:32:19 GMT" ], "ETag": [ - "0x8D288933B539F7A" + "0x8D29903DEC6EF78" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -448,109 +447,108 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testGetTaskFileContentWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0R2V0VGFza0ZpbGVDb250ZW50V0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask\",\r\n \"commandLine\": \"cmd /c echo test file contents > testFile.txt\",\r\n \"runElevated\": true\r\n}", + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "181" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "1ef5950f-bd7c-41a0-891e-f1f21640fc28" + "2f7790d4-fd1f-4b32-9ac7-b1b90ab471fa" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:32:20 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:18:54 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29904D2686F78\",\r\n \"lastModified\": \"2015-07-30T17:32:20.16398Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"stopping\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:32:20.16398Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 4,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:18:55 GMT" + "Thu, 30 Jul 2015 17:32:20 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "90af8502-55ab-4dca-9595-6072e485990c" + "79c8af3b-a534-4a56-a92a-4a2b079caf90" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "2f7790d4-fd1f-4b32-9ac7-b1b90ab471fa" + ], "DataServiceVersion": [ "3.0" ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testGetTaskFileContentWI/jobs/job-0000000001/tasks/testTask" - ], "Date": [ - "Thu, 09 Jul 2015 19:18:55 GMT" + "Thu, 30 Jul 2015 17:32:19 GMT" ], "ETag": [ - "0x8D288933B79FD31" - ], - "Location": [ - "https://pstests.batch.core.windows.net/workitems/testGetTaskFileContentWI/jobs/job-0000000001/tasks/testTask" + "0x8D29904D2686F78" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 201 + "StatusCode": 200 }, { - "RequestUri": "/workitems/testGetTaskFileContentWI/jobs/job-0000000001/tasks/testTask?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0R2V0VGFza0ZpbGVDb250ZW50V0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcy90ZXN0VGFzaz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "26d20d99-7be0-407d-9e2d-0c17d4d14f64" + "2f7790d4-fd1f-4b32-9ac7-b1b90ab471fa" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:32:20 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:18:55 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testGetTaskFileContentWI/jobs/job-0000000001/tasks/testTask\",\r\n \"eTag\": \"0x8D288933B79FD31\",\r\n \"creationTime\": \"2015-07-09T19:18:55.2081713Z\",\r\n \"lastModified\": \"2015-07-09T19:18:55.2081713Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:18:55.2081713Z\",\r\n \"commandLine\": \"cmd /c echo test file contents > testFile.txt\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29904D2686F78\",\r\n \"lastModified\": \"2015-07-30T17:32:20.16398Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"stopping\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:32:20.16398Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 4,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:18:55 GMT" + "Thu, 30 Jul 2015 17:32:20 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "d4ad419e-5ebb-4d8f-9d80-84c9215dff67" + "79c8af3b-a534-4a56-a92a-4a2b079caf90" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "2f7790d4-fd1f-4b32-9ac7-b1b90ab471fa" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:18:55 GMT" + "Thu, 30 Jul 2015 17:32:19 GMT" ], "ETag": [ - "0x8D288933B79FD31" + "0x8D29904D2686F78" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -559,43 +557,53 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testGetTaskFileContentWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0&$select=name%2Cstate&$filter=name%20eq%20'testTask'", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0R2V0VGFza0ZpbGVDb250ZW50V0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMCYkc2VsZWN0PW5hbWUlMkNzdGF0ZSYkZmlsdGVyPW5hbWUlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3", + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "76e96768-fac1-4769-8362-3289afbf3f65" + "2f7790d4-fd1f-4b32-9ac7-b1b90ab471fa" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:32:20 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:18:55 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"name\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29904D2686F78\",\r\n \"lastModified\": \"2015-07-30T17:32:20.16398Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"stopping\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:32:20.16398Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 4,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:32:20 GMT" + ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "ba9a924c-9e03-4c2b-8b8a-b5256227fa07" + "79c8af3b-a534-4a56-a92a-4a2b079caf90" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "2f7790d4-fd1f-4b32-9ac7-b1b90ab471fa" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:18:56 GMT" + "Thu, 30 Jul 2015 17:32:19 GMT" + ], + "ETag": [ + "0x8D29904D2686F78" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -604,43 +612,53 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testGetTaskFileContentWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0&$select=name%2Cstate&$filter=name%20eq%20'testTask'", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0R2V0VGFza0ZpbGVDb250ZW50V0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMCYkc2VsZWN0PW5hbWUlMkNzdGF0ZSYkZmlsdGVyPW5hbWUlMjBlcSUyMCUyN3Rlc3RUYXNrJTI3", + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "79693159-6475-4b97-9866-8f9d2e732571" + "2f7790d4-fd1f-4b32-9ac7-b1b90ab471fa" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:32:20 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:18:58 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"name\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29904D2686F78\",\r\n \"lastModified\": \"2015-07-30T17:32:20.16398Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"stopping\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:32:20.16398Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 2,\r\n \"targetDedicated\": 4,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:32:20 GMT" + ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "3ab03bd4-d0de-4dce-b288-9cda892cd537" + "79c8af3b-a534-4a56-a92a-4a2b079caf90" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "2f7790d4-fd1f-4b32-9ac7-b1b90ab471fa" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:18:58 GMT" + "Thu, 30 Jul 2015 17:32:19 GMT" + ], + "ETag": [ + "0x8D29904D2686F78" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -649,268 +667,285 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testGetTaskFileContentWI/jobs/job-0000000001/tasks/testTask/files/wd/testFile.txt?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0R2V0VGFza0ZpbGVDb250ZW50V0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcy90ZXN0VGFzay9maWxlcy93ZC90ZXN0RmlsZS50eHQ/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "HEAD", - "RequestBody": "", + "RequestUri": "/pools/testPool?resize&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3Jlc2l6ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"targetDedicated\": 4\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "28" ], "client-request-id": [ - "99267815-c702-4380-a3b2-ab1e4993e644" + "d80af3b4-f3e1-453d-8f66-b06a19a8f70b" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:32:19 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:18:58 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/octet-stream" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:18:56 GMT" + "Thu, 30 Jul 2015 17:32:19 GMT" + ], + "Transfer-Encoding": [ + "chunked" ], "request-id": [ - "cfde246e-3b55-4b9f-bde3-f9f2fb8e11d6" + "297a569c-5216-46c2-9f4b-979cfe964d27" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "d80af3b4-f3e1-453d-8f66-b06a19a8f70b" + ], "DataServiceVersion": [ "3.0" ], - "ocp-creation-time": [ - "Thu, 09 Jul 2015 19:18:56 GMT" - ], - "ocp-batch-file-isdirectory": [ - "False" - ], - "ocp-batch-file-url": [ - "https%3A%2F%2Fpstests.batch.core.windows.net%2Fworkitems%2FtestGetTaskFileContentWI%2Fjobs%2Fjob-0000000001%2Ftasks%2FtestTask%2Ffiles%2Fwd%2FtestFile.txt" + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" ], "Date": [ - "Thu, 09 Jul 2015 19:18:59 GMT" + "Thu, 30 Jul 2015 17:32:19 GMT" + ], + "ETag": [ + "0x8D29904D2446C7A" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testGetTaskFileContentWI/jobs/job-0000000001/tasks/testTask/files/wd/testFile.txt?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0R2V0VGFza0ZpbGVDb250ZW50V0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcy90ZXN0VGFzay9maWxlcy93ZC90ZXN0RmlsZS50eHQ/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "HEAD", - "RequestBody": "", + "RequestUri": "/pools/testPool?resize&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3Jlc2l6ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"targetDedicated\": 4\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "28" ], "client-request-id": [ - "075185d4-076f-4d56-8b18-a2be2de08eee" + "d80af3b4-f3e1-453d-8f66-b06a19a8f70b" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:32:19 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:18:59 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/octet-stream" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:18:56 GMT" + "Thu, 30 Jul 2015 17:32:19 GMT" + ], + "Transfer-Encoding": [ + "chunked" ], "request-id": [ - "2ffd6051-2296-4772-82ec-d4f96b654073" + "297a569c-5216-46c2-9f4b-979cfe964d27" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "d80af3b4-f3e1-453d-8f66-b06a19a8f70b" + ], "DataServiceVersion": [ "3.0" ], - "ocp-creation-time": [ - "Thu, 09 Jul 2015 19:18:56 GMT" - ], - "ocp-batch-file-isdirectory": [ - "False" - ], - "ocp-batch-file-url": [ - "https%3A%2F%2Fpstests.batch.core.windows.net%2Fworkitems%2FtestGetTaskFileContentWI%2Fjobs%2Fjob-0000000001%2Ftasks%2FtestTask%2Ffiles%2Fwd%2FtestFile.txt" + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" ], "Date": [ - "Thu, 09 Jul 2015 19:18:59 GMT" + "Thu, 30 Jul 2015 17:32:19 GMT" + ], + "ETag": [ + "0x8D29904D2446C7A" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testGetTaskFileContentWI/jobs/job-0000000001/tasks/testTask/files/wd/testFile.txt?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0R2V0VGFza0ZpbGVDb250ZW50V0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcy90ZXN0VGFzay9maWxlcy93ZC90ZXN0RmlsZS50eHQ/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", + "RequestUri": "/pools/testPool?stopresize&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3N0b3ByZXNpemUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "77a258f1-a15a-4364-95c2-7dfcf51b4efa" + "679de1c5-394b-4af9-9739-cddeb39d469c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:32:20 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:18:59 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "test file contents \r\n", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/octet-stream" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:18:56 GMT" + "Thu, 30 Jul 2015 17:32:20 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "732f91bc-0163-42ff-9a46-9954342ee493" + "c21b4eff-31e4-40ed-9eaa-cb4cb42dea75" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "679de1c5-394b-4af9-9739-cddeb39d469c" + ], "DataServiceVersion": [ "3.0" ], - "ocp-creation-time": [ - "Thu, 09 Jul 2015 19:18:56 GMT" - ], - "ocp-batch-file-isdirectory": [ - "False" - ], - "ocp-batch-file-url": [ - "https%3A%2F%2Fpstests.batch.core.windows.net%2Fworkitems%2FtestGetTaskFileContentWI%2Fjobs%2Fjob-0000000001%2Ftasks%2FtestTask%2Ffiles%2Fwd%2FtestFile.txt" + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" ], "Date": [ - "Thu, 09 Jul 2015 19:18:59 GMT" + "Thu, 30 Jul 2015 17:32:19 GMT" + ], + "ETag": [ + "0x8D29904D2686F78" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testGetTaskFileContentWI/jobs/job-0000000001/tasks/testTask/files/wd/testFile.txt?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0R2V0VGFza0ZpbGVDb250ZW50V0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcy90ZXN0VGFzay9maWxlcy93ZC90ZXN0RmlsZS50eHQ/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", + "RequestUri": "/pools/testPool?stopresize&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3N0b3ByZXNpemUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "fa3de7bf-deb2-4119-9103-506cfc5c3251" + "679de1c5-394b-4af9-9739-cddeb39d469c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:32:20 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:19:00 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "test file contents \r\n", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/octet-stream" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:18:56 GMT" + "Thu, 30 Jul 2015 17:32:20 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "49449e3e-0310-45d3-b359-4b47a4323cbb" + "c21b4eff-31e4-40ed-9eaa-cb4cb42dea75" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "679de1c5-394b-4af9-9739-cddeb39d469c" + ], "DataServiceVersion": [ "3.0" ], - "ocp-creation-time": [ - "Thu, 09 Jul 2015 19:18:56 GMT" - ], - "ocp-batch-file-isdirectory": [ - "False" - ], - "ocp-batch-file-url": [ - "https%3A%2F%2Fpstests.batch.core.windows.net%2Fworkitems%2FtestGetTaskFileContentWI%2Fjobs%2Fjob-0000000001%2Ftasks%2FtestTask%2Ffiles%2Fwd%2FtestFile.txt" + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" ], "Date": [ - "Thu, 09 Jul 2015 19:19:00 GMT" + "Thu, 30 Jul 2015 17:32:19 GMT" + ], + "ETag": [ + "0x8D29904D2686F78" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testGetTaskFileContentWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0R2V0VGFza0ZpbGVDb250ZW50V0k/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "DELETE", + "RequestUri": "/pools/testPool?stopresize&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3N0b3ByZXNpemUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "89b45082-fc15-429b-b41d-4dcfc7a806ab" + "679de1c5-394b-4af9-9739-cddeb39d469c" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:32:20 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:19:00 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:32:20 GMT" + ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "08eb294e-1b4b-4208-be22-c1bad3560a54" + "c21b4eff-31e4-40ed-9eaa-cb4cb42dea75" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "679de1c5-394b-4af9-9739-cddeb39d469c" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], "Date": [ - "Thu, 09 Jul 2015 19:19:01 GMT" + "Thu, 30 Jul 2015 17:32:19 GMT" + ], + "ETag": [ + "0x8D29904D2686F78" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestStopResizePoolByName.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestStopResizePoolByName.json deleted file mode 100644 index 5d81d4ce0407..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestStopResizePoolByName.json +++ /dev/null @@ -1,1166 +0,0 @@ -{ - "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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" - ], - "x-ms-request-id": [ - "ef98f960-6a79-4a04-904b-4218ae9833b7" - ], - "x-ms-correlation-request-id": [ - "ef98f960-6a79-4a04-904b-4218ae9833b7" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T210731Z:ef98f960-6a79-4a04-904b-4218ae9833b7" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 21:07:30 GMT" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" - ], - "x-ms-request-id": [ - "b059b632-a8ca-4f01-93da-65ef21afe2f8" - ], - "x-ms-correlation-request-id": [ - "b059b632-a8ca-4f01-93da-65ef21afe2f8" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T210831Z:b059b632-a8ca-4f01-93da-65ef21afe2f8" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 21:08:30 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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:07:32 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "ad9ce511-2591-4033-a014-6a27ee64e8ea" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14981" - ], - "x-ms-request-id": [ - "939d9fce-a82c-4c2f-93fa-8ac012ec8030" - ], - "x-ms-correlation-request-id": [ - "939d9fce-a82c-4c2f-93fa-8ac012ec8030" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T210732Z:939d9fce-a82c-4c2f-93fa-8ac012ec8030" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 21:07:32 GMT" - ], - "ETag": [ - "0x8D288A267D70B45" - ], - "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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:08:32 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "94ba1f8a-f427-42e6-9151-27620b76bd07" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14980" - ], - "x-ms-request-id": [ - "81301bb2-1827-4d87-9062-a35ee5495b8c" - ], - "x-ms-correlation-request-id": [ - "81301bb2-1827-4d87-9062-a35ee5495b8c" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T210832Z:81301bb2-1827-4d87-9062-a35ee5495b8c" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 21:08:31 GMT" - ], - "ETag": [ - "0x8D288A28B93AB16" - ], - "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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "4507c543-96bb-4d6e-8681-b08df114c310" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" - ], - "x-ms-request-id": [ - "90348d74-629f-4665-b446-98432c87bca5" - ], - "x-ms-correlation-request-id": [ - "90348d74-629f-4665-b446-98432c87bca5" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T210732Z:90348d74-629f-4665-b446-98432c87bca5" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 21:07:32 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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "4a3921c8-0475-4081-953d-4fdcbd522921" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" - ], - "x-ms-request-id": [ - "5736292c-2c6b-4ac9-b588-ff0313680a41" - ], - "x-ms-correlation-request-id": [ - "5736292c-2c6b-4ac9-b588-ff0313680a41" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T210832Z:5736292c-2c6b-4ac9-b588-ff0313680a41" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 21:08:31 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "25b54834-b082-4283-8f2b-450eec883fe7" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:07:32 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A2595DBBA1\",\r\n \"lastModified\": \"2015-07-09T21:07:07.8055841Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:07:07.8055841Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 5,\r\n \"targetDedicated\": 12,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:07:07 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "14b6f6b7-3144-4d3c-be73-df94e76c460a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:07:31 GMT" - ], - "ETag": [ - "0x8D288A2595DBBA1" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "da4597f1-eb9d-45c2-a5da-aafc4e4480d6" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:07:37 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A2595DBBA1\",\r\n \"lastModified\": \"2015-07-09T21:07:07.8055841Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:07:07.8055841Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 5,\r\n \"targetDedicated\": 12,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:07:07 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "24c06ea2-16e7-49d1-91d7-b634b84e72cf" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:07:36 GMT" - ], - "ETag": [ - "0x8D288A2595DBBA1" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "2845bf00-9891-425a-8978-f9a05b674987" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:07:42 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A2595DBBA1\",\r\n \"lastModified\": \"2015-07-09T21:07:07.8055841Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:07:07.8055841Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 5,\r\n \"targetDedicated\": 12,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:07:07 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "866248b2-512c-4043-a0e6-4bea8d5d93e4" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:07:43 GMT" - ], - "ETag": [ - "0x8D288A2595DBBA1" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "8df85e4c-5fd0-499d-b8b7-b6eb49705593" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:07:48 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A2595DBBA1\",\r\n \"lastModified\": \"2015-07-09T21:07:07.8055841Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:07:07.8055841Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 5,\r\n \"targetDedicated\": 12,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:07:07 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "4d300548-583a-4a49-8d22-ffbf72fc2eb9" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:07:48 GMT" - ], - "ETag": [ - "0x8D288A2595DBBA1" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "64388ba1-f861-4aff-aa09-6c67f69fb312" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:07:53 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A2595DBBA1\",\r\n \"lastModified\": \"2015-07-09T21:07:07.8055841Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:07:07.8055841Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 5,\r\n \"targetDedicated\": 12,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:07:07 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "28cda19a-b198-4c5d-8356-9c280683c626" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:07:53 GMT" - ], - "ETag": [ - "0x8D288A2595DBBA1" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "4186cc12-0f7e-4bd6-9947-04e91044a4d4" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:07:58 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A2595DBBA1\",\r\n \"lastModified\": \"2015-07-09T21:07:07.8055841Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:07:07.8055841Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 5,\r\n \"targetDedicated\": 12,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:07:07 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "18d0b45b-c2da-4e66-a842-e58e333ad929" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:07:59 GMT" - ], - "ETag": [ - "0x8D288A2595DBBA1" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "84d86f29-e4ba-4b03-a5fe-59a41da9de09" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:08:04 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A2595DBBA1\",\r\n \"lastModified\": \"2015-07-09T21:07:07.8055841Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:07:07.8055841Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 5,\r\n \"targetDedicated\": 12,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:07:07 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "7391b752-87fd-49fc-b609-4c368ed6b95b" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:08:03 GMT" - ], - "ETag": [ - "0x8D288A2595DBBA1" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "8ce43eed-7da7-4093-9a33-99c0f69d09bd" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:08:09 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A2595DBBA1\",\r\n \"lastModified\": \"2015-07-09T21:07:07.8055841Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:07:07.8055841Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 5,\r\n \"targetDedicated\": 12,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:07:07 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "07e3a753-7895-49a5-a111-cd2d6dd7acbc" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:08:09 GMT" - ], - "ETag": [ - "0x8D288A2595DBBA1" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "5a1e1fc7-a2dc-47ac-bf6c-e48c6d8153f6" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:08:14 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A2595DBBA1\",\r\n \"lastModified\": \"2015-07-09T21:07:07.8055841Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:07:07.8055841Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 5,\r\n \"targetDedicated\": 12,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:07:07 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "62455126-bde3-48e2-84e3-b1cf71a9d94d" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:08:15 GMT" - ], - "ETag": [ - "0x8D288A2595DBBA1" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "587cf50e-ca57-4807-8366-ef6ee297718b" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:08:20 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A2595DBBA1\",\r\n \"lastModified\": \"2015-07-09T21:07:07.8055841Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:07:07.8055841Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 5,\r\n \"targetDedicated\": 12,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:07:07 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "e6c7c2c6-0d1e-43ce-b3d6-1228996385db" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:08:20 GMT" - ], - "ETag": [ - "0x8D288A2595DBBA1" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "b1450099-2d6e-4021-ba94-56d6e53e3e55" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:08:25 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A2595DBBA1\",\r\n \"lastModified\": \"2015-07-09T21:07:07.8055841Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:07:07.8055841Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 5,\r\n \"targetDedicated\": 12,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:07:07 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "22d6f673-005b-42cf-9844-d4eb9026ee0d" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:08:25 GMT" - ], - "ETag": [ - "0x8D288A2595DBBA1" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "3a07fd12-ba5e-494e-b021-8ad7036f1e9f" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:08:30 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A2595DBBA1\",\r\n \"lastModified\": \"2015-07-09T21:07:07.8055841Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:08:27.7825858Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 12,\r\n \"targetDedicated\": 12,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:07:07 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "d404ac73-9bb3-452c-9ada-a886853019aa" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:08:31 GMT" - ], - "ETag": [ - "0x8D288A2595DBBA1" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "ea9fc11d-e5a9-4bd4-b9b2-9a0f1cc381c3" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:08:32 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A2595DBBA1\",\r\n \"lastModified\": \"2015-07-09T21:07:07.8055841Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:08:27.7825858Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 12,\r\n \"targetDedicated\": 12,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:07:07 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "b45b0708-6f5b-4690-b5c7-e8cf680bb675" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:08:31 GMT" - ], - "ETag": [ - "0x8D288A2595DBBA1" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "095a0590-1943-4499-a995-3a3e03629291" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:08:33 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A28C926AEB\",\r\n \"lastModified\": \"2015-07-09T21:08:33.7146603Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"stopping\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:08:33.7146603Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 12,\r\n \"targetDedicated\": 17,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:08:33 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "52b23d74-feec-4e37-8e4b-fff7e8d925f2" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:08:33 GMT" - ], - "ETag": [ - "0x8D288A28C926AEB" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?resize&api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3Jlc2l6ZSZhcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"targetDedicated\": 17,\r\n \"resizeTimeout\": \"PT5M\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "51" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "15ed7c71-07d3-414b-8d42-9dab3a5d60b2" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:08:32 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Last-Modified": [ - "Thu, 09 Jul 2015 21:08:33 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "21713ee0-cb3a-4754-b0f3-e11533422ef1" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/pools/testPool" - ], - "Date": [ - "Thu, 09 Jul 2015 21:08:32 GMT" - ], - "ETag": [ - "0x8D288A28C37E86E" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/pools/testPool?stopresize&api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3N0b3ByZXNpemUmYXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "1cfc58ed-0f3a-4bf1-a703-600b03bc1e6f" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:08:33 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Last-Modified": [ - "Thu, 09 Jul 2015 21:08:33 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "1f43cafa-9245-4494-b68f-1a76237bb72a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/pools/testPool" - ], - "Date": [ - "Thu, 09 Jul 2015 21:08:33 GMT" - ], - "ETag": [ - "0x8D288A28C926AEB" - ], - "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/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestStopResizePoolByPipeline.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestStopResizePoolByPipeline.json index e5b57bfac1f3..92ac7f907e8b 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestStopResizePoolByPipeline.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestStopResizePoolByPipeline.json @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" + "14961" ], "x-ms-request-id": [ - "b6b67dd7-a0f8-485a-9e69-34b439a19113" + "4dc02354-9f86-4f25-840a-22c18b1b664c" ], "x-ms-correlation-request-id": [ - "b6b67dd7-a0f8-485a-9e69-34b439a19113" + "4dc02354-9f86-4f25-840a-22c18b1b664c" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210433Z:b6b67dd7-a0f8-485a-9e69-34b439a19113" + "WESTUS:20150730T171911Z:4dc02354-9f86-4f25-840a-22c18b1b664c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:04:32 GMT" + "Thu, 30 Jul 2015 17:19:10 GMT" ] }, "StatusCode": 200 @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14982" + "14960" ], "x-ms-request-id": [ - "9c1053bf-89a7-4661-b04b-09ab1cf26ee3" + "5d896eca-b2b3-4c48-9658-cfd228b80f41" ], "x-ms-correlation-request-id": [ - "9c1053bf-89a7-4661-b04b-09ab1cf26ee3" + "5d896eca-b2b3-4c48-9658-cfd228b80f41" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210637Z:9c1053bf-89a7-4661-b04b-09ab1cf26ee3" + "WESTUS:20150730T171913Z:5d896eca-b2b3-4c48-9658-cfd228b80f41" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:06:37 GMT" + "Thu, 30 Jul 2015 17:19:12 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:33 GMT" + "Thu, 30 Jul 2015 17:19:12 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "5fd3f8c9-ccab-4e4b-8f84-aa9f23b52017" + "d70b75b9-fe02-4041-a139-022baf87fbfb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14984" + "14964" ], "x-ms-request-id": [ - "274207e6-91ac-4b62-af12-dfd60c51af5a" + "eb989eb6-0886-4663-b31d-51f046fb9a30" ], "x-ms-correlation-request-id": [ - "274207e6-91ac-4b62-af12-dfd60c51af5a" + "eb989eb6-0886-4663-b31d-51f046fb9a30" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210433Z:274207e6-91ac-4b62-af12-dfd60c51af5a" + "WESTUS:20150730T171912Z:eb989eb6-0886-4663-b31d-51f046fb9a30" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:04:33 GMT" + "Thu, 30 Jul 2015 17:19:11 GMT" ], "ETag": [ - "0x8D288A1FD788F52" + "0x8D29902FCF77494" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 21:06:40 GMT" + "Thu, 30 Jul 2015 17:19:13 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "8acec238-c434-4326-83c0-11f592b3964e" + "108764f6-5a58-407c-9462-9d7980199762" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "14963" ], "x-ms-request-id": [ - "fbe8938d-dc18-40d8-998e-499c12268315" + "f7be3d0c-3024-40a3-a657-0e51bcc2d7f1" ], "x-ms-correlation-request-id": [ - "fbe8938d-dc18-40d8-998e-499c12268315" + "f7be3d0c-3024-40a3-a657-0e51bcc2d7f1" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210640Z:fbe8938d-dc18-40d8-998e-499c12268315" + "WESTUS:20150730T171913Z:f7be3d0c-3024-40a3-a657-0e51bcc2d7f1" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:06:40 GMT" + "Thu, 30 Jul 2015 17:19:12 GMT" ], "ETag": [ - "0x8D288A248FAA907" + "0x8D29902FD7EB10E" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "2664d331-402b-44a8-9424-9c4622ce2a9b" + "6c2c7266-2a88-4c66-954b-9486bad32ea9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1176" ], "x-ms-request-id": [ - "e05d04d9-6e09-4931-a0c6-fa8abb6942bd" + "b7317b89-b0c8-414c-8f47-1d8fdf28d535" ], "x-ms-correlation-request-id": [ - "e05d04d9-6e09-4931-a0c6-fa8abb6942bd" + "b7317b89-b0c8-414c-8f47-1d8fdf28d535" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210433Z:e05d04d9-6e09-4931-a0c6-fa8abb6942bd" + "WESTUS:20150730T171912Z:b7317b89-b0c8-414c-8f47-1d8fdf28d535" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:04:33 GMT" + "Thu, 30 Jul 2015 17:19:11 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "3c6ce441-82ef-4079-a240-7c3db941fad2" + "d296ea64-15b7-4ab0-8e83-6fd06a930157" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1175" ], "x-ms-request-id": [ - "bf764c53-4575-4a44-ac83-36376bdabeb9" + "0723fe91-73c0-42a8-9880-8ad146270c26" ], "x-ms-correlation-request-id": [ - "bf764c53-4575-4a44-ac83-36376bdabeb9" + "0723fe91-73c0-42a8-9880-8ad146270c26" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T210641Z:bf764c53-4575-4a44-ac83-36376bdabeb9" + "WESTUS:20150730T171913Z:0723fe91-73c0-42a8-9880-8ad146270c26" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 21:06:41 GMT" + "Thu, 30 Jul 2015 17:19:12 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,814 +337,53 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "b123d2bc-9509-40ca-acee-49a81d93945a" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:04:33 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A1F0A22D45\",\r\n \"lastModified\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:12 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "085cb5d2-2e4d-436c-9d79-884ebbea4181" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:04:33 GMT" - ], - "ETag": [ - "0x8D288A1F0A22D45" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "e8c2f812-79f6-4d25-b6b1-5182571ed28c" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:04:39 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A1F0A22D45\",\r\n \"lastModified\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:12 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "fa37685d-6b03-4743-8539-715f4c2d368d" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:04:38 GMT" - ], - "ETag": [ - "0x8D288A1F0A22D45" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "630aaa5a-c406-4a19-a619-a71ff0e3c2b3" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:04:44 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A1F0A22D45\",\r\n \"lastModified\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:12 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "922adc2f-6ab1-4810-8a35-10ec2246ff37" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:04:44 GMT" - ], - "ETag": [ - "0x8D288A1F0A22D45" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "5d442799-cb86-40d5-bddf-1542ed8dd818" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:04:49 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A1F0A22D45\",\r\n \"lastModified\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:12 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "4cf0cae8-9a2d-4f93-adca-fbac9a624314" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:04:49 GMT" - ], - "ETag": [ - "0x8D288A1F0A22D45" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "9e99adee-bb16-4fb4-9c80-bfdb721c0e45" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:04:55 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A1F0A22D45\",\r\n \"lastModified\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:12 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "b2e3958f-81ea-4cdf-abb4-13bd8052a970" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:04:55 GMT" - ], - "ETag": [ - "0x8D288A1F0A22D45" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "365b5b25-83e9-430b-98b5-96731f62f743" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:05:00 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A1F0A22D45\",\r\n \"lastModified\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:12 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "fad15fab-d49b-4850-8ec0-dba29b15079b" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:05:00 GMT" - ], - "ETag": [ - "0x8D288A1F0A22D45" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "b8036ef1-cc58-4db9-8dcc-2ca71d7be548" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:05:05 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A1F0A22D45\",\r\n \"lastModified\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:12 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "eddfb504-8141-475d-9a45-01b78a4eba5a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:05:06 GMT" - ], - "ETag": [ - "0x8D288A1F0A22D45" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "46bf3115-6b34-44b6-8294-3518ace806c8" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:05:11 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A1F0A22D45\",\r\n \"lastModified\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:12 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "408c224b-f681-4e58-bc18-d554fb21120d" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:05:11 GMT" - ], - "ETag": [ - "0x8D288A1F0A22D45" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "e73b1b46-7900-4dc1-8f35-6c2565e24085" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:05:16 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A1F0A22D45\",\r\n \"lastModified\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:12 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "88478b0c-a9f5-45f4-86f0-bb347d3b9377" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:05:17 GMT" - ], - "ETag": [ - "0x8D288A1F0A22D45" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "2184c7c9-56e8-47ff-9aeb-b821af7468d8" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:05:21 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A1F0A22D45\",\r\n \"lastModified\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:12 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "04610db0-e902-48d1-8b0d-0cf811d9452a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:05:22 GMT" - ], - "ETag": [ - "0x8D288A1F0A22D45" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "1c9f8bfb-5d23-4b21-a01a-7fd83aafcc7a" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:05:27 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A1F0A22D45\",\r\n \"lastModified\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:12 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "11aba06c-7ef8-4abf-9857-29dd296810f5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:05:27 GMT" - ], - "ETag": [ - "0x8D288A1F0A22D45" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "a30c68b0-b015-4940-9a25-433455b3951b" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:05:32 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A1F0A22D45\",\r\n \"lastModified\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:12 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "2016775b-d2e2-4404-9c97-73d7f3a1db46" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:05:32 GMT" - ], - "ETag": [ - "0x8D288A1F0A22D45" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "2f14f4fd-b380-4b6e-8cb4-44b42452df9e" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:05:37 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A1F0A22D45\",\r\n \"lastModified\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:12 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "3c763cef-9abf-47f1-8ed6-fb53b42eaf67" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:05:37 GMT" - ], - "ETag": [ - "0x8D288A1F0A22D45" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "4055bea1-2ffe-49b9-83dc-541dc6039a15" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:05:43 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A1F0A22D45\",\r\n \"lastModified\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:12 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "4c090918-e76a-4a64-ad82-96a6e2dd7312" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:05:43 GMT" - ], - "ETag": [ - "0x8D288A1F0A22D45" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "edffe793-7c69-4d8b-98de-0565fc7d0ff4" - ], - "return-client-request-id": [ - "False" + "0bac3c3b-70ea-4d06-8d6a-e4ba0b569ed1" ], "ocp-date": [ - "Thu, 09 Jul 2015 21:05:48 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A1F0A22D45\",\r\n \"lastModified\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:12 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "1ebb3ac2-eec1-4f16-abfc-112a1d39777d" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:05:48 GMT" - ], - "ETag": [ - "0x8D288A1F0A22D45" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "222caf66-6a16-4d58-bfc6-95c9457d8962" + "Thu, 30 Jul 2015 17:19:12 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:05:53 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A1F0A22D45\",\r\n \"lastModified\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D298FCFBDD1459\",\r\n \"lastModified\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T16:38:18.3097919Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:12 GMT" + "Thu, 30 Jul 2015 16:36:13 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "6186eaca-ee32-44a6-8186-927f7c069a8c" + "1b3336aa-a4f4-42bc-88a9-9c3913414317" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "0bac3c3b-70ea-4d06-8d6a-e4ba0b569ed1" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 21:05:54 GMT" + "Thu, 30 Jul 2015 17:19:12 GMT" ], "ETag": [ - "0x8D288A1F0A22D45" + "0x8D298FCFBDD1459" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1153,49 +392,53 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "d30afa07-b1df-4ac3-aed3-be687f340ac5" + "ccd23993-50b6-4127-82ce-219573b8cb3e" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:19:13 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:05:59 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A1F0A22D45\",\r\n \"lastModified\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D298FCFBDD1459\",\r\n \"lastModified\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T16:38:18.3097919Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:12 GMT" + "Thu, 30 Jul 2015 16:36:13 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "d07b181b-e97a-49c9-8220-b31fffd8b4b0" + "aa3d17a5-ed8e-4fef-9515-d315989da2d5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "ccd23993-50b6-4127-82ce-219573b8cb3e" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 21:05:59 GMT" + "Thu, 30 Jul 2015 17:19:13 GMT" ], "ETag": [ - "0x8D288A1F0A22D45" + "0x8D298FCFBDD1459" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1204,49 +447,53 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "8246b5b0-0a56-4092-b960-1a3a8ffd6f63" + "551e94e5-0b3e-464e-bcc5-dc786009574f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:19:14 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:06:04 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A1F0A22D45\",\r\n \"lastModified\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29902FDEC4865\",\r\n \"lastModified\": \"2015-07-30T17:19:14.1766245Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"stopping\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:19:14.1766245Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:12 GMT" + "Thu, 30 Jul 2015 17:19:14 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "db4d84c6-ac88-4a51-80d9-f72a7dcef631" + "b7bd9580-a8dd-4c51-a2b0-7e9503a65206" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "551e94e5-0b3e-464e-bcc5-dc786009574f" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 21:06:04 GMT" + "Thu, 30 Jul 2015 17:19:13 GMT" ], "ETag": [ - "0x8D288A1F0A22D45" + "0x8D29902FDEC4865" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1255,49 +502,53 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "9f161eb4-ead0-47e7-ad5f-eb799428ed20" + "551e94e5-0b3e-464e-bcc5-dc786009574f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:19:14 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:06:09 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A1F0A22D45\",\r\n \"lastModified\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29902FDEC4865\",\r\n \"lastModified\": \"2015-07-30T17:19:14.1766245Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"stopping\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:19:14.1766245Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:12 GMT" + "Thu, 30 Jul 2015 17:19:14 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "398ecb2e-ecd7-40cd-8a2c-165d1bf5231d" + "b7bd9580-a8dd-4c51-a2b0-7e9503a65206" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "551e94e5-0b3e-464e-bcc5-dc786009574f" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 21:06:09 GMT" + "Thu, 30 Jul 2015 17:19:13 GMT" ], "ETag": [ - "0x8D288A1F0A22D45" + "0x8D29902FDEC4865" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1306,49 +557,53 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "f83fbad0-9617-4ad1-ac23-1e510aa67ec7" + "551e94e5-0b3e-464e-bcc5-dc786009574f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:19:14 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:06:15 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A1F0A22D45\",\r\n \"lastModified\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29902FDEC4865\",\r\n \"lastModified\": \"2015-07-30T17:19:14.1766245Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"stopping\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:19:14.1766245Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:12 GMT" + "Thu, 30 Jul 2015 17:19:14 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "0deb77dc-a79b-458d-8b12-dfdba47c3149" + "b7bd9580-a8dd-4c51-a2b0-7e9503a65206" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "551e94e5-0b3e-464e-bcc5-dc786009574f" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 21:06:15 GMT" + "Thu, 30 Jul 2015 17:19:13 GMT" ], "ETag": [ - "0x8D288A1F0A22D45" + "0x8D29902FDEC4865" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1357,49 +612,53 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/pools/testPool?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "88cc5116-8089-4721-8d06-7fe0d90e1ee9" + "551e94e5-0b3e-464e-bcc5-dc786009574f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:19:14 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:06:20 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A1F0A22D45\",\r\n \"lastModified\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testPool\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/pools/testPool\",\r\n \"eTag\": \"0x8D29902FDEC4865\",\r\n \"lastModified\": \"2015-07-30T17:19:14.1766245Z\",\r\n \"creationTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:36:13.7411673Z\",\r\n \"allocationState\": \"stopping\",\r\n \"allocationStateTransitionTime\": \"2015-07-30T17:19:14.1766245Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"vmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:12 GMT" + "Thu, 30 Jul 2015 17:19:14 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "be3b4746-92fb-431c-a712-e6b5bd79f141" + "b7bd9580-a8dd-4c51-a2b0-7e9503a65206" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "551e94e5-0b3e-464e-bcc5-dc786009574f" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 21:06:20 GMT" + "Thu, 30 Jul 2015 17:19:13 GMT" ], "ETag": [ - "0x8D288A1F0A22D45" + "0x8D29902FDEC4865" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1408,310 +667,230 @@ "StatusCode": 200 }, { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/pools/testPool?resize&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3Jlc2l6ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"targetDedicated\": 5\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "c0fecf46-ef38-4bed-b49f-9d56cdd5cdee" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:06:26 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A1F0A22D45\",\r\n \"lastModified\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:12 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "7cb84d9b-9f3a-4c50-84de-be4adade4d92" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:06:26 GMT" - ], - "ETag": [ - "0x8D288A1F0A22D45" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Length": [ + "28" ], "client-request-id": [ - "3675a15e-8c59-4dad-b23a-c73a8e9980fb" + "02fa2ffa-8325-44d3-92fe-8113d88aca81" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:19:13 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:06:31 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A1F0A22D45\",\r\n \"lastModified\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:12 GMT" + "Thu, 30 Jul 2015 17:19:13 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "3b4a0cfd-78ff-4815-8202-cd94a8177963" + "71636475-fef0-46b7-bcdd-4b95729e37cd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "02fa2ffa-8325-44d3-92fe-8113d88aca81" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], "Date": [ - "Thu, 09 Jul 2015 21:06:31 GMT" + "Thu, 30 Jul 2015 17:19:13 GMT" ], "ETag": [ - "0x8D288A1F0A22D45" + "0x8D29902FDC39AA6" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/pools/testPool?resize&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3Jlc2l6ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"targetDedicated\": 5\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "087bc6d3-7023-468f-922f-fe42e9b83811" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:06:36 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A1F0A22D45\",\r\n \"lastModified\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:06:36.484518Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 5,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], - "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:12 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "a1e0cd74-1a0d-44b7-8f66-0cc80ad2cc92" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 21:06:36 GMT" - ], - "ETag": [ - "0x8D288A1F0A22D45" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Length": [ + "28" ], "client-request-id": [ - "01a3a5e6-01b8-425e-8d02-7af8a2fbaa8a" + "02fa2ffa-8325-44d3-92fe-8113d88aca81" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:19:13 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:06:41 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A1F0A22D45\",\r\n \"lastModified\": \"2015-07-09T21:04:12.0933701Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:06:36.484518Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT1H\",\r\n \"currentDedicated\": 5,\r\n \"targetDedicated\": 5,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 21:04:12 GMT" + "Thu, 30 Jul 2015 17:19:13 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "85585b60-d639-45fc-94d1-5d0c236b7429" + "71636475-fef0-46b7-bcdd-4b95729e37cd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "02fa2ffa-8325-44d3-92fe-8113d88aca81" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], "Date": [ - "Thu, 09 Jul 2015 21:06:41 GMT" + "Thu, 30 Jul 2015 17:19:13 GMT" ], "ETag": [ - "0x8D288A1F0A22D45" + "0x8D29902FDC39AA6" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", + "RequestUri": "/pools/testPool?stopresize&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3N0b3ByZXNpemUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "3e5fe875-7543-4439-ad7e-ae9657832679" + "75e48506-9324-456d-8a4b-53dcfa7521d8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:19:14 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:06:42 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D288A24A4581EF\",\r\n \"lastModified\": \"2015-07-09T21:06:42.4809967Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"stopping\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T21:06:42.4809967Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 5,\r\n \"targetDedicated\": 10,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 21:06:42 GMT" + "Thu, 30 Jul 2015 17:19:14 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "eecca9d8-78ef-4de7-a5c8-d6892cdee766" + "7f9225a1-1d19-4b63-ac99-cf262c40d66a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "75e48506-9324-456d-8a4b-53dcfa7521d8" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/pools/testPool" + ], "Date": [ - "Thu, 09 Jul 2015 21:06:42 GMT" + "Thu, 30 Jul 2015 17:19:13 GMT" ], "ETag": [ - "0x8D288A24A4581EF" + "0x8D29902FDEC4865" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/pools/testPool?resize&api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3Jlc2l6ZSZhcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/pools/testPool?stopresize&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3N0b3ByZXNpemUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"targetDedicated\": 10,\r\n \"resizeTimeout\": \"PT5M\"\r\n}", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "51" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "5803df27-9e46-4fea-9e53-e9c64e8c9192" + "75e48506-9324-456d-8a4b-53dcfa7521d8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:19:14 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:06:41 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 21:06:42 GMT" + "Thu, 30 Jul 2015 17:19:14 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "8f840f5b-91b5-4aa6-b75f-9ef7504c9c8b" + "7f9225a1-1d19-4b63-ac99-cf262c40d66a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "75e48506-9324-456d-8a4b-53dcfa7521d8" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/pools/testPool" + "https://pstests.eastus.batch.azure.com/pools/testPool" ], "Date": [ - "Thu, 09 Jul 2015 21:06:42 GMT" + "Thu, 30 Jul 2015 17:19:13 GMT" ], "ETag": [ - "0x8D288A249FD62D1" + "0x8D29902FDEC4865" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1720,49 +899,53 @@ "StatusCode": 202 }, { - "RequestUri": "/pools/testPool?stopresize&api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3N0b3ByZXNpemUmYXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/pools/testPool?stopresize&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP3N0b3ByZXNpemUmYXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "75091c39-0aed-4042-9bbf-d784c8bfaa96" + "75e48506-9324-456d-8a4b-53dcfa7521d8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:19:14 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 21:06:41 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 21:06:42 GMT" + "Thu, 30 Jul 2015 17:19:14 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "f338b048-d45b-4c92-8de9-18399fa87c89" + "7f9225a1-1d19-4b63-ac99-cf262c40d66a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "75e48506-9324-456d-8a4b-53dcfa7521d8" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/pools/testPool" + "https://pstests.eastus.batch.azure.com/pools/testPool" ], "Date": [ - "Thu, 09 Jul 2015 21:06:42 GMT" + "Thu, 30 Jul 2015 17:19:13 GMT" ], "ETag": [ - "0x8D288A24A4581EF" + "0x8D29902FDEC4865" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestCreateTask.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestCreateTask.json index 22ec9544d357..63e7ebd5bf97 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestCreateTask.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestCreateTask.json @@ -28,13 +28,13 @@ "14989" ], "x-ms-request-id": [ - "928c2a53-c06b-41ec-ae6e-76f22959fcf3" + "19c7ba69-6eba-49c6-9d05-3a8459ad2a6c" ], "x-ms-correlation-request-id": [ - "928c2a53-c06b-41ec-ae6e-76f22959fcf3" + "19c7ba69-6eba-49c6-9d05-3a8459ad2a6c" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T203148Z:928c2a53-c06b-41ec-ae6e-76f22959fcf3" + "WESTUS:20150730T165352Z:19c7ba69-6eba-49c6-9d05-3a8459ad2a6c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:31:47 GMT" + "Thu, 30 Jul 2015 16:53:51 GMT" ] }, "StatusCode": 200 @@ -76,13 +76,13 @@ "14988" ], "x-ms-request-id": [ - "9c1dd511-90ff-4bc9-b21a-d7a964bd4990" + "f72035dc-ac96-4ccc-a21a-38de9680f3ba" ], "x-ms-correlation-request-id": [ - "9c1dd511-90ff-4bc9-b21a-d7a964bd4990" + "f72035dc-ac96-4ccc-a21a-38de9680f3ba" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T203150Z:9c1dd511-90ff-4bc9-b21a-d7a964bd4990" + "WESTUS:20150730T165353Z:f72035dc-ac96-4ccc-a21a-38de9680f3ba" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:31:49 GMT" + "Thu, 30 Jul 2015 16:53:52 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 20:31:48 GMT" + "Thu, 30 Jul 2015 16:53:52 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "c3288e9b-ec9c-4497-80ef-0630751794bf" + "8b310ea1-da98-4cb2-83b0-283952f8b4e9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" + "14985" ], "x-ms-request-id": [ - "436029e1-7c82-4f36-a595-baeec8d8d2a8" + "33393af7-4644-4962-bf1c-dcf1fb99233f" ], "x-ms-correlation-request-id": [ - "436029e1-7c82-4f36-a595-baeec8d8d2a8" + "33393af7-4644-4962-bf1c-dcf1fb99233f" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T203148Z:436029e1-7c82-4f36-a595-baeec8d8d2a8" + "WESTUS:20150730T165352Z:33393af7-4644-4962-bf1c-dcf1fb99233f" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:31:48 GMT" + "Thu, 30 Jul 2015 16:53:52 GMT" ], "ETag": [ - "0x8D2889D6A474626" + "0x8D298FF73260941" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 20:31:50 GMT" + "Thu, 30 Jul 2015 16:53:53 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "d15071f6-4e3f-4631-a486-1889a30b368c" + "2393a542-5c83-4ce0-a9d0-380c46f57e7f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "14984" ], "x-ms-request-id": [ - "ecce9b0e-1f01-42d3-ac39-b73f68e29979" + "58f84fd5-2dc6-4e04-8927-949b5871543d" ], "x-ms-correlation-request-id": [ - "ecce9b0e-1f01-42d3-ac39-b73f68e29979" + "58f84fd5-2dc6-4e04-8927-949b5871543d" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T203150Z:ecce9b0e-1f01-42d3-ac39-b73f68e29979" + "WESTUS:20150730T165353Z:58f84fd5-2dc6-4e04-8927-949b5871543d" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:31:50 GMT" + "Thu, 30 Jul 2015 16:53:53 GMT" ], "ETag": [ - "0x8D2889D6B2AA8AC" + "0x8D298FF73B1A3B8" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,7 +250,7 @@ "no-cache" ], "request-id": [ - "e18882d7-0b1f-4cfc-8f6b-a0f98efb5005" + "6fc0e538-d8a4-4388-92e4-8d8aa75125fd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -259,19 +259,19 @@ "1191" ], "x-ms-request-id": [ - "36cc1814-ba4f-48ec-b24a-44980425bbcb" + "e58c8aa9-5117-4337-a37a-f0e7cd57ccf3" ], "x-ms-correlation-request-id": [ - "36cc1814-ba4f-48ec-b24a-44980425bbcb" + "e58c8aa9-5117-4337-a37a-f0e7cd57ccf3" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T203148Z:36cc1814-ba4f-48ec-b24a-44980425bbcb" + "WESTUS:20150730T165353Z:e58c8aa9-5117-4337-a37a-f0e7cd57ccf3" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:31:48 GMT" + "Thu, 30 Jul 2015 16:53:52 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,7 +307,7 @@ "no-cache" ], "request-id": [ - "42489686-4053-43c1-9e7d-a7f73fa1c472" + "8f1872ed-9017-4eaa-b815-82af909665c0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -316,19 +316,19 @@ "1190" ], "x-ms-request-id": [ - "57a76a50-8b3f-40f1-b492-fcdab8336063" + "c41a002b-2c1b-4073-82f2-ad7e90193e35" ], "x-ms-correlation-request-id": [ - "57a76a50-8b3f-40f1-b492-fcdab8336063" + "c41a002b-2c1b-4073-82f2-ad7e90193e35" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T203150Z:57a76a50-8b3f-40f1-b492-fcdab8336063" + "WESTUS:20150730T165354Z:c41a002b-2c1b-4073-82f2-ad7e90193e35" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:31:50 GMT" + "Thu, 30 Jul 2015 16:53:53 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,58 +337,62 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"createTaskWI\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", + "RequestBody": "{\r\n \"id\": \"createTaskJob\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "168" - ], - "User-Agent": [ - "WA-Batch/1.0" + "96" ], "client-request-id": [ - "acac25b8-b46c-4771-a4fc-804964c6f6ad" + "e892ffb5-6038-4e8b-85df-fc3cc4b41671" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:52 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:31:48 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 20:31:49 GMT" + "Thu, 30 Jul 2015 16:53:53 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "a618cf00-1891-46e7-9f88-585049c16385" + "e05dc0e1-f570-42a2-8505-bed65974861f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "e892ffb5-6038-4e8b-85df-fc3cc4b41671" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/createTaskWI" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Date": [ - "Thu, 09 Jul 2015 20:31:49 GMT" + "Thu, 30 Jul 2015 16:53:53 GMT" ], "ETag": [ - "0x8D2889D6AD5D834" + "0x8D298FF73983AFD" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/createTaskWI" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -397,49 +401,53 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/createTaskWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9jcmVhdGVUYXNrV0k/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/jobs/createTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvY3JlYXRlVGFza0pvYj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "8dad8145-a27e-4cc6-95bb-46085358c754" + "2818b22b-d1e1-4ce1-855e-e3634b0f498d" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:53 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:31:49 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"createTaskWI\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/createTaskWI\",\r\n \"eTag\": \"0x8D2889D6AD5D834\",\r\n \"lastModified\": \"2015-07-09T20:31:49.6303668Z\",\r\n \"creationTime\": \"2015-07-09T20:31:49.6303668Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T20:31:49.6303668Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/createTaskWI/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"createTaskJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/createTaskJob\",\r\n \"eTag\": \"0x8D298FF73983AFD\",\r\n \"lastModified\": \"2015-07-30T16:53:53.6100093Z\",\r\n \"creationTime\": \"2015-07-30T16:53:53.5860913Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:53:53.6100093Z\",\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-07-30T16:53:53.6100093Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 09 Jul 2015 20:31:49 GMT" + "Thu, 30 Jul 2015 16:53:53 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "f1eff898-14bf-4ff6-90b7-8ddca5e83687" + "aae5aec9-a9d1-49d8-b4a4-00af847dcce7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "2818b22b-d1e1-4ce1-855e-e3634b0f498d" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 20:31:49 GMT" + "Thu, 30 Jul 2015 16:53:53 GMT" ], "ETag": [ - "0x8D2889D6AD5D834" + "0x8D298FF73983AFD" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -448,109 +456,254 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/createTaskWI/jobs/job-0000000001?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9jcmVhdGVUYXNrV0kvam9icy9qb2ItMDAwMDAwMDAwMT9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs/createTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvY3JlYXRlVGFza0pvYi90YXNrcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"simple\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": false\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "82" ], "client-request-id": [ - "6c260154-dbea-4c51-9f16-5e4be62c7ce7" + "e38417a7-b935-4a20-92bd-94256af31575" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:54 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:31:50 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#jobs/@Element\",\r\n \"name\": \"job-0000000001\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/createTaskWI/jobs/job-0000000001\",\r\n \"eTag\": \"0x8D2889D6AE0324A\",\r\n \"lastModified\": \"2015-07-09T20:31:49.698209Z\",\r\n \"creationTime\": \"2015-07-09T20:31:49.6773619Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T20:31:49.698209Z\",\r\n \"poolName\": \"testPool\",\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T20:31:49.698209Z\"\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 16:53:54 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "9070f43f-51f1-4205-91e7-5eb9fb02f601" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e38417a7-b935-4a20-92bd-94256af31575" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/createTaskJob/tasks/simple" + ], + "Date": [ + "Thu, 30 Jul 2015 16:53:53 GMT" + ], + "ETag": [ + "0x8D298FF73F9E2D5" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/createTaskJob/tasks/simple" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/createTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvY3JlYXRlVGFza0pvYi90YXNrcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"simple\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": false\r\n}", + "RequestHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], + "Content-Length": [ + "82" + ], + "client-request-id": [ + "e38417a7-b935-4a20-92bd-94256af31575" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53: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": { "Last-Modified": [ - "Thu, 09 Jul 2015 20:31:49 GMT" + "Thu, 30 Jul 2015 16:53:54 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "496659fa-da00-40a1-a4f7-9e62bb17d27b" + "9070f43f-51f1-4205-91e7-5eb9fb02f601" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "e38417a7-b935-4a20-92bd-94256af31575" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/createTaskJob/tasks/simple" + ], "Date": [ - "Thu, 09 Jul 2015 20:31:50 GMT" + "Thu, 30 Jul 2015 16:53:53 GMT" ], "ETag": [ - "0x8D2889D6AE0324A" + "0x8D298FF73F9E2D5" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/createTaskJob/tasks/simple" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/createTaskWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9jcmVhdGVUYXNrV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs/createTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvY3JlYXRlVGFza0pvYi90YXNrcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"simple\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": false\r\n}", + "RequestBody": "{\r\n \"id\": \"complex\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"file1\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"env2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"env1\",\r\n \"value\": \"value1\"\r\n }\r\n ],\r\n \"affinityInfo\": {\r\n \"affinityId\": \"affinityId\"\r\n },\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P1D\",\r\n \"retentionTime\": \"P2D\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"runElevated\": true\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "148" + "548" + ], + "client-request-id": [ + "6f92e53b-fad2-4ae2-9ba3-87b444e16397" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:54 GMT" + ], + "return-client-request-id": [ + "true" ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 16:53:54 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cd0f635d-83e9-4384-a554-91a1187a929c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "d3a93c66-382f-4bf8-98a7-5233e0ec1ca5" + "6f92e53b-fad2-4ae2-9ba3-87b444e16397" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/createTaskJob/tasks/complex" + ], + "Date": [ + "Thu, 30 Jul 2015 16:53:54 GMT" + ], + "ETag": [ + "0x8D298FF7425C03D" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/createTaskJob/tasks/complex" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/createTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvY3JlYXRlVGFza0pvYi90YXNrcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"complex\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"file1\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"env2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"env1\",\r\n \"value\": \"value1\"\r\n }\r\n ],\r\n \"affinityInfo\": {\r\n \"affinityId\": \"affinityId\"\r\n },\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P1D\",\r\n \"retentionTime\": \"P2D\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"runElevated\": true\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "548" + ], + "client-request-id": [ + "6f92e53b-fad2-4ae2-9ba3-87b444e16397" ], "ocp-date": [ - "Thu, 09 Jul 2015 20:31:50 GMT" + "Thu, 30 Jul 2015 16:53: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": { "Last-Modified": [ - "Thu, 09 Jul 2015 20:31:51 GMT" + "Thu, 30 Jul 2015 16:53:54 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "a26b708d-79fd-4ed7-b0ac-5a1904d72817" + "cd0f635d-83e9-4384-a554-91a1187a929c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "6f92e53b-fad2-4ae2-9ba3-87b444e16397" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/createTaskWI/jobs/job-0000000001/tasks/simple" + "https://pstests.eastus.batch.azure.com/jobs/createTaskJob/tasks/complex" ], "Date": [ - "Thu, 09 Jul 2015 20:31:51 GMT" + "Thu, 30 Jul 2015 16:53:54 GMT" ], "ETag": [ - "0x8D2889D6BEB5492" + "0x8D298FF7425C03D" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/createTaskWI/jobs/job-0000000001/tasks/simple" + "https://pstests.eastus.batch.azure.com/jobs/createTaskJob/tasks/complex" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -559,58 +712,126 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/createTaskWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9jcmVhdGVUYXNrV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs/createTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvY3JlYXRlVGFza0pvYi90YXNrcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"complex\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"file1\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"env2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"env1\",\r\n \"value\": \"value1\"\r\n }\r\n ],\r\n \"affinityInfo\": {\r\n \"affinityId\": \"affinityId\"\r\n },\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P1D\",\r\n \"retentionTime\": \"P2D\",\r\n \"maxTaskRetryCount\": 5\r\n }\r\n}", + "RequestBody": "{\r\n \"id\": \"complex\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"file1\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"env2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"env1\",\r\n \"value\": \"value1\"\r\n }\r\n ],\r\n \"affinityInfo\": {\r\n \"affinityId\": \"affinityId\"\r\n },\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P1D\",\r\n \"retentionTime\": \"P2D\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"runElevated\": true\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "546" + "548" + ], + "client-request-id": [ + "6f92e53b-fad2-4ae2-9ba3-87b444e16397" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:54 GMT" + ], + "return-client-request-id": [ + "true" ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 16:53:54 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "cd0f635d-83e9-4384-a554-91a1187a929c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "ffb7f498-4dd2-4b97-84a4-04350222da47" + "6f92e53b-fad2-4ae2-9ba3-87b444e16397" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/createTaskJob/tasks/complex" + ], + "Date": [ + "Thu, 30 Jul 2015 16:53:54 GMT" + ], + "ETag": [ + "0x8D298FF7425C03D" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/createTaskJob/tasks/complex" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/createTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvY3JlYXRlVGFza0pvYi90YXNrcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"complex\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"file1\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"env2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"env1\",\r\n \"value\": \"value1\"\r\n }\r\n ],\r\n \"affinityInfo\": {\r\n \"affinityId\": \"affinityId\"\r\n },\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P1D\",\r\n \"retentionTime\": \"P2D\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"runElevated\": true\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "548" + ], + "client-request-id": [ + "6f92e53b-fad2-4ae2-9ba3-87b444e16397" ], "ocp-date": [ - "Thu, 09 Jul 2015 20:31:51 GMT" + "Thu, 30 Jul 2015 16:53: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": { "Last-Modified": [ - "Thu, 09 Jul 2015 20:31:52 GMT" + "Thu, 30 Jul 2015 16:53:54 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "d0f3a486-a62d-483c-97d9-63efcf2cca75" + "cd0f635d-83e9-4384-a554-91a1187a929c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "6f92e53b-fad2-4ae2-9ba3-87b444e16397" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/createTaskWI/jobs/job-0000000001/tasks/complex" + "https://pstests.eastus.batch.azure.com/jobs/createTaskJob/tasks/complex" ], "Date": [ - "Thu, 09 Jul 2015 20:31:52 GMT" + "Thu, 30 Jul 2015 16:53:54 GMT" ], "ETag": [ - "0x8D2889D6C4EEDB0" + "0x8D298FF7425C03D" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/createTaskWI/jobs/job-0000000001/tasks/complex" + "https://pstests.eastus.batch.azure.com/jobs/createTaskJob/tasks/complex" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -619,49 +840,163 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/createTaskWI/jobs/job-0000000001/tasks/simple?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9jcmVhdGVUYXNrV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcy9zaW1wbGU/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/jobs/createTaskJob/tasks/simple?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvY3JlYXRlVGFza0pvYi90YXNrcy9zaW1wbGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "7c455eb1-0cce-4e1b-b6ae-1701b09c96f3" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:54 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "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#tasks/@Element\",\r\n \"id\": \"simple\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/createTaskJob/tasks/simple\",\r\n \"eTag\": \"0x8D298FF73F9E2D5\",\r\n \"creationTime\": \"2015-07-30T16:53:54.2500053Z\",\r\n \"lastModified\": \"2015-07-30T16:53:54.2500053Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:53:54.2500053Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": false,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:53:54 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "eebea09c-7419-4234-a595-e7f5765980cb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7c455eb1-0cce-4e1b-b6ae-1701b09c96f3" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:53:53 GMT" ], + "ETag": [ + "0x8D298FF73F9E2D5" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/createTaskJob/tasks/simple?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvY3JlYXRlVGFza0pvYi90YXNrcy9zaW1wbGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { "client-request-id": [ - "62a50eef-8734-4e55-b4dc-75a70896773a" + "7c455eb1-0cce-4e1b-b6ae-1701b09c96f3" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:54 GMT" ], "return-client-request-id": [ - "False" + "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#tasks/@Element\",\r\n \"id\": \"simple\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/createTaskJob/tasks/simple\",\r\n \"eTag\": \"0x8D298FF73F9E2D5\",\r\n \"creationTime\": \"2015-07-30T16:53:54.2500053Z\",\r\n \"lastModified\": \"2015-07-30T16:53:54.2500053Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:53:54.2500053Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": false,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:53:54 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "eebea09c-7419-4234-a595-e7f5765980cb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "7c455eb1-0cce-4e1b-b6ae-1701b09c96f3" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:53:53 GMT" + ], + "ETag": [ + "0x8D298FF73F9E2D5" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/createTaskJob/tasks/simple?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvY3JlYXRlVGFza0pvYi90YXNrcy9zaW1wbGU/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "7c455eb1-0cce-4e1b-b6ae-1701b09c96f3" ], "ocp-date": [ - "Thu, 09 Jul 2015 20:31:51 GMT" + "Thu, 30 Jul 2015 16:53: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.batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"simple\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/createTaskWI/jobs/job-0000000001/tasks/simple\",\r\n \"eTag\": \"0x8D2889D6BEB5492\",\r\n \"creationTime\": \"2015-07-09T20:31:51.4488978Z\",\r\n \"lastModified\": \"2015-07-09T20:31:51.4488978Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T20:31:51.4488978Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": false,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks/@Element\",\r\n \"id\": \"simple\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/createTaskJob/tasks/simple\",\r\n \"eTag\": \"0x8D298FF73F9E2D5\",\r\n \"creationTime\": \"2015-07-30T16:53:54.2500053Z\",\r\n \"lastModified\": \"2015-07-30T16:53:54.2500053Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:53:54.2500053Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": false,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 09 Jul 2015 20:31:51 GMT" + "Thu, 30 Jul 2015 16:53:54 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "f17320d7-0531-44a2-877a-c51f2185c09a" + "eebea09c-7419-4234-a595-e7f5765980cb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "7c455eb1-0cce-4e1b-b6ae-1701b09c96f3" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 20:31:51 GMT" + "Thu, 30 Jul 2015 16:53:53 GMT" ], "ETag": [ - "0x8D2889D6BEB5492" + "0x8D298FF73F9E2D5" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -670,49 +1005,163 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/createTaskWI/jobs/job-0000000001/tasks/complex?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9jcmVhdGVUYXNrV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcy9jb21wbGV4P2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/jobs/createTaskJob/tasks/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvY3JlYXRlVGFza0pvYi90YXNrcy9jb21wbGV4P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "d37128cf-f2fc-4982-b29b-d3285486af51" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:54 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "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#tasks/@Element\",\r\n \"id\": \"complex\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/createTaskJob/tasks/complex\",\r\n \"eTag\": \"0x8D298FF7425C03D\",\r\n \"creationTime\": \"2015-07-30T16:53:54.5374781Z\",\r\n \"lastModified\": \"2015-07-30T16:53:54.5374781Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:53:54.5374781Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"file1\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"env2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"env1\",\r\n \"value\": \"value1\"\r\n }\r\n ],\r\n \"affinityInfo\": {\r\n \"affinityId\": \"affinityId\"\r\n },\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P1D\",\r\n \"retentionTime\": \"P2D\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:53:54 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "40f7c30a-27d7-445a-9103-af10046d1c08" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "2f0d2a8e-d586-4a13-90c9-fb02a066ab26" + "d37128cf-f2fc-4982-b29b-d3285486af51" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:53:54 GMT" + ], + "ETag": [ + "0x8D298FF7425C03D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/createTaskJob/tasks/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvY3JlYXRlVGFza0pvYi90YXNrcy9jb21wbGV4P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d37128cf-f2fc-4982-b29b-d3285486af51" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:54 GMT" ], "return-client-request-id": [ - "False" + "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#tasks/@Element\",\r\n \"id\": \"complex\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/createTaskJob/tasks/complex\",\r\n \"eTag\": \"0x8D298FF7425C03D\",\r\n \"creationTime\": \"2015-07-30T16:53:54.5374781Z\",\r\n \"lastModified\": \"2015-07-30T16:53:54.5374781Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:53:54.5374781Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"file1\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"env2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"env1\",\r\n \"value\": \"value1\"\r\n }\r\n ],\r\n \"affinityInfo\": {\r\n \"affinityId\": \"affinityId\"\r\n },\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P1D\",\r\n \"retentionTime\": \"P2D\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:53:54 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "40f7c30a-27d7-445a-9103-af10046d1c08" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d37128cf-f2fc-4982-b29b-d3285486af51" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:53:54 GMT" + ], + "ETag": [ + "0x8D298FF7425C03D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/createTaskJob/tasks/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvY3JlYXRlVGFza0pvYi90YXNrcy9jb21wbGV4P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d37128cf-f2fc-4982-b29b-d3285486af51" ], "ocp-date": [ - "Thu, 09 Jul 2015 20:31:52 GMT" + "Thu, 30 Jul 2015 16:53: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.batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"complex\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/createTaskWI/jobs/job-0000000001/tasks/complex\",\r\n \"eTag\": \"0x8D2889D6C4EEDB0\",\r\n \"creationTime\": \"2015-07-09T20:31:52.101624Z\",\r\n \"lastModified\": \"2015-07-09T20:31:52.101624Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T20:31:52.101624Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"file1\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"env2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"env1\",\r\n \"value\": \"value1\"\r\n }\r\n ],\r\n \"affinityInfo\": {\r\n \"affinityId\": \"affinityId\"\r\n },\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P1D\",\r\n \"retentionTime\": \"P2D\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks/@Element\",\r\n \"id\": \"complex\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/createTaskJob/tasks/complex\",\r\n \"eTag\": \"0x8D298FF7425C03D\",\r\n \"creationTime\": \"2015-07-30T16:53:54.5374781Z\",\r\n \"lastModified\": \"2015-07-30T16:53:54.5374781Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:53:54.5374781Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"file1\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"env2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"env1\",\r\n \"value\": \"value1\"\r\n }\r\n ],\r\n \"affinityInfo\": {\r\n \"affinityId\": \"affinityId\"\r\n },\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P1D\",\r\n \"retentionTime\": \"P2D\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 09 Jul 2015 20:31:52 GMT" + "Thu, 30 Jul 2015 16:53:54 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "636713f6-481b-4d57-8f0f-529ccb2e8cc5" + "40f7c30a-27d7-445a-9103-af10046d1c08" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "d37128cf-f2fc-4982-b29b-d3285486af51" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 20:31:52 GMT" + "Thu, 30 Jul 2015 16:53:54 GMT" ], "ETag": [ - "0x8D2889D6C4EEDB0" + "0x8D298FF7425C03D" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -721,22 +1170,179 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/createTaskWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9jcmVhdGVUYXNrV0k/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "DELETE", + "RequestUri": "/jobs/createTaskJob/tasks/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvY3JlYXRlVGFza0pvYi90YXNrcy9jb21wbGV4P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "d37128cf-f2fc-4982-b29b-d3285486af51" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53: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#tasks/@Element\",\r\n \"id\": \"complex\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/createTaskJob/tasks/complex\",\r\n \"eTag\": \"0x8D298FF7425C03D\",\r\n \"creationTime\": \"2015-07-30T16:53:54.5374781Z\",\r\n \"lastModified\": \"2015-07-30T16:53:54.5374781Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:53:54.5374781Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"file1\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"env2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"env1\",\r\n \"value\": \"value1\"\r\n }\r\n ],\r\n \"affinityInfo\": {\r\n \"affinityId\": \"affinityId\"\r\n },\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P1D\",\r\n \"retentionTime\": \"P2D\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:53:54 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "40f7c30a-27d7-445a-9103-af10046d1c08" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d37128cf-f2fc-4982-b29b-d3285486af51" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:53:54 GMT" + ], + "ETag": [ + "0x8D298FF7425C03D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/createTaskJob/tasks/complex?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvY3JlYXRlVGFza0pvYi90YXNrcy9jb21wbGV4P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "d37128cf-f2fc-4982-b29b-d3285486af51" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:54 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "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#tasks/@Element\",\r\n \"id\": \"complex\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/createTaskJob/tasks/complex\",\r\n \"eTag\": \"0x8D298FF7425C03D\",\r\n \"creationTime\": \"2015-07-30T16:53:54.5374781Z\",\r\n \"lastModified\": \"2015-07-30T16:53:54.5374781Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:53:54.5374781Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"file1\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"env2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"env1\",\r\n \"value\": \"value1\"\r\n }\r\n ],\r\n \"affinityInfo\": {\r\n \"affinityId\": \"affinityId\"\r\n },\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P1D\",\r\n \"retentionTime\": \"P2D\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:53:54 GMT" ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "40f7c30a-27d7-445a-9103-af10046d1c08" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "d37128cf-f2fc-4982-b29b-d3285486af51" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:53:54 GMT" + ], + "ETag": [ + "0x8D298FF7425C03D" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/createTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvY3JlYXRlVGFza0pvYj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { "client-request-id": [ - "a644285a-6927-4a9c-903d-00d211961452" + "879c4622-e1dd-49f0-81ac-e4f8a052dd24" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:54 GMT" ], "return-client-request-id": [ - "False" + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "20cc34cb-5518-404c-9318-1ceb39bede81" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "879c4622-e1dd-49f0-81ac-e4f8a052dd24" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:53:54 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/createTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvY3JlYXRlVGFza0pvYj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "879c4622-e1dd-49f0-81ac-e4f8a052dd24" ], "ocp-date": [ - "Thu, 09 Jul 2015 20:31:52 GMT" + "Thu, 30 Jul 2015 16:53:54 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -745,16 +1351,19 @@ "chunked" ], "request-id": [ - "7df405e2-f695-442b-946b-bae50b50b05a" + "20cc34cb-5518-404c-9318-1ceb39bede81" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "879c4622-e1dd-49f0-81ac-e4f8a052dd24" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 20:31:52 GMT" + "Thu, 30 Jul 2015 16:53:54 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestDeleteTask.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestDeleteTask.json index a103a5eea012..e2d1aaa442d3 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestDeleteTask.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestDeleteTask.json @@ -28,13 +28,13 @@ "14991" ], "x-ms-request-id": [ - "cc71b729-4f07-4b80-a736-dc7ff5193394" + "9b069022-27fb-4d3e-ba2a-68fbe3642868" ], "x-ms-correlation-request-id": [ - "cc71b729-4f07-4b80-a736-dc7ff5193394" + "9b069022-27fb-4d3e-ba2a-68fbe3642868" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T202921Z:cc71b729-4f07-4b80-a736-dc7ff5193394" + "WESTUS:20150730T165330Z:9b069022-27fb-4d3e-ba2a-68fbe3642868" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:29:20 GMT" + "Thu, 30 Jul 2015 16:53:30 GMT" ] }, "StatusCode": 200 @@ -76,13 +76,13 @@ "14990" ], "x-ms-request-id": [ - "c08eef02-70fd-4145-81e5-a9790296a9ab" + "37bfac94-5dc7-4924-a72a-298868e17788" ], "x-ms-correlation-request-id": [ - "c08eef02-70fd-4145-81e5-a9790296a9ab" + "37bfac94-5dc7-4924-a72a-298868e17788" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T202923Z:c08eef02-70fd-4145-81e5-a9790296a9ab" + "WESTUS:20150730T165333Z:37bfac94-5dc7-4924-a72a-298868e17788" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:29:23 GMT" + "Thu, 30 Jul 2015 16:53:32 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 20:29:22 GMT" + "Thu, 30 Jul 2015 16:53:31 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "83d95748-1cb1-48ae-8806-e932fd5d115e" + "21b72612-432c-4de6-a521-0801ecadcbc5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14987" ], "x-ms-request-id": [ - "e4ac38c5-b946-4f2a-b4d9-f5ec4afc5da3" + "478f1632-09fa-403a-8682-3a9549075122" ], "x-ms-correlation-request-id": [ - "e4ac38c5-b946-4f2a-b4d9-f5ec4afc5da3" + "478f1632-09fa-403a-8682-3a9549075122" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T202922Z:e4ac38c5-b946-4f2a-b4d9-f5ec4afc5da3" + "WESTUS:20150730T165332Z:478f1632-09fa-403a-8682-3a9549075122" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:29:21 GMT" + "Thu, 30 Jul 2015 16:53:31 GMT" ], "ETag": [ - "0x8D2889D12F7E783" + "0x8D298FF66AAA53A" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 20:29:23 GMT" + "Thu, 30 Jul 2015 16:53:33 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "bc0e5fee-229a-4f9d-b409-bbdf9c8551c1" + "ad949586-02be-4fe9-b09a-18d0a33d0814" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" + "14986" ], "x-ms-request-id": [ - "b71bf552-c516-4ff5-8f2b-459596da8006" + "e45be4d0-4f70-41f7-bdfe-a1f74cb690c1" ], "x-ms-correlation-request-id": [ - "b71bf552-c516-4ff5-8f2b-459596da8006" + "e45be4d0-4f70-41f7-bdfe-a1f74cb690c1" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T202924Z:b71bf552-c516-4ff5-8f2b-459596da8006" + "WESTUS:20150730T165333Z:e45be4d0-4f70-41f7-bdfe-a1f74cb690c1" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:29:23 GMT" + "Thu, 30 Jul 2015 16:53:32 GMT" ], "ETag": [ - "0x8D2889D1400A2CC" + "0x8D298FF675581DE" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "224a0255-3b28-45f3-8bb0-f0eae00b8202" + "ac3756d9-5dde-444a-9dc0-6879cef65c4c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1192" + "1193" ], "x-ms-request-id": [ - "3e5a9848-935d-4115-a6c4-85d0f69b29c9" + "6f90cb85-7faf-4af3-bb53-52e7e1056157" ], "x-ms-correlation-request-id": [ - "3e5a9848-935d-4115-a6c4-85d0f69b29c9" + "6f90cb85-7faf-4af3-bb53-52e7e1056157" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T202922Z:3e5a9848-935d-4115-a6c4-85d0f69b29c9" + "WESTUS:20150730T165332Z:6f90cb85-7faf-4af3-bb53-52e7e1056157" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:29:21 GMT" + "Thu, 30 Jul 2015 16:53:31 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "93677cd7-616b-40e4-b9ea-8df189d44cdb" + "b8b1c70f-cd28-4f28-a027-9e54d0690e2c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1191" + "1192" ], "x-ms-request-id": [ - "0994331c-7784-474b-903d-609713d0f9e0" + "47ece969-e473-4e7d-951a-b09363510b08" ], "x-ms-correlation-request-id": [ - "0994331c-7784-474b-903d-609713d0f9e0" + "47ece969-e473-4e7d-951a-b09363510b08" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T202924Z:0994331c-7784-474b-903d-609713d0f9e0" + "WESTUS:20150730T165333Z:47ece969-e473-4e7d-951a-b09363510b08" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:29:23 GMT" + "Thu, 30 Jul 2015 16:53:32 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,58 +337,62 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"deleteTaskWI\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", + "RequestBody": "{\r\n \"id\": \"deleteTaskJob\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "168" - ], - "User-Agent": [ - "WA-Batch/1.0" + "96" ], "client-request-id": [ - "b544342e-2c4e-46fc-8a2b-53baa1184358" + "9e0f523e-9af2-4c1c-8d0c-847be6be6f73" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:32 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:29:22 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 20:29:23 GMT" + "Thu, 30 Jul 2015 16:53:32 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "759779dc-a34b-4306-868e-713c740f186b" + "ab94d94c-5eae-4042-bde7-b7721156796b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "9e0f523e-9af2-4c1c-8d0c-847be6be6f73" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/deleteTaskWI" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Date": [ - "Thu, 09 Jul 2015 20:29:22 GMT" + "Thu, 30 Jul 2015 16:53:32 GMT" ], "ETag": [ - "0x8D2889D137C614C" + "0x8D298FF671E2812" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/deleteTaskWI" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -397,109 +401,126 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/deleteTaskWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9kZWxldGVUYXNrV0k/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs/deleteTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlVGFza0pvYi90YXNrcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "83" ], "client-request-id": [ - "16bb60a6-4bf1-476e-b07c-99572dae4d4c" + "de970d0c-0c6a-4cd7-9d06-e4a9758c405b" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:32 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:29:22 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"deleteTaskWI\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/deleteTaskWI\",\r\n \"eTag\": \"0x8D2889D137C614C\",\r\n \"lastModified\": \"2015-07-09T20:29:23.0822732Z\",\r\n \"creationTime\": \"2015-07-09T20:29:23.0822732Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T20:29:23.0822732Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/deleteTaskWI/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 20:29:23 GMT" + "Thu, 30 Jul 2015 16:53:32 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "b187b296-78b4-4f32-a0c7-7c01bc310381" + "fe77ce86-7b28-4a43-8666-dbd46b6a6598" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "de970d0c-0c6a-4cd7-9d06-e4a9758c405b" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/deleteTaskJob/tasks/testTask" + ], "Date": [ - "Thu, 09 Jul 2015 20:29:23 GMT" + "Thu, 30 Jul 2015 16:53:32 GMT" ], "ETag": [ - "0x8D2889D137C614C" + "0x8D298FF67087D92" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/deleteTaskJob/tasks/testTask" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/deleteTaskWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9kZWxldGVUYXNrV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs/deleteTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlVGFza0pvYi90YXNrcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestBody": "{\r\n \"id\": \"testTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "149" - ], - "User-Agent": [ - "WA-Batch/1.0" + "83" ], "client-request-id": [ - "cf83fd57-3af7-44f9-a0cb-048a8875a5fd" + "de970d0c-0c6a-4cd7-9d06-e4a9758c405b" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:32 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:29:23 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 20:29:23 GMT" + "Thu, 30 Jul 2015 16:53:32 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "af5ccbc5-1e1b-486a-9e68-e7238f39e964" + "fe77ce86-7b28-4a43-8666-dbd46b6a6598" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "de970d0c-0c6a-4cd7-9d06-e4a9758c405b" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/deleteTaskWI/jobs/job-0000000001/tasks/testTask" + "https://pstests.eastus.batch.azure.com/jobs/deleteTaskJob/tasks/testTask" ], "Date": [ - "Thu, 09 Jul 2015 20:29:23 GMT" + "Thu, 30 Jul 2015 16:53:32 GMT" ], "ETag": [ - "0x8D2889D13ADB16A" + "0x8D298FF67087D92" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/deleteTaskWI/jobs/job-0000000001/tasks/testTask" + "https://pstests.eastus.batch.azure.com/jobs/deleteTaskJob/tasks/testTask" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -508,25 +529,75 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/deleteTaskWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9kZWxldGVUYXNrV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs/deleteTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlVGFza0pvYi90YXNrcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "856fed04-aaf1-4785-9bfd-fd4e8ed321b3" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:33 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/deleteTaskJob/tasks/testTask\",\r\n \"eTag\": \"0x8D298FF67087D92\",\r\n \"creationTime\": \"2015-07-30T16:53:32.5353362Z\",\r\n \"lastModified\": \"2015-07-30T16:53:32.5353362Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:53:32.5353362Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f9fd64d6-8838-446e-8152-245d1e4637d0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "3b48e8ee-9e5c-40b6-aad3-079a8ef2a6d4" + "856fed04-aaf1-4785-9bfd-fd4e8ed321b3" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:53:32 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/deleteTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlVGFza0pvYi90YXNrcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "a3831ccf-c42c-4cff-83c5-28f6c90a3bbd" ], "ocp-date": [ - "Thu, 09 Jul 2015 20:29:24 GMT" + "Thu, 30 Jul 2015 16:53:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"name\": \"testTask\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/deleteTaskWI/jobs/job-0000000001/tasks/testTask\",\r\n \"eTag\": \"0x8D2889D13ADB16A\",\r\n \"creationTime\": \"2015-07-09T20:29:23.4054506Z\",\r\n \"lastModified\": \"2015-07-09T20:29:23.4054506Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T20:29:23.4054506Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks\",\r\n \"value\": []\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" @@ -535,16 +606,19 @@ "chunked" ], "request-id": [ - "212843a1-dd78-4a2f-a7ec-b1b8e26a670f" + "e1607b77-1566-4e9a-9ecf-e23e9e917bb5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "a3831ccf-c42c-4cff-83c5-28f6c90a3bbd" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 20:29:23 GMT" + "Thu, 30 Jul 2015 16:53:32 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -553,25 +627,75 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/deleteTaskWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9kZWxldGVUYXNrV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs/deleteTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlVGFza0pvYi90YXNrcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "a3831ccf-c42c-4cff-83c5-28f6c90a3bbd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:33 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "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#tasks\",\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "e1607b77-1566-4e9a-9ecf-e23e9e917bb5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "4b044559-8e4e-4873-aac7-0a62d174ae5c" + "a3831ccf-c42c-4cff-83c5-28f6c90a3bbd" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:53:32 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/deleteTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlVGFza0pvYi90YXNrcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "a3831ccf-c42c-4cff-83c5-28f6c90a3bbd" ], "ocp-date": [ - "Thu, 09 Jul 2015 20:29:24 GMT" + "Thu, 30 Jul 2015 16:53:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": []\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks\",\r\n \"value\": []\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" @@ -580,16 +704,19 @@ "chunked" ], "request-id": [ - "a3160a71-d829-40d3-b19d-3f184d30acba" + "e1607b77-1566-4e9a-9ecf-e23e9e917bb5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "a3831ccf-c42c-4cff-83c5-28f6c90a3bbd" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 20:29:24 GMT" + "Thu, 30 Jul 2015 16:53:32 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -598,22 +725,69 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/deleteTaskWI/jobs/job-0000000001/tasks/testTask?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9kZWxldGVUYXNrV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcy90ZXN0VGFzaz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs/deleteTaskJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlVGFza0pvYi90YXNrcy90ZXN0VGFzaz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "805abc80-b134-4003-b888-9fe89392473d" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:33 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "0035b89e-4c48-4405-bd8b-e57f24acf322" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "ebcb8cb0-5955-4595-896b-25032002269f" + "805abc80-b134-4003-b888-9fe89392473d" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:53:32 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/deleteTaskJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlVGFza0pvYi90YXNrcy90ZXN0VGFzaz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "805abc80-b134-4003-b888-9fe89392473d" ], "ocp-date": [ - "Thu, 09 Jul 2015 20:29:24 GMT" + "Thu, 30 Jul 2015 16:53:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -622,16 +796,19 @@ "chunked" ], "request-id": [ - "38570451-cf9e-4b72-8027-e3919bb5f19a" + "0035b89e-4c48-4405-bd8b-e57f24acf322" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "805abc80-b134-4003-b888-9fe89392473d" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 20:29:24 GMT" + "Thu, 30 Jul 2015 16:53:32 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -640,22 +817,115 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/deleteTaskWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9kZWxldGVUYXNrV0k/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/jobs/deleteTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlVGFza0pvYj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "ae10bc60-a1d1-4471-9d92-2661a3b8375a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:33 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "22346ced-0d5b-4be3-88c8-5f34c8bfd56e" ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ae10bc60-a1d1-4471-9d92-2661a3b8375a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:53:33 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/deleteTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlVGFza0pvYj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { "client-request-id": [ - "827fc2fa-5c1c-4658-be76-f28f0a3df022" + "ae10bc60-a1d1-4471-9d92-2661a3b8375a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:33 GMT" ], "return-client-request-id": [ - "False" + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "22346ced-0d5b-4be3-88c8-5f34c8bfd56e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ae10bc60-a1d1-4471-9d92-2661a3b8375a" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:53:33 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/deleteTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlVGFza0pvYj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ae10bc60-a1d1-4471-9d92-2661a3b8375a" ], "ocp-date": [ - "Thu, 09 Jul 2015 20:29:25 GMT" + "Thu, 30 Jul 2015 16:53:33 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -664,16 +934,19 @@ "chunked" ], "request-id": [ - "52360da7-2f7e-445c-821f-1f0aae0ae0a6" + "22346ced-0d5b-4be3-88c8-5f34c8bfd56e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "ae10bc60-a1d1-4471-9d92-2661a3b8375a" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 20:29:25 GMT" + "Thu, 30 Jul 2015 16:53:33 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestDeleteTaskPipeline.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestDeleteTaskPipeline.json index 40fadc531de8..d3e97dde8980 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestDeleteTaskPipeline.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestDeleteTaskPipeline.json @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" + "14983" ], "x-ms-request-id": [ - "db88f4f9-2537-4e13-9e0d-529060312877" + "75ba5f58-cedf-4d35-8356-0bb85fa61b10" ], "x-ms-correlation-request-id": [ - "db88f4f9-2537-4e13-9e0d-529060312877" + "75ba5f58-cedf-4d35-8356-0bb85fa61b10" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T202950Z:db88f4f9-2537-4e13-9e0d-529060312877" + "WESTUS:20150730T165412Z:75ba5f58-cedf-4d35-8356-0bb85fa61b10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:29:49 GMT" + "Thu, 30 Jul 2015 16:54:12 GMT" ] }, "StatusCode": 200 @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "14982" ], "x-ms-request-id": [ - "610c42dc-5e7d-48d1-b411-4059eeedfa25" + "05f02ea2-b514-4ec5-9ac5-01912d97c02d" ], "x-ms-correlation-request-id": [ - "610c42dc-5e7d-48d1-b411-4059eeedfa25" + "05f02ea2-b514-4ec5-9ac5-01912d97c02d" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T202952Z:610c42dc-5e7d-48d1-b411-4059eeedfa25" + "WESTUS:20150730T165414Z:05f02ea2-b514-4ec5-9ac5-01912d97c02d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:29:51 GMT" + "Thu, 30 Jul 2015 16:54:14 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 20:29:51 GMT" + "Thu, 30 Jul 2015 16:54:12 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "abe58fe9-7829-451e-9912-f07d8b8ff39a" + "715e607c-296e-4600-854c-a77dec909011" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" + "14987" ], "x-ms-request-id": [ - "d1be9893-e8e1-48d9-8183-fe871a63e5d0" + "78bbbc1f-8387-4936-a64d-c5cae3345086" ], "x-ms-correlation-request-id": [ - "d1be9893-e8e1-48d9-8183-fe871a63e5d0" + "78bbbc1f-8387-4936-a64d-c5cae3345086" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T202951Z:d1be9893-e8e1-48d9-8183-fe871a63e5d0" + "WESTUS:20150730T165413Z:78bbbc1f-8387-4936-a64d-c5cae3345086" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:29:50 GMT" + "Thu, 30 Jul 2015 16:54:12 GMT" ], "ETag": [ - "0x8D2889D24634DF1" + "0x8D298FF7F148534" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 20:29:53 GMT" + "Thu, 30 Jul 2015 16:54:14 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "e1370354-f811-4565-a6a3-9c1e80799808" + "c553d8f3-eed0-4d56-aca5-eb3deb27a1d3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "14986" ], "x-ms-request-id": [ - "de7915dc-91a6-43e3-8f60-1ce1091170c8" + "0f8f3f88-4895-409c-a0d5-f9e3a943129d" ], "x-ms-correlation-request-id": [ - "de7915dc-91a6-43e3-8f60-1ce1091170c8" + "0f8f3f88-4895-409c-a0d5-f9e3a943129d" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T202953Z:de7915dc-91a6-43e3-8f60-1ce1091170c8" + "WESTUS:20150730T165414Z:0f8f3f88-4895-409c-a0d5-f9e3a943129d" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:29:52 GMT" + "Thu, 30 Jul 2015 16:54:13 GMT" ], "ETag": [ - "0x8D2889D256466ED" + "0x8D298FF7FC11385" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "6fc3526a-ac95-45eb-9ca9-c0a828cc159c" + "a3558e46-2605-4ee3-91a9-fa338b07fe84" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1192" ], "x-ms-request-id": [ - "7c56e605-6e77-41c1-bfcb-58065b2826c9" + "b642b23d-959c-4625-bb74-59103a9304a8" ], "x-ms-correlation-request-id": [ - "7c56e605-6e77-41c1-bfcb-58065b2826c9" + "b642b23d-959c-4625-bb74-59103a9304a8" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T202951Z:7c56e605-6e77-41c1-bfcb-58065b2826c9" + "WESTUS:20150730T165413Z:b642b23d-959c-4625-bb74-59103a9304a8" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:29:50 GMT" + "Thu, 30 Jul 2015 16:54:12 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "bce7eb04-f989-4731-8b5d-657d2d1d83bf" + "24363b94-3fa9-43cd-b0af-13da7105db09" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1191" ], "x-ms-request-id": [ - "d4530209-3cef-48dc-96b6-8c3a83f43a9b" + "85fafc7a-78c5-4c32-88f8-8cbc01927ad5" ], "x-ms-correlation-request-id": [ - "d4530209-3cef-48dc-96b6-8c3a83f43a9b" + "85fafc7a-78c5-4c32-88f8-8cbc01927ad5" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T202953Z:d4530209-3cef-48dc-96b6-8c3a83f43a9b" + "WESTUS:20150730T165414Z:85fafc7a-78c5-4c32-88f8-8cbc01927ad5" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:29:52 GMT" + "Thu, 30 Jul 2015 16:54:13 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,58 +337,62 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"deleteTaskPipeWI\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", + "RequestBody": "{\r\n \"id\": \"deleteTaskPipeJob\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "172" - ], - "User-Agent": [ - "WA-Batch/1.0" + "100" ], "client-request-id": [ - "53aaf0ef-5548-437a-bf4a-55be0febbdbf" + "4528c125-d761-4930-a4af-5e3fedfcc993" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:54:13 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:29:51 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 20:29:52 GMT" + "Thu, 30 Jul 2015 16:54:13 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "fd90f2ff-a0ef-44f6-b1e3-80694bd2d453" + "f21612c3-9bc2-40b6-96c1-ce4c95e8d92d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "4528c125-d761-4930-a4af-5e3fedfcc993" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/deleteTaskPipeWI" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Date": [ - "Thu, 09 Jul 2015 20:29:51 GMT" + "Thu, 30 Jul 2015 16:54:13 GMT" ], "ETag": [ - "0x8D2889D24BF3901" + "0x8D298FF7FA6AEAB" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/deleteTaskPipeWI" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -397,109 +401,126 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/deleteTaskPipeWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9kZWxldGVUYXNrUGlwZVdJP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs/deleteTaskPipeJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlVGFza1BpcGVKb2IvdGFza3M/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "83" ], "client-request-id": [ - "8fbd5b40-0b7f-402b-9ac4-d0ee6b606fd3" + "da5db7aa-28d8-4c64-95e8-7852c92c17fe" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:54:13 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:29:51 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"deleteTaskPipeWI\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/deleteTaskPipeWI\",\r\n \"eTag\": \"0x8D2889D24BF3901\",\r\n \"lastModified\": \"2015-07-09T20:29:52.0416001Z\",\r\n \"creationTime\": \"2015-07-09T20:29:52.0416001Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T20:29:52.0416001Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/deleteTaskPipeWI/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 20:29:52 GMT" + "Thu, 30 Jul 2015 16:54:13 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "b54bbbf4-0f2d-4592-a6a3-35970656b6cb" + "e818d969-2627-4cfb-9284-e0d8d6dac6ae" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "da5db7aa-28d8-4c64-95e8-7852c92c17fe" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/deleteTaskPipeJob/tasks/testTask" + ], "Date": [ - "Thu, 09 Jul 2015 20:29:51 GMT" + "Thu, 30 Jul 2015 16:54:13 GMT" ], "ETag": [ - "0x8D2889D24BF3901" + "0x8D298FF7F9CD180" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/deleteTaskPipeJob/tasks/testTask" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/deleteTaskPipeWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9kZWxldGVUYXNrUGlwZVdJL2pvYnMvam9iLTAwMDAwMDAwMDEvdGFza3M/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/jobs/deleteTaskPipeJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlVGFza1BpcGVKb2IvdGFza3M/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestBody": "{\r\n \"id\": \"testTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "149" - ], - "User-Agent": [ - "WA-Batch/1.0" + "83" ], "client-request-id": [ - "cfda1a50-a4bd-42c9-96e5-133574b41c8c" + "da5db7aa-28d8-4c64-95e8-7852c92c17fe" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:54:13 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:29:52 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 20:29:50 GMT" + "Thu, 30 Jul 2015 16:54:13 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "d8eab740-7df6-486f-81db-71913c4e346b" + "e818d969-2627-4cfb-9284-e0d8d6dac6ae" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "da5db7aa-28d8-4c64-95e8-7852c92c17fe" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/deleteTaskPipeWI/jobs/job-0000000001/tasks/testTask" + "https://pstests.eastus.batch.azure.com/jobs/deleteTaskPipeJob/tasks/testTask" ], "Date": [ - "Thu, 09 Jul 2015 20:29:50 GMT" + "Thu, 30 Jul 2015 16:54:13 GMT" ], "ETag": [ - "0x8D2889D23DA98BA" + "0x8D298FF7F9CD180" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/deleteTaskPipeWI/jobs/job-0000000001/tasks/testTask" + "https://pstests.eastus.batch.azure.com/jobs/deleteTaskPipeJob/tasks/testTask" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -508,25 +529,75 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/deleteTaskPipeWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9kZWxldGVUYXNrUGlwZVdJL2pvYnMvam9iLTAwMDAwMDAwMDEvdGFza3M/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/jobs/deleteTaskPipeJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlVGFza1BpcGVKb2IvdGFza3M/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "c34335d6-65f2-4788-8772-8e901ad68564" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:54:14 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/deleteTaskPipeJob/tasks/testTask\",\r\n \"eTag\": \"0x8D298FF7F9CD180\",\r\n \"creationTime\": \"2015-07-30T16:54:13.772736Z\",\r\n \"lastModified\": \"2015-07-30T16:54:13.772736Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:54:13.772736Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "dbc9825e-7510-460f-922c-0af4112daf9c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "903002f6-abf0-4ff8-9b49-81439a2711ab" + "c34335d6-65f2-4788-8772-8e901ad68564" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:54:13 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/deleteTaskPipeJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlVGFza1BpcGVKb2IvdGFza3M/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e0c75eaf-3e78-4e3a-a900-c116fd751f09" ], "ocp-date": [ - "Thu, 09 Jul 2015 20:29:52 GMT" + "Thu, 30 Jul 2015 16:54:14 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.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"name\": \"testTask\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/deleteTaskPipeWI/jobs/job-0000000001/tasks/testTask\",\r\n \"eTag\": \"0x8D2889D23DA98BA\",\r\n \"creationTime\": \"2015-07-09T20:29:50.5432762Z\",\r\n \"lastModified\": \"2015-07-09T20:29:50.5432762Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T20:29:50.5432762Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks\",\r\n \"value\": []\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" @@ -535,16 +606,19 @@ "chunked" ], "request-id": [ - "6da55b0c-4da0-44f9-8cfd-fad186f51516" + "a580c785-8837-40e2-b90e-d0d0e9a9c867" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "e0c75eaf-3e78-4e3a-a900-c116fd751f09" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 20:29:53 GMT" + "Thu, 30 Jul 2015 16:54:14 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -553,25 +627,75 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/deleteTaskPipeWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9kZWxldGVUYXNrUGlwZVdJL2pvYnMvam9iLTAwMDAwMDAwMDEvdGFza3M/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/jobs/deleteTaskPipeJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlVGFza1BpcGVKb2IvdGFza3M/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "e0c75eaf-3e78-4e3a-a900-c116fd751f09" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:54:14 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "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#tasks\",\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "a580c785-8837-40e2-b90e-d0d0e9a9c867" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "5cf13126-84e5-4af2-b3ab-c04604b83845" + "e0c75eaf-3e78-4e3a-a900-c116fd751f09" ], - "return-client-request-id": [ - "False" + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:54:14 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/deleteTaskPipeJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlVGFza1BpcGVKb2IvdGFza3M/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "e0c75eaf-3e78-4e3a-a900-c116fd751f09" ], "ocp-date": [ - "Thu, 09 Jul 2015 20:29:54 GMT" + "Thu, 30 Jul 2015 16:54:14 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.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": []\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks\",\r\n \"value\": []\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" @@ -580,16 +704,19 @@ "chunked" ], "request-id": [ - "61bff277-f581-4f7c-9f64-a04812158f20" + "a580c785-8837-40e2-b90e-d0d0e9a9c867" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "e0c75eaf-3e78-4e3a-a900-c116fd751f09" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 20:29:54 GMT" + "Thu, 30 Jul 2015 16:54:14 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -598,49 +725,157 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/deleteTaskPipeWI/jobs/job-0000000001/tasks/testTask?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9kZWxldGVUYXNrUGlwZVdJL2pvYnMvam9iLTAwMDAwMDAwMDEvdGFza3MvdGVzdFRhc2s/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/jobs/deleteTaskPipeJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlVGFza1BpcGVKb2IvdGFza3M/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "e0c75eaf-3e78-4e3a-a900-c116fd751f09" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:54:14 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "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#tasks\",\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "a580c785-8837-40e2-b90e-d0d0e9a9c867" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "cec525dc-dc29-4d4c-949c-59b49bd09819" + "e0c75eaf-3e78-4e3a-a900-c116fd751f09" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:54:14 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/deleteTaskPipeJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlVGFza1BpcGVKb2IvdGFza3MvdGVzdFRhc2s/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "327823ee-e7cb-4cf3-a212-a4ccb96cc6a3" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:54:14 GMT" ], "return-client-request-id": [ - "False" + "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#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/deleteTaskPipeJob/tasks/testTask\",\r\n \"eTag\": \"0x8D298FF7F9CD180\",\r\n \"creationTime\": \"2015-07-30T16:54:13.772736Z\",\r\n \"lastModified\": \"2015-07-30T16:54:13.772736Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:54:13.772736Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:54:13 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "50db7d99-cb8b-4117-9e83-860af12b0921" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "327823ee-e7cb-4cf3-a212-a4ccb96cc6a3" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:54:13 GMT" + ], + "ETag": [ + "0x8D298FF7F9CD180" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/deleteTaskPipeJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlVGFza1BpcGVKb2IvdGFza3MvdGVzdFRhc2s/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "327823ee-e7cb-4cf3-a212-a4ccb96cc6a3" ], "ocp-date": [ - "Thu, 09 Jul 2015 20:29:53 GMT" + "Thu, 30 Jul 2015 16:54:14 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.batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/deleteTaskPipeWI/jobs/job-0000000001/tasks/testTask\",\r\n \"eTag\": \"0x8D2889D23DA98BA\",\r\n \"creationTime\": \"2015-07-09T20:29:50.5432762Z\",\r\n \"lastModified\": \"2015-07-09T20:29:50.5432762Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T20:29:50.5432762Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/deleteTaskPipeJob/tasks/testTask\",\r\n \"eTag\": \"0x8D298FF7F9CD180\",\r\n \"creationTime\": \"2015-07-30T16:54:13.772736Z\",\r\n \"lastModified\": \"2015-07-30T16:54:13.772736Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:54:13.772736Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 09 Jul 2015 20:29:50 GMT" + "Thu, 30 Jul 2015 16:54:13 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "9801116e-7549-4040-a912-568b82c71edd" + "50db7d99-cb8b-4117-9e83-860af12b0921" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "327823ee-e7cb-4cf3-a212-a4ccb96cc6a3" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 20:29:53 GMT" + "Thu, 30 Jul 2015 16:54:13 GMT" ], "ETag": [ - "0x8D2889D23DA98BA" + "0x8D298FF7F9CD180" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -649,22 +884,115 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/deleteTaskPipeWI/jobs/job-0000000001/tasks/testTask?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9kZWxldGVUYXNrUGlwZVdJL2pvYnMvam9iLTAwMDAwMDAwMDEvdGFza3MvdGVzdFRhc2s/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/jobs/deleteTaskPipeJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlVGFza1BpcGVKb2IvdGFza3MvdGVzdFRhc2s/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "8fe7b076-6b4d-4432-98ca-ec6f81f4b2bd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:54:14 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" ], + "request-id": [ + "2aae4067-2384-40e9-8fb7-731b6b186d12" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8fe7b076-6b4d-4432-98ca-ec6f81f4b2bd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:54:13 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/deleteTaskPipeJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlVGFza1BpcGVKb2IvdGFza3MvdGVzdFRhc2s/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { "client-request-id": [ - "8a3a49f0-3bb5-44cd-81b7-c5ed43c4a184" + "8fe7b076-6b4d-4432-98ca-ec6f81f4b2bd" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:54:14 GMT" ], "return-client-request-id": [ - "False" + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "2aae4067-2384-40e9-8fb7-731b6b186d12" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8fe7b076-6b4d-4432-98ca-ec6f81f4b2bd" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:54:13 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/deleteTaskPipeJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlVGFza1BpcGVKb2IvdGFza3MvdGVzdFRhc2s/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8fe7b076-6b4d-4432-98ca-ec6f81f4b2bd" ], "ocp-date": [ - "Thu, 09 Jul 2015 20:29:53 GMT" + "Thu, 30 Jul 2015 16:54:14 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -673,16 +1001,19 @@ "chunked" ], "request-id": [ - "b0928c01-1c96-450d-ac44-43360cb3b4e0" + "2aae4067-2384-40e9-8fb7-731b6b186d12" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "8fe7b076-6b4d-4432-98ca-ec6f81f4b2bd" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 20:29:53 GMT" + "Thu, 30 Jul 2015 16:54:13 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -691,22 +1022,115 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/deleteTaskPipeWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9kZWxldGVUYXNrUGlwZVdJP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/jobs/deleteTaskPipeJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlVGFza1BpcGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "client-request-id": [ + "8cc144fc-1017-4796-9d86-4ffac05a404d" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:54:14 GMT" + ], + "return-client-request-id": [ + "true" + ], "User-Agent": [ - "WA-Batch/1.0" + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d9076061-6923-4cc4-987c-82242b15cb84" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "client-request-id": [ - "5fba8ed3-e1e9-48e0-95f1-0284ade4c4ec" + "8cc144fc-1017-4796-9d86-4ffac05a404d" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:54:14 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/deleteTaskPipeJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlVGFza1BpcGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8cc144fc-1017-4796-9d86-4ffac05a404d" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:54:14 GMT" ], "return-client-request-id": [ - "False" + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "d9076061-6923-4cc4-987c-82242b15cb84" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8cc144fc-1017-4796-9d86-4ffac05a404d" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 16:54:14 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/deleteTaskPipeJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZGVsZXRlVGFza1BpcGVKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8cc144fc-1017-4796-9d86-4ffac05a404d" ], "ocp-date": [ - "Thu, 09 Jul 2015 20:29:54 GMT" + "Thu, 30 Jul 2015 16:54:14 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -715,16 +1139,19 @@ "chunked" ], "request-id": [ - "50a15961-2993-4535-8ec8-357a66da595d" + "d9076061-6923-4cc4-987c-82242b15cb84" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "8cc144fc-1017-4796-9d86-4ffac05a404d" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 20:29:54 GMT" + "Thu, 30 Jul 2015 16:54:14 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetTaskFileByName.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestGetTaskById.json similarity index 60% rename from src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetTaskFileByName.json rename to src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestGetTaskById.json index fbbe6d6d30ef..f9f25963007b 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.FileTests/TestGetTaskFileByName.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestGetTaskById.json @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14942" + "14989" ], "x-ms-request-id": [ - "585e15d8-c12b-4f14-9e9a-0fe355a08fe9" + "2f16c97c-5676-430c-915f-3c4c69509048" ], "x-ms-correlation-request-id": [ - "585e15d8-c12b-4f14-9e9a-0fe355a08fe9" + "2f16c97c-5676-430c-915f-3c4c69509048" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191451Z:585e15d8-c12b-4f14-9e9a-0fe355a08fe9" + "WESTUS:20150730T165309Z:2f16c97c-5676-430c-915f-3c4c69509048" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:14:50 GMT" + "Thu, 30 Jul 2015 16:53:09 GMT" ] }, "StatusCode": 200 @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14941" + "14988" ], "x-ms-request-id": [ - "1f7cd35e-9ef1-4726-bc36-7bb38cd75d35" + "ef5a2f0d-f4e0-4963-883f-dcac24224fed" ], "x-ms-correlation-request-id": [ - "1f7cd35e-9ef1-4726-bc36-7bb38cd75d35" + "ef5a2f0d-f4e0-4963-883f-dcac24224fed" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191457Z:1f7cd35e-9ef1-4726-bc36-7bb38cd75d35" + "WESTUS:20150730T165311Z:ef5a2f0d-f4e0-4963-883f-dcac24224fed" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:14:57 GMT" + "Thu, 30 Jul 2015 16:53:11 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:14:52 GMT" + "Thu, 30 Jul 2015 16:53:10 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "d069a30e-baba-44b1-9c9c-a87ac37f3583" + "9bdf264d-6577-4d2c-9d14-473020b8a60f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14950" + "14989" ], "x-ms-request-id": [ - "d95275b2-e614-4fd0-9257-583f4bbb6787" + "d4fdd26d-f115-4249-913f-e026fa2816a4" ], "x-ms-correlation-request-id": [ - "d95275b2-e614-4fd0-9257-583f4bbb6787" + "d4fdd26d-f115-4249-913f-e026fa2816a4" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191452Z:d95275b2-e614-4fd0-9257-583f4bbb6787" + "WESTUS:20150730T165310Z:d4fdd26d-f115-4249-913f-e026fa2816a4" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:14:52 GMT" + "Thu, 30 Jul 2015 16:53:10 GMT" ], "ETag": [ - "0x8D28892AB0331DB" + "0x8D298FF59C2F4EA" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:14:57 GMT" + "Thu, 30 Jul 2015 16:53:11 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "74975335-2e54-4a3e-bdec-b49a54629e9e" + "64132903-d1c5-4832-8ca5-2e7b1588f75c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14949" + "14988" ], "x-ms-request-id": [ - "fcfd415e-dc4d-40e6-bf9e-09d99fa2427b" + "4c624df4-cd9f-4761-8194-30be27a9c37a" ], "x-ms-correlation-request-id": [ - "fcfd415e-dc4d-40e6-bf9e-09d99fa2427b" + "4c624df4-cd9f-4761-8194-30be27a9c37a" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191457Z:fcfd415e-dc4d-40e6-bf9e-09d99fa2427b" + "WESTUS:20150730T165311Z:4c624df4-cd9f-4761-8194-30be27a9c37a" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:14:57 GMT" + "Thu, 30 Jul 2015 16:53:11 GMT" ], "ETag": [ - "0x8D28892ADE4BD9A" + "0x8D298FF5A6EB214" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "d4aa3fd7-d0e4-4035-bf46-b53a6ccaf4b3" + "29f49d6f-c93a-4e13-b649-697616de0b3c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1176" + "1194" ], "x-ms-request-id": [ - "bd8bbb03-4199-4562-9f9b-5262aa0c4038" + "26841954-dc02-41ea-bdbe-425385a80a25" ], "x-ms-correlation-request-id": [ - "bd8bbb03-4199-4562-9f9b-5262aa0c4038" + "26841954-dc02-41ea-bdbe-425385a80a25" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191453Z:bd8bbb03-4199-4562-9f9b-5262aa0c4038" + "WESTUS:20150730T165310Z:26841954-dc02-41ea-bdbe-425385a80a25" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:14:52 GMT" + "Thu, 30 Jul 2015 16:53:10 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "6524b7dd-de3e-48dd-9b22-8dba9aac6411" + "2e84afea-1d5b-4b3b-b6ee-aed567b51df5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1175" + "1193" ], "x-ms-request-id": [ - "5412e442-4894-40f1-82d7-012c8cdd7aaf" + "631a7980-9dce-4d98-aa4a-796dcc41933c" ], "x-ms-correlation-request-id": [ - "5412e442-4894-40f1-82d7-012c8cdd7aaf" + "631a7980-9dce-4d98-aa4a-796dcc41933c" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T191457Z:5412e442-4894-40f1-82d7-012c8cdd7aaf" + "WESTUS:20150730T165311Z:631a7980-9dce-4d98-aa4a-796dcc41933c" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 19:14:57 GMT" + "Thu, 30 Jul 2015 16:53:11 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,58 +337,62 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testGetTaskFileWI\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", + "RequestBody": "{\r\n \"id\": \"getTaskJob\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "173" - ], - "User-Agent": [ - "WA-Batch/1.0" + "93" ], "client-request-id": [ - "2afd5344-bb35-418a-b1d2-20739046af4d" + "cb162820-1de4-4265-ab97-347c7315b1f6" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:10 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:14:53 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 19:14:53 GMT" + "Thu, 30 Jul 2015 16:53:11 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "94af0e2f-92cd-4bb5-b0c7-50d928977fdf" + "3ceb5099-a6c4-45fb-96c2-693d874ffcf0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "cb162820-1de4-4265-ab97-347c7315b1f6" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testGetTaskFileWI" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Date": [ - "Thu, 09 Jul 2015 19:14:52 GMT" + "Thu, 30 Jul 2015 16:53:10 GMT" ], "ETag": [ - "0x8D28892AB97974D" + "0x8D298FF5A53266D" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/testGetTaskFileWI" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -397,109 +401,126 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/testGetTaskFileWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0R2V0VGFza0ZpbGVXST9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs/getTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZ2V0VGFza0pvYi90YXNrcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "83" ], "client-request-id": [ - "55b43d40-2e91-46d8-b9f6-96f5369a7332" + "d5ebd0e0-7f76-49b6-875e-c95368bf58a9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:11 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:14:53 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testGetTaskFileWI\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testGetTaskFileWI\",\r\n \"eTag\": \"0x8D28892AB97974D\",\r\n \"lastModified\": \"2015-07-09T19:14:53.8102605Z\",\r\n \"creationTime\": \"2015-07-09T19:14:53.8102605Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:14:53.8102605Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testGetTaskFileWI/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:14:53 GMT" + "Thu, 30 Jul 2015 16:53:11 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "867a6e78-70dd-4a45-bab3-86737e643bc9" + "79758ee8-0cf9-470c-bde4-c9f23d234994" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "d5ebd0e0-7f76-49b6-875e-c95368bf58a9" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/getTaskJob/tasks/testTask" + ], "Date": [ - "Thu, 09 Jul 2015 19:14:53 GMT" + "Thu, 30 Jul 2015 16:53:10 GMT" ], "ETag": [ - "0x8D28892AB97974D" + "0x8D298FF5A48EF6D" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/getTaskJob/tasks/testTask" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/testGetTaskFileWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0R2V0VGFza0ZpbGVXSS9qb2JzL2pvYi0wMDAwMDAwMDAxL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/jobs/getTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZ2V0VGFza0pvYi90YXNrcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestBody": "{\r\n \"id\": \"testTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "149" - ], - "User-Agent": [ - "WA-Batch/1.0" + "83" ], "client-request-id": [ - "4a1e7c46-9743-443a-8ee1-7dda0aa0f7b0" + "d5ebd0e0-7f76-49b6-875e-c95368bf58a9" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:11 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:14:53 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 19:14:54 GMT" + "Thu, 30 Jul 2015 16:53:11 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "0b65f5bf-5be1-49de-b476-934685742781" + "79758ee8-0cf9-470c-bde4-c9f23d234994" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "d5ebd0e0-7f76-49b6-875e-c95368bf58a9" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testGetTaskFileWI/jobs/job-0000000001/tasks/testTask" + "https://pstests.eastus.batch.azure.com/jobs/getTaskJob/tasks/testTask" ], "Date": [ - "Thu, 09 Jul 2015 19:14:53 GMT" + "Thu, 30 Jul 2015 16:53:10 GMT" ], "ETag": [ - "0x8D28892ABC263A0" + "0x8D298FF5A48EF6D" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/testGetTaskFileWI/jobs/job-0000000001/tasks/testTask" + "https://pstests.eastus.batch.azure.com/jobs/getTaskJob/tasks/testTask" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -508,49 +529,53 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/testGetTaskFileWI/jobs/job-0000000001/tasks/testTask?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0R2V0VGFza0ZpbGVXSS9qb2JzL2pvYi0wMDAwMDAwMDAxL3Rhc2tzL3Rlc3RUYXNrP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/jobs/getTaskJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZ2V0VGFza0pvYi90YXNrcy90ZXN0VGFzaz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "c627d79a-89a2-4720-8da9-e6bf82a1d66e" + "36299d5d-2a9f-425a-8c8e-b373558dbed6" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:11 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:14:54 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testGetTaskFileWI/jobs/job-0000000001/tasks/testTask\",\r\n \"eTag\": \"0x8D28892ABC263A0\",\r\n \"creationTime\": \"2015-07-09T19:14:54.0907424Z\",\r\n \"lastModified\": \"2015-07-09T19:14:54.0907424Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:14:54.0907424Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/getTaskJob/tasks/testTask\",\r\n \"eTag\": \"0x8D298FF5A48EF6D\",\r\n \"creationTime\": \"2015-07-30T16:53:11.1473005Z\",\r\n \"lastModified\": \"2015-07-30T16:53:11.1473005Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:53:11.1473005Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 09 Jul 2015 19:14:54 GMT" + "Thu, 30 Jul 2015 16:53:11 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "41903ded-b7c1-4279-8e70-04cb54c1ca3a" + "66282292-83b0-4d46-8588-0d533fc89829" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "36299d5d-2a9f-425a-8c8e-b373558dbed6" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:14:53 GMT" + "Thu, 30 Jul 2015 16:53:11 GMT" ], "ETag": [ - "0x8D28892ABC263A0" + "0x8D298FF5A48EF6D" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -559,43 +584,53 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testGetTaskFileWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0&$select=name%2Cstate&$filter=name%20eq%20'testTask'", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0R2V0VGFza0ZpbGVXSS9qb2JzL2pvYi0wMDAwMDAwMDAxL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4wJiRzZWxlY3Q9bmFtZSUyQ3N0YXRlJiRmaWx0ZXI9bmFtZSUyMGVxJTIwJTI3dGVzdFRhc2slMjc=", + "RequestUri": "/jobs/getTaskJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZ2V0VGFza0pvYi90YXNrcy90ZXN0VGFzaz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "6f482c23-de88-49d8-8618-534c96c506e5" + "d0b436bb-d4fa-4019-81b9-d8d225e9a747" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:12 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:14:54 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"name\": \"testTask\",\r\n \"state\": \"active\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/getTaskJob/tasks/testTask\",\r\n \"eTag\": \"0x8D298FF5A48EF6D\",\r\n \"creationTime\": \"2015-07-30T16:53:11.1473005Z\",\r\n \"lastModified\": \"2015-07-30T16:53:11.1473005Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:53:11.1473005Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:53:11 GMT" + ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "1b6b262f-4f27-441b-a342-603ac8fe9bb8" + "c8587465-579c-4063-adcd-c606a197e586" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "d0b436bb-d4fa-4019-81b9-d8d225e9a747" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:14:54 GMT" + "Thu, 30 Jul 2015 16:53:12 GMT" + ], + "ETag": [ + "0x8D298FF5A48EF6D" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -604,43 +639,53 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testGetTaskFileWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0&$select=name%2Cstate&$filter=name%20eq%20'testTask'", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0R2V0VGFza0ZpbGVXSS9qb2JzL2pvYi0wMDAwMDAwMDAxL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4wJiRzZWxlY3Q9bmFtZSUyQ3N0YXRlJiRmaWx0ZXI9bmFtZSUyMGVxJTIwJTI3dGVzdFRhc2slMjc=", + "RequestUri": "/jobs/getTaskJob/tasks/testTask?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZ2V0VGFza0pvYi90YXNrcy90ZXN0VGFzaz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "70804589-8d72-43e2-994c-706b6b79093b" + "d0b436bb-d4fa-4019-81b9-d8d225e9a747" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:12 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:14:57 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"name\": \"testTask\",\r\n \"state\": \"completed\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks/@Element\",\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/getTaskJob/tasks/testTask\",\r\n \"eTag\": \"0x8D298FF5A48EF6D\",\r\n \"creationTime\": \"2015-07-30T16:53:11.1473005Z\",\r\n \"lastModified\": \"2015-07-30T16:53:11.1473005Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T16:53:11.1473005Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], + "Last-Modified": [ + "Thu, 30 Jul 2015 16:53:11 GMT" + ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "613f33ac-df50-46a1-9a9a-b3df681e96ff" + "c8587465-579c-4063-adcd-c606a197e586" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "d0b436bb-d4fa-4019-81b9-d8d225e9a747" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:14:57 GMT" + "Thu, 30 Jul 2015 16:53:12 GMT" + ], + "ETag": [ + "0x8D298FF5A48EF6D" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -649,136 +694,115 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/testGetTaskFileWI/jobs/job-0000000001/tasks/testTask/files/stdout.txt?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0R2V0VGFza0ZpbGVXSS9qb2JzL2pvYi0wMDAwMDAwMDAxL3Rhc2tzL3Rlc3RUYXNrL2ZpbGVzL3N0ZG91dC50eHQ/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "HEAD", + "RequestUri": "/jobs/getTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZ2V0VGFza0pvYj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "31844d63-59e3-4d29-8603-d1351d8eeca8" + "75975c40-0749-4ead-9ca0-6e81bd1e45d4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:12 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:14:57 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "418" - ], - "Content-Type": [ - "application/octet-stream" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:14:55 GMT" + "Transfer-Encoding": [ + "chunked" ], "request-id": [ - "4bbf3914-3385-47f8-8313-f56b6cdd456a" + "8fa27d31-3cb4-4f3a-9032-bdfbc37daaa6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "75975c40-0749-4ead-9ca0-6e81bd1e45d4" + ], "DataServiceVersion": [ "3.0" ], - "ocp-creation-time": [ - "Thu, 09 Jul 2015 19:14:55 GMT" - ], - "ocp-batch-file-isdirectory": [ - "False" - ], - "ocp-batch-file-url": [ - "https%3A%2F%2Fpstests.batch.core.windows.net%2Fworkitems%2FtestGetTaskFileWI%2Fjobs%2Fjob-0000000001%2Ftasks%2FtestTask%2Ffiles%2Fstdout.txt" - ], "Date": [ - "Thu, 09 Jul 2015 19:14:58 GMT" + "Thu, 30 Jul 2015 16:53:12 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testGetTaskFileWI/jobs/job-0000000001/tasks/testTask/files/stdout.txt?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0R2V0VGFza0ZpbGVXSS9qb2JzL2pvYi0wMDAwMDAwMDAxL3Rhc2tzL3Rlc3RUYXNrL2ZpbGVzL3N0ZG91dC50eHQ/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "HEAD", + "RequestUri": "/jobs/getTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZ2V0VGFza0pvYj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "55bfa12a-b943-423e-a82e-7ce6a9a41002" + "75975c40-0749-4ead-9ca0-6e81bd1e45d4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:12 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:14:58 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "418" - ], - "Content-Type": [ - "application/octet-stream" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:14:55 GMT" + "Transfer-Encoding": [ + "chunked" ], "request-id": [ - "21d69255-a2ab-4980-bea7-4dbdeb435d69" + "8fa27d31-3cb4-4f3a-9032-bdfbc37daaa6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "75975c40-0749-4ead-9ca0-6e81bd1e45d4" + ], "DataServiceVersion": [ "3.0" ], - "ocp-creation-time": [ - "Thu, 09 Jul 2015 19:14:55 GMT" - ], - "ocp-batch-file-isdirectory": [ - "False" - ], - "ocp-batch-file-url": [ - "https%3A%2F%2Fpstests.batch.core.windows.net%2Fworkitems%2FtestGetTaskFileWI%2Fjobs%2Fjob-0000000001%2Ftasks%2FtestTask%2Ffiles%2Fstdout.txt" - ], "Date": [ - "Thu, 09 Jul 2015 19:14:58 GMT" + "Thu, 30 Jul 2015 16:53:12 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/testGetTaskFileWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0R2V0VGFza0ZpbGVXST9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs/getTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZ2V0VGFza0pvYj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "c02fa103-2e5a-4ea3-89a5-32a2dbe6b1d0" + "75975c40-0749-4ead-9ca0-6e81bd1e45d4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 16:53:12 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:14:58 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -787,16 +811,19 @@ "chunked" ], "request-id": [ - "87ecd36a-0ef4-462f-b1fd-2e3809706ea8" + "8fa27d31-3cb4-4f3a-9032-bdfbc37daaa6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "75975c40-0749-4ead-9ca0-6e81bd1e45d4" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 19:14:58 GMT" + "Thu, 30 Jul 2015 16:53:12 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestGetTaskRequiredParameters.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestGetTaskRequiredParameters.json deleted file mode 100644 index ea0417a8c021..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestGetTaskRequiredParameters.json +++ /dev/null @@ -1,176 +0,0 @@ -{ - "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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" - ], - "x-ms-request-id": [ - "d8617d52-1795-44b7-ac55-0d1b99f487dc" - ], - "x-ms-correlation-request-id": [ - "d8617d52-1795-44b7-ac55-0d1b99f487dc" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T203014Z:d8617d52-1795-44b7-ac55-0d1b99f487dc" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 20:30:13 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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 20:30:15 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "527a88f0-ef44-4533-b2bc-f0fa7deaad7f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" - ], - "x-ms-request-id": [ - "838be0c7-a8ea-4267-9e7f-0fa41b68c878" - ], - "x-ms-correlation-request-id": [ - "838be0c7-a8ea-4267-9e7f-0fa41b68c878" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T203015Z:838be0c7-a8ea-4267-9e7f-0fa41b68c878" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 20:30:14 GMT" - ], - "ETag": [ - "0x8D2889D32CB922D" - ], - "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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "2dbb11a7-923d-40be-b1bc-8e3de6286fb6" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-request-id": [ - "3ea1f6e7-b76f-4857-8bd9-aba652707004" - ], - "x-ms-correlation-request-id": [ - "3ea1f6e7-b76f-4857-8bd9-aba652707004" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T203015Z:3ea1f6e7-b76f-4857-8bd9-aba652707004" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 20:30:14 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" - } -} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListAllTasks.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListAllTasks.json index 464b2ca488df..411075b67196 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListAllTasks.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListAllTasks.json @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" + "14962" ], "x-ms-request-id": [ - "5d098772-2cdf-4e4c-8221-314110373333" + "8f58eb29-df84-4908-8b87-622aaf172fae" ], "x-ms-correlation-request-id": [ - "5d098772-2cdf-4e4c-8221-314110373333" + "8f58eb29-df84-4908-8b87-622aaf172fae" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T203124Z:5d098772-2cdf-4e4c-8221-314110373333" + "WESTUS:20150730T170807Z:8f58eb29-df84-4908-8b87-622aaf172fae" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:31:23 GMT" + "Thu, 30 Jul 2015 17:08:07 GMT" ] }, "StatusCode": 200 @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "14961" ], "x-ms-request-id": [ - "f59cc1b0-36ea-4161-b8e1-25d02081592b" + "0fd1e90c-92c6-4ac9-81df-1023b47635bf" ], "x-ms-correlation-request-id": [ - "f59cc1b0-36ea-4161-b8e1-25d02081592b" + "0fd1e90c-92c6-4ac9-81df-1023b47635bf" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T203127Z:f59cc1b0-36ea-4161-b8e1-25d02081592b" + "WESTUS:20150730T170810Z:0fd1e90c-92c6-4ac9-81df-1023b47635bf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:31:27 GMT" + "Thu, 30 Jul 2015 17:08:09 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 20:31:24 GMT" + "Thu, 30 Jul 2015 17:08:08 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "f85b61af-4063-4e73-8e62-41a943428f28" + "321f09e1-a1b8-47b4-a698-0b7f8e427316" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "14968" ], "x-ms-request-id": [ - "0f2a4acc-40c8-415b-8e30-547eff6f8975" + "f5432108-9b3e-4404-bf85-0b02ff1b459e" ], "x-ms-correlation-request-id": [ - "0f2a4acc-40c8-415b-8e30-547eff6f8975" + "f5432108-9b3e-4404-bf85-0b02ff1b459e" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T203124Z:0f2a4acc-40c8-415b-8e30-547eff6f8975" + "WESTUS:20150730T170808Z:f5432108-9b3e-4404-bf85-0b02ff1b459e" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:31:24 GMT" + "Thu, 30 Jul 2015 17:08:08 GMT" ], "ETag": [ - "0x8D2889D5C0928F3" + "0x8D29901712A429E" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 20:31:27 GMT" + "Thu, 30 Jul 2015 17:08:09 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "d5fa1076-9ab6-4d28-93a5-e6765c155e44" + "f55192db-4ad0-4f07-bdd3-fb4076717947" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14967" ], "x-ms-request-id": [ - "8260e05b-adde-4d0e-965d-699a77f1b6e9" + "9c25a169-27ad-4d75-9a16-773649602211" ], "x-ms-correlation-request-id": [ - "8260e05b-adde-4d0e-965d-699a77f1b6e9" + "9c25a169-27ad-4d75-9a16-773649602211" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T203127Z:8260e05b-adde-4d0e-965d-699a77f1b6e9" + "WESTUS:20150730T170810Z:9c25a169-27ad-4d75-9a16-773649602211" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:31:26 GMT" + "Thu, 30 Jul 2015 17:08:09 GMT" ], "ETag": [ - "0x8D2889D5DAC6D57" + "0x8D2990172099D8F" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "94829b68-cbbb-4f8a-9539-2867af0a72a4" + "077e5dcd-5884-412d-a4a1-86c8c6b315e3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1193" + "1189" ], "x-ms-request-id": [ - "cb19c44f-70d9-40ea-b80d-1a1f250e1b70" + "e3633eab-53b0-41c9-b911-4be56f28867b" ], "x-ms-correlation-request-id": [ - "cb19c44f-70d9-40ea-b80d-1a1f250e1b70" + "e3633eab-53b0-41c9-b911-4be56f28867b" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T203125Z:cb19c44f-70d9-40ea-b80d-1a1f250e1b70" + "WESTUS:20150730T170808Z:e3633eab-53b0-41c9-b911-4be56f28867b" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:31:24 GMT" + "Thu, 30 Jul 2015 17:08:08 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "80a78bcd-c9b6-4f5c-b12d-c45cda8da22f" + "c67f9a9a-0415-41cd-9285-1d168de4d918" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1192" + "1188" ], "x-ms-request-id": [ - "0299edd3-6a3d-423c-8ae6-b2f04f1b3fe4" + "3b144c5f-4a58-4dba-9a8d-0463d445b05a" ], "x-ms-correlation-request-id": [ - "0299edd3-6a3d-423c-8ae6-b2f04f1b3fe4" + "3b144c5f-4a58-4dba-9a8d-0463d445b05a" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T203127Z:0299edd3-6a3d-423c-8ae6-b2f04f1b3fe4" + "WESTUS:20150730T170810Z:3b144c5f-4a58-4dba-9a8d-0463d445b05a" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:31:27 GMT" + "Thu, 30 Jul 2015 17:08:09 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,58 +337,62 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"listTaskWI\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", + "RequestBody": "{\r\n \"id\": \"listTaskJob\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "166" - ], - "User-Agent": [ - "WA-Batch/1.0" + "94" ], "client-request-id": [ - "f08022e1-923f-4978-8642-e15718297f14" + "f36fb5d8-0986-4174-ba2b-21974fee4fb8" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:08 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:31:24 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 20:31:25 GMT" + "Thu, 30 Jul 2015 17:08:09 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "fb01bb5a-8677-4f02-97a9-ff7b9e72d178" + "3ca4299e-e457-4edc-bddb-55b1b2aa9bbf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "f36fb5d8-0986-4174-ba2b-21974fee4fb8" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/listTaskWI" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Date": [ - "Thu, 09 Jul 2015 20:31:23 GMT" + "Thu, 30 Jul 2015 17:08:08 GMT" ], "ETag": [ - "0x8D2889D5C8DAAC1" + "0x8D2990171B6A88B" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/listTaskWI" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -397,109 +401,190 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/listTaskWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9saXN0VGFza1dJP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs/listTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tKb2IvdGFza3M/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask1\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "84" ], "client-request-id": [ - "bcb73c26-0c76-47e9-9a0b-39829dcc7cad" + "1fbc3325-41ef-4772-90de-5be74796b487" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:09 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:31:25 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"listTaskWI\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/listTaskWI\",\r\n \"eTag\": \"0x8D2889D5C8DAAC1\",\r\n \"lastModified\": \"2015-07-09T20:31:25.6692417Z\",\r\n \"creationTime\": \"2015-07-09T20:31:25.6692417Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T20:31:25.6692417Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/listTaskWI/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:08:09 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "57af0aba-3697-4dbd-8a34-31822364a81b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "1fbc3325-41ef-4772-90de-5be74796b487" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask1" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:08 GMT" + ], + "ETag": [ + "0x8D2990171810E3E" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/listTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tKb2IvdGFza3M/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask1\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], + "Content-Length": [ + "84" + ], + "client-request-id": [ + "1fbc3325-41ef-4772-90de-5be74796b487" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:09 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 20:31:25 GMT" + "Thu, 30 Jul 2015 17:08:09 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "6da43618-7466-4bc8-92b3-99609d2094ba" + "57af0aba-3697-4dbd-8a34-31822364a81b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "1fbc3325-41ef-4772-90de-5be74796b487" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask1" + ], "Date": [ - "Thu, 09 Jul 2015 20:31:25 GMT" + "Thu, 30 Jul 2015 17:08:08 GMT" ], "ETag": [ - "0x8D2889D5C8DAAC1" + "0x8D2990171810E3E" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/listTaskWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9saXN0VGFza1dJL2pvYnMvam9iLTAwMDAwMDAwMDEvdGFza3M/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/jobs/listTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tKb2IvdGFza3M/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask1\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestBody": "{\r\n \"id\": \"testTask2\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "150" - ], - "User-Agent": [ - "WA-Batch/1.0" + "84" ], "client-request-id": [ - "c55975c0-c149-4474-ae62-4dbeaaf8dbc8" + "d73dc8ad-a469-461a-95e3-afb00e3ba019" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:09 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:31:25 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 20:31:26 GMT" + "Thu, 30 Jul 2015 17:08:09 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "55c52e2a-6155-4602-a56b-e9424a4d4f71" + "58612ce2-ff5c-4a4e-b280-8c9aea4d54c9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "d73dc8ad-a469-461a-95e3-afb00e3ba019" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/listTaskWI/jobs/job-0000000001/tasks/testTask1" + "https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask2" ], "Date": [ - "Thu, 09 Jul 2015 20:31:25 GMT" + "Thu, 30 Jul 2015 17:08:08 GMT" ], "ETag": [ - "0x8D2889D5CEDDBDE" + "0x8D29901719BE449" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/listTaskWI/jobs/job-0000000001/tasks/testTask1" + "https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask2" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -508,58 +593,62 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/listTaskWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9saXN0VGFza1dJL2pvYnMvam9iLTAwMDAwMDAwMDEvdGFza3M/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/jobs/listTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tKb2IvdGFza3M/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask2\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestBody": "{\r\n \"id\": \"testTask2\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "150" - ], - "User-Agent": [ - "WA-Batch/1.0" + "84" ], "client-request-id": [ - "e22e94e8-9002-4856-867d-aa442cfd49e9" + "d73dc8ad-a469-461a-95e3-afb00e3ba019" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:09 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:31:26 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 20:31:26 GMT" + "Thu, 30 Jul 2015 17:08:09 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "5950d1e3-5e61-42c1-8a73-2bb2ccc8b260" + "58612ce2-ff5c-4a4e-b280-8c9aea4d54c9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "d73dc8ad-a469-461a-95e3-afb00e3ba019" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/listTaskWI/jobs/job-0000000001/tasks/testTask2" + "https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask2" ], "Date": [ - "Thu, 09 Jul 2015 20:31:26 GMT" + "Thu, 30 Jul 2015 17:08:08 GMT" ], "ETag": [ - "0x8D2889D5D0061FD" + "0x8D29901719BE449" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/listTaskWI/jobs/job-0000000001/tasks/testTask2" + "https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask2" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -568,58 +657,62 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/listTaskWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9saXN0VGFza1dJL2pvYnMvam9iLTAwMDAwMDAwMDEvdGFza3M/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", + "RequestUri": "/jobs/listTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tKb2IvdGFza3M/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask3\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestBody": "{\r\n \"id\": \"testTask2\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "150" - ], - "User-Agent": [ - "WA-Batch/1.0" + "84" ], "client-request-id": [ - "7770c178-e727-4a4d-9b45-d88d3a176ad1" + "d73dc8ad-a469-461a-95e3-afb00e3ba019" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:09 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:31:26 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 20:31:27 GMT" + "Thu, 30 Jul 2015 17:08:09 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "5847880e-8961-478b-af53-143337e87884" + "58612ce2-ff5c-4a4e-b280-8c9aea4d54c9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "d73dc8ad-a469-461a-95e3-afb00e3ba019" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/listTaskWI/jobs/job-0000000001/tasks/testTask3" + "https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask2" ], "Date": [ - "Thu, 09 Jul 2015 20:31:26 GMT" + "Thu, 30 Jul 2015 17:08:08 GMT" ], "ETag": [ - "0x8D2889D5D90135D" + "0x8D29901719BE449" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/listTaskWI/jobs/job-0000000001/tasks/testTask3" + "https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask2" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -628,181 +721,790 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/listTaskWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9saXN0VGFza1dJL2pvYnMvam9iLTAwMDAwMDAwMDEvdGFza3M/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs/listTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tKb2IvdGFza3M/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask3\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "84" ], "client-request-id": [ - "e4a8d069-8d85-42f8-9c9b-8c100ef3ee70" + "32c9a023-4b23-47a0-ba4b-6c09aa47f920" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:09 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:31:27 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"name\": \"testTask1\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/listTaskWI/jobs/job-0000000001/tasks/testTask1\",\r\n \"eTag\": \"0x8D2889D5CEDDBDE\",\r\n \"creationTime\": \"2015-07-09T20:31:26.2996446Z\",\r\n \"lastModified\": \"2015-07-09T20:31:26.2996446Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T20:31:26.2996446Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n },\r\n {\r\n \"name\": \"testTask2\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/listTaskWI/jobs/job-0000000001/tasks/testTask2\",\r\n \"eTag\": \"0x8D2889D5D0061FD\",\r\n \"creationTime\": \"2015-07-09T20:31:26.4210429Z\",\r\n \"lastModified\": \"2015-07-09T20:31:26.4210429Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T20:31:26.4210429Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n },\r\n {\r\n \"name\": \"testTask3\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/listTaskWI/jobs/job-0000000001/tasks/testTask3\",\r\n \"eTag\": \"0x8D2889D5D90135D\",\r\n \"creationTime\": \"2015-07-09T20:31:27.3627485Z\",\r\n \"lastModified\": \"2015-07-09T20:31:27.3627485Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T20:31:27.3627485Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" + "Last-Modified": [ + "Thu, 30 Jul 2015 17:08:09 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "c1a5b68e-d8cd-44d5-93c3-e76bcc3e41e7" + "3d9045d9-6e7a-4a90-a7fb-153796a3cf4b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "32c9a023-4b23-47a0-ba4b-6c09aa47f920" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask3" + ], "Date": [ - "Thu, 09 Jul 2015 20:31:27 GMT" + "Thu, 30 Jul 2015 17:08:08 GMT" + ], + "ETag": [ + "0x8D2990171B84AE7" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask3" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/listTaskWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9saXN0VGFza1dJL2pvYnMvam9iLTAwMDAwMDAwMDEvdGFza3M/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs/listTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tKb2IvdGFza3M/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask3\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "84" ], "client-request-id": [ - "52bfae3f-f673-470c-996f-4f71b0701b1d" + "32c9a023-4b23-47a0-ba4b-6c09aa47f920" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:09 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:31:28 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"name\": \"testTask1\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/listTaskWI/jobs/job-0000000001/tasks/testTask1\",\r\n \"eTag\": \"0x8D2889D5CEDDBDE\",\r\n \"creationTime\": \"2015-07-09T20:31:26.2996446Z\",\r\n \"lastModified\": \"2015-07-09T20:31:26.2996446Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-09T20:31:28.2718868Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-09T20:31:28.1728852Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T20:31:28.1728852Z\",\r\n \"endTime\": \"2015-07-09T20:31:28.2718868Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"tvmInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150709t190321z\",\r\n \"tvmUrl\": \"https://pstests.batch.core.windows.net/pools/testpool/tvms/tvm-4155946844_3-20150709t190321z\",\r\n \"poolName\": \"testpool\",\r\n \"tvmName\": \"tvm-4155946844_3-20150709t190321z\"\r\n }\r\n },\r\n {\r\n \"name\": \"testTask2\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/listTaskWI/jobs/job-0000000001/tasks/testTask2\",\r\n \"eTag\": \"0x8D2889D5D0061FD\",\r\n \"creationTime\": \"2015-07-09T20:31:26.4210429Z\",\r\n \"lastModified\": \"2015-07-09T20:31:26.4210429Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-09T20:31:28.1956099Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-09T20:31:28.1053945Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T20:31:28.1053945Z\",\r\n \"endTime\": \"2015-07-09T20:31:28.1956099Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"tvmInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmUrl\": \"https://pstests.batch.core.windows.net/pools/testpool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"poolName\": \"testpool\",\r\n \"tvmName\": \"tvm-4155946844_1-20150709t190321z\"\r\n }\r\n },\r\n {\r\n \"name\": \"testTask3\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/listTaskWI/jobs/job-0000000001/tasks/testTask3\",\r\n \"eTag\": \"0x8D2889D5D90135D\",\r\n \"creationTime\": \"2015-07-09T20:31:27.3627485Z\",\r\n \"lastModified\": \"2015-07-09T20:31:27.3627485Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-09T20:31:28.5199504Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-09T20:31:28.4324061Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T20:31:28.4324061Z\",\r\n \"endTime\": \"2015-07-09T20:31:28.5199504Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"tvmInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150709t190321z\",\r\n \"tvmUrl\": \"https://pstests.batch.core.windows.net/pools/testpool/tvms/tvm-4155946844_2-20150709t190321z\",\r\n \"poolName\": \"testpool\",\r\n \"tvmName\": \"tvm-4155946844_2-20150709t190321z\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" + "Last-Modified": [ + "Thu, 30 Jul 2015 17:08:09 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "532b0dcd-2acd-43ce-a10b-2053a0b486ae" + "3d9045d9-6e7a-4a90-a7fb-153796a3cf4b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "32c9a023-4b23-47a0-ba4b-6c09aa47f920" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask3" + ], "Date": [ - "Thu, 09 Jul 2015 20:31:28 GMT" + "Thu, 30 Jul 2015 17:08:08 GMT" + ], + "ETag": [ + "0x8D2990171B84AE7" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask3" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/listTaskWI/jobs/job-0000000001?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9saXN0VGFza1dJL2pvYnMvam9iLTAwMDAwMDAwMDE/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs/listTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tKb2IvdGFza3M/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask3\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "84" ], "client-request-id": [ - "d00f50a6-77a2-4d38-9c60-8c405b4226cb" + "32c9a023-4b23-47a0-ba4b-6c09aa47f920" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:09 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:31:27 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#jobs/@Element\",\r\n \"name\": \"job-0000000001\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/listTaskWI/jobs/job-0000000001\",\r\n \"eTag\": \"0x8D2889D5C97E3BA\",\r\n \"lastModified\": \"2015-07-09T20:31:25.7362362Z\",\r\n \"creationTime\": \"2015-07-09T20:31:25.7192319Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T20:31:25.7362362Z\",\r\n \"poolName\": \"testPool\",\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T20:31:25.7362362Z\"\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:08:09 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "3d9045d9-6e7a-4a90-a7fb-153796a3cf4b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "32c9a023-4b23-47a0-ba4b-6c09aa47f920" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask3" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:08 GMT" + ], + "ETag": [ + "0x8D2990171B84AE7" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask3" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/listTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tKb2IvdGFza3M/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask3\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], + "Content-Length": [ + "84" + ], + "client-request-id": [ + "32c9a023-4b23-47a0-ba4b-6c09aa47f920" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:09 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 20:31:25 GMT" + "Thu, 30 Jul 2015 17:08:09 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "6d09a5c6-17ca-4e9a-b3a3-fd6ff7d61350" + "3d9045d9-6e7a-4a90-a7fb-153796a3cf4b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "32c9a023-4b23-47a0-ba4b-6c09aa47f920" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask3" + ], "Date": [ - "Thu, 09 Jul 2015 20:31:28 GMT" + "Thu, 30 Jul 2015 17:08:08 GMT" ], "ETag": [ - "0x8D2889D5C97E3BA" + "0x8D2990171B84AE7" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask3" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/listTaskWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9saXN0VGFza1dJP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "DELETE", + "RequestUri": "/jobs/listTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tKb2IvdGFza3M/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "150904c8-c78f-4682-8a4e-faf0acd18a1d" + "807195f3-a426-4b21-9c2e-a18cfc26e9a6" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:10 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:31:28 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask1\",\r\n \"eTag\": \"0x8D2990171810E3E\",\r\n \"creationTime\": \"2015-07-30T17:08:09.096147Z\",\r\n \"lastModified\": \"2015-07-30T17:08:09.096147Z\",\r\n \"state\": \"running\",\r\n \"stateTransitionTime\": \"2015-07-30T17:08:10.1175092Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:08:09.096147Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T17:08:10.1175092Z\",\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_2-20150730t163817z\"\r\n }\r\n },\r\n {\r\n \"id\": \"testTask2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask2\",\r\n \"eTag\": \"0x8D29901719BE449\",\r\n \"creationTime\": \"2015-07-30T17:08:09.2720201Z\",\r\n \"lastModified\": \"2015-07-30T17:08:09.2720201Z\",\r\n \"state\": \"running\",\r\n \"stateTransitionTime\": \"2015-07-30T17:08:10.5069257Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:08:09.2720201Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T17:08:10.5069257Z\",\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_1-20150730t163817z\"\r\n }\r\n },\r\n {\r\n \"id\": \"testTask3\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask3\",\r\n \"eTag\": \"0x8D2990171B84AE7\",\r\n \"creationTime\": \"2015-07-30T17:08:09.4581479Z\",\r\n \"lastModified\": \"2015-07-30T17:08:09.4581479Z\",\r\n \"state\": \"running\",\r\n \"stateTransitionTime\": \"2015-07-30T17:08:10.3753479Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:08:09.4581479Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T17:08:10.3753479Z\",\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_3-20150730t163817z\"\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "537d6360-7aba-4103-9362-7e99760302a1" + "9a4a7b1b-e9e4-451b-b3c2-8bd09e03a336" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "807195f3-a426-4b21-9c2e-a18cfc26e9a6" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:09 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tKb2IvdGFza3M/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ecbcd32a-2c4f-482d-9f3c-8dc8b71cdde1" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:10 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask1\",\r\n \"eTag\": \"0x8D2990171810E3E\",\r\n \"creationTime\": \"2015-07-30T17:08:09.096147Z\",\r\n \"lastModified\": \"2015-07-30T17:08:09.096147Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:08:10.2295152Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:08:10.1175092Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T17:08:10.1175092Z\",\r\n \"endTime\": \"2015-07-30T17:08:10.2295152Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_2-20150730t163817z\"\r\n }\r\n },\r\n {\r\n \"id\": \"testTask2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask2\",\r\n \"eTag\": \"0x8D29901719BE449\",\r\n \"creationTime\": \"2015-07-30T17:08:09.2720201Z\",\r\n \"lastModified\": \"2015-07-30T17:08:09.2720201Z\",\r\n \"state\": \"running\",\r\n \"stateTransitionTime\": \"2015-07-30T17:08:10.5069257Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:08:09.2720201Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T17:08:10.5069257Z\",\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_1-20150730t163817z\"\r\n }\r\n },\r\n {\r\n \"id\": \"testTask3\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask3\",\r\n \"eTag\": \"0x8D2990171B84AE7\",\r\n \"creationTime\": \"2015-07-30T17:08:09.4581479Z\",\r\n \"lastModified\": \"2015-07-30T17:08:09.4581479Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:08:10.5223504Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:08:10.3753479Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T17:08:10.3753479Z\",\r\n \"endTime\": \"2015-07-30T17:08:10.5223504Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_3-20150730t163817z\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "32884a42-621d-4b4a-b250-a6e6a397c941" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ecbcd32a-2c4f-482d-9f3c-8dc8b71cdde1" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:10 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tKb2IvdGFza3M/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ecbcd32a-2c4f-482d-9f3c-8dc8b71cdde1" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:10 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask1\",\r\n \"eTag\": \"0x8D2990171810E3E\",\r\n \"creationTime\": \"2015-07-30T17:08:09.096147Z\",\r\n \"lastModified\": \"2015-07-30T17:08:09.096147Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:08:10.2295152Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:08:10.1175092Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T17:08:10.1175092Z\",\r\n \"endTime\": \"2015-07-30T17:08:10.2295152Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_2-20150730t163817z\"\r\n }\r\n },\r\n {\r\n \"id\": \"testTask2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask2\",\r\n \"eTag\": \"0x8D29901719BE449\",\r\n \"creationTime\": \"2015-07-30T17:08:09.2720201Z\",\r\n \"lastModified\": \"2015-07-30T17:08:09.2720201Z\",\r\n \"state\": \"running\",\r\n \"stateTransitionTime\": \"2015-07-30T17:08:10.5069257Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:08:09.2720201Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T17:08:10.5069257Z\",\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_1-20150730t163817z\"\r\n }\r\n },\r\n {\r\n \"id\": \"testTask3\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask3\",\r\n \"eTag\": \"0x8D2990171B84AE7\",\r\n \"creationTime\": \"2015-07-30T17:08:09.4581479Z\",\r\n \"lastModified\": \"2015-07-30T17:08:09.4581479Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:08:10.5223504Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:08:10.3753479Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T17:08:10.3753479Z\",\r\n \"endTime\": \"2015-07-30T17:08:10.5223504Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_3-20150730t163817z\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "32884a42-621d-4b4a-b250-a6e6a397c941" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ecbcd32a-2c4f-482d-9f3c-8dc8b71cdde1" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:10 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tKb2IvdGFza3M/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "ecbcd32a-2c4f-482d-9f3c-8dc8b71cdde1" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:10 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask1\",\r\n \"eTag\": \"0x8D2990171810E3E\",\r\n \"creationTime\": \"2015-07-30T17:08:09.096147Z\",\r\n \"lastModified\": \"2015-07-30T17:08:09.096147Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:08:10.2295152Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:08:10.1175092Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T17:08:10.1175092Z\",\r\n \"endTime\": \"2015-07-30T17:08:10.2295152Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_2-20150730t163817z\"\r\n }\r\n },\r\n {\r\n \"id\": \"testTask2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask2\",\r\n \"eTag\": \"0x8D29901719BE449\",\r\n \"creationTime\": \"2015-07-30T17:08:09.2720201Z\",\r\n \"lastModified\": \"2015-07-30T17:08:09.2720201Z\",\r\n \"state\": \"running\",\r\n \"stateTransitionTime\": \"2015-07-30T17:08:10.5069257Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:08:09.2720201Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T17:08:10.5069257Z\",\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_1-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_1-20150730t163817z\"\r\n }\r\n },\r\n {\r\n \"id\": \"testTask3\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listTaskJob/tasks/testTask3\",\r\n \"eTag\": \"0x8D2990171B84AE7\",\r\n \"creationTime\": \"2015-07-30T17:08:09.4581479Z\",\r\n \"lastModified\": \"2015-07-30T17:08:09.4581479Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:08:10.5223504Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:08:10.3753479Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T17:08:10.3753479Z\",\r\n \"endTime\": \"2015-07-30T17:08:10.5223504Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_3-20150730t163817z\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "32884a42-621d-4b4a-b250-a6e6a397c941" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "ecbcd32a-2c4f-482d-9f3c-8dc8b71cdde1" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:10 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "64f028b6-6f8e-4423-a706-58d78ab15488" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:10 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\": \"listTaskJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listTaskJob\",\r\n \"eTag\": \"0x8D2990171B6A88B\",\r\n \"lastModified\": \"2015-07-30T17:08:09.4474379Z\",\r\n \"creationTime\": \"2015-07-30T17:08:09.4314385Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:08:09.4474379Z\",\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-07-30T17:08:09.4474379Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:08:09 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "210b8538-9eac-4ad0-8e90-f146e346f62e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "64f028b6-6f8e-4423-a706-58d78ab15488" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:10 GMT" + ], + "ETag": [ + "0x8D2990171B6A88B" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "64f028b6-6f8e-4423-a706-58d78ab15488" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:10 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\": \"listTaskJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listTaskJob\",\r\n \"eTag\": \"0x8D2990171B6A88B\",\r\n \"lastModified\": \"2015-07-30T17:08:09.4474379Z\",\r\n \"creationTime\": \"2015-07-30T17:08:09.4314385Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:08:09.4474379Z\",\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-07-30T17:08:09.4474379Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:08:09 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "210b8538-9eac-4ad0-8e90-f146e346f62e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "64f028b6-6f8e-4423-a706-58d78ab15488" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:10 GMT" + ], + "ETag": [ + "0x8D2990171B6A88B" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/listTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f7912b29-3379-46be-bc7c-211377b2ae0e" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:10 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": [ + "e5bff20c-7051-4ad8-acd8-c91c65fc2c69" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f7912b29-3379-46be-bc7c-211377b2ae0e" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:10 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/listTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f7912b29-3379-46be-bc7c-211377b2ae0e" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:10 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": [ + "e5bff20c-7051-4ad8-acd8-c91c65fc2c69" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f7912b29-3379-46be-bc7c-211377b2ae0e" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:10 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/listTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f7912b29-3379-46be-bc7c-211377b2ae0e" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:10 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": [ + "e5bff20c-7051-4ad8-acd8-c91c65fc2c69" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f7912b29-3379-46be-bc7c-211377b2ae0e" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:10 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/listTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f7912b29-3379-46be-bc7c-211377b2ae0e" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:10 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": [ + "e5bff20c-7051-4ad8-acd8-c91c65fc2c69" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f7912b29-3379-46be-bc7c-211377b2ae0e" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:10 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/listTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tKb2I/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "f7912b29-3379-46be-bc7c-211377b2ae0e" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:10 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": [ + "e5bff20c-7051-4ad8-acd8-c91c65fc2c69" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "f7912b29-3379-46be-bc7c-211377b2ae0e" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 20:31:28 GMT" + "Thu, 30 Jul 2015 17:08:10 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListTaskPipeline.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListTaskPipeline.json index 2596b62faee3..7ac65f8dc91d 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListTaskPipeline.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListTaskPipeline.json @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" + "14970" ], "x-ms-request-id": [ - "9d37f079-e5a5-4c2e-bdc7-6db918deba71" + "0462373f-0866-4b5e-8529-03c72c7a067a" ], "x-ms-correlation-request-id": [ - "9d37f079-e5a5-4c2e-bdc7-6db918deba71" + "0462373f-0866-4b5e-8529-03c72c7a067a" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T202829Z:9d37f079-e5a5-4c2e-bdc7-6db918deba71" + "WESTUS:20150730T170725Z:0462373f-0866-4b5e-8529-03c72c7a067a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:28:28 GMT" + "Thu, 30 Jul 2015 17:07:25 GMT" ] }, "StatusCode": 200 @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" + "14969" ], "x-ms-request-id": [ - "93366a9c-f809-41ec-8732-9840f2ba6ba2" + "73a224e0-1633-4817-acd2-37d2c9d564de" ], "x-ms-correlation-request-id": [ - "93366a9c-f809-41ec-8732-9840f2ba6ba2" + "73a224e0-1633-4817-acd2-37d2c9d564de" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T202833Z:93366a9c-f809-41ec-8732-9840f2ba6ba2" + "WESTUS:20150730T170728Z:73a224e0-1633-4817-acd2-37d2c9d564de" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:28:33 GMT" + "Thu, 30 Jul 2015 17:07:28 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 20:28:30 GMT" + "Thu, 30 Jul 2015 17:07:27 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "1b922ea6-c970-4402-b0e5-61942a70cecb" + "3057a113-c977-4b05-85b5-2641057b48ea" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "14978" ], "x-ms-request-id": [ - "c7d8383f-32b3-4144-88eb-de64e4ca5a23" + "e275da9d-a8b8-4904-b9b8-194845fa8a72" ], "x-ms-correlation-request-id": [ - "c7d8383f-32b3-4144-88eb-de64e4ca5a23" + "e275da9d-a8b8-4904-b9b8-194845fa8a72" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T202830Z:c7d8383f-32b3-4144-88eb-de64e4ca5a23" + "WESTUS:20150730T170727Z:e275da9d-a8b8-4904-b9b8-194845fa8a72" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:28:29 GMT" + "Thu, 30 Jul 2015 17:07:26 GMT" ], "ETag": [ - "0x8D2889CF41A202B" + "0x8D29901588102D9" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 20:28:33 GMT" + "Thu, 30 Jul 2015 17:07:28 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "c8dce45a-7697-4423-b9eb-2a549888f3fc" + "20b401ea-e70d-4984-94ba-e5883637b3b0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" + "14977" ], "x-ms-request-id": [ - "8a76b7df-3aea-4563-b499-c6387ca28526" + "1189a21d-6477-4820-b039-911c078df3ca" ], "x-ms-correlation-request-id": [ - "8a76b7df-3aea-4563-b499-c6387ca28526" + "1189a21d-6477-4820-b039-911c078df3ca" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T202833Z:8a76b7df-3aea-4563-b499-c6387ca28526" + "WESTUS:20150730T170728Z:1189a21d-6477-4820-b039-911c078df3ca" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:28:33 GMT" + "Thu, 30 Jul 2015 17:07:27 GMT" ], "ETag": [ - "0x8D2889CF5FAE3C9" + "0x8D299015933D051" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "a5986038-19e8-44d5-9d29-37040b391d9b" + "d12eb87b-5898-463a-ae14-b80fd7a3cbaa" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1188" ], "x-ms-request-id": [ - "3fc426d8-daf1-4cac-885a-f48d17d11cb0" + "b33db444-4fe4-4ca3-831d-2ff078659a0a" ], "x-ms-correlation-request-id": [ - "3fc426d8-daf1-4cac-885a-f48d17d11cb0" + "b33db444-4fe4-4ca3-831d-2ff078659a0a" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T202830Z:3fc426d8-daf1-4cac-885a-f48d17d11cb0" + "WESTUS:20150730T170727Z:b33db444-4fe4-4ca3-831d-2ff078659a0a" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:28:29 GMT" + "Thu, 30 Jul 2015 17:07:26 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "35d95fa7-9bf6-4876-be3d-c0711b1c927f" + "2d3b3766-f024-44b3-9128-3303d261ea27" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1187" ], "x-ms-request-id": [ - "858e0643-7568-4cf6-8f70-5060c5b3cf51" + "3b27bce5-1bf8-4129-9a8f-e5d2a04f2c40" ], "x-ms-correlation-request-id": [ - "858e0643-7568-4cf6-8f70-5060c5b3cf51" + "3b27bce5-1bf8-4129-9a8f-e5d2a04f2c40" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T202833Z:858e0643-7568-4cf6-8f70-5060c5b3cf51" + "WESTUS:20150730T170728Z:3b27bce5-1bf8-4129-9a8f-e5d2a04f2c40" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:28:33 GMT" + "Thu, 30 Jul 2015 17:07:27 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,58 +337,62 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"listTaskPipeWI\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", + "RequestBody": "{\r\n \"id\": \"listTaskPipeJob\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "170" - ], - "User-Agent": [ - "WA-Batch/1.0" + "98" ], "client-request-id": [ - "a133c634-75ad-4c58-b211-cbbed9d30e2b" + "43cde94c-29d0-4419-bf3a-2c47b3587ea7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:27 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:28:31 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 20:28:31 GMT" + "Thu, 30 Jul 2015 17:07:27 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "e4fae2e5-13ac-40d1-ab34-062096ff80c8" + "d990b04c-3186-474f-9378-64686e2b4c74" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "43cde94c-29d0-4419-bf3a-2c47b3587ea7" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/listTaskPipeWI" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Date": [ - "Thu, 09 Jul 2015 20:28:31 GMT" + "Thu, 30 Jul 2015 17:07:26 GMT" ], "ETag": [ - "0x8D2889CF4F710D9" + "0x8D2990158DD43E7" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/listTaskPipeWI" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -397,211 +401,230 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/listTaskPipeWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9saXN0VGFza1BpcGVXST9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs/listTaskPipeJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tQaXBlSm9iL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "83" ], "client-request-id": [ - "3d51e0ad-0afe-4803-a83f-47cb49a1f2ef" + "20cf4d14-a100-4beb-8be5-b171449cdf35" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:27 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:28:31 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"listTaskPipeWI\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/listTaskPipeWI\",\r\n \"eTag\": \"0x8D2889CF4F710D9\",\r\n \"lastModified\": \"2015-07-09T20:28:31.8769369Z\",\r\n \"creationTime\": \"2015-07-09T20:28:31.8769369Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T20:28:31.8769369Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/listTaskPipeWI/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 20:28:31 GMT" + "Thu, 30 Jul 2015 17:07:27 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "7a3b767a-a96a-4054-aa38-7f3b1003e706" + "6d2c863e-3d71-48a6-917b-1a3740b9c616" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "20cf4d14-a100-4beb-8be5-b171449cdf35" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/listTaskPipeJob/tasks/testTask" + ], "Date": [ - "Thu, 09 Jul 2015 20:28:30 GMT" + "Thu, 30 Jul 2015 17:07:26 GMT" ], "ETag": [ - "0x8D2889CF4F710D9" + "0x8D2990158CD93CA" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/listTaskPipeJob/tasks/testTask" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/listTaskPipeWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9saXN0VGFza1BpcGVXST9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs/listTaskPipeJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tQaXBlSm9iL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "83" ], "client-request-id": [ - "c7552cbb-80f1-4f95-80cc-81a1b2793fd2" + "20cf4d14-a100-4beb-8be5-b171449cdf35" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:27 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:28:34 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"listTaskPipeWI\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/listTaskPipeWI\",\r\n \"eTag\": \"0x8D2889CF4F710D9\",\r\n \"lastModified\": \"2015-07-09T20:28:31.8769369Z\",\r\n \"creationTime\": \"2015-07-09T20:28:31.8769369Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T20:28:31.8769369Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/listTaskPipeWI/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Last-Modified": [ - "Thu, 09 Jul 2015 20:28:31 GMT" + "Thu, 30 Jul 2015 17:07:27 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "03ee1f25-334e-4512-87cf-1749a6507424" + "6d2c863e-3d71-48a6-917b-1a3740b9c616" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "20cf4d14-a100-4beb-8be5-b171449cdf35" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/listTaskPipeJob/tasks/testTask" + ], "Date": [ - "Thu, 09 Jul 2015 20:28:34 GMT" + "Thu, 30 Jul 2015 17:07:26 GMT" ], "ETag": [ - "0x8D2889CF4F710D9" + "0x8D2990158CD93CA" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/listTaskPipeJob/tasks/testTask" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/listTaskPipeWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9saXN0VGFza1BpcGVXSS9qb2JzL2pvYi0wMDAwMDAwMDAxL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestUri": "/jobs/listTaskPipeJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tQaXBlSm9iP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "149" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "c20d9601-3e0d-4f79-8d6d-841b10dfe16c" + "983f3956-706f-4603-b635-02e245793bdc" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:28 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:28:32 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"listTaskPipeJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listTaskPipeJob\",\r\n \"eTag\": \"0x8D2990158DD43E7\",\r\n \"lastModified\": \"2015-07-30T17:07:27.7574119Z\",\r\n \"creationTime\": \"2015-07-30T17:07:27.7424041Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:07:27.7574119Z\",\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-07-30T17:07:27.7574119Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], "Last-Modified": [ - "Thu, 09 Jul 2015 20:28:32 GMT" + "Thu, 30 Jul 2015 17:07:27 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "88db60ea-d45c-46fb-b7d9-cb410ec71438" + "f37dea31-0ccc-4524-89f0-ee4e35196521" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "983f3956-706f-4603-b635-02e245793bdc" + ], "DataServiceVersion": [ "3.0" ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/listTaskPipeWI/jobs/job-0000000001/tasks/testTask" - ], "Date": [ - "Thu, 09 Jul 2015 20:28:32 GMT" + "Thu, 30 Jul 2015 17:07:28 GMT" ], "ETag": [ - "0x8D2889CF55BDCB9" - ], - "Location": [ - "https://pstests.batch.core.windows.net/workitems/listTaskPipeWI/jobs/job-0000000001/tasks/testTask" + "0x8D2990158DD43E7" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 201 + "StatusCode": 200 }, { - "RequestUri": "/workitems/listTaskPipeWI/jobs/job-0000000001?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9saXN0VGFza1BpcGVXSS9qb2JzL2pvYi0wMDAwMDAwMDAxP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/jobs/listTaskPipeJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tQaXBlSm9iL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "1f17bbde-91d7-47b7-a9e1-19db899d2865" + "3025a5b4-0421-4885-a82f-aa1137ef7131" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:28 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:28:33 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#jobs/@Element\",\r\n \"name\": \"job-0000000001\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/listTaskPipeWI/jobs/job-0000000001\",\r\n \"eTag\": \"0x8D2889CF51FC2A6\",\r\n \"lastModified\": \"2015-07-09T20:28:32.1436326Z\",\r\n \"creationTime\": \"2015-07-09T20:28:32.122633Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T20:28:32.1436326Z\",\r\n \"poolName\": \"testPool\",\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T20:28:32.1436326Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listTaskPipeJob/tasks/testTask\",\r\n \"eTag\": \"0x8D2990158CD93CA\",\r\n \"creationTime\": \"2015-07-30T17:07:27.6545994Z\",\r\n \"lastModified\": \"2015-07-30T17:07:27.6545994Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:07:27.6545994Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], - "Last-Modified": [ - "Thu, 09 Jul 2015 20:28:32 GMT" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "4b16d608-b52f-4197-9929-61d0a39198d5" + "64c67ba7-e29e-47d8-8de1-d23032db4f77" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "3025a5b4-0421-4885-a82f-aa1137ef7131" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 20:28:33 GMT" - ], - "ETag": [ - "0x8D2889CF51FC2A6" + "Thu, 30 Jul 2015 17:07:28 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -610,25 +633,26 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/listTaskPipeWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9saXN0VGFza1BpcGVXSS9qb2JzL2pvYi0wMDAwMDAwMDAxL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/jobs/listTaskPipeJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tQaXBlSm9iL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "ff22e7cf-3730-4e10-8b2a-0f44c6d3afbc" + "3025a5b4-0421-4885-a82f-aa1137ef7131" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:28 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:28:34 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"name\": \"testTask\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/listTaskPipeWI/jobs/job-0000000001/tasks/testTask\",\r\n \"eTag\": \"0x8D2889CF55BDCB9\",\r\n \"creationTime\": \"2015-07-09T20:28:32.5375161Z\",\r\n \"lastModified\": \"2015-07-09T20:28:32.5375161Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-09T20:28:33.6037648Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-09T20:28:33.4927759Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T20:28:33.4927759Z\",\r\n \"endTime\": \"2015-07-09T20:28:33.6037648Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"tvmInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmUrl\": \"https://pstests.batch.core.windows.net/pools/testpool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"poolName\": \"testpool\",\r\n \"tvmName\": \"tvm-4155946844_1-20150709t190321z\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/listTaskPipeJob/tasks/testTask\",\r\n \"eTag\": \"0x8D2990158CD93CA\",\r\n \"creationTime\": \"2015-07-30T17:07:27.6545994Z\",\r\n \"lastModified\": \"2015-07-30T17:07:27.6545994Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:07:27.6545994Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" @@ -637,16 +661,19 @@ "chunked" ], "request-id": [ - "38661d72-e49c-480f-a8f6-7ae8355b0245" + "64c67ba7-e29e-47d8-8de1-d23032db4f77" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "3025a5b4-0421-4885-a82f-aa1137ef7131" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 20:28:33 GMT" + "Thu, 30 Jul 2015 17:07:28 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -655,112 +682,115 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems/listTaskPipeWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9saXN0VGFza1BpcGVXSS9qb2JzL2pvYi0wMDAwMDAwMDAxL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", + "RequestUri": "/jobs/listTaskPipeJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tQaXBlSm9iP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "35c9a942-639a-4f6e-9952-c861b79e3676" + "96a9b577-d976-4c2f-bbc1-ccced89252c4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:28 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:28:35 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"name\": \"testTask\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/listTaskPipeWI/jobs/job-0000000001/tasks/testTask\",\r\n \"eTag\": \"0x8D2889CF55BDCB9\",\r\n \"creationTime\": \"2015-07-09T20:28:32.5375161Z\",\r\n \"lastModified\": \"2015-07-09T20:28:32.5375161Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-09T20:28:33.6037648Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-09T20:28:33.4927759Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T20:28:33.4927759Z\",\r\n \"endTime\": \"2015-07-09T20:28:33.6037648Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"tvmInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmUrl\": \"https://pstests.batch.core.windows.net/pools/testpool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"poolName\": \"testpool\",\r\n \"tvmName\": \"tvm-4155946844_1-20150709t190321z\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "e3b519de-0edf-450b-821b-83ddfd0be4fa" + "547f6d40-7fc5-4954-9df2-42f7780e9ad7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "96a9b577-d976-4c2f-bbc1-ccced89252c4" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 20:28:35 GMT" + "Thu, 30 Jul 2015 17:07:28 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/listTaskPipeWI/jobs?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9saXN0VGFza1BpcGVXSS9qb2JzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", + "RequestUri": "/jobs/listTaskPipeJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tQaXBlSm9iP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "aaad5b6f-5aec-4ee3-abc0-2a516b21a223" + "96a9b577-d976-4c2f-bbc1-ccced89252c4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:28 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:28:34 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#jobs\",\r\n \"value\": [\r\n {\r\n \"name\": \"job-0000000001\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/listTaskPipeWI/jobs/job-0000000001\",\r\n \"eTag\": \"0x8D2889CF51FC2A6\",\r\n \"lastModified\": \"2015-07-09T20:28:32.1436326Z\",\r\n \"creationTime\": \"2015-07-09T20:28:32.122633Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T20:28:32.1436326Z\",\r\n \"poolName\": \"testPool\",\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T20:28:32.1436326Z\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "8d8bb9d2-2888-4c01-a666-a76504bb4376" + "547f6d40-7fc5-4954-9df2-42f7780e9ad7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "96a9b577-d976-4c2f-bbc1-ccced89252c4" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 20:28:34 GMT" + "Thu, 30 Jul 2015 17:07:28 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/workitems/listTaskPipeWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9saXN0VGFza1BpcGVXST9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs/listTaskPipeJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbGlzdFRhc2tQaXBlSm9iP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "7ff5edfd-f176-4e3a-9826-384e2103dd6e" + "96a9b577-d976-4c2f-bbc1-ccced89252c4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:28 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:28:35 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", @@ -769,16 +799,19 @@ "chunked" ], "request-id": [ - "115c32d1-fcdf-46ef-abba-bb2b70ae2cc1" + "547f6d40-7fc5-4954-9df2-42f7780e9ad7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "96a9b577-d976-4c2f-bbc1-ccced89252c4" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 20:28:35 GMT" + "Thu, 30 Jul 2015 17:07:28 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListTasksByFilter.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListTasksByFilter.json index 479730a8b56f..4e3aa656ef96 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListTasksByFilter.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListTasksByFilter.json @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "14966" ], "x-ms-request-id": [ - "bb28882b-7d0c-46cd-b5ac-12c804411363" + "c20cdfb1-684b-42e2-a509-b64ec1f96334" ], "x-ms-correlation-request-id": [ - "bb28882b-7d0c-46cd-b5ac-12c804411363" + "c20cdfb1-684b-42e2-a509-b64ec1f96334" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T203100Z:bb28882b-7d0c-46cd-b5ac-12c804411363" + "WESTUS:20150730T170835Z:c20cdfb1-684b-42e2-a509-b64ec1f96334" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:30:59 GMT" + "Thu, 30 Jul 2015 17:08:34 GMT" ] }, "StatusCode": 200 @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14965" ], "x-ms-request-id": [ - "436727f0-d3d3-4f7d-a407-3dbf7e287f67" + "7cc1fe6e-c396-48d0-8c83-3e5f9bb3008d" ], "x-ms-correlation-request-id": [ - "436727f0-d3d3-4f7d-a407-3dbf7e287f67" + "7cc1fe6e-c396-48d0-8c83-3e5f9bb3008d" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T203103Z:436727f0-d3d3-4f7d-a407-3dbf7e287f67" + "WESTUS:20150730T170837Z:7cc1fe6e-c396-48d0-8c83-3e5f9bb3008d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:31:03 GMT" + "Thu, 30 Jul 2015 17:08:36 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 20:31:01 GMT" + "Thu, 30 Jul 2015 17:08:35 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "762ec4e7-eb1f-4a35-8e85-acd937f695a4" + "dfa02a3f-b508-4c99-b724-db622e4872af" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "14926" ], "x-ms-request-id": [ - "7facbbd3-be6b-4a0f-88d7-59fd96cad644" + "1ce38d29-0fc4-46de-bce9-39201721e515" ], "x-ms-correlation-request-id": [ - "7facbbd3-be6b-4a0f-88d7-59fd96cad644" + "1ce38d29-0fc4-46de-bce9-39201721e515" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T203101Z:7facbbd3-be6b-4a0f-88d7-59fd96cad644" + "WESTUS:20150730T170835Z:1ce38d29-0fc4-46de-bce9-39201721e515" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:31:01 GMT" + "Thu, 30 Jul 2015 17:08:35 GMT" ], "ETag": [ - "0x8D2889D4E00A1DD" + "0x8D299018167C72B" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 20:31:03 GMT" + "Thu, 30 Jul 2015 17:08:37 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "9a279890-1809-42b9-a1c5-b2bc70e373f2" + "9a0c03e0-930d-44e0-b1fe-e9eafff8f4c4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" + "14925" ], "x-ms-request-id": [ - "5025acc7-a66c-403c-86b4-7df784f4e26e" + "7704cf48-0be0-4440-beb9-82d7147a9c00" ], "x-ms-correlation-request-id": [ - "5025acc7-a66c-403c-86b4-7df784f4e26e" + "7704cf48-0be0-4440-beb9-82d7147a9c00" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T203103Z:5025acc7-a66c-403c-86b4-7df784f4e26e" + "WESTUS:20150730T170837Z:7704cf48-0be0-4440-beb9-82d7147a9c00" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:31:03 GMT" + "Thu, 30 Jul 2015 17:08:37 GMT" ], "ETag": [ - "0x8D2889D4F8D06EE" + "0x8D299018245945F" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "fadc14a9-3353-40c4-ab70-6e060570539f" + "389481a1-815d-4579-adfc-0c26d50e6671" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1173" ], "x-ms-request-id": [ - "608a6837-e3ea-4e7d-b1ea-b851cb9e44a4" + "a09ce331-f575-445d-8942-90080ba82bbf" ], "x-ms-correlation-request-id": [ - "608a6837-e3ea-4e7d-b1ea-b851cb9e44a4" + "a09ce331-f575-445d-8942-90080ba82bbf" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T203101Z:608a6837-e3ea-4e7d-b1ea-b851cb9e44a4" + "WESTUS:20150730T170836Z:a09ce331-f575-445d-8942-90080ba82bbf" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:31:01 GMT" + "Thu, 30 Jul 2015 17:08:35 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "628be8a0-4fb9-4405-a2fe-51f4fd8e7527" + "e680ca53-4ab7-46d6-859e-0f2a32c99f20" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1172" ], "x-ms-request-id": [ - "a5ae7b6a-8a98-421a-94a2-1324210f9e40" + "795ea3e9-43df-4396-9486-943654181bec" ], "x-ms-correlation-request-id": [ - "a5ae7b6a-8a98-421a-94a2-1324210f9e40" + "795ea3e9-43df-4396-9486-943654181bec" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T203104Z:a5ae7b6a-8a98-421a-94a2-1324210f9e40" + "WESTUS:20150730T170837Z:795ea3e9-43df-4396-9486-943654181bec" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:31:03 GMT" + "Thu, 30 Jul 2015 17:08:37 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,58 +337,62 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"filterTaskWI\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", + "RequestBody": "{\r\n \"id\": \"filterTaskJob\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "168" - ], - "User-Agent": [ - "WA-Batch/1.0" + "96" ], "client-request-id": [ - "9e47221f-7619-42bd-bd6a-bdc069e3acd7" + "54401ea4-dd09-43e4-8653-50e6c8a6c3eb" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:36 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:31:01 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 20:31:02 GMT" + "Thu, 30 Jul 2015 17:08:36 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "cd7f67ee-fa19-4297-b276-d7dfbc09af63" + "1bb55a75-2f5a-4311-a74e-f1d8087c7bf1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "54401ea4-dd09-43e4-8653-50e6c8a6c3eb" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/filterTaskWI" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Date": [ - "Thu, 09 Jul 2015 20:31:01 GMT" + "Thu, 30 Jul 2015 17:08:36 GMT" ], "ETag": [ - "0x8D2889D4E727911" + "0x8D2990181F55E1E" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/filterTaskWI" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -397,109 +401,190 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/filterTaskWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9maWx0ZXJUYXNrV0k/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs/filterTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZmlsdGVyVGFza0pvYi90YXNrcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask1\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "84" ], "client-request-id": [ - "77c8ff01-794f-48d9-adbf-2a98980ce63d" + "b1d72bd8-9738-492c-9099-1bfbb0841fd7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:36 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:31:01 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"filterTaskWI\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/filterTaskWI\",\r\n \"eTag\": \"0x8D2889D4E727911\",\r\n \"lastModified\": \"2015-07-09T20:31:02.0029201Z\",\r\n \"creationTime\": \"2015-07-09T20:31:02.0029201Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T20:31:02.0029201Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/filterTaskWI/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:08:36 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "0746fb87-857f-4280-9f66-77e6a6838cdc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "b1d72bd8-9738-492c-9099-1bfbb0841fd7" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/filterTaskJob/tasks/testTask1" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:36 GMT" + ], + "ETag": [ + "0x8D2990181EF3327" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/filterTaskJob/tasks/testTask1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/filterTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZmlsdGVyVGFza0pvYi90YXNrcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask1\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], + "Content-Length": [ + "84" + ], + "client-request-id": [ + "b1d72bd8-9738-492c-9099-1bfbb0841fd7" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:36 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 20:31:02 GMT" + "Thu, 30 Jul 2015 17:08:36 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "c8f9465f-c4f1-4ce5-a08a-45492e2b6dd9" + "0746fb87-857f-4280-9f66-77e6a6838cdc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "b1d72bd8-9738-492c-9099-1bfbb0841fd7" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/filterTaskJob/tasks/testTask1" + ], "Date": [ - "Thu, 09 Jul 2015 20:31:01 GMT" + "Thu, 30 Jul 2015 17:08:36 GMT" ], "ETag": [ - "0x8D2889D4E727911" + "0x8D2990181EF3327" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/filterTaskJob/tasks/testTask1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/filterTaskWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9maWx0ZXJUYXNrV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs/filterTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZmlsdGVyVGFza0pvYi90YXNrcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask1\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestBody": "{\r\n \"id\": \"testTask2\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "150" - ], - "User-Agent": [ - "WA-Batch/1.0" + "84" ], "client-request-id": [ - "7531911d-b311-4e74-9a9e-6b12f1f67850" + "b35424ed-2cd3-4d72-b493-6928eb8cd5a4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:36 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:31:02 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 20:31:02 GMT" + "Thu, 30 Jul 2015 17:08:36 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "b583a060-9774-44a1-bfd5-77de1ff4cb44" + "4a830a0b-94ae-43d6-9723-ff107dafd553" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "b35424ed-2cd3-4d72-b493-6928eb8cd5a4" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/filterTaskWI/jobs/job-0000000001/tasks/testTask1" + "https://pstests.eastus.batch.azure.com/jobs/filterTaskJob/tasks/testTask2" ], "Date": [ - "Thu, 09 Jul 2015 20:31:02 GMT" + "Thu, 30 Jul 2015 17:08:36 GMT" ], "ETag": [ - "0x8D2889D4EF67028" + "0x8D299018209C98B" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/filterTaskWI/jobs/job-0000000001/tasks/testTask1" + "https://pstests.eastus.batch.azure.com/jobs/filterTaskJob/tasks/testTask2" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -508,58 +593,62 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/filterTaskWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9maWx0ZXJUYXNrV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs/filterTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZmlsdGVyVGFza0pvYi90YXNrcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask2\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestBody": "{\r\n \"id\": \"testTask2\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "150" - ], - "User-Agent": [ - "WA-Batch/1.0" + "84" ], "client-request-id": [ - "62e6990b-b004-4aed-bbc3-83f5907ba7f8" + "b35424ed-2cd3-4d72-b493-6928eb8cd5a4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:36 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:31:02 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 20:31:03 GMT" + "Thu, 30 Jul 2015 17:08:36 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "09be30de-9bf3-4593-8311-242c50876e5e" + "4a830a0b-94ae-43d6-9723-ff107dafd553" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "b35424ed-2cd3-4d72-b493-6928eb8cd5a4" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/filterTaskWI/jobs/job-0000000001/tasks/testTask2" + "https://pstests.eastus.batch.azure.com/jobs/filterTaskJob/tasks/testTask2" ], "Date": [ - "Thu, 09 Jul 2015 20:31:02 GMT" + "Thu, 30 Jul 2015 17:08:36 GMT" ], "ETag": [ - "0x8D2889D4F13A6DF" + "0x8D299018209C98B" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/filterTaskWI/jobs/job-0000000001/tasks/testTask2" + "https://pstests.eastus.batch.azure.com/jobs/filterTaskJob/tasks/testTask2" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -568,58 +657,62 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/filterTaskWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9maWx0ZXJUYXNrV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs/filterTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZmlsdGVyVGFza0pvYi90YXNrcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"thirdTestTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestBody": "{\r\n \"id\": \"testTask2\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "154" - ], - "User-Agent": [ - "WA-Batch/1.0" + "84" ], "client-request-id": [ - "e8a76cec-1799-4a36-b439-6739254d69e3" + "b35424ed-2cd3-4d72-b493-6928eb8cd5a4" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:36 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:31:02 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 20:31:03 GMT" + "Thu, 30 Jul 2015 17:08:36 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "d312829d-fc1a-40fc-9585-3bfb02b0d253" + "4a830a0b-94ae-43d6-9723-ff107dafd553" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "b35424ed-2cd3-4d72-b493-6928eb8cd5a4" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/filterTaskWI/jobs/job-0000000001/tasks/thirdTestTask" + "https://pstests.eastus.batch.azure.com/jobs/filterTaskJob/tasks/testTask2" ], "Date": [ - "Thu, 09 Jul 2015 20:31:02 GMT" + "Thu, 30 Jul 2015 17:08:36 GMT" ], "ETag": [ - "0x8D2889D4F735F80" + "0x8D299018209C98B" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/filterTaskWI/jobs/job-0000000001/tasks/thirdTestTask" + "https://pstests.eastus.batch.azure.com/jobs/filterTaskJob/tasks/testTask2" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -628,181 +721,790 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/filterTaskWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0&$filter=startswith(name%2C'testTask')", - "EncodedRequestUri": "L3dvcmtpdGVtcy9maWx0ZXJUYXNrV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMCYkZmlsdGVyPXN0YXJ0c3dpdGglMjhuYW1lJTJDJTI3dGVzdFRhc2slMjclMjk=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs/filterTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZmlsdGVyVGFza0pvYi90YXNrcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdTestTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "88" ], "client-request-id": [ - "f8f595a2-664e-4f88-803a-0208e50f0a20" + "73bf3790-d58f-4cc2-8cd0-07f7684ccee3" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:36 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:31:03 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"name\": \"testTask1\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/filterTaskWI/jobs/job-0000000001/tasks/testTask1\",\r\n \"eTag\": \"0x8D2889D4EF67028\",\r\n \"creationTime\": \"2015-07-09T20:31:02.8677672Z\",\r\n \"lastModified\": \"2015-07-09T20:31:02.8677672Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-09T20:31:03.112854Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-09T20:31:03.0178621Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T20:31:03.0178621Z\",\r\n \"endTime\": \"2015-07-09T20:31:03.112854Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"tvmInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmUrl\": \"https://pstests.batch.core.windows.net/pools/testpool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"poolName\": \"testpool\",\r\n \"tvmName\": \"tvm-4155946844_1-20150709t190321z\"\r\n }\r\n },\r\n {\r\n \"name\": \"testTask2\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/filterTaskWI/jobs/job-0000000001/tasks/testTask2\",\r\n \"eTag\": \"0x8D2889D4F13A6DF\",\r\n \"creationTime\": \"2015-07-09T20:31:03.0592223Z\",\r\n \"lastModified\": \"2015-07-09T20:31:03.0592223Z\",\r\n \"state\": \"running\",\r\n \"stateTransitionTime\": \"2015-07-09T20:31:04.1557396Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-09T20:31:03.0592223Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T20:31:04.1557396Z\",\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"tvmInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150709t190321z\",\r\n \"tvmUrl\": \"https://pstests.batch.core.windows.net/pools/testpool/tvms/tvm-4155946844_2-20150709t190321z\",\r\n \"poolName\": \"testpool\",\r\n \"tvmName\": \"tvm-4155946844_2-20150709t190321z\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" + "Last-Modified": [ + "Thu, 30 Jul 2015 17:08:37 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "9ee36ac6-05b5-49c1-9a60-a12108ae8bd1" + "10a3558a-61be-4e3c-883f-b446696d592f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "73bf3790-d58f-4cc2-8cd0-07f7684ccee3" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/filterTaskJob/tasks/thirdTestTask" + ], "Date": [ - "Thu, 09 Jul 2015 20:31:04 GMT" + "Thu, 30 Jul 2015 17:08:36 GMT" + ], + "ETag": [ + "0x8D2990182247959" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/filterTaskJob/tasks/thirdTestTask" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/filterTaskWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0&$filter=startswith(name%2C'testTask')", - "EncodedRequestUri": "L3dvcmtpdGVtcy9maWx0ZXJUYXNrV0kvam9icy9qb2ItMDAwMDAwMDAwMS90YXNrcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMCYkZmlsdGVyPXN0YXJ0c3dpdGglMjhuYW1lJTJDJTI3dGVzdFRhc2slMjclMjk=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs/filterTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZmlsdGVyVGFza0pvYi90YXNrcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdTestTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "88" ], "client-request-id": [ - "39cb0cf8-4b58-4b56-8a2d-505836f8dd35" + "73bf3790-d58f-4cc2-8cd0-07f7684ccee3" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:36 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:31:04 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"name\": \"testTask1\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/filterTaskWI/jobs/job-0000000001/tasks/testTask1\",\r\n \"eTag\": \"0x8D2889D4EF67028\",\r\n \"creationTime\": \"2015-07-09T20:31:02.8677672Z\",\r\n \"lastModified\": \"2015-07-09T20:31:02.8677672Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-09T20:31:03.112854Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-09T20:31:03.0178621Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T20:31:03.0178621Z\",\r\n \"endTime\": \"2015-07-09T20:31:03.112854Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"tvmInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmUrl\": \"https://pstests.batch.core.windows.net/pools/testpool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"poolName\": \"testpool\",\r\n \"tvmName\": \"tvm-4155946844_1-20150709t190321z\"\r\n }\r\n },\r\n {\r\n \"name\": \"testTask2\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/filterTaskWI/jobs/job-0000000001/tasks/testTask2\",\r\n \"eTag\": \"0x8D2889D4F13A6DF\",\r\n \"creationTime\": \"2015-07-09T20:31:03.0592223Z\",\r\n \"lastModified\": \"2015-07-09T20:31:03.0592223Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-09T20:31:04.2510444Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-09T20:31:04.1557396Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T20:31:04.1557396Z\",\r\n \"endTime\": \"2015-07-09T20:31:04.2510444Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"tvmInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150709t190321z\",\r\n \"tvmUrl\": \"https://pstests.batch.core.windows.net/pools/testpool/tvms/tvm-4155946844_2-20150709t190321z\",\r\n \"poolName\": \"testpool\",\r\n \"tvmName\": \"tvm-4155946844_2-20150709t190321z\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" + "Last-Modified": [ + "Thu, 30 Jul 2015 17:08:37 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "bf788674-1604-4729-ba36-cfc414bf3d52" + "10a3558a-61be-4e3c-883f-b446696d592f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "73bf3790-d58f-4cc2-8cd0-07f7684ccee3" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/filterTaskJob/tasks/thirdTestTask" + ], "Date": [ - "Thu, 09 Jul 2015 20:31:04 GMT" + "Thu, 30 Jul 2015 17:08:36 GMT" + ], + "ETag": [ + "0x8D2990182247959" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/filterTaskJob/tasks/thirdTestTask" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/filterTaskWI/jobs/job-0000000001?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9maWx0ZXJUYXNrV0kvam9icy9qb2ItMDAwMDAwMDAwMT9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs/filterTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZmlsdGVyVGFza0pvYi90YXNrcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdTestTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "88" ], "client-request-id": [ - "1c83e7e6-beba-4455-86cb-198c8d21e742" + "73bf3790-d58f-4cc2-8cd0-07f7684ccee3" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:36 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:31:04 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#jobs/@Element\",\r\n \"name\": \"job-0000000001\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/filterTaskWI/jobs/job-0000000001\",\r\n \"eTag\": \"0x8D2889D4E7CBA66\",\r\n \"lastModified\": \"2015-07-09T20:31:02.0701286Z\",\r\n \"creationTime\": \"2015-07-09T20:31:02.0501208Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T20:31:02.0701286Z\",\r\n \"poolName\": \"testPool\",\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T20:31:02.0701286Z\"\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:08:37 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "10a3558a-61be-4e3c-883f-b446696d592f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "73bf3790-d58f-4cc2-8cd0-07f7684ccee3" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/filterTaskJob/tasks/thirdTestTask" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:36 GMT" + ], + "ETag": [ + "0x8D2990182247959" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/filterTaskJob/tasks/thirdTestTask" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/filterTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZmlsdGVyVGFza0pvYi90YXNrcz9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"thirdTestTask\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], + "Content-Length": [ + "88" + ], + "client-request-id": [ + "73bf3790-d58f-4cc2-8cd0-07f7684ccee3" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:36 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 20:31:02 GMT" + "Thu, 30 Jul 2015 17:08:37 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "f59c7d36-63ef-48fe-8a89-d9e7fc161255" + "10a3558a-61be-4e3c-883f-b446696d592f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "73bf3790-d58f-4cc2-8cd0-07f7684ccee3" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/filterTaskJob/tasks/thirdTestTask" + ], "Date": [ - "Thu, 09 Jul 2015 20:31:02 GMT" + "Thu, 30 Jul 2015 17:08:36 GMT" ], "ETag": [ - "0x8D2889D4E7CBA66" + "0x8D2990182247959" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/filterTaskJob/tasks/thirdTestTask" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/filterTaskWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9maWx0ZXJUYXNrV0k/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "DELETE", + "RequestUri": "/jobs/filterTaskJob/tasks?$filter=startswith(id%2C'testTask')&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZmlsdGVyVGFza0pvYi90YXNrcz8kZmlsdGVyPXN0YXJ0c3dpdGglMjhpZCUyQyUyN3Rlc3RUYXNrJTI3JTI5JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "44b2ae1b-1051-481c-80c9-0ac76cdb59b6" + "565fe59a-6d88-4614-b3af-8108f683c95e" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:37 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:31:04 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/filterTaskJob/tasks/testTask1\",\r\n \"eTag\": \"0x8D2990181EF3327\",\r\n \"creationTime\": \"2015-07-30T17:08:36.6615335Z\",\r\n \"lastModified\": \"2015-07-30T17:08:36.6615335Z\",\r\n \"state\": \"running\",\r\n \"stateTransitionTime\": \"2015-07-30T17:08:37.1910192Z\",\r\n \"previousState\": \"active\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:08:36.6615335Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T17:08:37.1910192Z\",\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_2-20150730t163817z\"\r\n }\r\n },\r\n {\r\n \"id\": \"testTask2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/filterTaskJob/tasks/testTask2\",\r\n \"eTag\": \"0x8D299018209C98B\",\r\n \"creationTime\": \"2015-07-30T17:08:36.8357771Z\",\r\n \"lastModified\": \"2015-07-30T17:08:36.8357771Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:08:37.5925858Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:08:37.4615828Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T17:08:37.4615828Z\",\r\n \"endTime\": \"2015-07-30T17:08:37.5925858Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_3-20150730t163817z\"\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "6ad9fcff-6d05-48a1-81cb-48be83e35138" + "0680ed41-be9b-4544-af8f-58efa156f102" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "565fe59a-6d88-4614-b3af-8108f683c95e" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:37 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/filterTaskJob/tasks?$filter=startswith(id%2C'testTask')&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZmlsdGVyVGFza0pvYi90YXNrcz8kZmlsdGVyPXN0YXJ0c3dpdGglMjhpZCUyQyUyN3Rlc3RUYXNrJTI3JTI5JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "b4512fca-18ee-4747-aa3a-30082a4fe579" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:37 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/filterTaskJob/tasks/testTask1\",\r\n \"eTag\": \"0x8D2990181EF3327\",\r\n \"creationTime\": \"2015-07-30T17:08:36.6615335Z\",\r\n \"lastModified\": \"2015-07-30T17:08:36.6615335Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:08:37.5039681Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:08:37.1910192Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T17:08:37.1910192Z\",\r\n \"endTime\": \"2015-07-30T17:08:37.5039681Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_2-20150730t163817z\"\r\n }\r\n },\r\n {\r\n \"id\": \"testTask2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/filterTaskJob/tasks/testTask2\",\r\n \"eTag\": \"0x8D299018209C98B\",\r\n \"creationTime\": \"2015-07-30T17:08:36.8357771Z\",\r\n \"lastModified\": \"2015-07-30T17:08:36.8357771Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:08:37.5925858Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:08:37.4615828Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T17:08:37.4615828Z\",\r\n \"endTime\": \"2015-07-30T17:08:37.5925858Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_3-20150730t163817z\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "278d5b7f-efd9-4e2a-9a63-07663ef8689e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "b4512fca-18ee-4747-aa3a-30082a4fe579" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:37 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/filterTaskJob/tasks?$filter=startswith(id%2C'testTask')&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZmlsdGVyVGFza0pvYi90YXNrcz8kZmlsdGVyPXN0YXJ0c3dpdGglMjhpZCUyQyUyN3Rlc3RUYXNrJTI3JTI5JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "b4512fca-18ee-4747-aa3a-30082a4fe579" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:37 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/filterTaskJob/tasks/testTask1\",\r\n \"eTag\": \"0x8D2990181EF3327\",\r\n \"creationTime\": \"2015-07-30T17:08:36.6615335Z\",\r\n \"lastModified\": \"2015-07-30T17:08:36.6615335Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:08:37.5039681Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:08:37.1910192Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T17:08:37.1910192Z\",\r\n \"endTime\": \"2015-07-30T17:08:37.5039681Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_2-20150730t163817z\"\r\n }\r\n },\r\n {\r\n \"id\": \"testTask2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/filterTaskJob/tasks/testTask2\",\r\n \"eTag\": \"0x8D299018209C98B\",\r\n \"creationTime\": \"2015-07-30T17:08:36.8357771Z\",\r\n \"lastModified\": \"2015-07-30T17:08:36.8357771Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:08:37.5925858Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:08:37.4615828Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T17:08:37.4615828Z\",\r\n \"endTime\": \"2015-07-30T17:08:37.5925858Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_3-20150730t163817z\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "278d5b7f-efd9-4e2a-9a63-07663ef8689e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "b4512fca-18ee-4747-aa3a-30082a4fe579" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:37 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/filterTaskJob/tasks?$filter=startswith(id%2C'testTask')&api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZmlsdGVyVGFza0pvYi90YXNrcz8kZmlsdGVyPXN0YXJ0c3dpdGglMjhpZCUyQyUyN3Rlc3RUYXNrJTI3JTI5JmFwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "b4512fca-18ee-4747-aa3a-30082a4fe579" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:37 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/filterTaskJob/tasks/testTask1\",\r\n \"eTag\": \"0x8D2990181EF3327\",\r\n \"creationTime\": \"2015-07-30T17:08:36.6615335Z\",\r\n \"lastModified\": \"2015-07-30T17:08:36.6615335Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:08:37.5039681Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:08:37.1910192Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T17:08:37.1910192Z\",\r\n \"endTime\": \"2015-07-30T17:08:37.5039681Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_2-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_2-20150730t163817z\"\r\n }\r\n },\r\n {\r\n \"id\": \"testTask2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/filterTaskJob/tasks/testTask2\",\r\n \"eTag\": \"0x8D299018209C98B\",\r\n \"creationTime\": \"2015-07-30T17:08:36.8357771Z\",\r\n \"lastModified\": \"2015-07-30T17:08:36.8357771Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-30T17:08:37.5925858Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-30T17:08:37.4615828Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-30T17:08:37.4615828Z\",\r\n \"endTime\": \"2015-07-30T17:08:37.5925858Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"nodeInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150730t163817z\",\r\n \"nodeUrl\": \"https://pstests.eastus.batch.azure.com/pools/testpool/nodes/tvm-4155946844_3-20150730t163817z\",\r\n \"poolId\": \"testpool\",\r\n \"nodeId\": \"tvm-4155946844_3-20150730t163817z\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "278d5b7f-efd9-4e2a-9a63-07663ef8689e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "b4512fca-18ee-4747-aa3a-30082a4fe579" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:37 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/filterTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZmlsdGVyVGFza0pvYj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "dc43ce86-5063-46c5-a952-8bb8ba572b86" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:37 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"filterTaskJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/filterTaskJob\",\r\n \"eTag\": \"0x8D2990181F55E1E\",\r\n \"lastModified\": \"2015-07-30T17:08:36.701955Z\",\r\n \"creationTime\": \"2015-07-30T17:08:36.6634798Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:08:36.701955Z\",\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-07-30T17:08:36.701955Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:08:36 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "1671d335-e5f2-45c4-bfbc-d1c4cc821db8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "dc43ce86-5063-46c5-a952-8bb8ba572b86" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:37 GMT" + ], + "ETag": [ + "0x8D2990181F55E1E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/filterTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZmlsdGVyVGFza0pvYj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "dc43ce86-5063-46c5-a952-8bb8ba572b86" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:37 GMT" + ], + "return-client-request-id": [ + "true" + ], + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" + ] + }, + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#jobs/@Element\",\r\n \"id\": \"filterTaskJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/filterTaskJob\",\r\n \"eTag\": \"0x8D2990181F55E1E\",\r\n \"lastModified\": \"2015-07-30T17:08:36.701955Z\",\r\n \"creationTime\": \"2015-07-30T17:08:36.6634798Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:08:36.701955Z\",\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-07-30T17:08:36.701955Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:08:36 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "1671d335-e5f2-45c4-bfbc-d1c4cc821db8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "dc43ce86-5063-46c5-a952-8bb8ba572b86" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:37 GMT" + ], + "ETag": [ + "0x8D2990181F55E1E" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/filterTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZmlsdGVyVGFza0pvYj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8ca273de-3b88-4b1c-a7b8-85615050b615" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:38 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": [ + "59fe3687-fd88-498f-b393-fbece6a6cfbc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8ca273de-3b88-4b1c-a7b8-85615050b615" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:38 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/filterTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZmlsdGVyVGFza0pvYj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8ca273de-3b88-4b1c-a7b8-85615050b615" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:38 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": [ + "59fe3687-fd88-498f-b393-fbece6a6cfbc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8ca273de-3b88-4b1c-a7b8-85615050b615" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:38 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/filterTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZmlsdGVyVGFza0pvYj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8ca273de-3b88-4b1c-a7b8-85615050b615" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:38 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": [ + "59fe3687-fd88-498f-b393-fbece6a6cfbc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8ca273de-3b88-4b1c-a7b8-85615050b615" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:38 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/filterTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZmlsdGVyVGFza0pvYj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8ca273de-3b88-4b1c-a7b8-85615050b615" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:38 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": [ + "59fe3687-fd88-498f-b393-fbece6a6cfbc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8ca273de-3b88-4b1c-a7b8-85615050b615" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:08:38 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/filterTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvZmlsdGVyVGFza0pvYj9hcGktdmVyc2lvbj0yMDE1LTA2LTAxLjIuMCZ0aW1lb3V0PTMw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "8ca273de-3b88-4b1c-a7b8-85615050b615" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:08:38 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": [ + "59fe3687-fd88-498f-b393-fbece6a6cfbc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "8ca273de-3b88-4b1c-a7b8-85615050b615" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 20:31:04 GMT" + "Thu, 30 Jul 2015 17:08:38 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListTasksWithMaxCount.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListTasksWithMaxCount.json index ab0ca5cb3bd7..ebf4df2758fc 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListTasksWithMaxCount.json +++ b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests/TestListTasksWithMaxCount.json @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14998" + "14970" ], "x-ms-request-id": [ - "d5e01203-a70a-4167-af98-684b83cff6f8" + "1b0c2f9b-0601-4b9f-975d-f66a277a3070" ], "x-ms-correlation-request-id": [ - "d5e01203-a70a-4167-af98-684b83cff6f8" + "1b0c2f9b-0601-4b9f-975d-f66a277a3070" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T203036Z:d5e01203-a70a-4167-af98-684b83cff6f8" + "WESTUS:20150730T170746Z:1b0c2f9b-0601-4b9f-975d-f66a277a3070" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:30:35 GMT" + "Thu, 30 Jul 2015 17:07:46 GMT" ] }, "StatusCode": 200 @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" + "14969" ], "x-ms-request-id": [ - "e8d8700c-baf2-471a-9a42-1204d17a44f3" + "d105e337-7903-4525-918c-3406a129e2bd" ], "x-ms-correlation-request-id": [ - "e8d8700c-baf2-471a-9a42-1204d17a44f3" + "d105e337-7903-4525-918c-3406a129e2bd" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T203039Z:e8d8700c-baf2-471a-9a42-1204d17a44f3" + "WESTUS:20150730T170748Z:d105e337-7903-4525-918c-3406a129e2bd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,7 +91,7 @@ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:30:39 GMT" + "Thu, 30 Jul 2015 17:07:48 GMT" ] }, "StatusCode": 200 @@ -109,7 +109,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -121,37 +121,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 20:30:37 GMT" + "Thu, 30 Jul 2015 17:07:47 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "fe2c1615-1953-47c8-b199-b491b19880ea" + "1f7181ba-3c26-4e54-b4f2-8ea6dffb502a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" + "14968" ], "x-ms-request-id": [ - "cb721a7e-f0c7-4ea7-b85f-eafef94b23cb" + "6ac6ab3f-a7d0-467f-87c5-bae82fd50393" ], "x-ms-correlation-request-id": [ - "cb721a7e-f0c7-4ea7-b85f-eafef94b23cb" + "6ac6ab3f-a7d0-467f-87c5-bae82fd50393" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T203037Z:cb721a7e-f0c7-4ea7-b85f-eafef94b23cb" + "WESTUS:20150730T170747Z:6ac6ab3f-a7d0-467f-87c5-bae82fd50393" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:30:36 GMT" + "Thu, 30 Jul 2015 17:07:46 GMT" ], "ETag": [ - "0x8D2889D3FD0F764" + "0x8D29901648A50F6" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -172,7 +172,7 @@ "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.batch.core.windows.net\",\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}", + "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" @@ -184,37 +184,37 @@ "-1" ], "Last-Modified": [ - "Thu, 09 Jul 2015 20:30:40 GMT" + "Thu, 30 Jul 2015 17:07:48 GMT" ], "Pragma": [ "no-cache" ], "request-id": [ - "106a6c3e-60d0-475d-b78b-a2cc721ffc28" + "f5dea53c-1ab1-4156-b56a-105dc5988bfd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "14967" ], "x-ms-request-id": [ - "5040e28f-f4b4-45c1-bff0-46deae6c74db" + "3a808980-6785-45ed-9d7a-7c60c307d004" ], "x-ms-correlation-request-id": [ - "5040e28f-f4b4-45c1-bff0-46deae6c74db" + "3a808980-6785-45ed-9d7a-7c60c307d004" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T203040Z:5040e28f-f4b4-45c1-bff0-46deae6c74db" + "WESTUS:20150730T170748Z:3a808980-6785-45ed-9d7a-7c60c307d004" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:30:39 GMT" + "Thu, 30 Jul 2015 17:07:48 GMT" ], "ETag": [ - "0x8D2889D41919241" + "0x8D299016578AADE" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -235,7 +235,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -250,28 +250,28 @@ "no-cache" ], "request-id": [ - "742be8d3-e673-4d35-a80e-eca2e159186c" + "0e8f1334-8b98-460f-a724-9a153636a123" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1180" ], "x-ms-request-id": [ - "4f267b53-2d7f-47ce-b29f-427a5c30795f" + "71a39038-7336-4a51-9808-b57ce8d1bcd3" ], "x-ms-correlation-request-id": [ - "4f267b53-2d7f-47ce-b29f-427a5c30795f" + "71a39038-7336-4a51-9808-b57ce8d1bcd3" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T203037Z:4f267b53-2d7f-47ce-b29f-427a5c30795f" + "WESTUS:20150730T170747Z:71a39038-7336-4a51-9808-b57ce8d1bcd3" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:30:37 GMT" + "Thu, 30 Jul 2015 17:07:46 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", + "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LjcPYhLUNjgOzrdNciMQS1TZJUoKgOrqhNYv9pbKdNn6GHMBuYwyt9dEx6uSdjzPV4U1N8RFm1EjiakXhq2hng==\",\r\n \"secondary\": \"Y8oHFA4f8afHXYmqwcvL2Bigg+GkjKhDBBUGGAEkGVoj77rskty8DnAqaqMpntUwQK+yEAJWbgfvoho5AfcM+w==\"\r\n}", "ResponseHeaders": { "Content-Length": [ "229" @@ -307,28 +307,28 @@ "no-cache" ], "request-id": [ - "ab8bf0c3-3c70-4d63-bb6f-421082dd2fc2" + "4ba13580-0f45-41db-8d49-cbbd5710fbf1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1179" ], "x-ms-request-id": [ - "a5bad35d-f175-493c-b08e-b08480f60ffb" + "aba9701a-539b-4dbc-ae38-97ea2cb5c890" ], "x-ms-correlation-request-id": [ - "a5bad35d-f175-493c-b08e-b08480f60ffb" + "aba9701a-539b-4dbc-ae38-97ea2cb5c890" ], "x-ms-routing-request-id": [ - "WESTUS:20150709T203040Z:a5bad35d-f175-493c-b08e-b08480f60ffb" + "WESTUS:20150730T170749Z:aba9701a-539b-4dbc-ae38-97ea2cb5c890" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Thu, 09 Jul 2015 20:30:39 GMT" + "Thu, 30 Jul 2015 17:07:48 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -337,58 +337,62 @@ "StatusCode": 200 }, { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", + "RequestUri": "/jobs?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnM/YXBpLXZlcnNpb249MjAxNS0wNi0wMS4yLjAmdGltZW91dD0zMA==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"maxCountTaskWI\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", + "RequestBody": "{\r\n \"id\": \"maxCountTaskJob\",\r\n \"priority\": 0,\r\n \"poolInfo\": {\r\n \"poolId\": \"testPool\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "170" - ], - "User-Agent": [ - "WA-Batch/1.0" + "98" ], "client-request-id": [ - "075ea8a9-fb2d-47c9-9009-a77e6b7059da" + "5cb8d0f2-888f-46fa-b2f1-666b9b334e22" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:47 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:30:37 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 20:30:38 GMT" + "Thu, 30 Jul 2015 17:07:48 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "0c50cc4d-b5d7-41af-87e2-f6c47bf5de2f" + "a73e3aab-45c3-4c7a-a083-3320d2d94c9e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "5cb8d0f2-888f-46fa-b2f1-666b9b334e22" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/maxCountTaskWI" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Date": [ - "Thu, 09 Jul 2015 20:30:37 GMT" + "Thu, 30 Jul 2015 17:07:46 GMT" ], "ETag": [ - "0x8D2889D404467BE" + "0x8D2990165008744" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/maxCountTaskWI" + "https://pstests.eastus.batch.azure.com/jobs/job-1" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -397,109 +401,190 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/maxCountTaskWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9tYXhDb3VudFRhc2tXST9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs/maxCountTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbWF4Q291bnRUYXNrSm9iL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask1\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "84" ], "client-request-id": [ - "18645d9e-00d0-4108-8960-d715b44f737c" + "9c2ab897-986e-463e-9419-89a67a66823e" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:47 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:30:37 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"maxCountTaskWI\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/maxCountTaskWI\",\r\n \"eTag\": \"0x8D2889D404467BE\",\r\n \"lastModified\": \"2015-07-09T20:30:38.2129086Z\",\r\n \"creationTime\": \"2015-07-09T20:30:38.2129086Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T20:30:38.2129086Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/maxCountTaskWI/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:07:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "f1ef8151-c9da-4e4a-b070-3265ff02fb22" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9c2ab897-986e-463e-9419-89a67a66823e" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask1" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:46 GMT" + ], + "ETag": [ + "0x8D299016492BCDF" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/maxCountTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbWF4Q291bnRUYXNrSm9iL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask1\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], + "Content-Length": [ + "84" + ], + "client-request-id": [ + "9c2ab897-986e-463e-9419-89a67a66823e" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07: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": [ - "Thu, 09 Jul 2015 20:30:38 GMT" + "Thu, 30 Jul 2015 17:07:47 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "82407b76-62ec-4717-9be4-48d34030f8fe" + "f1ef8151-c9da-4e4a-b070-3265ff02fb22" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "9c2ab897-986e-463e-9419-89a67a66823e" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask1" + ], "Date": [ - "Thu, 09 Jul 2015 20:30:38 GMT" + "Thu, 30 Jul 2015 17:07:46 GMT" ], "ETag": [ - "0x8D2889D404467BE" + "0x8D299016492BCDF" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/maxCountTaskWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9tYXhDb3VudFRhc2tXSS9qb2JzL2pvYi0wMDAwMDAwMDAxL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/jobs/maxCountTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbWF4Q291bnRUYXNrSm9iL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask1\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestBody": "{\r\n \"id\": \"testTask2\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "150" - ], - "User-Agent": [ - "WA-Batch/1.0" + "84" ], "client-request-id": [ - "fa373617-d6a8-4044-b4dc-0aacb4fa253a" + "133cce20-0e61-4faa-abdd-26c97f47982a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:48 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:30:38 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 20:30:38 GMT" + "Thu, 30 Jul 2015 17:07:47 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "73429d0a-ef81-46bf-a140-72e91e691f85" + "9c920d4a-03a1-44d2-9811-a09b96a9ae00" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "133cce20-0e61-4faa-abdd-26c97f47982a" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/maxCountTaskWI/jobs/job-0000000001/tasks/testTask1" + "https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask2" ], "Date": [ - "Thu, 09 Jul 2015 20:30:38 GMT" + "Thu, 30 Jul 2015 17:07:46 GMT" ], "ETag": [ - "0x8D2889D4097C7D3" + "0x8D2990164ADD176" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/maxCountTaskWI/jobs/job-0000000001/tasks/testTask1" + "https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask2" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -508,58 +593,62 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/maxCountTaskWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9tYXhDb3VudFRhc2tXSS9qb2JzL2pvYi0wMDAwMDAwMDAxL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/jobs/maxCountTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbWF4Q291bnRUYXNrSm9iL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask2\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestBody": "{\r\n \"id\": \"testTask2\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "150" - ], - "User-Agent": [ - "WA-Batch/1.0" + "84" ], "client-request-id": [ - "85067206-3f4b-4158-90cc-c206e4ff8156" + "133cce20-0e61-4faa-abdd-26c97f47982a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:48 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:30:38 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 20:30:39 GMT" + "Thu, 30 Jul 2015 17:07:47 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "cfe20a06-dab2-4a2c-9418-521916cde66f" + "9c920d4a-03a1-44d2-9811-a09b96a9ae00" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "133cce20-0e61-4faa-abdd-26c97f47982a" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/maxCountTaskWI/jobs/job-0000000001/tasks/testTask2" + "https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask2" ], "Date": [ - "Thu, 09 Jul 2015 20:30:39 GMT" + "Thu, 30 Jul 2015 17:07:46 GMT" ], "ETag": [ - "0x8D2889D40F836B0" + "0x8D2990164ADD176" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/maxCountTaskWI/jobs/job-0000000001/tasks/testTask2" + "https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask2" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -568,58 +657,62 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/maxCountTaskWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9tYXhDb3VudFRhc2tXSS9qb2JzL2pvYi0wMDAwMDAwMDAxL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", + "RequestUri": "/jobs/maxCountTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbWF4Q291bnRUYXNrSm9iL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#tasks/@Element\",\r\n \"name\": \"testTask3\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestBody": "{\r\n \"id\": \"testTask2\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { "Content-Type": [ - "application/json;odata=minimalmetadata" + "application/json; odata=minimalmetadata" ], "Content-Length": [ - "150" - ], - "User-Agent": [ - "WA-Batch/1.0" + "84" ], "client-request-id": [ - "d0abbfbc-2187-46ef-91c9-b85684ff3aa8" + "133cce20-0e61-4faa-abdd-26c97f47982a" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:48 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:30:39 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, "ResponseBody": "", "ResponseHeaders": { "Last-Modified": [ - "Thu, 09 Jul 2015 20:30:39 GMT" + "Thu, 30 Jul 2015 17:07:47 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "07f3b44c-9dc1-4b49-8702-0962d0303424" + "9c920d4a-03a1-44d2-9811-a09b96a9ae00" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "133cce20-0e61-4faa-abdd-26c97f47982a" + ], "DataServiceVersion": [ "3.0" ], "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/maxCountTaskWI/jobs/job-0000000001/tasks/testTask3" + "https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask2" ], "Date": [ - "Thu, 09 Jul 2015 20:30:38 GMT" + "Thu, 30 Jul 2015 17:07:46 GMT" ], "ETag": [ - "0x8D2889D4101A6EA" + "0x8D2990164ADD176" ], "Location": [ - "https://pstests.batch.core.windows.net/workitems/maxCountTaskWI/jobs/job-0000000001/tasks/testTask3" + "https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask2" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -628,181 +721,790 @@ "StatusCode": 201 }, { - "RequestUri": "/workitems/maxCountTaskWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9tYXhDb3VudFRhc2tXSS9qb2JzL2pvYi0wMDAwMDAwMDAxL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs/maxCountTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbWF4Q291bnRUYXNrSm9iL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask3\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "84" ], "client-request-id": [ - "e42b396d-3b35-4c8d-beef-e1ddd61c7e99" + "e25d7d52-e3aa-4997-a766-1c96c3e48a6f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:48 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:30:40 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"name\": \"testTask1\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/maxCountTaskWI/jobs/job-0000000001/tasks/testTask1\",\r\n \"eTag\": \"0x8D2889D4097C7D3\",\r\n \"creationTime\": \"2015-07-09T20:30:38.7593171Z\",\r\n \"lastModified\": \"2015-07-09T20:30:38.7593171Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-09T20:30:40.1688401Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-09T20:30:40.0568397Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T20:30:40.0568397Z\",\r\n \"endTime\": \"2015-07-09T20:30:40.1688401Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"tvmInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150709t190321z\",\r\n \"tvmUrl\": \"https://pstests.batch.core.windows.net/pools/testpool/tvms/tvm-4155946844_2-20150709t190321z\",\r\n \"poolName\": \"testpool\",\r\n \"tvmName\": \"tvm-4155946844_2-20150709t190321z\"\r\n }\r\n },\r\n {\r\n \"name\": \"testTask2\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/maxCountTaskWI/jobs/job-0000000001/tasks/testTask2\",\r\n \"eTag\": \"0x8D2889D40F836B0\",\r\n \"creationTime\": \"2015-07-09T20:30:39.3913008Z\",\r\n \"lastModified\": \"2015-07-09T20:30:39.3913008Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-09T20:30:39.8857452Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-09T20:30:39.784387Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T20:30:39.784387Z\",\r\n \"endTime\": \"2015-07-09T20:30:39.8857452Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"tvmInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmUrl\": \"https://pstests.batch.core.windows.net/pools/testpool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"poolName\": \"testpool\",\r\n \"tvmName\": \"tvm-4155946844_1-20150709t190321z\"\r\n }\r\n },\r\n {\r\n \"name\": \"testTask3\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/maxCountTaskWI/jobs/job-0000000001/tasks/testTask3\",\r\n \"eTag\": \"0x8D2889D4101A6EA\",\r\n \"creationTime\": \"2015-07-09T20:30:39.4531562Z\",\r\n \"lastModified\": \"2015-07-09T20:30:39.4531562Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T20:30:39.4531562Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" + "Last-Modified": [ + "Thu, 30 Jul 2015 17:07:47 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "083fe641-6962-4e04-b33a-2d61bc9104ac" + "6f3e7bb1-2f62-4bce-b3aa-26774bf9866f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "e25d7d52-e3aa-4997-a766-1c96c3e48a6f" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask3" + ], "Date": [ - "Thu, 09 Jul 2015 20:30:40 GMT" + "Thu, 30 Jul 2015 17:07:47 GMT" + ], + "ETag": [ + "0x8D2990164CC6896" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask3" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/maxCountTaskWI/jobs/job-0000000001/tasks?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9tYXhDb3VudFRhc2tXSS9qb2JzL2pvYi0wMDAwMDAwMDAxL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs/maxCountTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbWF4Q291bnRUYXNrSm9iL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask3\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "84" ], "client-request-id": [ - "cad9acca-7d54-4a1b-a253-1b6152f4c305" + "e25d7d52-e3aa-4997-a766-1c96c3e48a6f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:48 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:30:40 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"name\": \"testTask1\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/maxCountTaskWI/jobs/job-0000000001/tasks/testTask1\",\r\n \"eTag\": \"0x8D2889D4097C7D3\",\r\n \"creationTime\": \"2015-07-09T20:30:38.7593171Z\",\r\n \"lastModified\": \"2015-07-09T20:30:38.7593171Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-09T20:30:40.1688401Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-09T20:30:40.0568397Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T20:30:40.0568397Z\",\r\n \"endTime\": \"2015-07-09T20:30:40.1688401Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"tvmInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150709t190321z\",\r\n \"tvmUrl\": \"https://pstests.batch.core.windows.net/pools/testpool/tvms/tvm-4155946844_2-20150709t190321z\",\r\n \"poolName\": \"testpool\",\r\n \"tvmName\": \"tvm-4155946844_2-20150709t190321z\"\r\n }\r\n },\r\n {\r\n \"name\": \"testTask2\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/maxCountTaskWI/jobs/job-0000000001/tasks/testTask2\",\r\n \"eTag\": \"0x8D2889D40F836B0\",\r\n \"creationTime\": \"2015-07-09T20:30:39.3913008Z\",\r\n \"lastModified\": \"2015-07-09T20:30:39.3913008Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-09T20:30:39.8857452Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-09T20:30:39.784387Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T20:30:39.784387Z\",\r\n \"endTime\": \"2015-07-09T20:30:39.8857452Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"tvmInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmUrl\": \"https://pstests.batch.core.windows.net/pools/testpool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"poolName\": \"testpool\",\r\n \"tvmName\": \"tvm-4155946844_1-20150709t190321z\"\r\n }\r\n },\r\n {\r\n \"name\": \"testTask3\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/maxCountTaskWI/jobs/job-0000000001/tasks/testTask3\",\r\n \"eTag\": \"0x8D2889D4101A6EA\",\r\n \"creationTime\": \"2015-07-09T20:30:39.4531562Z\",\r\n \"lastModified\": \"2015-07-09T20:30:39.4531562Z\",\r\n \"state\": \"completed\",\r\n \"stateTransitionTime\": \"2015-07-09T20:30:40.9634Z\",\r\n \"previousState\": \"running\",\r\n \"previousStateTransitionTime\": \"2015-07-09T20:30:40.8714001Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T20:30:40.8714001Z\",\r\n \"endTime\": \"2015-07-09T20:30:40.9634Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n },\r\n \"tvmInfo\": {\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150709t190321z\",\r\n \"tvmUrl\": \"https://pstests.batch.core.windows.net/pools/testpool/tvms/tvm-4155946844_3-20150709t190321z\",\r\n \"poolName\": \"testpool\",\r\n \"tvmName\": \"tvm-4155946844_3-20150709t190321z\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" + "Last-Modified": [ + "Thu, 30 Jul 2015 17:07:47 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "7743c2a5-57a0-4d88-a552-e355bf3b7635" + "6f3e7bb1-2f62-4bce-b3aa-26774bf9866f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "e25d7d52-e3aa-4997-a766-1c96c3e48a6f" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask3" + ], "Date": [ - "Thu, 09 Jul 2015 20:30:40 GMT" + "Thu, 30 Jul 2015 17:07:47 GMT" + ], + "ETag": [ + "0x8D2990164CC6896" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask3" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/maxCountTaskWI/jobs/job-0000000001?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9tYXhDb3VudFRhc2tXSS9qb2JzL2pvYi0wMDAwMDAwMDAxP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/jobs/maxCountTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbWF4Q291bnRUYXNrSm9iL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask3\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Content-Length": [ + "84" ], "client-request-id": [ - "5e10f887-978e-444d-b286-eef486b7fc3c" + "e25d7d52-e3aa-4997-a766-1c96c3e48a6f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:48 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:30:40 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#jobs/@Element\",\r\n \"name\": \"job-0000000001\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/maxCountTaskWI/jobs/job-0000000001\",\r\n \"eTag\": \"0x8D2889D404D19EB\",\r\n \"lastModified\": \"2015-07-09T20:30:38.2698987Z\",\r\n \"creationTime\": \"2015-07-09T20:30:38.2508984Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T20:30:38.2698987Z\",\r\n \"poolName\": \"testPool\",\r\n \"executionInfo\": {\r\n \"startTime\": \"2015-07-09T20:30:38.2698987Z\"\r\n }\r\n}", + "ResponseBody": "", "ResponseHeaders": { + "Last-Modified": [ + "Thu, 30 Jul 2015 17:07:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "6f3e7bb1-2f62-4bce-b3aa-26774bf9866f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "e25d7d52-e3aa-4997-a766-1c96c3e48a6f" + ], + "DataServiceVersion": [ + "3.0" + ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask3" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:47 GMT" + ], + "ETag": [ + "0x8D2990164CC6896" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask3" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/jobs/maxCountTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbWF4Q291bnRUYXNrSm9iL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"id\": \"testTask3\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true\r\n}", + "RequestHeaders": { "Content-Type": [ "application/json; odata=minimalmetadata" ], + "Content-Length": [ + "84" + ], + "client-request-id": [ + "e25d7d52-e3aa-4997-a766-1c96c3e48a6f" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07: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": [ - "Thu, 09 Jul 2015 20:30:38 GMT" + "Thu, 30 Jul 2015 17:07:47 GMT" ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "65b31e3d-1929-4de4-adc8-345d58f6ca7d" + "6f3e7bb1-2f62-4bce-b3aa-26774bf9866f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "e25d7d52-e3aa-4997-a766-1c96c3e48a6f" + ], "DataServiceVersion": [ "3.0" ], + "DataServiceId": [ + "https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask3" + ], "Date": [ - "Thu, 09 Jul 2015 20:30:41 GMT" + "Thu, 30 Jul 2015 17:07:47 GMT" ], "ETag": [ - "0x8D2889D404D19EB" + "0x8D2990164CC6896" + ], + "Location": [ + "https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask3" ], "Server": [ "Microsoft-HTTPAPI/2.0" ] }, - "StatusCode": 200 + "StatusCode": 201 }, { - "RequestUri": "/workitems/maxCountTaskWI?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9tYXhDb3VudFRhc2tXST9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "DELETE", + "RequestUri": "/jobs/maxCountTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbWF4Q291bnRUYXNrSm9iL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], "client-request-id": [ - "36ddfe56-c02f-40cf-943f-908b0aaf52a3" + "bde5b1a6-978a-4950-8ff3-d85d9c3c9d12" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:49 GMT" ], "return-client-request-id": [ - "False" + "true" ], - "ocp-date": [ - "Thu, 09 Jul 2015 20:30:41 GMT" + "User-Agent": [ + "Microsoft.Azure.Batch.Protocol.BatchRestClient/2.0.1.0", + "AzBatch/2.0.1.0" ] }, - "ResponseBody": "", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.eastus.batch.azure.com/$metadata#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask1\",\r\n \"eTag\": \"0x8D299016492BCDF\",\r\n \"creationTime\": \"2015-07-30T17:07:47.4016479Z\",\r\n \"lastModified\": \"2015-07-30T17:07:47.4016479Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:07:47.4016479Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"testTask2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask2\",\r\n \"eTag\": \"0x8D2990164ADD176\",\r\n \"creationTime\": \"2015-07-30T17:07:47.5791222Z\",\r\n \"lastModified\": \"2015-07-30T17:07:47.5791222Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:07:47.5791222Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"testTask3\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask3\",\r\n \"eTag\": \"0x8D2990164CC6896\",\r\n \"creationTime\": \"2015-07-30T17:07:47.779599Z\",\r\n \"lastModified\": \"2015-07-30T17:07:47.779599Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:07:47.779599Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], "Transfer-Encoding": [ "chunked" ], "request-id": [ - "db6e4f9f-25cd-4df7-97e0-7dcb32c7cb44" + "0bce3d92-3a17-457b-a093-1e8bdfd840e6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "client-request-id": [ + "bde5b1a6-978a-4950-8ff3-d85d9c3c9d12" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:49 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/maxCountTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbWF4Q291bnRUYXNrSm9iL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9e36d407-7d8e-48bf-b62b-c3f8c6398b54" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:49 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask1\",\r\n \"eTag\": \"0x8D299016492BCDF\",\r\n \"creationTime\": \"2015-07-30T17:07:47.4016479Z\",\r\n \"lastModified\": \"2015-07-30T17:07:47.4016479Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:07:47.4016479Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"testTask2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask2\",\r\n \"eTag\": \"0x8D2990164ADD176\",\r\n \"creationTime\": \"2015-07-30T17:07:47.5791222Z\",\r\n \"lastModified\": \"2015-07-30T17:07:47.5791222Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:07:47.5791222Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"testTask3\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask3\",\r\n \"eTag\": \"0x8D2990164CC6896\",\r\n \"creationTime\": \"2015-07-30T17:07:47.779599Z\",\r\n \"lastModified\": \"2015-07-30T17:07:47.779599Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:07:47.779599Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "a43df2c2-d9c8-4727-8101-6ca1771d8e97" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9e36d407-7d8e-48bf-b62b-c3f8c6398b54" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:49 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/maxCountTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbWF4Q291bnRUYXNrSm9iL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9e36d407-7d8e-48bf-b62b-c3f8c6398b54" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:49 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask1\",\r\n \"eTag\": \"0x8D299016492BCDF\",\r\n \"creationTime\": \"2015-07-30T17:07:47.4016479Z\",\r\n \"lastModified\": \"2015-07-30T17:07:47.4016479Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:07:47.4016479Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"testTask2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask2\",\r\n \"eTag\": \"0x8D2990164ADD176\",\r\n \"creationTime\": \"2015-07-30T17:07:47.5791222Z\",\r\n \"lastModified\": \"2015-07-30T17:07:47.5791222Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:07:47.5791222Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"testTask3\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask3\",\r\n \"eTag\": \"0x8D2990164CC6896\",\r\n \"creationTime\": \"2015-07-30T17:07:47.779599Z\",\r\n \"lastModified\": \"2015-07-30T17:07:47.779599Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:07:47.779599Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "a43df2c2-d9c8-4727-8101-6ca1771d8e97" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9e36d407-7d8e-48bf-b62b-c3f8c6398b54" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:49 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/maxCountTaskJob/tasks?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbWF4Q291bnRUYXNrSm9iL3Rhc2tzP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "9e36d407-7d8e-48bf-b62b-c3f8c6398b54" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:49 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#tasks\",\r\n \"value\": [\r\n {\r\n \"id\": \"testTask1\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask1\",\r\n \"eTag\": \"0x8D299016492BCDF\",\r\n \"creationTime\": \"2015-07-30T17:07:47.4016479Z\",\r\n \"lastModified\": \"2015-07-30T17:07:47.4016479Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:07:47.4016479Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"testTask2\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask2\",\r\n \"eTag\": \"0x8D2990164ADD176\",\r\n \"creationTime\": \"2015-07-30T17:07:47.5791222Z\",\r\n \"lastModified\": \"2015-07-30T17:07:47.5791222Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:07:47.5791222Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n },\r\n {\r\n \"id\": \"testTask3\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob/tasks/testTask3\",\r\n \"eTag\": \"0x8D2990164CC6896\",\r\n \"creationTime\": \"2015-07-30T17:07:47.779599Z\",\r\n \"lastModified\": \"2015-07-30T17:07:47.779599Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:07:47.779599Z\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": true,\r\n \"constraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 0\r\n },\r\n \"executionInfo\": {\r\n \"retryCount\": 0,\r\n \"requeueCount\": 0\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "a43df2c2-d9c8-4727-8101-6ca1771d8e97" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "9e36d407-7d8e-48bf-b62b-c3f8c6398b54" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:49 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/maxCountTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbWF4Q291bnRUYXNrSm9iP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6bbe15c7-11aa-4c1f-8683-0db090812e62" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:49 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\": \"maxCountTaskJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob\",\r\n \"eTag\": \"0x8D2990165008744\",\r\n \"lastModified\": \"2015-07-30T17:07:48.1211716Z\",\r\n \"creationTime\": \"2015-07-30T17:07:48.1024507Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:07:48.1211716Z\",\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-07-30T17:07:48.1211716Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:07:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "68268c49-c7d3-449c-a3f6-e362d9c0c3be" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6bbe15c7-11aa-4c1f-8683-0db090812e62" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:49 GMT" + ], + "ETag": [ + "0x8D2990165008744" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/maxCountTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbWF4Q291bnRUYXNrSm9iP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "6bbe15c7-11aa-4c1f-8683-0db090812e62" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:49 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\": \"maxCountTaskJob\",\r\n \"url\": \"https://pstests.eastus.batch.azure.com/jobs/maxCountTaskJob\",\r\n \"eTag\": \"0x8D2990165008744\",\r\n \"lastModified\": \"2015-07-30T17:07:48.1211716Z\",\r\n \"creationTime\": \"2015-07-30T17:07:48.1024507Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-30T17:07:48.1211716Z\",\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-07-30T17:07:48.1211716Z\",\r\n \"poolId\": \"testPool\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata" + ], + "Last-Modified": [ + "Thu, 30 Jul 2015 17:07:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "request-id": [ + "68268c49-c7d3-449c-a3f6-e362d9c0c3be" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "6bbe15c7-11aa-4c1f-8683-0db090812e62" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:49 GMT" + ], + "ETag": [ + "0x8D2990165008744" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/jobs/maxCountTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbWF4Q291bnRUYXNrSm9iP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3c955c0b-3b14-4ebb-a33c-a6da3ca18990" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:49 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": [ + "497a8f33-1cef-49e3-8c4b-f0ce389abad0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3c955c0b-3b14-4ebb-a33c-a6da3ca18990" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/maxCountTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbWF4Q291bnRUYXNrSm9iP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3c955c0b-3b14-4ebb-a33c-a6da3ca18990" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:49 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": [ + "497a8f33-1cef-49e3-8c4b-f0ce389abad0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3c955c0b-3b14-4ebb-a33c-a6da3ca18990" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/maxCountTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbWF4Q291bnRUYXNrSm9iP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3c955c0b-3b14-4ebb-a33c-a6da3ca18990" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:49 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": [ + "497a8f33-1cef-49e3-8c4b-f0ce389abad0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3c955c0b-3b14-4ebb-a33c-a6da3ca18990" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/maxCountTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbWF4Q291bnRUYXNrSm9iP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3c955c0b-3b14-4ebb-a33c-a6da3ca18990" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:49 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": [ + "497a8f33-1cef-49e3-8c4b-f0ce389abad0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3c955c0b-3b14-4ebb-a33c-a6da3ca18990" + ], + "DataServiceVersion": [ + "3.0" + ], + "Date": [ + "Thu, 30 Jul 2015 17:07:48 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/jobs/maxCountTaskJob?api-version=2015-06-01.2.0&timeout=30", + "EncodedRequestUri": "L2pvYnMvbWF4Q291bnRUYXNrSm9iP2FwaS12ZXJzaW9uPTIwMTUtMDYtMDEuMi4wJnRpbWVvdXQ9MzA=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "client-request-id": [ + "3c955c0b-3b14-4ebb-a33c-a6da3ca18990" + ], + "ocp-date": [ + "Thu, 30 Jul 2015 17:07:49 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": [ + "497a8f33-1cef-49e3-8c4b-f0ce389abad0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "client-request-id": [ + "3c955c0b-3b14-4ebb-a33c-a6da3ca18990" + ], "DataServiceVersion": [ "3.0" ], "Date": [ - "Thu, 09 Jul 2015 20:30:41 GMT" + "Thu, 30 Jul 2015 17:07:48 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMTests/TestGetVMByName.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMTests/TestGetVMByName.json deleted file mode 100644 index e7460e406cd4..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMTests/TestGetVMByName.json +++ /dev/null @@ -1,311 +0,0 @@ -{ - "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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14951" - ], - "x-ms-request-id": [ - "37ebaa47-114e-4f88-9aa2-491f1068f5de" - ], - "x-ms-correlation-request-id": [ - "37ebaa47-114e-4f88-9aa2-491f1068f5de" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T190819Z:37ebaa47-114e-4f88-9aa2-491f1068f5de" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:08:19 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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:08:20 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "2edd5d36-b5ff-467e-bf91-631e5fb84de6" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14959" - ], - "x-ms-request-id": [ - "350511a5-336f-40df-8bfd-5f176a7d1f0a" - ], - "x-ms-correlation-request-id": [ - "350511a5-336f-40df-8bfd-5f176a7d1f0a" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T190820Z:350511a5-336f-40df-8bfd-5f176a7d1f0a" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:08:20 GMT" - ], - "ETag": [ - "0x8D28891C15000DE" - ], - "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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "4332177e-52d2-4abb-b788-102aa73ff1a6" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1183" - ], - "x-ms-request-id": [ - "4fdf3936-f0da-4a93-83c7-0d845b830394" - ], - "x-ms-correlation-request-id": [ - "4fdf3936-f0da-4a93-83c7-0d845b830394" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T190820Z:4fdf3936-f0da-4a93-83c7-0d845b830394" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:08:20 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXM/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "d5be800b-24db-4234-b09b-bbf0977bd792" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:08:20 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tvms\",\r\n \"value\": [\r\n {\r\n \"name\": \"tvm-4155946844_1-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"state\": \"starting\",\r\n \"stateTransitionTime\": \"2015-07-09T19:05:21.2458155Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.28.116\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 0\r\n },\r\n {\r\n \"name\": \"tvm-4155946844_2-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_2-20150709t190321z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-09T19:08:05.7418843Z\",\r\n \"lastBootTime\": \"2015-07-09T19:08:05.6548918Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.16.79\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-09T19:08:05.773026Z\",\r\n \"endTime\": \"2015-07-09T19:08:06.6520273Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n },\r\n {\r\n \"name\": \"tvm-4155946844_3-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_3-20150709t190321z\",\r\n \"state\": \"idle\",\r\n \"stateTransitionTime\": \"2015-07-09T19:08:05.6824444Z\",\r\n \"lastBootTime\": \"2015-07-09T19:08:05.603148Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.12.86\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 0,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"startTaskInfo\": {\r\n \"state\": \"completed\",\r\n \"startTime\": \"2015-07-09T19:08:05.7094503Z\",\r\n \"endTime\": \"2015-07-09T19:08:06.6014509Z\",\r\n \"exitCode\": 0,\r\n \"retryCount\": 0\r\n }\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "74dad808-e5e3-4808-bff1-07e84061c6b9" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:08:20 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6P2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "c00bd743-93e0-4aa2-9b9f-edbf2da5494e" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:08:20 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tvms/@Element\",\r\n \"name\": \"tvm-4155946844_1-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"state\": \"starting\",\r\n \"stateTransitionTime\": \"2015-07-09T19:05:21.2458155Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.28.116\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 0\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "8608dfaa-764a-4cca-be0a-7bdab55510fc" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:08:21 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6P2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "4725604f-4244-4bcc-8df6-c0e45a80c1c9" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:08:21 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tvms/@Element\",\r\n \"name\": \"tvm-4155946844_1-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"state\": \"starting\",\r\n \"stateTransitionTime\": \"2015-07-09T19:05:21.2458155Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.28.116\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 0\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "8ecc8735-dffb-4cd1-ace5-1b4a0a1e8ad4" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:08:21 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" - } -} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMTests/TestListVMPipeline.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMTests/TestListVMPipeline.json deleted file mode 100644 index 1ace6daeadb3..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMTests/TestListVMPipeline.json +++ /dev/null @@ -1,491 +0,0 @@ -{ - "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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14954" - ], - "x-ms-request-id": [ - "a106087c-b1ec-4530-b6af-0c052e3fd143" - ], - "x-ms-correlation-request-id": [ - "a106087c-b1ec-4530-b6af-0c052e3fd143" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T190729Z:a106087c-b1ec-4530-b6af-0c052e3fd143" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:07:28 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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14953" - ], - "x-ms-request-id": [ - "293a7fd2-0f70-4d62-8c27-2ba515e64d17" - ], - "x-ms-correlation-request-id": [ - "293a7fd2-0f70-4d62-8c27-2ba515e64d17" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T190733Z:293a7fd2-0f70-4d62-8c27-2ba515e64d17" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:07:32 GMT" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-version": [ - "2015-07-01" - ], - "User-Agent": [ - "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:07:30 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "0ff03895-8f2d-4b46-878c-5bb89277249c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14962" - ], - "x-ms-request-id": [ - "3e35ef54-65f9-4204-a8c9-18599316680c" - ], - "x-ms-correlation-request-id": [ - "3e35ef54-65f9-4204-a8c9-18599316680c" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T190730Z:3e35ef54-65f9-4204-a8c9-18599316680c" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:07:30 GMT" - ], - "ETag": [ - "0x8D28891A380988E" - ], - "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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:07:33 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "9bf0cf37-c0c6-4d56-8838-51b373d10166" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14961" - ], - "x-ms-request-id": [ - "d525eb99-e8d2-4b4f-adc0-ec3384306759" - ], - "x-ms-correlation-request-id": [ - "d525eb99-e8d2-4b4f-adc0-ec3384306759" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T190733Z:d525eb99-e8d2-4b4f-adc0-ec3384306759" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:07:32 GMT" - ], - "ETag": [ - "0x8D28891A50F8DB7" - ], - "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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "3841bd00-bce1-4021-adfb-81c12e9ef677" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1186" - ], - "x-ms-request-id": [ - "eb060db8-de4b-4d03-8638-53a9bb76ef54" - ], - "x-ms-correlation-request-id": [ - "eb060db8-de4b-4d03-8638-53a9bb76ef54" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T190730Z:eb060db8-de4b-4d03-8638-53a9bb76ef54" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:07:30 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests/listKeys?api-version=2015-07-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-version": [ - "2015-07-01" - ], - "User-Agent": [ - "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"accountName\": \"pstests\",\r\n \"primary\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "e1fda8a4-e7cf-4b23-bd35-73cdd46c9767" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1185" - ], - "x-ms-request-id": [ - "7eac1d07-baee-47e8-97ad-cbd22d763461" - ], - "x-ms-correlation-request-id": [ - "7eac1d07-baee-47e8-97ad-cbd22d763461" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T190733Z:7eac1d07-baee-47e8-97ad-cbd22d763461" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:07:33 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "cf37fb7b-dd22-4721-bc45-39f2bf684bd7" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:07:31 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D28890DD2FCEE8\",\r\n \"lastModified\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T19:03:22.4082136Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:01:58 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "ac314e79-c95d-442f-bdbc-d0656ff1fd58" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:07:31 GMT" - ], - "ETag": [ - "0x8D28890DD2FCEE8" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "7c86d485-aa55-427d-8ba8-3c38d25d36b9" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:07:33 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D28890DD2FCEE8\",\r\n \"lastModified\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T19:03:22.4082136Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:01:58 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "56986e1a-0e85-4000-9a18-b180c499bb37" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:07:32 GMT" - ], - "ETag": [ - "0x8D28890DD2FCEE8" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXM/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "0f245589-8cb1-4aa0-a1fb-7877b136b772" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:07:33 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tvms\",\r\n \"value\": [\r\n {\r\n \"name\": \"tvm-4155946844_1-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"state\": \"starting\",\r\n \"stateTransitionTime\": \"2015-07-09T19:05:21.2458155Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.28.116\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 0\r\n },\r\n {\r\n \"name\": \"tvm-4155946844_2-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_2-20150709t190321z\",\r\n \"state\": \"starting\",\r\n \"stateTransitionTime\": \"2015-07-09T19:04:51.2463856Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.16.79\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 0\r\n },\r\n {\r\n \"name\": \"tvm-4155946844_3-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_3-20150709t190321z\",\r\n \"state\": \"starting\",\r\n \"stateTransitionTime\": \"2015-07-09T19:04:51.299389Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.12.86\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 0\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "21f8f86c-159e-4ce3-b83a-cceaad6521f0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:07:34 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" - } -} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMTests/TestListVMsWithMaxCount.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMTests/TestListVMsWithMaxCount.json deleted file mode 100644 index 40ddbfe4f7c0..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMTests/TestListVMsWithMaxCount.json +++ /dev/null @@ -1,317 +0,0 @@ -{ - "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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14952" - ], - "x-ms-request-id": [ - "b1cf458a-6d2a-4b62-b665-bbabc096bdfc" - ], - "x-ms-correlation-request-id": [ - "b1cf458a-6d2a-4b62-b665-bbabc096bdfc" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T190754Z:b1cf458a-6d2a-4b62-b665-bbabc096bdfc" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:07:54 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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:07:55 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "62f33c15-25d7-454b-bcfa-5a96da77c33f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14960" - ], - "x-ms-request-id": [ - "786a6e4b-abe1-49bc-b28a-1ea7bca9ef81" - ], - "x-ms-correlation-request-id": [ - "786a6e4b-abe1-49bc-b28a-1ea7bca9ef81" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T190754Z:786a6e4b-abe1-49bc-b28a-1ea7bca9ef81" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:07:54 GMT" - ], - "ETag": [ - "0x8D28891B20D255A" - ], - "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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "dfb717f9-052b-4fd8-a338-6dec4f60cbbc" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1184" - ], - "x-ms-request-id": [ - "ca8bd2b4-3423-43a1-931b-3a98f72bd631" - ], - "x-ms-correlation-request-id": [ - "ca8bd2b4-3423-43a1-931b-3a98f72bd631" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T190755Z:ca8bd2b4-3423-43a1-931b-3a98f72bd631" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:07:54 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXM/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "b1a34319-302f-4dfd-b9e2-a133ce0b5904" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:07:54 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tvms\",\r\n \"value\": [\r\n {\r\n \"name\": \"tvm-4155946844_1-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"state\": \"starting\",\r\n \"stateTransitionTime\": \"2015-07-09T19:05:21.2458155Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.28.116\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 0\r\n },\r\n {\r\n \"name\": \"tvm-4155946844_2-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_2-20150709t190321z\",\r\n \"state\": \"starting\",\r\n \"stateTransitionTime\": \"2015-07-09T19:04:51.2463856Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.16.79\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 0\r\n },\r\n {\r\n \"name\": \"tvm-4155946844_3-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_3-20150709t190321z\",\r\n \"state\": \"starting\",\r\n \"stateTransitionTime\": \"2015-07-09T19:04:51.299389Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.12.86\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 0\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "2e120e66-7dfd-4f2e-b67a-200b834d07bb" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:07:54 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXM/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "328ad2c5-7e1a-4331-a970-8bb95ed82ec3" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:07:55 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#tvms\",\r\n \"value\": [\r\n {\r\n \"name\": \"tvm-4155946844_1-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z\",\r\n \"state\": \"starting\",\r\n \"stateTransitionTime\": \"2015-07-09T19:05:21.2458155Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.28.116\",\r\n \"affinityId\": \"TVM:tvm-4155946844_1-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 0\r\n },\r\n {\r\n \"name\": \"tvm-4155946844_2-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_2-20150709t190321z\",\r\n \"state\": \"starting\",\r\n \"stateTransitionTime\": \"2015-07-09T19:04:51.2463856Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.16.79\",\r\n \"affinityId\": \"TVM:tvm-4155946844_2-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 0\r\n },\r\n {\r\n \"name\": \"tvm-4155946844_3-20150709t190321z\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_3-20150709t190321z\",\r\n \"state\": \"starting\",\r\n \"stateTransitionTime\": \"2015-07-09T19:04:51.299389Z\",\r\n \"tvmAllocationTime\": \"2015-07-09T19:03:21.1746171Z\",\r\n \"ipAddress\": \"10.76.12.86\",\r\n \"affinityId\": \"TVM:tvm-4155946844_3-20150709t190321z\",\r\n \"tvmSize\": \"small\",\r\n \"totalTasksRun\": 0\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "9c45ec26-b7f9-435c-8a76-3c0c24a91d90" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:07:56 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "c57fdb9a-ca29-4cc6-a015-602633b2216f" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:07:55 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#pools/@Element\",\r\n \"name\": \"testPool\",\r\n \"url\": \"https://pstests.batch.core.windows.net/pools/testPool\",\r\n \"eTag\": \"0x8D28890DD2FCEE8\",\r\n \"lastModified\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"creationTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:01:58.0227304Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2015-07-09T19:03:22.4082136Z\",\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"currentOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"resizeTimeout\": \"PT5M\",\r\n \"currentDedicated\": 3,\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c echo hello\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:01:58 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "f486b117-f6f9-4791-90ff-2ab374f11163" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:07:54 GMT" - ], - "ETag": [ - "0x8D28890DD2FCEE8" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" - } -} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMUserTests/TestCreateUser.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMUserTests/TestCreateUser.json deleted file mode 100644 index 2639bea7b030..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMUserTests/TestCreateUser.json +++ /dev/null @@ -1,491 +0,0 @@ -{ - "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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14942" - ], - "x-ms-request-id": [ - "83528e31-a25c-4788-8ae5-dc54985efcf0" - ], - "x-ms-correlation-request-id": [ - "83528e31-a25c-4788-8ae5-dc54985efcf0" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191256Z:83528e31-a25c-4788-8ae5-dc54985efcf0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:12:56 GMT" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resources?$filter=resourceType%20eq%20'Microsoft.Batch%2FbatchAccounts'&api-version=2014-04-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYXRjaCUyRmJhdGNoQWNjb3VudHMnJmFwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"name\": \"pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\",\r\n \"location\": \"eastus\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14941" - ], - "x-ms-request-id": [ - "a7c638ff-068b-45dc-a4ad-02befdc0b92f" - ], - "x-ms-correlation-request-id": [ - "a7c638ff-068b-45dc-a4ad-02befdc0b92f" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191259Z:a7c638ff-068b-45dc-a4ad-02befdc0b92f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:12:59 GMT" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests?api-version=2015-07-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjM2OGVkMzgtMzU3MC00ODFmLWI0ZmEtMWQwYTZlOGQzZjNiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHQtYXp1cmViYXRjaC1lYXN0dXMvcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL3BzdGVzdHM/YXBpLXZlcnNpb249MjAxNS0wNy0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-version": [ - "2015-07-01" - ], - "User-Agent": [ - "Microsoft.Azure.Management.Batch.BatchManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"pstests\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"accountEndpoint\": \"pstests.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:12:58 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "043ed543-4758-4a7a-b20a-5aa16c9ad629" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14984" - ], - "x-ms-request-id": [ - "ca419151-4f3e-451b-8952-b9dfc78d35a8" - ], - "x-ms-correlation-request-id": [ - "ca419151-4f3e-451b-8952-b9dfc78d35a8" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191257Z:ca419151-4f3e-451b-8952-b9dfc78d35a8" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:12:56 GMT" - ], - "ETag": [ - "0x8D288926693216B" - ], - "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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:12:59 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "6bf50b9c-611b-4a49-ad5d-e6c59d65d67f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14983" - ], - "x-ms-request-id": [ - "39921995-8cfd-47a2-89df-e87840d398c1" - ], - "x-ms-correlation-request-id": [ - "39921995-8cfd-47a2-89df-e87840d398c1" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191259Z:39921995-8cfd-47a2-89df-e87840d398c1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:12:58 GMT" - ], - "ETag": [ - "0x8D2889267BB7501" - ], - "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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "eaff5378-586b-4db9-9cae-e67af36b457e" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" - ], - "x-ms-request-id": [ - "9abb4380-6add-4320-abc5-afcbcc97c0bf" - ], - "x-ms-correlation-request-id": [ - "9abb4380-6add-4320-abc5-afcbcc97c0bf" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191258Z:9abb4380-6add-4320-abc5-afcbcc97c0bf" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:12:57 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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "663616d1-af7a-4f1f-ae9f-ffc90fb60827" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" - ], - "x-ms-request-id": [ - "5f53135c-1f1d-4b4b-8d99-565fa3f142a1" - ], - "x-ms-correlation-request-id": [ - "5f53135c-1f1d-4b4b-8d99-565fa3f142a1" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191259Z:5f53135c-1f1d-4b4b-8d99-565fa3f142a1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:12:59 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/users?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L3VzZXJzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#users/@Element\",\r\n \"name\": \"testCreateUser\",\r\n \"isAdmin\": false,\r\n \"password\": \"Password1234!\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "149" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "7ba22d11-4475-4eee-9176-175156c8cf24" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:12:57 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "4abef40e-1ad4-4a79-95f1-72f3f3f9e9c0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/users/testCreateUser" - ], - "Date": [ - "Thu, 09 Jul 2015 19:12:59 GMT" - ], - "Location": [ - "https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/users/testCreateUser" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/users?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L3VzZXJzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#users/@Element\",\r\n \"name\": \"testCreateUser\",\r\n \"isAdmin\": false,\r\n \"password\": \"Password1234!\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "149" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "8eb8bf84-4867-4a0c-909e-577a836d7822" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:12:58 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\",\r\n \"code\": \"TVMUserExists\",\r\n \"message\": {\r\n \"lang\": \"en-US\",\r\n \"value\": \"The specified TVM user already exists.\\nRequestId:20530430-7c5c-43b9-a775-963acfe15619\\nTime:2015-07-09T19:12:59.7706581Z\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "333" - ], - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "request-id": [ - "20530430-7c5c-43b9-a775-963acfe15619" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:12:59 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 409 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/users/testCreateUser?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L3VzZXJzL3Rlc3RDcmVhdGVVc2VyP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "cc050c73-f9b6-4c35-95c4-d8fa65da442e" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:12:59 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "8e790db7-cc8a-42a1-a07e-edfe740da515" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:12:59 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" - } -} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMUserTests/TestDeleteUser.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMUserTests/TestDeleteUser.json deleted file mode 100644 index bfc5fbfaa53b..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMUserTests/TestDeleteUser.json +++ /dev/null @@ -1,440 +0,0 @@ -{ - "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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14982" - ], - "x-ms-request-id": [ - "de1fe9c8-f14b-44a3-8d8c-882d31c49054" - ], - "x-ms-correlation-request-id": [ - "de1fe9c8-f14b-44a3-8d8c-882d31c49054" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191319Z:de1fe9c8-f14b-44a3-8d8c-882d31c49054" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:13:18 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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14981" - ], - "x-ms-request-id": [ - "6df812cb-a393-4b6b-b76c-e0c8c4e5e970" - ], - "x-ms-correlation-request-id": [ - "6df812cb-a393-4b6b-b76c-e0c8c4e5e970" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191321Z:6df812cb-a393-4b6b-b76c-e0c8c4e5e970" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:13:21 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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:13:20 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "dbab0f8e-9df7-4214-abbf-2212d9e138c5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14945" - ], - "x-ms-request-id": [ - "64250a4d-e318-40f3-91b6-5a4acea9d14d" - ], - "x-ms-correlation-request-id": [ - "64250a4d-e318-40f3-91b6-5a4acea9d14d" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191320Z:64250a4d-e318-40f3-91b6-5a4acea9d14d" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:13:19 GMT" - ], - "ETag": [ - "0x8D2889273C645D7" - ], - "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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:13:21 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "d355e46a-8f25-4f48-9477-8c6a6c7503e5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14944" - ], - "x-ms-request-id": [ - "9569ca94-d142-447c-97a7-d337f3815708" - ], - "x-ms-correlation-request-id": [ - "9569ca94-d142-447c-97a7-d337f3815708" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191321Z:9569ca94-d142-447c-97a7-d337f3815708" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:13:20 GMT" - ], - "ETag": [ - "0x8D288927497083A" - ], - "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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "c3daada0-46b6-402c-8d31-f5f311d5274f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1190" - ], - "x-ms-request-id": [ - "360ad7ca-c9c8-4e64-a404-b9edf58489d9" - ], - "x-ms-correlation-request-id": [ - "360ad7ca-c9c8-4e64-a404-b9edf58489d9" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191320Z:360ad7ca-c9c8-4e64-a404-b9edf58489d9" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:13:19 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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "10a9d81d-b27e-480d-b7fe-0b9a3baedd86" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1189" - ], - "x-ms-request-id": [ - "95b81fe6-f3f0-4d13-90b8-f73228060f1b" - ], - "x-ms-correlation-request-id": [ - "95b81fe6-f3f0-4d13-90b8-f73228060f1b" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T191322Z:95b81fe6-f3f0-4d13-90b8-f73228060f1b" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:13:21 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/users?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L3VzZXJzP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#users/@Element\",\r\n \"name\": \"testDeleteUser\",\r\n \"isAdmin\": false,\r\n \"password\": \"Password1234!\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "149" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "2f02c8fe-daf0-4b77-9e13-c5ad7b893310" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:13:20 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "5f69b7bc-a083-475d-b932-486b08965cba" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/users/testDeleteUser" - ], - "Date": [ - "Thu, 09 Jul 2015 19:13:20 GMT" - ], - "Location": [ - "https://pstests.batch.core.windows.net/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/users/testDeleteUser" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/pools/testPool/tvms/tvm-4155946844_1-20150709t190321z/users/testDeleteUser?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3Bvb2xzL3Rlc3RQb29sL3R2bXMvdHZtLTQxNTU5NDY4NDRfMS0yMDE1MDcwOXQxOTAzMjF6L3VzZXJzL3Rlc3REZWxldGVVc2VyP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "099bd034-8204-4d1b-8126-00ff790cdf87" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:13:21 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "9b670f90-66f3-4b16-8e49-e47277f86974" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:13:21 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "6368ed38-3570-481f-b4fa-1d0a6e8d3f3b" - } -} \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.WorkItemTests/TestGetWorkItemByName.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.WorkItemTests/TestGetWorkItemByName.json deleted file mode 100644 index 82052cef65ac..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.WorkItemTests/TestGetWorkItemByName.json +++ /dev/null @@ -1,497 +0,0 @@ -{ - "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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14963" - ], - "x-ms-request-id": [ - "ab2b7a27-1d39-4018-a0fb-bcf35e2a15c3" - ], - "x-ms-correlation-request-id": [ - "ab2b7a27-1d39-4018-a0fb-bcf35e2a15c3" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T192401Z:ab2b7a27-1d39-4018-a0fb-bcf35e2a15c3" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:24:00 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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14962" - ], - "x-ms-request-id": [ - "d8ae00ea-55e9-468b-84ff-24cc85a46266" - ], - "x-ms-correlation-request-id": [ - "d8ae00ea-55e9-468b-84ff-24cc85a46266" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T192403Z:d8ae00ea-55e9-468b-84ff-24cc85a46266" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:24:02 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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:24:02 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "d136c656-3198-4e5f-953c-1c3ffda46082" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14964" - ], - "x-ms-request-id": [ - "9edbc6df-66c0-42f3-8acf-8358f291f419" - ], - "x-ms-correlation-request-id": [ - "9edbc6df-66c0-42f3-8acf-8358f291f419" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T192402Z:9edbc6df-66c0-42f3-8acf-8358f291f419" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:24:01 GMT" - ], - "ETag": [ - "0x8D28893F2BE9DAA" - ], - "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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:24:03 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "18260b9a-b4ee-4ee0-bbb7-291876a4d9b9" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14963" - ], - "x-ms-request-id": [ - "6ca5abfe-20c9-489f-814b-c5cb2fdc21c6" - ], - "x-ms-correlation-request-id": [ - "6ca5abfe-20c9-489f-814b-c5cb2fdc21c6" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T192403Z:6ca5abfe-20c9-489f-814b-c5cb2fdc21c6" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:24:02 GMT" - ], - "ETag": [ - "0x8D28893F34B98A3" - ], - "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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "e082be09-d4e5-4a45-b8a6-be18cfda0605" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1180" - ], - "x-ms-request-id": [ - "065caafa-644f-4a88-9123-8a48249869dc" - ], - "x-ms-correlation-request-id": [ - "065caafa-644f-4a88-9123-8a48249869dc" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T192402Z:065caafa-644f-4a88-9123-8a48249869dc" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:24:02 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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "73e346e8-587c-4665-a3c2-f29143d46ea6" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1179" - ], - "x-ms-request-id": [ - "3b6550cf-cf04-4299-a271-539f48617877" - ], - "x-ms-correlation-request-id": [ - "3b6550cf-cf04-4299-a271-539f48617877" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T192403Z:3b6550cf-cf04-4299-a271-539f48617877" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:24:03 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testName\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "164" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "c8f706b4-6c6b-4603-b6c2-49e8fee76024" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:24:02 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Last-Modified": [ - "Thu, 09 Jul 2015 19:24:03 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "96b75d79-e24b-4ce2-8ecb-bfbc3a9b2e47" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testName" - ], - "Date": [ - "Thu, 09 Jul 2015 19:24:02 GMT" - ], - "ETag": [ - "0x8D28893F34B82CB" - ], - "Location": [ - "https://pstests.batch.core.windows.net/workitems/testName" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/workitems/testName?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TmFtZT9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "58ef7c15-c7a3-4201-a024-7ef5b3071cfd" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:24:03 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testName\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testName\",\r\n \"eTag\": \"0x8D28893F34B82CB\",\r\n \"lastModified\": \"2015-07-09T19:24:03.6043467Z\",\r\n \"creationTime\": \"2015-07-09T19:24:03.6043467Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:24:03.6043467Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testName/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:24:03 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "fc2c02d4-518f-4680-b4f9-e894befaae65" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:24:02 GMT" - ], - "ETag": [ - "0x8D28893F34B82CB" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testName?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TmFtZT9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "fea07d52-e5d5-499c-a279-70a0d2a54a12" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:24:04 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "a82627ed-3a14-40d4-9ed6-f896be825345" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:24:04 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/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.WorkItemTests/TestListWorkItemsWithMaxCount.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.WorkItemTests/TestListWorkItemsWithMaxCount.json deleted file mode 100644 index cead71493503..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.WorkItemTests/TestListWorkItemsWithMaxCount.json +++ /dev/null @@ -1,695 +0,0 @@ -{ - "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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14975" - ], - "x-ms-request-id": [ - "b27d0f5c-bb19-44cf-83fb-51e5842baca4" - ], - "x-ms-correlation-request-id": [ - "b27d0f5c-bb19-44cf-83fb-51e5842baca4" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T192237Z:b27d0f5c-bb19-44cf-83fb-51e5842baca4" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:22:37 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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14974" - ], - "x-ms-request-id": [ - "e0f3dbdc-b134-4288-9d30-f0c0218436cc" - ], - "x-ms-correlation-request-id": [ - "e0f3dbdc-b134-4288-9d30-f0c0218436cc" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T192240Z:e0f3dbdc-b134-4288-9d30-f0c0218436cc" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:22:40 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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:22:38 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "e3706c93-bb5f-4149-aa7b-2df8806bed1a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14930" - ], - "x-ms-request-id": [ - "33f4407e-a07e-4761-b0c3-6c79a2d7304b" - ], - "x-ms-correlation-request-id": [ - "33f4407e-a07e-4761-b0c3-6c79a2d7304b" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T192238Z:33f4407e-a07e-4761-b0c3-6c79a2d7304b" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:22:37 GMT" - ], - "ETag": [ - "0x8D28893C0ADE5FA" - ], - "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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:22:40 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "61b402f9-8438-4073-a746-d1011388ee31" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14929" - ], - "x-ms-request-id": [ - "752a71f7-9657-4eed-ba91-540be5b9cc30" - ], - "x-ms-correlation-request-id": [ - "752a71f7-9657-4eed-ba91-540be5b9cc30" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T192240Z:752a71f7-9657-4eed-ba91-540be5b9cc30" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:22:39 GMT" - ], - "ETag": [ - "0x8D28893C1D5C64C" - ], - "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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "0929295c-e864-4be0-931f-9ff50afa939b" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1186" - ], - "x-ms-request-id": [ - "248104e8-f762-4173-8fb3-ac082057d02a" - ], - "x-ms-correlation-request-id": [ - "248104e8-f762-4173-8fb3-ac082057d02a" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T192238Z:248104e8-f762-4173-8fb3-ac082057d02a" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:22:37 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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "d0b0180a-ef20-4b97-9ef0-1f566b71dab3" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1185" - ], - "x-ms-request-id": [ - "df4ae73d-5c57-4ca7-8c7c-294b60e8c216" - ], - "x-ms-correlation-request-id": [ - "df4ae73d-5c57-4ca7-8c7c-294b60e8c216" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T192240Z:df4ae73d-5c57-4ca7-8c7c-294b60e8c216" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:22:39 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testName1\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "165" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "18109fd5-5a0f-4472-80db-7a6ae67d7b97" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:22:38 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Last-Modified": [ - "Thu, 09 Jul 2015 19:22:39 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "28b38f30-c765-4cde-9a79-dc2541716708" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testName1" - ], - "Date": [ - "Thu, 09 Jul 2015 19:22:38 GMT" - ], - "ETag": [ - "0x8D28893C10F4674" - ], - "Location": [ - "https://pstests.batch.core.windows.net/workitems/testName1" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"testName2\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "165" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "063bcaec-fec9-476b-a61f-4c42bbc9af0e" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:22:38 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Last-Modified": [ - "Thu, 09 Jul 2015 19:22:39 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "3b825040-8f79-4c95-92e5-55d68432d6f1" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/testName2" - ], - "Date": [ - "Thu, 09 Jul 2015 19:22:39 GMT" - ], - "ETag": [ - "0x8D28893C1539300" - ], - "Location": [ - "https://pstests.batch.core.windows.net/workitems/testName2" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"thirdtestName\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "169" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "0018ab4b-cf95-47a9-bb9a-b0ffd03864e7" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:22:39 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Last-Modified": [ - "Thu, 09 Jul 2015 19:22:40 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "7e4d2883-f55d-4160-b85a-ac86158f293f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/thirdtestName" - ], - "Date": [ - "Thu, 09 Jul 2015 19:22:40 GMT" - ], - "ETag": [ - "0x8D28893C19D21A3" - ], - "Location": [ - "https://pstests.batch.core.windows.net/workitems/thirdtestName" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "6cd8fb94-f10a-4a6a-9adf-ec0eecc05c2b" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:22:40 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems\",\r\n \"value\": [\r\n {\r\n \"name\": \"testName1\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testName1\",\r\n \"eTag\": \"0x8D28893C10F4674\",\r\n \"lastModified\": \"2015-07-09T19:22:39.323506Z\",\r\n \"creationTime\": \"2015-07-09T19:22:39.323506Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:22:39.323506Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testName1/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"testName2\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testName2\",\r\n \"eTag\": \"0x8D28893C1539300\",\r\n \"lastModified\": \"2015-07-09T19:22:39.7711104Z\",\r\n \"creationTime\": \"2015-07-09T19:22:39.7711104Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:22:39.7711104Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/testName2/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"thirdtestName\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/thirdtestName\",\r\n \"eTag\": \"0x8D28893C19D21A3\",\r\n \"lastModified\": \"2015-07-09T19:22:40.2531747Z\",\r\n \"creationTime\": \"2015-07-09T19:22:40.2531747Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:22:40.2531747Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/thirdtestName/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "abbdd8e1-d4d6-4b2a-83b7-4775a78e5894" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:22:41 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/testName1?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TmFtZTE/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "c99e488c-8f2f-475c-ab41-af3dc1b51211" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:22:40 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "4aec3197-5237-4e30-9fa8-4dfb7589663c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:22:41 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/workitems/testName2?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90ZXN0TmFtZTI/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "3a8c8d07-e787-4e19-8ca1-5af6f0b666fe" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:22:41 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "e6fdc79e-3c13-4290-bb74-789334f99792" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:22:40 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/workitems/thirdtestName?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy90aGlyZHRlc3ROYW1lP2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "1aadb4eb-4625-4a92-9dcc-30845274a917" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:22:41 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "3faa55bb-bed3-4afc-adf7-ee4ae29a5f5b" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:22:42 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/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.WorkItemTests/TestNewWorkItem.json b/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.WorkItemTests/TestNewWorkItem.json deleted file mode 100644 index 7320535bbd3f..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.WorkItemTests/TestNewWorkItem.json +++ /dev/null @@ -1,482 +0,0 @@ -{ - "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}", - "ResponseHeaders": { - "Content-Length": [ - "237" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14936" - ], - "x-ms-request-id": [ - "5aa72508-5cb7-4085-a258-511b45051b02" - ], - "x-ms-correlation-request-id": [ - "5aa72508-5cb7-4085-a258-511b45051b02" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T192122Z:5aa72508-5cb7-4085-a258-511b45051b02" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:21:22 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.batch.core.windows.net\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourceGroups/default-azurebatch-eastus/providers/Microsoft.Batch/batchAccounts/pstests\",\r\n \"type\": \"Microsoft.Batch/batchAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "323" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:21:23 GMT" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "cbb4f25d-0560-4c7a-980c-1265af10bef3" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14964" - ], - "x-ms-request-id": [ - "fea9b4f8-891c-45df-b380-c32b2ba02dda" - ], - "x-ms-correlation-request-id": [ - "fea9b4f8-891c-45df-b380-c32b2ba02dda" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T192123Z:fea9b4f8-891c-45df-b380-c32b2ba02dda" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:21:22 GMT" - ], - "ETag": [ - "0x8D2889393964D76" - ], - "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\": \"LvTRVrhrb0mV/DvM55d7NT36RpCLXka/hrZSZQnNKlfV8nxzU0ChDAxrILper4n3AndEtMgyxW404JKkGodXFA==\",\r\n \"secondary\": \"Lc37R3wawurI2u8oLu6pblhfYBW7S6770vbeqnUQJX87kT7R5hEFq2IlEfowvQ+rO3K0frlfFNlyiL/rkaYnFw==\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "229" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "387dc801-f5f5-4b95-8d45-63cfc7fc410b" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1181" - ], - "x-ms-request-id": [ - "2623c11f-c401-4d52-9712-4290c4974bc9" - ], - "x-ms-correlation-request-id": [ - "2623c11f-c401-4d52-9712-4290c4974bc9" - ], - "x-ms-routing-request-id": [ - "WESTUS:20150709T192123Z:2623c11f-c401-4d52-9712-4290c4974bc9" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 09 Jul 2015 19:21:22 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"simple\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "162" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "731130d9-24a3-43aa-b1f7-d61209bd5436" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:21:23 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Last-Modified": [ - "Thu, 09 Jul 2015 19:21:24 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "bdbcc2ea-7369-46ce-ba2f-fd50e56e2770" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/simple" - ], - "Date": [ - "Thu, 09 Jul 2015 19:21:23 GMT" - ], - "ETag": [ - "0x8D2889394330ACC" - ], - "Location": [ - "https://pstests.batch.core.windows.net/workitems/simple" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/workitems?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcz9hcGktdmVyc2lvbj0yMDE0LTEwLTAxLjEuMA==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"odata.metadata\": \"https://batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"complex\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"P1D\"\r\n },\r\n \"jobSpecification\": {\r\n \"jobConstraints\": {\r\n \"maxWallClockTime\": \"P1D\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"jobManager\": {\r\n \"name\": \"jobManager\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"filePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"name1\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"name2\",\r\n \"value\": \"value2\"\r\n }\r\n ],\r\n \"runElevated\": false,\r\n \"killJobOnCompletion\": false\r\n }\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"autoPoolSpecification\": {\r\n \"autoPoolNamePrefix\": \"TestSpecPrefix\",\r\n \"poolLifeTimeOption\": \"workitem\",\r\n \"keepAlive\": false,\r\n \"pool\": {\r\n \"tvmSize\": \"small\",\r\n \"targetDedicated\": 3,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c dir /s\"\r\n },\r\n \"certificateReferences\": [\r\n {\r\n \"thumbprint\": \"0123456789ABCDEF\",\r\n \"thumbprintAlgorithm\": \"sha1\",\r\n \"storeLocation\": \"localmachine\",\r\n \"storeName\": \"certStore\",\r\n \"visibility\": \"starttask\"\r\n }\r\n ],\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\"\r\n }\r\n }\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"meta2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"meta1\",\r\n \"value\": \"value1\"\r\n }\r\n ]\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json;odata=minimalmetadata" - ], - "Content-Length": [ - "1352" - ], - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "6ad0a090-7476-445a-a867-0d87e71a8e5d" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:21:24 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Last-Modified": [ - "Thu, 09 Jul 2015 19:21:25 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "8fff92c5-959d-42f2-8599-6e8b99955a62" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "DataServiceId": [ - "https://pstests.batch.core.windows.net/workitems/complex" - ], - "Date": [ - "Thu, 09 Jul 2015 19:21:24 GMT" - ], - "ETag": [ - "0x8D2889394CDC6F3" - ], - "Location": [ - "https://pstests.batch.core.windows.net/workitems/complex" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/workitems/simple?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9zaW1wbGU/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "a2e8441f-21cf-4c8e-a196-6f3c88f9562a" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:21:23 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"simple\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/simple\",\r\n \"eTag\": \"0x8D2889394330ACC\",\r\n \"lastModified\": \"2015-07-09T19:21:24.0604364Z\",\r\n \"creationTime\": \"2015-07-09T19:21:24.0604364Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:21:24.0604364Z\",\r\n \"jobExecutionEnvironment\": {\r\n \"poolName\": \"testPool\"\r\n },\r\n \"executionInfo\": {\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/simple/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:21:24 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "56efddfc-268f-40b9-8f90-3eba656d84b8" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:21:23 GMT" - ], - "ETag": [ - "0x8D2889394330ACC" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/complex?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9jb21wbGV4P2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "382370a9-2b4c-4cb1-a514-c60fb1149c35" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:21:24 GMT" - ] - }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://pstests.batch.core.windows.net/$metadata#workitems/@Element\",\r\n \"name\": \"complex\",\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/complex\",\r\n \"eTag\": \"0x8D2889394CDC6F3\",\r\n \"lastModified\": \"2015-07-09T19:21:25.0745075Z\",\r\n \"creationTime\": \"2015-07-09T19:21:25.0745075Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2015-07-09T19:21:25.0745075Z\",\r\n \"schedule\": {\r\n \"recurrenceInterval\": \"P1D\"\r\n },\r\n \"jobSpecification\": {\r\n \"priority\": 0,\r\n \"jobConstraints\": {\r\n \"maxWallClockTime\": \"P1D\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"jobManager\": {\r\n \"name\": \"jobManager\",\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"resourceFiles\": [\r\n {\r\n \"blobSource\": \"https://testacct.blob.core.windows.net/\",\r\n \"filePath\": \"filePath\"\r\n }\r\n ],\r\n \"environmentSettings\": [\r\n {\r\n \"name\": \"name1\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"name2\",\r\n \"value\": \"value2\"\r\n }\r\n ],\r\n \"taskConstraints\": {\r\n \"maxWallClockTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"retentionTime\": \"P10675199DT2H48M5.4775807S\",\r\n \"maxTaskRetryCount\": 5\r\n },\r\n \"runElevated\": false,\r\n \"runExclusive\": true,\r\n \"killJobOnCompletion\": false\r\n }\r\n },\r\n \"jobExecutionEnvironment\": {\r\n \"autoPoolSpecification\": {\r\n \"autoPoolNamePrefix\": \"TestSpecPrefix\",\r\n \"poolLifeTimeOption\": \"workitem\",\r\n \"keepAlive\": false,\r\n \"pool\": {\r\n \"osFamily\": \"4\",\r\n \"targetOSVersion\": \"*\",\r\n \"tvmSize\": \"small\",\r\n \"maxTasksPerTVM\": 1,\r\n \"schedulingPolicy\": {\r\n \"tvmFillType\": \"Spread\"\r\n },\r\n \"targetDedicated\": 3,\r\n \"enableAutoScale\": false,\r\n \"communication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"cmd /c dir /s\",\r\n \"runElevated\": false,\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": false\r\n },\r\n \"certificateReferences\": [\r\n {\r\n \"thumbprint\": \"0123456789abcdef\",\r\n \"thumbprintAlgorithm\": \"sha1\",\r\n \"storeLocation\": \"LocalMachine\",\r\n \"storeName\": \"certStore\",\r\n \"visibility\": \"starttask\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n \"executionInfo\": {\r\n \"nextRunTime\": \"2015-07-10T19:21:25.0745075Z\",\r\n \"recentJob\": {\r\n \"url\": \"https://pstests.batch.core.windows.net/workitems/complex/jobs/job-0000000001\",\r\n \"name\": \"job-0000000001\"\r\n }\r\n },\r\n \"metadata\": [\r\n {\r\n \"name\": \"meta2\",\r\n \"value\": \"value2\"\r\n },\r\n {\r\n \"name\": \"meta1\",\r\n \"value\": \"value1\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata" - ], - "Last-Modified": [ - "Thu, 09 Jul 2015 19:21:25 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "9ef71ee0-b596-4dd1-9a53-a44ea804958f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:21:24 GMT" - ], - "ETag": [ - "0x8D2889394CDC6F3" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/workitems/simple?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9zaW1wbGU/YXBpLXZlcnNpb249MjAxNC0xMC0wMS4xLjA=", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "51758e3c-4543-4dbb-a2bd-445306b5e7fb" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:21:25 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "c389e7e7-9840-4376-afb1-3f5fb7d27bc0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:21:25 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/workitems/complex?api-version=2014-10-01.1.0", - "EncodedRequestUri": "L3dvcmtpdGVtcy9jb21wbGV4P2FwaS12ZXJzaW9uPTIwMTQtMTAtMDEuMS4w", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "WA-Batch/1.0" - ], - "client-request-id": [ - "ec3e3fee-1878-407f-a8fa-4e909b866fc3" - ], - "return-client-request-id": [ - "False" - ], - "ocp-date": [ - "Thu, 09 Jul 2015 19:21:25 GMT" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Transfer-Encoding": [ - "chunked" - ], - "request-id": [ - "294f673a-aea6-42f0-8961-198bfe7b26a1" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "DataServiceVersion": [ - "3.0" - ], - "Date": [ - "Thu, 09 Jul 2015 19:21:26 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/Batch/Commands.Batch.Test/Tasks/GetBatchTaskCommandTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/Tasks/GetBatchTaskCommandTests.cs index 124705e073a5..84838ec0cf08 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/Tasks/GetBatchTaskCommandTests.cs +++ b/src/ResourceManager/Batch/Commands.Batch.Test/Tasks/GetBatchTaskCommandTests.cs @@ -12,9 +12,10 @@ // limitations under the License. // ---------------------------------------------------------------------------------- +using System; using Microsoft.Azure.Batch; using Microsoft.Azure.Batch.Protocol; -using Microsoft.Azure.Batch.Protocol.Entities; +using Microsoft.Azure.Batch.Protocol.Models; using Microsoft.Azure.Commands.Batch.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Moq; @@ -44,28 +45,63 @@ public GetBatchTaskCommandTests() }; } + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void GetBatchTaskParametersTest() + { + // Setup cmdlet without required parameters + BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); + cmdlet.BatchContext = context; + cmdlet.JobId = null; + cmdlet.Job = null; + cmdlet.Filter = null; + + // Build a CloudTask instead of querying the service on a List CloudTask call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => + { + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => + { + CloudTaskListResponse response = BatchTestHelpers.CreateCloudTaskListResponse(new string[] {cmdlet.Id}); + Task task = Task.FromResult(response); + return task; + }; + }); + cmdlet.AdditionalBehaviors = new List() { interceptor }; + + Assert.Throws(() => cmdlet.ExecuteCmdlet()); + + cmdlet.JobId = "job-1"; + + // Verify no exceptions occur + cmdlet.ExecuteCmdlet(); + } + [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetBatchTaskTest() { - // Setup cmdlet to get a Task by name + // Setup cmdlet to get a task by id BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); cmdlet.BatchContext = context; - cmdlet.WorkItemName = "workItem"; - cmdlet.JobName = "job-0000000001"; - cmdlet.Name = "task1"; + cmdlet.JobId = "job-1"; + cmdlet.Id = "task1"; cmdlet.Filter = null; - // Build a Task instead of querying the service on a GetJob call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => + // Build a CloudTask instead of querying the service on a Get CloudTask call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => { - if (request is GetTaskRequest) + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => { - GetTaskResponse response = BatchTestHelpers.CreateGetTaskResponse(cmdlet.Name); - Task task = Task.Factory.StartNew(() => { return response; }); + CloudTaskGetResponse response = BatchTestHelpers.CreateCloudTaskGetResponse(cmdlet.Id); + Task task = Task.FromResult(response); return task; - } - return null; + }; }); cmdlet.AdditionalBehaviors = new List() { interceptor }; @@ -75,35 +111,36 @@ public void GetBatchTaskTest() cmdlet.ExecuteCmdlet(); - // Verify that the cmdlet wrote the Task returned from the OM to the pipeline + // Verify that the cmdlet wrote the task returned from the OM to the pipeline Assert.Equal(1, pipeline.Count); - Assert.Equal(cmdlet.Name, pipeline[0].Name); + Assert.Equal(cmdlet.Id, pipeline[0].Id); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void ListBatchTasksByODataFilterTest() { - // Setup cmdlet to list Tasks using an OData filter. Use WorkItemName and JobName input. + // Setup cmdlet to list tasks using an OData filter. BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); cmdlet.BatchContext = context; - cmdlet.WorkItemName = "workItem"; - cmdlet.JobName = "job-0000000001"; - cmdlet.Name = null; - cmdlet.Filter = "startswith(name,'test')"; + cmdlet.JobId = "job-1"; + cmdlet.Id = null; + cmdlet.Filter = "startswith(id,'test')"; - string[] namesOfConstructedTasks = new[] { "testTask1", "testTask2" }; + string[] idsOfConstructedTasks = new[] { "testTask1", "testTask2" }; - // Build some Tasks instead of querying the service on a ListTasks call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => + // Build some CloudTasks instead of querying the service on a List CloudTasks call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => { - if (request is ListTasksRequest) + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => { - ListTasksResponse response = BatchTestHelpers.CreateListTasksResponse(namesOfConstructedTasks); - Task task = Task.Factory.StartNew(() => { return response; }); + CloudTaskListResponse response = BatchTestHelpers.CreateCloudTaskListResponse(idsOfConstructedTasks); + Task task = Task.FromResult(response); return task; - } - return null; + }; }); cmdlet.AdditionalBehaviors = new List() { interceptor }; @@ -115,41 +152,42 @@ public void ListBatchTasksByODataFilterTest() cmdlet.ExecuteCmdlet(); - // Verify that the cmdlet wrote the constructed Tasks to the pipeline + // Verify that the cmdlet wrote the constructed tasks to the pipeline Assert.Equal(2, pipeline.Count); int taskCount = 0; foreach (PSCloudTask t in pipeline) { - Assert.True(namesOfConstructedTasks.Contains(t.Name)); + Assert.True(idsOfConstructedTasks.Contains(t.Id)); taskCount++; } - Assert.Equal(namesOfConstructedTasks.Length, taskCount); + Assert.Equal(idsOfConstructedTasks.Length, taskCount); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void ListBatchTasksWithoutFiltersTest() { - // Setup cmdlet to list Tasks without filters. Use WorkItemName and JobName. A PSCloudJob object is difficult to construct, so save that for the scenario tests. + // Setup cmdlet to list tasks without filters. Use WorkItemName and JobName. BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); cmdlet.BatchContext = context; - cmdlet.WorkItemName = "workItem"; - cmdlet.JobName = "job-0000000001"; - cmdlet.Name = null; + cmdlet.JobId = "job-1"; + cmdlet.Id = null; cmdlet.Filter = null; - string[] namesOfConstructedTasks = new[] { "testTask1", "testTask2", "testTask3" }; + string[] idsOfConstructedTasks = new[] { "testTask1", "testTask2", "testTask3" }; - // Build some Tasks instead of querying the service on a ListTasks call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => + // Build some CloudTasks instead of querying the service on a List CloudTasks call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => { - if (request is ListTasksRequest) + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => { - ListTasksResponse response = BatchTestHelpers.CreateListTasksResponse(namesOfConstructedTasks); - Task task = Task.Factory.StartNew(() => { return response; }); + CloudTaskListResponse response = BatchTestHelpers.CreateCloudTaskListResponse(idsOfConstructedTasks); + Task task = Task.FromResult(response); return task; - } - return null; + }; }); cmdlet.AdditionalBehaviors = new List() { interceptor }; @@ -161,15 +199,15 @@ public void ListBatchTasksWithoutFiltersTest() cmdlet.ExecuteCmdlet(); - // Verify that the cmdlet wrote the constructed Tasks to the pipeline + // Verify that the cmdlet wrote the constructed tasks to the pipeline Assert.Equal(3, pipeline.Count); int taskCount = 0; foreach (PSCloudTask t in pipeline) { - Assert.True(namesOfConstructedTasks.Contains(t.Name)); + Assert.True(idsOfConstructedTasks.Contains(t.Id)); taskCount++; } - Assert.Equal(namesOfConstructedTasks.Length, taskCount); + Assert.Equal(idsOfConstructedTasks.Length, taskCount); } [Fact] @@ -179,28 +217,29 @@ public void ListTasksMaxCountTest() // Verify default max count Assert.Equal(Microsoft.Azure.Commands.Batch.Utils.Constants.DefaultMaxCount, cmdlet.MaxCount); - // Setup cmdlet to list Tasks without filters and a max count + // Setup cmdlet to list tasks without filters and a max count BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); cmdlet.BatchContext = context; - cmdlet.WorkItemName = "workItem"; - cmdlet.JobName = "job-0000000001"; - cmdlet.Name = null; + cmdlet.JobId = "job-1"; + cmdlet.Id = null; cmdlet.Filter = null; int maxCount = 2; cmdlet.MaxCount = maxCount; - string[] namesOfConstructedTasks = new[] { "testTask1", "testTask2", "testTask3" }; + string[] idsOfConstructedTasks = new[] { "testTask1", "testTask2", "testTask3" }; - // Build some Tasks instead of querying the service on a ListTasks call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => + // Build some CloudTasks instead of querying the service on a List CloudTasks call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => { - if (request is ListTasksRequest) + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => { - ListTasksResponse response = BatchTestHelpers.CreateListTasksResponse(namesOfConstructedTasks); - Task task = Task.Factory.StartNew(() => { return response; }); + CloudTaskListResponse response = BatchTestHelpers.CreateCloudTaskListResponse(idsOfConstructedTasks); + Task task = Task.FromResult(response); return task; - } - return null; + }; }); cmdlet.AdditionalBehaviors = new List() { interceptor }; @@ -220,7 +259,7 @@ public void ListTasksMaxCountTest() pipeline.Clear(); cmdlet.ExecuteCmdlet(); - Assert.Equal(namesOfConstructedTasks.Length, pipeline.Count); + Assert.Equal(idsOfConstructedTasks.Length, pipeline.Count); } } } diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Tasks/NewBatchTaskCommandTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/Tasks/NewBatchTaskCommandTests.cs index c457d01339f7..4d70d5795343 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/Tasks/NewBatchTaskCommandTests.cs +++ b/src/ResourceManager/Batch/Commands.Batch.Test/Tasks/NewBatchTaskCommandTests.cs @@ -15,7 +15,7 @@ using System; using Microsoft.Azure.Batch; using Microsoft.Azure.Batch.Protocol; -using Microsoft.Azure.Batch.Protocol.Entities; +using Microsoft.Azure.Batch.Protocol.Models; using Microsoft.Azure.Commands.Batch.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Moq; @@ -54,23 +54,24 @@ public void NewBatchTaskParametersTest() Assert.Throws(() => cmdlet.ExecuteCmdlet()); - cmdlet.WorkItemName = "testWorkItem"; - cmdlet.JobName = "job-0000000001"; + cmdlet.JobId = "job-1"; Assert.Throws(() => cmdlet.ExecuteCmdlet()); - cmdlet.Name = "testTask"; + cmdlet.Id = "testTask"; - // Don't go to the service on an AddWorkItem call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => + // Don't go to the service on an Add CloudTask call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => { - if (request is AddTaskRequest) + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => { - AddTaskResponse response = new AddTaskResponse(); - Task task = Task.Factory.StartNew(() => { return response; }); + CloudTaskAddResponse response = new CloudTaskAddResponse(); + Task task = Task.FromResult(response); return task; - } - return null; + }; }); cmdlet.AdditionalBehaviors = new List() { interceptor }; diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/Tasks/RemoveBatchTaskCommandTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/Tasks/RemoveBatchTaskCommandTests.cs index 348c32e59a96..3506dff46ae9 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/Tasks/RemoveBatchTaskCommandTests.cs +++ b/src/ResourceManager/Batch/Commands.Batch.Test/Tasks/RemoveBatchTaskCommandTests.cs @@ -15,7 +15,7 @@ using System; using Microsoft.Azure.Batch; using Microsoft.Azure.Batch.Protocol; -using Microsoft.Azure.Batch.Protocol.Entities; +using Microsoft.Azure.Batch.Protocol.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Moq; using System.Collections.Generic; @@ -57,20 +57,21 @@ public void RemoveBatchTaskParametersTest() Assert.Throws(() => cmdlet.ExecuteCmdlet()); - cmdlet.WorkItemName = "testWorkItem"; - cmdlet.JobName = "job-0000000001"; - cmdlet.Name = "testTask"; + cmdlet.JobId = "job-1"; + cmdlet.Id = "testTask"; - // Don't go to the service on a DeleteJob call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => + // Don't go to the service on a Delete CloudTask call + RequestInterceptor interceptor = new RequestInterceptor((baseRequest) => { - if (request is DeleteTaskRequest) + BatchRequest request = + (BatchRequest)baseRequest; + + request.ServiceRequestFunc = (cancellationToken) => { - DeleteTaskResponse response = new DeleteTaskResponse(); - Task task = Task.Factory.StartNew(() => { return response; }); + CloudTaskDeleteResponse response = new CloudTaskDeleteResponse(); + Task task = Task.FromResult(response); return task; - } - return null; + }; }); cmdlet.AdditionalBehaviors = new List() { interceptor }; diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/VMs/GetBatchVMCommandTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/VMs/GetBatchVMCommandTests.cs deleted file mode 100644 index 40e2275346c4..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/VMs/GetBatchVMCommandTests.cs +++ /dev/null @@ -1,222 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Batch; -using Microsoft.Azure.Batch.Protocol; -using Microsoft.Azure.Batch.Protocol.Entities; -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.VMs -{ - public class GetBatchVMCommandTests - { - private GetBatchVMCommand cmdlet; - private Mock batchClientMock; - private Mock commandRuntimeMock; - - public GetBatchVMCommandTests() - { - batchClientMock = new Mock(); - commandRuntimeMock = new Mock(); - cmdlet = new GetBatchVMCommand() - { - CommandRuntime = commandRuntimeMock.Object, - BatchClient = batchClientMock.Object, - }; - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void GetBatchVMTest() - { - // Setup cmdlet to get a vm by name - BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); - cmdlet.BatchContext = context; - cmdlet.PoolName = "pool"; - cmdlet.Name = "vm1"; - cmdlet.Filter = null; - - // Build a vm instead of querying the service on a GetTVM call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => - { - if (request is GetTVMRequest) - { - GetTVMResponse response = BatchTestHelpers.CreateGetTVMResponse(cmdlet.Name); - Task task = Task.Factory.StartNew(() => { return response; }); - return task; - } - return null; - }); - cmdlet.AdditionalBehaviors = new List() { interceptor }; - - // Setup the cmdlet to write pipeline output to a list that can be examined later - List pipeline = new List(); - commandRuntimeMock.Setup(r => r.WriteObject(It.IsAny())).Callback(v => pipeline.Add((PSVM)v)); - - cmdlet.ExecuteCmdlet(); - - // Verify that the cmdlet wrote the vm returned from the OM to the pipeline - Assert.Equal(1, pipeline.Count); - Assert.Equal(cmdlet.Name, pipeline[0].Name); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void ListBatchVMsByODataFilterTest() - { - // Setup cmdlet to list vms using an OData filter. - BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); - cmdlet.BatchContext = context; - cmdlet.PoolName = "pool"; - cmdlet.Name = null; - cmdlet.Filter = "state -eq 'idle'"; - - string[] namesOfConstructedVMs = new[] { "vm1", "vm2" }; - - // Build some vms instead of querying the service on a ListTVMs call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => - { - if (request is ListTVMsRequest) - { - ListTVMsResponse response = BatchTestHelpers.CreateListTVMsResponse(namesOfConstructedVMs); - Task task = Task.Factory.StartNew(() => { return response; }); - return task; - } - return null; - }); - cmdlet.AdditionalBehaviors = new List() { interceptor }; - - // Setup the cmdlet to write pipeline output to a list that can be examined later - List pipeline = new List(); - commandRuntimeMock.Setup(r => - r.WriteObject(It.IsAny())) - .Callback(v => pipeline.Add((PSVM)v)); - - cmdlet.ExecuteCmdlet(); - - // Verify that the cmdlet wrote the constructed vms to the pipeline - Assert.Equal(2, pipeline.Count); - int vmCount = 0; - foreach (PSVM v in pipeline) - { - Assert.True(namesOfConstructedVMs.Contains(v.Name)); - vmCount++; - } - Assert.Equal(namesOfConstructedVMs.Length, vmCount); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void ListBatchVMsWithoutFiltersTest() - { - // Setup cmdlet to list vms without filters. - BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); - cmdlet.BatchContext = context; - cmdlet.Pool = BatchTestHelpers.CreatePSCloudPool(); - cmdlet.Name = null; - cmdlet.Filter = null; - - string[] namesOfConstructedVMs = new[] { "vm1", "vm2", "vm3" }; - - // Build some vms instead of querying the service on a ListTVMs call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => - { - if (request is ListTVMsRequest) - { - ListTVMsResponse response = BatchTestHelpers.CreateListTVMsResponse(namesOfConstructedVMs); - Task task = Task.Factory.StartNew(() => { return response; }); - return task; - } - return null; - }); - cmdlet.AdditionalBehaviors = new List() { interceptor }; - - // Setup the cmdlet to write pipeline output to a list that can be examined later - List pipeline = new List(); - commandRuntimeMock.Setup(r => - r.WriteObject(It.IsAny())) - .Callback(v => pipeline.Add((PSVM)v)); - - cmdlet.ExecuteCmdlet(); - - // Verify that the cmdlet wrote the constructed vms to the pipeline - Assert.Equal(3, pipeline.Count); - int vmCount = 0; - foreach (PSVM v in pipeline) - { - Assert.True(namesOfConstructedVMs.Contains(v.Name)); - vmCount++; - } - Assert.Equal(namesOfConstructedVMs.Length, vmCount); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void ListVMsMaxCountTest() - { - // Verify default max count - Assert.Equal(Microsoft.Azure.Commands.Batch.Utils.Constants.DefaultMaxCount, cmdlet.MaxCount); - - // Setup cmdlet to list vms without filters and a max count - BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); - cmdlet.BatchContext = context; - cmdlet.Pool = BatchTestHelpers.CreatePSCloudPool(); - cmdlet.Name = null; - cmdlet.Filter = null; - int maxCount = 2; - cmdlet.MaxCount = maxCount; - - string[] namesOfConstructedVMs = new[] { "vm1", "vm2", "vm3" }; - - // Build some vms instead of querying the service on a ListTVMs call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => - { - if (request is ListTVMsRequest) - { - ListTVMsResponse response = BatchTestHelpers.CreateListTVMsResponse(namesOfConstructedVMs); - Task task = Task.Factory.StartNew(() => { return response; }); - return task; - } - return null; - }); - cmdlet.AdditionalBehaviors = new List() { interceptor }; - - // Setup the cmdlet to write pipeline output to a list that can be examined later - List pipeline = new List(); - commandRuntimeMock.Setup(r => - r.WriteObject(It.IsAny())) - .Callback(v => pipeline.Add((PSVM)v)); - - cmdlet.ExecuteCmdlet(); - - // Verify that the max count was respected - Assert.Equal(maxCount, pipeline.Count); - - // Verify setting max count <= 0 doesn't return nothing - cmdlet.MaxCount = -5; - pipeline.Clear(); - cmdlet.ExecuteCmdlet(); - - Assert.Equal(namesOfConstructedVMs.Length, pipeline.Count); - } - } -} diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/WorkItems/GetBatchWorkItemCommandTests.cs b/src/ResourceManager/Batch/Commands.Batch.Test/WorkItems/GetBatchWorkItemCommandTests.cs deleted file mode 100644 index 9db3543d4547..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch.Test/WorkItems/GetBatchWorkItemCommandTests.cs +++ /dev/null @@ -1,219 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Batch; -using Microsoft.Azure.Batch.Protocol; -using Microsoft.Azure.Batch.Protocol.Entities; -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.WorkItems -{ - public class GetBatchWorkItemCommandTests - { - private GetBatchWorkItemCommand cmdlet; - private Mock batchClientMock; - private Mock commandRuntimeMock; - - public GetBatchWorkItemCommandTests() - { - batchClientMock = new Mock(); - commandRuntimeMock = new Mock(); - cmdlet = new GetBatchWorkItemCommand() - { - CommandRuntime = commandRuntimeMock.Object, - BatchClient = batchClientMock.Object, - }; - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void GetBatchWorkItemTest() - { - // Setup cmdlet to get a WorkItem by name - BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); - cmdlet.BatchContext = context; - cmdlet.Name = "testWorkItem"; - cmdlet.Filter = null; - - // Build a WorkItem instead of querying the service on a GetWorkItem call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => - { - if (request is GetWorkItemRequest) - { - GetWorkItemResponse response = BatchTestHelpers.CreateGetWorkItemResponse(cmdlet.Name); - Task task = Task.Factory.StartNew(() => { return response; }); - return task; - } - return null; - }); - cmdlet.AdditionalBehaviors = new List() { interceptor }; - - // Setup the cmdlet to write pipeline output to a list that can be examined later - List pipeline = new List(); - commandRuntimeMock.Setup(r => r.WriteObject(It.IsAny())).Callback(w => pipeline.Add((PSCloudWorkItem)w)); - - cmdlet.ExecuteCmdlet(); - - // Verify that the cmdlet wrote the WorkItem returned from the OM to the pipeline - Assert.Equal(1, pipeline.Count); - Assert.Equal(cmdlet.Name, pipeline[0].Name); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void ListBatchWorkItemByODataFilterTest() - { - // Setup cmdlet to list WorkItems using an OData filter - BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); - cmdlet.BatchContext = context; - cmdlet.Name = null; - cmdlet.Filter = "startswith(name,'test')"; - - string[] namesOfConstructedWorkItems = new[] {"test1", "test2"}; - - // Build some WorkItems instead of querying the service on a ListWorkItems call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => - { - if (request is ListWorkItemsRequest) - { - ListWorkItemsResponse response = BatchTestHelpers.CreateListWorkItemsResponse(namesOfConstructedWorkItems); - Task task = Task.Factory.StartNew(() => { return response; }); - return task; - } - return null; - }); - cmdlet.AdditionalBehaviors = new List() { interceptor }; - - // Setup the cmdlet to write pipeline output to a list that can be examined later - List pipeline = new List(); - commandRuntimeMock.Setup(r => - r.WriteObject(It.IsAny())) - .Callback(w => pipeline.Add((PSCloudWorkItem)w)); - - cmdlet.ExecuteCmdlet(); - - // Verify that the cmdlet wrote the constructed WorkItems to the pipeline - Assert.Equal(2, pipeline.Count); - int workItemCount = 0; - foreach (PSCloudWorkItem w in pipeline) - { - Assert.True(namesOfConstructedWorkItems.Contains(w.Name)); - workItemCount++; - } - Assert.Equal(namesOfConstructedWorkItems.Length, workItemCount); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void ListBatchWorkItemWithoutFiltersTest() - { - // Setup cmdlet to list WorkItems without filters - BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); - cmdlet.BatchContext = context; - cmdlet.Name = null; - cmdlet.Filter = null; - - string[] namesOfConstructedWorkItems = new[] { "name1", "name2", "name3" }; - - // Build some WorkItems instead of querying the service on a ListWorkItems call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => - { - if (request is ListWorkItemsRequest) - { - ListWorkItemsResponse response = BatchTestHelpers.CreateListWorkItemsResponse(namesOfConstructedWorkItems); - Task task = Task.Factory.StartNew(() => { return response; }); - return task; - } - return null; - }); - cmdlet.AdditionalBehaviors = new List() { interceptor }; - - // Setup the cmdlet to write pipeline output to a list that can be examined later - List pipeline = new List(); - commandRuntimeMock.Setup(r => - r.WriteObject(It.IsAny())) - .Callback(w => pipeline.Add((PSCloudWorkItem)w)); - - cmdlet.ExecuteCmdlet(); - - // Verify that the cmdlet wrote the constructed WorkItems to the pipeline - Assert.Equal(3, pipeline.Count); - int workItemCount = 0; - foreach (PSCloudWorkItem w in pipeline) - { - Assert.True(namesOfConstructedWorkItems.Contains(w.Name)); - workItemCount++; - } - Assert.Equal(namesOfConstructedWorkItems.Length, workItemCount); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void ListWorkItemMaxCountTest() - { - // Verify default max count - Assert.Equal(Microsoft.Azure.Commands.Batch.Utils.Constants.DefaultMaxCount, cmdlet.MaxCount); - - // Setup cmdlet to list WorkItems without filters and a max count - BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys(); - cmdlet.BatchContext = context; - cmdlet.Name = null; - cmdlet.Filter = null; - int maxCount = 2; - cmdlet.MaxCount = maxCount; - - string[] namesOfConstructedWorkItems = new[] { "name1", "name2", "name3" }; - - // Build some WorkItems instead of querying the service on a ListWorkItems call - YieldInjectionInterceptor interceptor = new YieldInjectionInterceptor((opContext, request) => - { - if (request is ListWorkItemsRequest) - { - ListWorkItemsResponse response = BatchTestHelpers.CreateListWorkItemsResponse(namesOfConstructedWorkItems); - Task task = Task.Factory.StartNew(() => { return response; }); - return task; - } - return null; - }); - cmdlet.AdditionalBehaviors = new List() { interceptor }; - - // Setup the cmdlet to write pipeline output to a list that can be examined later - List pipeline = new List(); - commandRuntimeMock.Setup(r => - r.WriteObject(It.IsAny())) - .Callback(w => pipeline.Add((PSCloudWorkItem)w)); - - cmdlet.ExecuteCmdlet(); - - // Verify that the max count was respected - Assert.Equal(maxCount, pipeline.Count); - - // Verify setting max count <= 0 doesn't return nothing - cmdlet.MaxCount = -5; - pipeline.Clear(); - cmdlet.ExecuteCmdlet(); - - Assert.Equal(namesOfConstructedWorkItems.Length, pipeline.Count); - } - - } -} diff --git a/src/ResourceManager/Batch/Commands.Batch.Test/packages.config b/src/ResourceManager/Batch/Commands.Batch.Test/packages.config index bf5070a575a6..5e9da53bf7e3 100644 --- a/src/ResourceManager/Batch/Commands.Batch.Test/packages.config +++ b/src/ResourceManager/Batch/Commands.Batch.Test/packages.config @@ -1,6 +1,6 @@  - + @@ -14,17 +14,17 @@ - - - + + + - - + + \ No newline at end of file diff --git a/src/ResourceManager/Batch/Commands.Batch/BatchCmdletBase.cs b/src/ResourceManager/Batch/Commands.Batch/BatchCmdletBase.cs index d6d7c87aad0f..bbebeec40997 100644 --- a/src/ResourceManager/Batch/Commands.Batch/BatchCmdletBase.cs +++ b/src/ResourceManager/Batch/Commands.Batch/BatchCmdletBase.cs @@ -13,7 +13,7 @@ // ---------------------------------------------------------------------------------- using Microsoft.Azure.Batch.Common; -using Microsoft.Azure.Batch.Protocol.Entities; +using Microsoft.Azure.Batch.Protocol.Models; using Hyak.Common; using Microsoft.Azure.Common.Authentication; using Microsoft.WindowsAzure; @@ -162,7 +162,7 @@ private void HandleBatchException(BatchException ex) str.AppendFormat("Error Code: {0}", ex.RequestInformation.AzureError.Code).AppendLine(); str.AppendFormat("Error Message: {0}", ex.RequestInformation.AzureError.Message.Value).AppendLine(); - str.AppendFormat("Client Request ID:{0}", ex.RequestInformation.ClientRequestID).AppendLine(); + str.AppendFormat("Client Request ID:{0}", ex.RequestInformation.ClientRequestId).AppendLine(); if (ex.RequestInformation.AzureError.Values != null) { foreach (AzureErrorDetail detail in ex.RequestInformation.AzureError.Values) diff --git a/src/ResourceManager/Batch/Commands.Batch/Commands.Batch.csproj b/src/ResourceManager/Batch/Commands.Batch/Commands.Batch.csproj index ed022b705a9e..af25c8c5f30d 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Commands.Batch.csproj +++ b/src/ResourceManager/Batch/Commands.Batch/Commands.Batch.csproj @@ -44,9 +44,9 @@ ..\..\..\packages\Hyak.Common.1.0.2\lib\portable-net403+win+wpa81\Hyak.Common.dll - + False - ..\..\..\packages\Azure.Batch.1.2.0\lib\net45\Microsoft.Azure.Batch.dll + ..\..\..\packages\Azure.Batch.2.0.1\lib\net45\Microsoft.Azure.Batch.dll ..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.dll @@ -58,7 +58,7 @@ ..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll - + False ..\..\..\packages\Microsoft.Azure.Management.Batch.1.4.0\lib\net40\Microsoft.Azure.Management.Batch.dll @@ -66,14 +66,17 @@ False ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.1-preview\lib\net40\Microsoft.Azure.ResourceManager.dll - - ..\..\..\packages\Microsoft.Data.Services.Client.5.6.0\lib\net40\Microsoft.Data.Services.Client.dll + + False + ..\..\..\packages\Microsoft.Data.Edm.5.6.2\lib\net40\Microsoft.Data.Edm.dll - - ..\..\..\packages\Microsoft.Data.Edm.5.6.0\lib\net40\Microsoft.Data.Edm.dll + + False + ..\..\..\packages\Microsoft.Data.OData.5.6.2\lib\net40\Microsoft.Data.OData.dll - - ..\..\..\packages\Microsoft.Data.OData.5.6.0\lib\net40\Microsoft.Data.OData.dll + + False + ..\..\..\packages\Microsoft.Data.Services.Client.5.6.2\lib\net40\Microsoft.Data.Services.Client.dll False @@ -102,9 +105,9 @@ ..\..\..\packages\Microsoft.WindowsAzure.ConfigurationManager.1.8.0.0\lib\net35-full\Microsoft.WindowsAzure.Configuration.dll - + False - ..\..\..\packages\WindowsAzure.Storage.4.0.0\lib\net40\Microsoft.WindowsAzure.Storage.dll + ..\..\..\packages\WindowsAzure.Storage.4.3.0\lib\net40\Microsoft.WindowsAzure.Storage.dll False @@ -129,8 +132,9 @@ ..\..\..\packages\Microsoft.Net.Http.2.2.28\lib\net45\System.Net.Http.Primitives.dll - - ..\..\..\packages\System.Spatial.5.6.0\lib\net40\System.Spatial.dll + + False + ..\..\..\packages\System.Spatial.5.6.2\lib\net40\System.Spatial.dll @@ -143,12 +147,26 @@ - - - - - + + + + + + + + + + + + + + + + + + + @@ -159,28 +177,28 @@ - - - - + + + - - + + + - - - - + + + - - + + + - + @@ -188,13 +206,10 @@ - - - @@ -206,32 +221,20 @@ - - - - - - - - - - - - - + - - + + @@ -246,14 +249,14 @@ - - + + - - - - + + + + diff --git a/src/ResourceManager/Batch/Commands.Batch/VMUsers/NewBatchVMUserCommand.cs b/src/ResourceManager/Batch/Commands.Batch/ComputeNodeUsers/NewBatchComputeNodeUserCommand.cs similarity index 60% rename from src/ResourceManager/Batch/Commands.Batch/VMUsers/NewBatchVMUserCommand.cs rename to src/ResourceManager/Batch/Commands.Batch/ComputeNodeUsers/NewBatchComputeNodeUserCommand.cs index b1aecdb51e86..e7f880a8db16 100644 --- a/src/ResourceManager/Batch/Commands.Batch/VMUsers/NewBatchVMUserCommand.cs +++ b/src/ResourceManager/Batch/Commands.Batch/ComputeNodeUsers/NewBatchComputeNodeUserCommand.cs @@ -21,48 +21,48 @@ namespace Microsoft.Azure.Commands.Batch { - [Cmdlet(VerbsCommon.New, "AzureBatchVMUser")] - public class NewBatchVMUserCommand : BatchObjectModelCmdletBase + [Cmdlet(VerbsCommon.New, Constants.AzureBatchComputeNodeUser)] + public class NewBatchComputeNodeUserCommand : BatchObjectModelCmdletBase { - [Parameter(Position = 0, ParameterSetName = Constants.NameParameterSet, Mandatory = true, HelpMessage = "The name of the pool containing the vm to create the user on.")] + [Parameter(Position = 0, ParameterSetName = Constants.IdParameterSet, Mandatory = true, HelpMessage = "The id of the pool containing the compute node to create the user on.")] [ValidateNotNullOrEmpty] - public string PoolName { get; set; } + public string PoolId { get; set; } - [Parameter(Position = 1, ParameterSetName = Constants.NameParameterSet, Mandatory = true, HelpMessage = "The name of the vm to create the user on.")] + [Parameter(Position = 1, ParameterSetName = Constants.IdParameterSet, Mandatory = true, HelpMessage = "The id of the compute node to create the user on.")] [ValidateNotNullOrEmpty] - public string VMName { get; set; } + public string ComputeNodeId { get; set; } - [Parameter(Position = 0, ParameterSetName = Constants.ParentObjectParameterSet, ValueFromPipeline = true, HelpMessage = "The PSVM object representing the vm to create the user on.")] + [Parameter(Position = 0, ParameterSetName = Constants.ParentObjectParameterSet, ValueFromPipeline = true)] [ValidateNotNullOrEmpty] - public PSVM VM { get; set; } + public PSComputeNode ComputeNode { get; set; } [Parameter(Mandatory = true, HelpMessage = "The name of the local windows account created.")] [ValidateNotNullOrEmpty] public string Name { get; set; } - [Parameter(HelpMessage = "The account password.")] + [Parameter(Mandatory = true, HelpMessage = "The account password.")] [ValidateNotNullOrEmpty] public string Password { get; set; } - [Parameter(HelpMessage = "The expiry time.")] + [Parameter] [ValidateNotNullOrEmpty] public DateTime ExpiryTime { get; set; } - [Parameter(HelpMessage = "If present, the user is created with administrator privilege.")] + [Parameter] public SwitchParameter IsAdmin { get; set; } public override void ExecuteCmdlet() { - NewVMUserParameters parameters = new NewVMUserParameters(this.BatchContext, this.PoolName, this.VMName, - this.VM, this.AdditionalBehaviors) + NewComputeNodeUserParameters parameters = new NewComputeNodeUserParameters(this.BatchContext, this.PoolId, this.ComputeNodeId, + this.ComputeNode, this.AdditionalBehaviors) { - VMUserName = this.Name, + ComputeNodeUserName = this.Name, Password = this.Password, ExpiryTime = this.ExpiryTime, IsAdmin = this.IsAdmin.IsPresent }; - BatchClient.CreateVMUser(parameters); + BatchClient.CreateComputeNodeUser(parameters); } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/VMUsers/RemoveBatchVMUserCommand.cs b/src/ResourceManager/Batch/Commands.Batch/ComputeNodeUsers/RemoveBatchComputeNodeUserCommand.cs similarity index 69% rename from src/ResourceManager/Batch/Commands.Batch/VMUsers/RemoveBatchVMUserCommand.cs rename to src/ResourceManager/Batch/Commands.Batch/ComputeNodeUsers/RemoveBatchComputeNodeUserCommand.cs index 5e9063b4ebf3..8d37b7489884 100644 --- a/src/ResourceManager/Batch/Commands.Batch/VMUsers/RemoveBatchVMUserCommand.cs +++ b/src/ResourceManager/Batch/Commands.Batch/ComputeNodeUsers/RemoveBatchComputeNodeUserCommand.cs @@ -21,27 +21,27 @@ namespace Microsoft.Azure.Commands.Batch { - [Cmdlet(VerbsCommon.Remove, "AzureBatchVMUser")] - public class RemoveBatchVMUserCommand : BatchObjectModelCmdletBase + [Cmdlet(VerbsCommon.Remove, Constants.AzureBatchComputeNodeUser)] + public class RemoveBatchComputeNodeUserCommand : BatchObjectModelCmdletBase { - [Parameter(Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the pool that contains the vm.")] + [Parameter(Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The id of the pool that contains the compute node.")] [ValidateNotNullOrEmpty] - public string PoolName { get; set; } + public string PoolId { get; set; } - [Parameter(Position = 1, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the vm that contains the user.")] + [Parameter(Position = 1, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The id of the compute node that contains the user.")] [ValidateNotNullOrEmpty] - public string VMName { get; set; } + public string ComputeNodeId { get; set; } - [Parameter(Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the user to delete.")] + [Parameter(Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the compute node user to delete.")] [ValidateNotNullOrEmpty] public string Name { get; set; } - [Parameter(HelpMessage = "Do not ask for confirmation.")] + [Parameter] public SwitchParameter Force { get; set; } public override void ExecuteCmdlet() { - VMUserOperationParameters parameters = new VMUserOperationParameters(this.BatchContext, this.PoolName, this.VMName, + ComputeNodeUserOperationParameters parameters = new ComputeNodeUserOperationParameters(this.BatchContext, this.PoolId, this.ComputeNodeId, this.Name, this.AdditionalBehaviors); ConfirmAction( @@ -49,7 +49,7 @@ public override void ExecuteCmdlet() string.Format(Resources.RBU_RemoveConfirm, this.Name), Resources.RBU_RemoveUser, this.Name, - () => BatchClient.DeleteVMUser(parameters)); + () => BatchClient.DeleteComputeNodeUser(parameters)); } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/VMs/GetBatchVMCommand.cs b/src/ResourceManager/Batch/Commands.Batch/ComputeNodes/GetBatchComputeNodeCommand.cs similarity index 67% rename from src/ResourceManager/Batch/Commands.Batch/VMs/GetBatchVMCommand.cs rename to src/ResourceManager/Batch/Commands.Batch/ComputeNodes/GetBatchComputeNodeCommand.cs index 632a94242373..2bc4d9660c12 100644 --- a/src/ResourceManager/Batch/Commands.Batch/VMs/GetBatchVMCommand.cs +++ b/src/ResourceManager/Batch/Commands.Batch/ComputeNodes/GetBatchComputeNodeCommand.cs @@ -20,30 +20,30 @@ namespace Microsoft.Azure.Commands.Batch { - [Cmdlet(VerbsCommon.Get, "AzureBatchVM", DefaultParameterSetName = Constants.ODataFilterParameterSet), OutputType(typeof(PSVM))] - public class GetBatchVMCommand : BatchObjectModelCmdletBase + [Cmdlet(VerbsCommon.Get, Constants.AzureBatchComputeNode, DefaultParameterSetName = Constants.ODataFilterParameterSet), OutputType(typeof(PSComputeNode))] + public class GetBatchComputeNodeCommand : BatchObjectModelCmdletBase { private int maxCount = Constants.DefaultMaxCount; - [Parameter(Position = 0, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the pool.")] + [Parameter(Position = 0, ParameterSetName = Constants.IdParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The id of the pool.")] [Parameter(ParameterSetName = Constants.ODataFilterParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] [ValidateNotNullOrEmpty] - public string PoolName { get; set; } + public string PoolId { get; set; } - [Parameter(Position = 1, ParameterSetName = Constants.NameParameterSet, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the vm to retrieve from the pool.")] + [Parameter(Position = 1, ParameterSetName = Constants.IdParameterSet, ValueFromPipelineByPropertyName = true)] [ValidateNotNullOrEmpty] - public string Name { get; set; } + public string Id { get; set; } - [Parameter(Position = 0, ParameterSetName = Constants.ParentObjectParameterSet, ValueFromPipeline = true, HelpMessage = "The PSCloudPool object representing the pool which contains the vms.")] + [Parameter(Position = 0, ParameterSetName = Constants.ParentObjectParameterSet, ValueFromPipeline = true)] [ValidateNotNullOrEmpty] public PSCloudPool Pool { get; set; } - [Parameter(ParameterSetName = Constants.ODataFilterParameterSet, HelpMessage = "The OData filter clause to use when querying for vms.")] + [Parameter(ParameterSetName = Constants.ODataFilterParameterSet)] [Parameter(ParameterSetName = Constants.ParentObjectParameterSet)] [ValidateNotNullOrEmpty] public string Filter { get; set; } - [Parameter(ParameterSetName = Constants.ODataFilterParameterSet, HelpMessage = "The maximum number of vms to return.")] + [Parameter(ParameterSetName = Constants.ODataFilterParameterSet)] [Parameter(ParameterSetName = Constants.ParentObjectParameterSet)] public int MaxCount { @@ -53,9 +53,9 @@ public int MaxCount public override void ExecuteCmdlet() { - ListVMOptions options = new ListVMOptions(this.BatchContext, this.PoolName, this.Pool, this.AdditionalBehaviors) + ListComputeNodeOptions options = new ListComputeNodeOptions(this.BatchContext, this.PoolId, this.Pool, this.AdditionalBehaviors) { - VMName = this.Name, + ComputeNodeId = this.Id, Filter = this.Filter, MaxCount = this.MaxCount }; @@ -63,9 +63,9 @@ public override void ExecuteCmdlet() // The enumerator will internally query the service in chunks. Using WriteObject with the enumerate flag will enumerate // the entire collection first and then write the items out one by one in a single group. Using foreach, we can take // advantage of the enumerator's behavior and write output to the pipeline in bursts. - foreach (PSVM workItem in BatchClient.ListVMs(options)) + foreach (PSComputeNode computeNode in BatchClient.ListComputeNodes(options)) { - WriteObject(workItem); + WriteObject(computeNode); } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Files/GetBatchNodeFileCommand.cs b/src/ResourceManager/Batch/Commands.Batch/Files/GetBatchNodeFileCommand.cs new file mode 100644 index 000000000000..6d7d9a5cdb62 --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch/Files/GetBatchNodeFileCommand.cs @@ -0,0 +1,112 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System.Collections; +using System.Collections.Generic; +using Microsoft.Azure.Batch; +using Microsoft.Azure.Commands.Batch.Models; +using System; +using System.Management.Automation; +using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; + +namespace Microsoft.Azure.Commands.Batch +{ + [Cmdlet(VerbsCommon.Get, Constants.AzureBatchNodeFile, DefaultParameterSetName = ComputeNodeAndIdParameterSet), OutputType(typeof(PSNodeFile))] + public class GetBatchNodeFileCommand : BatchObjectModelCmdletBase + { + internal const string TaskAndIdParameterSet = "Task_Id"; + internal const string TaskAndODataParameterSet = "Task_ODataFilter"; + internal const string ParentTaskObjectParameterSet = "ParentTask"; + internal const string ComputeNodeAndIdParameterSet = "ComputeNode_Id"; + internal const string ComputeNodeAndODataParameterSet = "ComputeNode_ODataFilter"; + internal const string ParentComputeNodeObjectParameterSet = "ParentComputeNode"; + + private int maxCount = Constants.DefaultMaxCount; + + [Parameter(ParameterSetName = TaskAndIdParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The id of the job containing the specified target task.")] + [Parameter(ParameterSetName = TaskAndODataParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] + [ValidateNotNullOrEmpty] + public string JobId { get; set; } + + [Parameter(ParameterSetName = TaskAndIdParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The id of the task.")] + [Parameter(ParameterSetName = TaskAndODataParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] + [ValidateNotNullOrEmpty] + public string TaskId { get; set; } + + [Parameter(Position = 0, ParameterSetName = ParentTaskObjectParameterSet, ValueFromPipeline = true)] + [ValidateNotNullOrEmpty] + public PSCloudTask Task { get; set; } + + [Parameter(Position = 0, ParameterSetName = ComputeNodeAndIdParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The id of the pool which contains the specified target compute node.")] + [Parameter(Position = 0, ParameterSetName = ComputeNodeAndODataParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] + [ValidateNotNullOrEmpty] + public string PoolId { get; set; } + + [Parameter(Position = 1, ParameterSetName = ComputeNodeAndIdParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The id of the compute node.")] + [Parameter(Position = 1, ParameterSetName = ComputeNodeAndODataParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] + [ValidateNotNullOrEmpty] + public string ComputeNodeId { get; set; } + + [Parameter(Position = 0, ParameterSetName = ParentComputeNodeObjectParameterSet, ValueFromPipeline = true)] + [ValidateNotNullOrEmpty] + public PSComputeNode ComputeNode { get; set; } + + [Parameter(Position = 2, ParameterSetName = ComputeNodeAndIdParameterSet)] + [Parameter(ParameterSetName = TaskAndIdParameterSet)] + [ValidateNotNullOrEmpty] + public string Name { get; set; } + + [Parameter(ParameterSetName = TaskAndODataParameterSet)] + [Parameter(ParameterSetName = ParentTaskObjectParameterSet)] + [Parameter(ParameterSetName = ComputeNodeAndODataParameterSet)] + [Parameter(ParameterSetName = ParentComputeNodeObjectParameterSet)] + public string Filter { get; set; } + + [Parameter(ParameterSetName = TaskAndODataParameterSet)] + [Parameter(ParameterSetName = ParentTaskObjectParameterSet)] + [Parameter(ParameterSetName = ComputeNodeAndODataParameterSet)] + [Parameter(ParameterSetName = ParentComputeNodeObjectParameterSet)] + public int MaxCount + { + get { return this.maxCount; } + set { this.maxCount = value; } + } + + [Parameter(ParameterSetName = TaskAndODataParameterSet)] + [Parameter(ParameterSetName = ParentTaskObjectParameterSet)] + [Parameter(ParameterSetName = ComputeNodeAndODataParameterSet)] + [Parameter(ParameterSetName = ParentComputeNodeObjectParameterSet)] + public SwitchParameter Recursive { get; set; } + + public override void ExecuteCmdlet() + { + ListNodeFileOptions options = new ListNodeFileOptions(this.BatchContext, this.JobId, this.TaskId, this.Task, this.PoolId, + this.ComputeNodeId, this.ComputeNode, this.AdditionalBehaviors) + { + NodeFileName = this.Name, + Filter = this.Filter, + MaxCount = this.MaxCount, + Recursive = this.Recursive.IsPresent + }; + + // The enumerator will internally query the service in chunks. Using WriteObject with the enumerate flag will enumerate + // the entire collection first and then write the items out one by one in a single group. Using foreach, we can take + // advantage of the enumerator's behavior and write output to the pipeline in bursts. + foreach (PSNodeFile nodeFile in BatchClient.ListNodeFiles(options)) + { + WriteObject(nodeFile); + } + } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch/Files/GetBatchNodeFileContentCommand.cs b/src/ResourceManager/Batch/Commands.Batch/Files/GetBatchNodeFileContentCommand.cs new file mode 100644 index 000000000000..22f29cfbe42b --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch/Files/GetBatchNodeFileContentCommand.cs @@ -0,0 +1,84 @@ +// ---------------------------------------------------------------------------------- +// +// 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.IO; +using Microsoft.Azure.Batch; +using Microsoft.Azure.Commands.Batch.Models; +using System; +using System.Management.Automation; +using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; + +namespace Microsoft.Azure.Commands.Batch +{ + [Cmdlet(VerbsCommon.Get, Constants.AzureBatchNodeFileContent)] + public class GetBatchNodeFileContentCommand : BatchObjectModelCmdletBase + { + internal const string TaskAndIdAndPathParameterSet = "Task_Id_Path"; + internal const string TaskAndIdAndStreamParameterSet = "Task_Id_Stream"; + internal const string ComputeNodeAndIdAndPathParameterSet = "ComputeNode_Id_Path"; + internal const string ComputeNodeAndIdAndStreamParameterSet = "ComputeNode_Id_Stream"; + + [Parameter(ParameterSetName = TaskAndIdAndPathParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The id of the job containing the target task.")] + [Parameter(ParameterSetName = TaskAndIdAndStreamParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] + [ValidateNotNullOrEmpty] + public string JobId { get; set; } + + [Parameter(ParameterSetName = TaskAndIdAndPathParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The id of the task.")] + [Parameter(ParameterSetName = TaskAndIdAndStreamParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] + [ValidateNotNullOrEmpty] + public string TaskId { get; set; } + + [Parameter(Position = 0, ParameterSetName = ComputeNodeAndIdAndPathParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The id of the pool containing the compute node.")] + [Parameter(Position = 0, ParameterSetName = ComputeNodeAndIdAndStreamParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] + [ValidateNotNullOrEmpty] + public string PoolId { get; set; } + + [Parameter(Position = 1, ParameterSetName = ComputeNodeAndIdAndPathParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The id of the compute node.")] + [Parameter(Position = 1, ParameterSetName = ComputeNodeAndIdAndStreamParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] + [ValidateNotNullOrEmpty] + public string ComputeNodeId { get; set; } + + [Parameter(Position = 2, ParameterSetName = ComputeNodeAndIdAndPathParameterSet, Mandatory = true, HelpMessage = "The name of the node file to download.")] + [Parameter(Position = 2, ParameterSetName = ComputeNodeAndIdAndStreamParameterSet, Mandatory = true)] + [Parameter(ParameterSetName = TaskAndIdAndPathParameterSet, Mandatory = true)] + [Parameter(ParameterSetName = TaskAndIdAndStreamParameterSet, Mandatory = true)] + [ValidateNotNullOrEmpty] + public string Name { get; set; } + + [Parameter(Position = 0, ParameterSetName = Constants.InputObjectAndPathParameterSet, ValueFromPipeline = true)] + [Parameter(Position = 0, ParameterSetName = Constants.InputObjectAndStreamParameterSet, ValueFromPipeline = true)] + [ValidateNotNullOrEmpty] + public PSNodeFile InputObject { get; set; } + + [Parameter(ParameterSetName = ComputeNodeAndIdAndPathParameterSet, Mandatory = true, HelpMessage = "The file path where the node file will be downloaded.")] + [Parameter(ParameterSetName = TaskAndIdAndPathParameterSet, Mandatory = true)] + [Parameter(ParameterSetName = Constants.InputObjectAndPathParameterSet, Mandatory = true)] + [ValidateNotNullOrEmpty] + public string DestinationPath { get; set; } + + [Parameter(ParameterSetName = ComputeNodeAndIdAndStreamParameterSet, Mandatory = true, HelpMessage = "The Stream into which the node file contents will be written. This stream will not be closed or rewound by this call.")] + [Parameter(ParameterSetName = TaskAndIdAndStreamParameterSet, Mandatory = true)] + [Parameter(ParameterSetName = Constants.InputObjectAndStreamParameterSet, Mandatory = true)] + [ValidateNotNullOrEmpty] + public Stream DestinationStream { get; set; } + + public override void ExecuteCmdlet() + { + DownloadNodeFileOptions options = new DownloadNodeFileOptions(this.BatchContext, this.JobId, this.TaskId, this.PoolId, + this.ComputeNodeId, this.Name, this.InputObject, this.DestinationPath, this.DestinationStream, this.AdditionalBehaviors); + + BatchClient.DownloadNodeFile(options); + } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch/Files/GetBatchRDPFileCommand.cs b/src/ResourceManager/Batch/Commands.Batch/Files/GetBatchRDPFileCommand.cs deleted file mode 100644 index 97b3e02185dc..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch/Files/GetBatchRDPFileCommand.cs +++ /dev/null @@ -1,60 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System.IO; -using Microsoft.Azure.Batch; -using Microsoft.Azure.Commands.Batch.Models; -using System; -using System.Management.Automation; -using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; - -namespace Microsoft.Azure.Commands.Batch -{ - [Cmdlet(VerbsCommon.Get, "AzureBatchRDPFile", DefaultParameterSetName = Constants.NameAndPathParameterSet)] - public class GetBatchRDPFileCommand : BatchObjectModelCmdletBase - { - [Parameter(Position = 0, ParameterSetName = Constants.NameAndPathParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the pool which contains the vm.")] - [Parameter(Position = 0, ParameterSetName = Constants.NameAndStreamParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] - [ValidateNotNullOrEmpty] - public string PoolName { get; set; } - - [Parameter(Position = 1, ParameterSetName = Constants.NameAndPathParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the vm to which the RDP file will point.")] - [Parameter(Position = 1, ParameterSetName = Constants.NameAndStreamParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] - [ValidateNotNullOrEmpty] - public string VMName { get; set; } - - [Parameter(Position = 0, ParameterSetName = Constants.InputObjectAndPathParameterSet, ValueFromPipeline = true, HelpMessage = "The PSVM object representing the vm to which the RDP file will point.")] - [Parameter(Position = 0, ParameterSetName = Constants.InputObjectAndStreamParameterSet, ValueFromPipeline = true)] - [ValidateNotNullOrEmpty] - public PSVM VM { get; set; } - - [Parameter(ParameterSetName = Constants.NameAndPathParameterSet, Mandatory = true, HelpMessage = "The file path where the RDP file will be downloaded.")] - [Parameter(ParameterSetName = Constants.InputObjectAndPathParameterSet, Mandatory = true)] - [ValidateNotNullOrEmpty] - public string DestinationPath { get; set; } - - [Parameter(ParameterSetName = Constants.NameAndStreamParameterSet, Mandatory = true, HelpMessage = "The Stream into which the RDP file data will be written. This stream will not be closed or rewound by this call.")] - [Parameter(ParameterSetName = Constants.InputObjectAndStreamParameterSet, Mandatory = true)] - [ValidateNotNullOrEmpty] - public Stream DestinationStream { get; set; } - - public override void ExecuteCmdlet() - { - DownloadRDPFileOptions options = new DownloadRDPFileOptions(this.BatchContext, this.PoolName, this.VMName, - this.VM, this.DestinationPath, this.DestinationStream, this.AdditionalBehaviors); - - this.BatchClient.DownloadRDPFile(options); - } - } -} diff --git a/src/ResourceManager/Batch/Commands.Batch/Files/GetBatchRemoteDesktopProtocolFileCommand.cs b/src/ResourceManager/Batch/Commands.Batch/Files/GetBatchRemoteDesktopProtocolFileCommand.cs new file mode 100644 index 000000000000..fe797cb00746 --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch/Files/GetBatchRemoteDesktopProtocolFileCommand.cs @@ -0,0 +1,63 @@ +// ---------------------------------------------------------------------------------- +// +// 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.IO; +using Microsoft.Azure.Batch; +using Microsoft.Azure.Commands.Batch.Models; +using System; +using System.Management.Automation; +using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; + +namespace Microsoft.Azure.Commands.Batch +{ + [Cmdlet(VerbsCommon.Get, Constants.AzureBatchRemoteDesktopProtocolFile, DefaultParameterSetName = IdAndPathParameterSet)] + public class GetBatchRemoteDesktopProtocolFileCommand : BatchObjectModelCmdletBase + { + internal const string IdAndPathParameterSet = "Id_Path"; + internal const string IdAndStreamParameterSet = "Id_Stream"; + + [Parameter(Position = 0, ParameterSetName = IdAndPathParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The id of the pool which contains the compute node.")] + [Parameter(Position = 0, ParameterSetName = IdAndStreamParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] + [ValidateNotNullOrEmpty] + public string PoolId { get; set; } + + [Parameter(Position = 1, ParameterSetName = IdAndPathParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The id of the compute node to which the Remote Desktop Protocol file will point.")] + [Parameter(Position = 1, ParameterSetName = IdAndStreamParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] + [ValidateNotNullOrEmpty] + public string ComputeNodeId { get; set; } + + [Parameter(Position = 0, ParameterSetName = Constants.InputObjectAndPathParameterSet, ValueFromPipeline = true)] + [Parameter(Position = 0, ParameterSetName = Constants.InputObjectAndStreamParameterSet, ValueFromPipeline = true)] + [ValidateNotNullOrEmpty] + public PSComputeNode ComputeNode { get; set; } + + [Parameter(ParameterSetName = IdAndPathParameterSet, Mandatory = true, HelpMessage = "The file path where the Remote Desktop Protocol file will be downloaded.")] + [Parameter(ParameterSetName = Constants.InputObjectAndPathParameterSet, Mandatory = true)] + [ValidateNotNullOrEmpty] + public string DestinationPath { get; set; } + + [Parameter(ParameterSetName = IdAndStreamParameterSet, Mandatory = true, HelpMessage = "The Stream into which the Remote Desktop Protocol file data will be written. This stream will not be closed or rewound by this call.")] + [Parameter(ParameterSetName = Constants.InputObjectAndStreamParameterSet, Mandatory = true)] + [ValidateNotNullOrEmpty] + public Stream DestinationStream { get; set; } + + public override void ExecuteCmdlet() + { + DownloadRemoteDesktopProtocolFileOptions options = new DownloadRemoteDesktopProtocolFileOptions(this.BatchContext, this.PoolId, this.ComputeNodeId, + this.ComputeNode, this.DestinationPath, this.DestinationStream, this.AdditionalBehaviors); + + this.BatchClient.DownloadRemoteDesktopProtocolFile(options); + } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch/Files/GetBatchTaskFileCommand.cs b/src/ResourceManager/Batch/Commands.Batch/Files/GetBatchTaskFileCommand.cs deleted file mode 100644 index 8a19f5bc3e8e..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch/Files/GetBatchTaskFileCommand.cs +++ /dev/null @@ -1,88 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Batch; -using Microsoft.Azure.Commands.Batch.Models; -using System; -using System.Management.Automation; -using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; - -namespace Microsoft.Azure.Commands.Batch -{ - [Cmdlet(VerbsCommon.Get, "AzureBatchTaskFile", DefaultParameterSetName = Constants.ODataFilterParameterSet), OutputType(typeof(PSTaskFile))] - public class GetBatchTaskFileCommand : BatchObjectModelCmdletBase - { - private int maxCount = Constants.DefaultMaxCount; - - [Parameter(Position = 0, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the workitem which contains the specified target task.")] - [Parameter(Position = 0, ParameterSetName = Constants.ODataFilterParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] - [ValidateNotNullOrEmpty] - public string WorkItemName { get; set; } - - [Parameter(Position = 1, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the job containing the specified target task.")] - [Parameter(Position = 1, ParameterSetName = Constants.ODataFilterParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] - [ValidateNotNullOrEmpty] - public string JobName { get; set; } - - [Parameter(Position = 2, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the task.")] - [Parameter(Position = 2, ParameterSetName = Constants.ODataFilterParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] - [ValidateNotNullOrEmpty] - public string TaskName { get; set; } - - [Parameter(Position = 3, ParameterSetName = Constants.NameParameterSet, HelpMessage = "The name of the task file to retrieve.")] - [ValidateNotNullOrEmpty] - public string Name { get; set; } - - [Parameter(Position = 0, ParameterSetName = Constants.ParentObjectParameterSet, ValueFromPipeline = true, HelpMessage = "The PSCloudTask file representing the task that the task files are associated with.")] - [ValidateNotNullOrEmpty] - public PSCloudTask Task { get; set; } - - [Parameter(ParameterSetName = Constants.ODataFilterParameterSet, HelpMessage = "The OData filter clause to use when querying for task files.")] - [Parameter(ParameterSetName = Constants.ParentObjectParameterSet)] - [ValidateNotNullOrEmpty] - public string Filter { get; set; } - - [Parameter(ParameterSetName = Constants.ODataFilterParameterSet, HelpMessage = "The maximum number of task files to return.")] - [Parameter(ParameterSetName = Constants.ParentObjectParameterSet)] - public int MaxCount - { - get { return this.maxCount; } - set { this.maxCount = value; } - } - - [Parameter(ParameterSetName = Constants.ODataFilterParameterSet, HelpMessage = "If present, performs a recursive list of files of the task. Otherwise, returns only the files at the task directory root.")] - [Parameter(ParameterSetName = Constants.ParentObjectParameterSet)] - public SwitchParameter Recursive { get; set; } - - public override void ExecuteCmdlet() - { - ListTaskFileOptions options = new ListTaskFileOptions(this.BatchContext, this.WorkItemName, this.JobName, - this.TaskName, this.Task, this.AdditionalBehaviors) - { - TaskFileName = this.Name, - Filter = this.Filter, - MaxCount = this.MaxCount, - Recursive = this.Recursive.IsPresent - }; - - // The enumerator will internally query the service in chunks. Using WriteObject with the enumerate flag will enumerate - // the entire collection first and then write the items out one by one in a single group. Using foreach, we can take - // advantage of the enumerator's behavior and write output to the pipeline in bursts. - foreach (PSTaskFile taskFile in BatchClient.ListTaskFiles(options)) - { - WriteObject(taskFile); - } - } - } -} diff --git a/src/ResourceManager/Batch/Commands.Batch/Files/GetBatchTaskFileContentCommand.cs b/src/ResourceManager/Batch/Commands.Batch/Files/GetBatchTaskFileContentCommand.cs deleted file mode 100644 index 0287a5958bbc..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch/Files/GetBatchTaskFileContentCommand.cs +++ /dev/null @@ -1,70 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System.IO; -using Microsoft.Azure.Batch; -using Microsoft.Azure.Commands.Batch.Models; -using System; -using System.Management.Automation; -using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; - -namespace Microsoft.Azure.Commands.Batch -{ - [Cmdlet(VerbsCommon.Get, "AzureBatchTaskFileContent", DefaultParameterSetName = Constants.NameAndPathParameterSet)] - public class GetBatchTaskFileContentCommand : BatchObjectModelCmdletBase - { - [Parameter(Position = 0, ParameterSetName = Constants.NameAndPathParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the workitem containing the target task.")] - [Parameter(Position = 0, ParameterSetName = Constants.NameAndStreamParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] - [ValidateNotNullOrEmpty] - public string WorkItemName { get; set; } - - [Parameter(Position = 1, ParameterSetName = Constants.NameAndPathParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the job containing the target task.")] - [Parameter(Position = 1, ParameterSetName = Constants.NameAndStreamParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] - [ValidateNotNullOrEmpty] - public string JobName { get; set; } - - [Parameter(Position = 2, ParameterSetName = Constants.NameAndPathParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the task.")] - [Parameter(Position = 2, ParameterSetName = Constants.NameAndStreamParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] - [ValidateNotNullOrEmpty] - public string TaskName { get; set; } - - [Parameter(Position = 3, ParameterSetName = Constants.NameAndPathParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the task file to download.")] - [Parameter(Position = 3, ParameterSetName = Constants.NameAndStreamParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] - [ValidateNotNullOrEmpty] - public string Name { get; set; } - - [Parameter(Position = 0, ParameterSetName = Constants.InputObjectAndPathParameterSet, ValueFromPipeline = true, HelpMessage = "The PSTaskFile object representing the task file to download.")] - [Parameter(Position = 0, ParameterSetName = Constants.InputObjectAndStreamParameterSet, ValueFromPipeline = true)] - [ValidateNotNullOrEmpty] - public PSTaskFile InputObject { get; set; } - - [Parameter(ParameterSetName = Constants.NameAndPathParameterSet, Mandatory = true, HelpMessage = "The file path where the task file will be downloaded.")] - [Parameter(ParameterSetName = Constants.InputObjectAndPathParameterSet, Mandatory = true)] - [ValidateNotNullOrEmpty] - public string DestinationPath { get; set; } - - [Parameter(ParameterSetName = Constants.NameAndStreamParameterSet, Mandatory = true, HelpMessage = "The Stream into which the task file contents will be written. This stream will not be closed or rewound by this call.")] - [Parameter(ParameterSetName = Constants.InputObjectAndStreamParameterSet, Mandatory = true)] - [ValidateNotNullOrEmpty] - public Stream DestinationStream { get; set; } - - public override void ExecuteCmdlet() - { - DownloadTaskFileOptions options = new DownloadTaskFileOptions(this.BatchContext, this.WorkItemName, this.JobName, - this.TaskName, this.Name, this.InputObject, this.DestinationPath, this.DestinationStream, this.AdditionalBehaviors); - - BatchClient.DownloadTaskFile(options); - } - } -} diff --git a/src/ResourceManager/Batch/Commands.Batch/Files/GetBatchVMFileCommand.cs b/src/ResourceManager/Batch/Commands.Batch/Files/GetBatchVMFileCommand.cs deleted file mode 100644 index 31667b18c06b..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch/Files/GetBatchVMFileCommand.cs +++ /dev/null @@ -1,82 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Batch; -using Microsoft.Azure.Commands.Batch.Models; -using System; -using System.Management.Automation; -using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; - -namespace Microsoft.Azure.Commands.Batch -{ - [Cmdlet(VerbsCommon.Get, "AzureBatchVMFile", DefaultParameterSetName = Constants.ODataFilterParameterSet), OutputType(typeof(PSVMFile))] - public class GetBatchVMFileCommand : BatchObjectModelCmdletBase - { - private int maxCount = Constants.DefaultMaxCount; - - [Parameter(Position = 0, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the pool which contains the specified target vm.")] - [Parameter(Position = 0, ParameterSetName = Constants.ODataFilterParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] - [ValidateNotNullOrEmpty] - public string PoolName { get; set; } - - [Parameter(Position = 1, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the vm.")] - [Parameter(Position = 1, ParameterSetName = Constants.ODataFilterParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] - [ValidateNotNullOrEmpty] - public string VMName { get; set; } - - [Parameter(Position = 2, ParameterSetName = Constants.NameParameterSet, HelpMessage = "The name of the vm file to retrieve.")] - [ValidateNotNullOrEmpty] - public string Name { get; set; } - - [Parameter(Position = 0, ParameterSetName = Constants.ParentObjectParameterSet, ValueFromPipeline = true, HelpMessage = "The PSVM object representing the vm that the vm files are associated with.")] - [ValidateNotNullOrEmpty] - public PSVM VM { get; set; } - - [Parameter(ParameterSetName = Constants.ODataFilterParameterSet, HelpMessage = "The OData filter clause to use when querying for vm files.")] - [Parameter(ParameterSetName = Constants.ParentObjectParameterSet)] - [ValidateNotNullOrEmpty] - public string Filter { get; set; } - - [Parameter(ParameterSetName = Constants.ODataFilterParameterSet, HelpMessage = "The maximum number of vm files to return.")] - [Parameter(ParameterSetName = Constants.ParentObjectParameterSet)] - public int MaxCount - { - get { return this.maxCount; } - set { this.maxCount = value; } - } - - [Parameter(ParameterSetName = Constants.ODataFilterParameterSet, HelpMessage = "If present, performs a recursive list of files of the vm. Otherwise, returns only the files at the vm directory root.")] - [Parameter(ParameterSetName = Constants.ParentObjectParameterSet)] - public SwitchParameter Recursive { get; set; } - - public override void ExecuteCmdlet() - { - ListVMFileOptions options = new ListVMFileOptions(this.BatchContext, this.PoolName, this.VMName, this.VM, this.AdditionalBehaviors) - { - VMFileName = this.Name, - Filter = this.Filter, - MaxCount = this.MaxCount, - Recursive = this.Recursive.IsPresent - }; - - // The enumerator will internally query the service in chunks. Using WriteObject with the enumerate flag will enumerate - // the entire collection first and then write the items out one by one in a single group. Using foreach, we can take - // advantage of the enumerator's behavior and write output to the pipeline in bursts. - foreach (PSVMFile vmFile in BatchClient.ListVMFiles(options)) - { - WriteObject(vmFile); - } - } - } -} diff --git a/src/ResourceManager/Batch/Commands.Batch/Files/GetBatchVMFileContentCommand.cs b/src/ResourceManager/Batch/Commands.Batch/Files/GetBatchVMFileContentCommand.cs deleted file mode 100644 index c0eb2eb6ac86..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch/Files/GetBatchVMFileContentCommand.cs +++ /dev/null @@ -1,65 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System.IO; -using Microsoft.Azure.Batch; -using Microsoft.Azure.Commands.Batch.Models; -using System; -using System.Management.Automation; -using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; - -namespace Microsoft.Azure.Commands.Batch -{ - [Cmdlet(VerbsCommon.Get, "AzureBatchVMFileContent", DefaultParameterSetName = Constants.NameAndPathParameterSet)] - public class GetBatchVMFileContentCommand : BatchObjectModelCmdletBase - { - [Parameter(Position = 0, ParameterSetName = Constants.NameAndPathParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the pool containing the vm.")] - [Parameter(Position = 0, ParameterSetName = Constants.NameAndStreamParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] - [ValidateNotNullOrEmpty] - public string PoolName { get; set; } - - [Parameter(Position = 1, ParameterSetName = Constants.NameAndPathParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the vm.")] - [Parameter(Position = 1, ParameterSetName = Constants.NameAndStreamParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] - [ValidateNotNullOrEmpty] - public string VMName { get; set; } - - [Parameter(Position = 2, ParameterSetName = Constants.NameAndPathParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the vm file to download.")] - [Parameter(Position = 2, ParameterSetName = Constants.NameAndStreamParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] - [ValidateNotNullOrEmpty] - public string Name { get; set; } - - [Parameter(Position = 0, ParameterSetName = Constants.InputObjectAndPathParameterSet, ValueFromPipeline = true, HelpMessage = "The PSVMFile object representing the vm file to download.")] - [Parameter(Position = 0, ParameterSetName = Constants.InputObjectAndStreamParameterSet, ValueFromPipeline = true)] - [ValidateNotNullOrEmpty] - public PSVMFile InputObject { get; set; } - - [Parameter(ParameterSetName = Constants.NameAndPathParameterSet, Mandatory = true, HelpMessage = "The file path where the vm file will be downloaded.")] - [Parameter(ParameterSetName = Constants.InputObjectAndPathParameterSet, Mandatory = true)] - [ValidateNotNullOrEmpty] - public string DestinationPath { get; set; } - - [Parameter(ParameterSetName = Constants.NameAndStreamParameterSet, Mandatory = true, HelpMessage = "The Stream into which the vm file contents will be written. This stream will not be closed or rewound by this call.")] - [Parameter(ParameterSetName = Constants.InputObjectAndStreamParameterSet, Mandatory = true)] - [ValidateNotNullOrEmpty] - public Stream DestinationStream { get; set; } - - public override void ExecuteCmdlet() - { - DownloadVMFileOptions options = new DownloadVMFileOptions(this.BatchContext, this.PoolName, this.VMName, - this.Name, this.InputObject, this.DestinationPath, this.DestinationStream, this.AdditionalBehaviors); - - BatchClient.DownloadVMFile(options); - } - } -} diff --git a/src/ResourceManager/Batch/Commands.Batch/WorkItems/GetBatchWorkItemCommand.cs b/src/ResourceManager/Batch/Commands.Batch/JobSchedules/GetBatchJobScheduleCommand.cs similarity index 69% rename from src/ResourceManager/Batch/Commands.Batch/WorkItems/GetBatchWorkItemCommand.cs rename to src/ResourceManager/Batch/Commands.Batch/JobSchedules/GetBatchJobScheduleCommand.cs index 57cfc3ab6e6a..4fd7807634c9 100644 --- a/src/ResourceManager/Batch/Commands.Batch/WorkItems/GetBatchWorkItemCommand.cs +++ b/src/ResourceManager/Batch/Commands.Batch/JobSchedules/GetBatchJobScheduleCommand.cs @@ -20,20 +20,20 @@ namespace Microsoft.Azure.Commands.Batch { - [Cmdlet(VerbsCommon.Get, "AzureBatchWorkItem", DefaultParameterSetName = Constants.ODataFilterParameterSet), OutputType(typeof(PSCloudWorkItem))] - public class GetBatchWorkItemCommand : BatchObjectModelCmdletBase + [Cmdlet(VerbsCommon.Get, Constants.AzureBatchJobSchedule, DefaultParameterSetName = Constants.ODataFilterParameterSet), OutputType(typeof(PSCloudJobSchedule))] + public class GetBatchJobScheduleCommand : BatchObjectModelCmdletBase { private int maxCount = Constants.DefaultMaxCount; - [Parameter(Position = 0, ParameterSetName = Constants.NameParameterSet, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the workitem to retrieve.")] + [Parameter(Position = 0, ParameterSetName = Constants.IdParameterSet, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true)] [ValidateNotNullOrEmpty] - public string Name { get; set; } + public string Id { get; set; } - [Parameter(ParameterSetName = Constants.ODataFilterParameterSet, HelpMessage = "The OData filter clause to use when querying for workitems.")] + [Parameter(ParameterSetName = Constants.ODataFilterParameterSet)] [ValidateNotNullOrEmpty] public string Filter { get; set; } - [Parameter(ParameterSetName = Constants.ODataFilterParameterSet, HelpMessage = "The maximum number of workitems to return.")] + [Parameter(ParameterSetName = Constants.ODataFilterParameterSet)] public int MaxCount { get { return this.maxCount; } @@ -42,9 +42,9 @@ public int MaxCount public override void ExecuteCmdlet() { - ListWorkItemOptions options = new ListWorkItemOptions(this.BatchContext, this.AdditionalBehaviors) + ListJobScheduleOptions options = new ListJobScheduleOptions(this.BatchContext, this.AdditionalBehaviors) { - WorkItemName = this.Name, + JobScheduleId = this.Id, Filter = this.Filter, MaxCount = this.MaxCount }; @@ -52,9 +52,9 @@ public override void ExecuteCmdlet() // The enumerator will internally query the service in chunks. Using WriteObject with the enumerate flag will enumerate // the entire collection first and then write the items out one by one in a single group. Using foreach, we can take // advantage of the enumerator's behavior and write output to the pipeline in bursts. - foreach (PSCloudWorkItem workItem in BatchClient.ListWorkItems(options)) + foreach (PSCloudJobSchedule jobSchedule in BatchClient.ListJobSchedules(options)) { - WriteObject(workItem); + WriteObject(jobSchedule); } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/WorkItems/NewBatchWorkItemCommand.cs b/src/ResourceManager/Batch/Commands.Batch/JobSchedules/NewBatchJobScheduleCommand.cs similarity index 60% rename from src/ResourceManager/Batch/Commands.Batch/WorkItems/NewBatchWorkItemCommand.cs rename to src/ResourceManager/Batch/Commands.Batch/JobSchedules/NewBatchJobScheduleCommand.cs index cc7a0a176cd4..8d07e87d9756 100644 --- a/src/ResourceManager/Batch/Commands.Batch/WorkItems/NewBatchWorkItemCommand.cs +++ b/src/ResourceManager/Batch/Commands.Batch/JobSchedules/NewBatchJobScheduleCommand.cs @@ -16,43 +16,44 @@ using Microsoft.Azure.Batch; using Microsoft.Azure.Commands.Batch.Models; using System.Management.Automation; +using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; namespace Microsoft.Azure.Commands.Batch { - [Cmdlet(VerbsCommon.New, "AzureBatchWorkItem")] - public class NewBatchWorkItemCommand : BatchObjectModelCmdletBase + [Cmdlet(VerbsCommon.New, Constants.AzureBatchJobSchedule)] + public class NewBatchJobScheduleCommand : BatchObjectModelCmdletBase { - [Parameter(Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the workitem to create.")] + [Parameter(Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The id of the job schedule to create.")] [ValidateNotNullOrEmpty] - public string Name { get; set; } + public string Id { get; set; } - [Parameter(HelpMessage = "The schedule specification to use when creating the workitem.")] + [Parameter] [ValidateNotNullOrEmpty] - public PSWorkItemSchedule Schedule { get; set; } + public string DisplayName { get; set; } - [Parameter(HelpMessage = "The job specification to use when creating the workitem.")] + [Parameter(Mandatory = true, HelpMessage = "Specifies the schedule according to which jobs will be created.")] [ValidateNotNullOrEmpty] - public PSJobSpecification JobSpecification { get; set; } + public PSSchedule Schedule { get; set; } - [Parameter(HelpMessage = "The job execution environment to use when creating the workitem.")] + [Parameter(Mandatory = true, HelpMessage = "Specifies details of the jobs to be created on this schedule.")] [ValidateNotNullOrEmpty] - public PSJobExecutionEnvironment JobExecutionEnvironment { get; set; } + public PSJobSpecification JobSpecification { get; set; } - [Parameter(HelpMessage = "Metadata to add to the new workitem.")] + [Parameter] [ValidateNotNullOrEmpty] public IDictionary Metadata { get; set; } public override void ExecuteCmdlet() { - NewWorkItemParameters parameters = new NewWorkItemParameters(this.BatchContext, this.Name, this.AdditionalBehaviors) + NewJobScheduleParameters parameters = new NewJobScheduleParameters(this.BatchContext, this.Id, this.AdditionalBehaviors) { + DisplayName = this.DisplayName, Schedule = this.Schedule, JobSpecification = this.JobSpecification, - JobExecutionEnvironment = this.JobExecutionEnvironment, Metadata = this.Metadata }; - BatchClient.CreateWorkItem(parameters); + BatchClient.CreateJobSchedule(parameters); } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/WorkItems/RemoveBatchWorkItemCommand.cs b/src/ResourceManager/Batch/Commands.Batch/JobSchedules/RemoveBatchJobScheduleCommand.cs similarity index 63% rename from src/ResourceManager/Batch/Commands.Batch/WorkItems/RemoveBatchWorkItemCommand.cs rename to src/ResourceManager/Batch/Commands.Batch/JobSchedules/RemoveBatchJobScheduleCommand.cs index 3704b44520ae..e72c3cd314c5 100644 --- a/src/ResourceManager/Batch/Commands.Batch/WorkItems/RemoveBatchWorkItemCommand.cs +++ b/src/ResourceManager/Batch/Commands.Batch/JobSchedules/RemoveBatchJobScheduleCommand.cs @@ -12,32 +12,30 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using System.Collections; -using Microsoft.Azure.Batch; -using Microsoft.Azure.Commands.Batch.Models; using System.Management.Automation; using Microsoft.Azure.Commands.Batch.Properties; +using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; namespace Microsoft.Azure.Commands.Batch { - [Cmdlet(VerbsCommon.Remove, "AzureBatchWorkItem")] - public class RemoveBatchWorkItemCommand : BatchObjectModelCmdletBase + [Cmdlet(VerbsCommon.Remove, Constants.AzureBatchJobSchedule)] + public class RemoveBatchJobScheduleCommand : BatchObjectModelCmdletBase { - [Parameter(Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the workitem to delete.")] + [Parameter(Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The id of the job schedule to delete.")] [ValidateNotNullOrEmpty] - public string Name { get; set; } + public string Id { get; set; } - [Parameter(HelpMessage = "Do not ask for confirmation.")] + [Parameter] public SwitchParameter Force { get; set; } public override void ExecuteCmdlet() { ConfirmAction( Force.IsPresent, - string.Format(Resources.RBWI_RemoveConfirm, this.Name), - Resources.RBWI_RemoveWorkItem, - this.Name, - () => BatchClient.DeleteWorkItem(this.BatchContext, this.Name, this.AdditionalBehaviors)); + string.Format(Resources.RBJS_RemoveConfirm, this.Id), + Resources.RBJS_RemoveJobSchedule, + this.Id, + () => BatchClient.DeleteJobSchedule(this.BatchContext, this.Id, this.AdditionalBehaviors)); } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Jobs/GetBatchJobCommand.cs b/src/ResourceManager/Batch/Commands.Batch/Jobs/GetBatchJobCommand.cs index 386b6bf5cf53..b5c47303ff95 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Jobs/GetBatchJobCommand.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Jobs/GetBatchJobCommand.cs @@ -20,30 +20,29 @@ namespace Microsoft.Azure.Commands.Batch { - [Cmdlet(VerbsCommon.Get, "AzureBatchJob", DefaultParameterSetName = Constants.ODataFilterParameterSet), OutputType(typeof(PSCloudJob))] + [Cmdlet(VerbsCommon.Get, Constants.AzureBatchJob, DefaultParameterSetName = Constants.ODataFilterParameterSet), OutputType(typeof(PSCloudJob))] public class GetBatchJobCommand : BatchObjectModelCmdletBase { private int maxCount = Constants.DefaultMaxCount; - [Parameter(Position = 0, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the workitem which contains the jobs.")] - [Parameter(ParameterSetName = Constants.ODataFilterParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] + [Parameter(Position = 0, ParameterSetName = Constants.IdParameterSet)] [ValidateNotNullOrEmpty] - public string WorkItemName { get; set; } + public string Id { get; set; } - [Parameter(Position = 1, ParameterSetName = Constants.NameParameterSet, HelpMessage = "The name of the job to retrieve.")] + [Parameter(ParameterSetName = Constants.ODataFilterParameterSet, ValueFromPipelineByPropertyName = true)] [ValidateNotNullOrEmpty] - public string Name { get; set; } + public string JobScheduleId { get; set; } - [Parameter(Position = 0, ParameterSetName = Constants.ParentObjectParameterSet, ValueFromPipeline = true, HelpMessage = "The PSCloudWorkItem object representing the workitem which contains the jobs.")] + [Parameter(Position = 0, ParameterSetName = Constants.ParentObjectParameterSet, ValueFromPipeline = true)] [ValidateNotNullOrEmpty] - public PSCloudWorkItem WorkItem { get; set; } + public PSCloudJobSchedule JobSchedule { get; set; } - [Parameter(ParameterSetName = Constants.ODataFilterParameterSet, HelpMessage = "The OData filter clause to use when querying for jobs.")] + [Parameter(ParameterSetName = Constants.ODataFilterParameterSet)] [Parameter(ParameterSetName = Constants.ParentObjectParameterSet)] [ValidateNotNullOrEmpty] public string Filter { get; set; } - [Parameter(ParameterSetName = Constants.ODataFilterParameterSet, HelpMessage = "The maximum number of jobs to return.")] + [Parameter(ParameterSetName = Constants.ODataFilterParameterSet)] [Parameter(ParameterSetName = Constants.ParentObjectParameterSet)] public int MaxCount { @@ -53,9 +52,11 @@ public int MaxCount public override void ExecuteCmdlet() { - ListJobOptions options = new ListJobOptions(this.BatchContext, this.WorkItemName, this.WorkItem, this.AdditionalBehaviors) + ListJobOptions options = new ListJobOptions(this.BatchContext, this.AdditionalBehaviors) { - JobName = this.Name, + JobId = this.Id, + JobScheduleId = this.JobScheduleId, + JobSchedule = this.JobSchedule, Filter = this.Filter, MaxCount = this.MaxCount }; diff --git a/src/ResourceManager/Batch/Commands.Batch/Jobs/NewBatchJobCommand.cs b/src/ResourceManager/Batch/Commands.Batch/Jobs/NewBatchJobCommand.cs new file mode 100644 index 000000000000..9f754e2224ea --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch/Jobs/NewBatchJobCommand.cs @@ -0,0 +1,84 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System.Collections; +using Microsoft.Azure.Batch; +using Microsoft.Azure.Commands.Batch.Models; +using System.Management.Automation; +using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; + +namespace Microsoft.Azure.Commands.Batch +{ + [Cmdlet(VerbsCommon.New, Constants.AzureBatchJob)] + public class NewBatchJobCommand : BatchObjectModelCmdletBase + { + [Parameter(Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The id of the job to create.")] + [ValidateNotNullOrEmpty] + public string Id { get; set; } + + [Parameter] + [ValidateNotNullOrEmpty] + public IDictionary CommonEnvironmentSettings { get; set; } + + [Parameter] + [ValidateNotNullOrEmpty] + public string DisplayName { get; set; } + + [Parameter] + [ValidateNotNullOrEmpty] + public PSJobConstraints Constraints { get; set; } + + [Parameter] + [ValidateNotNullOrEmpty] + public PSJobManagerTask JobManagerTask { get; set; } + + [Parameter] + [ValidateNotNullOrEmpty] + public PSJobPreparationTask JobPreparationTask { get; set; } + + [Parameter] + [ValidateNotNullOrEmpty] + public PSJobReleaseTask JobReleaseTask { get; set; } + + [Parameter] + [ValidateNotNullOrEmpty] + public IDictionary Metadata { get; set; } + + [Parameter(Mandatory = true, HelpMessage = "The pool information for the job.")] + [ValidateNotNullOrEmpty] + public PSPoolInformation PoolInformation { get; set; } + + [Parameter] + [ValidateNotNullOrEmpty] + public int Priority { get; set; } + + public override void ExecuteCmdlet() + { + NewJobParameters parameters = new NewJobParameters(this.BatchContext, this.Id, this.AdditionalBehaviors) + { + CommonEnvironmentSettings = this.CommonEnvironmentSettings, + DisplayName = this.DisplayName, + Constraints = this.Constraints, + JobManagerTask = this.JobManagerTask, + JobPreparationTask = this.JobPreparationTask, + JobReleaseTask = this.JobReleaseTask, + Metadata = this.Metadata, + PoolInformation = this.PoolInformation, + Priority = this.Priority + }; + + BatchClient.CreateJob(parameters); + } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch/Jobs/RemoveBatchJobCommand.cs b/src/ResourceManager/Batch/Commands.Batch/Jobs/RemoveBatchJobCommand.cs index ae16cd95e0fd..fc0a41c1e8b5 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Jobs/RemoveBatchJobCommand.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Jobs/RemoveBatchJobCommand.cs @@ -12,45 +12,30 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using System.Collections; -using Microsoft.Azure.Batch; -using Microsoft.Azure.Commands.Batch.Models; using System.Management.Automation; using Microsoft.Azure.Commands.Batch.Properties; using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; namespace Microsoft.Azure.Commands.Batch { - [Cmdlet(VerbsCommon.Remove, "AzureBatchJob")] + [Cmdlet(VerbsCommon.Remove, Constants.AzureBatchJob)] public class RemoveBatchJobCommand : BatchObjectModelCmdletBase { - [Parameter(Position = 0, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the workitem containing the job to delete.")] + [Parameter(Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The id of the job to delete.")] [ValidateNotNullOrEmpty] - public string WorkItemName { get; set; } + public string Id { get; set; } - [Parameter(Position = 1, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the job to delete.")] - [ValidateNotNullOrEmpty] - public string Name { get; set; } - - [Parameter(Position = 0, ParameterSetName = Constants.InputObjectParameterSet, Mandatory = true, ValueFromPipeline = true, HelpMessage = "The PSCloudJob object representing the job to delete.")] - [ValidateNotNullOrEmpty] - public PSCloudJob InputObject { get; set; } - - [Parameter(HelpMessage = "Do not ask for confirmation.")] + [Parameter] public SwitchParameter Force { get; set; } public override void ExecuteCmdlet() { - string jobName = InputObject == null ? this.Name : InputObject.Name; - JobOperationParameters parameters = new JobOperationParameters(this.BatchContext, this.WorkItemName, - this.Name, this.InputObject, this.AdditionalBehaviors); - ConfirmAction( Force.IsPresent, - string.Format(Resources.RBJ_RemoveConfirm, jobName), + string.Format(Resources.RBJ_RemoveConfirm, this.Id), Resources.RBJ_RemoveJob, - jobName, - () => BatchClient.DeleteJob(parameters)); + this.Id, + () => BatchClient.DeleteJob(this.BatchContext, this.Id, this.AdditionalBehaviors)); } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Microsoft.Azure.Commands.Batch.dll-Help.xml b/src/ResourceManager/Batch/Commands.Batch/Microsoft.Azure.Commands.Batch.dll-Help.xml index 5bf062ebbfd3..358ebf7a939b 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Microsoft.Azure.Commands.Batch.dll-Help.xml +++ b/src/ResourceManager/Batch/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 Azure Batch accounts under the current subscription. @@ -15,7 +15,7 @@ - The Get-AzureBatchAccountKeys cmdlet gets the specified key of the specified Azure batch accounts under the current subscription. + The Get-AzureBatchAccountKeys cmdlet gets the specified key of the specified Azure Batch accounts under the current subscription. @@ -146,7 +146,7 @@ Get-AzureBatchAccount - Gets an Azure batch account under the current subscription. + Gets an Azure Batch account under the current subscription. @@ -156,7 +156,7 @@ - The Get-AzureBatchAccount cmdlet gets an Azure batch account under the current subscription. You can use the AccountName parameter to get a single account, or you can use the ResourceGroupName parameter to get accounts under that resource group. + The Get-AzureBatchAccount cmdlet gets an Azure Batch account under the current subscription. You can use the AccountName parameter to get a single account, or you can use the ResourceGroupName parameter to get accounts under that resource group. @@ -278,19 +278,19 @@ - Example 1: Get a batch account by name + Example 1: Get a Batch account by name - PS C:\>Get-AzureBatchAccount -AccountName "pfuller" - AccountName Location ResourceGroupName Tags TaskTenantUrl - ----------- -------- ----------------- ---- ------------- - pfuller westus CmdletExampleRG https://batch.core.contoso.net + PS C:\>Get-AzureBatchAccount -AccountName "cmdletexample" + AccountName Location ResourceGroupName Tags TaskTenantUrl + ----------- -------- ----------------- ---- ------------- + cmdletexample westus CmdletExampleRG https://cmdletexample.westus.batch.azure.com - This command gets the batch account named pfuller. + This command gets the Batch account named cmdletexample. @@ -301,20 +301,20 @@ - 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://batch.core.contoso.net - cmdletexample2 westus CmdletExampleRG https://batch.core.contoso.net + AccountName Location ResourceGroupName Tags TaskTenantUrl + ----------- -------- ----------------- ---- ------------- + cmdletexample westus CmdletExampleRG https://cmdletexample.westus.batch.azure.com + cmdletexample2 westus CmdletExampleRG https://cmdletexample2.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. @@ -348,7 +348,7 @@ Get-AzureBatchJob - Gets Azure batch jobs under the specified work item. + Gets Azure Batch jobs under the specified Batch account or job schedule. @@ -358,7 +358,7 @@ - The Get-AzureBatchJob cmdlet gets the Azure batch jobs under the work item specified by either the WorkItemName or WorkItem parameters. You can use the Name parameter to get a single job, or you can use the Filter parameter to get the jobs that match an OData filter. + 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. @@ -366,7 +366,7 @@ Filter - Specifies the OData filter clause to use when querying for jobs. If you do not specify a filter, then all jobs under the work item specified with either the WorkItemName or WorkItem parameters will be returned. + 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 @@ -387,31 +387,24 @@ 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 to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext - - WorkItemName + + JobScheduleId - Specifies the name of the work item which contains the jobs. + Specifies the id of the job schedule which contains the jobs. - String + String Get-AzureBatchJob - - WorkItemName - - Specifies the name of the work item which contains the jobs. - - String - - - Name + + Id - Specifies the name of the batch job. Wildcards are not permitted. + Specifies the id of the job. Wildcards are not permitted. String @@ -425,7 +418,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 to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext @@ -433,16 +426,16 @@ Get-AzureBatchJob - WorkItem + JobSchedule - Specifies the PSCloudWorkItem object representing the work item which contains the jobs. Use the Get-AzureBatchWorkItem cmdlet to get a PSCloudWorkItem object. + Specifies the PSCloudJobSchedule object representing the job schedule which contains the jobs. Use the Get-AzureBatchJobSchedule cmdlet to get a PSCloudJobSchedule object. - PSCloudWorkItem + PSCloudJobSchedule Filter - Specifies the OData filter clause to use when querying for jobs. If you do not specify a filter, then all jobs under the work item specified with either the WorkItemName or WorkItem parameters will be returned. + 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. String @@ -463,7 +456,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 to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext @@ -473,7 +466,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 to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext @@ -485,7 +478,7 @@ Filter - Specifies the OData filter clause to use when querying for jobs. If you do not specify a filter, then all jobs under the work item specified with either the WorkItemName or WorkItem parameters will be returned. + 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. String @@ -506,10 +499,10 @@ none - - Name + + Id - Specifies the name of the batch job. Wildcards are not permitted. + Specifies the id of the job. Wildcards are not permitted. String @@ -531,23 +524,23 @@ none - WorkItem + JobSchedule - Specifies the PSCloudWorkItem object representing the work item which contains the jobs. Use the Get-AzureBatchWorkItem cmdlet to get a PSCloudWorkItem object. + Specifies the PSCloudJobSchedule object representing the job schedule which contains the jobs. Use the Get-AzureBatchJobSchedule cmdlet to get a PSCloudJobSchedule object. - PSCloudWorkItem + PSCloudJobSchedule - PSCloudWorkItem + PSCloudJobSchedule none - - WorkItemName + + JobScheduleId - Specifies the name of the work item which contains the jobs. + Specifies the id of the job schedule which contains the jobs. - String + String String @@ -592,33 +585,37 @@ - Example 1: Get a batch job by work item name + Example 1: Get a Batch job by id - PS C:\>Get-AzureBatchJob -WorkItemName "MyWorkItem" -Name "Job01" -BatchContext $Context + PS C:\>Get-AzureBatchJob -Id "Job01" -BatchContext $Context - CreationTime : 3/24/2015 10:08:18 PM + 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 - JobConstraints : - JobManager : - KeepAlive : - LastModified : 3/24/2015 10:08:18 PM - Name : Job01 - PoolLifeTimeOption : Invalid - PoolName : myPool - PreviousState : Invalid - PreviousStateTransitionTime : - Priority : + 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 : 3/24/2015 10:08:18 PM - Statistics : - Url : https://contoso.batch-test.windows-int.net/workitems/myWorkItem/jobs/Job01 + StateTransitionTime : 7/25/2015 9:12:07 PM + Statistics : + Url : https://cmdletexample.westus.batch.azure.com/jobs/Job01 - This command gets the batch job named Job01 under the work item named MyWorkItem. + This command gets the job with id Job01. @@ -629,33 +626,37 @@ - Example 2: Get all active batch jobs under a specified work item name + Example 2: Get all active jobs under a specified job schedule - PS C:\>Get-AzureBatchJob -WorkItemName "MyWorkItem" -Filter "state eq 'active'" -BatchContext $Context + PS C:\>Get-AzureBatchJob -JobScheduleId "MyJobSchedule" -Filter "state eq 'active'" -BatchContext $Context - CreationTime : 3/24/2015 10:08:18 PM + 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 - JobConstraints : - JobManager : - KeepAlive : - LastModified : 3/24/2015 10:08:18 PM - Name : job-0000000001 - PoolLifeTimeOption : Invalid - PoolName : myPool - PreviousState : Invalid - PreviousStateTransitionTime : - Priority : + 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 : 3/24/2015 10:08:18 PM - Statistics : - Url : https://contoso.batch-test.windows-int.net/workitems/myWorkItem/jobs/job-0000000001 + StateTransitionTime : 7/25/2015 9:15:44 PM + Statistics : + Url : https://cmdletexample.westus.batch.azure.com/jobs/MyJobSchedule:job-1 - This command gets the active batch jobs under the work item named MyWorkItem. + This command gets the active jobs under the job schedule with id MyJobSchedule. @@ -666,32 +667,36 @@ - Example 3: Gets all batch jobs under a named work item + Example 3: Gets all jobs under a job schedule using pipelining - PS C:\>Get-AzureBatchWorkItem -Name "MyWorkItem" -BatchContext $Context | Get-AzureBatchJob -BatchContext $Context - CreationTime : 3/24/2015 10:08:18 PM + 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 - JobConstraints : - JobManager : - KeepAlive : - LastModified : 3/24/2015 10:08:18 PM - Name : job-0000000001 - PoolLifeTimeOption : Invalid - PoolName : myPool - PreviousState : Invalid - PreviousStateTransitionTime : - Priority : + 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 : 3/24/2015 10:08:18 PM - Statistics : - Url : https://contoso.batch-test.windows-int.net/workitems/myWorkItem/jobs/job01 + StateTransitionTime : 7/25/2015 9:15:44 PM + Statistics : + Url : https://cmdletexample.westus.batch.azure.com/jobs/MyJobSchedule:job-1 - This command gets all batch jobs under the work item named MyWorkItem. + This command gets all jobs under the job schedule with id MyJobSchedule. @@ -708,7 +713,7 @@ - Get-AzureBatchWorkItem + Get-AzureBatchJobSchedule @@ -717,7 +722,7 @@ Get-AzureBatchPool - Gets Azure batch pools under the specified batch account. + Gets Azure Batch pools under the specified Batch account. @@ -727,7 +732,7 @@ - The Get-AzureBatchPool cmdlet gets the Azure batch pools under the batch account specified with the BatchContext parameter. You can use the Name parameter to get a single pool, or you can use the Filter parameter to get the pools 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. @@ -735,7 +740,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 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 @@ -756,7 +761,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 to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext @@ -764,9 +769,9 @@ Get-AzureBatchPool - Name + Id - Specifies the name of the pool to retrieve. Wildcards are not permitted. + Specifies the id of the pool to retrieve. Wildcards are not permitted. String @@ -780,7 +785,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 to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext @@ -790,7 +795,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 to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext @@ -802,7 +807,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 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 @@ -824,9 +829,9 @@ none - Name + Id - Specifies the name of the pool to retrieve. Wildcards are not permitted. + Specifies the id of the pool to retrieve. Wildcards are not permitted. String @@ -885,43 +890,45 @@ - Example 1: Get a pool by name + Example 1: Get a pool by id - PS C:\>Get-AzureBatchPool -Name "MyPool" -BatchContext $Context + PS C:\>Get-AzureBatchPool -Id "MyPool" -BatchContext $Context - AllocationState : Resizing - AllocationStateTransitionTime : 3/24/2015 10:02:46 PM - AutoScaleFormula : - AutoScaleRun : - CertificateReferences : - Communication : False - CreationTime : 3/24/2015 10:02:46 PM - CurrentDedicated : 0 - CurrentOSVersion : * - AutoScaleEnabled : False - LastModified : 3/24/2015 10:02:46 PM - MaxTasksPerVM : 1 - Metadata : - Name : MyPool - OSFamily : 4 - ResizeError : - ResizeTimeout : 00:05:00 - SchedulingPolicy : microsoft.Azure.Commands.Batch.Models.PSSchedulingPolicy - StartTask : - State : Active - StateTransitionTime : 3/24/2015 10:02:46 PM - Statistics : - TargetDedicated : 3 - TargetOSVersion : * - VMSize : small - Url : https://cmdletexample.batch-test.windows-int.net/pools/myPool + 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 pool named MyPool. + This command gets the pool with id MyPool. @@ -932,69 +939,44 @@ - Example 2: Get all pools that filter by name + Example 2: Get all pools using an OData filter - PS C:\>Get-AzureBatchPool -Filter "startswith(name,'My')" -BatchContext $Context - AllocationState : Steady - AllocationStateTransitionTime : 3/24/2015 10:04:55 PM - AutoScaleFormula : - AutoScaleRun : - CertificateReferences : - Communication : False - CreationTime : 3/24/2015 10:02:46 PM - CurrentDedicated : 3 - CurrentOSVersion : * - AutoScaleEnabled : False - LastModified : 3/24/2015 10:02:46 PM - MaxTasksPerVM : 1 - Metadata : - Name : MyPool - OSFamily : 4 - ResizeError : - ResizeTimeout : 00:05:00 - SchedulingPolicy : Microsoft.Azure.Commands.Batch.Models.PSSchedulingPolicy - StartTask : - State : Active - StateTransitionTime : 3/24/2015 10:02:46 PM - Statistics : - TargetDedicated : 3 - TargetOSVersion : * - VMSize : small - Url : https://cmdletexample.batch-test.windows-int.net/pools/MyPool - - AllocationState : Resizing - AllocationStateTransitionTime : 3/24/2015 10:04:55 PM - AutoScaleFormula : - AutoScaleRun : - CertificateReferences : - Communication : False - CreationTime : 3/24/2015 10:04:55 PM - CurrentDedicated : 0 - CurrentOSVersion : * - AutoScaleEnabled : False - LastModified : 3/24/2015 10:04:55 PM - MaxTasksPerVM : 1 - Metadata : - Name : MyPool2 - OSFamily : 4 - ResizeError : - ResizeTimeout : 00:05:00 - SchedulingPolicy : Microsoft.Azure.Commands.Batch.Models.PSSchedulingPolicy - StartTask : - State : Active - StateTransitionTime : 3/24/2015 10:04:55 PM - Statistics : - TargetDedicated : 3 - TargetOSVersion : * - VMSize : small - Url : https://cmdletexample.batch-test.windows-int.net/pools/myPool2 + 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 pools whose names start with My by using the Filter parameter. + This command gets the pools whose ids start with My by using the Filter parameter. @@ -1022,34 +1004,34 @@ - Get-AzureBatchRDPFile + Get-AzureBatchRemoteDesktopProtocolFile - Gets a Remote Desktop Protocol (RDP) file from the specified virtual machine. + Gets a Remote Desktop Protocol file from the specified compute node. Get - AzureBatchRDPFile + AzureBatchRemoteDesktopProtocolFile - The Get-AzureBatchRDPFile cmdlet gets a Remote Desktop Protocol (RDP) file from the specified virtual machine and saves it to the specified file location or to the user supplied stream. + 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. - Get-AzureBatchRDPFile + Get-AzureBatchRemoteDesktopProtocolFile - PoolName + PoolId - Specifies the name of the pool containing the virtual machine. + Specifies the id of the pool containing the compute node. String - VMName + ComputeNodeId - Specifies the name of the virtual machine to which the RDP file will point. + Specifies the id of the compute node to which the Remote Desktop Protocol file will point. String @@ -1063,31 +1045,31 @@ 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 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 - Specifies the file path where the RDP file is saved. + Specifies the file path where the Remote Desktop Protocol file is saved. String - Get-AzureBatchRDPFile + Get-AzureBatchRemoteDesktopProtocolFile - PoolName + PoolId - Specifies the name of the pool containing the virtual machine. + Specifies the id of the pool containing the compute node. String - VMName + ComputeNodeId - Specifies the name of the virtual machine to which the RDP file will point. + Specifies the id of the compute node to which the Remote Desktop Protocol file will point. String @@ -1101,26 +1083,26 @@ 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 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 DestinationStream - Specifies the stream into which the RDP file data is saved. This stream will not be closed or rewound by this call. + 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-AzureBatchRDPFile + Get-AzureBatchRemoteDesktopProtocolFile - VM + ComputeNode - Specifies the PSVM object representing the virtual machine in which the RDP file will point. You can use the Get-AzureBatchVM cmdlet to get a PSVM object. + 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. - PSVM + PSComputeNode Profile @@ -1132,26 +1114,26 @@ 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 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 - Specifies the file path where the RDP file is saved. + Specifies the file path where the Remote Desktop Protocol file is saved. String - Get-AzureBatchRDPFile + Get-AzureBatchRemoteDesktopProtocolFile - VM + ComputeNode - Specifies the PSVM object representing the virtual machine in which the RDP file will point. You can use the Get-AzureBatchVM cmdlet to get a PSVM object. + 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. - PSVM + PSComputeNode Profile @@ -1163,14 +1145,14 @@ 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 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 DestinationStream - Specifies the stream into which the RDP file data is saved. This stream will not be closed or rewound by this call. + 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 @@ -1180,7 +1162,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 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 @@ -1192,7 +1174,7 @@ DestinationPath - Specifies the file path where the RDP file is saved. + Specifies the file path where the Remote Desktop Protocol file is saved. String @@ -1204,7 +1186,7 @@ DestinationStream - Specifies the stream into which the RDP file data is saved. This stream will not be closed or rewound by this call. + 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 @@ -1214,9 +1196,9 @@ none - PoolName + PoolId - Specifies the name of the pool containing the virtual machine. + Specifies the id of the pool containing the compute node. String @@ -1238,21 +1220,21 @@ none - VM + ComputeNode - Specifies the PSVM object representing the virtual machine in which the RDP file will point. You can use the Get-AzureBatchVM cmdlet to get a PSVM object. + 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. - PSVM + PSComputeNode - PSVM + PSComputeNode none - VMName + ComputeNodeId - Specifies the name of the virtual machine to which the RDP file will point. + Specifies the id of the compute node to which the Remote Desktop Protocol file will point. String @@ -1300,16 +1282,16 @@ - Example 1: Get an RDP file from a specified virtual machine and save it to the specified path + Example 1: Get a Remote Desktop Protocol file from a specified compute node and save it to the specified path - PS C:\>Get-AzureBatchRDPFile -PoolName "MyPool" -VMName "MyVM" -DestinationPath "C:\PowerShell\vm.rdp" -BatchContext $Context + PS C:\>Get-AzureBatchRemoteDesktopProtocolFile -PoolId "MyPool" -ComputeNodeId "MyComputeNode" -DestinationPath "C:\PowerShell\MyComputeNode.rdp" -BatchContext $Context - This command gets an RDP file from the virtual machine named MyVM in the pool named MyPool. The file is saved to a file named C:\PowerShell\vm.rdp. + 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. @@ -1320,16 +1302,16 @@ - Example 2: Get an RDP file from a specified virtual machine and save it to the specified path + Example 2: Get a Remote Desktop Protocol file from a specified compute node and save it to the specified path - PS C:\>Get-AzureBatchVM -PoolName "MyPool" -Name "MyVM02" -BatchContext $Context | Get-AzureBatchRDPFile -DestinationPath "C:\PowerShell\vm.rdp" -BatchContext $Context + PS C:\>Get-AzureBatchComputeNode -PoolId "MyPool" -Id "MyComputeNode02" -BatchContext $Context | Get-AzureBatchRemoteDesktopProtocolFile -DestinationPath "C:\PowerShell\MyComputeNode02.rdp" -BatchContext $Context - This command gets an RDP file from the virtual machine named MyVM02 in the pool named MyPool. The file is saved to a file named C:\PowerShell\vm.rdp. + 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. @@ -1340,16 +1322,16 @@ - Example 3: Get an RDP file from a specified virtual machine and save it to the specified stream + Example 3: Get a Remote Desktop Protocol file from a specified compute node and save it to the supplied stream - PS C:\>$Stream = New-Object System.IO.MemoryStream; Get-AzureBatchRDPFile "MyPool" -Name "MyVM03" -DestinationStream $Stream -BatchContext $Context + PS C:\>$Stream = New-Object System.IO.MemoryStream; Get-AzureBatchRemoteDesktopProtocolFile "MyPool" -ComputeNodeId "MyComputeNode03" -DestinationStream $Stream -BatchContext $Context - This command gets an RDP file from the virtual machine named MyVM03 in the pool named MyPool. The file contents are then copied to the user supplied Stream. + 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. @@ -1366,7 +1348,7 @@ - Get-AzureBatchVM + Get-AzureBatchComputeNode @@ -1377,48 +1359,41 @@ - Get-AzureBatchTaskFileContent + Get-AzureBatchNodeFileContent - Gets the specified Azure batch task file. + Downloads the specified Azure Batch node file. Get - AzureBatchTaskFileContent + AzureBatchNodeFileContent - The Get-AzureBatchTaskFileContent cmdlet gets the specified Azure batch task file and saves it to the specified file location or to the user supplied stream. + 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. - Get-AzureBatchTaskFileContent + Get-AzureBatchNodeFileContent - WorkItemName + PoolId - Specifies the name of the work item which contains the specified target task. + Specifies the id of the pool containing the compute node. String - - JobName - - Specifies the name of the job containing the specified target task. - - String - - - TaskName + + ComputeNodeId - Specifies the name of the task. + Specifies the id of the compute node containing the node file. String - + Name - Specifies the name of the task file to download. You cannot specify wildcards. + Specifies the name of the node file to download. You cannot use wildcards. String @@ -1432,45 +1407,128 @@ 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 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 - Specifies the file path where the task file will be saved. + Specifies the file path where the node file will be downloaded. String - Get-AzureBatchTaskFileContent + Get-AzureBatchNodeFileContent - WorkItemName + PoolId - Specifies the name of the work item which contains the specified target task. + Specifies the id of the pool containing the compute node. String - JobName + ComputeNodeId - Specifies the name of the job containing the specified target task. + Specifies the id of the compute node containing the node file. String - TaskName + 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. + + 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 + + + DestinationStream + + Specifies the stream into which the node file contents will be written. This stream will not be closed or rewound by this call. + + Stream + + + + Get-AzureBatchNodeFileContent + + JobId + + Specifies the id of the job containing the specified target task. + + String + + + TaskId + + Specifies the id of the task. + + String + + + Name + + Specifies the name of the node file to download. You cannot specify 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. + + 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 + + Specifies the file path where the node file will be saved. + + String + + + + Get-AzureBatchNodeFileContent + + JobId - Specifies the name of the task. + Specifies the id of the job containing the specified target task. String - + + TaskId + + Specifies the id of the task. + + String + + Name - Specifies the name of the task file to download. You cannot specify wildcards. + Specifies the name of the node file to download. You cannot specify wildcards. String @@ -1484,26 +1542,26 @@ 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 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 DestinationStream - Specifies the Stream into which the Virtual Machine file contents will be written. This stream will not be closed or rewound by this call. + Specifies the Stream into which the node file contents will be written. This stream will not be closed or rewound by this call. Stream - Get-AzureBatchTaskFileContent + Get-AzureBatchNodeFileContent InputObject - Specifies the PSTaskFile object representing the file to download. You can use the Get-AzureBatchTaskFile cmdlet to get a PSTaskFile object. + Specifies the PSNodeFile object representing the file to download. You can use the Get-AzureBatchNodeFile cmdlet to get a PSNodeFile object. - PSTaskFile + PSNodeFile Profile @@ -1515,26 +1573,26 @@ 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 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 - Specifies the file path where the task file will be saved. + Specifies the file path where the node file will be saved. String - Get-AzureBatchTaskFileContent + Get-AzureBatchNodeFileContent InputObject - Specifies the PSTaskFile object representing the file to download. You can use the Get-AzureBatchTaskFile cmdlet to get a PSTaskFile object. + Specifies the PSNodeFile object representing the file to download. You can use the Get-AzureBatchNodeFile cmdlet to get a PSNodeFile object. - PSTaskFile + PSNodeFile Profile @@ -1546,14 +1604,14 @@ 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 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 DestinationStream - Specifies the Stream into which the Virtual Machine file contents will be written. This stream will not be closed or rewound by this call. + Specifies the Stream into which the node file contents will be written. This stream will not be closed or rewound by this call. Stream @@ -1563,7 +1621,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 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 @@ -1572,10 +1630,22 @@ none + + ComputeNodeId + + Specifies the id of the compute node containing the node file. + + String + + String + + + none + DestinationPath - Specifies the file path where the task file will be saved. + Specifies the file path where the node file will be saved. String @@ -1587,7 +1657,7 @@ DestinationStream - Specifies the Stream into which the Virtual Machine file contents will be written. This stream will not be closed or rewound by this call. + Specifies the Stream into which the node file contents will be written. This stream will not be closed or rewound by this call. Stream @@ -1596,22 +1666,22 @@ none - + InputObject - Specifies the PSTaskFile object representing the file to download. You can use the Get-AzureBatchTaskFile cmdlet to get a PSTaskFile object. + Specifies the PSNodeFile object representing the file to download. You can use the Get-AzureBatchNodeFile cmdlet to get a PSNodeFile object. - PSTaskFile + PSNodeFile - PSTaskFile + PSNodeFile none - - JobName + + JobId - Specifies the name of the job containing the specified target task. + Specifies the id of the job containing the specified target task. String @@ -1620,10 +1690,10 @@ none - + Name - Specifies the name of the task file to download. You cannot specify wildcards. + Specifies the name of the node file to download. You cannot specify wildcards. String @@ -1644,24 +1714,24 @@ none - - TaskName + + PoolId - Specifies the name of the task. + Specifies the id of the pool containing the compute node. - String + String String none - - WorkItemName + + TaskId - Specifies the name of the work item which contains the specified target task. + Specifies the id of the task. - String + String String @@ -1707,16 +1777,76 @@ - Example 1: Get a batch task file and save it to a specified file path + Example 1: Get a Batch node file associated with a task and save it to a specified file path + + + + + + PS C:\>Get-AzureBatchNodeFileContent -JobId "Job01" -TaskId "MyTask01" -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. + + + + + + + + + + + Example 2: Get a Batch node file and save it to a specified file path using pipelining + + + + + + PS C:\>Get-AzureBatchNodeFile -JobId "Job02" -TaskId "MyTask02" -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. + + + + + + + + + + + Example 3: Get a Batch node file associated with a task and save it to a specified stream + + + + + + PS C:\>$Stream = New-Object System.IO.MemoryStream; Get-AzureBatchNodeFileContent -JobId "Job03" -TaskId "MyTask11" -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. + + + + + + + + + + + Example 4: Get a node file from a compute node and save it to a specified path - PS C:\>Get-AzureBatchTaskFileContent -WorkItemName "MyWorkItem" -JobName "Job01" -TaskName "MyTask01" -Name "StdOut.txt" -DestinationPath "E:\PowerShell\StdOut.txt" -BatchContext $Context + PS C:\>Get-AzureBatchNodeFileContent -PoolId "MyPool" -ComputeNodeId "ComputeNode01" -Name "Startup\StdOut.txt" -DestinationPath "E:\PowerShell\StdOut.txt" -BatchContext $Context - This command gets the task file named StdOut.txt and saves it to the E:\PowerShell\StdOut.txt file path on the local computer. The StdOut.txt task file is associated with task MyTask01 under job Job01 under work item MyWorkItem. + 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. @@ -1727,16 +1857,16 @@ - Example 2: Get a batch task file and save it to a specified file path + Example 5: Get a node file from a compute node and save it to a specified path using pipelining - PS C:\>Get-AzureBatchTaskFile -WorkItemName "MyWorkItem" -JobName "Job02" -TaskName "MyTask02" "StdErr.txt" -BatchContext $Context | Get-AzureBatchTaskFileContent -DestinationPath "E:\PowerShell\StdOut.txt" -BatchContext $Context + PS C:\>Get-AzureBatchNodeFile -PoolId "MyPool" -ComputeNodeId "ComputeNode01" -Name "Startup\StdOut.txt" -BatchContext $Context | Get-AzureBatchNodeFileContent -DestinationPath "E:\PowerShell\StdOut.txt" -BatchContext $Context - This command gets the task file named StdErr.txt and saves it to the E:\PowerShell\StdOut.txt file path on the local computer. The StdOut.txt task file is associated with task MyTask02 under job Job02 under work item MyWorkItem. + 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. @@ -1747,16 +1877,16 @@ - Example 3: Get a batch task file and save it to a specified stream + Example 6: Get a node file from a compute node and save it to a specified stream - PS C:\>$Stream = New-Object System.IO.MemoryStream; Get-AzureBatchTaskFileContent -WorkItemName "MyWorkItem" -JobName "Job03" -TaskName "MyTask11" "stdout.txt" -DestinationStream $Stream -BatchContext $Context + PS C:\>$Stream = New-Object System.IO.MemoryStream; Get-AzureBatchNodeFileContent -PoolId "MyPool" -ComputeNodeId "ComputeNode01" -Name "startup\stdout.txt" -DestinationStream $Stream -BatchContext $Context - This command gets the task file named StdOut.txt from the task named"MyTask11" under job Job03 under work item MyWorkItem. The file contents are saved to the user supplied stream. + 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. @@ -1769,17 +1899,13 @@ - Get-AzureBatchTaskFile + Get-AzureBatchNodeFile Get-AzureBatchAccountKeys - - Get-AzureBatchTaskFile - - Azure Batch Cmdlets @@ -1788,55 +1914,48 @@ - Get-AzureBatchTaskFile + Get-AzureBatchNodeFile - Gets the properties of the files associated with the specified Azure batch task. + Gets the properties of the Azure Batch node files of the specified task or compute node. Get - AzureBatchTaskFile + AzureBatchNodeFile - The Get-AzureBatchTaskFile cmdlet gets the properties of the files associated with the Azure batch task specified by either the WorkItemName, JobName, and TaskName parameters or the Task parameter. You can use the Name parameter to get a single task file, or you can use the Filter parameter to get the task files that match an OData filter. You can use the Recursive parameter to perform a recursive list of all files of the task. + The Get-AzureBatchNodeFile cmdlet gets the properties of the Azure Batch node files of the specified task or compute node. - Get-AzureBatchTaskFile - - WorkItemName - - Specifies the name of the work item which contains the specified target task. - - String - - - JobName + Get-AzureBatchNodeFile + + JobId - Specifies the name of the job containing the specified target task. + Specifies the id of the job containing the specified target task. String - - TaskName + + TaskId - Specifies the name of the task. + Specifies the id of the task. String Filter - Specifies the OData filter clause to use when querying for task files. If you do not specify a filter, then all task files associated with the task specified with either the WorkItemName, JobName, and TaskName parameters or the Task parameter will be returned. + 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 MaxCount - Specifies the maximum number of task 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 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. Int32 @@ -1850,44 +1969,37 @@ Recursive - Indicates that a recursive list of files from the task are returned. Otherwise, returns only the files at the task directory root. + Indicates that a recursive list of files is returned. Otherwise, returns only the files at the directory root. 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 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-AzureBatchTaskFile - - WorkItemName - - Specifies the name of the work item which contains the specified target task. - - String - - - JobName + Get-AzureBatchNodeFile + + JobId - Specifies the name of the job containing the specified target task. + Specifies the id of the job containing the specified target task. String - - TaskName + + TaskId - Specifies the name of the task. + Specifies the id of the task. String - + Name - Specifies the name of the task file to retrieve. You cannot use wildcards. + Specifies the name of the node file to retrieve. You cannot use wildcards. String @@ -1901,31 +2013,31 @@ 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 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-AzureBatchTaskFile + Get-AzureBatchNodeFile Task - Specifies the PSCloudTask object representing the task that the task files are associated with. Use the Get-AzureBatchTask cmdlet to get a PSCloudTask object. + Specifies the PSCloudTask object representing the task that the node files are associated with. Use the Get-AzureBatchTask cmdlet to get a PSCloudTask object. PSCloudTask Filter - Specifies the OData filter clause to use when querying for task files. If you do not specify a filter, then all task files associated with the task specified with either the WorkItemName, JobName, and TaskName parameters or the Task parameter will be returned. + 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 MaxCount - Specifies the maximum number of task 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 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. Int32 @@ -1939,72 +2051,241 @@ Recursive - Indicates that a recursive list of files from the task are returned. Otherwise, returns only the files at the task directory root. + Indicates that a recursive list of files is returned. Otherwise, returns only the files at the directory root. 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 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 - - 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 - - - Filter - - Specifies the OData filter clause to use when querying for task files. If you do not specify a filter, then all task files associated with the task specified with either the WorkItemName, JobName, and TaskName parameters or the Task parameter will be returned. - - String - - String - - - none - - - JobName - - Specifies the name of the job containing the specified target task. - - String - - String - - - none - - - MaxCount - - Specifies the maximum number of task 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. - - Int32 - - Int32 - - - none - - - Name - - Specifies the name of the task file to retrieve. You cannot use wildcards. - + + Get-AzureBatchNodeFile + + PoolId + + Specifies the id of the pool that contains the compute node. + + String + + + ComputeNodeId + + Specifies the id of the compute node that contains the 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. + + 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. + + 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. + + BatchAccountContext + + + + Get-AzureBatchNodeFile + + PoolId + + Specifies the id of the pool that contains the compute node. + + String + + + Name + + Specifies the name of the file to retrieve from the compute node. 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. + + AzureProfile + + + ComputeNodeId + + Specifies the id of the compute node that contains the files. + + 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. + + 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. + + BatchAccountContext + + BatchAccountContext + + + none + + + 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 + + PSComputeNode + + + none + + + ComputeNodeId + + Specifies the id of the compute node that contains the files. + + String + + String + + + none + + + 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 + + String + + + none + + + JobId + + Specifies the id of the job containing the specified target task. + + String + + String + + + none + + + 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. + + Int32 + + Int32 + + + none + + + Name + + Specifies the name of the node file to retrieve. You cannot use wildcards. + + String + + String + + + none + + + PoolId + + Specifies the id of the pool that contains the compute node. + String String @@ -2027,7 +2308,7 @@ Recursive - Indicates that a recursive list of files from the task are returned. Otherwise, returns only the files at the task directory root. + Indicates that a recursive list of files is returned. Otherwise, returns only the files at the directory root. SwitchParameter @@ -2039,7 +2320,7 @@ Task - Specifies the PSCloudTask object representing the task that the task files are associated with. Use the Get-AzureBatchTask cmdlet to get a PSCloudTask object. + Specifies the PSCloudTask object representing the task that the node files are associated with. Use the Get-AzureBatchTask cmdlet to get a PSCloudTask object. PSCloudTask @@ -2049,21 +2330,9 @@ none - TaskName - - Specifies the name of the task. - - String - - String - - - none - - - WorkItemName + TaskId - Specifies the name of the work item which contains the specified target task. + Specifies the id of the task. String @@ -2093,7 +2362,7 @@ - PSTaskFile + PSNodeFile @@ -2110,22 +2379,22 @@ - Example 1: Get the properties of an Azure batch task file by job name and work item name + Example 1: Get the properties of an Azure Batch node file associated with a task - PS C:\>Get-AzureBatchTaskFile -WorkItemName "MyWorkItem" -JobName "Job-000001" -TaskName "MyTask" -Name "Stdout.txt" -BatchContext $Context + PS C:\>Get-AzureBatchNodeFile -JobId "Job-000001" -TaskId "MyTask" -Name "Stdout.txt" -BatchContext $Context IsDirectory Name Properties Url ----------- ---- ---------- --- - False StdOut.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.batch-test.contoso-in... + False StdOut.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.westus.Batch.contoso... - This command gets the properties of the StdOut.txt task file associated with the task named MyTask in job Job-000001 under work item MyWorkItem. + This command gets the properties of the StdOut.txt node file associated with the task with id MyTask in job Job-000001. @@ -2136,23 +2405,23 @@ - Example 2: Get the properties of all Azure batch task files by job name and work item name that start with filter + Example 2: Get the properties of all Azure Batch node files associated with a task using a filter - PS C:\>Get-AzureBatchTaskFile -WorkItemName "myWorkItem" -JobName "Job-00002" -TaskName "MyTask" -Filter "startswith(name,'St')" -BatchContext $Context + PS C:\>Get-AzureBatchNodeFile -JobId "Job-00002" -TaskId "MyTask" -Filter "startswith(name,'St')" -BatchContext $Context IsDirectory Name Properties Url ----------- ---- ---------- --- - False StdErr.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.batch-test.contoso-in... - False StdOut.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.batch-test.contoso-in... + 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 task files whose names start with st and are associated with task MyTask under job Job-00002 under work item MyWorkItem. + This command gets the properties of the node files whose names start with st and are associated with task MyTask under job Job-00002. @@ -2163,27 +2432,105 @@ - Example 3: Recursively get the properties of all Azure batch task files by job name and work item name + Example 3: Recursively get the properties of all Azure Batch node files associated with a task - PS C:\>Get-AzureBatchTask "MyWorkItem" "Job-00003" "MyTask3" -BatchContext $Context | Get-AzureBatchTaskFile -Recursive -BatchContext $Context + PS C:\>Get-AzureBatchTask "Job-00003" "MyTask3" -BatchContext $Context | Get-AzureBatchNodeFile -Recursive -BatchContext $Context IsDirectory Name Properties Url ----------- ---- ---------- --- - False ProcessEnv.cmd Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.batch-test.condtoso-in... - False StdErr.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.batch-test.contoso-in... - False StdOut.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.batch-test.contoso-in... - True wd https://cmdletexample.batch-test.contoso-in... - False wd\newFile.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.batch-test.contoso-in... + 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. + + + + + + + + + + + Example 4: Get a single file from a compute node in a specified pool + + + + + + 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... + + + + This command gets the file named Startup\StdOut.txt from the compute node with id ComputeNode01 in the pool MyPool. + + + + + + + + + + + Example 5: Get all files under a specific directory from a compute node in a specified pool + + + + + + 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... + + + + This command gets all the files under the startup directory from the compute node with id ComputeNode01 in pool MyPool. + + + + + + + + + + + Example 6: Get all files from the root directory of a specific 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... - This command gets the properties of all files associated with the task named MyTask3 in job Job-00003 under work item MyWorkItem. Since the Recursive parameter is present, a recursive file search is performed, and the wd\newFile.txt task file is returned. + This command gets all the files at the root directory of the compute node with id ComputeNode01 in the pool with id MyPool. @@ -2203,6 +2550,10 @@ Get-AzureBatchTask + + Get-AzureBatchComputeNode + + Azure Batch Cmdlets @@ -2213,7 +2564,7 @@ Get-AzureBatchTask - Gets the Azure batch tasks for the specified job. + Gets the Azure Batch tasks for the specified job. @@ -2223,29 +2574,22 @@ - The Get-AzureBatchTask cmdlet gets the Azure batch tasks for the job specified by either the WorkItemName and JobName parameters or the Job parameter. You can use the Name parameter to get a single task, or you can use the Filter parameter to get the tasks 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-AzureBatchTask - - WorkItemName - - Specifies the name of the work item which contains the tasks. - - String - - - JobName + + JobId - Specifies the name of the job which contains the tasks. + Specifies the id of the job which contains the tasks. String 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 WorkItemName and JobName parameters or the Job 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 @@ -2266,7 +2610,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 to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext @@ -2274,23 +2618,16 @@ Get-AzureBatchTask - WorkItemName - - Specifies the name of the work item which contains the tasks. - - String - - - JobName + JobId - Specifies the name of the job which contains the tasks. + Specifies the id of the job which contains the tasks. String - - Name + + Id - Specifies the name of the task to retrieve. Wildcards are not permitted. + Specifies the id of the task to retrieve. Wildcards are not permitted. String @@ -2304,7 +2641,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 to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext @@ -2321,7 +2658,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 WorkItemName and JobName parameters or the Job 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 @@ -2342,7 +2679,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 to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext @@ -2352,7 +2689,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 to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext @@ -2364,7 +2701,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 WorkItemName and JobName parameters or the Job 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 @@ -2386,9 +2723,9 @@ none - JobName + JobId - Specifies the name of the job which contains the tasks. + Specifies the id of the job which contains the tasks. String @@ -2410,9 +2747,9 @@ none - Name + Id - Specifies the name of the task to retrieve. Wildcards are not permitted. + Specifies the id of the task to retrieve. Wildcards are not permitted. String @@ -2433,18 +2770,6 @@ none - - WorkItemName - - Specifies the name of the work item which contains the tasks. - - String - - String - - - none - @@ -2483,34 +2808,36 @@ - Example 1: Get a task by name in a specified job that is contained in a specified work item + Example 1: Get a task by id - PS C:\>Get-AzureBatchTask -WorkItemName "MyWorkItem" -JobName "Job-0000001" -Name "MyTask" -BatchContext $Context + PS C:\>Get-AzureBatchTask -JobId "Job01" -Id "MyTask" -BatchContext $Context - AffinityInformation : + AffinityInformation : CommandLine : cmd /c dir /s - CreationTime : 3/24/2015 10:21:51 PM - EnvironmentSettings : + 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 - LastModified : 3/24/2015 10:21:51 PM - Name : myTask + Id : MyTask + LastModified : 7/25/2015 11:24:52 PM PreviousState : Running - PreviousStateTransitionTime : 3/24/2015 10:22:00 PM + PreviousStateTransitionTime : 7/25/2015 11:24:59 PM + ResourceFiles : RunElevated : False State : Completed - StateTransitionTime : 3/24/2015 10:22:00 PM - Statistics : - TaskConstraints : Microsoft.Azure.Commands.Batch.Models.PSTaskConstraints - Url : https://cmdletexample.batch-test.windows-int.net/workitems/myWorkItem/jobs/job-0000000001/tasks/myTask - VMInformation : Microsoft.Azure.Commands.Batch.Models.PSVMInformation - ResourceFiles : + 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 named MyTask in job Job-0000001 under work item MyWorkItem. + This command gets the task with id MyTask under job Job01. @@ -2521,51 +2848,53 @@ - Example 2: Get all completed tasks from a specified job name in a specified work item + Example 2: Get all completed tasks from a specified job - PS C:\>Get-AzureBatchTask -WorkItemName "MyWorkItem" -JobName "Job-0000002" -Filter "state eq 'completed'" -BatchContext $Context + 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 - Name : myTask PreviousState : Running PreviousStateTransitionTime : 3/24/2015 10:22:00 PM + ResourceFiles : RunElevated : False State : Completed StateTransitionTime : 3/24/2015 10:22:00 PM Statistics : - TaskConstraints : Microsoft.Azure.Commands.Batch.Models.PSTaskConstraints - Url : https://cmdletexample.batch-test.windows-int.net/workitems/myWorkItem/jobs/job-0000000001/tasks/myTask - VMInformation : Microsoft.Azure.Commands.Batch.Models.PSVMInformation - ResourceFiles : + Url : https://cmdletexample.westus.batch.azure.com/jobs/Job02/tasks/MyTask AffinityInformation : CommandLine : cmd /c echo hello > newFile.txt - CreationTime : 3/24/2015 10:23:35 PM + 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 - Name : myTask2 PreviousState : Running PreviousStateTransitionTime : 3/24/2015 10:23:37 PM + ResourceFiles : RunElevated : True State : Completed StateTransitionTime : 3/24/2015 10:23:37 PM Statistics : - TaskConstraints : Microsoft.Azure.Commands.Batch.Models.PSTaskConstraints - Url : https://cmdletexample.batch-test.windows-int.net/workitems/myWorkItem/jobs/job-0000000001/tasks/myTask2 - VMInformation : Microsoft.Azure.Commands.Batch.Models.PSVMInformation - ResourceFiles : + Url : https://cmdletexample.westus.batch.azure.com/jobs/Job02/tasks/MyTask2 - This command gets the completed tasks from the job named Job-0000002 under work item MyWorkItem. + This command gets the completed tasks from the job with id Job02. @@ -2597,43 +2926,36 @@ - Get-AzureBatchVMFileContent + Get-AzureBatchComputeNode - Gets the specified Azure batch virtual machine file. + Gets Azure Batch compute nodes under the specified pool. Get - AzureBatchVMFileContent + AzureBatchComputeNode - The Get-AzureBatchVMFileContent cmdlet gets the specified Azure batch virtual machine file and saves it to the specified file location or to the user supplied stream. + 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. - Get-AzureBatchVMFileContent - - PoolName - - Specifies the name of the pool containing the virtual machine. - - String - - - VMName + Get-AzureBatchComputeNode + + Filter - Specifies the name of the virtual machine in which this cmdlet operates. + 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. String - - Name + + MaxCount - Specifies the name of the virtual machine file to download. You cannot use wildcards. + 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. - String + Int32 Profile @@ -2642,43 +2964,36 @@ 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 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 + + PoolId - Specifies the file path where the virtual machine file will be downloaded. + Specifies the id of the pool which contains the compute nodes. - String + String - Get-AzureBatchVMFileContent - - PoolName - - Specifies the name of the pool containing the virtual machine. - - String - - - VMName + Get-AzureBatchComputeNode + + PoolId - Specifies the name of the virtual machine in which this cmdlet operates. + Specifies the id of the pool which contains the compute nodes. String - - Name + + Id - Specifies the name of the virtual machine file to download. You cannot use wildcards. + Specifies the id of the compute node to retrieve from the pool. You cannot specify wildcards. - String + String Profile @@ -2687,60 +3002,36 @@ 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 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 - - DestinationStream - - Specifies the stream into which the virtual machine file contents will be written. This stream will not be closed or rewound by this call. - - Stream - - Get-AzureBatchVMFileContent + Get-AzureBatchComputeNode - InputObject + Pool - Specifies the PSVMFile object representing the file to download. You can use the Get-AzureBatchVMFile cmdlet to get a PSVMFile object. + Specifies the PSCloudPool object representing the pool which contains the compute nodes. You can use the Get-AzureBatchPool cmdlet to get a PSCloudPool object. - PSVMFile + PSCloudPool - 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 virtual machine file will be downloaded. + 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. - String + String - - - Get-AzureBatchVMFileContent - - InputObject + + MaxCount - Specifies the PSVMFile object representing the file to download. You can use the Get-AzureBatchVMFile cmdlet to get a PSVMFile object. + 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. - PSVMFile + Int32 Profile @@ -2752,24 +3043,17 @@ 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 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 - - DestinationStream - - Specifies the stream into which the virtual machine file contents will be written. 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 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 @@ -2778,60 +3062,60 @@ none - - DestinationPath + + Filter - Specifies the file path where the virtual machine file will be downloaded. + 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. - String + String String none - - DestinationStream + + MaxCount - Specifies the stream into which the virtual machine file contents will be written. This stream will not be closed or rewound by this call. + 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. - Stream + Int32 - Stream + Int32 none - - InputObject + + Id - Specifies the PSVMFile object representing the file to download. You can use the Get-AzureBatchVMFile cmdlet to get a PSVMFile object. + Specifies the id of the compute node to retrieve from the pool. You cannot specify wildcards. - PSVMFile + String - PSVMFile + String none - - Name + + Pool - Specifies the name of the virtual machine file to download. You cannot use wildcards. + Specifies the PSCloudPool object representing the pool which contains the compute nodes. You can use the Get-AzureBatchPool cmdlet to get a PSCloudPool object. - String + PSCloudPool - String + PSCloudPool none - - PoolName + + PoolId - Specifies the name of the pool containing the virtual machine. + Specifies the id of the pool which contains the compute nodes. - String + String String @@ -2850,18 +3134,6 @@ none - - VMName - - Specifies the name of the virtual machine in which this cmdlet operates. - - String - - String - - - none - @@ -2883,8 +3155,7 @@ - - + PSComputeNode @@ -2901,16 +3172,32 @@ - Example 1: Get a single file from a virtual machine and save it to a specified path + Example 1: Get a compute node by id from a specified pool - PS C:\>Get-AzureBatchVMFileContent -PoolName "MyPool" -VMName "VM01" -Name "Startup\StdOut.txt" -DestinationPath "E:\PowerShell\StdOut.txt" -BatchContext $Context + 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 : + - This command gets the Startup\StdOut.txt file and saves it to the E:\PowerShell\stdout.txt file path. The file is from the virtual machine named VM01 in the pool named MyPool. + This command gets the compute node with id tvm-2316545714_1-20150725t213220z from the pool with id MyPool. @@ -2921,16 +3208,47 @@ - Example 2: Get a single file from a virtual machine and save it to a specified path + Example 2: Get all idle compute nodes from a specified pool - PS C:\>Get-AzureBatchVMFile -PoolName "MyPool" -VMName "VM01" -Name "Startup\StdOut.txt" -BatchContext $Context | Get-AzureBatchVMFileContent -DestinationPath "E:\PowerShell\StdOut.txt" -BatchContext $Context + 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 : - This command gets the Startup\StdOut.txt file and saves it to the E:\PowerShell\StdOut.txt file path. The file is from the virtual machine named VM01 in the pool named MyPool. + This command gets all idle compute nodes contained in the pool with id MyPool. @@ -2941,16 +3259,47 @@ - Example 3: Get a single file from a virtual machine and save it to a specified stream + Example 3: Get all compute nodes in a specified pool - PS C:\>$Stream = New-Object System.IO.MemoryStream; Get-AzureBatchVMFileContent -PoolName "MyPool" -PoolName "VM01" -Name "startup\stdout.txt" -DestinationStream $Stream -BatchContext $Context + 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 : - This command gets the file Startup\StdOut.txt from the virtual machine named VM01 in the pool named MyPool. The file contents are saved to the user supplied stream. + This command gets all compute nodes from the pool with id MyPool. @@ -2963,19 +3312,15 @@ - Get-AzureBatchVM + Get-AzureBatchNodeFile - Get-AzureBatchVMFile - - - - Get-AzureBatchAccountKeys + Get-AzureBatchNodeFileContent - Get-AzureBatchVMFile + Get-AzureBatchPool @@ -2986,150 +3331,72 @@ - Get-AzureBatchVMFile + Get-AzureBatchJobSchedule - Gets the properties of the files associated with the specified Azure batch virtual machine. + Gets Azure Batch job schedules under the specified Batch account. Get - AzureBatchVMFile + AzureBatchJobSchedule - The Get-AzureBatchVMFile cmdlet gets the properties of the files associated with the Azure batch virtual machine specified by either the PoolName and VMName parameters or the VM parameter. You can use the Name parameter to get a single virtual machine file, or you can use the Filter parameter to get the virtual machine files that match an OData filter. You can use the Recursive parameter to perform a recursive list of all files of the virtual machine. + 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. - Get-AzureBatchVMFile - - PoolName - - Specifies the name of the pool that contains the virtual machine. - - String - - - VMName - - Specifies the name of the virtual machine that contains the files. - - String - + Get-AzureBatchJobSchedule Filter - Specifies the OData filter clause to use when querying for virtual machine files. If no filter is specified, then all virtual machine files on the virtual machine specified with either the PoolName and VMName parameters or the VM parameter will be returned. + 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. String MaxCount - Specifies the maximum number of virtual machine 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 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. 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 for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. AzureProfile - - Recursive - - Indicates the cmdlet performs a recursive search of all the files on the virtual machine. Otherwise, the cmdlet returns only the files at the virtual machine 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. - - BatchAccountContext - - - - Get-AzureBatchVMFile - - PoolName - - Specifies the name of the pool that contains the virtual machine. - - String - - - Name - - Specifies the name of the file to retrieve from the virtual machine. 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. - - AzureProfile - - - VMName - - Specifies the name of the virtual machine that contains the files. - - 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 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-AzureBatchVMFile - - Filter + Get-AzureBatchJobSchedule + + Id - Specifies the OData filter clause to use when querying for virtual machine files. If no filter is specified, then all virtual machine files on the virtual machine specified with either the PoolName and VMName parameters or the VM parameter will be returned. + Specifies the id of the job schedule to retrieve. Wildcards are not permitted. String - - VM - - Specifies the PSVM object representing the virtual machine that contains the files. You can use the Get-AzureBatchVM cmdlet to get a PSVM object. - - PSVM - - - MaxCount - - Specifies the maximum number of virtual machine 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. + Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. AzureProfile - - Recursive - - Indicates the cmdlet performs a recursive search of all the files on the virtual machine. Otherwise, the cmdlet returns only the files at the virtual machine 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 to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext @@ -3139,7 +3406,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 to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext @@ -3151,7 +3418,7 @@ Filter - Specifies the OData filter clause to use when querying for virtual machine files. If no filter is specified, then all virtual machine files on the virtual machine specified with either the PoolName and VMName parameters or the VM parameter will be returned. + 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. String @@ -3163,7 +3430,7 @@ MaxCount - Specifies the maximum number of virtual machine 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 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. Int32 @@ -3172,10 +3439,10 @@ none - - Name + + Id - Specifies the name of the file to retrieve from the virtual machine. You cannot use wildcards. + Specifies the id of the job schedule to retrieve. Wildcards are not permitted. String @@ -3184,66 +3451,18 @@ none - - PoolName + + Profile - Specifies the name of the pool that contains the virtual machine. + Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. - 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. - - AzureProfile + AzureProfile AzureProfile none - - Recursive - - Indicates the cmdlet performs a recursive search of all the files on the virtual machine. Otherwise, the cmdlet returns only the files at the virtual machine directory root. - - SwitchParameter - - SwitchParameter - - - none - - - VM - - Specifies the PSVM object representing the virtual machine that contains the files. You can use the Get-AzureBatchVM cmdlet to get a PSVM object. - - PSVM - - PSVM - - - none - - - VMName - - Specifies the name of the virtual machine that contains the files. - - String - - String - - - none - @@ -3265,7 +3484,7 @@ - PSVMFile + PSCloudJobSchedule @@ -3282,48 +3501,33 @@ - Example 1: Get a single file from a virtual machine in a specified pool + Example 1: Get a job schedule by id - PS C:\>Get-AzureBatchVMFile -PoolName "myPool" -VMName "VM01" -Name "Startup\StdOut.txt" -BatchContext $Context - IsDirectory Name Properties Url - ----------- ---- ---------- --- - False startup\stdout.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.batch-test.windows-in... + PS C:\>Get-AzureBatchJobSchedule -Id "MyJobSchedule" -BatchContext $Context - - - This command gets the file named Startup\StdOut.txt from the virtual machine named VM01 in the pool MyPool. - - - - - - - - - - - Example 2: Get all files under a specific directory from a virtual machine in a specified pool - - - - - - PS C:\>Get-AzureBatchVMFile -PoolName "MyPool" -VMName "VM01" -Filter "startswith(name,'startup')" -Recursive -BatchContext $Context - IsDirectory Name Properties Url - ----------- ---- ---------- --- - True startup https://cmdletexample.batch-test.windows-in... - False startup\ProcessEnv.cmd Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.batch-test.windows-in... - False startup\stderr.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.batch-test.windows-in... - False startup\stdout.txt Microsoft.Azure.Commands.Batch.Models.PSFile... https://cmdletexample.batch-test.windows-in... - True startup\wd https://cmdletexample.batch-test.windows-in... + 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 - This command gets all the files under the startup directory from the virtual machine named VM01 in pool MyPool. + This command gets the job schedule with id MyJobSchedule. @@ -3334,22 +3538,49 @@ - Example 3: Get all files from the root directory of a specific virtual machine + Example 2: Get all job schedules by using an id filter - PS C:\>Get-AzureBatchVM "MyPool" -VMName "VM01" -BatchContext $Context | Get-AzureBatchVMFile -BatchContext $Context - IsDirectory Name Properties Url - ----------- ---- ---------- --- - True shared https://cmdletexample.batch-test.windows-in... - True startup https://cmdletexample.batch-test.windows-in... - True workitems https://cmdletexample.batch-test.windows-in... + 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 + + 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 - This command gets all the files at the root directory of the virtual machine named VM01 in the pool named MyPool. + This command gets all job schedules whose ids start with My by using the Filter parameter. @@ -3362,209 +3593,112 @@ - Get-AzureBatchAccountKeys + New-AzureBatchJobSchedule - Get-AzureBatchVM + Remove-AzureBatchJobSchedule - Azure Batch Cmdlets + Get-AzureBatchAccountKeys - Get-AzureBatchVM + New-AzureBatchAccountKey - Gets Azure batch virtual machines under the specified pool. + Regenerates the specified key of the specified Batch account. - Get - AzureBatchVM + New + AzureBatchAccountKey - The Get-AzureBatchVM cmdlet gets Azure batch virtual machines under the pool specified by either the PoolName or Pool parameters. You can use the Name parameter to get a single virtual machine, or you can use the Filter parameter to get the virtual machines that match an OData filter. + 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. - Get-AzureBatchVM - - Filter - - Specifies the OData filter clause to use when querying for virtual machines. If you do not specify a filter, then all virtual machines under the pool specified with either the PoolName or the Pool parameter will be returned. - - String - - - MaxCount - - Specifies the maximum number of virtual machines 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. - - 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 - - - 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 - - - PoolName - - Specifies the name of the pool which contains the virtual machines. - - String - - - - Get-AzureBatchVM - - PoolName - - Specifies the name of the pool which contains the virtual machines. - - String - - - Name + New-AzureBatchAccountKey + + AccountName - Specifies the name of the virtual machine to retrieve from the pool. You cannot specify wildcards. + Specifies the name of the Batch account to regenerate the specified key. - String + 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 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. You can use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. - - BatchAccountContext - - - - Get-AzureBatchVM - - Pool - - Specifies the PSCloudPool object representing the pool which contains the virtual machines. You can use the Get-AzureBatchPool cmdlet to get a PSCloudPool object. - - PSCloudPool - - - Filter + + ResourceGroupName - Specifies the OData filter clause to use when querying for virtual machines. If you do not specify a filter, then all virtual machines under the pool specified with either the PoolName or the Pool parameter will be returned. + Specifies the resource group of the account. String - - MaxCount - - Specifies the maximum number of virtual machines 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. - - 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 - - - BatchContext + + KeyType - 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 type of key to regenerate. - BatchAccountContext + + Primary + Secondary + - - 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 - - BatchAccountContext - - - none - - - Filter + + AccountName - Specifies the OData filter clause to use when querying for virtual machines. If you do not specify a filter, then all virtual machines under the pool specified with either the PoolName or the Pool parameter will be returned. + Specifies the name of the Batch account to regenerate the specified key. - String + String String none - - MaxCount - - Specifies the maximum number of virtual machines 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. - - Int32 - - Int32 - - - none - - - Name + + KeyType - Specifies the name of the virtual machine to retrieve from the pool. You cannot specify wildcards. + Specifies the type of key to regenerate. - String + String String none - - Pool + + Profile - Specifies the PSCloudPool object representing the pool which contains the virtual machines. You can use the Get-AzureBatchPool cmdlet to get a PSCloudPool object. + Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. - PSCloudPool + AzureProfile - PSCloudPool + AzureProfile none - - PoolName + + ResourceGroupName - Specifies the name of the pool which contains the virtual machines. + Specifies the resource group of the account. String @@ -3573,18 +3707,6 @@ none - - Profile - - Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. - - AzureProfile - - AzureProfile - - - none - @@ -3606,7 +3728,7 @@ - PSVM + BatchAccountContext @@ -3623,148 +3745,19 @@ - Example 1: Get a virtual machine by name from a specified pool - - - - - - PS C:\>Get-AzureBatchVM -PoolName "MyPool" -Name "VM02" -BatchContext $Context - Name : VM02 - Url : https://cmdletexample.batch-test.windows-int.net/pools/myPool/tvms/VM02 - State : Idle - StateTransitionTime : 3/30/2015 8:59:59 PM - LastBootTime : 3/30/2015 8:59:59 PM - VMAllocationTime : 3/30/2015 8:55:53 PM - IPAddress : 10.215.128.7 - AffinityId : TVM:VM02 - VMSize : small - TotalTasksRun : 0 - StartTaskInformation : Microsoft.Azure.Commands.Batch.Models.PSStartTaskInformation - RecentTasks : - StartTask : Microsoft.Azure.Commands.Batch.Models.PSStartTask - CertificateReferences : - VMErrors : - - - - This command gets the virtual machine named VM02 from the pool named MyPool. - - - - - - - - - - - Example 2: Get all idle virtual machines from a specified pool + Example 1: Regenerate the primary account key on a named Batch account - PS C:\>Get-AzureBatchVM -PoolName "MyPool" -Filter "state eq 'idle'" -BatchContext $Context - Name : VM02 - Url : https://cmdletexample.batch-test.windows-int.net/pools/myPool/tvms/VM02 - State : Idle - StateTransitionTime : 3/30/2015 8:59:59 PM - LastBootTime : 3/30/2015 8:59:59 PM - VMAllocationTime : 3/30/2015 8:55:53 PM - IPAddress : 10.215.128.7 - AffinityId : TVM:VM02 - VMSize : small - TotalTasksRun : 0 - StartTaskInformation : Microsoft.Azure.Commands.Batch.Models.PSStartTaskInformation - RecentTasks : - StartTask : Microsoft.Azure.Commands.Batch.Models.PSStartTask - CertificateReferences : - VMErrors : - Name : VM03 - Url : https://cmdletexample.batch-test.windows-int.net/pools/myPool/tvms/VM03 - State : Idle - StateTransitionTime : 3/30/2015 9:00:26 PM - LastBootTime : 3/30/2015 9:00:26 PM - VMAllocationTime : 3/30/2015 8:55:53 PM - IPAddress : 10.215.128.17 - AffinityId : TVM:VM03 - VMSize : small - TotalTasksRun : 0 - StartTaskInformation : Microsoft.Azure.Commands.Batch.Models.PSStartTaskInformation - RecentTasks : - StartTask : Microsoft.Azure.Commands.Batch.Models.PSStartTask - CertificateReferences : - VMErrors : + PS C:\>New-AzureBatchAccountKey -AccountName "cmdletexample" -KeyType "Primary" + AccountName Location ResourceGroupName Tags TaskTenantUrl + ----------- -------- ----------------- ---- ------------- + cmdletexample westus CmdletExampleRG https://cmdletexample.westus.batch.azure.com - This command gets all idle virtual machines contained in the pool named MyPool. - - - - - - - - - - - Example 3: Get all virtual machines in a specified pool - - - - - - PS C:\>Get-AzureBatchPool -Name "MyPool" -BatchContext $Context | Get-AzureBatchVM -BatchContext $Context - Name : VM02 - Url : https://cmdletexample.batch-test.windows-int.net/pools/myPool/tvms/VM02 - State : Idle - StateTransitionTime : 3/30/2015 8:59:59 PM - LastBootTime : 3/30/2015 8:59:59 PM - VMAllocationTime : 3/30/2015 8:55:53 PM - IPAddress : 10.215.128.7 - AffinityId : TVM:VM02 - VMSize : small - TotalTasksRun : 0 - StartTaskInformation : Microsoft.Azure.Commands.Batch.Models.PSStartTaskInformation - RecentTasks : - StartTask : Microsoft.Azure.Commands.Batch.Models.PSStartTask - CertificateReferences : - VMErrors : - Name : VM03 - Url : https://cmdletexample.batch-test.windows-int.net/pools/myPool/tvms/VM03 - State : Idle - StateTransitionTime : 3/30/2015 9:00:26 PM - LastBootTime : 3/30/2015 9:00:26 PM - VMAllocationTime : 3/30/2015 8:55:53 PM - IPAddress : 10.215.128.17 - AffinityId : TVM:VM03 - VMSize : small - TotalTasksRun : 0 - StartTaskInformation : Microsoft.Azure.Commands.Batch.Models.PSStartTaskInformation - RecentTasks : - StartTask : Microsoft.Azure.Commands.Batch.Models.PSStartTask - CertificateReferences : - VMErrors : - Name : VM04 - Url : https://cmdletexample.batch-test.windows-int.net/pools/myPool/tvms/VM04 - State : Idle - StateTransitionTime : 3/30/2015 8:59:50 PM - LastBootTime : 3/30/2015 8:59:50 PM - VMAllocationTime : 3/30/2015 8:55:53 PM - IPAddress : 10.215.112.35 - AffinityId : TVM:VM04 - VMSize : small - TotalTasksRun : 0 - StartTaskInformation : Microsoft.Azure.Commands.Batch.Models.PSStartTaskInformation - RecentTasks : - StartTask : Microsoft.Azure.Commands.Batch.Models.PSStartTask - CertificateReferences : - VMErrors : - - - - This command gets all virtual machines from the pool named MyPool. + This command regenerates the primary account key on the Batch account named CmdletExample. @@ -3777,75 +3770,50 @@ - Get-AzureBatchVMFile - - - - Get-AzureBatchVMFileContent - - - - Azure Batch Cmdlets + Get-AzureBatchAccountKeys - Get-AzureBatchWorkItem + New-AzureBatchAccount - Gets Azure batch work items under the specified batch account. + Creates a new Azure Batch account. - Get - AzureBatchWorkItem + New + AzureBatchAccount - The Get-AzureBatchWorkItem cmdlet gets Azure batch work items under the batch account specified with the BatchContext parameter. You can use the Name parameter to get a single work item, or you can use the Filter parameter to get the work items that match an OData filter. + The New-AzureBatchAccount cmdlet creates a new Azure Batch account under the specified resource group and location. - Get-AzureBatchWorkItem - - Filter - - Specifies the OData filter clause to use when querying for work items. If no filter is specified, then all work items under the batch account specified with the BatchContext parameter will be returned. - - String - - - MaxCount - - Specifies the maximum number of work items 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 + New-AzureBatchAccount + + AccountName - 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 name of the Batch account to create. - AzureProfile + String - - BatchContext + + Location - 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 region where the account will be created. - BatchAccountContext + String - - - Get-AzureBatchWorkItem - - Name + + ResourceGroupName - Specifies the name of the work item to retrieve. Wildcards are not permitted. + Specifies the name of the resource group where the account will be created. - String + String Profile @@ -3854,34 +3822,34 @@ AzureProfile - - BatchContext + + Tag - 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 tags in an array of hash tables to set on the account. - BatchAccountContext + Hashtable[] - - 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 create. - BatchAccountContext + String - BatchAccountContext + String none - - Filter + + Location - Specifies the OData filter clause to use when querying for work items. If no filter is specified, then all work items under the batch account specified with the BatchContext parameter will be returned. + Specifies the region where the account will be created. - String + String String @@ -3889,37 +3857,37 @@ none - MaxCount + Profile - Specifies the maximum number of work items 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 Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. - Int32 + AzureProfile - Int32 + AzureProfile none - - Name + + ResourceGroupName - Specifies the name of the work item to retrieve. Wildcards are not permitted. + Specifies the name of the resource group where the account will be created. - String + String String none - - Profile + + Tag - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies tags in an array of hash tables to set on the account. - AzureProfile + Hashtable[] - AzureProfile + Hashtable[] none @@ -3945,7 +3913,7 @@ - PSCloudWorkItem + BatchAccountContext @@ -3962,81 +3930,20 @@ - Example 1: Get a work item by name - - - - - - PS C:\>Get-AzureBatchWorkItem -Name "MyWorkItem" -BatchContext $Context - - CreationTime : 3/24/2015 10:08:17 PM - ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSWorkItemExecutionInformation - JobExecutionEnvironment : Microsoft.Azure.Commands.Batch.Models.PSJobExecutionEnvironment - JobSpecification : - LastModified : 3/24/2015 10:08:17 PM - Metadata : - Name : MyWorkItem - PreviousState : Invalid - PreviousStateTransitionTime : - Schedule : - State : Active - StateTransitionTime : 3/24/2015 10:08:17 PM - Statistics : - Url : https://cmdletexample.batch-test.windows-int.net/workitems/myWorkItem - - - - This command gets the work item named MyWorkItem. - - - - - - - - - - - Example 2: Get all work items by using a name filter + Example 1: Create a new Batch account - PS C:\>Get-AzureBatchWorkItem -Filter "startswith(name,'My')" -BatchContext $Context + PS C:\>New-AzureBatchAccount -AccountName "cmdletexample" -ResourceGroupName "CmdletExampleRG" -Location "WestUS" - CreationTime : 3/24/2015 10:08:17 PM - ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSWorkItemExecutionInformation - JobExecutionEnvironment : Microsoft.Azure.Commands.Batch.Models.PSJobExecutionEnvironment - JobSpecification : - LastModified : 3/24/2015 10:08:17 PM - Metadata : - Name : MyWorkItem - PreviousState : Invalid - PreviousStateTransitionTime : - Schedule : - State : Active - StateTransitionTime : 3/24/2015 10:08:17 PM - Statistics : - Url : https://cmdletexample.batch-test.windows-int.net/workitems/myWorkItem - CreationTime : 3/24/2015 10:12:23 PM - ExecutionInformation : Microsoft.Azure.Commands.Batch.Models.PSWorkItemExecutionInformation - JobExecutionEnvironment : Microsoft.Azure.Commands.Batch.Models.PSJobExecutionEnvironment - JobSpecification : - LastModified : 3/24/2015 10:12:23 PM - Metadata : - Name : MyWorkItem2 - PreviousState : Invalid - PreviousStateTransitionTime : - Schedule : - State : Active - StateTransitionTime : 3/24/2015 10:12:23 PM - Statistics : - Url : https://cmdletexample.batch-test.windows-int.net/workitems/myWorkItem2 + AccountName Location ResourceGroupName Tags TaskTenantUrl + ----------- -------- ----------------- ---- ------------- + cmdletexample westus CmdletExampleRG https://cmdletexample.westus.batch.azure.com - This command gets all work items whose names start with My by using the Filter parameter. + This command creates a new Batch account named cmdletexample using the CmdletExampleRG resource group in the WestUS location. @@ -4049,42 +3956,104 @@ - New-AzureBatchWorkItem + Get-AzureBatchAccount - Remove-AzureBatchWorkItem + Remove-AzureBatchAccount - Get-AzureBatchAccountKeys + Set-AzureBatchAccount + + + + Azure Batch Cmdlets - New-AzureBatchAccountKey + New-AzureBatchPool - Regenerates the specified key of the specified batch account. + Creates a new pool in the Azure Batch service under the specified account. New - AzureBatchAccountKey + AzureBatchPool - 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-AzureBatchPool cmdlet creates a new pool in the Azure Batch service under the account specified by the BatchContext parameter. - New-AzureBatchAccountKey - - AccountName + New-AzureBatchPool + + Id + + 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 + https://msdn.microsoft.com/en-us/library/azure/dn820182.aspx + + + + + 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 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 name of the batch account to regenerate the specified key. + + 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 @@ -4095,66 +4064,221 @@ AzureProfile - - ResourceGroupName + + TaskSchedulingPolicy - Specifies the resource group of the account. + 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 + + + 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 - KeyType + VirtualMachineSize - Specifies the type of key to regenerate. + + 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 + + . + - - Primary - Secondary - + 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 - - - - AccountName + + New-AzureBatchPool + + Id + + 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 (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 + + + 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 + + + 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 name of the batch account to regenerate the specified key. + + 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 String none - - KeyType + + BatchContext - Specifies the type of key to regenerate. + 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. - String + BatchAccountContext - String + BatchAccountContext none - - Profile + + CertificateReferences - Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. + Specifies certificates associated with the pool. The Batch service installs the referenced certificates on each compute node (ComputeNode) of the pool. - AzureProfile + PSCertificateReference[] - AzureProfile + PSCertificateReference[] none - - ResourceGroupName + + DisplayName - Specifies the resource group of the account. + The display name of the pool. String @@ -4163,135 +4287,46 @@ none - - - + + InterComputeNodeCommunicationEnabled + + Sets up the pool for direct communication between dedicated compute nodes. + + SwitchParameter - - - - - - - + SwitchParameter + + none + + + MaxTasksPerComputeNode - - + Specifies the maximum number of tasks that can run on a single compute node. - - - - + Int32 - BatchAccountContext - - - - - + Int32 + + none + + + 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. - - - - - - - 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 CmdletExample https://batch.core.contoso.net - - - This command regenerates the primary account key on the batch account named CmdletExample. - - - - - - - - - - - - - Get-AzureBatchAccountKeys - - - - - - - New-AzureBatchAccount - - Creates a new Azure batch account. - - - - - New - AzureBatchAccount - - - - The New-AzureBatchAccount cmdlet creates a new Azure batch account under the specified resource group and location. - - - - New-AzureBatchAccount - - AccountName - - Specifies the name of the batch account to create. - - String - - - Location - - Specifies the region where the account will be created. - - String - - - ResourceGroupName - - Specifies the name of the resource group where the account will be created. - - 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 - - - Tag - - Specifies tags in an array of hash tables to set on the account. - - Hashtable[] - - - - - - AccountName + IDictionary + + IDictionary + + + none + + + Id - Specifies the name of the batch account to create. + Specifies the id of the pool to create. String @@ -4300,10 +4335,15 @@ none - - Location + + OSFamily - Specifies the region where the account will be created. + + 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 @@ -4324,26 +4364,84 @@ none - - ResourceGroupName + + ResizeTimeout - Specifies the name of the resource group where the account will be created. + Specifies the timeout for allocating compute nodes to the pool. - String + 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 - - Tag + + VirtualMachineSize - Specifies tags in an array of hash tables to set on the account. + + 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 + + . + - Hashtable[] + String - Hashtable[] + String none @@ -4369,7 +4467,8 @@ - BatchAccountContext + + @@ -4386,20 +4485,36 @@ - Example 1: Create a new batch account + Example 1: Create a new pool using the TargetDedicated parameter set - PS C:\>New-AzureBatchAccount -AccountName "cmdletexample" -ResourceGroupName "CmdletExampleRG" -Location "WestUS" - - AccountName Location ResourceGroupName Tags TaskTenantUrl - ----------- -------- ----------------- ---- ------------- - cmdletexample WestUS CmdletExampleRG https://batch.core.contoso.net + 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 creates a new batch account named cmdletexample using the CmdletExampleRG resource group in the WestUS location. + 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. @@ -4412,99 +4527,65 @@ - Get-AzureBatchAccount - - - - Remove-AzureBatchAccount + Get-AzureBatchPool - Set-AzureBatchAccount + Remove-AzureBatchPool - Azure Batch Cmdlets + Get-AzureBatchAccountKeys - New-AzureBatchPool + New-AzureBatchTask - Creates a new pool in the Azure batch service under the specified account. + Creates a new Azure Batch task under the specified job. New - AzureBatchPool + AzureBatchTask - The New-AzureBatchPool cmdlet creates a new pool in the Azure batch service under the account specified by the BatchContext parameter. + The New-AzureBatchTask cmdlet creates a new Azure Batch task under the job specified by the JobId parameter or the Job parameter. - - New-AzureBatchPool - - Name - - Specifies the name of the pool to create. - - 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 - - Specifies certificates associated with the pool. The batch service installs the referenced certificates on each Virtual Machine (VM) of the pool. - - PSCertificateReference[] - + + New-AzureBatchTask - CommunicationEnabled + AffinityInformation - Sets up the pool for direct communication between dedicated virtual machines. + Specifies a locality hint that can be used by the Batch service to select a node on which to start the task. + PSAffinityInformation - - MaxTasksPerVM + + CommandLine - Specifies the maximum number of tasks that can run on a single virtual machine. + Specifies the command-line command for the task. - Int32 + String - Metadata + DisplayName - 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. + The display name of the task. - IDictionary + String - OSFamily + EnvironmentSettings - - Specifies the operating system family of the virtual machines 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 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. - String + IDictionary Profile @@ -4514,181 +4595,136 @@ AzureProfile - SchedulingPolicy - - Specifies the scheduling policy (such as the TVMFillType). - - PSSchedulingPolicy - - - StartTask + ResourceFiles - Specifies the start task specification for the pool. The start task is run when a virtual machine joins the pool, or when the virtual machine is rebooted or reimaged. + 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. - PSStartTask + IDictionary - TargetOSVersion + RunElevated - - Specifies the target operating system version of the virtual machines 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 task process runs elevated as Administrator. Otherwise, the process runs without elevation. - String - VMSize + Constraints - - 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 execution constraints for the task. - String + 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 to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext - - - New-AzureBatchPool - - Name + + JobId - Specifies the name of the pool to create. + Specifies the id of the job to create the task under. String - - CertificateReferences - - Specifies certificates associated with the pool. The batch service installs the referenced certificates on each Virtual Machine (VM) of the pool. - - PSCertificateReference[] - - - CommunicationEnabled + + Id - Sets up the pool for direct communication between dedicated virtual machines. + Specifies the id of the task to create. + String + + + New-AzureBatchTask - MaxTasksPerVM + AffinityInformation - Specifies the maximum number of tasks that can run on a single virtual machine. + Specifies a locality hint that can be used by the Batch service to select a node on which to start the task. - Int32 + PSAffinityInformation - - Metadata + + CommandLine - 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 command-line command for the task. - IDictionary + String - OSFamily + DisplayName - - Specifies the operating system family of the virtual machines 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/ - - . - + The display name of the task. String - Profile + EnvironmentSettings - 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 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. - AzureProfile + IDictionary - - ResizeTimeout + + Job - Specifies the timeout for allocating virtual machines to the pool. + Specifies the PSCloudJob object representing the job to create the task under. Use the Get-AzureBatchJob cmdlet to get a PSCloudJob object. - TimeSpan + PSCloudJob - SchedulingPolicy + Profile - Specifies the scheduling policy (such as the TVMFillType). + Specifies the Azure profile for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. - PSSchedulingPolicy + AzureProfile - StartTask + ResourceFiles - Specifies the start task specification for the pool. The start task is run when a virtual machine joins the pool, or when the virtual machine is rebooted or reimaged. + 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. - PSStartTask + IDictionary - TargetDedicated + RunElevated - Specifies the target number of virtual machines to allocate to the pool. + Indicates that the task process runs elevated as Administrator. Otherwise, the process runs without elevation. - Int32 - TargetOSVersion + Constraints - - Specifies the target operating system version of the virtual machines 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/ - - . - + Specifies the execution constraints for the task. - String + PSTaskConstraints - - VMSize + + BatchContext - - 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 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 - - BatchContext + + Id - 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 id of the task to create. - BatchAccountContext + String - AutoScaleFormula + AffinityInformation - - 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 - - - + Specifies a locality hint that can be used by the Batch service to select a node on which to start the task. - String + PSAffinityInformation - String + PSAffinityInformation none @@ -4696,7 +4732,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 to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext @@ -4705,58 +4741,58 @@ none - - CertificateReferences + + CommandLine - Specifies certificates associated with the pool. The batch service installs the referenced certificates on each Virtual Machine (VM) of the pool. + Specifies the command-line command for the task. - PSCertificateReference[] + String - PSCertificateReference[] + String none - CommunicationEnabled + DisplayName - Sets up the pool for direct communication between dedicated virtual machines. + The display name of task. - SwitchParameter + String - SwitchParameter + String none - MaxTasksPerVM + EnvironmentSettings - Specifies the maximum number of tasks that can run on a single virtual machine. + 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. - Int32 + IDictionary - Int32 + IDictionary none - - Metadata + + Job - 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 PSCloudJob object representing the job to create the task under. Use the Get-AzureBatchJob cmdlet to get a PSCloudJob object. - IDictionary + PSCloudJob - IDictionary + PSCloudJob none - - Name + + JobId - Specifies the name of the pool to create. + Specifies the id of the job to create the task under. String @@ -4765,17 +4801,12 @@ none - - OSFamily + + Id - - Specifies the operating system family of the virtual machines 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 task to create. - String + String String @@ -4795,83 +4826,37 @@ none - ResizeTimeout - - Specifies the timeout for allocating virtual machines to the pool. - - TimeSpan - - TimeSpan - - - none - - - SchedulingPolicy - - Specifies the scheduling policy (such as the TVMFillType). - - PSSchedulingPolicy - - PSSchedulingPolicy - - - none - - - StartTask - - Specifies the start task specification for the pool. The start task is run when a virtual machine joins the pool, or when the virtual machine is rebooted or reimaged. - - PSStartTask - - PSStartTask - - - none - - - TargetDedicated + ResourceFiles - Specifies the target number of virtual machines to allocate to the pool. + 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. - Int32 + IDictionary - Int32 + IDictionary none - TargetOSVersion + RunElevated - - Specifies the target operating system version of the virtual machines 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 task process runs elevated as Administrator. Otherwise, the process runs without elevation. - String + SwitchParameter - String + SwitchParameter none - VMSize + Constraints - - 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 execution constraints for the task. - String + PSTaskConstraints - String + PSTaskConstraints none @@ -4915,16 +4900,16 @@ - Example 1: Create a new pool using the TargetDedicated parameter set + Example 1: Create a new Batch task - PS C:\>New-AzureBatchPool -Name "MyPool" -VMSize "small" -OSFamily "4" -TargetOSVersion "*" -TargetDedicated 3 -BatchContext $Context + PS C:\>New-AzureBatchTask -JobId "Job-000001" -Id "MyTask" -CommandLine "cmd /c dir /s" -BatchContext $Context - This command creates a new pool named MyPool using the TargetDedicated parameter set. The target allocation is three small virtual machines with the latest operating system version of family four. + This command creates a new task with id MyTask under job Job-000001. The task will run the command-line "cmd /c dir /s". @@ -4935,16 +4920,16 @@ - Example 2: Create a new pool using the AutoScale parameter set + Example 2: Create a new Batch task - PS C:\>New-AzureBatchPool -Name "AutoScalePool" -VMSize "small" -OSFamily "4" -TargetOSVersion "*" -AutoScaleFormula '$TargetDedicated=2;' -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 creates a new pool named AutoScalePool using the AutoScale parameter set. The pool will use small virtual machines with the latest operating system version of family four, and the target number of virtual machines will be determined by the Autoscale formula. + 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. @@ -4957,205 +4942,155 @@ - Get-AzureBatchPool + Get-AzureBatchTask - Remove-AzureBatchPool + Remove-AzureBatchTask Get-AzureBatchAccountKeys + + Get-AzureBatchJob + + - New-AzureBatchTask + New-AzureBatchComputeNodeUser - Creates a new Azure batch task under the specified job. + Creates a new user account on the specified Azure Batch compute node. New - AzureBatchTask + AzureBatchComputeNodeUser - The New-AzureBatchTask cmdlet creates a new Azure batch task under the job specified by the WorkItemName and JobName parameters or the Job parameter. + The New-AzureBatchComputeNodeUser cmdlet creates a new user account on the specified Azure Batch compute node. - New-AzureBatchTask - - AffinityInformation - - Specifies the processor affinity for the task. - - PSAffinityInformation - - - CommandLine + New-AzureBatchComputeNodeUser + + PoolId - Specifies the command-line command for the task. + Specifies the id of the pool containing the compute node to create the user account on. - String + String - - EnvironmentSettings + + ComputeNodeId - 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 the id of the compute node to create the user account on. - IDictionary + String - Profile + ExpiryTime - 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 expiry time of the new user. - AzureProfile + DateTime - ResourceFiles + IsAdmin - 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. + Indicates that the cmdlet will create the user with administrator privileges. - IDictionary - - RunElevated + + Password - Indicates that the task process runs elevated as Administrator. Otherwise, the process runs without elevation. + Specifies the user account password. + String - TaskConstraints + Profile - Specifies the execution constraints for the task. + Specifies the Azure profile in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. - PSTaskConstraints + 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 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 - - JobName - - Specifies the name of the job to create the task. - - String - Name - Specifies the name of the task to create. - - String - - - WorkItemName - - Specifies the name of the work item to create the task. + Specifies the name of the created local windows account. String - New-AzureBatchTask - - AffinityInformation - - Specifies the processor affinity for the task. - - PSAffinityInformation - + New-AzureBatchComputeNodeUser - CommandLine + ExpiryTime - Specifies the command-line command for the task. + Specifies the expiry time of the new user. - String + DateTime - EnvironmentSettings + IsAdmin - 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. + Indicates that the cmdlet will create the user with administrator privileges. - IDictionary - - Job + + Password - Specifies the PSCloudJob object representing the job to create the task. Use the Get-AzureBatchJob cmdlet to get a PSCloudJob object. + Specifies the user account password. - PSCloudJob + 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 in which this cmdlet operates. If you do not specify a profile, this cmdlet uses 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 + ComputeNode - Indicates that the task process runs elevated as Administrator. Otherwise, the process runs without elevation. - - - - TaskConstraints - - Specifies the execution constraints for the task. + Specifies the PSComputeNode object representing the compute node to create the user account on. - PSTaskConstraints + PSComputeNode 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 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 Name - Specifies the name of the task to create. + Specifies the name of the created local windows account. String - - AffinityInformation - - Specifies the processor affinity for 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 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 @@ -5165,45 +5100,45 @@ none - CommandLine + ExpiryTime - Specifies the command-line command for the task. + Specifies the expiry time of the new user. - String + DateTime - String + DateTime none - EnvironmentSettings + IsAdmin - 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. + Indicates that the cmdlet will create the user with administrator privileges. - IDictionary + SwitchParameter - IDictionary + SwitchParameter none - - Job + + Name - Specifies the PSCloudJob object representing the job to create the task. Use the Get-AzureBatchJob cmdlet to get a PSCloudJob object. + Specifies the name of the created local windows account. - PSCloudJob + String - PSCloudJob + String none - JobName + Password - Specifies the name of the job to create the task. + Specifies the user account password. String @@ -5212,10 +5147,10 @@ none - - Name + + PoolId - Specifies the name of the task to create. + Specifies the id of the pool containing the compute node to create the user account on. String @@ -5227,7 +5162,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 in which this cmdlet operates. If you do not specify a profile, this cmdlet uses the default profile. AzureProfile @@ -5237,45 +5172,21 @@ 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 - - - TaskConstraints + ComputeNode - Specifies the execution constraints for the task. + Specifies The PSComputeNode object representing the compute node to create the user account on. - PSTaskConstraints + PSComputeNode - PSTaskConstraints + PSComputeNode none - - WorkItemName + + ComputeNodeId - Specifies the name of the work item to create the task. + Specifies the id of the compute node to create the user account on. String @@ -5323,16 +5234,16 @@ - Example 1: Create a new batch task + Example 1: Create a new user account on a compute node with administrator privileges - PS C:\>New-AzureBatchTask -WorkItemName "MyWorkItem" -JobName "Job-000001" -Name "MyTask" -CommandLine "cmd /c dir /s" -BatchContext $Context + 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 task named MyTask under job Job-000001 under work item MyWorkItem. The task will run the command-line "cmd /c dir /s". + 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. @@ -5343,16 +5254,16 @@ - Example 2: Create a new batch task that runs on the command-line + Example 2: Create a new user account on a compute node - PS C:\>Get-AzureBatchJob -WorkItemName "MyWorkItem" -Name "Job-000001" -BatchContext $Context | New-AzureBatchTask -Name "MyTask2" -CommandLine "cmd /c echo hello > newFile.txt" -RunElevated -BatchContext $Context + PS C:\>Get-AzureBatchComputeNode "MyPool01" -ComputeNodeId "ComputeNode01" -BatchContext $Context | New-AzureBatchComputeNodeUser -Name "TestUser" -Password "Password1234!" -BatchContext $Context - This command creates a new task named MyTask2 under job Job-000001 under work item MyWorkItem. The task will run the command-line "cmd /c echo hello > newFile.txt" with elevated permissions. + 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!. @@ -5365,11 +5276,7 @@ - Get-AzureBatchTask - - - - Remove-AzureBatchTask + Remove-AzureBatchComputeNodeUser @@ -5377,143 +5284,86 @@ - Get-AzureBatchJob + Azure Batch Cmdlets - New-AzureBatchVMUser + New-AzureBatchJobSchedule - Creates a new user on the specified Azure batch virtual machine. + Creates a new job schedule in the Azure Batch service under the specified account. New - AzureBatchVMUser + AzureBatchJobSchedule - The New-AzureBatchVMUser cmdlet creates a new user on the specified Azure batch virtual machine. + The New-AzureBatchJobSchedule cmdlet creates a new job schedule in the Azure Batch service under the account specified by the BatchAccountContext parameter. - New-AzureBatchVMUser - - PoolName - - Specifies the name of the pool containing the virtual machine to create the user. - - String - - - VMName + New-AzureBatchJobSchedule + + Id - Specifies the name of the virtual machine to create the user. + Specifies the id of the job schedule to create. String - ExpiryTime - - Specifies the expiry time of the new user. - - DateTime - - - IsAdmin - - Indicates that the cmdlet will create the user with administrator privileges. - - - - Password + DisplayName - Specifies the user account password. + The display name of the job schedule. String - - 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 - - Name - - Specifies the name of the created local windows account. - - String - - - - New-AzureBatchVMUser - - ExpiryTime - - Specifies the expiry time of the new user. - - DateTime - - - IsAdmin + JobSpecification - Indicates that the cmdlet will create the user with administrator privileges. + Specifies the details of the jobs to be created under the job schedule. + PSJobSpecification - Password + Metadata - Specifies the user account password. + 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. - String + IDictionary 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 for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. AzureProfile - - VM + + Schedule - Specifies The PSVM object representing the virtual machine to create the user. + Specifies the schedule that determines when jobs will be created. - PSVM + PSSchedule - + 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 to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext - - Name - - Specifies the name of the created local windows account. - - 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 to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext @@ -5523,57 +5373,45 @@ none - ExpiryTime - - Specifies the expiry time of the new user. - - DateTime - - DateTime - - - none - - - IsAdmin + DisplayName - Indicates that the cmdlet will create the user with administrator privileges. + The display name of the job schedule. - SwitchParameter + String - SwitchParameter + String none - Name + JobSpecification - Specifies the name of the created local windows account. + Specifies the details of the jobs to be created under the job schedule. - String + PSJobSpecification - String + PSJobSpecification none - Password + Metadata - Specifies the user account password. + 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. - String + IDictionary - String + IDictionary none - - PoolName + + Id - Specifies the name of the pool containing the virtual machine to create the user. + Specifies the id of the job schedule to create. String @@ -5585,7 +5423,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 for the cmdlet to read. If you do not specify a profile, the cmdlet reads from the default profile. AzureProfile @@ -5594,26 +5432,14 @@ none - - VM - - Specifies The PSVM object representing the virtual machine to create the user. - - PSVM - - PSVM - - - none - - - VMName + + Schedule - Specifies the name of the virtual machine to create the user. + Specifies the schedule that determines when jobs will be created. - String + PSSchedule - String + PSSchedule none @@ -5657,36 +5483,21 @@ - Example 1: Create a new user on a virtual machine with administrator privileges providing a password + Example 1: Create a job schedule - PS C:\>New-AzureBatchVMUser -PoolName "MyPool01" -VMName "VM01" -Name "TestUser" -Password "Password1234!" -ExpiryTime ([DateTime]::Now.AddDays(7)) -IsAdmin -BatchContext $Context + 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 new user on the virtual machine named VM01 in the pool named 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 on a virtual machine providing a password - - - - - - PS C:\>Get-AzureBatchVM "MyPool01" -VMName "VM01" -BatchContext $Context | New-AzureBatchVMUser -Name "TestUser" -Password "Password1234!" -BatchContext $Context - - - This command creates a new user on the VM01 virtual machine in the pool named MyPool01. The user name is TestUser, the user password is Password1234!. + 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. @@ -5699,63 +5510,91 @@ - Remove-AzureBatchVMUser + Get-AzureBatchJobSchedule - Get-AzureBatchAccountKeys + Remove-AzureBatchJobSchedule - Azure Batch Cmdlets + Get-AzureBatchAccountKeys - New-AzureBatchWorkItem + New-AzureBatchJob - Creates a new work item in the Azure batch service under the specified account. + Creates a new job in the Azure Batch service under the specified account. New - AzureBatchWorkItem + AzureBatchJob - The New-AzureBatchWorkItem cmdlet creates a new work item in the Azure batch service under the account specified by the BatchAccountContext parameter. + The New-AzureBatchJob cmdlet creates a new job in the Azure Batch service under the account specified by the BatchAccountContext parameter. - New-AzureBatchWorkItem + New-AzureBatchJob - Name + Id - Specifies the name of the work item to create. + Specifies the id of the job to create. String - JobExecutionEnvironment + DisplayName - Specifies the job execution environment to use when creating the work item. + The display name of the job. - PSJobExecutionEnvironment + String - JobSpecification + CommonEnvironmentSettings + + 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. + + IDictionary + + + Constraints + + Specifies the execution constraints for the job. + + PSJobConstraints + + + JobManagerTask + + Specifies the Job Manager task. The Job Manager task is launched when the job is started. + + PSJobManagerTask + + + JobPreparationTask + + 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. + + PSJobPreparationTask + + + JobReleaseTask - Specifies the job specification to use when creating the work item. + 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. - PSJobSpecification + PSJobReleaseTask Metadata - Specifies metadata to add to the new work item. For each key/value pair, set the key to the metadata name, and the value to the metadata value. + 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. IDictionary @@ -5766,17 +5605,24 @@ AzureProfile + + PoolInformation + + Specifies the details of the pool on which the Batch service runs the job's tasks. + + PSPoolInformation + - Schedule + Priority - Specifies the schedule to use when the work item is created. + 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. - PSWorkItemSchedule + Int32 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 to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext @@ -5786,7 +5632,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 to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext @@ -5796,25 +5642,73 @@ none - JobExecutionEnvironment + DisplayName - Specifies the job execution environment to use when creating the work item. + The display name of the job. - PSJobExecutionEnvironment + String - PSJobExecutionEnvironment + String none - JobSpecification + CommonEnvironmentSettings - Specifies the job specification to use when creating the work item. + 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. - PSJobSpecification + IDictionary - PSJobSpecification + IDictionary + + + none + + + Constraints + + Specifies the execution constraints for the job. + + PSJobConstraints + + PSJobConstraints + + + none + + + JobManagerTask + + Specifies the Job Manager task. The Job Manager task is launched when the job is started. + + PSJobManagerTask + + PSJobManagerTask + + + none + + + JobPreparationTask + + 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. + + PSJobPreparationTask + + PSJobPreparationTask + + + none + + + JobReleaseTask + + 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. + + PSJobReleaseTask + + PSJobReleaseTask none @@ -5822,7 +5716,7 @@ Metadata - Specifies metadata to add to the new work item. For each key/value pair, set the key to the metadata name, and the value to the metadata value. + 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. IDictionary @@ -5832,9 +5726,9 @@ none - Name + Id - Specifies the name of the work item to create. + Specifies the id of the job to create. String @@ -5855,14 +5749,26 @@ none + + PoolInformation + + Specifies the details of the pool on which the Batch service runs the job's tasks. + + PSPoolInformation + + PSPoolInformation + + + none + - Schedule + Priority - Specifies the schedule to use when the work item is created. + 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. - PSWorkItemSchedule + Int32 - PSWorkItemSchedule + Int32 none @@ -5906,18 +5812,18 @@ - Example 1: Create a new work item using a job execution environment + Example 1: Create a job - PS C:\>$Environment = New-Object Microsoft.Azure.Commands.Batch.Models.PSJobExecutionEnvironment; - $Environment.PoolName = "MyPool"; - New-AzureBatchWorkItem -Name "MyWorkItem" -JobExecutionEnvironment $Environment -BatchContext $Context + 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 PSJobExecutionEnvironment object that specifies the pool named MyPool. Next, the command creates a new work item named MyWorkItem that uses this job execution environment. + This command creates a job with id MyJob. Tasks added to the job will run on pool MyPool. @@ -5930,11 +5836,11 @@ - Get-AzureBatchWorkItem + Get-AzureBatchJobSchedule - Remove-AzureBatchWorkItem + Remove-AzureBatchJob @@ -5947,7 +5853,7 @@ Remove-AzureBatchAccount - Removes the specified Azure batch account. + Removes the specified Azure Batch account. @@ -5957,7 +5863,7 @@ - The Remove-AzureBatchAccount cmdlet removes the specified batch account. You will be prompted for confirmation unless you use the Force parameter. + The Remove-AzureBatchAccount cmdlet removes the specified Batch account. You will be prompted for confirmation unless you use the Force parameter. @@ -5965,7 +5871,7 @@ AccountName - Specifies the name of the batch account to remove. + Specifies the name of the Batch account to remove. String @@ -5995,7 +5901,7 @@ AccountName - Specifies the name of the batch account to remove. + Specifies the name of the Batch account to remove. String @@ -6079,7 +5985,7 @@ - Example 1: Remove a batch account by name + Example 1: Remove a Batch account by name @@ -6088,7 +5994,7 @@ PS C:\>Remove-AzureBatchAccount -AccountName "cmdletexample" - This command removes the batch account named cmdletexample. The user is prompted for confirmation before the delete operation takes place. + This command removes the Batch account named cmdletexample. The user is prompted for confirmation before the delete operation takes place. @@ -6118,7 +6024,7 @@ Remove-AzureBatchJob - Removes the specified Azure batch job. + Deletes the specified Azure Batch job. @@ -6128,22 +6034,15 @@ - The Remove-AzureBatchJob cmdlet removes the specified Azure batch job. 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-AzureBatchJob - WorkItemName - - Specifies the name of the work item containing the job to remove. - - String - - - Name + Id - Specifies the name of the job to remove. Wildcards are not permitted. + Specifies the id of the job to delete. Wildcards are not permitted. String @@ -6163,37 +6062,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. - - BatchAccountContext - - - - Remove-AzureBatchJob - - InputObject - - Specifies the PSCloudJob object representing the job to remove. Use the Get-AzureBatchJob cmdlet to get a PSCloudJob object. - - PSCloudJob - - - 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. + 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 @@ -6203,7 +6072,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 to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext @@ -6224,22 +6093,10 @@ none - - InputObject - - Specifies the PSCloudJob object representing the job to remove. Use the Get-AzureBatchJob cmdlet to get a PSCloudJob object. - - PSCloudJob - - PSCloudJob - - - none - - - Name + + Id - Specifies the name of the job to remove. Wildcards are not permitted. + Specifies the id of the job to delete. Wildcards are not permitted. String @@ -6260,18 +6117,6 @@ none - - WorkItemName - - Specifies the name of the work item containing the job to remove. - - String - - String - - - none - @@ -6311,16 +6156,16 @@ - Example 1: Remove a batch job by name + Example 1: Delete a Batch job by id - PS C:\>Remove-AzureBatchJob -WorkItemName "MyWorkItem" -Name "Job-000001" -BatchContext $Context + PS C:\>Remove-AzureBatchJob -Id "Job-000001" -BatchContext $Context - This command removes the job named Job-000001 under the work item named MyWorkItem. 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. @@ -6331,16 +6176,16 @@ - Example 2: Remove a batch job by name without confirmation + Example 2: Delete a Batch job by pipelining without confirmation - PS C:\>Get-AzureBatchJob -WorkItemName "MyWorkItem" -Name "Job-000002" -BatchContext $Context | Remove-AzureBatchJob -Force -BatchContext $Context + PS C:\>Get-AzureBatchJob -Id "Job-000002" -BatchContext $Context | Remove-AzureBatchJob -Force -BatchContext $Context - This command removes the job named Job-000002 under the work item named MyWorkItem. Since 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. @@ -6366,7 +6211,7 @@ Remove-AzureBatchPool - Removes the specified Azure batch pool. + Deletes the specified Azure Batch pool. @@ -6376,15 +6221,15 @@ - The Remove-AzureBatchPool cmdlet removes the specified Azure batch pool. You will be prompted for confirmation unless you use the Force parameter. + The Remove-AzureBatchPool cmdlet deletes the specified Azure Batch pool. You will be prompted for confirmation unless you use the Force parameter. Remove-AzureBatchPool - Name + Id - Specifies the name of the pool to remove. You cannot use wildcards. + Specifies the id of the pool to delete. You cannot use wildcards. String @@ -6404,7 +6249,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 to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext @@ -6414,7 +6259,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 to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext @@ -6436,9 +6281,9 @@ none - Name + Id - Specifies the name of the pool to remove. You cannot use wildcards. + Specifies the id of the pool to delete. You cannot use wildcards. String @@ -6498,16 +6343,16 @@ - Example 1: Remove a batch pool by pool name + Example 1: Delete a Batch pool by pool id - PS C:\>Remove-AzureBatchPool -Name "MyPool" -BatchContext $Context + PS C:\>Remove-AzureBatchPool -Id "MyPool" -BatchContext $Context - This command removes the pool named MyPool. The user is prompted for confirmation before the delete operation takes place. + This command deletes the pool with id MyPool. The user is prompted for confirmation before the delete operation takes place. @@ -6518,7 +6363,7 @@ - Example 2: Remove all batch pools by force + Example 2: Delete all Batch pools by force @@ -6527,7 +6372,7 @@ PS C:\>Get-AzureBatchPool -BatchContext $context | Remove-AzureBatchPool -Force -BatchContext $Context - This command removes all batch pools. Since the Force parameter is present, the confirmation prompt is suppressed. + This command deletes all Batch pools. Since the Force parameter is present, the confirmation prompt is suppressed. @@ -6561,7 +6406,7 @@ Remove-AzureBatchTask - Removes the specified Azure batch task. + Deletes the specified Azure Batch task. @@ -6571,29 +6416,22 @@ - The Remove-AzureBatchTask cmdlet removes the specified Azure batch task. You will be prompted for confirmation unless you use the Force parameter. + The Remove-AzureBatchTask cmdlet deletes the specified Azure Batch task. You will be prompted for confirmation unless you use the Force parameter. Remove-AzureBatchTask - WorkItemName + JobId - Specifies the name of the work item containing the task to remove. + Specifies the id of the job containing the task to delete. String - JobName - - Specifies the name of the job containing the task to remove. - - String - - - Name + Id - Specifies the name of the task to remove. Wildcards are not permitted. + Specifies the id of the task to delete. Wildcards are not permitted. String @@ -6613,7 +6451,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 to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext @@ -6623,7 +6461,7 @@ InputObject - Specifies the PSCloudTask object representing the task to remove. Use the Get-AzureBatchTask cmdlet to get a PSCloudTask object. + Specifies the PSCloudTask object representing the task to delete. Use the Get-AzureBatchTask cmdlet to get a PSCloudTask object. PSCloudTask @@ -6643,7 +6481,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 to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext @@ -6653,7 +6491,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 to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext @@ -6677,7 +6515,7 @@ InputObject - Specifies the PSCloudTask object representing the task to remove. Use the Get-AzureBatchTask cmdlet to get a PSCloudTask object. + Specifies the PSCloudTask object representing the task to delete. Use the Get-AzureBatchTask cmdlet to get a PSCloudTask object. PSCloudTask @@ -6686,10 +6524,10 @@ none - - JobName + + JobId - Specifies the name of the job containing the task to remove. + Specifies the id of the job containing the task to delete. String @@ -6698,10 +6536,10 @@ none - - Name + + Id - Specifies the name of the task to remove. Wildcards are not permitted. + Specifies the id of the task to delete. Wildcards are not permitted. String @@ -6722,18 +6560,6 @@ none - - WorkItemName - - Specifies the name of the work item containing the task to remove. - - String - - String - - - none - @@ -6773,16 +6599,16 @@ - Example 1: Remove a batch task by name with user confirmation + Example 1: Delete a Batch task by id with user confirmation - PS C:\>Remove-AzureBatchTask -WorkItemName "MyWorkItem" -JobName "Job-000001" -Name "MyTask" -BatchContext $Context + PS C:\>Remove-AzureBatchTask -JobId "Job-000001" -Id "MyTask" -BatchContext $Context - This command removes the task named MyTask in job Job-000001 under work item MyWorkItem. The user is prompted for confirmation before the delete operation takes place. + This command deletes the task with id MyTask in job Job-000001. The user is prompted for confirmation before the delete operation takes place. @@ -6793,16 +6619,16 @@ - Example 2: Remove a batch task by name without user confirmation + Example 2: Delete a Batch task by id without user confirmation - PS C:\>Get-AzureBatchTask "MyWorkItem" "Job-000001" "MyTask2" -BatchContext $Context | Remove-AzureBatchTask -Force -BatchContext $Context + PS C:\>Get-AzureBatchTask "Job-000001" "MyTask2" -BatchContext $Context | Remove-AzureBatchTask -Force -BatchContext $Context - This command removes the task named MyTask2 in job Job-000001 under work item MyWorkItem. Since the Force parameter is present, the confirmation prompt is suppressed. + This command deletes the task with id MyTask2 in job Job-000001. Since the Force parameter is present, the confirmation prompt is suppressed. @@ -6830,34 +6656,34 @@ - Remove-AzureBatchVMUser + Remove-AzureBatchComputeNodeUser - Deletes the specified user account from the specified Azure batch virtual machine. + Deletes the specified user account from the specified Azure Batch compute node. Remove - AzureBatchVMUser + AzureBatchComputeNodeUser - The Remove-AzureBatchVMUser cmdlet deletes the specified user account from the specified Azure batch virtual machine. + The Remove-AzureBatchComputeNodeUser cmdlet deletes the specified user account from the specified Azure Batch compute node. - Remove-AzureBatchVMUser + Remove-AzureBatchComputeNodeUser - PoolName + PoolId - Specifies the name of the pool that contains the virtual machine. + Specifies the id of the pool that contains the compute node. String - VMName + ComputeNodeId - Specifies the name of the virtual machine to remove the user. + Specifies the id of the compute node to delete the user from. String @@ -6884,7 +6710,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 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 @@ -6894,7 +6720,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 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 @@ -6928,9 +6754,9 @@ none - PoolName + PoolId - Specifies the name of the pool that contains the virtual machine. + Specifies the id of the pool that contains the compute node. String @@ -6952,9 +6778,9 @@ none - VMName + ComputeNodeId - Specifies the name of the virtual machine to remove the user. + Specifies the id of the compute node to delete the user from. String @@ -7002,16 +6828,16 @@ - Example 1: Delete a user from a virtual machine and suppress confirmation + Example 1: Delete a user from a compute node and suppress confirmation - PS C:\>Remove-AzureBatchVMUser -PoolName "MyPool01" -VMName "VM01" -Name "MyUser" -Force -BatchContext $Context + PS C:\>Remove-AzureBatchComputeNodeUser -PoolId "MyPool01" -ComputeNodeId "ComputeNode01" -Name "MyUser" -Force -BatchContext $Context - This command deletes the user named MyUser from virtual machine VM01 in pool MyPool01. This command also suppresses the confirmation prompt since the Force parameter is present. + 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. @@ -7024,7 +6850,7 @@ - New-AzureBatchVMUser + New-AzureBatchComputeNodeUser @@ -7039,27 +6865,27 @@ - Remove-AzureBatchWorkItem + Remove-AzureBatchJobSchedule - Removes the specified Azure batch work item. + Deletes the specified Azure Batch job schedule. Remove - AzureBatchWorkItem + AzureBatchJobSchedule - The Remove-AzureBatchWorkItem cmdlet removes the specified Azure batch work item. You will be prompted for confirmation unless you use the Force parameter. + The Remove-AzureBatchJobSchedule cmdlet deletes the specified Azure Batch job schedule. You will be prompted for confirmation unless you use the Force parameter. - Remove-AzureBatchWorkItem + Remove-AzureBatchJobSchedule - Name + Id - Specifies the name of the work item to remove. Wildcards are not permitted. + Specifies the id of the job schedule to delete. Wildcards are not permitted. String @@ -7079,7 +6905,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 to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext @@ -7089,7 +6915,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 to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated. BatchAccountContext @@ -7111,9 +6937,9 @@ none - Name + Id - Specifies the name of the work item to remove. Wildcards are not permitted. + Specifies the id of the job schedule to delete. Wildcards are not permitted. String @@ -7173,16 +6999,16 @@ - Example 1: Remove a work item by name with user confirmation + Example 1: Delete a job schedule with user confirmation - PS C:\>Remove-AzureBatchWorkItem "MyWorkItem" -BatchContext $Context + PS C:\>Remove-AzureBatchJobSchedule "MyJobSchedule" -BatchContext $Context - This command removes the work item named MyWorkItem. The user is prompted for confirmation before the delete operation takes place. + This command deletes the job schedule with id MyJobSchedule. The user is prompted for confirmation before the delete operation takes place. @@ -7193,16 +7019,16 @@ - Example 2: Remove a work item by name without user confirmation + Example 2: Delete a job schedule without user confirmation - PS C:\>Get-AzureBatchWorkItem -Name "MyWorkItem2" -BatchContext $Context | Remove-AzureBatchWorkItem -Force -BatchContext $Context + PS C:\>Get-AzureBatchJobSchedule -Id "MyJobSchedule2" -BatchContext $Context | Remove-AzureBatchJobSchedule -Force -BatchContext $Context - This command removes the work item named MyWorkItem2. Because the Force parameter is present, the confirmation prompt is suppressed. + This command deletes the job schedule with id MyJobSchedule2. Because the Force parameter is present, the confirmation prompt is suppressed. @@ -7215,11 +7041,11 @@ - Get-AzureBatchWorkItem + Get-AzureBatchJobSchedule - New-AzureBatchWorkItem + New-AzureBatchJobSchedule @@ -7232,7 +7058,7 @@ Set-AzureBatchAccount - Updates the specified Azure batch account. + Updates the specified Azure Batch account. @@ -7242,7 +7068,7 @@ - The Set-AzureBatchAccount cmdlet updates the specified batch account. Currently, only tags can be updated. + The Set-AzureBatchAccount cmdlet updates the specified Batch account. Currently, only tags can be updated. @@ -7250,7 +7076,7 @@ AccountName - Specifies the name of the existing batch account to update. + Specifies the name of the existing Batch account to update. String @@ -7281,7 +7107,7 @@ AccountName - Specifies the name of the existing batch account to update. + Specifies the name of the existing Batch account to update. String @@ -7364,7 +7190,7 @@ - Example 1: Update the tags on an existing batch account + Example 1: Update the tags on an existing Batch account @@ -7373,12 +7199,12 @@ 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://batch.core.windows.net - s.Hashtable, Syste - m.Collections.Hash - table} + 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. @@ -7410,7 +7236,7 @@ - Start-AzureBatchPoolResize + Start-AzureBatchPoolResize Begins a pool resize operation. @@ -7430,9 +7256,9 @@ Start-AzureBatchPoolResize - Name + Id - The name of the pool to resize. + The id of the pool to resize. string @@ -7444,23 +7270,23 @@ BatchAccountContext - DeallocationOption + ComputeNodeDeallocationOption The deallocation option associated with this resize. - TVMDeallocationOption + ComputeNodeDeallocationOption 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 vms. + The number of target dedicated compute nodes. int @@ -7482,22 +7308,22 @@ - DeallocationOption + ComputeNodeDeallocationOption The deallocation option associated with this resize. - TVMDeallocationOption + ComputeNodeDeallocationOption - TVMDeallocationOption + ComputeNodeDeallocationOption - Name + Id - The name of the pool to resize. + The id of the pool to resize. string @@ -7513,17 +7339,17 @@ The resize timeout. If the pool has not reached the target after this time the resize is automatically stopped. - TimeSpan + TimeSpan TimeSpan - + TargetDedicated - The number of target dedicated vms. + The number of target dedicated compute nodes. int @@ -7591,11 +7417,11 @@ C:\PS> - Start-AzureBatchPoolResize -Name "testPool" -TargetDedicated 10 -BatchContext $context + Start-AzureBatchPoolResize -Id "MyPool" -TargetDedicated 10 -BatchContext $context Description ----------- - Starts a resize operation on pool "testPool" with a new target of 10 dedicated vms. + Starts a resize operation on pool "MyPool" with a new target of 10 dedicated compute nodes. @@ -7616,11 +7442,11 @@ C:\PS> - Get-AzureBatchPool -Name "testPool" -BatchContext $context | Start-AzureBatchPoolResize -TargetDedicated 50 -ResizeTimeout ([TimeSpan]::FromHours(1)) -DeallocationOption ([Microsoft.Azure.Batch.Common.TVMDeallocationOption]::Terminate) -BatchContext $context + 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 "testPool" with a new target of 50 dedicated vms, a resize timeout of 1 hour, and the Terminate deallocation option. + 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. @@ -7664,9 +7490,9 @@ Stop-AzureBatchPoolResize - Name + Id - The name of the pool. + The id of the pool. string @@ -7695,9 +7521,9 @@ - Name + Id - The name of the pool. + The id of the pool. string @@ -7765,11 +7591,11 @@ C:\PS> - Stop-AzureBatchPoolResize -Name "testPool" -BatchContext $context + Stop-AzureBatchPoolResize -Id "MyPool" -BatchContext $context Description ----------- - Stops the resize operation on pool "testPool" + Stops the resize operation on pool "MyPool" @@ -7790,11 +7616,11 @@ C:\PS> - Get-AzureBatchPool -Name "testPool" -BatchContext $context | Stop-AzureBatchPoolResize -BatchContext $context + Get-AzureBatchPool -Id "testPool" -BatchContext $context | Stop-AzureBatchPoolResize -BatchContext $context Description ----------- - Stops the resize operation on pool "testPool" using the pipeline. + Stops the resize operation on pool "MyPool" using the pipeline. diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSAffinityInformation.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSAffinityInformation.cs index c4da0b87da44..8e76420d8544 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSAffinityInformation.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSAffinityInformation.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSAutoPoolSpecification.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSAutoPoolSpecification.cs index 62caede1dbda..cf709a4d9d0a 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSAutoPoolSpecification.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSAutoPoolSpecification.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -32,7 +32,7 @@ namespace Microsoft.Azure.Commands.Batch.Models public class PSAutoPoolSpecification { - internal Microsoft.Azure.Batch.IAutoPoolSpecification omObject; + internal Microsoft.Azure.Batch.AutoPoolSpecification omObject; private PSPoolSpecification poolSpecification; @@ -41,7 +41,7 @@ public PSAutoPoolSpecification() this.omObject = new Microsoft.Azure.Batch.AutoPoolSpecification(); } - internal PSAutoPoolSpecification(Microsoft.Azure.Batch.IAutoPoolSpecification omObject) + internal PSAutoPoolSpecification(Microsoft.Azure.Batch.AutoPoolSpecification omObject) { if ((omObject == null)) { @@ -50,15 +50,15 @@ internal PSAutoPoolSpecification(Microsoft.Azure.Batch.IAutoPoolSpecification om this.omObject = omObject; } - public string AutoPoolNamePrefix + public string AutoPoolIdPrefix { get { - return this.omObject.AutoPoolNamePrefix; + return this.omObject.AutoPoolIdPrefix; } set { - this.omObject.AutoPoolNamePrefix = value; + this.omObject.AutoPoolIdPrefix = value; } } @@ -99,15 +99,15 @@ public PSPoolSpecification PoolSpecification } } - public Microsoft.Azure.Batch.Common.PoolLifeTimeOption PoolLifeTimeOption + public Microsoft.Azure.Batch.Common.PoolLifetimeOption PoolLifetimeOption { get { - return this.omObject.PoolLifeTimeOption; + return this.omObject.PoolLifetimeOption; } set { - this.omObject.PoolLifeTimeOption = value; + this.omObject.PoolLifetimeOption = value; } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSAutoScaleRun.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSAutoScaleRun.cs index 25544aca23cf..5c19a7298103 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSAutoScaleRun.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSAutoScaleRun.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSAutoScaleRunError.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSAutoScaleRunError.cs index caa4aeda555f..6f77b3ff26bc 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSAutoScaleRunError.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSAutoScaleRunError.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCertificateReference.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCertificateReference.cs index ce6b16120be8..1a4c8ce09676 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCertificateReference.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCertificateReference.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -32,14 +32,14 @@ namespace Microsoft.Azure.Commands.Batch.Models public class PSCertificateReference { - internal Microsoft.Azure.Batch.ICertificateReference omObject; + internal Microsoft.Azure.Batch.CertificateReference omObject; public PSCertificateReference() { this.omObject = new Microsoft.Azure.Batch.CertificateReference(); } - internal PSCertificateReference(Microsoft.Azure.Batch.ICertificateReference omObject) + internal PSCertificateReference(Microsoft.Azure.Batch.CertificateReference omObject) { if ((omObject == null)) { @@ -48,7 +48,7 @@ internal PSCertificateReference(Microsoft.Azure.Batch.ICertificateReference omOb this.omObject = omObject; } - public Microsoft.Azure.Batch.Common.CertStoreLocation StoreLocation + public Microsoft.Azure.Batch.Common.CertStoreLocation? StoreLocation { get { @@ -96,7 +96,7 @@ public string ThumbprintAlgorithm } } - public Microsoft.Azure.Batch.Common.CertVisibility Visibility + public Microsoft.Azure.Batch.Common.CertificateVisibility Visibility { get { diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCloudJob.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCloudJob.cs index 10980f76d6c4..beded874bd43 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCloudJob.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCloudJob.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -32,17 +32,27 @@ namespace Microsoft.Azure.Commands.Batch.Models public class PSCloudJob { - internal Microsoft.Azure.Batch.ICloudJob omObject; + internal Microsoft.Azure.Batch.CloudJob omObject; + + private IEnumerable commonEnvironmentSettings; private PSJobExecutionInformation executionInformation; - private PSJobConstraints jobConstraints; + private PSJobConstraints constraints; + + private PSJobManagerTask jobManagerTask; + + private PSJobPreparationTask jobPreparationTask; - private PSJobManager jobManager; + private PSJobReleaseTask jobReleaseTask; + + private IList metadata; + + private PSPoolInformation poolInformation; private PSJobStatistics statistics; - internal PSCloudJob(Microsoft.Azure.Batch.ICloudJob omObject) + internal PSCloudJob(Microsoft.Azure.Batch.CloudJob omObject) { if ((omObject == null)) { @@ -51,7 +61,42 @@ internal PSCloudJob(Microsoft.Azure.Batch.ICloudJob omObject) this.omObject = omObject; } - public System.DateTime CreationTime + public IEnumerable CommonEnvironmentSettings + { + get + { + if (((this.commonEnvironmentSettings == null) + && (this.omObject.CommonEnvironmentSettings != null))) + { + List list; + list = new List(); + IEnumerator enumerator; + enumerator = this.omObject.CommonEnvironmentSettings.GetEnumerator(); + for ( + ; enumerator.MoveNext(); + ) + { + list.Add(new PSEnvironmentSetting(enumerator.Current)); + } + this.commonEnvironmentSettings = list; + } + return this.commonEnvironmentSettings; + } + set + { + if ((value == null)) + { + this.omObject.CommonEnvironmentSettings = null; + } + else + { + this.omObject.CommonEnvironmentSettings = new List(); + } + this.commonEnvironmentSettings = value; + } + } + + public System.DateTime? CreationTime { get { @@ -59,6 +104,26 @@ public System.DateTime CreationTime } } + public string DisplayName + { + get + { + return this.omObject.DisplayName; + } + set + { + this.omObject.DisplayName = value; + } + } + + public string ETag + { + get + { + return this.omObject.ETag; + } + } + public PSJobExecutionInformation ExecutionInformation { get @@ -72,93 +137,187 @@ public PSJobExecutionInformation ExecutionInformation } } - public PSJobConstraints JobConstraints + public string Id + { + get + { + return this.omObject.Id; + } + set + { + this.omObject.Id = value; + } + } + + public PSJobConstraints Constraints { get { - if (((this.jobConstraints == null) - && (this.omObject.JobConstraints != null))) + if (((this.constraints == null) + && (this.omObject.Constraints != null))) { - this.jobConstraints = new PSJobConstraints(this.omObject.JobConstraints); + this.constraints = new PSJobConstraints(this.omObject.Constraints); } - return this.jobConstraints; + return this.constraints; } set { if ((value == null)) { - this.omObject.JobConstraints = null; + this.omObject.Constraints = null; } else { - this.omObject.JobConstraints = value.omObject; + this.omObject.Constraints = value.omObject; } - this.jobConstraints = value; + this.constraints = value; } } - public PSJobManager JobManager + public PSJobManagerTask JobManagerTask { get { - if (((this.jobManager == null) - && (this.omObject.JobManager != null))) + if (((this.jobManagerTask == null) + && (this.omObject.JobManagerTask != null))) { - this.jobManager = new PSJobManager(this.omObject.JobManager); + this.jobManagerTask = new PSJobManagerTask(this.omObject.JobManagerTask); } - return this.jobManager; + return this.jobManagerTask; + } + set + { + if ((value == null)) + { + this.omObject.JobManagerTask = null; + } + else + { + this.omObject.JobManagerTask = value.omObject; + } + this.jobManagerTask = value; } } - public System.Boolean? KeepAlive + public PSJobPreparationTask JobPreparationTask { get { - return this.omObject.KeepAlive; + if (((this.jobPreparationTask == null) + && (this.omObject.JobPreparationTask != null))) + { + this.jobPreparationTask = new PSJobPreparationTask(this.omObject.JobPreparationTask); + } + return this.jobPreparationTask; } set { - this.omObject.KeepAlive = value; + if ((value == null)) + { + this.omObject.JobPreparationTask = null; + } + else + { + this.omObject.JobPreparationTask = value.omObject; + } + this.jobPreparationTask = value; } } - public System.DateTime LastModified + public PSJobReleaseTask JobReleaseTask { get { - return this.omObject.LastModified; + if (((this.jobReleaseTask == null) + && (this.omObject.JobReleaseTask != null))) + { + this.jobReleaseTask = new PSJobReleaseTask(this.omObject.JobReleaseTask); + } + return this.jobReleaseTask; + } + set + { + if ((value == null)) + { + this.omObject.JobReleaseTask = null; + } + else + { + this.omObject.JobReleaseTask = value.omObject; + } + this.jobReleaseTask = value; } } - public string Name + public System.DateTime? LastModified { get { - return this.omObject.Name; + return this.omObject.LastModified; } } - public Microsoft.Azure.Batch.Common.PoolLifeTimeOption PoolLifeTimeOption + public IList Metadata { get { - return this.omObject.PoolLifeTimeOption; + if (((this.metadata == null) + && (this.omObject.Metadata != null))) + { + List list; + list = new List(); + IEnumerator enumerator; + enumerator = this.omObject.Metadata.GetEnumerator(); + for ( + ; enumerator.MoveNext(); + ) + { + list.Add(new PSMetadataItem(enumerator.Current)); + } + this.metadata = list; + } + return this.metadata; + } + set + { + if ((value == null)) + { + this.omObject.Metadata = null; + } + else + { + this.omObject.Metadata = new List(); + } + this.metadata = value; } } - public string PoolName + public PSPoolInformation PoolInformation { get { - return this.omObject.PoolName; + if (((this.poolInformation == null) + && (this.omObject.PoolInformation != null))) + { + this.poolInformation = new PSPoolInformation(this.omObject.PoolInformation); + } + return this.poolInformation; } set { - this.omObject.PoolName = value; + if ((value == null)) + { + this.omObject.PoolInformation = null; + } + else + { + this.omObject.PoolInformation = value.omObject; + } + this.poolInformation = value; } } - public Microsoft.Azure.Batch.Common.JobState PreviousState + public Microsoft.Azure.Batch.Common.JobState? PreviousState { get { @@ -186,7 +345,7 @@ public System.Int32? Priority } } - public Microsoft.Azure.Batch.Common.JobState State + public Microsoft.Azure.Batch.Common.JobState? State { get { @@ -194,7 +353,7 @@ public Microsoft.Azure.Batch.Common.JobState State } } - public System.DateTime StateTransitionTime + public System.DateTime? StateTransitionTime { get { diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCloudWorkItem.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCloudJobSchedule.cs similarity index 73% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCloudWorkItem.cs rename to src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCloudJobSchedule.cs index 5aee50e05d46..7f3d62401a98 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCloudWorkItem.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCloudJobSchedule.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -29,24 +29,22 @@ namespace Microsoft.Azure.Commands.Batch.Models using Microsoft.Azure.Batch; - public class PSCloudWorkItem + public class PSCloudJobSchedule { - internal Microsoft.Azure.Batch.ICloudWorkItem omObject; + internal Microsoft.Azure.Batch.CloudJobSchedule omObject; - private PSWorkItemExecutionInformation executionInformation; - - private PSJobExecutionEnvironment jobExecutionEnvironment; + private PSJobScheduleExecutionInformation executionInformation; private PSJobSpecification jobSpecification; private IList metadata; - private PSWorkItemSchedule schedule; + private PSSchedule schedule; - private PSWorkItemStatistics statistics; + private PSJobScheduleStatistics statistics; - internal PSCloudWorkItem(Microsoft.Azure.Batch.ICloudWorkItem omObject) + internal PSCloudJobSchedule(Microsoft.Azure.Batch.CloudJobSchedule omObject) { if ((omObject == null)) { @@ -55,7 +53,7 @@ internal PSCloudWorkItem(Microsoft.Azure.Batch.ICloudWorkItem omObject) this.omObject = omObject; } - public System.DateTime CreationTime + public System.DateTime? CreationTime { get { @@ -63,41 +61,48 @@ public System.DateTime CreationTime } } - public PSWorkItemExecutionInformation ExecutionInformation + public string DisplayName + { + get + { + return this.omObject.DisplayName; + } + set + { + this.omObject.DisplayName = value; + } + } + + public string ETag + { + get + { + return this.omObject.ETag; + } + } + + public PSJobScheduleExecutionInformation ExecutionInformation { get { if (((this.executionInformation == null) && (this.omObject.ExecutionInformation != null))) { - this.executionInformation = new PSWorkItemExecutionInformation(this.omObject.ExecutionInformation); + this.executionInformation = new PSJobScheduleExecutionInformation(this.omObject.ExecutionInformation); } return this.executionInformation; } } - public PSJobExecutionEnvironment JobExecutionEnvironment + public string Id { get { - if (((this.jobExecutionEnvironment == null) - && (this.omObject.JobExecutionEnvironment != null))) - { - this.jobExecutionEnvironment = new PSJobExecutionEnvironment(this.omObject.JobExecutionEnvironment); - } - return this.jobExecutionEnvironment; + return this.omObject.Id; } set { - if ((value == null)) - { - this.omObject.JobExecutionEnvironment = null; - } - else - { - this.omObject.JobExecutionEnvironment = value.omObject; - } - this.jobExecutionEnvironment = value; + this.omObject.Id = value; } } @@ -143,7 +148,7 @@ public IList Metadata { List list; list = new List(); - IEnumerator enumerator; + IEnumerator enumerator; enumerator = this.omObject.Metadata.GetEnumerator(); for ( ; enumerator.MoveNext(); @@ -163,25 +168,13 @@ public IList Metadata } else { - this.omObject.Metadata = new List(); + this.omObject.Metadata = new List(); } this.metadata = value; } } - public string Name - { - get - { - return this.omObject.Name; - } - set - { - this.omObject.Name = value; - } - } - - public Microsoft.Azure.Batch.Common.WorkItemState PreviousState + public Microsoft.Azure.Batch.Common.JobScheduleState? PreviousState { get { @@ -197,14 +190,14 @@ public System.DateTime? PreviousStateTransitionTime } } - public PSWorkItemSchedule Schedule + public PSSchedule Schedule { get { if (((this.schedule == null) && (this.omObject.Schedule != null))) { - this.schedule = new PSWorkItemSchedule(this.omObject.Schedule); + this.schedule = new PSSchedule(this.omObject.Schedule); } return this.schedule; } @@ -222,7 +215,7 @@ public PSWorkItemSchedule Schedule } } - public Microsoft.Azure.Batch.Common.WorkItemState State + public Microsoft.Azure.Batch.Common.JobScheduleState? State { get { @@ -230,7 +223,7 @@ public Microsoft.Azure.Batch.Common.WorkItemState State } } - public System.DateTime StateTransitionTime + public System.DateTime? StateTransitionTime { get { @@ -238,14 +231,14 @@ public System.DateTime StateTransitionTime } } - public PSWorkItemStatistics Statistics + public PSJobScheduleStatistics Statistics { get { if (((this.statistics == null) && (this.omObject.Statistics != null))) { - this.statistics = new PSWorkItemStatistics(this.omObject.Statistics); + this.statistics = new PSJobScheduleStatistics(this.omObject.Statistics); } return this.statistics; } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCloudPool.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCloudPool.cs index 29b9ecb52625..9593c207d8ad 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCloudPool.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCloudPool.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -32,7 +32,7 @@ namespace Microsoft.Azure.Commands.Batch.Models public class PSCloudPool { - internal Microsoft.Azure.Batch.ICloudPool omObject; + internal Microsoft.Azure.Batch.CloudPool omObject; private PSAutoScaleRun autoScaleRun; @@ -42,13 +42,13 @@ public class PSCloudPool private PSResizeError resizeError; - private PSSchedulingPolicy schedulingPolicy; + private PSTaskSchedulingPolicy taskSchedulingPolicy; private PSStartTask startTask; private PSPoolStatistics statistics; - internal PSCloudPool(Microsoft.Azure.Batch.ICloudPool omObject) + internal PSCloudPool(Microsoft.Azure.Batch.CloudPool omObject) { if ((omObject == null)) { @@ -57,7 +57,7 @@ internal PSCloudPool(Microsoft.Azure.Batch.ICloudPool omObject) this.omObject = omObject; } - public Microsoft.Azure.Batch.Common.AllocationState AllocationState + public Microsoft.Azure.Batch.Common.AllocationState? AllocationState { get { @@ -73,6 +73,18 @@ public System.DateTime? AllocationStateTransitionTime } } + public System.Boolean? AutoScaleEnabled + { + get + { + return this.omObject.AutoScaleEnabled; + } + set + { + this.omObject.AutoScaleEnabled = value; + } + } + public string AutoScaleFormula { get @@ -107,7 +119,7 @@ public IList CertificateReferences { List list; list = new List(); - IEnumerator enumerator; + IEnumerator enumerator; enumerator = this.omObject.CertificateReferences.GetEnumerator(); for ( ; enumerator.MoveNext(); @@ -127,61 +139,81 @@ public IList CertificateReferences } else { - this.omObject.CertificateReferences = new List(); + this.omObject.CertificateReferences = new List(); } this.certificateReferences = value; } } - public System.Boolean? Communication + public System.DateTime? CreationTime { get { - return this.omObject.Communication; + return this.omObject.CreationTime; } - set + } + + public System.Int32? CurrentDedicated + { + get { - this.omObject.Communication = value; + return this.omObject.CurrentDedicated; } } - public System.DateTime CreationTime + public string CurrentOSVersion { get { - return this.omObject.CreationTime; + return this.omObject.CurrentOSVersion; } } - public System.Int32? CurrentDedicated + public string DisplayName { get { - return this.omObject.CurrentDedicated; + return this.omObject.DisplayName; + } + set + { + this.omObject.DisplayName = value; } } - public string CurrentOSVersion + public string ETag { get { - return this.omObject.CurrentOSVersion; + return this.omObject.ETag; } } - public System.Boolean? AutoScaleEnabled + public string Id { get { - return this.omObject.AutoScaleEnabled; + return this.omObject.Id; } set { - this.omObject.AutoScaleEnabled = value; + this.omObject.Id = value; } } - public System.DateTime LastModified + public System.Boolean? InterComputeNodeCommunicationEnabled + { + get + { + return this.omObject.InterComputeNodeCommunicationEnabled; + } + set + { + this.omObject.InterComputeNodeCommunicationEnabled = value; + } + } + + public System.DateTime? LastModified { get { @@ -189,15 +221,15 @@ public System.DateTime LastModified } } - public System.Int32? MaxTasksPerVM + public System.Int32? MaxTasksPerComputeNode { get { - return this.omObject.MaxTasksPerVM; + return this.omObject.MaxTasksPerComputeNode; } set { - this.omObject.MaxTasksPerVM = value; + this.omObject.MaxTasksPerComputeNode = value; } } @@ -210,7 +242,7 @@ public IList Metadata { List list; list = new List(); - IEnumerator enumerator; + IEnumerator enumerator; enumerator = this.omObject.Metadata.GetEnumerator(); for ( ; enumerator.MoveNext(); @@ -230,24 +262,12 @@ public IList Metadata } else { - this.omObject.Metadata = new List(); + this.omObject.Metadata = new List(); } this.metadata = value; } } - public string Name - { - get - { - return this.omObject.Name; - } - set - { - this.omObject.Name = value; - } - } - public string OSFamily { get @@ -285,28 +305,28 @@ public System.TimeSpan? ResizeTimeout } } - public PSSchedulingPolicy SchedulingPolicy + public PSTaskSchedulingPolicy TaskSchedulingPolicy { get { - if (((this.schedulingPolicy == null) - && (this.omObject.SchedulingPolicy != null))) + if (((this.taskSchedulingPolicy == null) + && (this.omObject.TaskSchedulingPolicy != null))) { - this.schedulingPolicy = new PSSchedulingPolicy(this.omObject.SchedulingPolicy); + this.taskSchedulingPolicy = new PSTaskSchedulingPolicy(this.omObject.TaskSchedulingPolicy); } - return this.schedulingPolicy; + return this.taskSchedulingPolicy; } set { if ((value == null)) { - this.omObject.SchedulingPolicy = null; + this.omObject.TaskSchedulingPolicy = null; } else { - this.omObject.SchedulingPolicy = value.omObject; + this.omObject.TaskSchedulingPolicy = value.omObject; } - this.schedulingPolicy = value; + this.taskSchedulingPolicy = value; } } @@ -335,7 +355,7 @@ public PSStartTask StartTask } } - public Microsoft.Azure.Batch.Common.PoolState State + public Microsoft.Azure.Batch.Common.PoolState? State { get { @@ -343,7 +363,7 @@ public Microsoft.Azure.Batch.Common.PoolState State } } - public System.DateTime StateTransitionTime + public System.DateTime? StateTransitionTime { get { @@ -388,23 +408,23 @@ public string TargetOSVersion } } - public string VMSize + public string Url { get { - return this.omObject.VMSize; - } - set - { - this.omObject.VMSize = value; + return this.omObject.Url; } } - public string Url + public string VirtualMachineSize { get { - return this.omObject.Url; + return this.omObject.VirtualMachineSize; + } + set + { + this.omObject.VirtualMachineSize = value; } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCloudTask.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCloudTask.cs index 3d544bc9d9f1..067e1e51a5ee 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCloudTask.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSCloudTask.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -32,28 +32,28 @@ namespace Microsoft.Azure.Commands.Batch.Models public class PSCloudTask { - internal Microsoft.Azure.Batch.ICloudTask omObject; + internal Microsoft.Azure.Batch.CloudTask omObject; private PSAffinityInformation affinityInformation; + private PSComputeNodeInformation computeNodeInformation; + private IList environmentSettings; private PSTaskExecutionInformation executionInformation; - private PSTaskStatistics statistics; - - private PSTaskConstraints taskConstraints; + private IList resourceFiles; - private PSVMInformation vMInformation; + private PSTaskStatistics statistics; - private IList resourceFiles; + private PSTaskConstraints constraints; - public PSCloudTask(string name, string commandline) + public PSCloudTask(string id, string commandline) { - this.omObject = new Microsoft.Azure.Batch.CloudTask(name, commandline); + this.omObject = new Microsoft.Azure.Batch.CloudTask(id, commandline); } - internal PSCloudTask(Microsoft.Azure.Batch.ICloudTask omObject) + internal PSCloudTask(Microsoft.Azure.Batch.CloudTask omObject) { if ((omObject == null)) { @@ -99,7 +99,20 @@ public string CommandLine } } - public System.DateTime CreationTime + public PSComputeNodeInformation ComputeNodeInformation + { + get + { + if (((this.computeNodeInformation == null) + && (this.omObject.ComputeNodeInformation != null))) + { + this.computeNodeInformation = new PSComputeNodeInformation(this.omObject.ComputeNodeInformation); + } + return this.computeNodeInformation; + } + } + + public System.DateTime? CreationTime { get { @@ -107,6 +120,18 @@ public System.DateTime CreationTime } } + public string DisplayName + { + get + { + return this.omObject.DisplayName; + } + set + { + this.omObject.DisplayName = value; + } + } + public IList EnvironmentSettings { get @@ -116,7 +141,7 @@ public IList EnvironmentSettings { List list; list = new List(); - IEnumerator enumerator; + IEnumerator enumerator; enumerator = this.omObject.EnvironmentSettings.GetEnumerator(); for ( ; enumerator.MoveNext(); @@ -136,12 +161,20 @@ public IList EnvironmentSettings } else { - this.omObject.EnvironmentSettings = new List(); + this.omObject.EnvironmentSettings = new List(); } this.environmentSettings = value; } } + public string ETag + { + get + { + return this.omObject.ETag; + } + } + public PSTaskExecutionInformation ExecutionInformation { get @@ -155,27 +188,27 @@ public PSTaskExecutionInformation ExecutionInformation } } - public System.DateTime LastModified + public string Id { get { - return this.omObject.LastModified; + return this.omObject.Id; + } + set + { + this.omObject.Id = value; } } - public string Name + public System.DateTime? LastModified { get { - return this.omObject.Name; - } - set - { - this.omObject.Name = value; + return this.omObject.LastModified; } } - public Microsoft.Azure.Batch.Common.TaskState PreviousState + public Microsoft.Azure.Batch.Common.TaskState? PreviousState { get { @@ -191,6 +224,41 @@ public System.DateTime? PreviousStateTransitionTime } } + public IList ResourceFiles + { + get + { + if (((this.resourceFiles == null) + && (this.omObject.ResourceFiles != null))) + { + List list; + list = new List(); + IEnumerator enumerator; + enumerator = this.omObject.ResourceFiles.GetEnumerator(); + for ( + ; enumerator.MoveNext(); + ) + { + list.Add(new PSResourceFile(enumerator.Current)); + } + this.resourceFiles = list; + } + return this.resourceFiles; + } + set + { + if ((value == null)) + { + this.omObject.ResourceFiles = null; + } + else + { + this.omObject.ResourceFiles = new List(); + } + this.resourceFiles = value; + } + } + public System.Boolean? RunElevated { get @@ -203,7 +271,7 @@ public System.Boolean? RunElevated } } - public Microsoft.Azure.Batch.Common.TaskState State + public Microsoft.Azure.Batch.Common.TaskState? State { get { @@ -211,7 +279,7 @@ public Microsoft.Azure.Batch.Common.TaskState State } } - public System.DateTime StateTransitionTime + public System.DateTime? StateTransitionTime { get { @@ -232,28 +300,28 @@ public PSTaskStatistics Statistics } } - public PSTaskConstraints TaskConstraints + public PSTaskConstraints Constraints { get { - if (((this.taskConstraints == null) - && (this.omObject.TaskConstraints != null))) + if (((this.constraints == null) + && (this.omObject.Constraints != null))) { - this.taskConstraints = new PSTaskConstraints(this.omObject.TaskConstraints); + this.constraints = new PSTaskConstraints(this.omObject.Constraints); } - return this.taskConstraints; + return this.constraints; } set { if ((value == null)) { - this.omObject.TaskConstraints = null; + this.omObject.Constraints = null; } else { - this.omObject.TaskConstraints = value.omObject; + this.omObject.Constraints = value.omObject; } - this.taskConstraints = value; + this.constraints = value; } } @@ -264,53 +332,5 @@ public string Url return this.omObject.Url; } } - - public PSVMInformation VMInformation - { - get - { - if (((this.vMInformation == null) - && (this.omObject.VMInformation != null))) - { - this.vMInformation = new PSVMInformation(this.omObject.VMInformation); - } - return this.vMInformation; - } - } - - public IList ResourceFiles - { - get - { - if (((this.resourceFiles == null) - && (this.omObject.ResourceFiles != null))) - { - List list; - list = new List(); - IEnumerator enumerator; - enumerator = this.omObject.ResourceFiles.GetEnumerator(); - for ( - ; enumerator.MoveNext(); - ) - { - list.Add(new PSResourceFile(enumerator.Current)); - } - this.resourceFiles = list; - } - return this.resourceFiles; - } - set - { - if ((value == null)) - { - this.omObject.ResourceFiles = null; - } - else - { - this.omObject.ResourceFiles = new List(); - } - this.resourceFiles = value; - } - } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSVM.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSComputeNode.cs similarity index 81% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSVM.cs rename to src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSComputeNode.cs index f9111fae3a21..7def3e978d93 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSVM.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSComputeNode.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -29,10 +29,10 @@ namespace Microsoft.Azure.Commands.Batch.Models using Microsoft.Azure.Batch; - public class PSVM + public class PSComputeNode { - internal Microsoft.Azure.Batch.IVM omObject; + internal Microsoft.Azure.Batch.ComputeNode omObject; private PSStartTaskInformation startTaskInformation; @@ -42,9 +42,9 @@ public class PSVM private IEnumerable certificateReferences; - private IEnumerable vMErrors; + private IEnumerable errors; - internal PSVM(Microsoft.Azure.Batch.IVM omObject) + internal PSComputeNode(Microsoft.Azure.Batch.ComputeNode omObject) { if ((omObject == null)) { @@ -53,11 +53,11 @@ internal PSVM(Microsoft.Azure.Batch.IVM omObject) this.omObject = omObject; } - public string Name + public string Id { get { - return this.omObject.Name; + return this.omObject.Id; } } @@ -69,7 +69,7 @@ public string Url } } - public Microsoft.Azure.Batch.Common.TVMState State + public Microsoft.Azure.Batch.Common.ComputeNodeState? State { get { @@ -77,7 +77,7 @@ public Microsoft.Azure.Batch.Common.TVMState State } } - public System.DateTime StateTransitionTime + public System.DateTime? StateTransitionTime { get { @@ -93,11 +93,11 @@ public System.DateTime? LastBootTime } } - public System.DateTime VMAllocationTime + public System.DateTime? AllocationTime { get { - return this.omObject.VMAllocationTime; + return this.omObject.AllocationTime; } } @@ -117,11 +117,11 @@ public string AffinityId } } - public string VMSize + public string VirtualMachineSize { get { - return this.omObject.VMSize; + return this.omObject.VirtualMachineSize; } } @@ -191,7 +191,7 @@ public IEnumerable CertificateReferences { List list; list = new List(); - IEnumerator enumerator; + IEnumerator enumerator; enumerator = this.omObject.CertificateReferences.GetEnumerator(); for ( ; enumerator.MoveNext(); @@ -205,26 +205,26 @@ public IEnumerable CertificateReferences } } - public IEnumerable VMErrors + public IEnumerable Errors { get { - if (((this.vMErrors == null) - && (this.omObject.VMErrors != null))) + if (((this.errors == null) + && (this.omObject.Errors != null))) { - List list; - list = new List(); - IEnumerator enumerator; - enumerator = this.omObject.VMErrors.GetEnumerator(); + List list; + list = new List(); + IEnumerator enumerator; + enumerator = this.omObject.Errors.GetEnumerator(); for ( ; enumerator.MoveNext(); ) { - list.Add(new PSVMError(enumerator.Current)); + list.Add(new PSComputeNodeError(enumerator.Current)); } - this.vMErrors = list; + this.errors = list; } - return this.vMErrors; + return this.errors; } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSVMError.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSComputeNodeError.cs similarity index 92% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSVMError.cs rename to src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSComputeNodeError.cs index 76913111b931..1685c2728056 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSVMError.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSComputeNodeError.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -29,14 +29,14 @@ namespace Microsoft.Azure.Commands.Batch.Models using Microsoft.Azure.Batch; - public class PSVMError + public class PSComputeNodeError { - internal Microsoft.Azure.Batch.VMError omObject; + internal Microsoft.Azure.Batch.ComputeNodeError omObject; private IEnumerable errorDetails; - internal PSVMError(Microsoft.Azure.Batch.VMError omObject) + internal PSComputeNodeError(Microsoft.Azure.Batch.ComputeNodeError omObject) { if ((omObject == null)) { diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSVMInformation.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSComputeNodeInformation.cs similarity index 79% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSVMInformation.cs rename to src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSComputeNodeInformation.cs index 7f673e89be59..35ba5ebb3a07 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSVMInformation.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSComputeNodeInformation.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -29,12 +29,12 @@ namespace Microsoft.Azure.Commands.Batch.Models using Microsoft.Azure.Batch; - public class PSVMInformation + public class PSComputeNodeInformation { - internal Microsoft.Azure.Batch.VMInformation omObject; + internal Microsoft.Azure.Batch.ComputeNodeInformation omObject; - internal PSVMInformation(Microsoft.Azure.Batch.VMInformation omObject) + internal PSComputeNodeInformation(Microsoft.Azure.Batch.ComputeNodeInformation omObject) { if ((omObject == null)) { @@ -51,27 +51,27 @@ public string AffinityId } } - public string PoolName + public string ComputeNodeId { get { - return this.omObject.PoolName; + return this.omObject.ComputeNodeId; } } - public string VMName + public string ComputeNodeUrl { get { - return this.omObject.VMName; + return this.omObject.ComputeNodeUrl; } } - public string VMUrl + public string PoolId { get { - return this.omObject.VMUrl; + return this.omObject.PoolId; } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSUser.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSComputeNodeUser.cs similarity index 91% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSUser.cs rename to src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSComputeNodeUser.cs index 8181078b986b..4fb83d38f266 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSUser.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSComputeNodeUser.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -29,12 +29,12 @@ namespace Microsoft.Azure.Commands.Batch.Models using Microsoft.Azure.Batch; - public class PSUser + public class PSComputeNodeUser { - internal Microsoft.Azure.Batch.IUser omObject; + internal Microsoft.Azure.Batch.ComputeNodeUser omObject; - internal PSUser(Microsoft.Azure.Batch.IUser omObject) + internal PSComputeNodeUser(Microsoft.Azure.Batch.ComputeNodeUser omObject) { if ((omObject == null)) { diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSEnvironmentSetting.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSEnvironmentSetting.cs index 7fb7888a3233..227a59400624 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSEnvironmentSetting.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSEnvironmentSetting.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -32,14 +32,14 @@ namespace Microsoft.Azure.Commands.Batch.Models public class PSEnvironmentSetting { - internal Microsoft.Azure.Batch.IEnvironmentSetting omObject; + internal Microsoft.Azure.Batch.EnvironmentSetting omObject; public PSEnvironmentSetting(string name, string value) { this.omObject = new Microsoft.Azure.Batch.EnvironmentSetting(name, value); } - internal PSEnvironmentSetting(Microsoft.Azure.Batch.IEnvironmentSetting omObject) + internal PSEnvironmentSetting(Microsoft.Azure.Batch.EnvironmentSetting omObject) { if ((omObject == null)) { diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSFileProperties.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSFileProperties.cs index e48630647306..2956e775ee50 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSFileProperties.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSFileProperties.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobConstraints.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobConstraints.cs index b46b3e6f5edb..200d51976f1b 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobConstraints.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobConstraints.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobExecutionInformation.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobExecutionInformation.cs index 516ede53af1c..4c333eaaac34 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobExecutionInformation.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobExecutionInformation.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -61,6 +61,14 @@ public System.DateTime? EndTime } } + public string PoolId + { + get + { + return this.omObject.PoolId; + } + } + public PSJobSchedulingError SchedulingError { get diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobManager.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobManagerTask.cs similarity index 80% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobManager.cs rename to src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobManagerTask.cs index 2f4a95fe9727..8c6be0511a4b 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobManager.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobManagerTask.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -29,23 +29,23 @@ namespace Microsoft.Azure.Commands.Batch.Models using Microsoft.Azure.Batch; - public class PSJobManager + public class PSJobManagerTask { - internal Microsoft.Azure.Batch.IJobManager omObject; - - private IList resourceFiles; + internal Microsoft.Azure.Batch.JobManagerTask omObject; private IList environmentSettings; - private PSTaskConstraints taskConstraints; + private IList resourceFiles; + + private PSTaskConstraints constraints; - public PSJobManager() + public PSJobManagerTask() { - this.omObject = new Microsoft.Azure.Batch.JobManager(); + this.omObject = new Microsoft.Azure.Batch.JobManagerTask(); } - internal PSJobManager(Microsoft.Azure.Batch.IJobManager omObject) + internal PSJobManagerTask(Microsoft.Azure.Batch.JobManagerTask omObject) { if ((omObject == null)) { @@ -54,97 +54,121 @@ internal PSJobManager(Microsoft.Azure.Batch.IJobManager omObject) this.omObject = omObject; } - public string Name + public string CommandLine { get { - return this.omObject.Name; + return this.omObject.CommandLine; } set { - this.omObject.Name = value; + this.omObject.CommandLine = value; } } - public string CommandLine + public string DisplayName { get { - return this.omObject.CommandLine; + return this.omObject.DisplayName; } set { - this.omObject.CommandLine = value; + this.omObject.DisplayName = value; } } - public IList ResourceFiles + public IList EnvironmentSettings { get { - if (((this.resourceFiles == null) - && (this.omObject.ResourceFiles != null))) + if (((this.environmentSettings == null) + && (this.omObject.EnvironmentSettings != null))) { - List list; - list = new List(); - IEnumerator enumerator; - enumerator = this.omObject.ResourceFiles.GetEnumerator(); + List list; + list = new List(); + IEnumerator enumerator; + enumerator = this.omObject.EnvironmentSettings.GetEnumerator(); for ( ; enumerator.MoveNext(); ) { - list.Add(new PSResourceFile(enumerator.Current)); + list.Add(new PSEnvironmentSetting(enumerator.Current)); } - this.resourceFiles = list; + this.environmentSettings = list; } - return this.resourceFiles; + return this.environmentSettings; } set { if ((value == null)) { - this.omObject.ResourceFiles = null; + this.omObject.EnvironmentSettings = null; } else { - this.omObject.ResourceFiles = new List(); + this.omObject.EnvironmentSettings = new List(); } - this.resourceFiles = value; + this.environmentSettings = value; } } - public IList EnvironmentSettings + public string Id { get { - if (((this.environmentSettings == null) - && (this.omObject.EnvironmentSettings != null))) + return this.omObject.Id; + } + set + { + this.omObject.Id = value; + } + } + + public System.Boolean? KillJobOnCompletion + { + get + { + return this.omObject.KillJobOnCompletion; + } + set + { + this.omObject.KillJobOnCompletion = value; + } + } + + public IList ResourceFiles + { + get + { + if (((this.resourceFiles == null) + && (this.omObject.ResourceFiles != null))) { - List list; - list = new List(); - IEnumerator enumerator; - enumerator = this.omObject.EnvironmentSettings.GetEnumerator(); + List list; + list = new List(); + IEnumerator enumerator; + enumerator = this.omObject.ResourceFiles.GetEnumerator(); for ( ; enumerator.MoveNext(); ) { - list.Add(new PSEnvironmentSetting(enumerator.Current)); + list.Add(new PSResourceFile(enumerator.Current)); } - this.environmentSettings = list; + this.resourceFiles = list; } - return this.environmentSettings; + return this.resourceFiles; } set { if ((value == null)) { - this.omObject.EnvironmentSettings = null; + this.omObject.ResourceFiles = null; } else { - this.omObject.EnvironmentSettings = new List(); + this.omObject.ResourceFiles = new List(); } - this.environmentSettings = value; + this.resourceFiles = value; } } @@ -172,40 +196,28 @@ public System.Boolean? RunExclusive } } - public PSTaskConstraints TaskConstraints + public PSTaskConstraints Constraints { get { - if (((this.taskConstraints == null) - && (this.omObject.TaskConstraints != null))) + if (((this.constraints == null) + && (this.omObject.Constraints != null))) { - this.taskConstraints = new PSTaskConstraints(this.omObject.TaskConstraints); + this.constraints = new PSTaskConstraints(this.omObject.Constraints); } - return this.taskConstraints; + return this.constraints; } set { if ((value == null)) { - this.omObject.TaskConstraints = null; + this.omObject.Constraints = null; } else { - this.omObject.TaskConstraints = value.omObject; + this.omObject.Constraints = value.omObject; } - this.taskConstraints = value; - } - } - - public System.Boolean? KillJobOnCompletion - { - get - { - return this.omObject.KillJobOnCompletion; - } - set - { - this.omObject.KillJobOnCompletion = value; + this.constraints = value; } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobPreparationTask.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobPreparationTask.cs new file mode 100644 index 000000000000..96a041843dc9 --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobPreparationTask.cs @@ -0,0 +1,212 @@ +// ----------------------------------------------------------------------------- +// +// 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. +// ----------------------------------------------------------------------------- +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.34209 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Microsoft.Azure.Commands.Batch.Models +{ + using System; + using System.Collections; + using System.Collections.Generic; + using Microsoft.Azure.Batch; + + + public class PSJobPreparationTask + { + + internal Microsoft.Azure.Batch.JobPreparationTask omObject; + + private IEnumerable resourceFiles; + + private IList environmentSettings; + + private PSTaskConstraints constraints; + + public PSJobPreparationTask() + { + this.omObject = new Microsoft.Azure.Batch.JobPreparationTask(); + } + + internal PSJobPreparationTask(Microsoft.Azure.Batch.JobPreparationTask omObject) + { + if ((omObject == null)) + { + throw new System.ArgumentNullException("omObject"); + } + this.omObject = omObject; + } + + public string Id + { + get + { + return this.omObject.Id; + } + set + { + this.omObject.Id = value; + } + } + + public string CommandLine + { + get + { + return this.omObject.CommandLine; + } + set + { + this.omObject.CommandLine = value; + } + } + + public IEnumerable ResourceFiles + { + get + { + if (((this.resourceFiles == null) + && (this.omObject.ResourceFiles != null))) + { + List list; + list = new List(); + IEnumerator enumerator; + enumerator = this.omObject.ResourceFiles.GetEnumerator(); + for ( + ; enumerator.MoveNext(); + ) + { + list.Add(new PSResourceFile(enumerator.Current)); + } + this.resourceFiles = list; + } + return this.resourceFiles; + } + set + { + if ((value == null)) + { + this.omObject.ResourceFiles = null; + } + else + { + this.omObject.ResourceFiles = new List(); + } + this.resourceFiles = value; + } + } + + public IList EnvironmentSettings + { + get + { + if (((this.environmentSettings == null) + && (this.omObject.EnvironmentSettings != null))) + { + List list; + list = new List(); + IEnumerator enumerator; + enumerator = this.omObject.EnvironmentSettings.GetEnumerator(); + for ( + ; enumerator.MoveNext(); + ) + { + list.Add(new PSEnvironmentSetting(enumerator.Current)); + } + this.environmentSettings = list; + } + return this.environmentSettings; + } + set + { + if ((value == null)) + { + this.omObject.EnvironmentSettings = null; + } + else + { + this.omObject.EnvironmentSettings = new List(); + } + this.environmentSettings = value; + } + } + + public System.Boolean? RunElevated + { + get + { + return this.omObject.RunElevated; + } + set + { + this.omObject.RunElevated = value; + } + } + + public PSTaskConstraints Constraints + { + get + { + if (((this.constraints == null) + && (this.omObject.Constraints != null))) + { + this.constraints = new PSTaskConstraints(this.omObject.Constraints); + } + return this.constraints; + } + set + { + if ((value == null)) + { + this.omObject.Constraints = null; + } + else + { + this.omObject.Constraints = value.omObject; + } + this.constraints = value; + } + } + + public System.Boolean? WaitForSuccess + { + get + { + return this.omObject.WaitForSuccess; + } + set + { + this.omObject.WaitForSuccess = value; + } + } + + public System.Boolean? RerunOnComputeNodeRebootAfterSuccess + { + get + { + return this.omObject.RerunOnComputeNodeRebootAfterSuccess; + } + set + { + this.omObject.RerunOnComputeNodeRebootAfterSuccess = value; + } + } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobReleaseTask.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobReleaseTask.cs new file mode 100644 index 000000000000..cef4e02f59fd --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobReleaseTask.cs @@ -0,0 +1,185 @@ +// ----------------------------------------------------------------------------- +// +// 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. +// ----------------------------------------------------------------------------- +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.34209 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Microsoft.Azure.Commands.Batch.Models +{ + using System; + using System.Collections; + using System.Collections.Generic; + using Microsoft.Azure.Batch; + + + public class PSJobReleaseTask + { + + internal Microsoft.Azure.Batch.JobReleaseTask omObject; + + private IList resourceFiles; + + private IList environmentSettings; + + public PSJobReleaseTask() + { + this.omObject = new Microsoft.Azure.Batch.JobReleaseTask(); + } + + internal PSJobReleaseTask(Microsoft.Azure.Batch.JobReleaseTask omObject) + { + if ((omObject == null)) + { + throw new System.ArgumentNullException("omObject"); + } + this.omObject = omObject; + } + + public string CommandLine + { + get + { + return this.omObject.CommandLine; + } + set + { + this.omObject.CommandLine = value; + } + } + + public string Id + { + get + { + return this.omObject.Id; + } + set + { + this.omObject.Id = value; + } + } + + public IList ResourceFiles + { + get + { + if (((this.resourceFiles == null) + && (this.omObject.ResourceFiles != null))) + { + List list; + list = new List(); + IEnumerator enumerator; + enumerator = this.omObject.ResourceFiles.GetEnumerator(); + for ( + ; enumerator.MoveNext(); + ) + { + list.Add(new PSResourceFile(enumerator.Current)); + } + this.resourceFiles = list; + } + return this.resourceFiles; + } + set + { + if ((value == null)) + { + this.omObject.ResourceFiles = null; + } + else + { + this.omObject.ResourceFiles = new List(); + } + this.resourceFiles = value; + } + } + + public IList EnvironmentSettings + { + get + { + if (((this.environmentSettings == null) + && (this.omObject.EnvironmentSettings != null))) + { + List list; + list = new List(); + IEnumerator enumerator; + enumerator = this.omObject.EnvironmentSettings.GetEnumerator(); + for ( + ; enumerator.MoveNext(); + ) + { + list.Add(new PSEnvironmentSetting(enumerator.Current)); + } + this.environmentSettings = list; + } + return this.environmentSettings; + } + set + { + if ((value == null)) + { + this.omObject.EnvironmentSettings = null; + } + else + { + this.omObject.EnvironmentSettings = new List(); + } + this.environmentSettings = value; + } + } + + public System.Boolean? RunElevated + { + get + { + return this.omObject.RunElevated; + } + set + { + this.omObject.RunElevated = value; + } + } + + public System.TimeSpan? MaxWallClockTime + { + get + { + return this.omObject.MaxWallClockTime; + } + set + { + this.omObject.MaxWallClockTime = value; + } + } + + public System.TimeSpan? RetentionTime + { + get + { + return this.omObject.RetentionTime; + } + set + { + this.omObject.RetentionTime = value; + } + } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSWorkItemExecutionInformation.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobScheduleExecutionInformation.cs similarity index 88% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSWorkItemExecutionInformation.cs rename to src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobScheduleExecutionInformation.cs index f168f7412f2f..76cd31419cea 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSWorkItemExecutionInformation.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobScheduleExecutionInformation.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -29,14 +29,14 @@ namespace Microsoft.Azure.Commands.Batch.Models using Microsoft.Azure.Batch; - public class PSWorkItemExecutionInformation + public class PSJobScheduleExecutionInformation { - internal Microsoft.Azure.Batch.IWorkItemExecutionInformation omObject; + internal Microsoft.Azure.Batch.JobScheduleExecutionInformation omObject; private PSRecentJob recentJob; - internal PSWorkItemExecutionInformation(Microsoft.Azure.Batch.IWorkItemExecutionInformation omObject) + internal PSJobScheduleExecutionInformation(Microsoft.Azure.Batch.JobScheduleExecutionInformation omObject) { if ((omObject == null)) { diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSWorkItemStatistics.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobScheduleStatistics.cs similarity index 75% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSWorkItemStatistics.cs rename to src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobScheduleStatistics.cs index 1e0bf9a61dc3..80dee69b856b 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSWorkItemStatistics.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobScheduleStatistics.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -29,12 +29,12 @@ namespace Microsoft.Azure.Commands.Batch.Models using Microsoft.Azure.Batch; - public class PSWorkItemStatistics + public class PSJobScheduleStatistics { - internal Microsoft.Azure.Batch.IWorkItemStatistics omObject; + internal Microsoft.Azure.Batch.JobScheduleStatistics omObject; - internal PSWorkItemStatistics(Microsoft.Azure.Batch.IWorkItemStatistics omObject) + internal PSJobScheduleStatistics(Microsoft.Azure.Batch.JobScheduleStatistics omObject) { if ((omObject == null)) { @@ -59,27 +59,27 @@ public System.DateTime StartTime } } - public System.DateTime EndTime + public System.DateTime LastUpdateTime { get { - return this.omObject.EndTime; + return this.omObject.LastUpdateTime; } } - public System.TimeSpan UserCPUTime + public System.TimeSpan UserCpuTime { get { - return this.omObject.UserCPUTime; + return this.omObject.UserCpuTime; } } - public System.TimeSpan KernelCPUTime + public System.TimeSpan KernelCpuTime { get { - return this.omObject.KernelCPUTime; + return this.omObject.KernelCpuTime; } } @@ -107,43 +107,43 @@ public long WriteIOps } } - public long ReadIOBytes + public double ReadIOGiB { get { - return this.omObject.ReadIOBytes; + return this.omObject.ReadIOGiB; } } - public long WriteIOBytes + public double WriteIOGiB { get { - return this.omObject.WriteIOBytes; + return this.omObject.WriteIOGiB; } } - public long NumSucceededTasks + public long SucceededTaskCount { get { - return this.omObject.NumSucceededTasks; + return this.omObject.SucceededTaskCount; } } - public long NumFailedTasks + public long FailedTaskCount { get { - return this.omObject.NumFailedTasks; + return this.omObject.FailedTaskCount; } } - public long NumRetries + public long TaskRetryCount { get { - return this.omObject.NumRetries; + return this.omObject.TaskRetryCount; } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobSchedulingError.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobSchedulingError.cs index bc283d920186..08c89ca2c627 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobSchedulingError.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobSchedulingError.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobSpecification.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobSpecification.cs index bcf920d23f4f..c717c22a83e2 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobSpecification.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobSpecification.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -32,18 +32,28 @@ namespace Microsoft.Azure.Commands.Batch.Models public class PSJobSpecification { - internal Microsoft.Azure.Batch.IJobSpecification omObject; + internal Microsoft.Azure.Batch.JobSpecification omObject; - private PSJobConstraints jobConstraints; + private IList commonEnvironmentSettings; - private PSJobManager jobManager; + private PSJobConstraints constraints; + + private PSJobManagerTask jobManagerTask; + + private PSJobPreparationTask jobPreparationTask; + + private PSJobReleaseTask jobReleaseTask; + + private PSPoolInformation poolInformation; + + private IList metadata; public PSJobSpecification() { this.omObject = new Microsoft.Azure.Batch.JobSpecification(); } - internal PSJobSpecification(Microsoft.Azure.Batch.IJobSpecification omObject) + internal PSJobSpecification(Microsoft.Azure.Batch.JobSpecification omObject) { if ((omObject == null)) { @@ -52,53 +62,210 @@ internal PSJobSpecification(Microsoft.Azure.Batch.IJobSpecification omObject) this.omObject = omObject; } - public PSJobConstraints JobConstraints + public IList CommonEnvironmentSettings + { + get + { + if (((this.commonEnvironmentSettings == null) + && (this.omObject.CommonEnvironmentSettings != null))) + { + List list; + list = new List(); + IEnumerator enumerator; + enumerator = this.omObject.CommonEnvironmentSettings.GetEnumerator(); + for ( + ; enumerator.MoveNext(); + ) + { + list.Add(new PSEnvironmentSetting(enumerator.Current)); + } + this.commonEnvironmentSettings = list; + } + return this.commonEnvironmentSettings; + } + set + { + if ((value == null)) + { + this.omObject.CommonEnvironmentSettings = null; + } + else + { + this.omObject.CommonEnvironmentSettings = new List(); + } + this.commonEnvironmentSettings = value; + } + } + + public PSJobConstraints Constraints + { + get + { + if (((this.constraints == null) + && (this.omObject.Constraints != null))) + { + this.constraints = new PSJobConstraints(this.omObject.Constraints); + } + return this.constraints; + } + set + { + if ((value == null)) + { + this.omObject.Constraints = null; + } + else + { + this.omObject.Constraints = value.omObject; + } + this.constraints = value; + } + } + + public string DisplayName + { + get + { + return this.omObject.DisplayName; + } + set + { + this.omObject.DisplayName = value; + } + } + + public PSJobManagerTask JobManagerTask + { + get + { + if (((this.jobManagerTask == null) + && (this.omObject.JobManagerTask != null))) + { + this.jobManagerTask = new PSJobManagerTask(this.omObject.JobManagerTask); + } + return this.jobManagerTask; + } + set + { + if ((value == null)) + { + this.omObject.JobManagerTask = null; + } + else + { + this.omObject.JobManagerTask = value.omObject; + } + this.jobManagerTask = value; + } + } + + public PSJobPreparationTask JobPreparationTask + { + get + { + if (((this.jobPreparationTask == null) + && (this.omObject.JobPreparationTask != null))) + { + this.jobPreparationTask = new PSJobPreparationTask(this.omObject.JobPreparationTask); + } + return this.jobPreparationTask; + } + set + { + if ((value == null)) + { + this.omObject.JobPreparationTask = null; + } + else + { + this.omObject.JobPreparationTask = value.omObject; + } + this.jobPreparationTask = value; + } + } + + public PSJobReleaseTask JobReleaseTask + { + get + { + if (((this.jobReleaseTask == null) + && (this.omObject.JobReleaseTask != null))) + { + this.jobReleaseTask = new PSJobReleaseTask(this.omObject.JobReleaseTask); + } + return this.jobReleaseTask; + } + set + { + if ((value == null)) + { + this.omObject.JobReleaseTask = null; + } + else + { + this.omObject.JobReleaseTask = value.omObject; + } + this.jobReleaseTask = value; + } + } + + public PSPoolInformation PoolInformation { get { - if (((this.jobConstraints == null) - && (this.omObject.JobConstraints != null))) + if (((this.poolInformation == null) + && (this.omObject.PoolInformation != null))) { - this.jobConstraints = new PSJobConstraints(this.omObject.JobConstraints); + this.poolInformation = new PSPoolInformation(this.omObject.PoolInformation); } - return this.jobConstraints; + return this.poolInformation; } set { if ((value == null)) { - this.omObject.JobConstraints = null; + this.omObject.PoolInformation = null; } else { - this.omObject.JobConstraints = value.omObject; + this.omObject.PoolInformation = value.omObject; } - this.jobConstraints = value; + this.poolInformation = value; } } - public PSJobManager JobManager + public IList Metadata { get { - if (((this.jobManager == null) - && (this.omObject.JobManager != null))) + if (((this.metadata == null) + && (this.omObject.Metadata != null))) { - this.jobManager = new PSJobManager(this.omObject.JobManager); + List list; + list = new List(); + IEnumerator enumerator; + enumerator = this.omObject.Metadata.GetEnumerator(); + for ( + ; enumerator.MoveNext(); + ) + { + list.Add(new PSMetadataItem(enumerator.Current)); + } + this.metadata = list; } - return this.jobManager; + return this.metadata; } set { if ((value == null)) { - this.omObject.JobManager = null; + this.omObject.Metadata = null; } else { - this.omObject.JobManager = value.omObject; + this.omObject.Metadata = new List(); } - this.jobManager = value; + this.metadata = value; } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobStatistics.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobStatistics.cs index 9399d03e15e7..95dd2bc45a28 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobStatistics.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobStatistics.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -59,27 +59,27 @@ public System.DateTime StartTime } } - public System.DateTime EndTime + public System.DateTime LastUpdateTime { get { - return this.omObject.EndTime; + return this.omObject.LastUpdateTime; } } - public System.TimeSpan UserCPUTime + public System.TimeSpan UserCpuTime { get { - return this.omObject.UserCPUTime; + return this.omObject.UserCpuTime; } } - public System.TimeSpan KernelCPUTime + public System.TimeSpan KernelCpuTime { get { - return this.omObject.KernelCPUTime; + return this.omObject.KernelCpuTime; } } @@ -107,43 +107,43 @@ public long WriteIOps } } - public long ReadIOBytes + public double ReadIOGiB { get { - return this.omObject.ReadIOBytes; + return this.omObject.ReadIOGiB; } } - public long WriteIOBytes + public double WriteIOGiB { get { - return this.omObject.WriteIOBytes; + return this.omObject.WriteIOGiB; } } - public long NumSucceededTasks + public long SucceededTaskCount { get { - return this.omObject.NumSucceededTasks; + return this.omObject.SucceededTaskCount; } } - public long NumFailedTasks + public long FailedTaskCount { get { - return this.omObject.NumFailedTasks; + return this.omObject.FailedTaskCount; } } - public long NumRetries + public long TaskRetryCount { get { - return this.omObject.NumRetries; + return this.omObject.TaskRetryCount; } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSMetadataItem.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSMetadataItem.cs index e1b8669d545d..9f621bb240d5 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSMetadataItem.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSMetadataItem.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -32,14 +32,14 @@ namespace Microsoft.Azure.Commands.Batch.Models public class PSMetadataItem { - internal Microsoft.Azure.Batch.IMetadataItem omObject; + internal Microsoft.Azure.Batch.MetadataItem omObject; public PSMetadataItem(string name, string value) { this.omObject = new Microsoft.Azure.Batch.MetadataItem(name, value); } - internal PSMetadataItem(Microsoft.Azure.Batch.IMetadataItem omObject) + internal PSMetadataItem(Microsoft.Azure.Batch.MetadataItem omObject) { if ((omObject == null)) { diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSNameValuePair.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSNameValuePair.cs index af2328e2d779..3fa2f98afd11 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSNameValuePair.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSNameValuePair.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSVMFile.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSNodeFile.cs similarity index 94% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSVMFile.cs rename to src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSNodeFile.cs index 1dcfa5f01527..c81da1b55145 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSVMFile.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSNodeFile.cs @@ -29,14 +29,14 @@ namespace Microsoft.Azure.Commands.Batch.Models using Microsoft.Azure.Batch; - public class PSVMFile + public class PSNodeFile { - internal Microsoft.Azure.Batch.ITaskFile omObject; + internal Microsoft.Azure.Batch.NodeFile omObject; private PSFileProperties properties; - internal PSVMFile(Microsoft.Azure.Batch.ITaskFile omObject) + internal PSNodeFile(Microsoft.Azure.Batch.NodeFile omObject) { if ((omObject == null)) { diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobExecutionEnvironment.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSPoolInformation.cs similarity index 83% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobExecutionEnvironment.cs rename to src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSPoolInformation.cs index d488bd4d6d95..a3883d31f61d 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSJobExecutionEnvironment.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSPoolInformation.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -29,19 +29,19 @@ namespace Microsoft.Azure.Commands.Batch.Models using Microsoft.Azure.Batch; - public class PSJobExecutionEnvironment + public class PSPoolInformation { - internal Microsoft.Azure.Batch.IJobExecutionEnvironment omObject; + internal Microsoft.Azure.Batch.PoolInformation omObject; private PSAutoPoolSpecification autoPoolSpecification; - public PSJobExecutionEnvironment() + public PSPoolInformation() { - this.omObject = new Microsoft.Azure.Batch.JobExecutionEnvironment(); + this.omObject = new Microsoft.Azure.Batch.PoolInformation(); } - internal PSJobExecutionEnvironment(Microsoft.Azure.Batch.IJobExecutionEnvironment omObject) + internal PSPoolInformation(Microsoft.Azure.Batch.PoolInformation omObject) { if ((omObject == null)) { @@ -75,15 +75,15 @@ public PSAutoPoolSpecification AutoPoolSpecification } } - public string PoolName + public string PoolId { get { - return this.omObject.PoolName; + return this.omObject.PoolId; } set { - this.omObject.PoolName = value; + this.omObject.PoolId = value; } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSPoolSpecification.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSPoolSpecification.cs index 415e2733fd1d..5bb1ada6971f 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSPoolSpecification.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSPoolSpecification.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -32,13 +32,13 @@ namespace Microsoft.Azure.Commands.Batch.Models public class PSPoolSpecification { - internal Microsoft.Azure.Batch.IPoolSpecification omObject; + internal Microsoft.Azure.Batch.PoolSpecification omObject; private IList certificateReferences; private IList metadata; - private PSSchedulingPolicy schedulingPolicy; + private PSTaskSchedulingPolicy taskSchedulingPolicy; private PSStartTask startTask; @@ -47,7 +47,7 @@ public PSPoolSpecification() this.omObject = new Microsoft.Azure.Batch.PoolSpecification(); } - internal PSPoolSpecification(Microsoft.Azure.Batch.IPoolSpecification omObject) + internal PSPoolSpecification(Microsoft.Azure.Batch.PoolSpecification omObject) { if ((omObject == null)) { @@ -56,6 +56,18 @@ internal PSPoolSpecification(Microsoft.Azure.Batch.IPoolSpecification omObject) this.omObject = omObject; } + public System.Boolean? AutoScaleEnabled + { + get + { + return this.omObject.AutoScaleEnabled; + } + set + { + this.omObject.AutoScaleEnabled = value; + } + } + public string AutoScaleFormula { get @@ -77,7 +89,7 @@ public IList CertificateReferences { List list; list = new List(); - IEnumerator enumerator; + IEnumerator enumerator; enumerator = this.omObject.CertificateReferences.GetEnumerator(); for ( ; enumerator.MoveNext(); @@ -97,45 +109,45 @@ public IList CertificateReferences } else { - this.omObject.CertificateReferences = new List(); + this.omObject.CertificateReferences = new List(); } this.certificateReferences = value; } } - public System.Boolean? Communication + public string DisplayName { get { - return this.omObject.Communication; + return this.omObject.DisplayName; } set { - this.omObject.Communication = value; + this.omObject.DisplayName = value; } } - public System.Boolean? EnableAutoScale + public System.Boolean? InterComputeNodeCommunicationEnabled { get { - return this.omObject.EnableAutoScale; + return this.omObject.InterComputeNodeCommunicationEnabled; } set { - this.omObject.EnableAutoScale = value; + this.omObject.InterComputeNodeCommunicationEnabled = value; } } - public System.Int32? MaxTasksPerVM + public System.Int32? MaxTasksPerComputeNode { get { - return this.omObject.MaxTasksPerVM; + return this.omObject.MaxTasksPerComputeNode; } set { - this.omObject.MaxTasksPerVM = value; + this.omObject.MaxTasksPerComputeNode = value; } } @@ -148,7 +160,7 @@ public IList Metadata { List list; list = new List(); - IEnumerator enumerator; + IEnumerator enumerator; enumerator = this.omObject.Metadata.GetEnumerator(); for ( ; enumerator.MoveNext(); @@ -168,7 +180,7 @@ public IList Metadata } else { - this.omObject.Metadata = new List(); + this.omObject.Metadata = new List(); } this.metadata = value; } @@ -198,28 +210,28 @@ public System.TimeSpan? ResizeTimeout } } - public PSSchedulingPolicy SchedulingPolicy + public PSTaskSchedulingPolicy TaskSchedulingPolicy { get { - if (((this.schedulingPolicy == null) - && (this.omObject.SchedulingPolicy != null))) + if (((this.taskSchedulingPolicy == null) + && (this.omObject.TaskSchedulingPolicy != null))) { - this.schedulingPolicy = new PSSchedulingPolicy(this.omObject.SchedulingPolicy); + this.taskSchedulingPolicy = new PSTaskSchedulingPolicy(this.omObject.TaskSchedulingPolicy); } - return this.schedulingPolicy; + return this.taskSchedulingPolicy; } set { if ((value == null)) { - this.omObject.SchedulingPolicy = null; + this.omObject.TaskSchedulingPolicy = null; } else { - this.omObject.SchedulingPolicy = value.omObject; + this.omObject.TaskSchedulingPolicy = value.omObject; } - this.schedulingPolicy = value; + this.taskSchedulingPolicy = value; } } @@ -272,15 +284,15 @@ public string TargetOSVersion } } - public string VMSize + public string VirtualMachineSize { get { - return this.omObject.VMSize; + return this.omObject.VirtualMachineSize; } set { - this.omObject.VMSize = value; + this.omObject.VirtualMachineSize = value; } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSPoolStatistics.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSPoolStatistics.cs index 9d6e8a11848f..ab1ff509d338 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSPoolStatistics.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSPoolStatistics.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -55,7 +55,7 @@ public string Url } } - public System.DateTime? StartTime + public System.DateTime StartTime { get { @@ -63,11 +63,11 @@ public System.DateTime? StartTime } } - public System.DateTime? EndTime + public System.DateTime LastUpdateTime { get { - return this.omObject.EndTime; + return this.omObject.LastUpdateTime; } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskFile.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSPoolUsageMetrics.cs similarity index 63% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskFile.cs rename to src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSPoolUsageMetrics.cs index d0b08882a220..653181b2be6a 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskFile.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSPoolUsageMetrics.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -29,14 +29,12 @@ namespace Microsoft.Azure.Commands.Batch.Models using Microsoft.Azure.Batch; - public class PSTaskFile + public class PSPoolUsageMetrics { - internal Microsoft.Azure.Batch.ITaskFile omObject; + internal Microsoft.Azure.Batch.PoolUsageMetrics omObject; - private PSFileProperties properties; - - internal PSTaskFile(Microsoft.Azure.Batch.ITaskFile omObject) + internal PSPoolUsageMetrics(Microsoft.Azure.Batch.PoolUsageMetrics omObject) { if ((omObject == null)) { @@ -45,40 +43,59 @@ internal PSTaskFile(Microsoft.Azure.Batch.ITaskFile omObject) this.omObject = omObject; } - public System.Boolean? IsDirectory + public double DataEgressGiB + { + get + { + return this.omObject.DataEgressGiB; + } + } + + public double DataIngressGiB + { + get + { + return this.omObject.DataIngressGiB; + } + } + + public System.DateTime EndTime + { + get + { + return this.omObject.EndTime; + } + } + + public string PoolId { get { - return this.omObject.IsDirectory; + return this.omObject.PoolId; } } - public string Name + public System.DateTime StartTime { get { - return this.omObject.Name; + return this.omObject.StartTime; } } - public PSFileProperties Properties + public double TotalCoreHours { get { - if (((this.properties == null) - && (this.omObject.Properties != null))) - { - this.properties = new PSFileProperties(this.omObject.Properties); - } - return this.properties; + return this.omObject.TotalCoreHours; } } - public string Url + public string VirtualMachineSize { get { - return this.omObject.Url; + return this.omObject.VirtualMachineSize; } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSRecentJob.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSRecentJob.cs index 15d3d15d090a..d26fa52de922 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSRecentJob.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSRecentJob.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -51,11 +51,11 @@ public string Url } } - public string Name + public string Id { get { - return this.omObject.Name; + return this.omObject.Id; } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSResizeError.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSResizeError.cs index a78d92d747a7..7d06f9668380 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSResizeError.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSResizeError.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSResourceFile.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSResourceFile.cs index cdc80c658d16..e31b3e468c2b 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSResourceFile.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSResourceFile.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -32,14 +32,14 @@ namespace Microsoft.Azure.Commands.Batch.Models public class PSResourceFile { - internal Microsoft.Azure.Batch.IResourceFile omObject; + internal Microsoft.Azure.Batch.ResourceFile omObject; public PSResourceFile(string blobSource, string filePath) { this.omObject = new Microsoft.Azure.Batch.ResourceFile(blobSource, filePath); } - internal PSResourceFile(Microsoft.Azure.Batch.IResourceFile omObject) + internal PSResourceFile(Microsoft.Azure.Batch.ResourceFile omObject) { if ((omObject == null)) { diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSResourceStatistics.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSResourceStatistics.cs index 68eaae332101..a1a2fe65908a 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSResourceStatistics.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSResourceStatistics.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -43,7 +43,7 @@ internal PSResourceStatistics(Microsoft.Azure.Batch.ResourceStatistics omObject) this.omObject = omObject; } - public System.DateTime? StartTime + public System.DateTime StartTime { get { @@ -51,51 +51,51 @@ public System.DateTime? StartTime } } - public System.DateTime? EndTime + public System.DateTime LastUpdateTime { get { - return this.omObject.EndTime; + return this.omObject.LastUpdateTime; } } - public double AvgCPU + public double AverageCpuPercentage { get { - return this.omObject.AvgCPU; + return this.omObject.AverageCpuPercentage; } } - public double AvgMemory + public double AverageMemoryGiB { get { - return this.omObject.AvgMemory; + return this.omObject.AverageMemoryGiB; } } - public double PeakMemory + public double PeakMemoryGiB { get { - return this.omObject.PeakMemory; + return this.omObject.PeakMemoryGiB; } } - public long AvgDisk + public double AverageDiskGiB { get { - return this.omObject.AvgDisk; + return this.omObject.AverageDiskGiB; } } - public long PeakDisk + public double PeakDiskGiB { get { - return this.omObject.PeakDisk; + return this.omObject.PeakDiskGiB; } } @@ -119,35 +119,35 @@ public long DiskWriteIOps } } - public long DiskReadBytes + public double DiskReadGiB { get { - return this.omObject.DiskReadBytes; + return this.omObject.DiskReadGiB; } } - public long DiskWriteBytes + public double DiskWriteGiB { get { - return this.omObject.DiskWriteBytes; + return this.omObject.DiskWriteGiB; } } - public long NetworkReadBytes + public double NetworkReadGiB { get { - return this.omObject.NetworkReadBytes; + return this.omObject.NetworkReadGiB; } } - public long NetworkWriteBytes + public double NetworkWriteGiB { get { - return this.omObject.NetworkWriteBytes; + return this.omObject.NetworkWriteGiB; } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSWorkItemSchedule.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSSchedule.cs similarity index 88% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSWorkItemSchedule.cs rename to src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSSchedule.cs index 6cf3f44de6e8..e0bdd6d15a20 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSWorkItemSchedule.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSSchedule.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -29,17 +29,17 @@ namespace Microsoft.Azure.Commands.Batch.Models using Microsoft.Azure.Batch; - public class PSWorkItemSchedule + public class PSSchedule { - internal Microsoft.Azure.Batch.IWorkItemSchedule omObject; + internal Microsoft.Azure.Batch.Schedule omObject; - public PSWorkItemSchedule() + public PSSchedule() { - this.omObject = new Microsoft.Azure.Batch.WorkItemSchedule(); + this.omObject = new Microsoft.Azure.Batch.Schedule(); } - internal PSWorkItemSchedule(Microsoft.Azure.Batch.IWorkItemSchedule omObject) + internal PSSchedule(Microsoft.Azure.Batch.Schedule omObject) { if ((omObject == null)) { @@ -48,51 +48,51 @@ internal PSWorkItemSchedule(Microsoft.Azure.Batch.IWorkItemSchedule omObject) this.omObject = omObject; } - public System.DateTime? DoNotRunUntil + public System.DateTime? DoNotRunAfter { get { - return this.omObject.DoNotRunUntil; + return this.omObject.DoNotRunAfter; } set { - this.omObject.DoNotRunUntil = value; + this.omObject.DoNotRunAfter = value; } } - public System.DateTime? DoNotRunAfter + public System.DateTime? DoNotRunUntil { get { - return this.omObject.DoNotRunAfter; + return this.omObject.DoNotRunUntil; } set { - this.omObject.DoNotRunAfter = value; + this.omObject.DoNotRunUntil = value; } } - public System.TimeSpan? StartWindow + public System.TimeSpan? RecurrenceInterval { get { - return this.omObject.StartWindow; + return this.omObject.RecurrenceInterval; } set { - this.omObject.StartWindow = value; + this.omObject.RecurrenceInterval = value; } } - public System.TimeSpan? RecurrenceInterval + public System.TimeSpan? StartWindow { get { - return this.omObject.RecurrenceInterval; + return this.omObject.StartWindow; } set { - this.omObject.RecurrenceInterval = value; + this.omObject.StartWindow = value; } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSStartTask.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSStartTask.cs index a163c5205f28..459888d0fd27 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSStartTask.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSStartTask.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -32,7 +32,7 @@ namespace Microsoft.Azure.Commands.Batch.Models public class PSStartTask { - internal Microsoft.Azure.Batch.IStartTask omObject; + internal Microsoft.Azure.Batch.StartTask omObject; private IList environmentSettings; @@ -43,7 +43,7 @@ public PSStartTask() this.omObject = new Microsoft.Azure.Batch.StartTask(); } - internal PSStartTask(Microsoft.Azure.Batch.IStartTask omObject) + internal PSStartTask(Microsoft.Azure.Batch.StartTask omObject) { if ((omObject == null)) { @@ -73,7 +73,7 @@ public IList EnvironmentSettings { List list; list = new List(); - IEnumerator enumerator; + IEnumerator enumerator; enumerator = this.omObject.EnvironmentSettings.GetEnumerator(); for ( ; enumerator.MoveNext(); @@ -93,7 +93,7 @@ public IList EnvironmentSettings } else { - this.omObject.EnvironmentSettings = new List(); + this.omObject.EnvironmentSettings = new List(); } this.environmentSettings = value; } @@ -120,7 +120,7 @@ public IList ResourceFiles { List list; list = new List(); - IEnumerator enumerator; + IEnumerator enumerator; enumerator = this.omObject.ResourceFiles.GetEnumerator(); for ( ; enumerator.MoveNext(); @@ -140,7 +140,7 @@ public IList ResourceFiles } else { - this.omObject.ResourceFiles = new List(); + this.omObject.ResourceFiles = new List(); } this.resourceFiles = value; } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSStartTaskInformation.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSStartTaskInformation.cs index 62c6c5a01f77..b93d99a16f58 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSStartTaskInformation.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSStartTaskInformation.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskConstraints.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskConstraints.cs index 481b6b4348bf..493cc882641d 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskConstraints.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskConstraints.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskExecutionInformation.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskExecutionInformation.cs index 9a9e18cc9b3a..569607054c6a 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskExecutionInformation.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskExecutionInformation.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -45,7 +45,7 @@ internal PSTaskExecutionInformation(Microsoft.Azure.Batch.TaskExecutionInformati this.omObject = omObject; } - public System.DateTime StartTime + public System.DateTime? StartTime { get { diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskInformation.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskInformation.cs index e7bf48bcc332..f83f911ab67a 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskInformation.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskInformation.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -53,27 +53,27 @@ public string TaskUrl } } - public string WorkItemName + public string JobScheduleId { get { - return this.omObject.WorkItemName; + return this.omObject.JobScheduleId; } } - public string JobName + public string JobId { get { - return this.omObject.JobName; + return this.omObject.JobId; } } - public string TaskName + public string TaskId { get { - return this.omObject.TaskName; + return this.omObject.TaskId; } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskSchedulingError.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskSchedulingError.cs index 1bf962e40ed2..64fe5bf8d2b4 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskSchedulingError.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskSchedulingError.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSSchedulingPolicy.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskSchedulingPolicy.cs similarity index 74% rename from src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSSchedulingPolicy.cs rename to src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskSchedulingPolicy.cs index f0ada8a9fa51..94529ef5ca2f 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSSchedulingPolicy.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskSchedulingPolicy.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -29,17 +29,17 @@ namespace Microsoft.Azure.Commands.Batch.Models using Microsoft.Azure.Batch; - public class PSSchedulingPolicy + public class PSTaskSchedulingPolicy { - internal Microsoft.Azure.Batch.SchedulingPolicy omObject; + internal Microsoft.Azure.Batch.TaskSchedulingPolicy omObject; - public PSSchedulingPolicy(Microsoft.Azure.Batch.Common.TVMFillType fillType) + public PSTaskSchedulingPolicy(Microsoft.Azure.Batch.Common.ComputeNodeFillType fillType) { - this.omObject = new Microsoft.Azure.Batch.SchedulingPolicy(fillType); + this.omObject = new Microsoft.Azure.Batch.TaskSchedulingPolicy(fillType); } - internal PSSchedulingPolicy(Microsoft.Azure.Batch.SchedulingPolicy omObject) + internal PSTaskSchedulingPolicy(Microsoft.Azure.Batch.TaskSchedulingPolicy omObject) { if ((omObject == null)) { @@ -48,11 +48,11 @@ internal PSSchedulingPolicy(Microsoft.Azure.Batch.SchedulingPolicy omObject) this.omObject = omObject; } - public Microsoft.Azure.Batch.Common.TVMFillType? VMFillType + public Microsoft.Azure.Batch.Common.ComputeNodeFillType? ComputeNodeFillType { get { - return this.omObject.VMFillType; + return this.omObject.ComputeNodeFillType; } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskStatistics.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskStatistics.cs index 4dac334858e3..81c7ddd5fe9d 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskStatistics.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSTaskStatistics.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -59,27 +59,27 @@ public System.DateTime StartTime } } - public System.DateTime EndTime + public System.DateTime LastUpdateTime { get { - return this.omObject.EndTime; + return this.omObject.LastUpdateTime; } } - public System.TimeSpan UserCPUTime + public System.TimeSpan UserCpuTime { get { - return this.omObject.UserCPUTime; + return this.omObject.UserCpuTime; } } - public System.TimeSpan KernelCPUTime + public System.TimeSpan KernelCpuTime { get { - return this.omObject.KernelCPUTime; + return this.omObject.KernelCpuTime; } } @@ -107,27 +107,19 @@ public long WriteIOps } } - public long ReadIOBytes + public double ReadIOGiB { get { - return this.omObject.ReadIOBytes; + return this.omObject.ReadIOGiB; } } - public long WriteIOBytes + public double WriteIOGiB { get { - return this.omObject.WriteIOBytes; - } - } - - public long NumRetries - { - get - { - return this.omObject.NumRetries; + return this.omObject.WriteIOGiB; } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSUsageStatistics.cs b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSUsageStatistics.cs index f6c4bf6dec3a..1caa0ffbfef8 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSUsageStatistics.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models.Generated/PSUsageStatistics.cs @@ -14,7 +14,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -43,7 +43,7 @@ internal PSUsageStatistics(Microsoft.Azure.Batch.UsageStatistics omObject) this.omObject = omObject; } - public System.DateTime? StartTime + public System.DateTime StartTime { get { @@ -51,19 +51,19 @@ public System.DateTime? StartTime } } - public System.DateTime? EndTime + public System.DateTime LastUpdateTime { get { - return this.omObject.EndTime; + return this.omObject.LastUpdateTime; } } - public System.TimeSpan DedicatedTVMTime + public System.TimeSpan DedicatedCoreTime { get { - return this.omObject.DedicatedTVMTime; + return this.omObject.DedicatedCoreTime; } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/BatchAccountContext.cs b/src/ResourceManager/Batch/Commands.Batch/Models/BatchAccountContext.cs index 9edc2a550452..4bfbf22de41b 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/BatchAccountContext.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models/BatchAccountContext.cs @@ -28,7 +28,7 @@ namespace Microsoft.Azure.Commands.Batch public class BatchAccountContext { private AccountKeyType keyInUse; - private IBatchClient batchOMClient; + private BatchClient batchOMClient; /// /// The account resource Id. @@ -110,7 +110,7 @@ public AccountKeyType KeyInUse } } - internal IBatchClient BatchOMClient + internal BatchClient BatchOMClient { get { @@ -122,8 +122,8 @@ internal IBatchClient BatchOMClient throw new InvalidOperationException(string.Format(Resources.KeyNotPresent, KeyInUse)); } string key = KeyInUse == AccountKeyType.Primary ? PrimaryAccountKey : SecondaryAccountKey; - BatchCredentials credentials = new BatchCredentials(AccountName, key); - this.batchOMClient = Microsoft.Azure.Batch.BatchClient.Connect(TaskTenantUrl, credentials); + BatchSharedKeyCredentials credentials = new BatchSharedKeyCredentials(TaskTenantUrl, AccountName, key); + this.batchOMClient = Microsoft.Azure.Batch.BatchClient.Open(credentials); } return this.batchOMClient; } @@ -161,7 +161,7 @@ internal void ConvertAccountResourceToAccountContext(AccountResource resource) // extract the host and strip off the account name for the TaskTenantUrl and AccountName var hostParts = accountEndpoint.Split('.'); this.AccountName = hostParts[0]; - this.TaskTenantUrl = Uri.UriSchemeHttps + Uri.SchemeDelimiter + String.Join(".", hostParts, 1, hostParts.Length - 1); + this.TaskTenantUrl = Uri.UriSchemeHttps + Uri.SchemeDelimiter + accountEndpoint; // get remaining fields from Id which looks like: // /subscriptions/4a06fe24-c197-4353-adc1-058d1a51924e/resourceGroups/clwtest/providers/Microsoft.Batch/batchAccounts/clw diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.VMUsers.cs b/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.ComputeNodeUsers.cs similarity index 58% rename from src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.VMUsers.cs rename to src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.ComputeNodeUsers.cs index 054a7354bbf4..c740dca1ffdd 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.VMUsers.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.ComputeNodeUsers.cs @@ -24,57 +24,53 @@ namespace Microsoft.Azure.Commands.Batch.Models public partial class BatchClient { /// - /// Creates a new user + /// Creates a new compute node user. /// - /// The options to use when creating the user - public void CreateVMUser(NewVMUserParameters options) + /// The options to use when creating the compute node user. + public void CreateComputeNodeUser(NewComputeNodeUserParameters options) { if (options == null) { throw new ArgumentNullException("options"); } - IUser user = null; - string vmName = null; - if (options.VM != null) + ComputeNodeUser user = null; + string computeNodeId = null; + if (options.ComputeNode != null) { - user = options.VM.omObject.CreateUser(); - vmName = options.VM.Name; + user = options.ComputeNode.omObject.CreateComputeNodeUser(); + computeNodeId = options.ComputeNode.Id; } else { - using (IPoolManager poolManager = options.Context.BatchOMClient.OpenPoolManager()) - { - user = poolManager.CreateUser(options.PoolName, options.VMName); - } - vmName = options.VMName; + PoolOperations poolOperations = options.Context.BatchOMClient.PoolOperations; + user = poolOperations.CreateComputeNodeUser(options.PoolId, options.ComputeNodeId); + computeNodeId = options.ComputeNodeId; } - user.Name = options.VMUserName; + user.Name = options.ComputeNodeUserName; user.Password = options.Password; user.ExpiryTime = options.ExpiryTime; user.IsAdmin = options.IsAdmin; - WriteVerbose(string.Format(Resources.NBU_CreatingUser, user.Name, vmName)); + WriteVerbose(string.Format(Resources.NBU_CreatingUser, user.Name, computeNodeId)); - user.Commit(UserCommitSemantics.AddUser, options.AdditionalBehaviors); + user.Commit(ComputeNodeUserCommitSemantics.AddUser, options.AdditionalBehaviors); } /// - /// Deletes the specified user + /// Deletes the specified compute node user. /// - /// The parameters indicating which user to delete - public void DeleteVMUser(VMUserOperationParameters parameters) + /// The parameters indicating which compute node user to delete. + public void DeleteComputeNodeUser(ComputeNodeUserOperationParameters parameters) { if (parameters == null) { throw new ArgumentNullException("parameters"); } - using (IPoolManager poolManager = parameters.Context.BatchOMClient.OpenPoolManager()) - { - poolManager.DeleteUser(parameters.PoolName, parameters.VMName, parameters.VMUserName, parameters.AdditionalBehaviors); - } + PoolOperations poolOperations = parameters.Context.BatchOMClient.PoolOperations; + poolOperations.DeleteComputeNodeUser(parameters.PoolId, parameters.ComputeNodeId, parameters.ComputeNodeUserName, parameters.AdditionalBehaviors); } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.VMs.cs b/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.ComputeNodes.cs similarity index 53% rename from src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.VMs.cs rename to src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.ComputeNodes.cs index 16b5259a1d03..2e6bba36bc9f 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.VMs.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.ComputeNodes.cs @@ -24,53 +24,49 @@ namespace Microsoft.Azure.Commands.Batch.Models public partial class BatchClient { /// - /// Lists the vms matching the specified filter options + /// Lists the compute nodes matching the specified filter options. /// - /// The options to use when querying for vms - /// The vms matching the specified filter options - public IEnumerable ListVMs(ListVMOptions options) + /// The options to use when querying for compute nodes. + /// The compute nodes matching the specified filter options. + public IEnumerable ListComputeNodes(ListComputeNodeOptions options) { if (options == null) { throw new ArgumentNullException("options"); } - string poolName = options.Pool == null ? options.PoolName : options.Pool.Name; + string poolId = options.Pool == null ? options.PoolId : options.Pool.Id; - // Get the single vm matching the specified name - if (!string.IsNullOrEmpty(options.VMName)) + // Get the single compute node matching the specified id + if (!string.IsNullOrEmpty(options.ComputeNodeId)) { - WriteVerbose(string.Format(Resources.GBVM_GetByName, options.VMName, poolName)); - using (IPoolManager poolManager = options.Context.BatchOMClient.OpenPoolManager()) - { - IVM vm = poolManager.GetVM(poolName, options.VMName, additionalBehaviors: options.AdditionalBehaviors); - PSVM psVM = new PSVM(vm); - return new PSVM[] { psVM }; - } + WriteVerbose(string.Format(Resources.GBCN_GetById, options.ComputeNodeId, poolId)); + PoolOperations poolOperations = options.Context.BatchOMClient.PoolOperations; + ComputeNode computeNode = poolOperations.GetComputeNode(poolId, options.ComputeNodeId, additionalBehaviors: options.AdditionalBehaviors); + PSComputeNode psComputeNode = new PSComputeNode(computeNode); + return new PSComputeNode[] { psComputeNode }; } - // List vms using the specified filter + // List compute nodes using the specified filter else { ODATADetailLevel odata = null; string verboseLogString = null; if (!string.IsNullOrEmpty(options.Filter)) { - verboseLogString = string.Format(Resources.GBVM_GetByOData, poolName); + verboseLogString = string.Format(Resources.GBCN_GetByOData, poolId); odata = new ODATADetailLevel(filterClause: options.Filter); } else { - verboseLogString = string.Format(Resources.GBVM_NoFilter, poolName); + verboseLogString = string.Format(Resources.GBCN_NoFilter, poolId); } WriteVerbose(verboseLogString); - using (IPoolManager poolManager = options.Context.BatchOMClient.OpenPoolManager()) - { - IEnumerableAsyncExtended vms = poolManager.ListVMs(poolName, odata, options.AdditionalBehaviors); - Func mappingFunction = v => { return new PSVM(v); }; - return PSAsyncEnumerable.CreateWithMaxCount( - vms, mappingFunction, options.MaxCount, () => WriteVerbose(string.Format(Resources.MaxCount, options.MaxCount))); - } + PoolOperations poolOperations = options.Context.BatchOMClient.PoolOperations; + IPagedEnumerable computeNodes = poolOperations.ListComputeNodes(poolId, odata, options.AdditionalBehaviors); + Func mappingFunction = c => { return new PSComputeNode(c); }; + return PSPagedEnumerable.CreateWithMaxCount( + computeNodes, mappingFunction, options.MaxCount, () => WriteVerbose(string.Format(Resources.MaxCount, options.MaxCount))); } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Files.cs b/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Files.cs index dc1a97f4ac97..982b01f5914a 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Files.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Files.cs @@ -14,192 +14,200 @@ using System.Linq; using Microsoft.Azure.Batch; -using Microsoft.Azure.Batch.Protocol.Entities; +using Microsoft.Azure.Batch.Protocol.Models; using Microsoft.Azure.Commands.Batch.Models; using Microsoft.Azure.Commands.Batch.Properties; using System; using System.Collections.Generic; using System.IO; +using NodeFile = Microsoft.Azure.Batch.NodeFile; namespace Microsoft.Azure.Commands.Batch.Models { public partial class BatchClient { /// - /// Lists the task files matching the specified filter options + /// Lists the node files matching the specified filter options. /// - /// The options to use when querying for task files - /// The task files matching the specified filter options - public IEnumerable ListTaskFiles(ListTaskFileOptions options) + /// The options to use when querying for node files. + /// The node files matching the specified filter options. + public IEnumerable ListNodeFiles(ListNodeFileOptions options) { if (options == null) { throw new ArgumentNullException("options"); } - // Get the single task file matching the specified name - if (!string.IsNullOrEmpty(options.TaskFileName)) + switch (options.NodeFileType) { - WriteVerbose(string.Format(Resources.GBTF_GetByName, options.TaskFileName, options.TaskName)); - using (IWorkItemManager wiManager = options.Context.BatchOMClient.OpenWorkItemManager()) + case PSNodeFileType.Task: { - ITaskFile taskFile = wiManager.GetTaskFile(options.WorkItemName, options.JobName, options.TaskName, options.TaskFileName, options.AdditionalBehaviors); - PSTaskFile psTaskFile = new PSTaskFile(taskFile); - return new PSTaskFile[] { psTaskFile }; + return ListNodeFilesByTask(options); } + case PSNodeFileType.ComputeNode: + { + return ListNodeFilesByComputeNode(options); + } + default: + { + throw new ArgumentException(Resources.NoNodeFileParent); + } + } + } + + // Lists the node files under a task. + private IEnumerable ListNodeFilesByTask(ListNodeFileOptions options) + { + // Get the single node file matching the specified name + if (!string.IsNullOrEmpty(options.NodeFileName)) + { + WriteVerbose(string.Format(Resources.GBTF_GetByName, options.NodeFileName, options.TaskId)); + JobOperations jobOperations = options.Context.BatchOMClient.JobOperations; + NodeFile nodeFile = jobOperations.GetNodeFile(options.JobId, options.TaskId, options.NodeFileName, options.AdditionalBehaviors); + PSNodeFile psNodeFile = new PSNodeFile(nodeFile); + return new PSNodeFile[] { psNodeFile }; } - // List task files using the specified filter + // List node files using the specified filter else { - string tName = options.Task == null ? options.TaskName : options.Task.Name; + string taskId = options.Task == null ? options.TaskId : options.Task.Id; ODATADetailLevel odata = null; string verboseLogString = null; if (!string.IsNullOrEmpty(options.Filter)) { - verboseLogString = string.Format(Resources.GBTF_GetByOData, tName); + verboseLogString = string.Format(Resources.GBTF_GetByOData, taskId); odata = new ODATADetailLevel(filterClause: options.Filter); } else { - verboseLogString = string.Format(Resources.GBTF_NoFilter, tName); + verboseLogString = string.Format(Resources.GBTF_NoFilter, taskId); } WriteVerbose(verboseLogString); - IEnumerableAsyncExtended taskFiles = null; + IPagedEnumerable nodeFiles = null; if (options.Task != null) { - taskFiles = options.Task.omObject.ListTaskFiles(options.Recursive, odata, options.AdditionalBehaviors); + nodeFiles = options.Task.omObject.ListNodeFiles(options.Recursive, odata, options.AdditionalBehaviors); } else { - using (IWorkItemManager wiManager = options.Context.BatchOMClient.OpenWorkItemManager()) - { - taskFiles = wiManager.ListTaskFiles(options.WorkItemName, options.JobName, options.TaskName, options.Recursive, odata, options.AdditionalBehaviors); - } + JobOperations jobOperations = options.Context.BatchOMClient.JobOperations; + nodeFiles = jobOperations.ListNodeFiles(options.JobId, options.TaskId, options.Recursive, odata, options.AdditionalBehaviors); } - Func mappingFunction = f => { return new PSTaskFile(f); }; - return PSAsyncEnumerable.CreateWithMaxCount( - taskFiles, mappingFunction, options.MaxCount, () => WriteVerbose(string.Format(Resources.MaxCount, options.MaxCount))); + Func mappingFunction = f => { return new PSNodeFile(f); }; + return PSPagedEnumerable.CreateWithMaxCount( + nodeFiles, mappingFunction, options.MaxCount, () => WriteVerbose(string.Format(Resources.MaxCount, options.MaxCount))); } } - /// - /// Downloads a task file using the specified options. - /// - /// The download options - public void DownloadTaskFile(DownloadTaskFileOptions options) + // Lists the node files under a compute node. + private IEnumerable ListNodeFilesByComputeNode(ListNodeFileOptions options) { - if (options == null) + // Get the single node file matching the specified name + if (!string.IsNullOrEmpty(options.NodeFileName)) { - throw new ArgumentNullException("options"); - } - - ITaskFile taskFile = null; - if (options.TaskFile == null) - { - using (IWorkItemManager wiManager = options.Context.BatchOMClient.OpenWorkItemManager()) - { - taskFile = wiManager.GetTaskFile(options.WorkItemName, options.JobName, options.TaskName, options.TaskFileName, options.AdditionalBehaviors); - } + WriteVerbose(string.Format(Resources.GBCNF_GetByName, options.NodeFileName, options.ComputeNodeId)); + PoolOperations poolOperations = options.Context.BatchOMClient.PoolOperations; + NodeFile nodeFile = poolOperations.GetNodeFile(options.PoolId, options.ComputeNodeId, options.NodeFileName, options.AdditionalBehaviors); + PSNodeFile psNodeFile = new PSNodeFile(nodeFile); + return new PSNodeFile[] { psNodeFile }; } + // List node files using the specified filter else { - taskFile = options.TaskFile.omObject; - } - - DownloadITaskFile(taskFile, options.DestinationPath, "task", options.Stream, options.AdditionalBehaviors); - } - - /// - /// Lists the vm files matching the specified filter options - /// - /// The options to use when querying for vm files - /// The vm files matching the specified filter options - public IEnumerable ListVMFiles(ListVMFileOptions options) - { - if (options == null) - { - throw new ArgumentNullException("options"); - } - - // Get the single vm file matching the specified name - if (!string.IsNullOrEmpty(options.VMFileName)) - { - WriteVerbose(string.Format(Resources.GBVMF_GetByName, options.VMFileName, options.VMName)); - using (IPoolManager poolManager = options.Context.BatchOMClient.OpenPoolManager()) - { - ITaskFile vmFile = poolManager.GetVMFile(options.PoolName, options.VMName, options.VMFileName, options.AdditionalBehaviors); - PSVMFile psVMFile = new PSVMFile(vmFile); - return new PSVMFile[] { psVMFile }; - } - } - // List vm files using the specified filter - else - { - string vmName = options.VM == null ? options.VMName : options.VM.Name; + string computeNodeId = options.ComputeNode == null ? options.ComputeNodeId : options.ComputeNode.Id; ODATADetailLevel odata = null; string verboseLogString = null; if (!string.IsNullOrEmpty(options.Filter)) { - verboseLogString = string.Format(Resources.GBVMF_GetByOData, vmName); + verboseLogString = string.Format(Resources.GBCNF_GetByOData, computeNodeId); odata = new ODATADetailLevel(filterClause: options.Filter); } else { - verboseLogString = string.Format(Resources.GBVMF_NoFilter, vmName); + verboseLogString = string.Format(Resources.GBCNF_NoFilter, computeNodeId); } WriteVerbose(verboseLogString); - IEnumerableAsyncExtended vmFiles = null; - if (options.VM != null) + IPagedEnumerable nodeFiles = null; + if (options.ComputeNode != null) { - vmFiles = options.VM.omObject.ListVMFiles(options.Recursive, odata, options.AdditionalBehaviors); + nodeFiles = options.ComputeNode.omObject.ListNodeFiles(options.Recursive, odata, options.AdditionalBehaviors); } else { - using (IPoolManager poolManager = options.Context.BatchOMClient.OpenPoolManager()) - { - vmFiles = poolManager.ListVMFiles(options.PoolName, options.VMName, options.Recursive, odata, options.AdditionalBehaviors); - } + PoolOperations poolOperations = options.Context.BatchOMClient.PoolOperations; + nodeFiles = poolOperations.ListNodeFiles(options.PoolId, options.ComputeNodeId, options.Recursive, odata, options.AdditionalBehaviors); } - Func mappingFunction = f => { return new PSVMFile(f); }; - return PSAsyncEnumerable.CreateWithMaxCount( - vmFiles, mappingFunction, options.MaxCount, () => WriteVerbose(string.Format(Resources.MaxCount, options.MaxCount))); + Func mappingFunction = f => { return new PSNodeFile(f); }; + return PSPagedEnumerable.CreateWithMaxCount( + nodeFiles, mappingFunction, options.MaxCount, () => WriteVerbose(string.Format(Resources.MaxCount, options.MaxCount))); } } /// - /// Downloads a vm file using the specified options. + /// Downloads a node file using the specified options. /// - /// The download options - public void DownloadVMFile(DownloadVMFileOptions options) + /// The download options. + public void DownloadNodeFile(DownloadNodeFileOptions options) { if (options == null) { throw new ArgumentNullException("options"); } - ITaskFile vmFile = null; - if (options.VMFile == null) + NodeFile nodeFile = null; + switch (options.NodeFileType) { - using (IPoolManager poolManager = options.Context.BatchOMClient.OpenPoolManager()) + case PSNodeFileType.Task: { - vmFile = poolManager.GetVMFile(options.PoolName, options.VMName, options.VMFileName, options.AdditionalBehaviors); + JobOperations jobOperations = options.Context.BatchOMClient.JobOperations; + nodeFile = jobOperations.GetNodeFile(options.JobId, options.TaskId, options.NodeFileName, options.AdditionalBehaviors); + break; } + case PSNodeFileType.ComputeNode: + { + PoolOperations poolOperations = options.Context.BatchOMClient.PoolOperations; + nodeFile = poolOperations.GetNodeFile(options.PoolId, options.ComputeNodeId, options.NodeFileName, options.AdditionalBehaviors); + break; + } + case PSNodeFileType.PSNodeFileInstance: + { + nodeFile = options.NodeFile.omObject; + break; + } + default: + { + throw new ArgumentException(Resources.NoNodeFile); + } + } + + DownloadNodeFileByInstance(nodeFile, options.DestinationPath, options.Stream, options.AdditionalBehaviors); + } + + // Downloads the file represented by an NodeFile instance to the specified path. + private void DownloadNodeFileByInstance(NodeFile file, string destinationPath, Stream stream, IEnumerable additionalBehaviors = null) + { + if (stream != null) + { + // Don't dispose supplied Stream + file.CopyToStream(stream, additionalBehaviors); } else { - vmFile = options.VMFile.omObject; + WriteVerbose(string.Format(Resources.GBNFC_Downloading, file.Name, destinationPath)); + using (FileStream fs = new FileStream(destinationPath, FileMode.Create)) + { + file.CopyToStream(fs, additionalBehaviors); + } } - - DownloadITaskFile(vmFile, options.DestinationPath, "vm", options.Stream, options.AdditionalBehaviors); } /// - /// Downloads an RDP file using the specified options. + /// Downloads a Remote Desktop Protocol file using the specified options. /// - /// The download options - public void DownloadRDPFile(DownloadRDPFileOptions options) + /// The download options. + public void DownloadRemoteDesktopProtocolFile(DownloadRemoteDesktopProtocolFileOptions options) { if (options == null) { @@ -209,52 +217,31 @@ public void DownloadRDPFile(DownloadRDPFileOptions options) if (options.Stream != null) { // Don't dispose supplied Stream - CopyRDPStream(options.Stream, options.Context.BatchOMClient, options.PoolName, options.VMName, options.VM, options.AdditionalBehaviors); + CopyRDPStream(options.Stream, options.Context.BatchOMClient, options.PoolId, options.ComputeNodeId, options.ComputeNode, options.AdditionalBehaviors); } else { - string vmName = options.VM == null ? options.VMName : options.VM.Name; - string verboseLogFileName = string.Format("for vm {0}", vmName); - WriteVerbose(string.Format(Resources.Downloading, "RDP", verboseLogFileName, options.DestinationPath)); + string computeNodeId = options.ComputeNode == null ? options.ComputeNodeId : options.ComputeNode.Id; + WriteVerbose(string.Format(Resources.GBRDP_Downloading, computeNodeId, options.DestinationPath)); using (FileStream fs = new FileStream(options.DestinationPath, FileMode.Create)) { - CopyRDPStream(fs, options.Context.BatchOMClient, options.PoolName, options.VMName, options.VM, options.AdditionalBehaviors); + CopyRDPStream(fs, options.Context.BatchOMClient, options.PoolId, options.ComputeNodeId, options.ComputeNode, options.AdditionalBehaviors); } } } - private void CopyRDPStream(Stream destinationStream, IBatchClient client, string poolName, string vmName, - PSVM vm, IEnumerable additionalBehaviors = null) - { - if (vm == null) - { - using (IPoolManager poolManager = client.OpenPoolManager()) - { - poolManager.GetRDPFile(poolName, vmName, destinationStream, additionalBehaviors); - } - } - else - { - vm.omObject.GetRDPFile(destinationStream, additionalBehaviors); - } - } - - // Downloads the file represented by an ITaskFile instance to the specified path - private void DownloadITaskFile(ITaskFile file, string destinationPath, string loggingFileType, Stream stream = null, IEnumerable additionalBehaviors = null) + private void CopyRDPStream(Stream destinationStream, Microsoft.Azure.Batch.BatchClient client, string poolId, string computeNodeId, + PSComputeNode computeNode, IEnumerable additionalBehaviors = null) { - if (stream != null) + if (computeNode == null) { - // Don't dispose supplied Stream - file.CopyToStream(stream, additionalBehaviors); + PoolOperations poolOperations = client.PoolOperations; + poolOperations.GetRDPFile(poolId, computeNodeId, destinationStream, additionalBehaviors); } else { - WriteVerbose(string.Format(Resources.Downloading, loggingFileType, file.Name, destinationPath)); - using (FileStream fs = new FileStream(destinationPath, FileMode.Create)) - { - file.CopyToStream(fs, additionalBehaviors); - } + computeNode.omObject.GetRDPFile(destinationStream, additionalBehaviors); } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.JobSchedules.cs b/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.JobSchedules.cs new file mode 100644 index 000000000000..39b9acd6d7ad --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.JobSchedules.cs @@ -0,0 +1,131 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System.Collections; +using System.Linq; +using Microsoft.Azure.Batch; +using Microsoft.Azure.Commands.Batch.Models; +using Microsoft.Azure.Commands.Batch.Properties; +using Microsoft.Azure.Commands.Batch.Utils; +using System; +using System.Collections.Generic; + +namespace Microsoft.Azure.Commands.Batch.Models +{ + public partial class BatchClient + { + /// + /// Lists the job schedules matching the specified filter options. + /// + /// The options to use when querying for job schedules. + /// The workitems matching the specified filter options. + public IEnumerable ListJobSchedules(ListJobScheduleOptions options) + { + if (options == null) + { + throw new ArgumentNullException("options"); + } + + // Get the single job schedule matching the specified id + if (!string.IsNullOrWhiteSpace(options.JobScheduleId)) + { + WriteVerbose(string.Format(Resources.GBJS_GetById, options.JobScheduleId)); + JobScheduleOperations jobScheduleOperations = options.Context.BatchOMClient.JobScheduleOperations; + CloudJobSchedule jobSchedule = jobScheduleOperations.GetJobSchedule(options.JobScheduleId, additionalBehaviors: options.AdditionalBehaviors); + PSCloudJobSchedule psJobSchedule = new PSCloudJobSchedule(jobSchedule); + return new PSCloudJobSchedule[] { psJobSchedule }; + } + // List job schedules using the specified filter + else + { + ODATADetailLevel odata = null; + string verboseLogString = null; + if (!string.IsNullOrEmpty(options.Filter)) + { + verboseLogString = Resources.GBJS_GetByOData; + odata = new ODATADetailLevel(filterClause: options.Filter); + } + else + { + verboseLogString = Resources.GBJS_NoFilter; + } + WriteVerbose(verboseLogString); + + JobScheduleOperations jobScheduleOperations = options.Context.BatchOMClient.JobScheduleOperations; + IPagedEnumerable workItems = jobScheduleOperations.ListJobSchedules(odata, options.AdditionalBehaviors); + Func mappingFunction = j => { return new PSCloudJobSchedule(j); }; + return PSPagedEnumerable.CreateWithMaxCount( + workItems, mappingFunction, options.MaxCount, () => WriteVerbose(string.Format(Resources.MaxCount, options.MaxCount))); + } + } + + /// + /// Creates a new job schedule. + /// + /// The parameters to use when creating the job schedule. + public void CreateJobSchedule(NewJobScheduleParameters parameters) + { + if (parameters == null) + { + throw new ArgumentNullException("parameters"); + } + + JobScheduleOperations jobScheduleOperations = parameters.Context.BatchOMClient.JobScheduleOperations; + CloudJobSchedule jobSchedule = jobScheduleOperations.CreateJobSchedule(); + + jobSchedule.Id = parameters.JobScheduleId; + jobSchedule.DisplayName = parameters.DisplayName; + + if (parameters.Schedule != null) + { + jobSchedule.Schedule = parameters.Schedule.omObject; + } + + if (parameters.JobSpecification != null) + { + Utils.Utils.JobSpecificationSyncCollections(parameters.JobSpecification); + jobSchedule.JobSpecification = parameters.JobSpecification.omObject; + } + + if (parameters.Metadata != null) + { + jobSchedule.Metadata = new List(); + foreach (DictionaryEntry d in parameters.Metadata) + { + MetadataItem metadata = new MetadataItem(d.Key.ToString(), d.Value.ToString()); + jobSchedule.Metadata.Add(metadata); + } + } + WriteVerbose(string.Format(Resources.NBJS_CreatingJobSchedule, parameters.JobScheduleId)); + jobSchedule.Commit(parameters.AdditionalBehaviors); + } + + /// + /// Deletes the specified job schedule. + /// + /// The account to use. + /// The id of the job schedule to delete. + /// Additional client behaviors to perform. + public void DeleteJobSchedule(BatchAccountContext context, string jobScheduleId, IEnumerable additionBehaviors = null) + { + if (string.IsNullOrWhiteSpace(jobScheduleId)) + { + throw new ArgumentNullException("jobScheduleId"); + } + + JobScheduleOperations jobScheduleOperations = context.BatchOMClient.JobScheduleOperations; + jobScheduleOperations.DeleteJobSchedule(jobScheduleId, additionBehaviors); + } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Jobs.cs b/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Jobs.cs index a246d0de8f76..d68dffd9ba4f 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Jobs.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Jobs.cs @@ -12,6 +12,7 @@ // limitations under the License. // ---------------------------------------------------------------------------------- +using System.Collections; using System.Linq; using Microsoft.Azure.Batch; using Microsoft.Azure.Commands.Batch.Models; @@ -24,10 +25,10 @@ namespace Microsoft.Azure.Commands.Batch.Models public partial class BatchClient { /// - /// Lists the jobs matching the specified filter options + /// Lists the jobs matching the specified filter options. /// - /// The options to use when querying for jobs - /// The jobs matching the specified filter options + /// The options to use when querying for jobs. + /// The jobs matching the specified filter options. public IEnumerable ListJobs(ListJobOptions options) { if (options == null) @@ -35,67 +36,138 @@ public IEnumerable ListJobs(ListJobOptions options) throw new ArgumentNullException("options"); } - string wiName = options.WorkItem == null ? options.WorkItemName : options.WorkItem.Name; - - // Get the single job matching the specified name - if (!string.IsNullOrEmpty(options.JobName)) + // Get the single job matching the specified id + if (!string.IsNullOrEmpty(options.JobId)) { - WriteVerbose(string.Format(Resources.GBJ_GetByName, options.JobName, wiName)); - using (IWorkItemManager wiManager = options.Context.BatchOMClient.OpenWorkItemManager()) - { - ICloudJob job = wiManager.GetJob(wiName, options.JobName, additionalBehaviors: options.AdditionalBehaviors); - PSCloudJob psJob = new PSCloudJob(job); - return new PSCloudJob[] { psJob }; - } + WriteVerbose(string.Format(Resources.GBJ_GetById, options.JobId)); + JobOperations jobOperations = options.Context.BatchOMClient.JobOperations; + CloudJob job = jobOperations.GetJob(options.JobId, additionalBehaviors: options.AdditionalBehaviors); + PSCloudJob psJob = new PSCloudJob(job); + return new PSCloudJob[] { psJob }; } // List jobs using the specified filter else { + string jobScheduleId = options.JobSchedule == null ? options.JobScheduleId : options.JobSchedule.Id; + bool filterByJobSchedule = !string.IsNullOrEmpty(jobScheduleId); + ODATADetailLevel odata = null; string verboseLogString = null; if (!string.IsNullOrEmpty(options.Filter)) { - verboseLogString = string.Format(Resources.GBJ_GetByOData, wiName); + verboseLogString = filterByJobSchedule ? Resources.GBJ_GetByOData : string.Format(Resources.GBJ_GetByODataAndJobSChedule, jobScheduleId); odata = new ODATADetailLevel(filterClause: options.Filter); } else { - verboseLogString = string.Format(Resources.GBJ_GetNoFilter, wiName); + verboseLogString = filterByJobSchedule ? Resources.GBJ_GetNoFilter : string.Format(Resources.GBJ_GetByJobScheduleNoFilter, jobScheduleId); } WriteVerbose(verboseLogString); - using (IWorkItemManager wiManager = options.Context.BatchOMClient.OpenWorkItemManager()) + IPagedEnumerable jobs = null; + if (filterByJobSchedule) + { + JobScheduleOperations jobScheduleOperations = options.Context.BatchOMClient.JobScheduleOperations; + jobs = jobScheduleOperations.ListJobs(jobScheduleId, odata, options.AdditionalBehaviors); + } + else { - IEnumerableAsyncExtended jobs = wiManager.ListJobs(wiName, odata, options.AdditionalBehaviors); - Func mappingFunction = j => { return new PSCloudJob(j); }; - return PSAsyncEnumerable.CreateWithMaxCount( - jobs, mappingFunction, options.MaxCount, () => WriteVerbose(string.Format(Resources.MaxCount, options.MaxCount))); - } + JobOperations jobOperations = options.Context.BatchOMClient.JobOperations; + jobs = jobOperations.ListJobs(odata, options.AdditionalBehaviors); + } + Func mappingFunction = j => { return new PSCloudJob(j); }; + return PSPagedEnumerable.CreateWithMaxCount( + jobs, mappingFunction, options.MaxCount, () => WriteVerbose(string.Format(Resources.MaxCount, options.MaxCount))); } } /// - /// Deletes the specified job + /// Creates a new job. /// - /// The parameters indicating which job to delete - public void DeleteJob(JobOperationParameters parameters) + /// The parameters to use when creating the job. + public void CreateJob(NewJobParameters parameters) { if (parameters == null) { throw new ArgumentNullException("parameters"); } - if (parameters.Job != null) + JobOperations jobOperations = parameters.Context.BatchOMClient.JobOperations; + CloudJob job = jobOperations.CreateJob(); + + job.Id = parameters.JobId; + job.DisplayName = parameters.DisplayName; + job.Priority = parameters.Priority; + + if (parameters.CommonEnvironmentSettings != null) { - parameters.Job.omObject.Delete(parameters.AdditionalBehaviors); + List envSettings = new List(); + foreach (DictionaryEntry d in parameters.CommonEnvironmentSettings) + { + EnvironmentSetting envSetting = new EnvironmentSetting(d.Key.ToString(), d.Value.ToString()); + envSettings.Add(envSetting); + } + job.CommonEnvironmentSettings = envSettings; } - else + + if (parameters.Constraints != null) + { + job.Constraints = parameters.Constraints.omObject; + } + + if (parameters.JobManagerTask != null) + { + Utils.Utils.JobManagerTaskSyncCollections(parameters.JobManagerTask); + job.JobManagerTask = parameters.JobManagerTask.omObject; + } + + if (parameters.JobPreparationTask != null) + { + Utils.Utils.JobPreparationTaskSyncCollections(parameters.JobPreparationTask); + job.JobPreparationTask = parameters.JobPreparationTask.omObject; + } + + if (parameters.JobReleaseTask != null) + { + Utils.Utils.JobReleaseTaskSyncCollections(parameters.JobReleaseTask); + job.JobReleaseTask = parameters.JobReleaseTask.omObject; + } + + if (parameters.Metadata != null) { - using (IWorkItemManager wiManager = parameters.Context.BatchOMClient.OpenWorkItemManager()) + job.Metadata = new List(); + foreach (DictionaryEntry d in parameters.Metadata) { - wiManager.DeleteJob(parameters.WorkItemName, parameters.JobName, parameters.AdditionalBehaviors); + MetadataItem metadata = new MetadataItem(d.Key.ToString(), d.Value.ToString()); + job.Metadata.Add(metadata); } } + + if (parameters.PoolInformation != null) + { + Utils.Utils.PoolInformationSyncCollections(parameters.PoolInformation); + job.PoolInformation = parameters.PoolInformation.omObject; + } + + WriteVerbose(string.Format(Resources.NBJ_CreatingJob, parameters.JobId)); + job.Commit(parameters.AdditionalBehaviors); + } + + /// + /// Deletes the specified job. + /// + /// The account to use. + /// The id of the job to delete. + /// Additional client behaviors to perform. + public void DeleteJob(BatchAccountContext context, string jobId, IEnumerable additionBehaviors = null) + { + if (string.IsNullOrWhiteSpace(jobId)) + { + throw new ArgumentNullException("jobId"); + } + + JobOperations jobOperations = context.BatchOMClient.JobOperations; + jobOperations.DeleteJob(jobId, additionBehaviors); } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Pools.cs b/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Pools.cs index b72a7641ec3d..7f31166aad1b 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Pools.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Pools.cs @@ -25,10 +25,10 @@ namespace Microsoft.Azure.Commands.Batch.Models public partial class BatchClient { /// - /// Lists the pools matching the specified filter options + /// Lists the pools matching the specified filter options. /// - /// The options to use when querying for pools - /// The pools matching the specified filter options + /// The options to use when querying for pools. + /// The pools matching the specified filter options. public IEnumerable ListPools(ListPoolOptions options) { if (options == null) @@ -36,16 +36,14 @@ public IEnumerable ListPools(ListPoolOptions options) throw new ArgumentNullException("options"); } - // Get the single pool matching the specified name - if (!string.IsNullOrWhiteSpace(options.PoolName)) + // Get the single pool matching the specified id + if (!string.IsNullOrWhiteSpace(options.PoolId)) { - WriteVerbose(string.Format(Resources.GBP_GetByName, options.PoolName)); - using (IPoolManager poolManager = options.Context.BatchOMClient.OpenPoolManager()) - { - ICloudPool pool = poolManager.GetPool(options.PoolName, additionalBehaviors: options.AdditionalBehaviors); - PSCloudPool psPool = new PSCloudPool(pool); - return new PSCloudPool[] { psPool }; - } + WriteVerbose(string.Format(Resources.GBP_GetById, options.PoolId)); + PoolOperations poolOperations = options.Context.BatchOMClient.PoolOperations; + CloudPool pool = poolOperations.GetPool(options.PoolId, additionalBehaviors: options.AdditionalBehaviors); + PSCloudPool psPool = new PSCloudPool(pool); + return new PSCloudPool[] { psPool }; } // List pools using the specified filter else @@ -63,20 +61,18 @@ public IEnumerable ListPools(ListPoolOptions options) } WriteVerbose(verboseLogString); - using (IPoolManager poolManager = options.Context.BatchOMClient.OpenPoolManager()) - { - IEnumerableAsyncExtended pools = poolManager.ListPools(odata, options.AdditionalBehaviors); - Func mappingFunction = p => { return new PSCloudPool(p); }; - return PSAsyncEnumerable.CreateWithMaxCount( - pools, mappingFunction, options.MaxCount, () => WriteVerbose(string.Format(Resources.MaxCount, options.MaxCount))); - } + PoolOperations poolOperations = options.Context.BatchOMClient.PoolOperations; + IPagedEnumerable pools = poolOperations.ListPools(odata, options.AdditionalBehaviors); + Func mappingFunction = p => { return new PSCloudPool(p); }; + return PSPagedEnumerable.CreateWithMaxCount( + pools, mappingFunction, options.MaxCount, () => WriteVerbose(string.Format(Resources.MaxCount, options.MaxCount))); } } /// - /// Creates a new pool + /// Creates a new pool. /// - /// The parameters to use when creating the pool + /// The parameters to use when creating the pool. public void CreatePool(NewPoolParameters parameters) { if (parameters == null) @@ -84,89 +80,77 @@ public void CreatePool(NewPoolParameters parameters) throw new ArgumentNullException("parameters"); } - using (IPoolManager poolManager = parameters.Context.BatchOMClient.OpenPoolManager()) - { - ICloudPool pool = poolManager.CreatePool(poolName: parameters.PoolName, osFamily: parameters.OSFamily); - pool.ResizeTimeout = parameters.ResizeTimeout; - pool.MaxTasksPerVM = parameters.MaxTasksPerVM; - pool.Communication = parameters.Communication; + PoolOperations poolOperations = parameters.Context.BatchOMClient.PoolOperations; + CloudPool pool = poolOperations.CreatePool(poolId: parameters.PoolId, osFamily: parameters.OSFamily, virtualMachineSize: parameters.VirtualMachineSize); + pool.DisplayName = parameters.DisplayName; + pool.ResizeTimeout = parameters.ResizeTimeout; + pool.MaxTasksPerComputeNode = parameters.MaxTasksPerComputeNode; + pool.InterComputeNodeCommunicationEnabled = parameters.InterComputeNodeCommunicationEnabled; - if (!string.IsNullOrEmpty(parameters.VMSize)) - { - // Don't override OM default if unspecified - pool.VMSize = parameters.VMSize; - } - - if (!string.IsNullOrEmpty(parameters.AutoScaleFormula)) - { - pool.AutoScaleEnabled = true; - pool.AutoScaleFormula = parameters.AutoScaleFormula; - // Clear OM default to avoid server errors - pool.TargetDedicated = null; - } - else if (parameters.TargetDedicated.HasValue) - { - // Don't override OM default if unspecified - pool.TargetDedicated = parameters.TargetDedicated; - } + if (!string.IsNullOrEmpty(parameters.AutoScaleFormula)) + { + pool.AutoScaleEnabled = true; + pool.AutoScaleFormula = parameters.AutoScaleFormula; + } + else if (parameters.TargetDedicated.HasValue) + { + pool.TargetDedicated = parameters.TargetDedicated; + } - if (parameters.SchedulingPolicy != null) - { - pool.SchedulingPolicy = parameters.SchedulingPolicy.omObject; - } + if (parameters.TaskSchedulingPolicy != null) + { + pool.TaskSchedulingPolicy = parameters.TaskSchedulingPolicy.omObject; + } - if (parameters.StartTask != null) - { - Utils.Utils.StartTaskSyncCollections(parameters.StartTask); - pool.StartTask = parameters.StartTask.omObject; - } + if (parameters.StartTask != null) + { + Utils.Utils.StartTaskSyncCollections(parameters.StartTask); + pool.StartTask = parameters.StartTask.omObject; + } - if (parameters.Metadata != null) + if (parameters.Metadata != null) + { + pool.Metadata = new List(); + foreach (DictionaryEntry m in parameters.Metadata) { - pool.Metadata = new List(); - foreach (DictionaryEntry m in parameters.Metadata) - { - pool.Metadata.Add(new MetadataItem(m.Key.ToString(), m.Value.ToString())); - } + pool.Metadata.Add(new MetadataItem(m.Key.ToString(), m.Value.ToString())); } + } - if (parameters.CertificateReferences != null) + if (parameters.CertificateReferences != null) + { + pool.CertificateReferences = new List(); + foreach (PSCertificateReference c in parameters.CertificateReferences) { - pool.CertificateReferences = new List(); - foreach (PSCertificateReference c in parameters.CertificateReferences) - { - pool.CertificateReferences.Add(c.omObject); - } + pool.CertificateReferences.Add(c.omObject); } - - WriteVerbose(string.Format(Resources.NBP_CreatingPool, parameters.PoolName)); - pool.Commit(parameters.AdditionalBehaviors); } + + WriteVerbose(string.Format(Resources.NBP_CreatingPool, parameters.PoolId)); + pool.Commit(parameters.AdditionalBehaviors); } /// - /// Deletes the specified pool + /// Deletes the specified pool. /// - /// The account to use - /// The name of the pool to delete - /// Additional client behaviors to perform - public void DeletePool(BatchAccountContext context, string poolName, IEnumerable additionBehaviors = null) + /// The account to use. + /// The id of the pool to delete. + /// Additional client behaviors to perform. + public void DeletePool(BatchAccountContext context, string poolId, IEnumerable additionBehaviors = null) { - if (string.IsNullOrWhiteSpace(poolName)) + if (string.IsNullOrWhiteSpace(poolId)) { - throw new ArgumentNullException("poolName"); + throw new ArgumentNullException("poolId"); } - using (IPoolManager poolManager = context.BatchOMClient.OpenPoolManager()) - { - poolManager.DeletePool(poolName, additionBehaviors); - } + PoolOperations poolOperations = context.BatchOMClient.PoolOperations; + poolOperations.DeletePool(poolId, additionBehaviors); } /// - /// Resizes the specified pool + /// Resizes the specified pool. /// - /// The parameters to use when resizing the pool + /// The parameters to use when resizing the pool. public void ResizePool(PoolResizeParameters parameters) { if (parameters == null) @@ -174,33 +158,29 @@ public void ResizePool(PoolResizeParameters parameters) throw new ArgumentNullException("parameters"); } - string poolName = parameters.Pool == null ? parameters.PoolName : parameters.Pool.Name; + string poolId = parameters.Pool == null ? parameters.PoolId : parameters.Pool.Id; - WriteVerbose(string.Format(Resources.SBPR_ResizingPool, poolName, parameters.TargetDedicated)); - using (IPoolManager poolManager = parameters.Context.BatchOMClient.OpenPoolManager()) - { - poolManager.ResizePool(poolName, parameters.TargetDedicated, parameters.ResizeTimeout, parameters.DeallocationOption, parameters.AdditionalBehaviors); - } + WriteVerbose(string.Format(Resources.SBPR_ResizingPool, poolId, parameters.TargetDedicated)); + PoolOperations poolOperations = parameters.Context.BatchOMClient.PoolOperations; + poolOperations.ResizePool(poolId, parameters.TargetDedicated, parameters.ResizeTimeout, parameters.ComputeNodeDeallocationOption, parameters.AdditionalBehaviors); } /// - /// Stops the resize operation on the specified pool + /// Stops the resize operation on the specified pool. /// /// The account to use. - /// The name of the pool. + /// The id of the pool. /// Additional client behaviors to perform. - public void StopResizePool(BatchAccountContext context, string poolName, IEnumerable additionalBehaviors = null) + public void StopResizePool(BatchAccountContext context, string poolId, IEnumerable additionalBehaviors = null) { - if (string.IsNullOrWhiteSpace(poolName)) + if (string.IsNullOrWhiteSpace(poolId)) { - throw new ArgumentNullException("poolName"); + throw new ArgumentNullException("poolId"); } - WriteVerbose(string.Format(Resources.SBPR_StopResizingPool, poolName)); - using (IPoolManager poolManager = context.BatchOMClient.OpenPoolManager()) - { - poolManager.StopResizePool(poolName, additionalBehaviors); - } + WriteVerbose(string.Format(Resources.SBPR_StopResizingPool, poolId)); + PoolOperations poolOperations = context.BatchOMClient.PoolOperations; + poolOperations.StopResizePool(poolId, additionalBehaviors); } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Tasks.cs b/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Tasks.cs index e7e61f8037a1..f532dbb468b4 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Tasks.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Tasks.cs @@ -25,10 +25,10 @@ namespace Microsoft.Azure.Commands.Batch.Models public partial class BatchClient { /// - /// Lists the tasks matching the specified filter options + /// Lists the tasks matching the specified filter options. /// - /// The options to use when querying for tasks - /// The tasks matching the specified filter options + /// The options to use when querying for tasks. + /// The tasks matching the specified filter options. public IEnumerable ListTasks(ListTaskOptions options) { if (options == null) @@ -36,56 +36,52 @@ public IEnumerable ListTasks(ListTaskOptions options) throw new ArgumentNullException("options"); } - // Get the single task matching the specified name - if (!string.IsNullOrEmpty(options.TaskName)) + // Get the single task matching the specified id + if (!string.IsNullOrEmpty(options.TaskId)) { - WriteVerbose(string.Format(Resources.GBT_GetByName, options.TaskName, options.JobName, options.WorkItemName)); - using (IWorkItemManager wiManager = options.Context.BatchOMClient.OpenWorkItemManager()) - { - ICloudTask task = wiManager.GetTask(options.WorkItemName, options.JobName, options.TaskName, additionalBehaviors: options.AdditionalBehaviors); - PSCloudTask psTask = new PSCloudTask(task); - return new PSCloudTask[] { psTask }; - } + WriteVerbose(string.Format(Resources.GBT_GetById, options.TaskId, options.JobId)); + JobOperations jobOperations = options.Context.BatchOMClient.JobOperations; + CloudTask task = jobOperations.GetTask(options.JobId, options.TaskId, additionalBehaviors: options.AdditionalBehaviors); + PSCloudTask psTask = new PSCloudTask(task); + return new PSCloudTask[] { psTask }; } // List tasks using the specified filter else { - string jName = options.Job == null ? options.JobName : options.Job.Name; + string jobId = options.Job == null ? options.JobId : options.Job.Id; ODATADetailLevel odata = null; string verboseLogString = null; if (!string.IsNullOrEmpty(options.Filter)) { - verboseLogString = string.Format(Resources.GBT_GetByOData, jName); + verboseLogString = string.Format(Resources.GBT_GetByOData, jobId); odata = new ODATADetailLevel(filterClause: options.Filter); } else { - verboseLogString = string.Format(Resources.GBT_GetNoFilter, jName); + verboseLogString = string.Format(Resources.GBT_GetNoFilter, jobId); } WriteVerbose(verboseLogString); - IEnumerableAsyncExtended tasks = null; + IPagedEnumerable tasks = null; if (options.Job != null) { tasks = options.Job.omObject.ListTasks(odata, options.AdditionalBehaviors); } else { - using (IWorkItemManager wiManager = options.Context.BatchOMClient.OpenWorkItemManager()) - { - tasks = wiManager.ListTasks(options.WorkItemName, options.JobName, odata, options.AdditionalBehaviors); - } + JobOperations jobOperations = options.Context.BatchOMClient.JobOperations; + tasks = jobOperations.ListTasks(options.JobId, odata, options.AdditionalBehaviors); } - Func mappingFunction = t => { return new PSCloudTask(t); }; - return PSAsyncEnumerable.CreateWithMaxCount( + Func mappingFunction = t => { return new PSCloudTask(t); }; + return PSPagedEnumerable.CreateWithMaxCount( tasks, mappingFunction, options.MaxCount, () => WriteVerbose(string.Format(Resources.MaxCount, options.MaxCount))); } } /// - /// Creates a new task + /// Creates a new task. /// - /// The parameters to use when creating the task + /// The parameters to use when creating the task. public void CreateTask(NewTaskParameters parameters) { if (parameters == null) @@ -93,12 +89,13 @@ public void CreateTask(NewTaskParameters parameters) throw new ArgumentNullException("parameters"); } - CloudTask task = new CloudTask(parameters.TaskName, parameters.CommandLine); + CloudTask task = new CloudTask(parameters.TaskId, parameters.CommandLine); + task.DisplayName = parameters.DisplayName; task.RunElevated = parameters.RunElevated; if (parameters.EnvironmentSettings != null) { - task.EnvironmentSettings = new List(); + task.EnvironmentSettings = new List(); foreach (DictionaryEntry d in parameters.EnvironmentSettings) { EnvironmentSetting setting = new EnvironmentSetting(d.Key.ToString(), d.Value.ToString()); @@ -108,7 +105,7 @@ public void CreateTask(NewTaskParameters parameters) if (parameters.ResourceFiles != null) { - task.ResourceFiles = new List(); + task.ResourceFiles = new List(); foreach (DictionaryEntry d in parameters.ResourceFiles) { ResourceFile file = new ResourceFile(d.Value.ToString(), d.Key.ToString()); @@ -121,29 +118,27 @@ public void CreateTask(NewTaskParameters parameters) task.AffinityInformation = parameters.AffinityInformation.omObject; } - if (parameters.TaskConstraints != null) + if (parameters.Constraints != null) { - task.TaskConstraints = parameters.TaskConstraints.omObject; + task.Constraints = parameters.Constraints.omObject; } - WriteVerbose(string.Format(Resources.NBT_CreatingTask, parameters.TaskName)); + WriteVerbose(string.Format(Resources.NBT_CreatingTask, parameters.TaskId)); if (parameters.Job != null) { parameters.Job.omObject.AddTask(task, parameters.AdditionalBehaviors); } else { - using (IWorkItemManager wiManager = parameters.Context.BatchOMClient.OpenWorkItemManager()) - { - wiManager.AddTask(parameters.WorkItemName, parameters.JobName, task, parameters.AdditionalBehaviors); - } + JobOperations jobOperations = parameters.Context.BatchOMClient.JobOperations; + jobOperations.AddTask(parameters.JobId, task, parameters.AdditionalBehaviors); } } /// - /// Deletes the specified task + /// Deletes the specified task. /// - /// The parameters indicating which task to delete + /// The parameters indicating which task to delete. public void DeleteTask(TaskOperationParameters parameters) { if (parameters == null) @@ -157,10 +152,8 @@ public void DeleteTask(TaskOperationParameters parameters) } else { - using (IWorkItemManager wiManager = parameters.Context.BatchOMClient.OpenWorkItemManager()) - { - wiManager.DeleteTask(parameters.WorkItemName, parameters.JobName, parameters.TaskName, parameters.AdditionalBehaviors); - } + JobOperations jobOperations = parameters.Context.BatchOMClient.JobOperations; + jobOperations.DeleteTask(parameters.JobId, parameters.TaskId, parameters.AdditionalBehaviors); } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.WorkItems.cs b/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.WorkItems.cs deleted file mode 100644 index 5903562807bc..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.WorkItems.cs +++ /dev/null @@ -1,142 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System.Collections; -using System.Linq; -using Microsoft.Azure.Batch; -using Microsoft.Azure.Commands.Batch.Models; -using Microsoft.Azure.Commands.Batch.Properties; -using Microsoft.Azure.Commands.Batch.Utils; -using System; -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.Batch.Models -{ - public partial class BatchClient - { - /// - /// Lists the workitems matching the specified filter options - /// - /// The options to use when querying for workitems - /// The workitems matching the specified filter options - public IEnumerable ListWorkItems(ListWorkItemOptions options) - { - if (options == null) - { - throw new ArgumentNullException("options"); - } - - // Get the single WorkItem matching the specified name - if (!string.IsNullOrWhiteSpace(options.WorkItemName)) - { - WriteVerbose(string.Format(Resources.GBWI_GetByName, options.WorkItemName)); - using (IWorkItemManager wiManager = options.Context.BatchOMClient.OpenWorkItemManager()) - { - ICloudWorkItem workItem = wiManager.GetWorkItem(options.WorkItemName, additionalBehaviors: options.AdditionalBehaviors); - PSCloudWorkItem psWorkItem = new PSCloudWorkItem(workItem); - return new PSCloudWorkItem[] { psWorkItem }; - } - } - // List WorkItems using the specified filter - else - { - ODATADetailLevel odata = null; - string verboseLogString = null; - if (!string.IsNullOrEmpty(options.Filter)) - { - verboseLogString = Resources.GBWI_GetByOData; - odata = new ODATADetailLevel(filterClause: options.Filter); - } - else - { - verboseLogString = Resources.GBWI_NoFilter; - } - WriteVerbose(verboseLogString); - - using (IWorkItemManager wiManager = options.Context.BatchOMClient.OpenWorkItemManager()) - { - IEnumerableAsyncExtended workItems = wiManager.ListWorkItems(odata, options.AdditionalBehaviors); - Func mappingFunction = w => { return new PSCloudWorkItem(w); }; - return PSAsyncEnumerable.CreateWithMaxCount( - workItems, mappingFunction, options.MaxCount, () => WriteVerbose(string.Format(Resources.MaxCount, options.MaxCount))); - } - } - } - - /// - /// Creates a new workitem - /// - /// The parameters to use when creating the workitem - public void CreateWorkItem(NewWorkItemParameters parameters) - { - if (parameters == null) - { - throw new ArgumentNullException("parameters"); - } - - using (IWorkItemManager wiManager = parameters.Context.BatchOMClient.OpenWorkItemManager()) - { - ICloudWorkItem workItem = wiManager.CreateWorkItem(parameters.WorkItemName); - - if (parameters.Schedule != null) - { - workItem.Schedule = parameters.Schedule.omObject; - } - - if (parameters.JobSpecification != null) - { - Utils.Utils.JobSpecificationSyncCollections(parameters.JobSpecification); - workItem.JobSpecification = parameters.JobSpecification.omObject; - } - - if (parameters.JobExecutionEnvironment != null) - { - Utils.Utils.JobExecutionEnvironmentSyncCollections(parameters.JobExecutionEnvironment); - workItem.JobExecutionEnvironment = parameters.JobExecutionEnvironment.omObject; - } - - if (parameters.Metadata != null) - { - workItem.Metadata = new List(); - foreach (DictionaryEntry d in parameters.Metadata) - { - MetadataItem metadata = new MetadataItem(d.Key.ToString(), d.Value.ToString()); - workItem.Metadata.Add(metadata); - } - } - WriteVerbose(string.Format(Resources.NBWI_CreatingWorkItem, parameters.WorkItemName)); - workItem.Commit(parameters.AdditionalBehaviors); - } - } - - /// - /// Deletes the specified workitem - /// - /// The account to use - /// The name of the workitem to delete - /// Additional client behaviors to perform - public void DeleteWorkItem(BatchAccountContext context, string workItemName, IEnumerable additionBehaviors = null) - { - if (string.IsNullOrWhiteSpace(workItemName)) - { - throw new ArgumentNullException("workItemName"); - } - - using (IWorkItemManager wiManager = context.BatchOMClient.OpenWorkItemManager()) - { - wiManager.DeleteWorkItem(workItemName, additionBehaviors); - } - } - } -} diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/VMUserOperationParameters.cs b/src/ResourceManager/Batch/Commands.Batch/Models/ComputeNodeOperationParameters.cs similarity index 58% rename from src/ResourceManager/Batch/Commands.Batch/Models/VMUserOperationParameters.cs rename to src/ResourceManager/Batch/Commands.Batch/Models/ComputeNodeOperationParameters.cs index 03cef4bda60b..a62c2bda53d7 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/VMUserOperationParameters.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models/ComputeNodeOperationParameters.cs @@ -19,34 +19,34 @@ namespace Microsoft.Azure.Commands.Batch.Models { - public class VMUserOperationParameters : BatchClientParametersBase + public class ComputeNodeOperationParameters : BatchClientParametersBase { - public VMUserOperationParameters(BatchAccountContext context, string poolName, string vmName, string vmUserName, + public ComputeNodeOperationParameters(BatchAccountContext context, string poolId, string computeNodeId, PSComputeNode computeNode, IEnumerable additionalBehaviors = null) : base(context, additionalBehaviors) { - if (string.IsNullOrWhiteSpace(poolName) || string.IsNullOrWhiteSpace(vmName) || string.IsNullOrWhiteSpace(vmUserName)) + if ((string.IsNullOrWhiteSpace(poolId) || string.IsNullOrWhiteSpace(computeNodeId)) && computeNode == null) { - throw new ArgumentNullException(Resources.NoVMUser); + throw new ArgumentNullException(Resources.NoComputeNode); } - this.PoolName = poolName; - this.VMName = vmName; - this.VMUserName = vmUserName; + this.PoolId = poolId; + this.ComputeNodeId = computeNodeId; + this.ComputeNode = computeNode; } /// - /// The name of the pool containing the vm + /// The id of the pool containing the compute node. /// - public string PoolName { get; private set; } + public string PoolId { get; private set; } /// - /// The name of the vm containing the vm user + /// The id of the compute node. /// - public string VMName { get; private set; } + public string ComputeNodeId { get; private set; } /// - /// The name of the vm user + /// The PSComputeNode object representing the target compute node. /// - public string VMUserName { get; private set; } + public PSComputeNode ComputeNode { get; private set; } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/VMOperationParameters.cs b/src/ResourceManager/Batch/Commands.Batch/Models/ComputeNodeUserOperationParameters.cs similarity index 56% rename from src/ResourceManager/Batch/Commands.Batch/Models/VMOperationParameters.cs rename to src/ResourceManager/Batch/Commands.Batch/Models/ComputeNodeUserOperationParameters.cs index d1f600b4b9c4..976c7f128841 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/VMOperationParameters.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models/ComputeNodeUserOperationParameters.cs @@ -19,34 +19,34 @@ namespace Microsoft.Azure.Commands.Batch.Models { - public class VMOperationParameters : BatchClientParametersBase + public class ComputeNodeUserOperationParameters : BatchClientParametersBase { - public VMOperationParameters(BatchAccountContext context, string poolName, string vmName, PSVM vm, + public ComputeNodeUserOperationParameters(BatchAccountContext context, string poolId, string computeNodeId, string computeNodeUserName, IEnumerable additionalBehaviors = null) : base(context, additionalBehaviors) { - if ((string.IsNullOrWhiteSpace(poolName) || string.IsNullOrWhiteSpace(vmName)) && vm == null) + if (string.IsNullOrWhiteSpace(poolId) || string.IsNullOrWhiteSpace(computeNodeId) || string.IsNullOrWhiteSpace(computeNodeUserName)) { - throw new ArgumentNullException(Resources.NoVM); + throw new ArgumentNullException(Resources.NoComputeNodeUser); } - this.PoolName = poolName; - this.VMName = vmName; - this.VM = vm; + this.PoolId = poolId; + this.ComputeNodeId = computeNodeId; + this.ComputeNodeUserName = computeNodeUserName; } /// - /// The name of the pool containing the vm + /// The id of the pool containing the compute node. /// - public string PoolName { get; private set; } + public string PoolId { get; private set; } /// - /// The name of the vm + /// The id of the compute node containing the compute node user. /// - public string VMName { get; private set; } + public string ComputeNodeId { get; private set; } /// - /// The PSVM object representing the target vm + /// The name of the compute node user. /// - public PSVM VM { get; private set; } + public string ComputeNodeUserName { get; private set; } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/DownloadTaskFileOptions.cs b/src/ResourceManager/Batch/Commands.Batch/Models/DownloadNodeFileOptions.cs similarity index 75% rename from src/ResourceManager/Batch/Commands.Batch/Models/DownloadTaskFileOptions.cs rename to src/ResourceManager/Batch/Commands.Batch/Models/DownloadNodeFileOptions.cs index 47e406b3a44a..26bf5c33e557 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/DownloadTaskFileOptions.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models/DownloadNodeFileOptions.cs @@ -20,11 +20,11 @@ namespace Microsoft.Azure.Commands.Batch.Models { - public class DownloadTaskFileOptions : TaskFileOperationParameters + public class DownloadNodeFileOptions : NodeFileOperationParameters { - public DownloadTaskFileOptions(BatchAccountContext context, string workItemName, string jobName, string taskName, string taskFileName, - PSTaskFile taskFile, string destinationPath, Stream stream, IEnumerable additionalBehaviors = null) - : base(context, workItemName, jobName, taskName, taskFileName, taskFile, additionalBehaviors) + public DownloadNodeFileOptions(BatchAccountContext context, string jobId, string taskId, string poolId, string computeNodeId, string nodeFileName, + PSNodeFile nodeFile, string destinationPath, Stream stream, IEnumerable additionalBehaviors = null) + : base(context, jobId, taskId, poolId, computeNodeId, nodeFileName, nodeFile, additionalBehaviors) { if (string.IsNullOrWhiteSpace(destinationPath) && stream == null) { @@ -36,12 +36,12 @@ public DownloadTaskFileOptions(BatchAccountContext context, string workItemName, } /// - /// The path to the directory where the Task file will be downloaded + /// The path to the directory where the node file will be downloaded /// public string DestinationPath { get; set; } /// - /// The Stream into which the task file data will be written. This stream will not be closed or rewound by this call. + /// The Stream into which the node file data will be written. This stream will not be closed or rewound by this call. /// internal Stream Stream { get; set; } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/DownloadRDPFileOptions.cs b/src/ResourceManager/Batch/Commands.Batch/Models/DownloadRemoteDesktopProtocolFileOptions.cs similarity index 71% rename from src/ResourceManager/Batch/Commands.Batch/Models/DownloadRDPFileOptions.cs rename to src/ResourceManager/Batch/Commands.Batch/Models/DownloadRemoteDesktopProtocolFileOptions.cs index b0935324ca43..33c1683e419b 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/DownloadRDPFileOptions.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models/DownloadRemoteDesktopProtocolFileOptions.cs @@ -21,10 +21,10 @@ namespace Microsoft.Azure.Commands.Batch.Models { - public class DownloadRDPFileOptions : VMOperationParameters + public class DownloadRemoteDesktopProtocolFileOptions : ComputeNodeOperationParameters { - public DownloadRDPFileOptions(BatchAccountContext context, string poolName, string vmName, PSVM vm, string destinationPath, - Stream stream, IEnumerable additionalBehaviors = null) : base(context, poolName, vmName, vm, additionalBehaviors) + public DownloadRemoteDesktopProtocolFileOptions(BatchAccountContext context, string poolId, string computeNodeId, PSComputeNode computeNode, string destinationPath, + Stream stream, IEnumerable additionalBehaviors = null) : base(context, poolId, computeNodeId, computeNode, additionalBehaviors) { if (string.IsNullOrWhiteSpace(destinationPath) && stream == null) { @@ -36,12 +36,12 @@ public DownloadRDPFileOptions(BatchAccountContext context, string poolName, stri } /// - /// The path to the directory where the RDP file will be downloaded + /// The path to the directory where the Remote Desktop Protocol file will be downloaded /// public string DestinationPath { get; set; } /// - /// The Stream into which the RDP file data will be written. This stream will not be closed or rewound by this call. + /// The Stream into which the Remote Desktop Protocol file data will be written. This stream will not be closed or rewound by this call. /// public Stream Stream { get; set; } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/DownloadVMFileOptions.cs b/src/ResourceManager/Batch/Commands.Batch/Models/DownloadVMFileOptions.cs deleted file mode 100644 index 9adc24b6e737..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch/Models/DownloadVMFileOptions.cs +++ /dev/null @@ -1,47 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Batch; -using Microsoft.Azure.Commands.Batch.Properties; -using System; -using System.Collections.Generic; -using System.IO; - -namespace Microsoft.Azure.Commands.Batch.Models -{ - public class DownloadVMFileOptions : VMFileOperationParameters - { - public DownloadVMFileOptions(BatchAccountContext context, string poolName, string vmName, string vmFileName, PSVMFile vmFile, string destinationPath, - Stream stream, IEnumerable additionalBehaviors = null) : base(context, poolName, vmName, vmFileName, vmFile, additionalBehaviors) - { - if (string.IsNullOrWhiteSpace(destinationPath) && stream == null) - { - throw new ArgumentNullException(Resources.NoDownloadDestination); - } - - this.DestinationPath = destinationPath; - this.Stream = stream; - } - - /// - /// The path to the directory where the vm file will be downloaded - /// - public string DestinationPath { get; set; } - - /// - /// The Stream into which the vm file data will be written. This stream will not be closed or rewound by this call. - /// - internal Stream Stream { get; set; } - } -} diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/JobOperationParameters.cs b/src/ResourceManager/Batch/Commands.Batch/Models/JobOperationParameters.cs index b87c3d834b3c..86015d40015b 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/JobOperationParameters.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models/JobOperationParameters.cs @@ -21,31 +21,25 @@ namespace Microsoft.Azure.Commands.Batch.Models { public class JobOperationParameters : BatchClientParametersBase { - public JobOperationParameters(BatchAccountContext context, string workItemName, string jobName, PSCloudJob job, + public JobOperationParameters(BatchAccountContext context, string jobId, PSCloudJob job, IEnumerable additionalBehaviors = null) : base(context, additionalBehaviors) { - if ((string.IsNullOrWhiteSpace(workItemName) || string.IsNullOrWhiteSpace(jobName)) && job == null) + if (string.IsNullOrWhiteSpace(jobId) && job == null) { throw new ArgumentNullException(Resources.NoJob); } - this.WorkItemName = workItemName; - this.JobName = jobName; + this.JobId = jobId; this.Job = job; } /// - /// The name of the workitem containing the job + /// The id of the job. /// - public string WorkItemName { get; private set; } + public string JobId { get; private set; } /// - /// The name of the job - /// - public string JobName { get; private set; } - - /// - /// The PSCloudJob object representing the target job + /// The PSCloudJob object representing the target job. /// public PSCloudJob Job { get; private set; } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/WorkItemOperationParameters.cs b/src/ResourceManager/Batch/Commands.Batch/Models/JobScheduleOperationParameters.cs similarity index 52% rename from src/ResourceManager/Batch/Commands.Batch/Models/WorkItemOperationParameters.cs rename to src/ResourceManager/Batch/Commands.Batch/Models/JobScheduleOperationParameters.cs index c6d9a7b3b958..0b9c8a065ec0 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/WorkItemOperationParameters.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models/JobScheduleOperationParameters.cs @@ -19,28 +19,28 @@ namespace Microsoft.Azure.Commands.Batch.Models { - public class WorkItemOperationParameters : BatchClientParametersBase + public class JobScheduleOperationParameters : BatchClientParametersBase +{ + public JobScheduleOperationParameters(BatchAccountContext context, string jobScheduleId, PSCloudJobSchedule jobSchedule, + IEnumerable additionalBehaviors = null) : base(context, additionalBehaviors) { - public WorkItemOperationParameters(BatchAccountContext context, string workItemName, PSCloudWorkItem workItem, - IEnumerable additionalBehaviors = null) : base(context, additionalBehaviors) + if (string.IsNullOrWhiteSpace(jobScheduleId) && jobSchedule == null) { - if (string.IsNullOrWhiteSpace(workItemName) && workItem == null) - { - throw new ArgumentNullException(Resources.NoWorkItem); - } - - this.WorkItemName = workItemName; - this.WorkItem = workItem; + throw new ArgumentNullException(Resources.NoJobSchedule); } - /// - /// The name of the workitem - /// - public string WorkItemName { get; private set; } - - /// - /// The PSCloudWorkItem object representing the target workitem - /// - public PSCloudWorkItem WorkItem { get; private set; } + this.JobScheduleId = jobScheduleId; + this.JobSchedule = jobSchedule; } + + /// + /// The id of the job schedule. + /// + public string JobScheduleId { get; private set; } + + /// + /// The PSCloudJobSchedule object representing the target job schedule. + /// + public PSCloudJobSchedule JobSchedule { get; private set; } +} } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/ListVMOptions.cs b/src/ResourceManager/Batch/Commands.Batch/Models/ListComputeNodeOptions.cs similarity index 67% rename from src/ResourceManager/Batch/Commands.Batch/Models/ListVMOptions.cs rename to src/ResourceManager/Batch/Commands.Batch/Models/ListComputeNodeOptions.cs index cb7ce93dcf71..8d0e8fe77e74 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/ListVMOptions.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models/ListComputeNodeOptions.cs @@ -17,24 +17,24 @@ namespace Microsoft.Azure.Commands.Batch.Models { - public class ListVMOptions : PoolOperationParameters + public class ListComputeNodeOptions : PoolOperationParameters { - public ListVMOptions(BatchAccountContext context, string poolName, PSCloudPool pool, IEnumerable additionalBehaviors = null) - : base(context, poolName, pool, additionalBehaviors) + public ListComputeNodeOptions(BatchAccountContext context, string poolId, PSCloudPool pool, IEnumerable additionalBehaviors = null) + : base(context, poolId, pool, additionalBehaviors) { } /// - /// If specified, the single vm with this name will be returned + /// If specified, the single compute node with this id will be returned. /// - public string VMName { get; set; } + public string ComputeNodeId { get; set; } /// - /// The OData filter to use when querying for vms + /// The OData filter to use when querying for compute nodes. /// public string Filter { get; set; } /// - /// The maximum number of vms to return + /// The maximum number of compute nodes to return. /// public int MaxCount { get; set; } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/ListJobOptions.cs b/src/ResourceManager/Batch/Commands.Batch/Models/ListJobOptions.cs index b54b413f4039..91f30c30677d 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/ListJobOptions.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models/ListJobOptions.cs @@ -17,24 +17,34 @@ namespace Microsoft.Azure.Commands.Batch.Models { - public class ListJobOptions : WorkItemOperationParameters + public class ListJobOptions : BatchClientParametersBase { - public ListJobOptions(BatchAccountContext context, string workItemName, PSCloudWorkItem workItem, IEnumerable additionalBehaviors = null) - : base(context, workItemName, workItem, additionalBehaviors) + public ListJobOptions(BatchAccountContext context, IEnumerable additionalBehaviors = null) + : base(context, additionalBehaviors) { } /// - /// If specified, the single Job with this name will be returned + /// If specified, the single job with this id will be returned. /// - public string JobName { get; set; } + public string JobId { get; set; } /// - /// The OData filter to use when querying for Jobs + /// If specified, the jobs under this job schedule will be returned. + /// + public string JobScheduleId { get; set; } + + /// + /// If specified, the jobs under this job schedule will be returned. + /// + public PSCloudJobSchedule JobSchedule { get; set; } + + /// + /// The OData filter to use when querying for jobs. /// public string Filter { get; set; } /// - /// The maximum number of Jobs to return + /// The maximum number of jobs to return. /// public int MaxCount { get; set; } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/ListWorkItemOptions.cs b/src/ResourceManager/Batch/Commands.Batch/Models/ListJobScheduleOptions.cs similarity index 72% rename from src/ResourceManager/Batch/Commands.Batch/Models/ListWorkItemOptions.cs rename to src/ResourceManager/Batch/Commands.Batch/Models/ListJobScheduleOptions.cs index 5e503ddfaf52..c5feb36690cb 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/ListWorkItemOptions.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models/ListJobScheduleOptions.cs @@ -17,24 +17,24 @@ namespace Microsoft.Azure.Commands.Batch.Models { - public class ListWorkItemOptions : BatchClientParametersBase + public class ListJobScheduleOptions : BatchClientParametersBase { - public ListWorkItemOptions(BatchAccountContext context, IEnumerable additionalBehaviors = null) + public ListJobScheduleOptions(BatchAccountContext context, IEnumerable additionalBehaviors = null) : base(context, additionalBehaviors) { } /// - /// If specified, the single WorkItem with this name will be returned + /// If specified, the single job schedule with this id will be returned. /// - public string WorkItemName { get; set; } + public string JobScheduleId { get; set; } /// - /// The OData filter to use when querying for WorkItems + /// The OData filter to use when querying for job schedules. /// public string Filter { get; set; } /// - /// The maximum number of WorkItems to return + /// The maximum number of job schedules to return. /// public int MaxCount { get; set; } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/ListNodeFileOptions.cs b/src/ResourceManager/Batch/Commands.Batch/Models/ListNodeFileOptions.cs new file mode 100644 index 000000000000..63de21e6a790 --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch/Models/ListNodeFileOptions.cs @@ -0,0 +1,103 @@ +// ---------------------------------------------------------------------------------- +// +// 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 System.Collections.Generic; +using Microsoft.Azure.Commands.Batch.Properties; + +namespace Microsoft.Azure.Commands.Batch.Models +{ + public class ListNodeFileOptions : BatchClientParametersBase + { + public ListNodeFileOptions(BatchAccountContext context, string jobId, string taskId, PSCloudTask task, string poolId, string computeNodeId, PSComputeNode computeNode, + IEnumerable additionalBehaviors = null) : base(context, additionalBehaviors) + { + if ((!string.IsNullOrWhiteSpace(jobId) && !string.IsNullOrWhiteSpace(taskId)) || task != null) + { + this.NodeFileType = PSNodeFileType.Task; + } + else if ((!string.IsNullOrWhiteSpace(poolId) && !string.IsNullOrWhiteSpace(computeNodeId)) || computeNode != null) + { + this.NodeFileType = PSNodeFileType.ComputeNode; + } + else + { + throw new ArgumentException(Resources.NoNodeFileParent); + } + + this.JobId = jobId; + this.TaskId = taskId; + this.Task = task; + this.PoolId = poolId; + this.ComputeNodeId = computeNodeId; + this.ComputeNode = computeNode; + } + + /// + /// The id of the job containing the task. + /// + public string JobId { get; private set; } + + /// + /// The id of the task. + /// + public string TaskId { get; private set; } + + /// + /// The PSCloudTask object representing the target task. + /// + public PSCloudTask Task { get; private set; } + + /// + /// The id of the pool containing the compute node. + /// + public string PoolId { get; private set; } + + /// + /// The id of the compute node + /// + public string ComputeNodeId { get; private set; } + + /// + /// The PSComputeNode object representing the target compute node. + /// + public PSComputeNode ComputeNode { get; private set; } + + /// + /// If specified, the single node file with this name will be returned. + /// + public string NodeFileName { get; set; } + + /// + /// The OData filter to use when querying for node files. + /// + public string Filter { get; set; } + + /// + /// The maximum number of node files to return. + /// + public int MaxCount { get; set; } + + /// + /// If true, performs a recursive list of all files of the task. If false, returns only the files at the task directory root. + /// + public bool Recursive { get; set; } + + /// + /// Whether the node file is associated with a task or a compute node + /// + internal PSNodeFileType NodeFileType { get; private set; } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/ListPoolOptions.cs b/src/ResourceManager/Batch/Commands.Batch/Models/ListPoolOptions.cs index 522204562f10..5dcd2e0496f9 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/ListPoolOptions.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models/ListPoolOptions.cs @@ -24,17 +24,17 @@ public ListPoolOptions(BatchAccountContext context, IEnumerable - /// If specified, the single Pool with this name will be returned + /// If specified, the single pool with this id will be returned. /// - public string PoolName { get; set; } + public string PoolId { get; set; } /// - /// The OData filter to use when querying for Pools + /// The OData filter to use when querying for pools. /// public string Filter { get; set; } /// - /// The maximum number of Pools to return + /// The maximum number of pools to return. /// public int MaxCount { get; set; } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/ListTaskFileOptions.cs b/src/ResourceManager/Batch/Commands.Batch/Models/ListTaskFileOptions.cs deleted file mode 100644 index 31e730b68294..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch/Models/ListTaskFileOptions.cs +++ /dev/null @@ -1,46 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Batch; -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.Batch.Models -{ - public class ListTaskFileOptions : TaskOperationParameters - { - public ListTaskFileOptions(BatchAccountContext context, string workItemName, string jobName, string taskName, PSCloudTask task, - IEnumerable additionalBehaviors = null) : base(context, workItemName, jobName, taskName, task, additionalBehaviors) - { } - - /// - /// If specified, the single Task file with this name will be returned - /// - public string TaskFileName { get; set; } - - /// - /// The OData filter to use when querying for Task files - /// - public string Filter { get; set; } - - /// - /// The maximum number of Task files to return - /// - public int MaxCount { get; set; } - - /// - /// If true, performs a recursive list of all files of the task. If false, returns only the files at the task directory root. - /// - public bool Recursive { get; set; } - } -} diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/ListTaskOptions.cs b/src/ResourceManager/Batch/Commands.Batch/Models/ListTaskOptions.cs index 5671c7b26033..cdb852eb2de2 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/ListTaskOptions.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models/ListTaskOptions.cs @@ -19,22 +19,22 @@ namespace Microsoft.Azure.Commands.Batch.Models { public class ListTaskOptions : JobOperationParameters { - public ListTaskOptions(BatchAccountContext context, string workItemName, string jobName, PSCloudJob job, - IEnumerable additionalBehaviors = null) : base(context, workItemName, jobName, job, additionalBehaviors) + public ListTaskOptions(BatchAccountContext context, string jobId, PSCloudJob job, IEnumerable additionalBehaviors = null) + : base(context, jobId, job, additionalBehaviors) { } /// - /// If specified, the single Task with this name will be returned + /// If specified, the single task with this id will be returned. /// - public string TaskName { get; set; } + public string TaskId { get; set; } /// - /// The OData filter to use when querying for Tasks + /// The OData filter to use when querying for tasks. /// public string Filter { get; set; } /// - /// The maximum number of Tasks to return + /// The maximum number of tasks to return. /// public int MaxCount { get; set; } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/ListVMFileOptions.cs b/src/ResourceManager/Batch/Commands.Batch/Models/ListVMFileOptions.cs deleted file mode 100644 index 614513f77d2c..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch/Models/ListVMFileOptions.cs +++ /dev/null @@ -1,46 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Batch; -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.Batch.Models -{ - public class ListVMFileOptions : VMOperationParameters - { - public ListVMFileOptions(BatchAccountContext context, string poolName, string vmName, PSVM vm, IEnumerable additionalBehaviors = null) - : base(context, poolName, vmName, vm, additionalBehaviors) - { } - - /// - /// If specified, the single vm file with this name will be returned - /// - public string VMFileName { get; set; } - - /// - /// The OData filter to use when querying for vm files - /// - public string Filter { get; set; } - - /// - /// The maximum number of vm files to return - /// - public int MaxCount { get; set; } - - /// - /// If true, performs a recursive list of all files of the vm. If false, returns only the files at the vm directory root. - /// - public bool Recursive { get; set; } - } -} diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/NewVMUserParameters.cs b/src/ResourceManager/Batch/Commands.Batch/Models/NewComputeNodeUserParameters.cs similarity index 77% rename from src/ResourceManager/Batch/Commands.Batch/Models/NewVMUserParameters.cs rename to src/ResourceManager/Batch/Commands.Batch/Models/NewComputeNodeUserParameters.cs index 497cc32b4015..942c0fc25fc1 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/NewVMUserParameters.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models/NewComputeNodeUserParameters.cs @@ -19,16 +19,17 @@ namespace Microsoft.Azure.Commands.Batch.Models { - public class NewVMUserParameters : VMOperationParameters + public class NewComputeNodeUserParameters : ComputeNodeOperationParameters { - public NewVMUserParameters(BatchAccountContext context, string poolName, string vmName, PSVM vm, IEnumerable additionalBehaviors = null) - : base(context, poolName, vmName, vm, additionalBehaviors) + public NewComputeNodeUserParameters(BatchAccountContext context, string poolId, string computeNodeId, PSComputeNode computeNode, + IEnumerable additionalBehaviors = null) + : base(context, poolId, computeNodeId, computeNode, additionalBehaviors) { } /// /// The name of the local windows account created. /// - public string VMUserName { get; set; } + public string ComputeNodeUserName { get; set; } /// /// The account password. diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/NewJobParameters.cs b/src/ResourceManager/Batch/Commands.Batch/Models/NewJobParameters.cs new file mode 100644 index 000000000000..960da95ec4d8 --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch/Models/NewJobParameters.cs @@ -0,0 +1,85 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Collections; +using Microsoft.Azure.Batch; +using System.Collections.Generic; + +namespace Microsoft.Azure.Commands.Batch.Models +{ + public class NewJobParameters : BatchClientParametersBase + { + public NewJobParameters(BatchAccountContext context, string jobId, IEnumerable additionalBehaviors = null) + : base(context, additionalBehaviors) + { + if (string.IsNullOrWhiteSpace(jobId)) + { + throw new ArgumentNullException("jobId"); + } + + this.JobId = jobId; + } + + /// + /// The id of the job to create. + /// + public string JobId { get; private set; } + + /// + /// The common environment settings that are automatically added to all tasks. + /// + public IDictionary CommonEnvironmentSettings { get; set; } + + /// + /// The display name of the job to create. + /// + public string DisplayName { get; set; } + + /// + /// The job constraints. + /// + public PSJobConstraints Constraints { get; set; } + + /// + /// The details of the Job Manager task that will be launched whenever a job is started. + /// + public PSJobManagerTask JobManagerTask { get; set; } + + /// + /// The details of the Job Preparation task for the job. + /// + public PSJobPreparationTask JobPreparationTask { get; set; } + + /// + /// The details of the Job Release task for the job. + /// + public PSJobReleaseTask JobReleaseTask { get; set; } + + /// + /// Metadata to add to the new job. + /// + public IDictionary Metadata { get; set; } + + /// + /// The pool information for the job. + /// + public PSPoolInformation PoolInformation { get; set; } + + /// + /// The job priority. + /// + public int Priority { get; set; } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/NewWorkItemParameters.cs b/src/ResourceManager/Batch/Commands.Batch/Models/NewJobScheduleParameters.cs similarity index 60% rename from src/ResourceManager/Batch/Commands.Batch/Models/NewWorkItemParameters.cs rename to src/ResourceManager/Batch/Commands.Batch/Models/NewJobScheduleParameters.cs index 539824be3a84..cdaf8f090ee4 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/NewWorkItemParameters.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models/NewJobScheduleParameters.cs @@ -19,40 +19,41 @@ namespace Microsoft.Azure.Commands.Batch.Models { - public class NewWorkItemParameters : BatchClientParametersBase + public class NewJobScheduleParameters : BatchClientParametersBase { - public NewWorkItemParameters(BatchAccountContext context, string workItemName, IEnumerable additionalBehaviors = null) + public NewJobScheduleParameters(BatchAccountContext context, string jobScheduleId, IEnumerable additionalBehaviors = null) : base(context, additionalBehaviors) { - if (string.IsNullOrWhiteSpace(workItemName)) + if (string.IsNullOrWhiteSpace(jobScheduleId)) { - throw new ArgumentNullException("poolName"); + throw new ArgumentNullException("jobScheduleId"); } - this.WorkItemName = workItemName; + this.JobScheduleId = jobScheduleId; } + /// - /// The name of the WorkItem to create + /// The id of the job schedule to create. /// - public string WorkItemName { get; private set; } + public string JobScheduleId { get; private set; } /// - /// The Schedule to use when creating a new WorkItem + /// The display name of the job schedule to create. /// - public PSWorkItemSchedule Schedule { get; set; } + public string DisplayName { get; set; } /// - /// The Job Specification to use when creating a new WorkItem + /// The Schedule to use when creating a new job schedule. /// - public PSJobSpecification JobSpecification { get; set; } + public PSSchedule Schedule { get; set; } /// - /// The Job Execution Enviornment to use when creating a new WorkItem + /// The job specification to use when creating a new job schedule. /// - public PSJobExecutionEnvironment JobExecutionEnvironment { get; set; } + public PSJobSpecification JobSpecification { get; set; } /// - /// Metadata to add to the new WorkItem + /// Metadata to add to the new job schedule. /// public IDictionary Metadata { get; set; } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/NewPoolParameters.cs b/src/ResourceManager/Batch/Commands.Batch/Models/NewPoolParameters.cs index 0c03d92a206f..4092829f488e 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/NewPoolParameters.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models/NewPoolParameters.cs @@ -21,79 +21,84 @@ namespace Microsoft.Azure.Commands.Batch.Models { public class NewPoolParameters : BatchClientParametersBase { - public NewPoolParameters(BatchAccountContext context, string poolName, IEnumerable additionalBehaviors = null) + public NewPoolParameters(BatchAccountContext context, string poolId, IEnumerable additionalBehaviors = null) : base(context, additionalBehaviors) { - if (string.IsNullOrWhiteSpace(poolName)) + if (string.IsNullOrWhiteSpace(poolId)) { - throw new ArgumentNullException("poolName"); + throw new ArgumentNullException("poolId"); } - this.PoolName = poolName; + this.PoolId = poolId; } /// - /// The name of the Pool to create. + /// The id of the pool to create. /// - public string PoolName { get; private set; } + public string PoolId { get; private set; } /// - /// The size of the VMs in the Pool. + /// The display name of the pool to create. /// - public string VMSize { get; set; } + public string DisplayName { get; set; } /// - /// The OS family of the VMs in the Pool. + /// The size of the virtual machines in the pool. + /// + public string VirtualMachineSize { get; set; } + + /// + /// The OS family of the compute nodes in the pool. /// public string OSFamily { get; set; } /// - /// The target OS version of the VMs in the Pool. + /// The target OS version of the compute nodes in the pool. /// public string TargetOSVersion { get; set; } /// - /// The timeout for allocating VMs to the Pool. + /// The timeout for allocating compute nodes to the pool. /// public TimeSpan? ResizeTimeout { get; set; } /// - /// The target number of VMs to allocate to the Pool. + /// The target number of compute nodes to allocate to the pool. /// public int? TargetDedicated { get; set; } /// - /// The AutoScale formula to use with the Pool. + /// The AutoScale formula to use with the pool. /// public string AutoScaleFormula { get; set; } /// - /// The maximum number of Tasks that can run on a VM. + /// The maximum number of tasks that can run on a compute node. /// - public int? MaxTasksPerVM { get; set; } + public int? MaxTasksPerComputeNode { get; set; } /// - /// The scheduling policy. + /// The task scheduling policy. /// - public PSSchedulingPolicy SchedulingPolicy { get; set; } + public PSTaskSchedulingPolicy TaskSchedulingPolicy { get; set; } /// - /// Metadata to add to the new Pool. + /// Metadata to add to the new pool. /// public IDictionary Metadata { get; set; } /// - /// Whether the VMs in the Pool need to communicate with each other. + /// Specifies whether the pool permits direct communication between compute nodes. /// - public bool Communication { get; set; } + public bool InterComputeNodeCommunicationEnabled { get; set; } /// - /// The Start Task the VMs in the Pool will run. + /// The start task the compute nodes in the pool will run. /// public PSStartTask StartTask { get; set; } /// - /// Certificate References for the Pool. + /// Certificate references for the pool. /// public PSCertificateReference[] CertificateReferences { get; set; } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/NewTaskParameters.cs b/src/ResourceManager/Batch/Commands.Batch/Models/NewTaskParameters.cs index 41dc2f8f871d..ddc7f8843e2e 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/NewTaskParameters.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models/NewTaskParameters.cs @@ -21,50 +21,55 @@ namespace Microsoft.Azure.Commands.Batch.Models { public class NewTaskParameters : JobOperationParameters { - public NewTaskParameters(BatchAccountContext context, string workItemName, string jobName, PSCloudJob job, string taskName, - IEnumerable additionalBehaviors = null) : base(context, workItemName, jobName, job, additionalBehaviors) + public NewTaskParameters(BatchAccountContext context, string jobId, PSCloudJob job, string taskId, IEnumerable additionalBehaviors = null) + : base(context, jobId, job, additionalBehaviors) { - if (string.IsNullOrWhiteSpace(taskName)) + if (string.IsNullOrWhiteSpace(taskId)) { - throw new ArgumentNullException("taskName"); + throw new ArgumentNullException("taskId"); } - this.TaskName = taskName; + this.TaskId = taskId; } /// - /// The name of the Task to create. + /// The id of the task to create. /// - public string TaskName { get; private set; } + public string TaskId { get; private set; } /// - /// The command the Task will execute. + /// The display name of the task to create. + /// + public string DisplayName { get; set; } + + /// + /// The command the task will execute. /// public string CommandLine { get; set; } /// - /// Resource Files to add to the new Task. + /// Resource files to add to the new task. /// public IDictionary ResourceFiles { get; set; } /// - /// Environment Settings to add to the new Task. + /// Environment settings to add to the new task. /// public IDictionary EnvironmentSettings { get; set; } /// - /// Whether to run the Task in elevated mode. + /// Whether to run the task in elevated mode. /// public bool RunElevated { get; set; } /// - /// The Affinity Information for the Task. + /// The affinity information for the task. /// public PSAffinityInformation AffinityInformation { get; set; } /// - /// The Task Constraints. + /// The task constraints. /// - public PSTaskConstraints TaskConstraints { get; set; } + public PSTaskConstraints Constraints { get; set; } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/NodeFileOperationParameters.cs b/src/ResourceManager/Batch/Commands.Batch/Models/NodeFileOperationParameters.cs new file mode 100644 index 000000000000..69ca16a48303 --- /dev/null +++ b/src/ResourceManager/Batch/Commands.Batch/Models/NodeFileOperationParameters.cs @@ -0,0 +1,101 @@ +// ---------------------------------------------------------------------------------- +// +// 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 System.Collections.Generic; +using Microsoft.Azure.Commands.Batch.Properties; + +namespace Microsoft.Azure.Commands.Batch.Models +{ + internal enum PSNodeFileType + { + PSNodeFileInstance, + Task, + ComputeNode + } + + public class NodeFileOperationParameters : BatchClientParametersBase + { + public NodeFileOperationParameters(BatchAccountContext context, string jobId, string taskId, string poolId, string computeNodeId, string nodeFileName, + PSNodeFile nodeFile, IEnumerable additionalBehaviors = null) : base(context, additionalBehaviors) + { + PSNodeFileType? nodeFileType = null; + + if (nodeFile != null) + { + nodeFileType = PSNodeFileType.PSNodeFileInstance; + } + else if (!string.IsNullOrWhiteSpace(nodeFileName)) + { + if (!string.IsNullOrWhiteSpace(jobId) && !string.IsNullOrWhiteSpace(taskId)) + { + nodeFileType = PSNodeFileType.Task; + } + else if (!string.IsNullOrWhiteSpace(poolId) && !string.IsNullOrWhiteSpace(computeNodeId)) + { + nodeFileType = PSNodeFileType.ComputeNode; + } + } + + if (nodeFileType == null) + { + throw new ArgumentException(Resources.NoNodeFile); + } + this.NodeFileType = nodeFileType.Value; + + this.JobId = jobId; + this.TaskId = taskId; + this.PoolId = poolId; + this.ComputeNodeId = computeNodeId; + this.NodeFileName = nodeFileName; + this.NodeFile = nodeFile; + } + + /// + /// The id of the job containing the task. + /// + public string JobId { get; private set; } + + /// + /// The id of the task. + /// + public string TaskId { get; private set; } + + /// + /// The id of the pool containing the compute node. + /// + public string PoolId { get; private set; } + + /// + /// The id of the compute node. + /// + public string ComputeNodeId { get; private set; } + + /// + /// The name of the node file + /// + public string NodeFileName { get; private set; } + + /// + /// The PSNodeFile object representing the target node file. + /// + public PSNodeFile NodeFile { get; private set; } + + /// + /// Whether the node file is associated with a task, a compute node, or a PSNodeFile instance. + /// + internal PSNodeFileType NodeFileType { get; private set; } + } +} diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/PSAsyncEnumerable.cs b/src/ResourceManager/Batch/Commands.Batch/Models/PSPagedEnumerable.cs similarity index 70% rename from src/ResourceManager/Batch/Commands.Batch/Models/PSAsyncEnumerable.cs rename to src/ResourceManager/Batch/Commands.Batch/Models/PSPagedEnumerable.cs index 060265b4532c..011258c89858 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/PSAsyncEnumerable.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models/PSPagedEnumerable.cs @@ -21,20 +21,20 @@ namespace Microsoft.Azure.Commands.Batch.Models { - internal class PSAsyncEnumerable : IEnumerableAsyncExtended + internal class PSPagedEnumerable : IPagedEnumerable where T1 : class where T2 : class { - internal IEnumerableAsyncExtended omAsyncEnumerable; + internal IPagedEnumerable omPagedEnumerable; private Func mappingFunction; - internal PSAsyncEnumerable(IEnumerableAsyncExtended omAsyncEnumerable, Func mappingFunction) + internal PSPagedEnumerable(IPagedEnumerable omPagedEnumerable, Func mappingFunction) { - if (omAsyncEnumerable == null) + if (omPagedEnumerable == null) { throw new ArgumentNullException("omAsyncEnumerable"); } - this.omAsyncEnumerable = omAsyncEnumerable; + this.omPagedEnumerable = omPagedEnumerable; if (mappingFunction == null) { @@ -45,25 +45,25 @@ internal PSAsyncEnumerable(IEnumerableAsyncExtended omAsyncEnumerable, Func< IEnumerator System.Collections.IEnumerable.GetEnumerator() { - return new PSAsyncEnumerator(omAsyncEnumerable.GetAsyncEnumerator(), this.mappingFunction); + return new PSPagedEnumerator(this.omPagedEnumerable.GetPagedEnumerator(), this.mappingFunction); } // IEnumerable public IEnumerator GetEnumerator() { - return new PSAsyncEnumerator(omAsyncEnumerable.GetAsyncEnumerator(), this.mappingFunction); + return new PSPagedEnumerator(this.omPagedEnumerable.GetPagedEnumerator(), this.mappingFunction); } - // IEnumerableAsyncExtended - public IAsyncEnumerator GetAsyncEnumerator() + // IPagedEnumerable + public IPagedEnumerator GetPagedEnumerator() { - return new PSAsyncEnumerator(omAsyncEnumerable.GetAsyncEnumerator(), this.mappingFunction); + return new PSPagedEnumerator(this.omPagedEnumerable.GetPagedEnumerator(), this.mappingFunction); } internal static IEnumerable CreateWithMaxCount( - IEnumerableAsyncExtended omAsyncEnumerable, Func mappingFunction, int maxCount, Action logMaxCount = null) + IPagedEnumerable omAsyncEnumerable, Func mappingFunction, int maxCount, Action logMaxCount = null) { - PSAsyncEnumerable asyncEnumerable = new PSAsyncEnumerable(omAsyncEnumerable, mappingFunction); + PSPagedEnumerable asyncEnumerable = new PSPagedEnumerable(omAsyncEnumerable, mappingFunction); if (maxCount <= 0) { @@ -80,14 +80,14 @@ internal static IEnumerable CreateWithMaxCount( } } - internal class PSAsyncEnumerator : IAsyncEnumerator, IEnumerator + internal class PSPagedEnumerator : IPagedEnumerator, IEnumerator where T1 : class where T2 : class { - internal IAsyncEnumerator omEnumerator; + internal IPagedEnumerator omEnumerator; private Func mappingFunction; - internal PSAsyncEnumerator(IAsyncEnumerator omEnumerator, Func mappingFunction) + internal PSPagedEnumerator(IPagedEnumerator omEnumerator, Func mappingFunction) { if (omEnumerator == null) { @@ -128,9 +128,14 @@ public Task MoveNextAsync() return this.omEnumerator.MoveNextAsync(); } + public Task ResetAsync() + { + return this.omEnumerator.ResetAsync(); + } + public void Reset() { - this.omEnumerator.Reset(); + ((IEnumerator)this.omEnumerator).Reset(); } public void Dispose() diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/PoolOperationParameters.cs b/src/ResourceManager/Batch/Commands.Batch/Models/PoolOperationParameters.cs index bfe32e3bffbc..c17fef7fb84b 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/PoolOperationParameters.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models/PoolOperationParameters.cs @@ -21,25 +21,25 @@ namespace Microsoft.Azure.Commands.Batch.Models { public class PoolOperationParameters : BatchClientParametersBase { - public PoolOperationParameters(BatchAccountContext context, string poolName, PSCloudPool pool, + public PoolOperationParameters(BatchAccountContext context, string poolId, PSCloudPool pool, IEnumerable additionalBehaviors = null) : base(context, additionalBehaviors) { - if (string.IsNullOrWhiteSpace(poolName) && pool == null) + if (string.IsNullOrWhiteSpace(poolId) && pool == null) { throw new ArgumentNullException(Resources.NoPool); } - this.PoolName = poolName; + this.PoolId = poolId; this.Pool = pool; } /// - /// The name of the pool + /// The id of the pool. /// - public string PoolName { get; private set; } + public string PoolId { get; private set; } /// - /// The PSCloudPool object representing the target pool + /// The PSCloudPool object representing the target pool. /// public PSCloudPool Pool { get; private set; } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/PoolResizeParameters.cs b/src/ResourceManager/Batch/Commands.Batch/Models/PoolResizeParameters.cs index 8d2804037f1c..0faa6ea8e0ee 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/PoolResizeParameters.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models/PoolResizeParameters.cs @@ -21,12 +21,12 @@ namespace Microsoft.Azure.Commands.Batch.Models { public class PoolResizeParameters : PoolOperationParameters { - public PoolResizeParameters(BatchAccountContext context, string poolName, PSCloudPool pool, IEnumerable additionalBehaviors = null) - : base(context, poolName, pool, additionalBehaviors) + public PoolResizeParameters(BatchAccountContext context, string poolId, PSCloudPool pool, IEnumerable additionalBehaviors = null) + : base(context, poolId, pool, additionalBehaviors) { } /// - /// The number of target dedicated vms. + /// The number of target dedicated compute nodes. /// public int TargetDedicated { get; set; } @@ -38,6 +38,6 @@ public PoolResizeParameters(BatchAccountContext context, string poolName, PSClou /// /// The deallocation option associated with this resize. /// - public TVMDeallocationOption DeallocationOption { get; set; } + public ComputeNodeDeallocationOption? ComputeNodeDeallocationOption { get; set; } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/TaskFileOperationParameters.cs b/src/ResourceManager/Batch/Commands.Batch/Models/TaskFileOperationParameters.cs deleted file mode 100644 index 372284ad468d..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch/Models/TaskFileOperationParameters.cs +++ /dev/null @@ -1,65 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System; -using Microsoft.Azure.Batch; -using System.Collections.Generic; -using Microsoft.Azure.Commands.Batch.Properties; - -namespace Microsoft.Azure.Commands.Batch.Models -{ - public class TaskFileOperationParameters : BatchClientParametersBase - { - public TaskFileOperationParameters(BatchAccountContext context, string workItemName, string jobName, string taskName, string taskFileName, - PSTaskFile taskFile, IEnumerable additionalBehaviors = null) : base(context, additionalBehaviors) - { - if ((string.IsNullOrWhiteSpace(workItemName) || string.IsNullOrWhiteSpace(jobName) || string.IsNullOrWhiteSpace(taskName) || - string.IsNullOrWhiteSpace(taskFileName)) && taskFile == null) - { - throw new ArgumentNullException(Resources.NoTaskFile); - } - - this.WorkItemName = workItemName; - this.JobName = jobName; - this.TaskName = taskName; - this.TaskFileName = taskFileName; - this.TaskFile = taskFile; - } - - /// - /// The name of the workitem containing the task - /// - public string WorkItemName { get; private set; } - - /// - /// The name of the job containing the task - /// - public string JobName { get; private set; } - - /// - /// The name of the task - /// - public string TaskName { get; private set; } - - /// - /// The name of the task file - /// - public string TaskFileName { get; private set; } - - /// - /// The PSTaskFile object representing the target task file - /// - public PSTaskFile TaskFile { get; private set; } - } -} diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/TaskOperationParameters.cs b/src/ResourceManager/Batch/Commands.Batch/Models/TaskOperationParameters.cs index 80133829a88c..2349074365d3 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Models/TaskOperationParameters.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Models/TaskOperationParameters.cs @@ -21,37 +21,31 @@ namespace Microsoft.Azure.Commands.Batch.Models { public class TaskOperationParameters : BatchClientParametersBase { - public TaskOperationParameters(BatchAccountContext context, string workItemName, string jobName, string taskName, PSCloudTask task, + public TaskOperationParameters(BatchAccountContext context, string jobId, string taskId, PSCloudTask task, IEnumerable additionalBehaviors = null) : base(context, additionalBehaviors) { - if ((string.IsNullOrWhiteSpace(workItemName) || string.IsNullOrWhiteSpace(jobName) || string.IsNullOrWhiteSpace(taskName)) && task == null) + if ((string.IsNullOrWhiteSpace(jobId) || string.IsNullOrWhiteSpace(taskId)) && task == null) { throw new ArgumentNullException(Resources.NoTask); } - this.WorkItemName = workItemName; - this.JobName = jobName; - this.TaskName = taskName; + this.JobId = jobId; + this.TaskId = taskId; this.Task = task; } /// - /// The name of the workitem containing the task + /// The id of the job containing the task. /// - public string WorkItemName { get; private set; } + public string JobId { get; private set; } /// - /// The name of the job containing the task + /// The id of the task. /// - public string JobName { get; private set; } + public string TaskId { get; private set; } /// - /// The name of the task - /// - public string TaskName { get; private set; } - - /// - /// The PSCloudTask object representing the target task + /// The PSCloudTask object representing the target task. /// public PSCloudTask Task { get; private set; } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Models/VMFileOperationParameters.cs b/src/ResourceManager/Batch/Commands.Batch/Models/VMFileOperationParameters.cs deleted file mode 100644 index 07222ed9d02d..000000000000 --- a/src/ResourceManager/Batch/Commands.Batch/Models/VMFileOperationParameters.cs +++ /dev/null @@ -1,60 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Batch; -using Microsoft.Azure.Commands.Batch.Properties; -using System; -using System.Collections.Generic; - -namespace Microsoft.Azure.Commands.Batch.Models -{ - public class VMFileOperationParameters : BatchClientParametersBase - { - public VMFileOperationParameters(BatchAccountContext context, string poolName, string vmName, string vmFileName, - PSVMFile vmFile, IEnumerable additionalBehaviors = null) - : base(context, additionalBehaviors) - { - if ((string.IsNullOrWhiteSpace(poolName) || string.IsNullOrWhiteSpace(vmName) || string.IsNullOrWhiteSpace(vmFileName)) - && vmFile == null) - { - throw new ArgumentNullException(Resources.NoVMFile); - } - - this.PoolName = poolName; - this.VMName = vmName; - this.VMFileName = vmFileName; - this.VMFile = vmFile; - } - - /// - /// The name of the pool containing the vm - /// - public string PoolName { get; private set; } - - /// - /// The name of the vm - /// - public string VMName { get; private set; } - - /// - /// The name of the vm file - /// - public string VMFileName { get; private set; } - - /// - /// The PSVMFile object representing the target vm file - /// - public PSVMFile VMFile { get; private set; } - } -} diff --git a/src/ResourceManager/Batch/Commands.Batch/Pools/GetBatchPoolCommand.cs b/src/ResourceManager/Batch/Commands.Batch/Pools/GetBatchPoolCommand.cs index 768ce8549bc3..1f6f9be73a65 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Pools/GetBatchPoolCommand.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Pools/GetBatchPoolCommand.cs @@ -22,20 +22,20 @@ namespace Microsoft.Azure.Commands.Batch { - [Cmdlet(VerbsCommon.Get, "AzureBatchPool", DefaultParameterSetName = Constants.ODataFilterParameterSet), OutputType(typeof(PSCloudPool))] + [Cmdlet(VerbsCommon.Get, Constants.AzureBatchPool, DefaultParameterSetName = Constants.ODataFilterParameterSet), OutputType(typeof(PSCloudPool))] public class GetBatchPoolCommand : BatchObjectModelCmdletBase { private int maxCount = Constants.DefaultMaxCount; - [Parameter(Position = 0, ParameterSetName = Constants.NameParameterSet, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the pool to retrieve.")] + [Parameter(Position = 0, ParameterSetName = Constants.IdParameterSet, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true)] [ValidateNotNullOrEmpty] - public string Name { get; set; } + public string Id { get; set; } - [Parameter(ParameterSetName = Constants.ODataFilterParameterSet, HelpMessage = "The OData filter clause to use when querying for pools.")] + [Parameter(ParameterSetName = Constants.ODataFilterParameterSet)] [ValidateNotNullOrEmpty] public string Filter { get; set; } - [Parameter(ParameterSetName = Constants.ODataFilterParameterSet, HelpMessage = "The maximum number of pools to return.")] + [Parameter(ParameterSetName = Constants.ODataFilterParameterSet)] public int MaxCount { get { return this.maxCount; } @@ -46,7 +46,7 @@ public override void ExecuteCmdlet() { ListPoolOptions options = new ListPoolOptions(this.BatchContext, this.AdditionalBehaviors) { - PoolName = this.Name, + PoolId = this.Id, Filter = this.Filter, MaxCount = this.MaxCount }; diff --git a/src/ResourceManager/Batch/Commands.Batch/Pools/NewBatchPoolCommand.cs b/src/ResourceManager/Batch/Commands.Batch/Pools/NewBatchPoolCommand.cs index e350d14a4602..d79d30d934c4 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Pools/NewBatchPoolCommand.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Pools/NewBatchPoolCommand.cs @@ -21,77 +21,82 @@ namespace Microsoft.Azure.Commands.Batch { - [Cmdlet(VerbsCommon.New, "AzureBatchPool", DefaultParameterSetName = TargetDedicatedParameterSet)] + [Cmdlet(VerbsCommon.New, Constants.AzureBatchPool, DefaultParameterSetName = TargetDedicatedParameterSet)] public class NewBatchPoolCommand : BatchObjectModelCmdletBase { internal const string TargetDedicatedParameterSet = "TargetDedicated"; internal const string AutoScaleParameterSet = "AutoScale"; - [Parameter(Position = 0, Mandatory = true, HelpMessage = "The name of the pool to create.")] + [Parameter(Position = 0, Mandatory = true, HelpMessage = "The id of the pool to create.")] [ValidateNotNullOrEmpty] - public string Name { get; set; } + public string Id { get; set; } - [Parameter(HelpMessage = "The size of the VMs in the pool.")] + [Parameter(Mandatory = true, HelpMessage = "The size of the virtual machines in the pool.")] [ValidateNotNullOrEmpty] - public string VMSize { get; set; } + public string VirtualMachineSize { get; set; } - [Parameter(HelpMessage = "The OS family of the VMs in the pool.")] + [Parameter(Mandatory = true, HelpMessage = "The Azure Guest OS family to be installed on the virtual machines in the pool.")] [ValidateNotNullOrEmpty] public string OSFamily { get; set; } - [Parameter(HelpMessage = "The target OS version of the VMs in the pool. Use \"*\" for the latest OS version for the specified family.")] + [Parameter] + [ValidateNotNullOrEmpty] + public string DisplayName { get; set; } + + [Parameter] [ValidateNotNullOrEmpty] public string TargetOSVersion { get; set; } - [Parameter(ParameterSetName = TargetDedicatedParameterSet, HelpMessage = "The timeout for allocating VMs to the pool.")] + [Parameter(ParameterSetName = TargetDedicatedParameterSet)] [ValidateNotNullOrEmpty] public TimeSpan? ResizeTimeout { get; set; } - [Parameter(ParameterSetName = TargetDedicatedParameterSet, HelpMessage = "The target number of VMs to allocate to the pool.")] + [Parameter(ParameterSetName = TargetDedicatedParameterSet)] [ValidateNotNullOrEmpty] public int? TargetDedicated { get; set; } - [Parameter(ParameterSetName = AutoScaleParameterSet, HelpMessage = "The formula for automatically scaling the pool.")] + [Parameter(ParameterSetName = AutoScaleParameterSet)] [ValidateNotNullOrEmpty] public string AutoScaleFormula { get; set; } - [Parameter(HelpMessage = "The maximum number of tasks that can run on a single VM.")] + [Parameter] [ValidateNotNullOrEmpty] - public int? MaxTasksPerVM { get; set; } + public int? MaxTasksPerComputeNode { get; set; } - [Parameter(HelpMessage = "The scheduling policy (such as the TVMFillType).")] + [Parameter] [ValidateNotNullOrEmpty] - public PSSchedulingPolicy SchedulingPolicy { get; set; } + public PSTaskSchedulingPolicy TaskSchedulingPolicy { get; set; } - [Parameter(HelpMessage = "Metadata to add to the new pool.")] + [Parameter] [ValidateNotNullOrEmpty] public IDictionary Metadata { get; set; } - [Parameter(HelpMessage = "Set up the pool for direct communication between dedicated VMs.")] - public SwitchParameter CommunicationEnabled { get; set; } + [Parameter] + public SwitchParameter InterComputeNodeCommunicationEnabled { get; set; } - [Parameter(HelpMessage = "The start task specification for the pool.")] + [Parameter] [ValidateNotNullOrEmpty] public PSStartTask StartTask { get; set; } - [Parameter(HelpMessage = "Certificates associated with the pool.")] + [Parameter] [ValidateNotNullOrEmpty] public PSCertificateReference[] CertificateReferences { get; set; } public override void ExecuteCmdlet() { - NewPoolParameters parameters = new NewPoolParameters(this.BatchContext, this.Name, this.AdditionalBehaviors) + NewPoolParameters parameters = new NewPoolParameters(this.BatchContext, this.Id, this.AdditionalBehaviors) { - VMSize = this.VMSize, + VirtualMachineSize = this.VirtualMachineSize, OSFamily = this.OSFamily, + DisplayName = this.DisplayName, TargetOSVersion = this.TargetOSVersion, ResizeTimeout = this.ResizeTimeout, TargetDedicated = this.TargetDedicated, AutoScaleFormula = this.AutoScaleFormula, - MaxTasksPerVM = this.MaxTasksPerVM, - SchedulingPolicy = this.SchedulingPolicy, + MaxTasksPerComputeNode = this.MaxTasksPerComputeNode, + TaskSchedulingPolicy = this.TaskSchedulingPolicy, Metadata = this.Metadata, - Communication = this.CommunicationEnabled.IsPresent, + InterComputeNodeCommunicationEnabled = this.InterComputeNodeCommunicationEnabled.IsPresent, StartTask = this.StartTask, CertificateReferences = this.CertificateReferences }; diff --git a/src/ResourceManager/Batch/Commands.Batch/Pools/RemoveBatchPoolCommand.cs b/src/ResourceManager/Batch/Commands.Batch/Pools/RemoveBatchPoolCommand.cs index 7972821786a8..bd8a2b8d9fce 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Pools/RemoveBatchPoolCommand.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Pools/RemoveBatchPoolCommand.cs @@ -17,27 +17,28 @@ using Microsoft.Azure.Commands.Batch.Models; using System.Management.Automation; using Microsoft.Azure.Commands.Batch.Properties; +using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; namespace Microsoft.Azure.Commands.Batch { - [Cmdlet(VerbsCommon.Remove, "AzureBatchPool")] + [Cmdlet(VerbsCommon.Remove, Constants.AzureBatchPool)] public class RemoveBatchPoolCommand : BatchObjectModelCmdletBase { - [Parameter(Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the pool to delete.")] + [Parameter(Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The id of the pool to delete.")] [ValidateNotNullOrEmpty] - public string Name { get; set; } + public string Id { get; set; } - [Parameter(HelpMessage = "Do not ask for confirmation.")] + [Parameter] public SwitchParameter Force { get; set; } public override void ExecuteCmdlet() { ConfirmAction( Force.IsPresent, - string.Format(Resources.RBP_RemoveConfirm, this.Name), + string.Format(Resources.RBP_RemoveConfirm, this.Id), Resources.RBP_RemovePool, - this.Name, - () => BatchClient.DeletePool(this.BatchContext, this.Name, this.AdditionalBehaviors)); + this.Id, + () => BatchClient.DeletePool(this.BatchContext, this.Id, this.AdditionalBehaviors)); } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Pools/StartBatchPoolResizeCommand.cs b/src/ResourceManager/Batch/Commands.Batch/Pools/StartBatchPoolResizeCommand.cs index 79d4a536f6f8..edd625f4179f 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Pools/StartBatchPoolResizeCommand.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Pools/StartBatchPoolResizeCommand.cs @@ -17,35 +17,36 @@ using Microsoft.Azure.Commands.Batch.Models; using System; using System.Management.Automation; +using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; namespace Microsoft.Azure.Commands.Batch { - [Cmdlet(VerbsLifecycle.Start, "AzureBatchPoolResize")] + [Cmdlet(VerbsLifecycle.Start, Constants.AzureBatchPoolResize)] public class StartBatchPoolResizeCommand : BatchObjectModelCmdletBase { - [Parameter(Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "The name of the pool to resize.")] + [Parameter(Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "The id of the pool to resize.")] [ValidateNotNullOrEmpty] - public string Name { get; set; } + public string Id { get; set; } - [Parameter(Mandatory = true, HelpMessage = "The number of target dedicated VMs.")] + [Parameter(Mandatory = true, HelpMessage = "The number of target dedicated compute nodes.")] [ValidateNotNullOrEmpty] public int TargetDedicated { get; set; } - [Parameter(HelpMessage = "The resize timeout. If the pool has not reached the target after this time the resize is automatically stopped.")] + [Parameter] [ValidateNotNullOrEmpty] public TimeSpan? ResizeTimeout { get; set; } - [Parameter(HelpMessage = "The deallocation option associated with this resize.")] + [Parameter] [ValidateNotNullOrEmpty] - public TVMDeallocationOption DeallocationOption { get; set; } + public ComputeNodeDeallocationOption? ComputeNodeDeallocationOption { get; set; } public override void ExecuteCmdlet() { - PoolResizeParameters parameters = new PoolResizeParameters(this.BatchContext, this.Name, null, this.AdditionalBehaviors) + PoolResizeParameters parameters = new PoolResizeParameters(this.BatchContext, this.Id, null, this.AdditionalBehaviors) { TargetDedicated = this.TargetDedicated, ResizeTimeout = this.ResizeTimeout, - DeallocationOption = this.DeallocationOption + ComputeNodeDeallocationOption = this.ComputeNodeDeallocationOption }; BatchClient.ResizePool(parameters); diff --git a/src/ResourceManager/Batch/Commands.Batch/Pools/StopBatchPoolResizeCommand.cs b/src/ResourceManager/Batch/Commands.Batch/Pools/StopBatchPoolResizeCommand.cs index 029cf435b1c3..fce95ea0841a 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Pools/StopBatchPoolResizeCommand.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Pools/StopBatchPoolResizeCommand.cs @@ -13,19 +13,20 @@ // ---------------------------------------------------------------------------------- using System.Management.Automation; +using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants; namespace Microsoft.Azure.Commands.Batch { - [Cmdlet(VerbsLifecycle.Stop, "AzureBatchPoolResize")] + [Cmdlet(VerbsLifecycle.Stop, Constants.AzureBatchPoolResize)] public class StopBatchPoolResizeCommand : BatchObjectModelCmdletBase { - [Parameter(Position = 0, Mandatory = true, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the pool.")] + [Parameter(Position = 0, Mandatory = true, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The id of the pool.")] [ValidateNotNullOrEmpty] - public string Name { get; set; } + public string Id { get; set; } public override void ExecuteCmdlet() { - BatchClient.StopResizePool(this.BatchContext, this.Name, this.AdditionalBehaviors); + BatchClient.StopResizePool(this.BatchContext, this.Id, this.AdditionalBehaviors); } } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Properties/Resources.Designer.cs b/src/ResourceManager/Batch/Commands.Batch/Properties/Resources.Designer.cs index 27f5c098b54d..e299b1deef06 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Properties/Resources.Designer.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Properties/Resources.Designer.cs @@ -78,15 +78,6 @@ internal static string BeginMAMLCall { } } - /// - /// Looks up a localized string similar to Downloading {0} file {1} to: {2}. - /// - internal static string Downloading { - get { - return ResourceManager.GetString("Downloading", resourceCulture); - } - } - /// /// Looks up a localized string similar to End {0} call to RP. /// @@ -124,200 +115,236 @@ internal static string GBAK_GettingKeys { } /// - /// Looks up a localized string similar to Getting job "{0}" from workitem "{1}". + /// Looks up a localized string similar to Getting compute node "{0}" from pool "{1}".. /// - internal static string GBJ_GetByName { + internal static string GBCN_GetById { get { - return ResourceManager.GetString("GBJ_GetByName", resourceCulture); + return ResourceManager.GetString("GBCN_GetById", resourceCulture); } } /// - /// Looks up a localized string similar to Getting jobs matching the specified OData filter from workitem "{0}". . + /// Looks up a localized string similar to Getting compute nodes matching the specified OData filter from pool "{0}".. /// - internal static string GBJ_GetByOData { + internal static string GBCN_GetByOData { get { - return ResourceManager.GetString("GBJ_GetByOData", resourceCulture); + return ResourceManager.GetString("GBCN_GetByOData", resourceCulture); } } /// - /// Looks up a localized string similar to Getting all jobs from workitem "{0}". . + /// Looks up a localized string similar to Getting all compute nodes under pool "{0}".. /// - internal static string GBJ_GetNoFilter { + internal static string GBCN_NoFilter { get { - return ResourceManager.GetString("GBJ_GetNoFilter", resourceCulture); + return ResourceManager.GetString("GBCN_NoFilter", resourceCulture); } } /// - /// Looks up a localized string similar to Getting pool "{0}". + /// Looks up a localized string similar to Getting node file "{0}" from compute node "{1}". /// - internal static string GBP_GetByName { + internal static string GBCNF_GetByName { get { - return ResourceManager.GetString("GBP_GetByName", resourceCulture); + return ResourceManager.GetString("GBCNF_GetByName", resourceCulture); } } /// - /// Looks up a localized string similar to Getting pools matching the specified OData filter. . + /// Looks up a localized string similar to Getting node files matching the specified OData filter from compute node "{0}".. /// - internal static string GBP_GetByOData { + internal static string GBCNF_GetByOData { get { - return ResourceManager.GetString("GBP_GetByOData", resourceCulture); + return ResourceManager.GetString("GBCNF_GetByOData", resourceCulture); } } /// - /// Looks up a localized string similar to Getting all pools associated with the Batch account. . + /// Looks up a localized string similar to Getting all node files from compute node "{0}".. /// - internal static string GBP_NoFilter { + internal static string GBCNF_NoFilter { get { - return ResourceManager.GetString("GBP_NoFilter", resourceCulture); + return ResourceManager.GetString("GBCNF_NoFilter", resourceCulture); } } /// - /// Looks up a localized string similar to Getting task "{0}" from job "{1}" under workitem "{2}". + /// Looks up a localized string similar to Getting job "{0}". /// - internal static string GBT_GetByName { + internal static string GBJ_GetById { get { - return ResourceManager.GetString("GBT_GetByName", resourceCulture); + return ResourceManager.GetString("GBJ_GetById", resourceCulture); } } /// - /// Looks up a localized string similar to Getting tasks matching the specified OData filter from job "{0}".. + /// Looks up a localized string similar to Getting all jobs from job schedule "{0}".. /// - internal static string GBT_GetByOData { + internal static string GBJ_GetByJobScheduleNoFilter { get { - return ResourceManager.GetString("GBT_GetByOData", resourceCulture); + return ResourceManager.GetString("GBJ_GetByJobScheduleNoFilter", resourceCulture); } } /// - /// Looks up a localized string similar to Getting all tasks from job "{0}".. + /// Looks up a localized string similar to Getting jobs matching the specified OData filter.. /// - internal static string GBT_GetNoFilter { + internal static string GBJ_GetByOData { get { - return ResourceManager.GetString("GBT_GetNoFilter", resourceCulture); + return ResourceManager.GetString("GBJ_GetByOData", resourceCulture); } } /// - /// Looks up a localized string similar to Getting task file "{0}" from task "{1}". + /// Looks up a localized string similar to Getting jobs matching the specified OData filter from job schedule "{0}".. /// - internal static string GBTF_GetByName { + internal static string GBJ_GetByODataAndJobSChedule { get { - return ResourceManager.GetString("GBTF_GetByName", resourceCulture); + return ResourceManager.GetString("GBJ_GetByODataAndJobSChedule", resourceCulture); } } /// - /// Looks up a localized string similar to Getting task files matching the specified OData filter from task "{0}".. + /// Looks up a localized string similar to Getting all jobs associated with the Batch account.. /// - internal static string GBTF_GetByOData { + internal static string GBJ_GetNoFilter { get { - return ResourceManager.GetString("GBTF_GetByOData", resourceCulture); + return ResourceManager.GetString("GBJ_GetNoFilter", resourceCulture); } } /// - /// Looks up a localized string similar to Getting all task files under task "{0}".. + /// Looks up a localized string similar to Getting job schedule "{0}". /// - internal static string GBTF_NoFilter { + internal static string GBJS_GetById { get { - return ResourceManager.GetString("GBTF_NoFilter", resourceCulture); + return ResourceManager.GetString("GBJS_GetById", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Getting job schedules matching the specified OData filter. . + /// + internal static string GBJS_GetByOData { + get { + return ResourceManager.GetString("GBJS_GetByOData", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Getting all job schedules associated with the Batch account. . + /// + internal static string GBJS_NoFilter { + get { + return ResourceManager.GetString("GBJS_NoFilter", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Downloading node file {0} to: {1}. + /// + internal static string GBNFC_Downloading { + get { + return ResourceManager.GetString("GBNFC_Downloading", resourceCulture); } } /// - /// Looks up a localized string similar to Getting vm "{0}" from pool "{1}".. + /// Looks up a localized string similar to Getting pool "{0}". /// - internal static string GBVM_GetByName { + internal static string GBP_GetById { get { - return ResourceManager.GetString("GBVM_GetByName", resourceCulture); + return ResourceManager.GetString("GBP_GetById", resourceCulture); } } /// - /// Looks up a localized string similar to Getting vms matching the specified OData filter from pool "{0}".. + /// Looks up a localized string similar to Getting pools matching the specified OData filter. . /// - internal static string GBVM_GetByOData { + internal static string GBP_GetByOData { get { - return ResourceManager.GetString("GBVM_GetByOData", resourceCulture); + return ResourceManager.GetString("GBP_GetByOData", resourceCulture); } } /// - /// Looks up a localized string similar to Getting all vms under pool "{0}".. + /// Looks up a localized string similar to Getting all pools associated with the Batch account. . /// - internal static string GBVM_NoFilter { + internal static string GBP_NoFilter { get { - return ResourceManager.GetString("GBVM_NoFilter", resourceCulture); + return ResourceManager.GetString("GBP_NoFilter", resourceCulture); } } /// - /// Looks up a localized string similar to Getting vm file "{0}" from vm "{1}". + /// Looks up a localized string similar to Downloading Remote Desktop Protocol file for compute node {0} to: {1}. /// - internal static string GBVMF_GetByName { + internal static string GBRDP_Downloading { get { - return ResourceManager.GetString("GBVMF_GetByName", resourceCulture); + return ResourceManager.GetString("GBRDP_Downloading", resourceCulture); } } /// - /// Looks up a localized string similar to Getting vm files matching the specified OData filter from vm "{0}".. + /// Looks up a localized string similar to Getting task "{0}" from job "{1}". /// - internal static string GBVMF_GetByOData { + internal static string GBT_GetById { get { - return ResourceManager.GetString("GBVMF_GetByOData", resourceCulture); + return ResourceManager.GetString("GBT_GetById", resourceCulture); } } /// - /// Looks up a localized string similar to Getting all vm files from vm "{0}".. + /// Looks up a localized string similar to Getting tasks matching the specified OData filter from job "{0}".. + /// + internal static string GBT_GetByOData { + get { + return ResourceManager.GetString("GBT_GetByOData", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Getting all tasks from job "{0}".. /// - internal static string GBVMF_NoFilter { + internal static string GBT_GetNoFilter { get { - return ResourceManager.GetString("GBVMF_NoFilter", resourceCulture); + return ResourceManager.GetString("GBT_GetNoFilter", resourceCulture); } } /// - /// Looks up a localized string similar to Getting workitem "{0}". + /// Looks up a localized string similar to Getting node file "{0}" from task "{1}". /// - internal static string GBWI_GetByName { + internal static string GBTF_GetByName { get { - return ResourceManager.GetString("GBWI_GetByName", resourceCulture); + return ResourceManager.GetString("GBTF_GetByName", resourceCulture); } } /// - /// Looks up a localized string similar to Getting workitems matching the specified OData filter. . + /// Looks up a localized string similar to Getting node files matching the specified OData filter from task "{0}".. /// - internal static string GBWI_GetByOData { + internal static string GBTF_GetByOData { get { - return ResourceManager.GetString("GBWI_GetByOData", resourceCulture); + return ResourceManager.GetString("GBTF_GetByOData", resourceCulture); } } /// - /// Looks up a localized string similar to Getting all workitems associated with the Batch account. . + /// Looks up a localized string similar to Getting all node files under task "{0}".. /// - internal static string GBWI_NoFilter { + internal static string GBTF_NoFilter { get { - return ResourceManager.GetString("GBWI_NoFilter", resourceCulture); + return ResourceManager.GetString("GBTF_NoFilter", resourceCulture); } } /// - /// Looks up a localized string similar to No vm was specified. Supply a PSVM object or a pool name and vm name for the RDP file to point to.. + /// Looks up a localized string similar to No compute node was specified. Supply a PSComputeNode object or a pool id and compute node id for the Remote Desktop Protocol file to point to.. /// - internal static string GRDP_NoVM { + internal static string GRDP_NoComputeNode { get { - return ResourceManager.GetString("GRDP_NoVM", resourceCulture); + return ResourceManager.GetString("GRDP_NoComputeNode", resourceCulture); } } @@ -411,6 +438,24 @@ internal static string NBA_NameAvailability { } } + /// + /// Looks up a localized string similar to Creating job {0}. + /// + internal static string NBJ_CreatingJob { + get { + return ResourceManager.GetString("NBJ_CreatingJob", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Creating job schedule {0}. + /// + internal static string NBJS_CreatingJobSchedule { + get { + return ResourceManager.GetString("NBJS_CreatingJobSchedule", resourceCulture); + } + } + /// /// Looks up a localized string similar to Creating pool {0}. /// @@ -430,7 +475,7 @@ internal static string NBT_CreatingTask { } /// - /// Looks up a localized string similar to Creating user {0} on vm {1}. + /// Looks up a localized string similar to Creating user {0} on compute node {1}. /// internal static string NBU_CreatingUser { get { @@ -439,92 +484,83 @@ internal static string NBU_CreatingUser { } /// - /// Looks up a localized string similar to Creating workitem {0}. + /// Looks up a localized string similar to No compute node was specified. Supply a PSComputeNode object or a pool id and compute node id.. /// - internal static string NBWI_CreatingWorkItem { + internal static string NoComputeNode { get { - return ResourceManager.GetString("NBWI_CreatingWorkItem", resourceCulture); + return ResourceManager.GetString("NoComputeNode", resourceCulture); } } /// - /// Looks up a localized string similar to No destination was provided for the downloaded file. Either provide a file path or a Stream object.. + /// Looks up a localized string similar to No compute node user specified. Supply a pool id, compute node id, and compute node user name.. /// - internal static string NoDownloadDestination { + internal static string NoComputeNodeUser { get { - return ResourceManager.GetString("NoDownloadDestination", resourceCulture); + return ResourceManager.GetString("NoComputeNodeUser", resourceCulture); } } /// - /// Looks up a localized string similar to No job was specified. Supply a PSCloudJob object or a workitem name and job name.. - /// - internal static string NoJob { - get { - return ResourceManager.GetString("NoJob", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to No pool was specified. Supply a PSCloudPool object or a pool name.. + /// Looks up a localized string similar to No destination was provided for the downloaded file. Either provide a file path or a Stream object.. /// - internal static string NoPool { + internal static string NoDownloadDestination { get { - return ResourceManager.GetString("NoPool", resourceCulture); + return ResourceManager.GetString("NoDownloadDestination", resourceCulture); } } /// - /// Looks up a localized string similar to No task was specified. Supply a PSCloudTask object or a workitem name, job name, and task name.. + /// Looks up a localized string similar to No job was specified. Supply a PSCloudJob object or a job id.. /// - internal static string NoTask { + internal static string NoJob { get { - return ResourceManager.GetString("NoTask", resourceCulture); + return ResourceManager.GetString("NoJob", resourceCulture); } } /// - /// Looks up a localized string similar to No task file was specified. Supply a PSTaskFile object or a workitem name, job name, task name, and task file name.. + /// Looks up a localized string similar to No job schedule was specified. Supply a job schedule id or PSCloudJobSchedule object.. /// - internal static string NoTaskFile { + internal static string NoJobSchedule { get { - return ResourceManager.GetString("NoTaskFile", resourceCulture); + return ResourceManager.GetString("NoJobSchedule", resourceCulture); } } /// - /// Looks up a localized string similar to No vm was specified. Supply a PSVM object or a pool name and vm name.. + /// Looks up a localized string similar to No node file was specified. Supply a PSNodeFile object or a node file name along with either a parent job id and task id, or a parent pool id and compute node id.. /// - internal static string NoVM { + internal static string NoNodeFile { get { - return ResourceManager.GetString("NoVM", resourceCulture); + return ResourceManager.GetString("NoNodeFile", resourceCulture); } } /// - /// Looks up a localized string similar to No vm file was specified. Supply a PSVMFile object or a pool name, vm name, and vm file name.. + /// Looks up a localized string similar to No node file parent information was specified. To specify a parent task, supply a PSCloudTask object or a job id and a task id. To specify a parent compute node, supply a PSComputeNode object or a pool id and a compute node id.. /// - internal static string NoVMFile { + internal static string NoNodeFileParent { get { - return ResourceManager.GetString("NoVMFile", resourceCulture); + return ResourceManager.GetString("NoNodeFileParent", resourceCulture); } } /// - /// Looks up a localized string similar to No vm user specified. Supply a pool name, vm name, and user name.. + /// Looks up a localized string similar to No pool was specified. Supply a PSCloudPool object or a pool id.. /// - internal static string NoVMUser { + internal static string NoPool { get { - return ResourceManager.GetString("NoVMUser", resourceCulture); + return ResourceManager.GetString("NoPool", resourceCulture); } } /// - /// Looks up a localized string similar to No workitem was specified. Supply a workitem name or PSCloudWorkItem object.. + /// Looks up a localized string similar to No task was specified. Supply a PSCloudTask object or a job id and task id.. /// - internal static string NoWorkItem { + internal static string NoTask { get { - return ResourceManager.GetString("NoWorkItem", resourceCulture); + return ResourceManager.GetString("NoTask", resourceCulture); } } @@ -564,6 +600,24 @@ internal static string RBJ_RemoveJob { } } + /// + /// Looks up a localized string similar to Are you sure you want to remove job schedule {0}?. + /// + internal static string RBJS_RemoveConfirm { + get { + return ResourceManager.GetString("RBJS_RemoveConfirm", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing job schedule .... + /// + internal static string RBJS_RemoveJobSchedule { + get { + return ResourceManager.GetString("RBJS_RemoveJobSchedule", resourceCulture); + } + } + /// /// Looks up a localized string similar to Are you sure you want to remove pool {0}?. /// @@ -618,24 +672,6 @@ internal static string RBU_RemoveUser { } } - /// - /// Looks up a localized string similar to Are you sure you want to remove workitem {0}?. - /// - internal static string RBWI_RemoveConfirm { - get { - return ResourceManager.GetString("RBWI_RemoveConfirm", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Removing workitem .... - /// - internal static string RBWI_RemoveWorkItem { - get { - return ResourceManager.GetString("RBWI_RemoveWorkItem", resourceCulture); - } - } - /// /// Looks up a localized string similar to Looking up resource group for account {0}. /// diff --git a/src/ResourceManager/Batch/Commands.Batch/Properties/Resources.resx b/src/ResourceManager/Batch/Commands.Batch/Properties/Resources.resx index b6256668afbb..4c42d4837470 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Properties/Resources.resx +++ b/src/ResourceManager/Batch/Commands.Batch/Properties/Resources.resx @@ -123,9 +123,6 @@ Begin {0} call to RP - - Downloading {0} file {1} to: {2} - End {0} call to RP @@ -138,16 +135,52 @@ Getting accounts in resource group {0} - - Getting job "{0}" from workitem "{1}" + + Getting node file "{0}" from compute node "{1}" + + + Getting node files matching the specified OData filter from compute node "{0}". + + + Getting all node files from compute node "{0}". + + + Getting compute node "{0}" from pool "{1}". + + + Getting compute nodes matching the specified OData filter from pool "{0}". + + + Getting all compute nodes under pool "{0}". + + + Getting job schedule "{0}" + + + Getting job schedules matching the specified OData filter. + + + Getting all job schedules associated with the Batch account. + + + Getting job "{0}" + + + Getting all jobs from job schedule "{0}". - Getting jobs matching the specified OData filter from workitem "{0}". + Getting jobs matching the specified OData filter. + + + Getting jobs matching the specified OData filter from job schedule "{0}". - Getting all jobs from workitem "{0}". + Getting all jobs associated with the Batch account. - + + Downloading node file {0} to: {1} + + Getting pool "{0}" @@ -156,17 +189,20 @@ Getting all pools associated with the Batch account. + + Downloading Remote Desktop Protocol file for compute node {0} to: {1} + - Getting task file "{0}" from task "{1}" + Getting node file "{0}" from task "{1}" - Getting task files matching the specified OData filter from task "{0}". + Getting node files matching the specified OData filter from task "{0}". - Getting all task files under task "{0}". + Getting all node files under task "{0}". - - Getting task "{0}" from job "{1}" under workitem "{2}" + + Getting task "{0}" from job "{1}" Getting tasks matching the specified OData filter from job "{0}". @@ -174,35 +210,8 @@ Getting all tasks from job "{0}". - - Getting vm file "{0}" from vm "{1}" - - - Getting vm files matching the specified OData filter from vm "{0}". - - - Getting all vm files from vm "{0}". - - - Getting vm "{0}" from pool "{1}". - - - Getting vms matching the specified OData filter from pool "{0}". - - - Getting all vms under pool "{0}". - - - Getting workitem "{0}" - - - Getting workitems matching the specified OData filter. - - - Getting all workitems associated with the Batch account. - - - No vm was specified. Supply a PSVM object or a pool name and vm name for the RDP file to point to. + + No compute node was specified. Supply a PSComputeNode object or a pool id and compute node id for the Remote Desktop Protocol file to point to. The endpoint is not recognized as valid: {0} @@ -234,6 +243,12 @@ Performing name availability check for account {0} + + Creating job schedule {0} + + + Creating job {0} + Creating pool {0} @@ -241,37 +256,34 @@ Creating task {0} - Creating user {0} on vm {1} + Creating user {0} on compute node {1} - - Creating workitem {0} + + No compute node was specified. Supply a PSComputeNode object or a pool id and compute node id. + + + No compute node user specified. Supply a pool id, compute node id, and compute node user name. No destination was provided for the downloaded file. Either provide a file path or a Stream object. - No job was specified. Supply a PSCloudJob object or a workitem name and job name. - - - No pool was specified. Supply a PSCloudPool object or a pool name. - - - No task was specified. Supply a PSCloudTask object or a workitem name, job name, and task name. + No job was specified. Supply a PSCloudJob object or a job id. - - No task file was specified. Supply a PSTaskFile object or a workitem name, job name, task name, and task file name. + + No job schedule was specified. Supply a job schedule id or PSCloudJobSchedule object. - - No vm was specified. Supply a PSVM object or a pool name and vm name. + + No node file was specified. Supply a PSNodeFile object or a node file name along with either a parent job id and task id, or a parent pool id and compute node id. - - No vm file was specified. Supply a PSVMFile object or a pool name, vm name, and vm file name. + + No node file parent information was specified. To specify a parent task, supply a PSCloudTask object or a job id and a task id. To specify a parent compute node, supply a PSComputeNode object or a pool id and a compute node id. - - No vm user specified. Supply a pool name, vm name, and user name. + + No pool was specified. Supply a PSCloudPool object or a pool id. - - No workitem was specified. Supply a workitem name or PSCloudWorkItem object. + + No task was specified. Supply a PSCloudTask object or a job id and task id. Are you sure you want to remove batch account {0}? @@ -279,6 +291,12 @@ Removing batch account ... + + Are you sure you want to remove job schedule {0}? + + + Removing job schedule ... + Are you sure you want to remove job {0}? @@ -303,12 +321,6 @@ Removing user ... - - Are you sure you want to remove workitem {0}? - - - Removing workitem ... - Looking up resource group for account {0} diff --git a/src/ResourceManager/Batch/Commands.Batch/Tasks/GetBatchTaskCommand.cs b/src/ResourceManager/Batch/Commands.Batch/Tasks/GetBatchTaskCommand.cs index 6f8fb2769c11..4ca3c609fea8 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Tasks/GetBatchTaskCommand.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Tasks/GetBatchTaskCommand.cs @@ -20,35 +20,30 @@ namespace Microsoft.Azure.Commands.Batch { - [Cmdlet(VerbsCommon.Get, "AzureBatchTask", DefaultParameterSetName = Constants.ODataFilterParameterSet), OutputType(typeof(PSCloudTask))] + [Cmdlet(VerbsCommon.Get, Constants.AzureBatchTask, DefaultParameterSetName = Constants.ODataFilterParameterSet), OutputType(typeof(PSCloudTask))] public class GetBatchTaskCommand : BatchObjectModelCmdletBase { private int maxCount = Constants.DefaultMaxCount; - [Parameter(Position = 0, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the workitem which contains the tasks.")] + [Parameter(Position = 0, ParameterSetName = Constants.IdParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The id of the job which contains the tasks.")] [Parameter(Position = 0, ParameterSetName = Constants.ODataFilterParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] [ValidateNotNullOrEmpty] - public string WorkItemName { get; set; } + public string JobId { get; set; } - [Parameter(Position = 1, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the job which contains the tasks.")] - [Parameter(Position = 1, ParameterSetName = Constants.ODataFilterParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)] + [Parameter(Position = 1, ParameterSetName = Constants.IdParameterSet)] [ValidateNotNullOrEmpty] - public string JobName { get; set; } + public string Id { get; set; } - [Parameter(Position = 2, ParameterSetName = Constants.NameParameterSet, HelpMessage = "The name of the task to retrieve.")] - [ValidateNotNullOrEmpty] - public string Name { get; set; } - - [Parameter(Position = 0, ParameterSetName = Constants.ParentObjectParameterSet, ValueFromPipeline = true, HelpMessage = "The PSCloudJob object representing the job containing the tasks.")] + [Parameter(Position = 0, ParameterSetName = Constants.ParentObjectParameterSet, ValueFromPipeline = true)] [ValidateNotNullOrEmpty] public PSCloudJob Job { get; set; } - [Parameter(ParameterSetName = Constants.ODataFilterParameterSet, HelpMessage = "The OData filter clause to use when querying for tasks.")] + [Parameter(ParameterSetName = Constants.ODataFilterParameterSet)] [Parameter(ParameterSetName = Constants.ParentObjectParameterSet)] [ValidateNotNullOrEmpty] public string Filter { get; set; } - [Parameter(ParameterSetName = Constants.ODataFilterParameterSet, HelpMessage = "The maximum number of tasks to return.")] + [Parameter(ParameterSetName = Constants.ODataFilterParameterSet)] [Parameter(ParameterSetName = Constants.ParentObjectParameterSet)] public int MaxCount { @@ -58,10 +53,10 @@ public int MaxCount public override void ExecuteCmdlet() { - ListTaskOptions options = new ListTaskOptions(this.BatchContext, this.WorkItemName, this.JobName, + ListTaskOptions options = new ListTaskOptions(this.BatchContext, this.JobId, this.Job, this.AdditionalBehaviors) { - TaskName = this.Name, + TaskId = this.Id, Filter = this.Filter, MaxCount = this.MaxCount }; diff --git a/src/ResourceManager/Batch/Commands.Batch/Tasks/NewBatchTaskCommand.cs b/src/ResourceManager/Batch/Commands.Batch/Tasks/NewBatchTaskCommand.cs index 39b34cd07b1a..eb16280be27e 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Tasks/NewBatchTaskCommand.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Tasks/NewBatchTaskCommand.cs @@ -21,59 +21,60 @@ namespace Microsoft.Azure.Commands.Batch { - [Cmdlet(VerbsCommon.New, "AzureBatchTask")] + [Cmdlet(VerbsCommon.New, Constants.AzureBatchTask)] public class NewBatchTaskCommand : BatchObjectModelCmdletBase { - [Parameter(ParameterSetName = Constants.NameParameterSet, Mandatory = true, HelpMessage = "The name of the workitem to create the task under.")] + [Parameter(ParameterSetName = Constants.IdParameterSet, Mandatory = true, HelpMessage = "The id of the job to create the task under.")] [ValidateNotNullOrEmpty] - public string WorkItemName { get; set; } + public string JobId { get; set; } - [Parameter(ParameterSetName = Constants.NameParameterSet, Mandatory = true, HelpMessage = "The name of the job to create the task under.")] + [Parameter(ParameterSetName = Constants.ParentObjectParameterSet, ValueFromPipeline = true)] [ValidateNotNullOrEmpty] - public string JobName { get; set; } + public PSCloudJob Job { get; set; } - [Parameter(ParameterSetName = Constants.ParentObjectParameterSet, ValueFromPipeline = true, HelpMessage = "The PSCloudJob object representing the job to create the task under.")] + [Parameter(Mandatory = true, HelpMessage = "The id of the task to create.")] [ValidateNotNullOrEmpty] - public PSCloudJob Job { get; set; } + public string Id { get; set; } - [Parameter(Mandatory = true, HelpMessage = "The name of the task to create.")] + [Parameter] [ValidateNotNullOrEmpty] - public string Name { get; set; } + public string DisplayName { get; set; } - [Parameter(HelpMessage = "The commandline for the task.")] + [Parameter(Mandatory = true, HelpMessage = "The command line for the task.")] [ValidateNotNullOrEmpty] public string CommandLine { get; set; } - [Parameter(HelpMessage = "Resource files required by the task.")] + [Parameter] [ValidateNotNullOrEmpty] public IDictionary ResourceFiles { get; set; } - [Parameter(HelpMessage = "Environment settings to add to the new task.")] + [Parameter] [ValidateNotNullOrEmpty] public IDictionary EnvironmentSettings { get; set; } - [Parameter(HelpMessage = "Run the process under elevation as Administrator.")] + [Parameter] public SwitchParameter RunElevated { get; set; } - [Parameter(HelpMessage = "The locality hints for the task.")] + [Parameter] [ValidateNotNullOrEmpty] public PSAffinityInformation AffinityInformation { get; set; } - [Parameter(HelpMessage = "The execution constraints for the task.")] + [Parameter] [ValidateNotNullOrEmpty] - public PSTaskConstraints TaskConstraints { get; set; } + public PSTaskConstraints Constraints { get; set; } public override void ExecuteCmdlet() { - NewTaskParameters parameters = new NewTaskParameters(this.BatchContext, this.WorkItemName, this.JobName, this.Job, - this.Name, this.AdditionalBehaviors) + NewTaskParameters parameters = new NewTaskParameters(this.BatchContext, this.JobId, this.Job, + this.Id, this.AdditionalBehaviors) { + DisplayName = this.DisplayName, CommandLine = this.CommandLine, ResourceFiles = this.ResourceFiles, EnvironmentSettings = this.EnvironmentSettings, RunElevated = this.RunElevated.IsPresent, AffinityInformation = this.AffinityInformation, - TaskConstraints = this.TaskConstraints + Constraints = this.Constraints }; BatchClient.CreateTask(parameters); diff --git a/src/ResourceManager/Batch/Commands.Batch/Tasks/RemoveBatchTaskCommand.cs b/src/ResourceManager/Batch/Commands.Batch/Tasks/RemoveBatchTaskCommand.cs index fdeeda1c7342..4643a8a522c4 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Tasks/RemoveBatchTaskCommand.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Tasks/RemoveBatchTaskCommand.cs @@ -21,39 +21,35 @@ namespace Microsoft.Azure.Commands.Batch { - [Cmdlet(VerbsCommon.Remove, "AzureBatchTask")] + [Cmdlet(VerbsCommon.Remove, Constants.AzureBatchTask)] public class RemoveBatchTaskCommand : BatchObjectModelCmdletBase { - [Parameter(Position = 0, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the workitem containing the task to delete.")] + [Parameter(Position = 0, ParameterSetName = Constants.IdParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The id of the job containing the task to delete.")] [ValidateNotNullOrEmpty] - public string WorkItemName { get; set; } + public string JobId { get; set; } - [Parameter(Position = 1, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the job containing the task to delete.")] + [Parameter(Position = 1, ParameterSetName = Constants.IdParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The id of the task to delete.")] [ValidateNotNullOrEmpty] - public string JobName { get; set; } - - [Parameter(Position = 2, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the task to delete.")] - [ValidateNotNullOrEmpty] - public string Name { get; set; } + public string Id { get; set; } [Parameter(Position = 0, ParameterSetName = Constants.InputObjectParameterSet, Mandatory = true, ValueFromPipeline = true, HelpMessage = "The PSCloudTask object representing the task to delete.")] [ValidateNotNullOrEmpty] public PSCloudTask InputObject { get; set; } - [Parameter(HelpMessage = "Do not ask for confirmation.")] + [Parameter] public SwitchParameter Force { get; set; } public override void ExecuteCmdlet() { - string taskName = InputObject == null ? this.Name : InputObject.Name; - TaskOperationParameters parameters = new TaskOperationParameters(this.BatchContext, this.WorkItemName, this.JobName, - this.Name, this.InputObject, this.AdditionalBehaviors); + string taskId = InputObject == null ? this.Id : InputObject.Id; + TaskOperationParameters parameters = new TaskOperationParameters(this.BatchContext, this.JobId, + this.Id, this.InputObject, this.AdditionalBehaviors); ConfirmAction( Force.IsPresent, - string.Format(Resources.RBT_RemoveConfirm, taskName), + string.Format(Resources.RBT_RemoveConfirm, taskId), Resources.RBT_RemoveTask, - taskName, + taskId, () => BatchClient.DeleteTask(parameters)); } } diff --git a/src/ResourceManager/Batch/Commands.Batch/Utils/Constants.cs b/src/ResourceManager/Batch/Commands.Batch/Utils/Constants.cs index f0fb3b6bea79..f94b9fc81aca 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Utils/Constants.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Utils/Constants.cs @@ -18,12 +18,23 @@ public class Constants { public const int DefaultMaxCount = 1000; - public const string NameParameterSet = "Name"; + // Cmdlet nouns + public const string AzureBatchPool = "AzureBatchPool"; + public const string AzureBatchPoolResize = "AzureBatchPoolResize"; + public const string AzureBatchComputeNode = "AzureBatchComputeNode"; + public const string AzureBatchComputeNodeUser = "AzureBatchComputeNodeUser"; + public const string AzureBatchJobSchedule = "AzureBatchJobSchedule"; + public const string AzureBatchJob = "AzureBatchJob"; + public const string AzureBatchTask = "AzureBatchTask"; + public const string AzureBatchNodeFile = "AzureBatchNodeFile"; + public const string AzureBatchNodeFileContent = "AzureBatchNodeFileContent"; + public const string AzureBatchRemoteDesktopProtocolFile = "AzureBatchRemoteDesktopProtocolFile"; + + // Parameter sets + public const string IdParameterSet = "Id"; public const string ODataFilterParameterSet = "ODataFilter"; public const string InputObjectParameterSet = "InputObject"; public const string ParentObjectParameterSet = "ParentObject"; - public const string NameAndPathParameterSet = "Name_Path"; - public const string NameAndStreamParameterSet = "Name_Stream"; public const string InputObjectAndPathParameterSet = "InputObject_Path"; public const string InputObjectAndStreamParameterSet = "InputObject_Stream"; } diff --git a/src/ResourceManager/Batch/Commands.Batch/Utils/Utils.cs b/src/ResourceManager/Batch/Commands.Batch/Utils/Utils.cs index a2902bae0cea..e07ac3bcdf11 100644 --- a/src/ResourceManager/Batch/Commands.Batch/Utils/Utils.cs +++ b/src/ResourceManager/Batch/Commands.Batch/Utils/Utils.cs @@ -14,7 +14,7 @@ using System; using System.Collections.Generic; -using System.Runtime.ConstrainedExecution; +using System.Linq; using Microsoft.Azure.Batch; using Microsoft.Azure.Commands.Batch.Models; @@ -32,46 +32,121 @@ internal static void JobSpecificationSyncCollections(PSJobSpecification specific { if (specification != null) { - if (specification.JobManager != null) + specification.omObject.CommonEnvironmentSettings = CreateSyncedList(specification.CommonEnvironmentSettings, + (e) => { - JobManagerSyncCollections(specification.JobManager); + EnvironmentSetting envSetting = new EnvironmentSetting(e.Name, e.Value); + return envSetting; + }); + + if (specification.JobManagerTask != null) + { + JobManagerTaskSyncCollections(specification.JobManagerTask); + } + + if (specification.JobPreparationTask != null) + { + JobPreparationTaskSyncCollections(specification.JobPreparationTask); + } + + if (specification.JobReleaseTask != null) + { + JobReleaseTaskSyncCollections(specification.JobReleaseTask); + } + + specification.omObject.Metadata = CreateSyncedList(specification.Metadata, + (m) => + { + MetadataItem metadata = new MetadataItem(m.Name, m.Value); + return metadata; + }); + + if (specification.PoolInformation != null) + { + PoolInformationSyncCollections(specification.PoolInformation); } } } /// - /// Syncs the collections on a PSJobManager with its wrapped OM object + /// Syncs the collections on a PSJobManagerTask with its wrapped OM object /// - internal static void JobManagerSyncCollections(PSJobManager jobManager) + internal static void JobManagerTaskSyncCollections(PSJobManagerTask jobManager) { if (jobManager != null) { jobManager.omObject.EnvironmentSettings = CreateSyncedList(jobManager.EnvironmentSettings, (e) => { - IEnvironmentSetting envSetting = new EnvironmentSetting(e.Name, e.Value); + EnvironmentSetting envSetting = new EnvironmentSetting(e.Name, e.Value); return envSetting; }); jobManager.omObject.ResourceFiles = CreateSyncedList(jobManager.ResourceFiles, (r) => { - IResourceFile resourceFile = new ResourceFile(r.BlobSource, r.FilePath); + ResourceFile resourceFile = new ResourceFile(r.BlobSource, r.FilePath); + return resourceFile; + }); + } + } + + /// + /// Syncs the collections on a PSJobPreparationTask with its wrapped OM object + /// + internal static void JobPreparationTaskSyncCollections(PSJobPreparationTask jobPrepTask) + { + if (jobPrepTask != null) + { + jobPrepTask.omObject.EnvironmentSettings = CreateSyncedList(jobPrepTask.EnvironmentSettings, + (e) => + { + EnvironmentSetting envSetting = new EnvironmentSetting(e.Name, e.Value); + return envSetting; + }); + + jobPrepTask.omObject.ResourceFiles = CreateSyncedList(jobPrepTask.ResourceFiles, + (r) => + { + ResourceFile resourceFile = new ResourceFile(r.BlobSource, r.FilePath); + return resourceFile; + }); + } + } + + /// + /// Syncs the collections on a PSJobReleaseTask with its wrapped OM object + /// + internal static void JobReleaseTaskSyncCollections(PSJobReleaseTask jobReleaseTask) + { + if (jobReleaseTask != null) + { + jobReleaseTask.omObject.EnvironmentSettings = CreateSyncedList(jobReleaseTask.EnvironmentSettings, + (e) => + { + EnvironmentSetting envSetting = new EnvironmentSetting(e.Name, e.Value); + return envSetting; + }); + + jobReleaseTask.omObject.ResourceFiles = CreateSyncedList(jobReleaseTask.ResourceFiles, + (r) => + { + ResourceFile resourceFile = new ResourceFile(r.BlobSource, r.FilePath); return resourceFile; }); } } /// - /// Syncs the collections on a PSJobManager with its wrapped OM object + /// Syncs the collections on a PSPoolInformation with its wrapped OM object /// - internal static void JobExecutionEnvironmentSyncCollections(PSJobExecutionEnvironment executionEnvironment) + internal static void PoolInformationSyncCollections(PSPoolInformation poolInfo) { - if (executionEnvironment != null) + if (poolInfo != null) { - if (executionEnvironment.AutoPoolSpecification != null) + if (poolInfo.AutoPoolSpecification != null) { - AutoPoolSpecificationSyncCollections(executionEnvironment.AutoPoolSpecification); + AutoPoolSpecificationSyncCollections(poolInfo.AutoPoolSpecification); } } } @@ -100,7 +175,7 @@ internal static void PoolSpecificationSyncCollections(PSPoolSpecification spec) spec.omObject.CertificateReferences = CreateSyncedList(spec.CertificateReferences, (c) => { - ICertificateReference certReference = new CertificateReference(); + CertificateReference certReference = new CertificateReference(); certReference.StoreLocation = c.StoreLocation; certReference.StoreName = c.StoreName; certReference.Thumbprint = c.Thumbprint; @@ -112,7 +187,7 @@ internal static void PoolSpecificationSyncCollections(PSPoolSpecification spec) spec.omObject.Metadata = CreateSyncedList(spec.Metadata, (m) => { - IMetadataItem metadata = new MetadataItem(m.Name, m.Value); + MetadataItem metadata = new MetadataItem(m.Name, m.Value); return metadata; }); @@ -133,14 +208,14 @@ internal static void StartTaskSyncCollections(PSStartTask startTask) startTask.omObject.EnvironmentSettings = CreateSyncedList(startTask.EnvironmentSettings, (e) => { - IEnvironmentSetting envSetting = new EnvironmentSetting(e.Name, e.Value); + EnvironmentSetting envSetting = new EnvironmentSetting(e.Name, e.Value); return envSetting; }); startTask.omObject.ResourceFiles = CreateSyncedList(startTask.ResourceFiles, (r) => { - IResourceFile resourceFile = new ResourceFile(r.BlobSource, r.FilePath); + ResourceFile resourceFile = new ResourceFile(r.BlobSource, r.FilePath); return resourceFile; }); } @@ -154,7 +229,7 @@ internal static void StartTaskSyncCollections(PSStartTask startTask) /// The list of PowerShell items /// The function to create a matching OM item /// A list of OM objects matching a list of PowerShell objects - private static IList CreateSyncedList(IList psList, Func mappingFunction) + private static IList CreateSyncedList(IEnumerable psList, Func mappingFunction) { if (psList == null) { diff --git a/src/ResourceManager/Batch/Commands.Batch/packages.config b/src/ResourceManager/Batch/Commands.Batch/packages.config index cf849be05771..0fc1e7e6fbc1 100644 --- a/src/ResourceManager/Batch/Commands.Batch/packages.config +++ b/src/ResourceManager/Batch/Commands.Batch/packages.config @@ -1,6 +1,6 @@  - + @@ -10,14 +10,14 @@ - - - + + + - - + + \ No newline at end of file diff --git a/src/ResourceManager/Compute/Commands.Compute/Commands.Compute.csproj b/src/ResourceManager/Compute/Commands.Compute/Commands.Compute.csproj index 076a768a6a8a..3c77972a2462 100644 --- a/src/ResourceManager/Compute/Commands.Compute/Commands.Compute.csproj +++ b/src/ResourceManager/Compute/Commands.Compute/Commands.Compute.csproj @@ -121,6 +121,9 @@ ..\..\..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll True + + ..\..\..\packages\Microsoft.WindowsAzure.Management.Storage.5.1.1\lib\net40\Microsoft.WindowsAzure.Management.Storage.dll + @@ -161,6 +164,9 @@ + + + diff --git a/src/ResourceManager/Compute/Commands.Compute/Common/ConstantStringTypes.cs b/src/ResourceManager/Compute/Commands.Compute/Common/ConstantStringTypes.cs index 74d022e5c868..a46ca676e876 100644 --- a/src/ResourceManager/Compute/Commands.Compute/Common/ConstantStringTypes.cs +++ b/src/ResourceManager/Compute/Commands.Compute/Common/ConstantStringTypes.cs @@ -70,6 +70,7 @@ public static class ProfileNouns public const string VirtualMachineExtension = "AzureVMExtension"; public const string VirtualMachineCustomScriptExtension = "AzureVMCustomScriptExtension"; public const string VirtualMachineAccessExtension = "AzureVMAccessExtension"; + public const string VirtualMachineDiagnosticsExtension = "AzureVMDiagnosticsExtension"; public const string VirtualMachineExtensionImage = "AzureVMExtensionImage"; public const string VirtualMachineExtensionImageVersion = "AzureVMExtensionImageVersion"; public const string VirtualMachineExtensionImageType = "AzureVMExtensionImageType"; diff --git a/src/ResourceManager/Compute/Commands.Compute/Extension/Diagnostics/GetAzureVMDiagnosticsExtension.cs b/src/ResourceManager/Compute/Commands.Compute/Extension/Diagnostics/GetAzureVMDiagnosticsExtension.cs new file mode 100644 index 000000000000..d0c221988dca --- /dev/null +++ b/src/ResourceManager/Compute/Commands.Compute/Extension/Diagnostics/GetAzureVMDiagnosticsExtension.cs @@ -0,0 +1,88 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System.Linq; +using System.Management.Automation; +using Microsoft.Azure.Commands.Compute.Common; +using Microsoft.Azure.Commands.Compute.Models; +using Microsoft.Azure.Management.Compute; +using Microsoft.Azure.Management.Compute.Models; + +namespace Microsoft.Azure.Commands.Compute +{ + [Cmdlet( + VerbsCommon.Get, + ProfileNouns.VirtualMachineDiagnosticsExtension), + OutputType( + typeof(PSVirtualMachineExtension))] + public class GetAzureVMDiagnosticsExtensionCommand : VirtualMachineExtensionBaseCmdlet + { + [Parameter( + Mandatory = true, + Position = 0, + ValueFromPipelineByPropertyName = true, + HelpMessage = "The resource group name.")] + [ValidateNotNullOrEmpty] + public string ResourceGroupName { get; set; } + + [Alias("ResourceName")] + [Parameter( + Mandatory = true, + Position = 1, + ValueFromPipelineByPropertyName = true, + HelpMessage = "The virtual machine name.")] + [ValidateNotNullOrEmpty] + public string VMName { get; set; } + + [Alias("ExtensionName")] + [Parameter( + Mandatory = true, + Position = 2, + ValueFromPipelineByPropertyName = true, + HelpMessage = "Extension Name.")] + [ValidateNotNullOrEmpty] + public string Name { get; set; } + + [Parameter( + Position = 3, + ValueFromPipelineByPropertyName = true, + HelpMessage = "To show the status.")] + [ValidateNotNullOrEmpty] + public SwitchParameter Status { get; set; } + + public override void ExecuteCmdlet() + { + base.ExecuteCmdlet(); + + ExecuteClientAction(() => + { + VirtualMachineExtensionGetResponse virtualMachineExtensionGetResponse = null; + if (Status.IsPresent) + { + virtualMachineExtensionGetResponse = + this.VirtualMachineExtensionClient.GetWithInstanceView(this.ResourceGroupName, + this.VMName, this.Name); + } + else + { + virtualMachineExtensionGetResponse = this.VirtualMachineExtensionClient.Get(this.ResourceGroupName, + this.VMName, this.Name); + } + + var returnedExtension = virtualMachineExtensionGetResponse.ToPSVirtualMachineExtension(this.ResourceGroupName); + WriteObject(returnedExtension); + }); + } + } +} \ No newline at end of file diff --git a/src/ResourceManager/Compute/Commands.Compute/Extension/Diagnostics/RemoveAzureVMDiagnosticsExtension.cs b/src/ResourceManager/Compute/Commands.Compute/Extension/Diagnostics/RemoveAzureVMDiagnosticsExtension.cs new file mode 100644 index 000000000000..16af517fb880 --- /dev/null +++ b/src/ResourceManager/Compute/Commands.Compute/Extension/Diagnostics/RemoveAzureVMDiagnosticsExtension.cs @@ -0,0 +1,66 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Management.Automation; +using Microsoft.Azure.Commands.Compute.Common; +using Microsoft.Azure.Management.Compute; +using Microsoft.WindowsAzure.Commands.ServiceManagement.Model; + +namespace Microsoft.Azure.Commands.Compute +{ + [Cmdlet( + VerbsCommon.Remove, + ProfileNouns.VirtualMachineDiagnosticsExtension)] + public class RemoveAzureVMDiagnosticsExtensionCommand : VirtualMachineExtensionBaseCmdlet + { + [Parameter( + Mandatory = true, + Position = 0, + ValueFromPipelineByPropertyName = true, + HelpMessage = "The resource group name.")] + [ValidateNotNullOrEmpty] + public string ResourceGroupName { get; set; } + + [Alias("ResourceName")] + [Parameter( + Mandatory = true, + Position = 1, + ValueFromPipelineByPropertyName = true, + HelpMessage = "The virtual machine name.")] + [ValidateNotNullOrEmpty] + public string VMName { get; set; } + + [Alias("ExtensionName")] + [Parameter( + Mandatory = true, + Position = 2, + ValueFromPipelineByPropertyName = true, + HelpMessage = "Extension Name.")] + [ValidateNotNullOrEmpty] + public string Name { get; set; } + + public override void ExecuteCmdlet() + { + base.ExecuteCmdlet(); + + ExecuteClientAction(() => + { + var op = this.VirtualMachineExtensionClient.Delete(this.ResourceGroupName, this.VMName, + this.Name); + WriteObject(op); + }); + } + } +} diff --git a/src/ResourceManager/Compute/Commands.Compute/Extension/Diagnostics/SetAzureVMDiagnosticsExtension.cs b/src/ResourceManager/Compute/Commands.Compute/Extension/Diagnostics/SetAzureVMDiagnosticsExtension.cs new file mode 100644 index 000000000000..9e6839b7fbcd --- /dev/null +++ b/src/ResourceManager/Compute/Commands.Compute/Extension/Diagnostics/SetAzureVMDiagnosticsExtension.cs @@ -0,0 +1,224 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Management.Automation; +using Microsoft.Azure.Commands.Compute.Common; +using Microsoft.Azure.Common.Authentication; +using Microsoft.Azure.Common.Authentication.Models; +using Microsoft.Azure.Management.Compute; +using Microsoft.Azure.Management.Compute.Models; +using Microsoft.WindowsAzure.Commands.Common.Storage; +using Microsoft.WindowsAzure.Commands.Utilities.Common; +using Microsoft.WindowsAzure.Management.Storage; +using Newtonsoft.Json; + +namespace Microsoft.Azure.Commands.Compute +{ + [Cmdlet( + VerbsCommon.Set, + ProfileNouns.VirtualMachineDiagnosticsExtension)] + public class SetAzureVMDiagnosticsExtensionCommand : VirtualMachineExtensionBaseCmdlet + { + private string publicConfiguration; + private string privateConfiguration; + private string storageKey; + private const string VirtualMachineExtension = "Microsoft.Compute/virtualMachines/extensions"; + private const string IaaSDiagnosticsExtension = "IaaSDiagnostics"; + private const string ExtensionPublisher = "Microsoft.Azure.Diagnostics"; + private StorageManagementClient storageClient; + + [Parameter( + Mandatory = true, + Position = 0, + ValueFromPipelineByPropertyName = true, + HelpMessage = "The resource group name.")] + [ValidateNotNullOrEmpty] + public string ResourceGroupName { get; set; } + + [Alias("ResourceName")] + [Parameter( + Mandatory = true, + Position = 1, + ValueFromPipelineByPropertyName = true, + HelpMessage = "The virtual machine name.")] + [ValidateNotNullOrEmpty] + public string VMName { get; set; } + + [Parameter( + Mandatory = true, + Position = 2, + ValueFromPipelineByPropertyName = false, + HelpMessage = "XML Diagnostics Configuration")] + [ValidateNotNullOrEmpty] + public string DiagnosticsConfigurationPath + { + get; + set; + } + + [Parameter( + Mandatory = true, + Position = 3, + ValueFromPipelineByPropertyName = true, + HelpMessage = "The storage connection context")] + [ValidateNotNullOrEmpty] + public AzureStorageContext StorageContext + { + get; + set; + } + + [Parameter( + Position = 4, + ValueFromPipelineByPropertyName = true, + HelpMessage = "The location.")] + [ValidateNotNullOrEmpty] + public string Location { get; set; } + + [Alias("ExtensionName")] + [Parameter( + Mandatory = true, + Position = 5, + ValueFromPipelineByPropertyName = true, + HelpMessage = "Extension Name.")] + [ValidateNotNullOrEmpty] + public string Name { get; set; } + + public string StorageAccountName + { + get + { + return this.StorageContext.StorageAccountName; + } + } + + public string Endpoint + { + get + { + return "https://" + this.StorageContext.EndPointSuffix; + } + } + + public string StorageKey + { + get + { + if (string.IsNullOrEmpty(this.storageKey)) + { + this.storageKey = GetStorageKey(); + } + + return this.storageKey; + } + } + + public string PublicConfiguration + { + get + { + if (string.IsNullOrEmpty(this.publicConfiguration)) + { + this.publicConfiguration = + DiagnosticsHelper.GetJsonSerializedPublicDiagnosticsConfigurationFromFile( + this.DiagnosticsConfigurationPath, this.StorageAccountName); + } + + return this.publicConfiguration; + } + } + + public string PrivateConfiguration + { + get + { + if (string.IsNullOrEmpty(this.privateConfiguration)) + { + this.privateConfiguration = DiagnosticsHelper.GetJsonSerializedPrivateDiagnosticsConfiguration(this.StorageAccountName, this.StorageKey, + this.Endpoint); + } + + return this.privateConfiguration; + } + } + + public StorageManagementClient StorageClient + { + get + { + if (this.storageClient == null) + { + this.storageClient = AzureSession.ClientFactory.CreateClient( + Profile.Context, AzureEnvironment.Endpoint.ServiceManagement); + } + + return this.storageClient; + } + } + + internal void ExecuteCommand() + { + base.ExecuteCmdlet(); + + ExecuteClientAction(() => + { + var parameters = new VirtualMachineExtension + { + Location = this.Location, + Name = this.Name, + Type = VirtualMachineExtension, + Settings = this.PublicConfiguration, + ProtectedSettings = this.PrivateConfiguration, + Publisher = ExtensionPublisher, + ExtensionType = IaaSDiagnosticsExtension, + TypeHandlerVersion = "1.4" + }; + + var op = this.VirtualMachineExtensionClient.CreateOrUpdate( + this.ResourceGroupName, + this.VMName, + parameters); + + WriteObject(op); + }); + } + + protected string GetStorageKey() + { + string storageKey = string.Empty; + + if (!string.IsNullOrEmpty(StorageAccountName)) + { + var storageAccount = this.StorageClient.StorageAccounts.Get(StorageAccountName); + if (storageAccount != null) + { + var keys = this.StorageClient.StorageAccounts.GetKeys(StorageAccountName); + if (keys != null) + { + storageKey = !string.IsNullOrEmpty(keys.PrimaryKey) ? keys.PrimaryKey : keys.SecondaryKey; + } + } + } + + return storageKey; + } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ExecuteCommand(); + } + } +} \ No newline at end of file diff --git a/src/ResourceManager/Compute/Commands.Compute/Extension/Diagnostics/VirtualMachineDiagnosticsExtensionCmdletBase.cs b/src/ResourceManager/Compute/Commands.Compute/Extension/Diagnostics/VirtualMachineDiagnosticsExtensionCmdletBase.cs new file mode 100644 index 000000000000..e730fd6f3634 --- /dev/null +++ b/src/ResourceManager/Compute/Commands.Compute/Extension/Diagnostics/VirtualMachineDiagnosticsExtensionCmdletBase.cs @@ -0,0 +1,32 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.Azure.Commands.Compute +{ + public class VirtualMachineDiagnosticsExtensionCmdletBase : VirtualMachineExtensionBaseCmdlet + { + protected const string DiagnosticsExtensionNamespace = "Microsoft.Azure.Diagnostics"; + protected const string DiagnosticsExtensionType = "IaaSDiagnostics"; + + protected string StorageAccountName { get; set; } + protected string StorageKey { get; set; } + protected string Endpoint { get; set; } + + public VirtualMachineDiagnosticsExtensionCmdletBase() + : base() + { + + } + } +} \ No newline at end of file diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories.Test/Commands.DataFactories.Test.csproj b/src/ResourceManager/DataFactories/Commands.DataFactories.Test/Commands.DataFactories.Test.csproj index 6ba04756996a..76cd5d89dbec 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories.Test/Commands.DataFactories.Test.csproj +++ b/src/ResourceManager/DataFactories/Commands.DataFactories.Test/Commands.DataFactories.Test.csproj @@ -63,8 +63,8 @@ False ..\..\..\packages\Microsoft.Azure.Management.Authorization.0.19.2-preview\lib\net40\Microsoft.Azure.Management.Authorization.dll - - ..\..\..\packages\Microsoft.Azure.Management.DataFactories.1.0.1\lib\net40\Microsoft.Azure.Management.DataFactories.dll + + ..\..\..\packages\Microsoft.Azure.Management.DataFactories.1.0.2\lib\net45\Microsoft.Azure.Management.DataFactories.dll ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.1-preview\lib\net40\Microsoft.Azure.ResourceManager.dll @@ -148,7 +148,7 @@ - + @@ -161,10 +161,10 @@ - + - + @@ -184,7 +184,7 @@ PreserveNewest - + PreserveNewest diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories.Test/Resources/table.json b/src/ResourceManager/DataFactories/Commands.DataFactories.Test/Resources/dataset.json similarity index 100% rename from src/ResourceManager/DataFactories/Commands.DataFactories.Test/Resources/table.json rename to src/ResourceManager/DataFactories/Commands.DataFactories.Test/Resources/dataset.json diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories.Test/ScenarioTests/TableTests.ps1 b/src/ResourceManager/DataFactories/Commands.DataFactories.Test/ScenarioTests/TableTests.ps1 index ae250fe2f26c..9756c8c5449e 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories.Test/ScenarioTests/TableTests.ps1 +++ b/src/ResourceManager/DataFactories/Commands.DataFactories.Test/ScenarioTests/TableTests.ps1 @@ -14,8 +14,8 @@ <# .SYNOPSIS -Create a table and the linked service which it depends on. Then do a Get to compare the result are identical. -Delete the created table after test finishes. +Create a dataset and the linked service which it depends on. Then do a Get to compare the result are identical. +Delete the created dataset after test finishes. #> function Test-Table { @@ -32,15 +32,15 @@ function Test-Table New-AzureDataFactoryLinkedService -ResourceGroupName $rgname -DataFactoryName $dfname -File .\Resources\linkedService.json -Force - $tblname = "foo2" - $actual = New-AzureDataFactoryTable -ResourceGroupName $rgname -DataFactoryName $dfname -Name $tblname -File .\Resources\table.json -Force - $expected = Get-AzureDataFactoryTable -ResourceGroupName $rgname -DataFactoryName $dfname -Name $tblname + $datasetname = "foo2" + $actual = New-AzureDataFactoryDataset -ResourceGroupName $rgname -DataFactoryName $dfname -Name $datasetname -File .\Resources\dataset.json -Force + $expected = Get-AzureDataFactoryDataset -ResourceGroupName $rgname -DataFactoryName $dfname -Name $datasetname Assert-AreEqual $expected.ResourceGroupName $actual.ResourceGroupName Assert-AreEqual $expected.DataFactoryName $actual.DataFactoryName - Assert-AreEqual $expected.TableName $actual.TableName + Assert-AreEqual $expected.DatasetName $actual.DatasetName - Remove-AzureDataFactoryTable -ResourceGroupName $rgname -DataFactoryName $dfname -Name $tblname -Force + Remove-AzureDataFactoryDataset -ResourceGroupName $rgname -DataFactoryName $dfname -Name $datasetname -Force } finally { @@ -50,8 +50,8 @@ function Test-Table <# .SYNOPSIS -Create a table and the linked service which it depends on. Then do a Get to compare the result are identical. -Delete the created table after test finishes. +Create a dataset and the linked service which it depends on. Then do a Get to compare the result are identical. +Delete the created dataset after test finishes. Use -DataFactory parameter in all cmdlets. #> function Test-TableWithDataFactoryParameter @@ -69,15 +69,15 @@ function Test-TableWithDataFactoryParameter New-AzureDataFactoryLinkedService -ResourceGroupName $rgname -DataFactoryName $dfname -File .\Resources\linkedService.json -Force - $tblname = "foo2" - $actual = New-AzureDataFactoryTable -DataFactory $df -Name $tblname -File .\Resources\table.json -Force - $expected = Get-AzureDataFactoryTable -DataFactory $df -Name $tblname + $datasetname = "foo2" + $actual = New-AzureDataFactoryDataset -DataFactory $df -Name $datasetname -File .\Resources\dataset.json -Force + $expected = Get-AzureDataFactoryDataset -DataFactory $df -Name $datasetname Assert-AreEqual $expected.ResourceGroupName $actual.ResourceGroupName Assert-AreEqual $expected.DataFactoryName $actual.DataFactoryName - Assert-AreEqual $expected.TableName $actual.TableName + Assert-AreEqual $expected.DatasetName $actual.DatasetName - Remove-AzureDataFactoryTable -DataFactory $df -Name $tblname -Force + Remove-AzureDataFactoryDataset -DataFactory $df -Name $datasetname -Force } finally { @@ -104,13 +104,14 @@ function Test-TablePiping New-AzureDataFactoryLinkedService -ResourceGroupName $rgname -DataFactoryName $dfname -File .\Resources\linkedService.json -Force - $tblname = "foo2" - New-AzureDataFactoryTable -ResourceGroupName $rgname -DataFactoryName $dfname -Name $tblname -File .\Resources\table.json -Force + $datasetname = "foo2" + New-AzureDataFactoryDataset -ResourceGroupName $rgname -DataFactoryName $dfname -Name $datasetname -File .\Resources\dataset.json -Force - Get-AzureDataFactoryTable -ResourceGroupName $rgname -DataFactoryName $dfname -Name $tblname | Remove-AzureDataFactoryTable -Force + Get-AzureDataFactoryDataset -ResourceGroupName $rgname -DataFactoryName $dfname -Name $datasetname | Remove-AzureDataFactoryDataset -Force - # Test the table no longer exists - Assert-ThrowsContains { Get-AzureDataFactoryTable -ResourceGroupName $rgname -DataFactoryName $dfname -Name $tblname } "TableNotFound" + # Test the dataset no longer exists + # TODO bgold09: change expected error message to "DatasetNotFound" after service error messages have been updated + Assert-ThrowsContains { Get-AzureDataFactoryDataset -ResourceGroupName $rgname -DataFactoryName $dfname -Name $datasetname } "TableNotFound" } finally { diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories.Test/UnitTests/GetTableTests.cs b/src/ResourceManager/DataFactories/Commands.DataFactories.Test/UnitTests/GetDatasetTests.cs similarity index 79% rename from src/ResourceManager/DataFactories/Commands.DataFactories.Test/UnitTests/GetTableTests.cs rename to src/ResourceManager/DataFactories/Commands.DataFactories.Test/UnitTests/GetDatasetTests.cs index ed36d9a58dc3..002799c78612 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories.Test/UnitTests/GetTableTests.cs +++ b/src/ResourceManager/DataFactories/Commands.DataFactories.Test/UnitTests/GetDatasetTests.cs @@ -22,17 +22,17 @@ namespace Microsoft.Azure.Commands.DataFactories.Test { - public class GetTableTests : DataFactoryUnitTestBase + public class GetDatasetTests : DataFactoryUnitTestBase { - private const string tableName = "foo"; + private const string datasetName = "foo"; - private GetAzureDataFactoryTableCommand cmdlet; + private GetAzureDataFactoryDatasetCommand cmdlet; - public GetTableTests() + public GetDatasetTests() { base.SetupTest(); - cmdlet = new GetAzureDataFactoryTableCommand() + cmdlet = new GetAzureDataFactoryDatasetCommand() { CommandRuntime = commandRuntimeMock.Object, DataFactoryClient = dataFactoriesClientMock.Object, @@ -43,12 +43,12 @@ public GetTableTests() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void CanGetTable() + public void CanGetDataset() { // Arrange - PSTable expected = new PSTable() + PSDataset expected = new PSDataset() { - TableName = tableName, + DatasetName = datasetName, DataFactoryName = DataFactoryName, ResourceGroupName = ResourceGroupName }; @@ -56,17 +56,17 @@ public void CanGetTable() dataFactoriesClientMock .Setup( c => - c.FilterPSTables( - It.Is( + c.FilterPSDatasets( + It.Is( options => options.ResourceGroupName == ResourceGroupName && options.DataFactoryName == DataFactoryName && - options.Name == tableName))) + options.Name == datasetName))) .CallBase() .Verifiable(); dataFactoriesClientMock - .Setup(c => c.GetTable(ResourceGroupName, DataFactoryName, tableName)) + .Setup(c => c.GetDataset(ResourceGroupName, DataFactoryName, datasetName)) .Returns(expected) .Verifiable(); @@ -77,7 +77,7 @@ public void CanGetTable() cmdlet.Name = ""; Exception empty = Assert.Throws(() => cmdlet.ExecuteCmdlet()); - cmdlet.Name = tableName; + cmdlet.Name = datasetName; cmdlet.ExecuteCmdlet(); // Assert @@ -89,20 +89,20 @@ public void CanGetTable() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void CanListTables() + public void CanListDatasets() { // Arrange - List expected = new List() + List expected = new List() { - new PSTable() + new PSDataset() { - TableName = tableName, + DatasetName = datasetName, DataFactoryName = DataFactoryName, ResourceGroupName = ResourceGroupName }, - new PSTable() + new PSDataset() { - TableName = "anotherTable", + DatasetName = "anotherDataset", DataFactoryName = DataFactoryName, ResourceGroupName = ResourceGroupName } @@ -111,8 +111,8 @@ public void CanListTables() dataFactoriesClientMock .Setup( c => - c.FilterPSTables( - It.Is( + c.FilterPSDatasets( + It.Is( options => options.ResourceGroupName == ResourceGroupName && options.DataFactoryName == DataFactoryName && @@ -122,7 +122,7 @@ public void CanListTables() .Verifiable(); dataFactoriesClientMock - .Setup(f => f.ListTables(It.Is( + .Setup(f => f.ListDatasets(It.Is( options => options.ResourceGroupName == ResourceGroupName && options.DataFactoryName == DataFactoryName && diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories.Test/UnitTests/NewTableTests.cs b/src/ResourceManager/DataFactories/Commands.DataFactories.Test/UnitTests/NewDatasetTests.cs similarity index 79% rename from src/ResourceManager/DataFactories/Commands.DataFactories.Test/UnitTests/NewTableTests.cs rename to src/ResourceManager/DataFactories/Commands.DataFactories.Test/UnitTests/NewDatasetTests.cs index 906f2ba2d5c6..2a8a34d4a8e5 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories.Test/UnitTests/NewTableTests.cs +++ b/src/ResourceManager/DataFactories/Commands.DataFactories.Test/UnitTests/NewDatasetTests.cs @@ -20,11 +20,11 @@ namespace Microsoft.Azure.Commands.DataFactories.Test.UnitTests { - public class NewTableTests : DataFactoryUnitTestBase + public class NewDatasetTests : DataFactoryUnitTestBase { - private const string tableName = "foo1"; + private const string datasetName = "foo1"; - private const string filePath = "table.json"; + private const string filePath = "dataset.json"; private const string rawJsonContent = @" { @@ -52,17 +52,17 @@ public class NewTableTests : DataFactoryUnitTestBase } "; - private NewAzureDataFactoryTableCommand cmdlet; + private NewAzureDataFactoryDatasetCommand cmdlet; - public NewTableTests() + public NewDatasetTests() { base.SetupTest(); - cmdlet = new NewAzureDataFactoryTableCommand() + cmdlet = new NewAzureDataFactoryDatasetCommand() { CommandRuntime = commandRuntimeMock.Object, DataFactoryClient = dataFactoriesClientMock.Object, - Name = tableName, + Name = datasetName, DataFactoryName = DataFactoryName, ResourceGroupName = ResourceGroupName }; @@ -71,12 +71,12 @@ public NewTableTests() // ToDo: enable the tests when we can set readonly provisioning state in test //[Fact] //[Trait(Category.AcceptanceType, Category.CheckIn)] - public void CanCreateTable() + public void CanCreateDataset() { // Arrange Table expected = new Table() { - Name = tableName, + Name = datasetName, Properties = new TableProperties() }; @@ -86,10 +86,10 @@ public void CanCreateTable() dataFactoriesClientMock.Setup( c => - c.CreatePSTable( - It.Is( + c.CreatePSDataset( + It.Is( parameters => - parameters.Name == tableName && + parameters.Name == datasetName && parameters.ResourceGroupName == ResourceGroupName && parameters.DataFactoryName == DataFactoryName))) .CallBase() @@ -97,7 +97,7 @@ public void CanCreateTable() dataFactoriesClientMock.Setup( c => - c.CreateOrUpdateTable(ResourceGroupName, DataFactoryName, tableName, rawJsonContent)) + c.CreateOrUpdateDataset(ResourceGroupName, DataFactoryName, datasetName, rawJsonContent)) .Returns(expected) .Verifiable(); @@ -112,22 +112,22 @@ public void CanCreateTable() commandRuntimeMock.Verify( f => f.WriteObject( - It.Is( + It.Is( tbl => ResourceGroupName == tbl.ResourceGroupName && DataFactoryName == tbl.DataFactoryName && - expected.Name == tbl.TableName)), + expected.Name == tbl.DatasetName)), Times.Once()); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void CanThrowIfTableProvisioningFailed() + public void CanThrowIfDatasetProvisioningFailed() { // Arrange Table expected = new Table() { - Name = tableName, + Name = datasetName, Properties = new TableProperties() }; @@ -137,10 +137,10 @@ public void CanThrowIfTableProvisioningFailed() dataFactoriesClientMock.Setup( c => - c.CreatePSTable( - It.Is( + c.CreatePSDataset( + It.Is( parameters => - parameters.Name == tableName && + parameters.Name == datasetName && parameters.ResourceGroupName == ResourceGroupName && parameters.DataFactoryName == DataFactoryName))) .CallBase() @@ -148,7 +148,7 @@ public void CanThrowIfTableProvisioningFailed() dataFactoriesClientMock.Setup( c => - c.CreateOrUpdateTable(ResourceGroupName, DataFactoryName, tableName, rawJsonContent)) + c.CreateOrUpdateDataset(ResourceGroupName, DataFactoryName, datasetName, rawJsonContent)) .Returns(expected) .Verifiable(); diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories.Test/UnitTests/RemoveTableTests.cs b/src/ResourceManager/DataFactories/Commands.DataFactories.Test/UnitTests/RemoveDatasetTests.cs similarity index 81% rename from src/ResourceManager/DataFactories/Commands.DataFactories.Test/UnitTests/RemoveTableTests.cs rename to src/ResourceManager/DataFactories/Commands.DataFactories.Test/UnitTests/RemoveDatasetTests.cs index 3e1eeca04607..d1d93ad910a3 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories.Test/UnitTests/RemoveTableTests.cs +++ b/src/ResourceManager/DataFactories/Commands.DataFactories.Test/UnitTests/RemoveDatasetTests.cs @@ -19,21 +19,21 @@ namespace Microsoft.Azure.Commands.DataFactories.Test.UnitTests { - public class RemoveTableTests : DataFactoryUnitTestBase + public class RemoveDatasetTests : DataFactoryUnitTestBase { - private const string tableName = "foo"; + private const string datasetName = "foo"; - private RemoveAzureDataFactoryTableCommand cmdlet; + private RemoveAzureDataFactoryDatasetCommand cmdlet; - public RemoveTableTests() + public RemoveDatasetTests() { base.SetupTest(); - cmdlet = new RemoveAzureDataFactoryTableCommand() + cmdlet = new RemoveAzureDataFactoryDatasetCommand() { CommandRuntime = commandRuntimeMock.Object, DataFactoryClient = dataFactoriesClientMock.Object, - Name = tableName, + Name = datasetName, ResourceGroupName = ResourceGroupName, DataFactoryName = DataFactoryName, Force = true @@ -42,13 +42,13 @@ public RemoveTableTests() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void CanRemoveTable() + public void CanRemoveDataset() { HttpStatusCode expectedStatusCode = HttpStatusCode.OK; // Arrange dataFactoriesClientMock.Setup( - f => f.DeleteTable(ResourceGroupName, DataFactoryName, tableName)) + f => f.DeleteDataset(ResourceGroupName, DataFactoryName, datasetName)) .Returns(expectedStatusCode) .Verifiable(); diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories.Test/packages.config b/src/ResourceManager/DataFactories/Commands.DataFactories.Test/packages.config index b368bc842bac..0fa18d25f202 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories.Test/packages.config +++ b/src/ResourceManager/DataFactories/Commands.DataFactories.Test/packages.config @@ -6,7 +6,7 @@ - + diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/Commands.DataFactories.csproj b/src/ResourceManager/DataFactories/Commands.DataFactories/Commands.DataFactories.csproj index 5e291a8d30ef..b72d3acca109 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/Commands.DataFactories.csproj +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/Commands.DataFactories.csproj @@ -62,8 +62,7 @@ ..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll - False - ..\..\..\packages\Microsoft.Azure.Management.DataFactories.1.0.1\lib\net40\Microsoft.Azure.Management.DataFactories.dll + ..\..\..\packages\Microsoft.Azure.Management.DataFactories.1.0.2\lib\net45\Microsoft.Azure.Management.DataFactories.dll False @@ -159,7 +158,7 @@ - + @@ -190,7 +189,7 @@ - + @@ -204,10 +203,10 @@ True Resources.resx - - - - + + + + diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/Constants.cs b/src/ResourceManager/DataFactories/Commands.DataFactories/Constants.cs index 2aadf582d145..eb5f06e311be 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/Constants.cs +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/Constants.cs @@ -30,7 +30,7 @@ internal static class Constants public const string EncryptString = "AzureDataFactoryEncryptValue"; - public const string Table = "AzureDataFactoryTable"; + public const string Dataset = "AzureDataFactoryDataset"; public const string Pipeline = "AzureDataFactoryPipeline"; diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/DataSlices/DataSliceContextBaseCmdlet.cs b/src/ResourceManager/DataFactories/Commands.DataFactories/DataSlices/DataSliceContextBaseCmdlet.cs index 983b33beb216..882f227f47ce 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/DataSlices/DataSliceContextBaseCmdlet.cs +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/DataSlices/DataSliceContextBaseCmdlet.cs @@ -32,9 +32,9 @@ public abstract class DataSliceContextBaseCmdlet : DataFactoryBaseCmdlet public string DataFactoryName { get; set; } [Parameter(Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true, - HelpMessage = "The table name.")] + HelpMessage = "The dataset name.")] [ValidateNotNullOrEmpty] - public string TableName { get; set; } + public string DatasetName { get; set; } [Parameter(Position = 3, Mandatory = true, HelpMessage = "The data slice range start time.")] public DateTime StartDateTime { get; set; } diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/DataSlices/GetAzureDataFactoryRunCommand.cs b/src/ResourceManager/DataFactories/Commands.DataFactories/DataSlices/GetAzureDataFactoryRunCommand.cs index d2f995c80233..c7c56aa88409 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/DataSlices/GetAzureDataFactoryRunCommand.cs +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/DataSlices/GetAzureDataFactoryRunCommand.cs @@ -36,9 +36,9 @@ public class GetAzureDataFactoryRunCommand : DataFactoryBaseCmdlet public string DataFactoryName { get; set; } [Parameter(Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true, - HelpMessage = "The table name.")] + HelpMessage = "The dataset name.")] [ValidateNotNullOrEmpty] - public string TableName { get; set; } + public string DatasetName { get; set; } [Parameter(Position = 3, Mandatory = true, HelpMessage = "The start time of the data slice queried.")] public DateTime StartDateTime { get; set; } @@ -61,7 +61,7 @@ public override void ExecuteCmdlet() { ResourceGroupName = ResourceGroupName, DataFactoryName = DataFactoryName, - TableName = TableName, + DatasetName = this.DatasetName, StartDateTime = StartDateTime }; diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/DataSlices/GetAzureDataFactorySliceCommand.cs b/src/ResourceManager/DataFactories/Commands.DataFactories/DataSlices/GetAzureDataFactorySliceCommand.cs index e462c76f783c..3d013b2eb6e8 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/DataSlices/GetAzureDataFactorySliceCommand.cs +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/DataSlices/GetAzureDataFactorySliceCommand.cs @@ -63,7 +63,7 @@ public override void ExecuteCmdlet() { ResourceGroupName = ResourceGroupName, DataFactoryName = DataFactoryName, - TableName = TableName, + DatasetName = this.DatasetName, DataSliceRangeStartTime = StartDateTime, DataSliceRangeEndTime = EndDateTime }; diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/DataSlices/SetAzureDataFactorySliceStatusCommand.cs b/src/ResourceManager/DataFactories/Commands.DataFactories/DataSlices/SetAzureDataFactorySliceStatusCommand.cs index 1363b9442cd6..4b2087870c76 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/DataSlices/SetAzureDataFactorySliceStatusCommand.cs +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/DataSlices/SetAzureDataFactorySliceStatusCommand.cs @@ -84,7 +84,7 @@ public override void ExecuteCmdlet() DataFactoryClient.SetSliceStatus( ResourceGroupName, DataFactoryName, - TableName, + this.DatasetName, Status, UpdateType, StartDateTime, diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/Tables/TableContextBaseCmdlet.cs b/src/ResourceManager/DataFactories/Commands.DataFactories/Datasets/DatasetContextBaseCmdlet.cs similarity index 91% rename from src/ResourceManager/DataFactories/Commands.DataFactories/Tables/TableContextBaseCmdlet.cs rename to src/ResourceManager/DataFactories/Commands.DataFactories/Datasets/DatasetContextBaseCmdlet.cs index 807724f68431..27755e6c6d74 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/Tables/TableContextBaseCmdlet.cs +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/Datasets/DatasetContextBaseCmdlet.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.Commands.DataFactories { - public abstract class TableContextBaseCmdlet : DataFactoryBaseCmdlet + public abstract class DatasetContextBaseCmdlet : DataFactoryBaseCmdlet { [Parameter(ParameterSetName = ByFactoryObject, Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The data factory object.")] @@ -29,8 +29,8 @@ public abstract class TableContextBaseCmdlet : DataFactoryBaseCmdlet public string DataFactoryName { get; set; } [Parameter(Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true, - HelpMessage = "The table name.")] - [Alias("TableName")] + HelpMessage = "The dataset name.")] + [Alias("DatasetName")] [ValidateNotNullOrEmpty] public string Name { get; set; } } diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/Tables/GetAzureDataFactoryTableCommand.cs b/src/ResourceManager/DataFactories/Commands.DataFactories/Datasets/GetAzureDataFactoryDatasetCommand.cs similarity index 81% rename from src/ResourceManager/DataFactories/Commands.DataFactories/Tables/GetAzureDataFactoryTableCommand.cs rename to src/ResourceManager/DataFactories/Commands.DataFactories/Datasets/GetAzureDataFactoryDatasetCommand.cs index 2b59ec35c6b3..cecc213d5643 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/Tables/GetAzureDataFactoryTableCommand.cs +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/Datasets/GetAzureDataFactoryDatasetCommand.cs @@ -22,8 +22,8 @@ namespace Microsoft.Azure.Commands.DataFactories { - [Cmdlet(VerbsCommon.Get, Constants.Table, DefaultParameterSetName = ByFactoryName), OutputType(typeof(List), typeof(PSTable))] - public class GetAzureDataFactoryTableCommand : DataFactoryBaseCmdlet + [Cmdlet(VerbsCommon.Get, Constants.Dataset, DefaultParameterSetName = ByFactoryName), OutputType(typeof(List), typeof(PSDataset))] + public class GetAzureDataFactoryDatasetCommand : DataFactoryBaseCmdlet { [Parameter(ParameterSetName = ByFactoryObject, Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The data factory object.")] @@ -35,7 +35,7 @@ public class GetAzureDataFactoryTableCommand : DataFactoryBaseCmdlet public string DataFactoryName { get; set; } [Parameter(Position = 2, Mandatory = false, ValueFromPipelineByPropertyName = true, - HelpMessage = "The table name.")] + HelpMessage = "The dataset name.")] public string Name { get; set; } [EnvironmentPermission(SecurityAction.Demand, Unrestricted = true)] @@ -58,7 +58,7 @@ public override void ExecuteCmdlet() ResourceGroupName = DataFactory.ResourceGroupName; } - TableFilterOptions filterOptions = new TableFilterOptions() + DatasetFilterOptions filterOptions = new DatasetFilterOptions() { Name = Name, ResourceGroupName = ResourceGroupName, @@ -67,18 +67,18 @@ public override void ExecuteCmdlet() if (Name != null) { - List tables = DataFactoryClient.FilterPSTables(filterOptions); - if (tables != null && tables.Any()) + List datasets = DataFactoryClient.FilterPSDatasets(filterOptions); + if (datasets != null && datasets.Any()) { - WriteObject(tables[0]); + WriteObject(datasets[0]); } return; } - // List tables until all pages are fetched + // List datasets until all pages are fetched do { - WriteObject(DataFactoryClient.FilterPSTables(filterOptions), true); + WriteObject(DataFactoryClient.FilterPSDatasets(filterOptions), true); } while (filterOptions.NextLink.IsNextPageLink()); } } diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/Tables/NewAzureDataFactoryTableCommand.cs b/src/ResourceManager/DataFactories/Commands.DataFactories/Datasets/NewAzureDataFactoryDatasetCommand.cs similarity index 86% rename from src/ResourceManager/DataFactories/Commands.DataFactories/Tables/NewAzureDataFactoryTableCommand.cs rename to src/ResourceManager/DataFactories/Commands.DataFactories/Datasets/NewAzureDataFactoryDatasetCommand.cs index 7190c51becc8..af21f8f3c7b4 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/Tables/NewAzureDataFactoryTableCommand.cs +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/Datasets/NewAzureDataFactoryDatasetCommand.cs @@ -21,8 +21,8 @@ namespace Microsoft.Azure.Commands.DataFactories { - [Cmdlet(VerbsCommon.New, Constants.Table, DefaultParameterSetName = ByFactoryName), OutputType(typeof(PSTable))] - public class NewAzureDataFactoryTableCommand : DataFactoryBaseCmdlet + [Cmdlet(VerbsCommon.New, Constants.Dataset, DefaultParameterSetName = ByFactoryName), OutputType(typeof(PSDataset))] + public class NewAzureDataFactoryDatasetCommand : DataFactoryBaseCmdlet { [Parameter(ParameterSetName = ByFactoryObject, Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The data factory object.")] @@ -34,10 +34,10 @@ public class NewAzureDataFactoryTableCommand : DataFactoryBaseCmdlet public string DataFactoryName { get; set; } [Parameter(Position = 2, Mandatory = false, ValueFromPipelineByPropertyName = true, - HelpMessage = "The table name.")] + HelpMessage = "The dataset name.")] public string Name { get; set; } - [Parameter(Position = 3, Mandatory = true, HelpMessage = "The table JSON file path.")] + [Parameter(Position = 3, Mandatory = true, HelpMessage = "The dataset JSON file path.")] [ValidateNotNullOrEmpty] public string File { get; set; } @@ -62,9 +62,9 @@ public override void ExecuteCmdlet() string rawJsonContent = DataFactoryClient.ReadJsonFileContent(this.TryResolvePath(File)); // Resolve any mismatch between -Name and the name written in JSON - Name = ResolveResourceName(rawJsonContent, Name, "Table"); + Name = ResolveResourceName(rawJsonContent, Name, "Dataset"); - CreatePSTableParameters parameters = new CreatePSTableParameters() + CreatePSDatasetParameters parameters = new CreatePSDatasetParameters() { ResourceGroupName = ResourceGroupName, DataFactoryName = DataFactoryName, @@ -74,7 +74,7 @@ public override void ExecuteCmdlet() ConfirmAction = ConfirmAction }; - WriteObject(DataFactoryClient.CreatePSTable(parameters)); + WriteObject(DataFactoryClient.CreatePSDataset(parameters)); } } } \ No newline at end of file diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/Tables/RemoveAzureDataFactoryTableCommand.cs b/src/ResourceManager/DataFactories/Commands.DataFactories/Datasets/RemoveAzureDataFactoryDatasetCommand.cs similarity index 83% rename from src/ResourceManager/DataFactories/Commands.DataFactories/Tables/RemoveAzureDataFactoryTableCommand.cs rename to src/ResourceManager/DataFactories/Commands.DataFactories/Datasets/RemoveAzureDataFactoryDatasetCommand.cs index d71f31680fe0..a23744b7e384 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/Tables/RemoveAzureDataFactoryTableCommand.cs +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/Datasets/RemoveAzureDataFactoryDatasetCommand.cs @@ -20,8 +20,8 @@ namespace Microsoft.Azure.Commands.DataFactories { - [Cmdlet(VerbsCommon.Remove, Constants.Table, DefaultParameterSetName = ByFactoryName)] - public class RemoveAzureDataFactoryTableCommand : TableContextBaseCmdlet + [Cmdlet(VerbsCommon.Remove, Constants.Dataset, DefaultParameterSetName = ByFactoryName)] + public class RemoveAzureDataFactoryDatasetCommand : DatasetContextBaseCmdlet { [Parameter(Mandatory = false, HelpMessage = "Don't ask for confirmation.")] public SwitchParameter Force { get; set; } @@ -44,12 +44,12 @@ public override void ExecuteCmdlet() Force.IsPresent, string.Format( CultureInfo.InvariantCulture, - Resources.TableConfirmationMessage, + Resources.DatasetConfirmationMessage, Name, DataFactoryName), string.Format( CultureInfo.InvariantCulture, - Resources.TableRemoving, + Resources.DatasetRemoving, Name, DataFactoryName), Name, @@ -58,11 +58,11 @@ public override void ExecuteCmdlet() private void ExecuteDelete() { - HttpStatusCode response = DataFactoryClient.DeleteTable(ResourceGroupName, DataFactoryName, Name); + HttpStatusCode response = DataFactoryClient.DeleteDataset(ResourceGroupName, DataFactoryName, Name); if(response == HttpStatusCode.NoContent) { - WriteWarning(string.Format(CultureInfo.InvariantCulture, Resources.TableNotFound, Name, DataFactoryName)); + WriteWarning(string.Format(CultureInfo.InvariantCulture, Resources.DatasetNotFound, Name, DataFactoryName)); } } } diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/Microsoft.Azure.Commands.DataFactories.dll-Help.xml b/src/ResourceManager/DataFactories/Commands.DataFactories/Microsoft.Azure.Commands.DataFactories.dll-Help.xml index 1049f108e1b1..c81d99837a67 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/Microsoft.Azure.Commands.DataFactories.dll-Help.xml +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/Microsoft.Azure.Commands.DataFactories.dll-Help.xml @@ -774,7 +774,7 @@ The first command uses the Get-AzureDataFactory cmdlet to get the data factory named ContosoFactory, and then stores it in the $DataFactory variable. - The second command gets information about the linked service for the data factory stored in $DataFactory, and then passes that information to the Format-Table cmdlet by using the pipeline operator. The Format-Table cmdlet formats the output as a table with the specified properties as table columns. + The second command gets information about the linked service for the data factory stored in $DataFactory, and then passes that information to the Format-Table cmdlet by using the pipeline operator. The Format-Table cmdlet formats the output as a dataset with the specified properties as dataset columns. @@ -1100,7 +1100,7 @@ Get-AzureDataFactoryRun - Gets runs for a data slice of a table in Data Factory. + Gets runs for a data slice of a dataset in Data Factory. @@ -1110,13 +1110,13 @@ - The Get-AzureDataFactoryRun cmdlet gets the runs for a data slice of a table in Azure Data Factory. A table in a data factory is composed of slices over the time axis. The width of a slice is determined by the schedule, either hourly or daily. A run is a unit of processing for a slice. There could be one or more runs for a slice in case of retries or in case you rerun your slice due to failures. A slice is identified by its start time. To obtain the start time of a slice, use the Get-AzureDataFactorySlice cmdlet. + The Get-AzureDataFactoryRun cmdlet gets the runs for a data slice of a dataset in Azure Data Factory. A dataset in a data factory is composed of slices over the time axis. The width of a slice is determined by the schedule, either hourly or daily. A run is a unit of processing for a slice. There could be one or more runs for a slice in case of retries or in case you rerun your slice due to failures. A slice is identified by its start time. To obtain the start time of a slice, use the Get-AzureDataFactorySlice cmdlet. For example, to get a run for the following slice, use the start time 2015-04-02T20:00:00. ResourceGroupName : ADF DataFactoryName : SPDataFactory0924 - TableName : MarketingCampaignEffectivenessBlobTable + DatasetName : MarketingCampaignEffectivenessBlobDataset Start : 5/2/2014 8:00:00 PM End : 5/3/2014 8:00:00 PM RetryCount : 0 @@ -1143,9 +1143,9 @@ String - TableName + DatasetName - Specifies the name of the table. This cmdlet gets runs for slices that belong to the table that this parameter specifies. + Specifies the name of the dataset. This cmdlet gets runs for slices that belong to the dataset that this parameter specifies. String @@ -1170,9 +1170,9 @@ PSDataFactory - TableName + DatasetName - Specifies the name of the table. This cmdlet gets runs for slices that belong to the table that this parameter specifies. + Specifies the name of the dataset. This cmdlet gets runs for slices that belong to the dataset that this parameter specifies. String @@ -1241,9 +1241,9 @@ - TableName + DatasetName - Specifies the name of the table. This cmdlet gets runs for slices that belong to the table that this parameter specifies. + Specifies the name of the dataset. This cmdlet gets runs for slices that belong to the dataset that this parameter specifies. String @@ -1281,17 +1281,17 @@ - Example 1: Get a table + Example 1: Get a dataset - PS C:\> Get-AzureDataFactoryRun -ResourceGroupName "ADF" -DataFactoryName "WikiADF" -TableName "DAWikiAggregatedData" -StartDateTime 2014-05-21T16:00:00Z + PS C:\> Get-AzureDataFactoryRun -ResourceGroupName "ADF" -DataFactoryName "WikiADF" -DatasetName "DAWikiAggregatedData" -StartDateTime 2014-05-21T16:00:00Z Id : a7c4913c-9623-49b3-ae1e-3e45e2b68819 ResourceGroupName : ADF DataFactoryName : WikiADF - TableName : DAWikiAggregatedData + DatasetName : DAWikiAggregatedData PipelineName : 249ea141-ca00-8597-fad9-a148e5e7bdba ActivityId : fcefe2bd-39b1-2d7a-7b35-bcc2b0432300 ResumptionToken : a7c4913c-9623-49b3-ae1e-3e45e2b68819 @@ -1308,7 +1308,7 @@ ErrorMessage : - This command gets all runs for slices of the table named DAWikiAggregatedData in the data factory named WikiADF that start from 4 PM GMT on 05/21/2014. + This command gets all runs for slices of the dataset named DAWikiAggregatedData in the data factory named WikiADF that start from 4 PM GMT on 05/21/2014. @@ -1328,7 +1328,7 @@ Get-AzureDataFactorySlice - Gets data slices for a table in Data Factory. + Gets data slices for a dataset in Data Factory. @@ -1338,7 +1338,7 @@ - The Get-AzureDataFactorySlice cmdlet gets data slices for a table in Azure Data Factory. Specify a start time and an end time to define a range of data slices to view. + The Get-AzureDataFactorySlice cmdlet gets data slices for a dataset in Azure Data Factory. Specify a start time and an end time to define a range of data slices to view. The status of a data slice is one of the following values: @@ -1374,10 +1374,10 @@ String - TableName + DatasetName - Specifies the name of the table for which this cmdlet gets slices. + Specifies the name of the dataset for which this cmdlet gets slices. String @@ -1411,10 +1411,10 @@ PSDataFactory - TableName + DatasetName - Specifies the name of the table for which this cmdlet gets slices. + Specifies the name of the dataset for which this cmdlet gets slices. String @@ -1505,10 +1505,10 @@ - TableName + DatasetName - Specifies the name of the table for which this cmdlet gets slices. + Specifies the name of the dataset for which this cmdlet gets slices. String @@ -1547,16 +1547,16 @@ - Example 1: Get data slices for a table + Example 1: Get data slices for a dataset - PS C:\> Get-AzureDataFactorySlice -ResourceGroupName "ADF" -DataFactoryName "WikiADF" -TableName "DAWikiAggregatedData" -StartDateTime 2014-05-20T10:00:00Z + PS C:\> Get-AzureDataFactorySlice -ResourceGroupName "ADF" -DataFactoryName "WikiADF" -DatasetName "DAWikiAggregatedData" -StartDateTime 2014-05-20T10:00:00Z ResourceGroupName : ADF DataFactoryName : WikiADF - TableName : DAWikiAggregatedData + DatasetName : DAWikiAggregatedData Start : 5/21/2014 1:00:00 AM End : 5/21/2014 2:00:00 AM RetryCount : 0 @@ -1564,7 +1564,7 @@ ResourceGroupName : ADF DataFactoryName : WikiADF - TableName : DAWikiAggregatedData + DatasetName : DAWikiAggregatedData Start : 5/21/2014 2:00:00 AM End : 5/21/2014 3:00:00 AM RetryCount : 0 @@ -1574,7 +1574,7 @@ ResourceGroupName : ADF DataFactoryName : WikiADF - TableName : DAWikiAggregatedData + DatasetName : DAWikiAggregatedData Start : 5/21/2014 8:00:00 PM End : 5/21/2014 9:00:00 PM RetryCount : 0 @@ -1582,7 +1582,7 @@ ResourceGroupName : ADF DataFactoryName : WikiADF - TableName : DAWikiAggregatedData + DatasetName : DAWikiAggregatedData Start : 5/21/2014 9:00:00 PM End : 5/21/2014 10:00:00 PM RetryCount : 0 @@ -1592,7 +1592,7 @@ - This command gets all the data slices for the table named WikiAggregatedData in the data factory named WikiADF. The command gets slices produced after the time that the StartDateTime parameter specifies. The following example code sets the availability for this table every hour in the JavaScript Object Notation (JSON) file. + This command gets all the data slices for the dataset named WikiAggregatedData in the data factory named WikiADF. The command gets slices produced after the time that the StartDateTime parameter specifies. The following example code sets the availability for this dataset every hour in the JavaScript Object Notation (JSON) file. availability: { @@ -1626,59 +1626,59 @@ - Get-AzureDataFactoryTable + Get-AzureDataFactoryDataset - Gets information about tables in Data Factory. + Gets information about datasets in Data Factory. Get - AzureDataFactoryTable + AzureDataFactoryDataset - The Get-AzureDataFactoryTable cmdlet gets information about tables in Azure Data Factory. If you specify the name of a table, this cmdlet gets information about that table. If you do not specify a name, this cmdlet gets information about all the tables in the data factory. + The Get-AzureDataFactoryDataset cmdlet gets information about datasets in Azure Data Factory. If you specify the name of a dataset, this cmdlet gets information about that dataset. If you do not specify a name, this cmdlet gets information about all the datasets in the data factory. You must be in AzureResourceManager mode to run Azure Data Factory cmdlets. To switch to AzureResourceManager mode, type Switch-AzureMode AzureResourceManager. - Get-AzureDataFactoryTable + Get-AzureDataFactoryDataset ResourceGroupName - Specifies the name of an Azure resource group. This cmdlet gets tables that belong to the group that this parameter specifies. + Specifies the name of an Azure resource group. This cmdlet gets datasets that belong to the group that this parameter specifies. String DataFactoryName - Specifies the name of a data factory. This cmdlet gets tables that belong to the data factory that this parameter specifies. + Specifies the name of a data factory. This cmdlet gets datasets that belong to the data factory that this parameter specifies. String Name - Specifies the name of the table about which to get information. + Specifies the name of the dataset about which to get information. String - Get-AzureDataFactoryTable + Get-AzureDataFactoryDataset DataFactory - Specifies a PSDataFactory object. This cmdlet gets tables that belong to the data factory that this parameter specifies. + Specifies a PSDataFactory object. This cmdlet gets datasets that belong to the data factory that this parameter specifies. PSDataFactory Name - Specifies the name of the table about which to get information. + Specifies the name of the dataset about which to get information. String @@ -1688,7 +1688,7 @@ DataFactory - Specifies a PSDataFactory object. This cmdlet gets tables that belong to the data factory that this parameter specifies. + Specifies a PSDataFactory object. This cmdlet gets datasets that belong to the data factory that this parameter specifies. PSDataFactory @@ -1700,7 +1700,7 @@ DataFactoryName - Specifies the name of a data factory. This cmdlet gets tables that belong to the data factory that this parameter specifies. + Specifies the name of a data factory. This cmdlet gets datasets that belong to the data factory that this parameter specifies. String @@ -1712,7 +1712,7 @@ Name - Specifies the name of the table about which to get information. + Specifies the name of the dataset about which to get information. String @@ -1724,7 +1724,7 @@ ResourceGroupName - Specifies the name of an Azure resource group. This cmdlet gets tables that belong to the group that this parameter specifies. + Specifies the name of an Azure resource group. This cmdlet gets datasets that belong to the group that this parameter specifies. String @@ -1749,7 +1749,7 @@ - System.Collections.Generic.List`1[[Microsoft.WindowsAzure.Commands.Utilities.PSTable, Microsoft.WindowsAzure.Commands.Utilities, Version=0.8.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]] Microsoft.WindowsAzure.Commands.Utilities.PSTable + System.Collections.Generic.List`1[[Microsoft.WindowsAzure.Commands.Utilities.PSDataset, Microsoft.WindowsAzure.Commands.Utilities, Version=0.8.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]] Microsoft.WindowsAzure.Commands.Utilities.PSDataset @@ -1762,13 +1762,13 @@ - Example 1: Get information about all tables + Example 1: Get information about all datasets - PS C:\> Get-AzureDataFactoryTable -ResourceGroupName "ADF" -DataFactoryName "WikiADF" - TableName : DACuratedWikiData + PS C:\> Get-AzureDataFactoryDataset -ResourceGroupName "ADF" -DataFactoryName "WikiADF" + DatasetName : DACuratedWikiData ResourceGroupName : ADF DataFactoryName : WikiADF Availability : Microsoft.DataFactories.Availability @@ -1777,7 +1777,7 @@ Structure : {} Published : False - TableName : DAWikipediaClickEvents + DatasetName : DAWikipediaClickEvents ResourceGroupName : ADF DataFactoryName : WikiADF Availability : Microsoft.DataFactories.Availability @@ -1786,7 +1786,7 @@ Structure : {} Published : False - TableName : DAWikiAggregatedData + DatasetName : DAWikiAggregatedData ResourceGroupName : ADF DataFactoryName : WikiADF Availability : Microsoft.DataFactories.Availability @@ -1796,7 +1796,7 @@ Published : False - This command gets information about all tables in the data factory named WikiADF. + This command gets information about all datasets in the data factory named WikiADF. @@ -1805,13 +1805,13 @@ - Example 2: Get information about a specific table + Example 2: Get information about a specific dataset - PS C:\> Get-AzureDataFactoryTable -ResourceGroupName "ADF" -DataFactoryName "WikiADF" -Name "DAWikipediaClickEvents" - TableName : DAWikipediaClickEvents + PS C:\> Get-AzureDataFactoryDataset -ResourceGroupName "ADF" -DataFactoryName "WikiADF" -Name "DAWikipediaClickEvents" + DatasetName : DAWikipediaClickEvents ResourceGroupName : ADF DataFactoryName : WikiADF Availability : Microsoft.DataFactories.Availability @@ -1821,7 +1821,7 @@ Published : False - This command gets information about the table named DAWikipediaClickEvents in the data factory named WikiADF. + This command gets information about the dataset named DAWikipediaClickEvents in the data factory named WikiADF. @@ -1830,12 +1830,12 @@ - Example 3: Get the location for a specific table + Example 3: Get the location for a specific dataset - PS C:\> (Get-AzureDataFactoryTable -ResourceGroupName "ADF" -DataFactoryName "WikiADF" -Name "DAWikipediaClickEvents").Location + PS C:\> (Get-AzureDataFactoryDataset -ResourceGroupName "ADF" -DataFactoryName "WikiADF" -Name "DAWikipediaClickEvents").Location BlobPath : wikidatagateway/wikisampledatain/ FilenamePrefix : Format : @@ -1843,7 +1843,7 @@ PartitionBy : {} - This command gets information for the table named DAWikipediaClickEvents in the data factory named WikiADF, and then uses standard dot notation to view the Location associated with that table. Alternatively, assign the output of the Get-AzureDataFactoryTable cmdlet to a variable, and then use dot notation to view the Location property associated with the table object stored in that variable. + This command gets information for the dataset named DAWikipediaClickEvents in the data factory named WikiADF, and then uses standard dot notation to view the Location associated with that dataset. Alternatively, assign the output of the Get-AzureDataFactoryDataset cmdlet to a variable, and then use dot notation to view the Location property associated with the dataset object stored in that variable. @@ -1854,11 +1854,11 @@ - New-AzureDataFactoryTable + New-AzureDataFactoryDataset - Remove-AzureDataFactoryTable + Remove-AzureDataFactoryDataset @@ -1883,7 +1883,7 @@ -- Create a data factory. -- Create linked services. - -- Create tables. + -- Create datasets. -- Create a pipeline. You must be in AzureResourceManager mode to run Azure Data Factory cmdlets. To switch to AzureResourceManager mode, type Switch-AzureMode AzureResourceManager. @@ -3143,7 +3143,7 @@ -- Create a data factory. -- Create linked services. - -- Create tables. + -- Create datasets. -- Create a pipeline. You must be in AzureResourceManager mode to run Azure Data Factory cmdlets. To switch to AzureResourceManager mode, type Switch-AzureMode AzureResourceManager. @@ -3375,7 +3375,7 @@ -- Create a data factory. -- Create linked services. - -- Create tables. + -- Create datasets. -- Create a pipeline. If a pipeline with the same name already exists in the data factory, this cmdlet prompts you to confirm whether to overwrite the existing pipeline with the new pipeline. If you confirm to overwrite the existing pipeline, the pipeline definition is also replaced. @@ -3608,95 +3608,95 @@ - New-AzureDataFactoryTable + New-AzureDataFactoryDataset - Creates a table in Data Factory. + Creates a dataset in Data Factory. New - AzureDataFactoryTable + AzureDataFactoryDataset - The New-AzureDataFactoryTable cmdlet creates a table in Azure Data Factory. If you specify a name for a table that already exists, this cmdlet prompts you for confirmation before it replaces the table. If you specify the Force parameter, the cmdlet replaces the existing table without confirmation. + The New-AzureDataFactoryDataset cmdlet creates a dataset in Azure Data Factory. If you specify a name for a dataset that already exists, this cmdlet prompts you for confirmation before it replaces the dataset. If you specify the Force parameter, the cmdlet replaces the existing dataset without confirmation. Perform these operations in the following order: -- Create a data factory. -- Create linked services. - -- Create tables. + -- Create datasets. -- Create a pipeline. - If a table with the same name already exists in the data factory, this cmdlet prompts you to confirm whether to overwrite the existing table with the new table. If you confirm to overwrite the existing table, the table definition is also replaced. + If a dataset with the same name already exists in the data factory, this cmdlet prompts you to confirm whether to overwrite the existing dataset with the new dataset. If you confirm to overwrite the existing dataset, the dataset definition is also replaced. You must be in AzureResourceManager mode to run Azure Data Factory cmdlets. To switch to AzureResourceManager mode, type Switch-AzureMode AzureResourceManager. - New-AzureDataFactoryTable + New-AzureDataFactoryDataset ResourceGroupName - Specifies the name of an Azure resource group. This cmdlet creates a table in the group that this parameter specifies. + Specifies the name of an Azure resource group. This cmdlet creates a dataset in the group that this parameter specifies. String DataFactoryName - Specifies the name of a data factory. This cmdlet creates a table in the data factory that this parameter specifies. + Specifies the name of a data factory. This cmdlet creates a dataset in the data factory that this parameter specifies. String Name - Specifies the name of the table to create. + Specifies the name of the dataset to create. String File - Specifies the full path of the JavaScript Object Notation (JSON) file that contains the description of the table. + Specifies the full path of the JavaScript Object Notation (JSON) file that contains the description of the dataset. String Force - Indicates that this cmdlet replaces an existing table without prompting you for confirmation. + Indicates that this cmdlet replaces an existing dataset without prompting you for confirmation. - New-AzureDataFactoryTable + New-AzureDataFactoryDataset DataFactory - Specifies a PSDataFactory object. This cmdlet creates a table in the data factory that this parameter specifies. + Specifies a PSDataFactory object. This cmdlet creates a dataset in the data factory that this parameter specifies. PSDataFactory Name - Specifies the name of the table to create. + Specifies the name of the dataset to create. String File - Specifies the full path of the JavaScript Object Notation (JSON) file that contains the description of the table. + Specifies the full path of the JavaScript Object Notation (JSON) file that contains the description of the dataset. String Force - Indicates that this cmdlet replaces an existing table without prompting you for confirmation. + Indicates that this cmdlet replaces an existing dataset without prompting you for confirmation. @@ -3705,7 +3705,7 @@ DataFactory - Specifies a PSDataFactory object. This cmdlet creates a table in the data factory that this parameter specifies. + Specifies a PSDataFactory object. This cmdlet creates a dataset in the data factory that this parameter specifies. PSDataFactory @@ -3717,7 +3717,7 @@ DataFactoryName - Specifies the name of a data factory. This cmdlet creates a table in the data factory that this parameter specifies. + Specifies the name of a data factory. This cmdlet creates a dataset in the data factory that this parameter specifies. String @@ -3729,7 +3729,7 @@ File - Specifies the full path of the JavaScript Object Notation (JSON) file that contains the description of the table. + Specifies the full path of the JavaScript Object Notation (JSON) file that contains the description of the dataset. String @@ -3741,7 +3741,7 @@ Force - Indicates that this cmdlet replaces an existing table without prompting you for confirmation. + Indicates that this cmdlet replaces an existing dataset without prompting you for confirmation. SwitchParameter @@ -3753,7 +3753,7 @@ Name - Specifies the name of the table to create. + Specifies the name of the dataset to create. String @@ -3765,7 +3765,7 @@ ResourceGroupName - Specifies the name of an Azure resource group. This cmdlet creates a table in the group that this parameter specifies. + Specifies the name of an Azure resource group. This cmdlet creates a dataset in the group that this parameter specifies. String @@ -3790,7 +3790,7 @@ - Microsoft.WindowsAzure.Commands.Utilities.PSTable + Microsoft.WindowsAzure.Commands.Utilities.PSDataset @@ -3803,13 +3803,13 @@ - Example 1: Create a table + Example 1: Create a dataset - PS C:\> New-AzureDataFactoryTable -ResourceGroupName "ADF" -DataFactoryName "WikiADF" -Name "DAWikipediaClickEvents" -File "C:\\samples\\WikiSample\\DA_WikipediaClickEvents.json" - TableName : DAWikipediaClickEvents + PS C:\> New-AzureDataFactoryDataset -ResourceGroupName "ADF" -DataFactoryName "WikiADF" -Name "DAWikipediaClickEvents" -File "C:\\samples\\WikiSample\\DA_WikipediaClickEvents.json" + DatasetName : DAWikipediaClickEvents ResourceGroupName : ADF DataFactoryName : WikiADF Availability : Microsoft.DataFactories.Availability @@ -3819,7 +3819,7 @@ Published : False - This command creates a table named DA_WikipediaClickEvents in the data factory named WikiADF. The command bases the table on information in the DAWikipediaClickEvents.json file. + This command creates a dataset named DA_WikipediaClickEvents in the data factory named WikiADF. The command bases the dataset on information in the DAWikipediaClickEvents.json file. @@ -3828,12 +3828,12 @@ - Example 2: View availability for a new table + Example 2: View availability for a new dataset - PS C:\> $Table = New-AzureDataFactoryTable -ResourceGroupName "ADF" -DataFactoryName "WikiADF" -Name "DAWikipediaClickEvents" -File "C:\\samples\\WikiSample\\DA_WikipediaClickEvents.json"PS C:\> $Table.Availability + PS C:\> $Dataset = New-AzureDataFactoryDataset -ResourceGroupName "ADF" -DataFactoryName "WikiADF" -Name "DAWikipediaClickEvents" -File "C:\\samples\\WikiSample\\DA_WikipediaClickEvents.json"PS C:\> $Dataset.Availability AnchorDateTime : Frequency : Hour Interval : 1 @@ -3841,8 +3841,8 @@ WaitOnExternal : Microsoft.DataFactories.WaitOnExternal - The first command creates a table named DA_WikipediaClickEvents, as in a previous example, and then assigns that table to the $Table variable. - The second command uses standard dot notation to display details about the Availability property of the table. + The first command creates a dataset named DA_WikipediaClickEvents, as in a previous example, and then assigns that dataset to the $Dataset variable. + The second command uses standard dot notation to display details about the Availability property of the dataset. @@ -3851,12 +3851,12 @@ - Example 3: View location for a new table + Example 3: View location for a new dataset - PS C:\> $Table = New-AzureDataFactoryTable -ResourceGroupName "ADF" -DataFactoryName "WikiADF" -Name "DAWikipediaClickEvents" -File "C:\\samples\\WikiSample\\DA_WikipediaClickEvents.json"PS C:\> $Table.Location + PS C:\> $Dataset = New-AzureDataFactoryDataset -ResourceGroupName "ADF" -DataFactoryName "WikiADF" -Name "DAWikipediaClickEvents" -File "C:\\samples\\WikiSample\\DA_WikipediaClickEvents.json"PS C:\> $Dataset.Location BlobPath : wikidatagateway/wikisampledatain/ FilenamePrefix : Format : @@ -3864,8 +3864,8 @@ PartitionBy : {} - The first command creates a table named DA_WikipediaClickEvents, as in a previous example, and then assigns that table to the $Table variable. - The second command displays details about the Location property of the table. + The first command creates a dataset named DA_WikipediaClickEvents, as in a previous example, and then assigns that dataset to the $Dataset variable. + The second command displays details about the Location property of the dataset. @@ -3874,12 +3874,12 @@ - Example 4: View validation rules for a new table + Example 4: View validation rules for a new dataset - PS C:\> $Table = New-AzureDataFactoryTable -ResourceGroupName "ADF" -DataFactoryName "WikiADF" -Name "DAWikipediaClickEvents" -File "C:\\samples\\WikiSample\\DA_WikipediaClickEvents.json"PS C:\> $Table.Policy.Validation | Format-List $table.Location + PS C:\> $Dataset = New-AzureDataFactoryDataset -ResourceGroupName "ADF" -DataFactoryName "WikiADF" -Name "DAWikipediaClickEvents" -File "C:\\samples\\WikiSample\\DA_WikipediaClickEvents.json"PS C:\> $Dataset.Policy.Validation | Format-List $dataset.Location BlobPath : wikidatagateway/wikisampledatain/ FilenamePrefix : @@ -3891,8 +3891,8 @@ MinimumSizeMB : 1 - The first command creates a table named DA_WikipediaClickEvents, as in a previous example, and then assigns that table to the $Table variable. - The second command gets details about the validation rules for the table, and then passes them to the Format-List cmdlet by using the pipeline operator. That Windows PowerShell cmdlet formats the results. For more information, type Get-Help Format-List. + The first command creates a dataset named DA_WikipediaClickEvents, as in a previous example, and then assigns that dataset to the $Dataset variable. + The second command gets details about the validation rules for the dataset, and then passes them to the Format-List cmdlet by using the pipeline operator. That Windows PowerShell cmdlet formats the results. For more information, type Get-Help Format-List. @@ -3903,11 +3903,11 @@ - Get-AzureDataFactoryTable + Get-AzureDataFactoryDataset - Remove-AzureDataFactoryTable + Remove-AzureDataFactoryDataset @@ -4889,72 +4889,72 @@ - Remove-AzureDataFactoryTable + Remove-AzureDataFactoryDataset - Removes a table from Data Factory. + Removes a dataset from Data Factory. Remove - AzureDataFactoryTable + AzureDataFactoryDataset - The Remove-AzureDataFactoryTable cmdlet removes a table from Azure Data Factory. + The Remove-AzureDataFactoryDataset cmdlet removes a dataset from Azure Data Factory. You must be in AzureResourceManager mode to run Azure Data Factory cmdlets. To switch to AzureResourceManager mode, type Switch-AzureMode AzureResourceManager. - Remove-AzureDataFactoryTable + Remove-AzureDataFactoryDataset ResourceGroupName - Specifies the name of an Azure resource group. This cmdlet removes a table from the group that this parameter specifies. + Specifies the name of an Azure resource group. This cmdlet removes a dataset from the group that this parameter specifies. String DataFactoryName - Specifies the name of a data factory. This cmdlet removes a table from the data factory that this parameter specifies. + Specifies the name of a data factory. This cmdlet removes a dataset from the data factory that this parameter specifies. String - + Name - Specifies the name of the table to remove. + Specifies the name of the dataset to remove. String Force - Indicates that this cmdlet removes a table without prompting you for confirmation. + Indicates that this cmdlet removes a dataset without prompting you for confirmation. - Remove-AzureDataFactoryTable + Remove-AzureDataFactoryDataset DataFactory - Specifies a PSDataFactory object. This cmdlet removes a table from the data factory that this parameter specifies. + Specifies a PSDataFactory object. This cmdlet removes a dataset from the data factory that this parameter specifies. PSDataFactory - + Name - Specifies the name of the table to remove. + Specifies the name of the dataset to remove. String Force - Indicates that this cmdlet removes a table without prompting you for confirmation. + Indicates that this cmdlet removes a dataset without prompting you for confirmation. @@ -4963,7 +4963,7 @@ DataFactory - Specifies a PSDataFactory object. This cmdlet removes a table from the data factory that this parameter specifies. + Specifies a PSDataFactory object. This cmdlet removes a dataset from the data factory that this parameter specifies. PSDataFactory @@ -4975,7 +4975,7 @@ DataFactoryName - Specifies the name of a data factory. This cmdlet removes a table from the data factory that this parameter specifies. + Specifies the name of a data factory. This cmdlet removes a dataset from the data factory that this parameter specifies. String @@ -4987,7 +4987,7 @@ Force - Indicates that this cmdlet removes a table without prompting you for confirmation. + Indicates that this cmdlet removes a dataset without prompting you for confirmation. SwitchParameter @@ -4996,10 +4996,10 @@ - + Name - Specifies the name of the table to remove. + Specifies the name of the dataset to remove. String @@ -5011,7 +5011,7 @@ ResourceGroupName - Specifies the name of an Azure resource group. This cmdlet removes a table from the group that this parameter specifies. + Specifies the name of an Azure resource group. This cmdlet removes a dataset from the group that this parameter specifies. String @@ -5049,19 +5049,19 @@ - Example 1: Remove a table + Example 1: Remove a dataset - PS C:\> Remove-AzureDataFactoryTable -ResourceGroupName "ADF" -DataFactoryName "WikiADF" -Name "DAWikiAggregatedData" + PS C:\> Remove-AzureDataFactoryDataset -ResourceGroupName "ADF" -DataFactoryName "WikiADF" -Name "DAWikiAggregatedData" Confirm - Are you sure you want to remove table 'DAWikiAggregatedData' in data factory 'WikiADF'? + Are you sure you want to remove dataset 'DAWikiAggregatedData' in data factory 'WikiADF'? [Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): y True - This command removes the table named DAWikiAggregatedData from the data factory named WikiADF. The command returns a value of $True. + This command removes the dataset named DAWikiAggregatedData from the data factory named WikiADF. The command returns a value of $True. @@ -5072,11 +5072,11 @@ - Get-AzureDataFactoryTable + Get-AzureDataFactoryDataset - New-AzureDataFactoryTable + New-AzureDataFactoryDataset @@ -5787,8 +5787,8 @@ - The Set-AzureDataFactoryPipelineActivePeriod cmdlet configures the active period for the data slices that are processed by a pipeline in Azure Data Factory. If you use the Set-AzureDataFactorySliceStatus cmdlet to modify the status of slices for a table, make sure that the start time and end time for a slice are in the active period of the pipeline. - After you create a pipeline, you can specify the period in which data processing occurs. Specifying the active period for a pipeline defines the time duration in which the data slices are processed based on the Availability properties that were defined for each Data Factory table. + The Set-AzureDataFactoryPipelineActivePeriod cmdlet configures the active period for the data slices that are processed by a pipeline in Azure Data Factory. If you use the Set-AzureDataFactorySliceStatus cmdlet to modify the status of slices for a dataset, make sure that the start time and end time for a slice are in the active period of the pipeline. + After you create a pipeline, you can specify the period in which data processing occurs. Specifying the active period for a pipeline defines the time duration in which the data slices are processed based on the Availability properties that were defined for each Data Factory dataset. You must be in AzureResourceManager mode to run Azure Data Factory cmdlets. To switch to AzureResourceManager mode, type Switch-AzureMode AzureResourceManager. @@ -6090,7 +6090,7 @@ Set-AzureDataFactorySliceStatus - Sets the status of slices for a table in Data Factory. + Sets the status of slices for a dataset in Data Factory. @@ -6100,7 +6100,7 @@ - The Set-AzureDataFactorySliceStatus cmdlet sets the status of slices for a table in Azure Data Factory. + The Set-AzureDataFactorySliceStatus cmdlet sets the status of slices for a dataset in Azure Data Factory. You must be in AzureResourceManager mode to run Azure Data Factory cmdlets. To switch to AzureResourceManager mode, type Switch-AzureMode AzureResourceManager. @@ -6121,9 +6121,9 @@ String - TableName + DatasetName - Specifies the name of the table for which this cmdlet modifies slices. + Specifies the name of the dataset for which this cmdlet modifies slices. String @@ -6165,8 +6165,8 @@ Specifies the type of update to the slice. Valid values are: - -- Individual. Sets the status of each slice for the table in the specified time range. - -- UpstreamInPipeline. Sets the status of each slice for the table and all the dependent tables, which are used as input tables for activities in the pipeline. + -- Individual. Sets the status of each slice for the dataset in the specified time range. + -- UpstreamInPipeline. Sets the status of each slice for the dataset and all the dependent datasets, which are used as input datasets for activities in the pipeline. String @@ -6182,9 +6182,9 @@ PSDataFactory - TableName + DatasetName - Specifies the name of the table for which this cmdlet modifies slices. + Specifies the name of the dataset for which this cmdlet modifies slices. String @@ -6226,8 +6226,8 @@ Specifies the type of update to the slice. Valid values are: - -- Individual. Sets the status of each slice for the table in the specified time range. - -- UpstreamInPipeline. Sets the status of each slice for the table and all the dependent tables, which are used as input tables for activities in the pipeline. + -- Individual. Sets the status of each slice for the dataset in the specified time range. + -- UpstreamInPipeline. Sets the status of each slice for the dataset and all the dependent datasets, which are used as input datasets for activities in the pipeline. String @@ -6319,9 +6319,9 @@ - TableName + DatasetName - Specifies the name of the table for which this cmdlet modifies slices. + Specifies the name of the dataset for which this cmdlet modifies slices. String @@ -6336,8 +6336,8 @@ Specifies the type of update to the slice. Valid values are: - -- Individual. Sets the status of each slice for the table in the specified time range. - -- UpstreamInPipeline. Sets the status of each slice for the table and all the dependent tables, which are used as input tables for activities in the pipeline. + -- Individual. Sets the status of each slice for the dataset in the specified time range. + -- UpstreamInPipeline. Sets the status of each slice for the dataset and all the dependent datasets, which are used as input datasets for activities in the pipeline. String @@ -6381,11 +6381,11 @@ - PS C:\> Set-AzureDataFactorySliceStatus -ResourceGroupName "ADF" -DataFactoryName "WikiADF" -TableName "DAWikiAggregatedData" -StartDateTime 2014-05-21T16:00:00Z -EndDateTime 2014-05-21T20:00:00Z -Status "PendingExecution" -UpdateType "UpstreamInPipeline" + PS C:\> Set-AzureDataFactorySliceStatus -ResourceGroupName "ADF" -DataFactoryName "WikiADF" -DatasetName "DAWikiAggregatedData" -StartDateTime 2014-05-21T16:00:00Z -EndDateTime 2014-05-21T20:00:00Z -Status "PendingExecution" -UpdateType "UpstreamInPipeline" True - This command sets the status of all slices for the table named DAWikiAggregatedData to PendingExecution in the data factory named WikiADF. The UpdateType parameter has a value of UpstreamInPipeline, and so the command sets the status of each slice for the table and all dependent tables. Dependent tables are used as input tables for activities in the pipeline. This command returns a value of $True. + This command sets the status of all slices for the dataset named DAWikiAggregatedData to PendingExecution in the data factory named WikiADF. The UpdateType parameter has a value of UpstreamInPipeline, and so the command sets the status of each slice for the dataset and all dependent datasets. Dependent datasets are used as input datasets for activities in the pipeline. This command returns a value of $True. diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/Microsoft.Azure.Commands.DataFactories.format.ps1xml b/src/ResourceManager/DataFactories/Commands.DataFactories/Microsoft.Azure.Commands.DataFactories.format.ps1xml index 5f85dd744b4f..2490451643d9 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/Microsoft.Azure.Commands.DataFactories.format.ps1xml +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/Microsoft.Azure.Commands.DataFactories.format.ps1xml @@ -36,17 +36,17 @@ - Microsoft.Azure.Commands.DataFactories.Models.PSTable + Microsoft.Azure.Commands.DataFactories.Models.PSDataset - Microsoft.Azure.Commands.DataFactories.Models.PSTable + Microsoft.Azure.Commands.DataFactories.Models.PSDataset - - TableName + + DatasetName diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/Models/CreatePSTableParameters.cs b/src/ResourceManager/DataFactories/Commands.DataFactories/Models/CreatePSTableParameters.cs index b6e71ad88331..53e86e408379 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/Models/CreatePSTableParameters.cs +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/Models/CreatePSTableParameters.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Commands.DataFactories { - public class CreatePSTableParameters : DataFactoryParametersBase + public class CreatePSDatasetParameters : DataFactoryParametersBase { public string Name { get; set; } diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/Models/DataFactoryClient.DataSlices.cs b/src/ResourceManager/DataFactories/Commands.DataFactories/Models/DataFactoryClient.DataSlices.cs index 9be29c1384e4..d7ed89de52b8 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/Models/DataFactoryClient.DataSlices.cs +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/Models/DataFactoryClient.DataSlices.cs @@ -41,7 +41,7 @@ public virtual List ListDataSliceRuns(DataSliceRunFilterOptions response = DataPipelineManagementClient.DataSliceRuns.List( filterOptions.ResourceGroupName, filterOptions.DataFactoryName, - filterOptions.TableName, + filterOptions.DatasetName, new DataSliceRunListParameters() { DataSliceStartTime = filterOptions.StartDateTime.ConvertToISO8601DateTimeString() @@ -58,7 +58,7 @@ public virtual List ListDataSliceRuns(DataSliceRunFilterOptions { ResourceGroupName = filterOptions.ResourceGroupName, DataFactoryName = filterOptions.DataFactoryName, - TableName = filterOptions.TableName + DatasetName = filterOptions.DatasetName }); } } @@ -80,7 +80,7 @@ public virtual List ListDataSlices(DataSliceFilterOptions filterOpt response = DataPipelineManagementClient.DataSlices.List( filterOptions.ResourceGroupName, filterOptions.DataFactoryName, - filterOptions.TableName, + filterOptions.DatasetName, new DataSliceListParameters() { DataSliceRangeStartTime = filterOptions.DataSliceRangeStartTime.ConvertToISO8601DateTimeString(), @@ -98,7 +98,7 @@ public virtual List ListDataSlices(DataSliceFilterOptions filterOpt { ResourceGroupName = filterOptions.ResourceGroupName, DataFactoryName = filterOptions.DataFactoryName, - TableName = filterOptions.TableName + DatasetName = filterOptions.DatasetName }); } } @@ -109,7 +109,7 @@ public virtual List ListDataSlices(DataSliceFilterOptions filterOpt public virtual void SetSliceStatus( string resourceGroupName, string dataFactoryName, - string tableName, + string datasetName, string sliceState, string updateType, DateTime dataSliceRangeStartTime, @@ -118,7 +118,7 @@ public virtual void SetSliceStatus( DataPipelineManagementClient.DataSlices.SetStatus( resourceGroupName, dataFactoryName, - tableName, + datasetName, new DataSliceSetStatusParameters() { SliceState = sliceState, diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/Models/DataFactoryClient.Tables.cs b/src/ResourceManager/DataFactories/Commands.DataFactories/Models/DataFactoryClient.Datasets.cs similarity index 68% rename from src/ResourceManager/DataFactories/Commands.DataFactories/Models/DataFactoryClient.Tables.cs rename to src/ResourceManager/DataFactories/Commands.DataFactories/Models/DataFactoryClient.Datasets.cs index 7677d3bba6a5..fbf1b8546e29 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/Models/DataFactoryClient.Tables.cs +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/Models/DataFactoryClient.Datasets.cs @@ -27,7 +27,7 @@ namespace Microsoft.Azure.Commands.DataFactories { public partial class DataFactoryClient { - public virtual Table CreateOrUpdateTable(string resourceGroupName, string dataFactoryName, string tableName, string rawJsonContent) + public virtual Table CreateOrUpdateDataset(string resourceGroupName, string dataFactoryName, string datasetName, string rawJsonContent) { if (string.IsNullOrWhiteSpace(rawJsonContent)) { @@ -38,27 +38,27 @@ public virtual Table CreateOrUpdateTable(string resourceGroupName, string dataFa var response = DataPipelineManagementClient.Tables.CreateOrUpdateWithRawJsonContent( resourceGroupName, dataFactoryName, - tableName, + datasetName, new TableCreateOrUpdateWithRawJsonContentParameters() { Content = rawJsonContent }); return response.Table; } - public virtual PSTable GetTable(string resourceGroupName, string dataFactoryName, string tableName) + public virtual PSDataset GetDataset(string resourceGroupName, string dataFactoryName, string datasetName) { var response = DataPipelineManagementClient.Tables.Get( - resourceGroupName, dataFactoryName, tableName); + resourceGroupName, dataFactoryName, datasetName); - return new PSTable(response.Table) + return new PSDataset(response.Table) { ResourceGroupName = resourceGroupName, DataFactoryName = dataFactoryName }; } - public virtual List ListTables(TableFilterOptions filterOptions) + public virtual List ListDatasets(DatasetFilterOptions filterOptions) { - List tables = new List(); + List datasets = new List(); TableListResponse response; if (filterOptions.NextLink.IsNextPageLink()) @@ -73,10 +73,10 @@ public virtual List ListTables(TableFilterOptions filterOptions) if (response != null && response.Tables != null) { - foreach (var table in response.Tables) + foreach (var dataset in response.Tables) { - tables.Add( - new PSTable(table) + datasets.Add( + new PSDataset(dataset) { ResourceGroupName = filterOptions.ResourceGroupName, DataFactoryName = filterOptions.DataFactoryName @@ -84,16 +84,16 @@ public virtual List ListTables(TableFilterOptions filterOptions) } } - return tables; + return datasets; } - public virtual HttpStatusCode DeleteTable(string resourceGroupName, string dataFactoryName, string tableName) + public virtual HttpStatusCode DeleteDataset(string resourceGroupName, string dataFactoryName, string datasetName) { - AzureOperationResponse response = DataPipelineManagementClient.Tables.Delete(resourceGroupName, dataFactoryName, tableName); + AzureOperationResponse response = DataPipelineManagementClient.Tables.Delete(resourceGroupName, dataFactoryName, datasetName); return response.StatusCode; } - public virtual List FilterPSTables(TableFilterOptions filterOptions) + public virtual List FilterPSDatasets(DatasetFilterOptions filterOptions) { if (filterOptions == null) { @@ -105,32 +105,32 @@ public virtual List FilterPSTables(TableFilterOptions filterOptions) throw new ArgumentException(Resources.ResourceGroupNameCannotBeEmpty); } - List tables = new List(); + List datasets = new List(); if (!string.IsNullOrWhiteSpace(filterOptions.Name)) { - tables.Add(GetTable(filterOptions.ResourceGroupName, filterOptions.DataFactoryName, filterOptions.Name)); + datasets.Add(this.GetDataset(filterOptions.ResourceGroupName, filterOptions.DataFactoryName, filterOptions.Name)); } else { - tables.AddRange(ListTables(filterOptions)); + datasets.AddRange(this.ListDatasets(filterOptions)); } - return tables; + return datasets; } - public virtual PSTable CreatePSTable(CreatePSTableParameters parameters) + public virtual PSDataset CreatePSDataset(CreatePSDatasetParameters parameters) { if (parameters == null) { throw new ArgumentNullException("parameters"); } - PSTable table = null; - Action createTable = () => + PSDataset dataset = null; + Action createDataset = () => { - table = - new PSTable(CreateOrUpdateTable( + dataset = + new PSDataset(this.CreateOrUpdateDataset( parameters.ResourceGroupName, parameters.DataFactoryName, parameters.Name, @@ -140,50 +140,50 @@ public virtual PSTable CreatePSTable(CreatePSTableParameters parameters) DataFactoryName = parameters.DataFactoryName }; - if (!DataFactoryCommonUtilities.IsSucceededProvisioningState(table.ProvisioningState)) + if (!DataFactoryCommonUtilities.IsSucceededProvisioningState(dataset.ProvisioningState)) { - string errorMessage = table.Properties == null + string errorMessage = dataset.Properties == null ? string.Empty - : table.Properties.ErrorMessage; + : dataset.Properties.ErrorMessage; throw new ProvisioningFailedException(errorMessage); } }; if (parameters.Force) { - // If user decides to overwrite anyway, then there is no need to check if the table exists or not. - createTable(); + // If user decides to overwrite anyway, then there is no need to check if the dataset exists or not. + createDataset(); } else { - bool tableExists = CheckTableExists(parameters.ResourceGroupName, parameters.DataFactoryName, + bool datasetExists = this.CheckDatasetExists(parameters.ResourceGroupName, parameters.DataFactoryName, parameters.Name); parameters.ConfirmAction( - !tableExists, // prompt only if the table exists + !datasetExists, // prompt only if the dataset exists string.Format( CultureInfo.InvariantCulture, - Resources.TableExists, + Resources.DatasetExists, parameters.Name, parameters.DataFactoryName), string.Format( CultureInfo.InvariantCulture, - Resources.TableCreating, + Resources.DatasetCreating, parameters.Name, parameters.DataFactoryName), parameters.Name, - createTable); + createDataset); } - return table; + return dataset; } - private bool CheckTableExists(string resourceGroupName, string dataFactoryName, string tableName) + private bool CheckDatasetExists(string resourceGroupName, string dataFactoryName, string datasetName) { - // ToDo: implement HEAD to check if the table exists + // ToDo: implement HEAD to check if the dataset exists try { - PSTable table = GetTable(resourceGroupName, dataFactoryName, tableName); + PSDataset dataset = this.GetDataset(resourceGroupName, dataFactoryName, datasetName); return true; } diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/Models/DataSliceFilterOptions.cs b/src/ResourceManager/DataFactories/Commands.DataFactories/Models/DataSliceFilterOptions.cs index f9d0e994ad50..488e839c54b2 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/Models/DataSliceFilterOptions.cs +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/Models/DataSliceFilterOptions.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.DataFactories { public class DataSliceFilterOptions { - public string TableName { get; set; } + public string DatasetName { get; set; } public string ResourceGroupName { get; set; } diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/Models/DataSliceRunFilterOptions.cs b/src/ResourceManager/DataFactories/Commands.DataFactories/Models/DataSliceRunFilterOptions.cs index f6ac6eac63ee..545a1de13b22 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/Models/DataSliceRunFilterOptions.cs +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/Models/DataSliceRunFilterOptions.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.DataFactories { public class DataSliceRunFilterOptions { - public string TableName { get; set; } + public string DatasetName { get; set; } public string ResourceGroupName { get; set; } diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/Models/PSDataSlice.cs b/src/ResourceManager/DataFactories/Commands.DataFactories/Models/PSDataSlice.cs index dcbe0c76e670..752b418a2673 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/Models/PSDataSlice.cs +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/Models/PSDataSlice.cs @@ -43,7 +43,7 @@ public PSDataSlice(DataSlice dataSlice) public string DataFactoryName { get; set; } - public string TableName { get; set; } + public string DatasetName { get; set; } public DateTime Start { diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/Models/PSDataSliceRun.cs b/src/ResourceManager/DataFactories/Commands.DataFactories/Models/PSDataSliceRun.cs index 6d028e586976..2850dc71143e 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/Models/PSDataSliceRun.cs +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/Models/PSDataSliceRun.cs @@ -56,7 +56,7 @@ internal set public string DataFactoryName { get; set; } - public string TableName { get; set; } + public string DatasetName { get; set; } public DateTime ProcessingStartTime { diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/Models/PSTable.cs b/src/ResourceManager/DataFactories/Commands.DataFactories/Models/PSDataset.cs similarity index 65% rename from src/ResourceManager/DataFactories/Commands.DataFactories/Models/PSTable.cs rename to src/ResourceManager/DataFactories/Commands.DataFactories/Models/PSDataset.cs index e3798a009075..6c112d988fc4 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/Models/PSTable.cs +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/Models/PSDataset.cs @@ -19,39 +19,39 @@ namespace Microsoft.Azure.Commands.DataFactories.Models { - public class PSTable + public class PSDataset { - private Table table; + private Table dataset; - public PSTable() + public PSDataset() { - table = new Table() {Properties = new TableProperties()}; + this.dataset = new Table() {Properties = new TableProperties()}; } - public PSTable(Table table) + public PSDataset(Table dataset) { - if (table == null) + if (dataset == null) { - throw new ArgumentNullException("table"); + throw new ArgumentNullException("dataset"); } - if (table.Properties == null) + if (dataset.Properties == null) { - table.Properties = new TableProperties(); + dataset.Properties = new TableProperties(); } - this.table = table; + this.dataset = dataset; } - public string TableName + public string DatasetName { get { - return table.Name; + return this.dataset.Name; } set { - table.Name = value; + this.dataset.Name = value; } } @@ -63,11 +63,11 @@ public Availability Availability { get { - return table.Properties.Availability; + return this.dataset.Properties.Availability; } set { - table.Properties.Availability = value; + this.dataset.Properties.Availability = value; } } @@ -75,11 +75,11 @@ public TableTypeProperties Location { get { - return table.Properties.TypeProperties; + return this.dataset.Properties.TypeProperties; } set { - table.Properties.TypeProperties = value; + this.dataset.Properties.TypeProperties = value; } } @@ -87,11 +87,11 @@ public Policy Policy { get { - return table.Properties.Policy; + return this.dataset.Properties.Policy; } set { - table.Properties.Policy = value; + this.dataset.Properties.Policy = value; } } @@ -99,11 +99,11 @@ public IList Structure { get { - return table.Properties.Structure; + return this.dataset.Properties.Structure; } set { - table.Properties.Structure = value; + this.dataset.Properties.Structure = value; } } @@ -111,11 +111,11 @@ public bool? Published { get { - return table.Properties.Published; + return this.dataset.Properties.Published; } set { - table.Properties.Published = value; + this.dataset.Properties.Published = value; } } @@ -123,11 +123,11 @@ public TableProperties Properties { get { - return table.Properties; + return this.dataset.Properties; } set { - table.Properties = value; + this.dataset.Properties = value; } } diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/Models/TableFilterOptions.cs b/src/ResourceManager/DataFactories/Commands.DataFactories/Models/TableFilterOptions.cs index aca5e6f50af4..53278bf3b507 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/Models/TableFilterOptions.cs +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/Models/TableFilterOptions.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Commands.DataFactories { - public class TableFilterOptions + public class DatasetFilterOptions { public string Name { get; set; } diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/Properties/Resources.Designer.cs b/src/ResourceManager/DataFactories/Commands.DataFactories/Properties/Resources.Designer.cs index 6a80eaa0de94..89515c7d0ef0 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/Properties/Resources.Designer.cs +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/Properties/Resources.Designer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34209 +// Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -143,6 +143,53 @@ internal static string DataFactoryRemoving { } } + /// + /// Looks up a localized string similar to Are you sure you want to remove dataset '{0}' in data factory '{1}'?. + /// + internal static string DatasetConfirmationMessage { + get { + return ResourceManager.GetString("DatasetConfirmationMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Creating dataset '{0}' in data factory '{1}'.. + /// + internal static string DatasetCreating { + get { + return ResourceManager.GetString("DatasetCreating", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A dataset with the name {0} in the data factory {1} already exists. + ///Continuing execution will overwrite the exisiting one. + ///Are you sure you want to continue?. + /// + internal static string DatasetExists { + get { + return ResourceManager.GetString("DatasetExists", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Dataset '{0}' does not exist in data factory '{1}'.. + /// + internal static string DatasetNotFound { + get { + return ResourceManager.GetString("DatasetNotFound", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing dataset '{0}' in data factory '{1}'.. + /// + internal static string DatasetRemoving { + get { + return ResourceManager.GetString("DatasetRemoving", resourceCulture); + } + } + /// /// Looks up a localized string similar to The argument set for download method is incomplete.. /// @@ -414,52 +461,5 @@ internal static string ResourceGroupNameCannotBeEmpty { return ResourceManager.GetString("ResourceGroupNameCannotBeEmpty", resourceCulture); } } - - /// - /// Looks up a localized string similar to Are you sure you want to remove table '{0}' in data factory '{1}'?. - /// - internal static string TableConfirmationMessage { - get { - return ResourceManager.GetString("TableConfirmationMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Creating table '{0}' in data factory '{1}'.. - /// - internal static string TableCreating { - get { - return ResourceManager.GetString("TableCreating", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A table with the name {0} in the data factory {1} already exists. - ///Continuing execution will overwrite the exisiting one. - ///Are you sure you want to continue?. - /// - internal static string TableExists { - get { - return ResourceManager.GetString("TableExists", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Table '{0}' does not exist in data factory '{1}'.. - /// - internal static string TableNotFound { - get { - return ResourceManager.GetString("TableNotFound", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Removing table '{0}' in data factory '{1}'.. - /// - internal static string TableRemoving { - get { - return ResourceManager.GetString("TableRemoving", resourceCulture); - } - } } } diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/Properties/Resources.resx b/src/ResourceManager/DataFactories/Commands.DataFactories/Properties/Resources.resx index 708211898133..3c2635950062 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/Properties/Resources.resx +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/Properties/Resources.resx @@ -225,22 +225,22 @@ Are you sure you want to continue? Resource group name cannot be null. - - Are you sure you want to remove table '{0}' in data factory '{1}'? + + Are you sure you want to remove dataset '{0}' in data factory '{1}'? - - Creating table '{0}' in data factory '{1}'. + + Creating dataset '{0}' in data factory '{1}'. - - A table with the name {0} in the data factory {1} already exists. + + A dataset with the name {0} in the data factory {1} already exists. Continuing execution will overwrite the exisiting one. Are you sure you want to continue? - - Table '{0}' does not exist in data factory '{1}'. + + Dataset '{0}' does not exist in data factory '{1}'. - - Removing table '{0}' in data factory '{1}'. + + Removing dataset '{0}' in data factory '{1}'. No Slices were found in the time range specified. diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/packages.config b/src/ResourceManager/DataFactories/Commands.DataFactories/packages.config index 42e0ca391d99..408a7e130b4e 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/packages.config +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Commands.SiteRecovery.csproj b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Commands.SiteRecovery.csproj index 1e77ec9fe3f9..7b6708cb468e 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Commands.SiteRecovery.csproj +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Commands.SiteRecovery.csproj @@ -30,6 +30,9 @@ TRACE prompt 4 + true + MSSharedLibKey.snk + true @@ -158,6 +161,7 @@ + diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/MSSharedLibKey.snk b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/MSSharedLibKey.snk new file mode 100644 index 000000000000..695f1b38774e Binary files /dev/null and b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/MSSharedLibKey.snk differ diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/Diagnostics/SetAzureVMDiagnosticsExtension.cs b/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/Diagnostics/SetAzureVMDiagnosticsExtension.cs index 1d4ffeaa82e0..3d9854dfda4b 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/Diagnostics/SetAzureVMDiagnosticsExtension.cs +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/Diagnostics/SetAzureVMDiagnosticsExtension.cs @@ -21,7 +21,9 @@ using Microsoft.WindowsAzure.Commands.Common.Storage; using Microsoft.WindowsAzure.Commands.ServiceManagement.Model; using Microsoft.WindowsAzure.Commands.ServiceManagement.Properties; +using Microsoft.WindowsAzure.Commands.Utilities.Common; using Microsoft.WindowsAzure.Management.Storage; +using Newtonsoft.Json; namespace Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions { @@ -33,11 +35,11 @@ namespace Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions typeof(IPersistentVM))] public class SetAzureVMDiagnosticsExtensionCommand : VirtualMachineDiagnosticsExtensionCmdletBase { + private string publicConfiguration; + private string privateConfiguration; + private string storageKey; protected const string SetExtParamSetName = "SetDiagnosticsExtension"; protected const string SetExtRefParamSetName = "SetDiagnosticsWithReferenceExtension"; - private const string PublicConfigurationTemplate = "\"xmlCfg\":\"{0}\", \"StorageAccount\":\"{1}\" "; - private readonly string PrivateConfigurationTemplate = "\"storageAccountName\":\"{0}\", \"storageAccountKey\":\"{1}\", \"storageAccountEndPoint\":\"{2}\""; - private readonly string XmlNamespace = "http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration"; [Parameter( ParameterSetName = SetExtParamSetName, Mandatory = true, @@ -106,117 +108,91 @@ public AzureStorageContext StorageContext HelpMessage = "To specify the reference name.")] public override string ReferenceName { get; set; } - internal void ExecuteCommand() + public string StorageAccountName { - ValidateParameters(); - RemovePredicateExtensions(); - AddResourceExtension(); - WriteObject(VM); - UpdateAzureVMCommand cmd = new UpdateAzureVMCommand(); - } - - protected override void ValidateParameters() - { - base.ValidateParameters(); - ValidateStorageAccount(); - ValidateConfiguration(); - ExtensionName = DiagnosticsExtensionType; - Publisher = DiagnosticsExtensionNamespace; - - // If the user didn't specify an extension reference name and the input VM already has a diagnostics extension, - // reuse its reference name - if (string.IsNullOrEmpty(ReferenceName)) + get { - ResourceExtensionReference diagnosticsExtension = ResourceExtensionReferences.FirstOrDefault(ExtensionPredicate); - if (diagnosticsExtension != null) - { - ReferenceName = diagnosticsExtension.ReferenceName; - } + return this.StorageContext.StorageAccountName; } } - private void ValidateStorageAccount() + public string Endpoint { - StorageAccountName = StorageContext.StorageAccountName; - StorageKey = GetStorageKey(); - // We need the suffix, NOT the full account endpoint. - Endpoint = "https://" + StorageContext.EndPointSuffix; + get + { + return "https://" + this.StorageContext.EndPointSuffix; + } } - private void ValidateConfiguration() + public string StorageKey { - // Public configuration must look like: - // { "xmlCfg":"base-64 encoded string", "StorageAccount":"account_name", "localResourceDirectory":{ "path":"some_path", "expandResourceDirectory": }} - // - // localResourceDirectory is optional - // - // What we have in is something like: - // - // - // - // - // ... - // - // element and extract it - string fullConfig = sr.ReadToEnd(); - int wadCfgBeginIndex = fullConfig.IndexOf(""); - if (wadCfgBeginIndex == -1) + if (string.IsNullOrEmpty(this.storageKey)) { - throw new ArgumentException(Resources.IaasDiagnosticsBadConfigNoWadCfg); + this.storageKey = GetStorageKey(); } - int wadCfgEndIndex = fullConfig.IndexOf(""); - if(wadCfgEndIndex == -1) - { - throw new ArgumentException(Resources.IaasDiagnosticsBadConfigNoEndWadCfg); - } + return this.storageKey; + } + } - if(wadCfgEndIndex <= wadCfgBeginIndex) + public override string PublicConfiguration + { + get + { + if (string.IsNullOrEmpty(this.publicConfiguration)) { - throw new ArgumentException(Resources.IaasDiagnosticsBadConfigNoMatchingWadCfg); + this.publicConfiguration = + JsonConvert.SerializeObject(DiagnosticsHelper.GetPublicDiagnosticsConfigurationFromFile(this.DiagnosticsConfigurationPath, + this.StorageAccountName)); } - config = fullConfig.Substring(wadCfgBeginIndex, wadCfgEndIndex + "".Length - wadCfgBeginIndex); - config = Convert.ToBase64String(Encoding.UTF8.GetBytes(config.ToCharArray())); + return this.publicConfiguration; } + } - // Now extract the local resource directory element - XmlDocument doc = new XmlDocument(); - XmlNamespaceManager ns = new XmlNamespaceManager(doc.NameTable); - ns.AddNamespace("ns", XmlNamespace); - doc.Load(DiagnosticsConfigurationPath); - var node = doc.SelectSingleNode("//ns:LocalResourceDirectory", ns); - string localDirectory = (node != null && node.Attributes != null) ? node.Attributes["path"].Value : null; - string localDirectoryExpand = (node != null && node.Attributes != null) ? node.Attributes["expandEnvironment"].Value : null; - if (localDirectoryExpand == "0") - { - localDirectoryExpand = "false"; - } - if (localDirectoryExpand == "1") + public override string PrivateConfiguration + { + get { - localDirectoryExpand = "true"; + if (string.IsNullOrEmpty(this.privateConfiguration)) + { + this.privateConfiguration = + JsonConvert.SerializeObject(DiagnosticsHelper.GetPrivateDiagnosticsConfiguration(this.StorageAccountName, this.StorageKey, + this.Endpoint)); + } + + return this.privateConfiguration; } + } - PublicConfiguration = "{ "; - PublicConfiguration += string.Format(PublicConfigurationTemplate, config, StorageAccountName); - if (!string.IsNullOrEmpty(localDirectory)) - { - PublicConfiguration += ", \"localResourceDirectory\":{ \"path\":\"" + localDirectory + "\", \"expandResourceDirectory\":" + localDirectoryExpand + "}"; - } + internal void ExecuteCommand() + { + ValidateParameters(); + RemovePredicateExtensions(); + AddResourceExtension(); + WriteObject(VM); + UpdateAzureVMCommand cmd = new UpdateAzureVMCommand(); + } - PublicConfiguration += "}"; + protected override void ValidateParameters() + { + base.ValidateParameters(); + ExtensionName = DiagnosticsExtensionType; + Publisher = DiagnosticsExtensionNamespace; - // Private configuration must look like: - // { "storageAccountName":"your_account_name", "storageAccountKey":"your_key", "storageAccountEndPoint":"end_point" } - PrivateConfiguration = "{ "; - PrivateConfiguration += string.Format(PrivateConfigurationTemplate, StorageAccountName, StorageKey, Endpoint); - PrivateConfiguration += "}"; + // If the user didn't specify an extension reference name and the input VM already has a diagnostics extension, + // reuse its reference name + if (string.IsNullOrEmpty(ReferenceName)) + { + ResourceExtensionReference diagnosticsExtension = ResourceExtensionReferences.FirstOrDefault(ExtensionPredicate); + if (diagnosticsExtension != null) + { + ReferenceName = diagnosticsExtension.ReferenceName; + } + } } protected string GetStorageKey() diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/Diagnostics/VirtualMachineDiagnosticsExtensionCmdletBase.cs b/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/Diagnostics/VirtualMachineDiagnosticsExtensionCmdletBase.cs index d8e0b599439d..94d7e7407a5f 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/Diagnostics/VirtualMachineDiagnosticsExtensionCmdletBase.cs +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/Diagnostics/VirtualMachineDiagnosticsExtensionCmdletBase.cs @@ -20,10 +20,6 @@ public class VirtualMachineDiagnosticsExtensionCmdletBase : VirtualMachineExtens protected const string DiagnosticsExtensionType = "IaaSDiagnostics"; protected const string VirtualMachineDiagnosticsExtensionNoun = "AzureVMDiagnosticsExtension"; - protected string StorageAccountName { get; set; } - protected string StorageKey { get; set; } - protected string Endpoint { get; set; } - public VirtualMachineDiagnosticsExtensionCmdletBase() : base() {