* Updated SDK version dependency

* Merged restructured test suite

* Added cmd output checks

* SDK updates and test fixes

* Re-recorded tests

* Re-recorded tests

* doc update

* style fixes

* More style fixes
This commit is contained in:
annatisch 2017-05-19 15:18:25 -07:00 коммит произвёл Travis Prescott
Родитель 578ae397b7
Коммит 1203e0d28b
29 изменённых файлов: 12385 добавлений и 4081 удалений

Просмотреть файл

@ -164,10 +164,7 @@
<Compile Include="command_modules\azure-cli-batch\azure_bdist_wheel.py" />
<Compile Include="command_modules\azure-cli-batch\tests\test_batch_commands.py" />
<Compile Include="command_modules\azure-cli-batch\tests\test_batch_data_plane_commands.py" />
<Compile Include="command_modules\azure-cli-batch\tests\test_batch_data_plane_command_base.py" />
<Compile Include="command_modules\azure-cli-batch\tests\test_batch_job_commands.py" />
<Compile Include="command_modules\azure-cli-batch\tests\test_batch_mgmt_commands.py" />
<Compile Include="command_modules\azure-cli-batch\tests\test_batch_pool_commands.py" />
<Compile Include="command_modules\azure-cli-batch\tests\__init__.py" />
<Compile Include="command_modules\azure-cli-cdn\azure\cli\command_modules\cdn\commands.py" />
<Compile Include="command_modules\azure-cli-cdn\azure\cli\command_modules\cdn\custom.py" />

Просмотреть файл

@ -3,6 +3,13 @@
Release History
===============
3.0.0 (2017-05-29)
++++++++++++++++++
* Updated to Batch SDK 3.0.0 with support for low-priority VMs in pools.
* Changes to the pool create command: --target-dedicated has been renamed to --target-dedicated-nodes and two
new options have been added; --target-low-priority-nodes and --application-licenses
2.0.4 (2017-05-09)
++++++++++++++++++++

Просмотреть файл

@ -186,8 +186,8 @@ def application_enabled(namespace):
def validate_pool_resize_parameters(namespace):
"""Validate pool resize parameters correct"""
if not namespace.abort and not namespace.target_dedicated:
raise ValueError("The target-dedicated parameter is required to resize the pool.")
if not namespace.abort and not namespace.target_dedicated_nodes:
raise ValueError("The target-dedicated-nodes parameter is required to resize the pool.")
def validate_json_file(namespace):

Просмотреть файл

@ -99,7 +99,7 @@ cli_batch_data_plane_command('batch job create', data_path.format('job', 'JobOpe
ignore=['job.job_preparation_task', 'job.job_release_task', 'job.pool_info.auto_pool_specification', 'job.on_task_failure',
'job.job_manager_task.kill_job_on_completion', 'job.common_environment_settings', 'job.on_all_tasks_complete',
'job.job_manager_task.run_exclusive', 'job.job_manager_task.constraints', 'job.job_manager_task.application_package_references',
'job.job_manager_task.user_identity'])
'job.job_manager_task.user_identity', 'job.job_manager_task.allow_low_priority_node'])
cli_batch_data_plane_command('batch job delete', data_path.format('job', 'JobOperations.delete'), job_client_factory)
cli_batch_data_plane_command('batch job show', data_path.format('job', 'JobOperations.get'), job_client_factory)
cli_batch_data_plane_command('batch job set', data_path.format('job', 'JobOperations.patch'), job_client_factory, flatten=2)
@ -116,7 +116,8 @@ cli_batch_data_plane_command('batch job-schedule create', data_path.format('job_
'cloud_job_schedule.job_specification.job_manager_task.kill_job_on_completion',
'cloud_job_schedule.job_specification.job_manager_task.run_exclusive',
'cloud_job_schedule.job_specification.job_manager_task.application_package_references',
'cloud_job_schedule.job_specification.job_manager_task.environment_settings'])
'cloud_job_schedule.job_specification.job_manager_task.environment_settings',
'cloud_job_schedule.job_specification.job_manager_task.allow_low_priority_node'])
cli_batch_data_plane_command('batch job-schedule delete', data_path.format('job_schedule', 'JobScheduleOperations.delete'), job_schedule_client_factory)
cli_batch_data_plane_command('batch job-schedule show', data_path.format('job_schedule', 'JobScheduleOperations.get'), job_schedule_client_factory)
cli_batch_data_plane_command('batch job-schedule set', data_path.format('job_schedule', 'JobScheduleOperations.patch'), job_schedule_client_factory,
@ -126,7 +127,8 @@ cli_batch_data_plane_command('batch job-schedule set', data_path.format('job_sch
'job_schedule_patch_parameter.job_specification.on_task_failure',
'job_schedule_patch_parameter.job_specification.job_manager_task.kill_job_on_completion',
'job_schedule_patch_parameter.job_specification.job_manager_task.run_exclusive',
'job_schedule_patch_parameter.job_specification.job_manager_task.constraints'])
'job_schedule_patch_parameter.job_specification.job_manager_task.constraints',
'job_schedule_patch_parameter.job_specification.job_manager_task.allow_low_priority_node'])
cli_batch_data_plane_command('batch job-schedule reset', data_path.format('job_schedule', 'JobScheduleOperations.update'), job_schedule_client_factory,
ignore=['job_schedule_update_parameter.job_specification.job_preparation_task',
'job_schedule_update_parameter.job_specification.job_release_task',
@ -134,7 +136,8 @@ cli_batch_data_plane_command('batch job-schedule reset', data_path.format('job_s
'job_schedule_update_parameter.job_specification.on_task_failure',
'job_schedule_update_parameter.job_specification.job_manager_task.kill_job_on_completion',
'job_schedule_update_parameter.job_specification.job_manager_task.run_exclusive',
'job_schedule_update_parameter.job_specification.job_manager_task.constraints'])
'job_schedule_update_parameter.job_specification.job_manager_task.constraints',
'job_schedule_update_parameter.job_specification.job_manager_task.allow_low_priority_node'])
cli_batch_data_plane_command('batch job-schedule disable', data_path.format('job_schedule', 'JobScheduleOperations.disable'), job_schedule_client_factory)
cli_batch_data_plane_command('batch job-schedule enable', data_path.format('job_schedule', 'JobScheduleOperations.enable'), job_schedule_client_factory)
cli_batch_data_plane_command('batch job-schedule stop', data_path.format('job_schedule', 'JobScheduleOperations.terminate'), job_schedule_client_factory)

Просмотреть файл

@ -11,7 +11,7 @@ from msrest.exceptions import DeserializationError, ValidationError, ClientReque
from azure.mgmt.batch import BatchManagementClient
from azure.mgmt.batch.models import (BatchAccountCreateParameters,
AutoStorageBaseProperties,
UpdateApplicationParameters)
ApplicationUpdateParameters)
from azure.mgmt.batch.operations import (ApplicationPackageOperations)
from azure.batch.models import (CertificateAddParameter, PoolStopResizeOptions, PoolResizeParameter,
@ -98,11 +98,11 @@ def login_account(client, resource_group_name, account_name, shared_key_auth=Fal
set_global_config(az_config.config_parser)
@transfer_doc(UpdateApplicationParameters)
@transfer_doc(ApplicationUpdateParameters)
def update_application(client,
resource_group_name, account_name, application_id, allow_updates=None,
display_name=None, default_version=None):
parameters = UpdateApplicationParameters(allow_updates=allow_updates,
parameters = ApplicationUpdateParameters(allow_updates=allow_updates,
display_name=display_name,
default_version=default_version)
return client.update(resource_group_name=resource_group_name,
@ -207,7 +207,7 @@ def delete_certificate(client, thumbprint, abort=False):
@transfer_doc(PoolResizeParameter)
def resize_pool(client, pool_id, target_dedicated=None,
def resize_pool(client, pool_id, target_dedicated_nodes=None, target_low_priority_nodes=None,
resize_timeout=None, node_deallocation_option=None,
if_match=None, if_none_match=None, if_modified_since=None,
if_unmodified_since=None, abort=False):
@ -219,7 +219,8 @@ def resize_pool(client, pool_id, target_dedicated=None,
if_unmodified_since=if_unmodified_since)
return client.stop_resize(pool_id, pool_stop_resize_options=stop_resize_option)
else:
param = PoolResizeParameter(target_dedicated,
param = PoolResizeParameter(target_dedicated_nodes=target_dedicated_nodes,
target_low_priority_nodes=target_low_priority_nodes,
resize_timeout=resize_timeout,
node_deallocation_option=node_deallocation_option)
resize_option = PoolResizeOptions(if_match=if_match,

Просмотреть файл

@ -15,7 +15,7 @@ except ImportError:
logger.warn("Wheel is not available, disabling bdist_wheel hook")
cmdclass = {}
VERSION = '2.0.4+dev'
VERSION = '3.0.0+dev'
# The full list of classifiers is available at
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
@ -34,8 +34,8 @@ CLASSIFIERS = [
]
DEPENDENCIES = [
'azure-batch==2.0.1',
'azure-mgmt-batch==3.0.1',
'azure-batch==3.0.0',
'azure-mgmt-batch==4.0.0',
'azure-mgmt-keyvault==0.31.0',
'azure-cli-core'
]

Просмотреть файл

@ -0,0 +1,70 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
import os
from azure.cli.testsdk import CliTestError, ResourceGroupPreparer
from azure.cli.testsdk.preparers import AbstractPreparer, SingleValueReplacer
from azure.cli.testsdk.base import execute
class BatchAccountPreparer(AbstractPreparer, SingleValueReplacer):
def __init__(self, name_prefix='clibatch', # pylint: disable=too-many-arguments
parameter_name='batch_account_name', location='westus',
resource_group_parameter_name='resource_group', skip_delete=True,
dev_setting_name='AZURE_CLI_TEST_DEV_BATCH_ACCT_NAME'):
super(BatchAccountPreparer, self).__init__(name_prefix, 24)
self.parameter_name = parameter_name
self.resource_group = None
self.resource_group_parameter_name = resource_group_parameter_name
self.skip_delete = skip_delete
self.location = location
self.dev_setting_value = os.environ.get(dev_setting_name, None)
def create_resource(self, name, **kwargs):
if not self.dev_setting_value:
self.resource_group = self._get_resource_group(**kwargs)
cmd = 'az batch account create -n {} -g {} -l {}'.format(name, self.resource_group,
self.location)
execute(cmd)
return {self.parameter_name: name}
else:
return {self.parameter_name: self.dev_setting_value}
def remove_resource(self, name, **kwargs):
if not self.dev_setting_value and not self.skip_delete:
cmd = 'az batch account delete -n {} -g {} -y'.format(name, self.resource_group)
execute(cmd)
def _get_resource_group(self, **kwargs):
try:
return kwargs.get(self.resource_group_parameter_name)
except KeyError:
template = 'To create a storage account a resource group is required. Please add ' \
'decorator @{} in front of this batch account preparer.'
raise CliTestError(template.format(ResourceGroupPreparer.__name__,
self.resource_group_parameter_name))
class BatchScenarioMixin(object):
def get_account_info(self, account_name, group_name):
"""Returns the batch account name, key, and endpoint in a tuple."""
key = self.get_account_key(account_name, group_name),
endpoint = self.get_account_endpoint(account_name, group_name)
return account_name, key, endpoint
def get_account_key(self, *args):
return self.cmd(
'batch account keys list -n {} -g {} --query "secondary" -otsv'.format(*args)).output
def get_account_endpoint(self, *args):
endpoint = self.cmd('batch account show -n {} -g {}'.format(*args)).get_output_in_json()[
'accountEndpoint']
return 'https://' + endpoint
def batch_cmd(self, cmd, account_info, *args):
cmd = cmd.format(*args)
cmd = '{} --account-name {} --account-key "{}" --account-endpoint {}'.format(cmd,
*account_info)
return self.cmd(cmd)

Просмотреть файл

@ -0,0 +1,123 @@
cmd /c az batch --help
cmd /c az batch account --help
cmd /c az batch account list --help
cmd /c az batch account show --help
cmd /c az batch account create --help
cmd /c az batch account set --help
cmd /c az batch account delete --help
cmd /c az batch account autostorage-keys --help
cmd /c az batch account autostorage-keys sync --help
cmd /c az batch account keys --help
cmd /c az batch account keys list --help
cmd /c az batch account keys renew --help
cmd /c az batch application --help
cmd /c az batch application list --help
cmd /c az batch application show --help
cmd /c az batch application create --help
cmd /c az batch application set --help
cmd /c az batch application delete --help
cmd /c az batch application package --help
cmd /c az batch application package create --help
cmd /c az batch application package delete --help
cmd /c az batch application package show --help
cmd /c az batch application package activate --help
cmd /c az batch application summary --help
cmd /c az batch application summary list --help
cmd /c az batch application summary show --help
cmd /c az batch location --help
cmd /c az batch location quotas --help
cmd /c az batch location quotas show --help
cmd /c az batch certificate --help
cmd /c az batch certificate create --help
cmd /c az batch certificate delete --help
cmd /c az batch certificate show --help
cmd /c az batch certificate list --help
cmd /c az batch pool --help
cmd /c az batch pool create --help
cmd /c az batch pool list --help
cmd /c az batch pool delete --help
cmd /c az batch pool show --help
cmd /c az batch pool set --help
cmd /c az batch pool reset --help
cmd /c az batch pool resize --help
cmd /c az batch pool node-agent-skus --help
cmd /c az batch pool node-agent-skus list --help
cmd /c az batch pool os --help
cmd /c az batch pool os upgrade --help
cmd /c az batch pool usage-metrics --help
cmd /c az batch pool usage-metrics list --help
cmd /c az batch pool all-statistics --help
cmd /c az batch pool all-statistics show --help
cmd /c az batch pool autoscale --help
cmd /c az batch pool autoscale enable --help
cmd /c az batch pool autoscale disable --help
cmd /c az batch pool autoscale evaluate --help
cmd /c az batch node --help
cmd /c az batch node delete --help
cmd /c az batch node show --help
cmd /c az batch node list --help
cmd /c az batch node reboot --help
cmd /c az batch node reimage --help
cmd /c az batch node user --help
cmd /c az batch node user create --help
cmd /c az batch node user delete --help
cmd /c az batch node user reset --help
cmd /c az batch node scheduling --help
cmd /c az batch node scheduling disable --help
cmd /c az batch node scheduling enable --help
cmd /c az batch node remote-login-settings --help
cmd /c az batch node remote-login-settings show --help
cmd /c az batch node remote-desktop --help
cmd /c az batch node remote-desktop download --help
cmd /c az batch node file --help
cmd /c az batch node file delete --help
cmd /c az batch node file download --help
cmd /c az batch node file show --help
cmd /c az batch node file list --help
cmd /c az batch job --help
cmd /c az batch job create --help
cmd /c az batch job delete --help
cmd /c az batch job show --help
cmd /c az batch job set --help
cmd /c az batch job reset --help
cmd /c az batch job list --help
cmd /c az batch job disable --help
cmd /c az batch job enable --help
cmd /c az batch job stop --help
cmd /c az batch job all-statistics --help
cmd /c az batch job all-statistics show --help
cmd /c az batch job prep-release-status --help
cmd /c az batch job prep-release-status list --help
cmd /c az batch job-schedule --help
cmd /c az batch job-schedule create --help
cmd /c az batch job-schedule delete --help
cmd /c az batch job-schedule show --help
cmd /c az batch job-schedule set --help
cmd /c az batch job-schedule reset --help
cmd /c az batch job-schedule disable --help
cmd /c az batch job-schedule enable --help
cmd /c az batch job-schedule stop --help
cmd /c az batch job-schedule list --help
cmd /c az batch task --help
cmd /c az batch task create --help
cmd /c az batch task list --help
cmd /c az batch task delete --help
cmd /c az batch task show --help
cmd /c az batch task reset --help
cmd /c az batch task reactivate --help
cmd /c az batch task stop --help
cmd /c az batch task subtask --help
cmd /c az batch task subtask list --help
cmd /c az batch task file --help
cmd /c az batch task file delete --help
cmd /c az batch task file download --help
cmd /c az batch task file show --help
cmd /c az batch task file list --help

Просмотреть файл

@ -0,0 +1,11 @@
cmd /c az batch account create --help
cmd /c az batch application create --help
cmd /c az batch application package create --help
cmd /c az batch certificate create --help
cmd /c az batch pool create --help
cmd /c az batch node list --help
cmd /c az batch node file download --help
cmd /c az batch job create --help
cmd /c az batch job-schedule create --help
cmd /c az batch task create --help
cmd /c az batch task file delete --help

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -0,0 +1,668 @@
(env) C:\Code\Forks\azure-cli>cmd /c az batch account create --help
Command
az batch account create: Create a Batch account with the specified parameters.
Arguments
--location -l [Required]: The region in which to create the account.
--name -n [Required]: Name of the Batch account.
--resource-group -g [Required]: Name of the resource group.
--keyvault : The KeyVault name or resource ID to be used for an account with
a pool allocation mode of 'User Subscription'.
--storage-account : The storage account name or resource ID to be used for auto
storage.
--tags : Space separated tags in 'key[=value]' format.
Global Arguments
--debug : Increase logging verbosity to show all debug logs.
--help -h : Show this help message and exit.
--output -o : Output format. Allowed values: json, jsonc, table, tsv.
Default: json.
--query : JMESPath query string. See http://jmespath.org/ for more
information and examples.
--verbose : Increase logging verbosity. Use --debug for full debug logs.
(env) C:\Code\Forks\azure-cli>cmd /c az batch application create --help
Command
az batch application create: Adds an application to the specified Batch account.
Arguments
--application-id [Required]: The ID of the application.
--name -n [Required]: Name of the Batch account.
--resource-group -g [Required]: Name of the resource group.
--allow-updates : Specify to indicate whether packages within the application may
be overwritten using the same version string. True if flag
present.
--display-name : The display name for the application.
Global Arguments
--debug : Increase logging verbosity to show all debug logs.
--help -h : Show this help message and exit.
--output -o : Output format. Allowed values: json, jsonc, table, tsv.
Default: json.
--query : JMESPath query string. See http://jmespath.org/ for more
information and examples.
--verbose : Increase logging verbosity. Use --debug for full debug logs.
(env) C:\Code\Forks\azure-cli>cmd /c az batch application package create --help
Command
az batch application package create: Create an application package record and activate it.
Arguments
--application-id [Required]: The ID of the application.
--name -n [Required]: Name of the Batch account.
--package-file [Required]: The path of the application package in zip format.
--resource-group -g [Required]: Name of the resource group.
--version [Required]: The version of the application.
Global Arguments
--debug : Increase logging verbosity to show all debug logs.
--help -h : Show this help message and exit.
--output -o : Output format. Allowed values: json, jsonc, table, tsv.
Default: json.
--query : JMESPath query string. See http://jmespath.org/ for more
information and examples.
--verbose : Increase logging verbosity. Use --debug for full debug logs.
(env) C:\Code\Forks\azure-cli>cmd /c az batch certificate create --help
Command
az batch certificate create: Add a certificate.
Arguments
--certificate-file [Required]: The certificate file: cer file or pfx file.
--thumbprint [Required]: The certificate thumbprint.
--password : The password to access the certificate's private key.
Batch Account Arguments
--account-endpoint : Batch service endpoint. Alternatively, set by environment
variable: AZURE_BATCH_ENDPOINT.
--account-key : The Batch account key. Alternatively, set by environment
variable: AZURE_BATCH_ACCESS_KEY.
--account-name : The Batch account name. Alternatively, set by environment
variable: AZURE_BATCH_ACCOUNT.
Global Arguments
--debug : Increase logging verbosity to show all debug logs.
--help -h : Show this help message and exit.
--output -o : Output format. Allowed values: json, jsonc, table, tsv.
Default: json.
--query : JMESPath query string. See http://jmespath.org/ for more
information and examples.
--verbose : Increase logging verbosity. Use --debug for full debug logs.
(env) C:\Code\Forks\azure-cli>cmd /c az batch pool create --help
Command
az batch pool create: Create a pool in the specified account. When creating a pool, choose
arguments from either Cloud Services Configuration or Virtual Machine Configuration.
Arguments
--json-file : A file containing the pool specification in JSON format. If
this parameter is specified, all 'Pool Arguments' are
ignored.
Batch Account Arguments
--account-endpoint : Batch service endpoint. Alternatively, set by environment
variable: AZURE_BATCH_ENDPOINT.
--account-key : Batch account key. Alternatively, set by environment
variable: AZURE_BATCH_ACCESS_KEY.
--account-name : Batch account name. Alternatively, set by environment
variable: AZURE_BATCH_ACCOUNT.
Pool Arguments
--application-licenses : The list of application licenses the Batch service will make
available on each compute node in the pool. The list of
application licenses must be a subset of available Batch
service application licenses. If a license is requested which
is not supported, pool creation will fail. Space separated
values.
--application-package-references : The list of application packages to be installed on each
compute node in the pool. This property is currently not
supported on pools created using the
virtualMachineConfiguration (IaaS) property. Space separated
application IDs with optional version in 'id[#version]'
format.
--auto-scale-formula : A formula for the desired number of compute nodes in the
pool. The formula is checked for validity before the pool is
created. If the formula is not valid, the Batch service
rejects the request with detailed error information. For more
information about specifying this formula, see
https://azure.microsoft.com/documentation/articles/batch-
automatic-scaling/.
--certificate-references : The list of certificates to be installed on each compute node
in the pool. For Windows compute nodes, the Batch service
installs the certificates to the specified certificate store
and location. For Linux compute nodes, the certificates are
stored in a directory inside the task working directory and
an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied
to the task to query for this location. For certificates with
visibility of 'remoteUser', a 'certs' directory is created in
the user's home directory (e.g., /home/{user-name}/certs) and
certificates are placed in that directory. Space separated
certificate thumbprints.
--enable-inter-node-communication: Whether the pool permits direct communication between nodes.
Enabling inter-node communication limits the maximum size of
the pool due to deployment restrictions on the nodes of the
pool. This may result in the pool not reaching its desired
size. The default value is false. True if flag present.
--id : A string that uniquely identifies the pool within the
account. The ID can contain any combination of alphanumeric
characters including hyphens and underscores, and cannot
contain more than 64 characters. The ID is case-preserving
and case-insensitive (that is, you may not have two pool IDs
within an account that differ only by case).
--metadata : A list of name-value pairs associated with the pool as
metadata. The Batch service does not assign any meaning to
metadata; it is solely for the use of user code. Space
separated values in 'key=value' format.
--resize-timeout : The timeout for allocation of compute nodes to the pool. This
timeout applies only to manual scaling; it has no effect when
enableAutoScale is set to true. The default value is 15
minutes. The minimum value is 5 minutes. If you specify a
value less than 5 minutes, the Batch service returns an
error; if you are calling the REST API directly, the HTTP
status code is 400 (Bad Request). Expected format is an
ISO-8601 duration.
--target-dedicated-nodes : The desired number of dedicated compute nodes in the pool.
This property must not be specified if enableAutoScale is set
to true. If enableAutoScale is set to false, then you must
set either targetDedicatedNodes, targetLowPriorityNodes, or
both.
--target-low-priority-nodes : The desired number of low-priority compute nodes in the pool.
This property must not be specified if enableAutoScale is set
to true. If enableAutoScale is set to false, then you must
set either targetDedicatedNodes, targetLowPriorityNodes, or
both.
--vm-size : The size of virtual machines in the pool. All virtual
machines in a pool are the same size. For information about
available sizes of virtual machines for Cloud Services pools
(pools created with cloudServiceConfiguration), see Sizes for
Cloud Services
(http://azure.microsoft.com/documentation/articles/cloud-
services-sizes-specs/). Batch supports all Cloud Services VM
sizes except ExtraSmall, A1V2 and A2V2. For information about
available VM sizes for pools using images from the Virtual
Machines Marketplace (pools created with
virtualMachineConfiguration) see Sizes for Virtual Machines
(Linux)
(https://azure.microsoft.com/documentation/articles/virtual-
machines-linux-sizes/) or Sizes for Virtual Machines
(Windows)
(https://azure.microsoft.com/documentation/articles/virtual-
machines-windows-sizes/). Batch supports all Azure VM sizes
except STANDARD_A0 and those with premium storage
(STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series).
Pool: Cloud Service Configuration Arguments
--os-family : The Azure Guest OS family to be installed on the virtual
machines in the pool. Possible values are: 2 - OS Family 2,
equivalent to Windows Server 2008 R2 SP1. 3 - OS Family 3,
equivalent to Windows Server 2012. 4 - OS Family 4,
equivalent to Windows Server 2012 R2. 5 - OS Family 5,
equivalent to Windows Server 2016. For more information, see
Azure Guest OS Releases
(https://azure.microsoft.com/documentation/articles/cloud-
services-guestos-update-matrix/#releases). Allowed values:
2, 3, 4, 5.
Pool: Start Task Arguments
--start-task-command-line : The command line of the start task. The command line does not
run under a shell, and therefore cannot take advantage of
shell features such as environment variable expansion. If you
want to take advantage of such features, you should invoke
the shell in the command line, for example using "cmd /c
MyCommand" in Windows or "/bin/sh -c MyCommand" in Linux.
--start-task-resource-files : A list of files that the Batch service will download to the
compute node before running the command line. Space separated
resource references in filename=blobsource format.
--start-task-wait-for-success : Whether the Batch service should wait for the start task to
complete successfully (that is, to exit with exit code 0)
before scheduling any tasks on the compute node. If true and
the start task fails on a compute node, the Batch service
retries the start task up to its maximum retry count
(maxTaskRetryCount). If the task has still not completed
successfully after all retries, then the Batch service marks
the compute node unusable, and will not schedule tasks to it.
This condition can be detected via the node state and
scheduling error detail. If false, the Batch service will not
wait for the start task to complete. In this case, other
tasks can start executing on the compute node while the start
task is still running; and even if the start task fails, new
tasks will continue to be scheduled on the node. The default
is false. True if flag present.
Pool: Virtual Machine Configuration Arguments
--image : OS image URN in 'publisher:offer:sku[:version]' format.
Version is optional and if omitted latest will be used.
Values from 'az batch pool node-agent-skus list'.
Example: 'MicrosoftWindowsServer:WindowsServer:2012-R2-Datacenter:latest'.
--node-agent-sku-id : The SKU of the Batch node agent to be provisioned on compute
nodes in the pool. The Batch node agent is a program that
runs on each node in the pool, and provides the command-and-
control interface between the node and the Batch service.
There are different implementations of the node agent, known
as SKUs, for different operating systems. You must specify a
node agent SKU which matches the selected image reference. To
get the list of supported node agent SKUs along with their
list of verified image references, see the 'List supported
node agent SKUs' operation.
Global Arguments
--debug : Increase logging verbosity to show all debug logs.
--help -h : Show this help message and exit.
--output -o : Output format. Allowed values: json, jsonc, table, tsv.
Default: json.
--query : JMESPath query string. See http://jmespath.org/ for more
information and examples.
--verbose : Increase logging verbosity. Use --debug for full debug logs.
(env) C:\Code\Forks\azure-cli>cmd /c az batch node list --help
Command
az batch node list: Lists the compute nodes in the specified pool.
Arguments
--pool-id [Required]: The ID of the pool from which you want to list nodes.
Batch Account Arguments
--account-endpoint : Batch service endpoint. Alternatively, set by environment variable:
AZURE_BATCH_ENDPOINT.
--account-key : Batch account key. Alternatively, set by environment variable:
AZURE_BATCH_ACCESS_KEY.
--account-name : Batch account name. Alternatively, set by environment variable:
AZURE_BATCH_ACCOUNT.
Pre-condition and Query Arguments
--filter : An OData $filter clause..
--select : An OData $select clause.
Global Arguments
--debug : Increase logging verbosity to show all debug logs.
--help -h : Show this help message and exit.
--output -o : Output format. Allowed values: json, jsonc, table, tsv. Default: json.
--query : JMESPath query string. See http://jmespath.org/ for more information and
examples.
--verbose : Increase logging verbosity. Use --debug for full debug logs.
(env) C:\Code\Forks\azure-cli>cmd /c az batch node file download --help
Command
az batch node file download: Download the content of the specified node file.
Arguments
--destination [Required]: The path to the destination file or directory.
--file-path [Required]: The path to the compute node file that you want to get the content of.
--node-id [Required]: The ID of the compute node that contains the file.
--pool-id [Required]: The ID of the pool that contains the compute node.
Batch Account Arguments
--account-endpoint : Batch service endpoint. Alternatively, set by environment variable:
AZURE_BATCH_ENDPOINT.
--account-key : Batch account key. Alternatively, set by environment variable:
AZURE_BATCH_ACCESS_KEY.
--account-name : Batch account name. Alternatively, set by environment variable:
AZURE_BATCH_ACCOUNT.
Pre-condition and Query Arguments
--end-range : The byte range to be retrieved. If not set the file will be retrieved
to the end.
--if-modified-since : A timestamp indicating the last modified time of the resource known to
the client. The operation will be performed only if the resource on
the service has been modified since the specified time.
--if-unmodified-since : A timestamp indicating the last modified time of the resource known to
the client. The operation will be performed only if the resource on
the service has not been modified since the specified time.
--start-range : The byte range to be retrieved. If not set the file will be retrieved
from the beginning.
Global Arguments
--debug : Increase logging verbosity to show all debug logs.
--help -h : Show this help message and exit.
--output -o : Output format. Allowed values: json, jsonc, table, tsv. Default:
json.
--query : JMESPath query string. See http://jmespath.org/ for more information
and examples.
--verbose : Increase logging verbosity. Use --debug for full debug logs.
(env) C:\Code\Forks\azure-cli>cmd /c az batch job create --help
Command
az batch job create: Add a job to the specified account.
Arguments
--json-file : A file containing the job specification in JSON format.
If this parameter is specified, all 'Job Arguments' are
ignored.
Batch Account Arguments
--account-endpoint : Batch service endpoint. Alternatively, set by
environment variable: AZURE_BATCH_ENDPOINT.
--account-key : Batch account key. Alternatively, set by environment
variable: AZURE_BATCH_ACCESS_KEY.
--account-name : Batch account name. Alternatively, set by environment
variable: AZURE_BATCH_ACCOUNT.
Job Arguments
--id : A string that uniquely identifies the job within the
account. The ID can contain any combination of
alphanumeric characters including hyphens and
underscores, and cannot contain more than 64
characters. It is common to use a GUID for the id.
--metadata : A list of name-value pairs associated with the job as
metadata. The Batch service does not assign any meaning
to metadata; it is solely for the use of user code.
Space separated values in 'key=value' format.
--priority : 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.
--uses-task-dependencies : The flag that determines if this job will use tasks
with dependencies. True if flag present.
Job: Constraints Arguments
--job-max-task-retry-count : The maximum number of times each task may be retried.
The Batch service retries a task if its exit code is
nonzero. Note that this value specifically controls the
number of retries. The Batch service will try each task
once, and may then retry up to this limit. For example,
if the maximum retry count is 3, Batch tries a task up
to 4 times (one initial try and 3 retries). If the
maximum retry count is 0, the Batch service does not
retry tasks. If the maximum retry count is -1, the
Batch service retries tasks without limit. The default
value is 0 (no retries).
--job-max-wall-clock-time : The maximum elapsed time that the job may run, measured
from the time the job is created. If the job does not
complete within the time limit, the Batch service
terminates it and any tasks that are still running. In
this case, the termination reason will be
MaxWallClockTimeExpiry. If this property is not
specified, there is no time limit on how long the job
may run. Expected format is an ISO-8601 duration.
Job: Job Manager Task Arguments
--job-manager-task-command-line : The command line of the Job Manager task. The command
line does not run under a shell, and therefore cannot
take advantage of shell features such as environment
variable expansion. If you want to take advantage of
such features, you should invoke the shell in the
command line, for example using "cmd /c MyCommand" in
Windows or "/bin/sh -c MyCommand" in Linux.
--job-manager-task-environment-settings: A list of environment variable settings for the Job
Manager task. Space separated values in 'key=value'
format.
--job-manager-task-id : A string that uniquely identifies the Job Manager
taskwithin the job. The id can contain any combination
of alphanumeric characters including hyphens and
underscores and cannot contain more than 64 characters.
--job-manager-task-resource-files : A list of files that the Batch service will download to
the compute node before running the command line. Files
listed under this element are located in the task's
working directory. Space separated resource references
in filename=blobsource format.
Job: Pool Info Arguments
--pool-id : The id of an existing pool. All the tasks of the job
will run on the specified pool.
Global Arguments
--debug : Increase logging verbosity to show all debug logs.
--help -h : Show this help message and exit.
--output -o : Output format. Allowed values: json, jsonc, table,
tsv. Default: json.
--query : JMESPath query string. See http://jmespath.org/ for
more information and examples.
--verbose : Increase logging verbosity. Use --debug for full debug
logs.
(env) C:\Code\Forks\azure-cli>cmd /c az batch job-schedule create --help
Command
az batch job-schedule create: Add a job schedule to the specified account.
Arguments
--json-file : A file containing the cloud job schedule specification in
JSON format. If this parameter is specified, all 'Cloud Job
Schedule Arguments' are ignored.
Batch Account Arguments
--account-endpoint : Batch service endpoint. Alternatively, set by environment
variable: AZURE_BATCH_ENDPOINT.
--account-key : Batch account key. Alternatively, set by environment
variable: AZURE_BATCH_ACCESS_KEY.
--account-name : Batch account name. Alternatively, set by environment
variable: AZURE_BATCH_ACCOUNT.
Cloud Job Schedule Arguments
--id : A string that uniquely identifies the schedule within the
account. The ID can contain any combination of alphanumeric
characters including hyphens and underscores, and cannot
contain more than 64 characters. The id is case-preserving
and case-insensitive (that is, you may not have two ids
within an account that differ only by case).
--metadata : A list of name-value pairs associated with the schedule as
metadata. The Batch service does not assign any meaning to
metadata; it is solely for the use of user code. Space
separated values in 'key=value' format.
Cloud Job Schedule: Job Specification Arguments
--on-all-tasks-complete : The action the Batch service should take when all tasks in a
job created under this schedule are in the completed state.
Note that if a job contains no tasks, then all tasks are
considered complete. This option is therefore most commonly
used with a Job Manager task; if you want to use automatic
job termination without a Job Manager, you should initially
set onAllTasksComplete to noAction and update the job
properties to set onAllTasksComplete to terminateJob once you
have finished adding tasks. The default is noAction. Allowed
values: noAction, terminateJob.
--priority : The priority of jobs created under this schedule. 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. This priority is used as the default for
all jobs under the job schedule. You can update a job's
priority after it has been created using by using the update
job API.
--uses-task-dependencies : The flag that determines if this job will use tasks with
dependencies. True if flag present.
Cloud Job Schedule: Job Specification: Constraints Arguments
--job-max-task-retry-count : The maximum number of times each task may be retried. The
Batch service retries a task if its exit code is nonzero.
Note that this value specifically controls the number of
retries. The Batch service will try each task once, and may
then retry up to this limit. For example, if the maximum
retry count is 3, Batch tries a task up to 4 times (one
initial try and 3 retries). If the maximum retry count is 0,
the Batch service does not retry tasks. If the maximum retry
count is -1, the Batch service retries tasks without limit.
The default value is 0 (no retries).
--job-max-wall-clock-time : The maximum elapsed time that the job may run, measured from
the time the job is created. If the job does not complete
within the time limit, the Batch service terminates it and
any tasks that are still running. In this case, the
termination reason will be MaxWallClockTimeExpiry. If this
property is not specified, there is no time limit on how long
the job may run. Expected format is an ISO-8601 duration.
Cloud Job Schedule: Job Specification: Job Manager Task Arguments
--job-manager-task-command-line : The command line of the Job Manager task. The command line
does not run under a shell, and therefore cannot take
advantage of shell features such as environment variable
expansion. If you want to take advantage of such features,
you should invoke the shell in the command line, for example
using "cmd /c MyCommand" in Windows or "/bin/sh -c MyCommand"
in Linux.
--job-manager-task-id : A string that uniquely identifies the Job Manager taskwithin
the job. The id can contain any combination of alphanumeric
characters including hyphens and underscores and cannot
contain more than 64 characters.
--job-manager-task-resource-files: A list of files that the Batch service will download to the
compute node before running the command line. Files listed
under this element are located in the task's working
directory. Space separated resource references in
filename=blobsource format.
Cloud Job Schedule: Job Specification: Pool Info Arguments
--pool-id : The id of an existing pool. All the tasks of the job will run
on the specified pool.
Cloud Job Schedule: Schedule Arguments
--do-not-run-after : A time after which no job will be created under this job
schedule. The schedule will move to the completed state as
soon as this deadline is past and there is no active job
under this job schedule. If you do not specify a
doNotRunAfter time, and you are creating a recurring job
schedule, the job schedule will remain active until you
explicitly terminate it. Expected format is an ISO-8601
timestamp.
--do-not-run-until : The earliest time at which any job may be created under this
job schedule. If you do not specify a doNotRunUntil time, the
schedule becomes ready to create jobs immediately. Expected
format is an ISO-8601 timestamp.
--recurrence-interval : The time interval between the start times of two successive
jobs under the job schedule. A job schedule can have at most
one active job under it at any given time. Because a job
schedule can have at most one active job under it at any
given time, if it is time to create a new job under a job
schedule, but the previous job is still running, the Batch
service will not create the new job until the previous job
finishes. If the previous job does not finish within the
startWindow period of the new recurrenceInterval, then no new
job will be scheduled for that interval. For recurring jobs,
you should normally specify a jobManagerTask in the
jobSpecification. If you do not use jobManagerTask, you will
need an external process to monitor when jobs are created,
add tasks to the jobs and terminate the jobs ready for the
next recurrence. The default is that the schedule does not
recur: one job is created, within the startWindow after the
doNotRunUntil time, and the schedule is complete as soon as
that job finishes. The minimum value is 1 minute. If you
specify a lower value, the Batch service rejects the schedule
with an error; if you are calling the REST API directly, the
HTTP status code is 400 (Bad Request). Expected format is an
ISO-8601 duration.
--start-window : The time interval, starting from the time at which the
schedule indicates a job should be created, within which a
job must be created. If a job is not created within the
startWindow interval, then the 'opportunity' is lost; no job
will be created until the next recurrence of the schedule. If
the schedule is recurring, and the startWindow is longer than
the recurrence interval, then this is equivalent to an
infinite startWindow, because the job that is 'due' in one
recurrenceInterval is not carried forward into the next
recurrence interval. The default is infinite. The minimum
value is 1 minute. If you specify a lower value, the Batch
service rejects the schedule with an error; if you are
calling the REST API directly, the HTTP status code is 400
(Bad Request). Expected format is an ISO-8601 duration.
Global Arguments
--debug : Increase logging verbosity to show all debug logs.
--help -h : Show this help message and exit.
--output -o : Output format. Allowed values: json, jsonc, table, tsv.
Default: json.
--query : JMESPath query string. See http://jmespath.org/ for more
information and examples.
--verbose : Increase logging verbosity. Use --debug for full debug logs.
(env) C:\Code\Forks\azure-cli>cmd /c az batch task create --help
Command
az batch task create: Create a single Batch task or multiple Batch tasks.
Arguments
--job-id [Required]: The ID of the job containing the task.
--affinity-info : A locality hint that can be used by the Batch service to
select a compute node on which to start the new task.
--application-package-references: The space separated list of IDs specifying the application
packages to be installed. Space separated application IDs with
optional version in 'id[#version]' format.
--command-line : The command line of the task. The command line does not run
under a shell, and therefore cannot take advantage of shell
features such as environment variable expansion. If you want
to take advantage of such features, you should invoke the
shell in the command line, for example using "cmd /c
MyCommand" in Windows or "/bin/sh -c MyCommand" in Linux.
--environment-settings : A list of environment variable settings for the task. Space
separated values in 'key=value' format.
--json-file : The file containing the task(s) to create in JSON format, if
this parameter is specified, all other parameters are ignored.
--max-task-retry-count : The maximum number of times the task may be retried. The Batch
service retries a task if its exit code is nonzero. Note that
this value specifically controls the number of retries. The
Batch service will try the task once, and may then retry up to
this limit. For example, if the maximum retry count is 3,
Batch tries the task up to 4 times (one initial try and 3
retries). If the maximum retry count is 0, the Batch service
does not retry the task. If the maximum retry count is -1, the
Batch service retries the task without limit.
--max-wall-clock-time : The maximum elapsed time that the task may run, measured from
the time the task starts. If the task does not complete within
the time limit, the Batch service terminates it. If this is
not specified, there is no time limit on how long the task may
run.
--resource-files : A list of files that the Batch service will download to the
compute node before running the command line. Space separated
resource references in filename=blobsource format.
--retention-time : The minimum time to retain the task directory on the compute
node where it ran, from the time it completes execution. After
this time, the Batch service may delete the task directory and
all its contents. The default is infinite, i.e. the task
directory will be retained until the compute node is removed
or reimaged.
--task-id : The ID of the task.
Batch Account Arguments
--account-endpoint : Batch service endpoint. Alternatively, set by environment
variable: AZURE_BATCH_ENDPOINT.
--account-key : The Batch account key. Alternatively, set by environment
variable: AZURE_BATCH_ACCESS_KEY.
--account-name : The Batch account name. Alternatively, set by environment
variable: AZURE_BATCH_ACCOUNT.
Global Arguments
--debug : Increase logging verbosity to show all debug logs.
--help -h : Show this help message and exit.
--output -o : Output format. Allowed values: json, jsonc, table, tsv.
Default: json.
--query : JMESPath query string. See http://jmespath.org/ for more
information and examples.
--verbose : Increase logging verbosity. Use --debug for full debug logs.
(env) C:\Code\Forks\azure-cli>cmd /c az batch task file delete --help
Command
az batch task file delete: Deletes the specified task file from the compute node where the task
ran.
Arguments
--file-path [Required]: The path to the task file that you want to delete.
--job-id [Required]: The ID of the job that contains the task.
--task-id [Required]: The ID of the task whose file you want to delete.
--recursive : Whether to delete children of a directory. If the filePath parameter
represents a directory instead of a file, you can set recursive to true
to delete the directory and all of the files and subdirectories in it.
If recursive is false then the directory must be empty or deletion will
fail.
--yes -y : Do not prompt for confirmation.
Batch Account Arguments
--account-endpoint : Batch service endpoint. Alternatively, set by environment variable:
AZURE_BATCH_ENDPOINT.
--account-key : Batch account key. Alternatively, set by environment variable:
AZURE_BATCH_ACCESS_KEY.
--account-name : Batch account name. Alternatively, set by environment variable:
AZURE_BATCH_ACCOUNT.
Global Arguments
--debug : Increase logging verbosity to show all debug logs.
--help -h : Show this help message and exit.
--output -o : Output format. Allowed values: json, jsonc, table, tsv. Default: json.
--query : JMESPath query string. See http://jmespath.org/ for more information and
examples.
--verbose : Increase logging verbosity. Use --debug for full debug logs.

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -1,721 +0,0 @@
interactions:
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchmanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev]
accept-language: [en-US]
x-ms-client-request-id: [e64d97f8-02c7-11e7-97c6-54ee750f2fc7]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7?api-version=2017-01-01
response:
body: {string: '{"name":"clibatchtest7","location":"brazilsouth","properties":{"accountEndpoint":"clibatchtest7.brazilsouth.batch.azure.com","provisioningState":"Succeeded","coreQuota":20,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Storage/storageAccounts/clibatchteststorage7","lastKeySync":"2017-03-06T23:51:44.2225138Z"},"poolAllocationMode":"batchservice"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7","type":"Microsoft.Batch/batchAccounts"}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Mon, 06 Mar 2017 23:52:05 GMT']
ETag: ['0x8D464EBCB2F4623']
Expires: ['-1']
Last-Modified: ['Mon, 06 Mar 2017 23:52:05 GMT']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
Vary: [Accept-Encoding]
X-Content-Type-Options: [nosniff]
content-length: ['677']
request-id: [bed068cb-a446-47a4-beb7-d130a17271b9]
status: {code: 200, message: OK}
- request:
body: '{"allowUpdates": true}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['22']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchmanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev]
accept-language: [en-US]
x-ms-client-request-id: [e77a2ab6-02c7-11e7-8010-54ee750f2fc7]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7/applications/testapp?api-version=2017-01-01
response:
body: {string: '{"id":"testapp","packages":[],"allowUpdates":true}'}
headers:
Cache-Control: [no-cache]
Content-Length: ['50']
Content-Type: [application/json; charset=utf-8]
Date: ['Mon, 06 Mar 2017 23:52:07 GMT']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-Content-Type-Options: [nosniff]
request-id: [f7716621-f0f1-4159-b009-f4d7877e3dee]
x-ms-ratelimit-remaining-subscription-writes: ['1197']
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchmanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev]
accept-language: [en-US]
x-ms-client-request-id: [e8c996a6-02c7-11e7-a8bd-54ee750f2fc7]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7?api-version=2017-01-01
response:
body: {string: '{"name":"clibatchtest7","location":"brazilsouth","properties":{"accountEndpoint":"clibatchtest7.brazilsouth.batch.azure.com","provisioningState":"Succeeded","coreQuota":20,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Storage/storageAccounts/clibatchteststorage7","lastKeySync":"2017-03-06T23:51:44.2225138Z"},"poolAllocationMode":"batchservice"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7","type":"Microsoft.Batch/batchAccounts"}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Mon, 06 Mar 2017 23:52:09 GMT']
ETag: ['0x8D464EBCDDD35BD']
Expires: ['-1']
Last-Modified: ['Mon, 06 Mar 2017 23:52:10 GMT']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
Vary: [Accept-Encoding]
X-Content-Type-Options: [nosniff]
content-length: ['677']
request-id: [494eefa2-67ce-4670-b492-440c49bb0ea1]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchmanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev]
accept-language: [en-US]
x-ms-client-request-id: [e999df1e-02c7-11e7-93b5-54ee750f2fc7]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7/applications?api-version=2017-01-01
response:
body: {string: '{"value":[{"id":"testapp","packages":[],"allowUpdates":true}]}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Mon, 06 Mar 2017 23:52:11 GMT']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
Vary: [Accept-Encoding]
X-Content-Type-Options: [nosniff]
content-length: ['62']
request-id: [5cbdec5d-12e1-4e4f-a81d-a79e8448e6c7]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchmanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev]
accept-language: [en-US]
x-ms-client-request-id: [eac4d31e-02c7-11e7-a61b-54ee750f2fc7]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7?api-version=2017-01-01
response:
body: {string: '{"name":"clibatchtest7","location":"brazilsouth","properties":{"accountEndpoint":"clibatchtest7.brazilsouth.batch.azure.com","provisioningState":"Succeeded","coreQuota":20,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Storage/storageAccounts/clibatchteststorage7","lastKeySync":"2017-03-06T23:51:44.2225138Z"},"poolAllocationMode":"batchservice"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7","type":"Microsoft.Batch/batchAccounts"}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Mon, 06 Mar 2017 23:52:11 GMT']
ETag: ['0x8D464EBCEAF2EDF']
Expires: ['-1']
Last-Modified: ['Mon, 06 Mar 2017 23:52:11 GMT']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
Vary: [Accept-Encoding]
X-Content-Type-Options: [nosniff]
content-length: ['677']
request-id: [245632b4-6c91-4e57-9498-2985c833c0a7]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchmanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev]
accept-language: [en-US]
x-ms-client-request-id: [eaf66af0-02c7-11e7-ad2f-54ee750f2fc7]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7/applications/testapp?api-version=2017-01-01
response:
body: {string: '{"id":"testapp","packages":[],"allowUpdates":true}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Mon, 06 Mar 2017 23:52:13 GMT']
ETag: ['0x8D464EBCCA5AA71']
Expires: ['-1']
Last-Modified: ['Mon, 06 Mar 2017 23:52:07 GMT']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
Vary: [Accept-Encoding]
X-Content-Type-Options: [nosniff]
content-length: ['50']
request-id: [cf160a9e-c4a2-4838-b60a-d0e30bdb2451]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchmanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev]
accept-language: [en-US]
x-ms-client-request-id: [ebede23a-02c7-11e7-985e-54ee750f2fc7]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7/applications/testapp/versions/1.0?api-version=2017-01-01
response:
body: {string: '{"id":"testapp","version":"1.0","storageUrl":"https://clibatchteststorage7.blob.core.windows.net/app-testapp-4a19557dc1b96c20dfa19772af36624f6913ae44/testapp-1.0-74c25e27-d086-4cc6-8ccd-16f77fa36671?sv=2015-04-05&sr=b&sig=eddrtQvVSmCe9wjz9s%2Frdp36Ezh5USy8makjX1OvsnE%3D&st=2017-03-06T23%3A47%3A14Z&se=2017-03-07T03%3A52%3A14Z&sp=rw","storageUrlExpiry":"2017-03-07T03:52:14.0573149Z","state":"pending"}'}
headers:
Cache-Control: [no-cache]
Content-Length: ['402']
Content-Type: [application/json; charset=utf-8]
Date: ['Mon, 06 Mar 2017 23:52:14 GMT']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-Content-Type-Options: [nosniff]
request-id: [3426ebf0-d505-4569-be36-eb51760c8629]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 201, message: Created}
- request:
body: storage blob test sample file
headers:
Connection: [keep-alive]
Content-Length: ['29']
User-Agent: [Azure-Storage/0.33.0 (Python CPython 3.5.1; Windows 8.1)]
x-ms-blob-type: [BlockBlob]
x-ms-client-request-id: [ed12b986-02c7-11e7-8822-54ee750f2fc7]
x-ms-date: ['Mon, 06 Mar 2017 23:52:15 GMT']
x-ms-version: ['2015-07-08']
method: PUT
uri: https://clibatchteststorage7.blob.core.windows.net/app-testapp-4a19557dc1b96c20dfa19772af36624f6913ae44/testapp-1.0-74c25e27-d086-4cc6-8ccd-16f77fa36671?sv=2015-04-05&sr=b&sig=eddrtQvVSmCe9wjz9s%2Frdp36Ezh5USy8makjX1OvsnE%3D&st=2017-03-06T23%3A47%3A14Z&se=2017-03-07T03%3A52%3A14Z&sp=rw
response:
body: {string: ''}
headers:
Content-MD5: [JeBon6PeparxrbCKMR+6hw==]
Date: ['Mon, 06 Mar 2017 23:52:16 GMT']
ETag: ['"0x8D464EBD2549920"']
Last-Modified: ['Mon, 06 Mar 2017 23:52:17 GMT']
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
Transfer-Encoding: [chunked]
x-ms-version: ['2015-07-08']
status: {code: 201, message: Created}
- request:
body: '{"format": "zip"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['17']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchmanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev]
accept-language: [en-US]
x-ms-client-request-id: [eda9031e-02c7-11e7-a7e2-54ee750f2fc7]
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7/applications/testapp/versions/1.0/activate?api-version=2017-01-01
response:
body: {string: ''}
headers:
Cache-Control: [no-cache]
Content-Length: ['0']
Date: ['Mon, 06 Mar 2017 23:52:18 GMT']
ETag: ['0x8D464EBD14A5CDE']
Expires: ['-1']
Last-Modified: ['Mon, 06 Mar 2017 23:52:15 GMT']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-Content-Type-Options: [nosniff]
request-id: [fedee659-e864-43b9-b14a-87774af6ee7b]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 204, message: No Content}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchmanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev]
accept-language: [en-US]
x-ms-client-request-id: [ee9edc92-02c7-11e7-960e-54ee750f2fc7]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7/applications/testapp/versions/1.0?api-version=2017-01-01
response:
body: {string: '{"id":"testapp","version":"1.0","storageUrl":"https://clibatchteststorage7.blob.core.windows.net/app-testapp-4a19557dc1b96c20dfa19772af36624f6913ae44/testapp-1.0-74c25e27-d086-4cc6-8ccd-16f77fa36671?sv=2015-04-05&sr=b&sig=m7sBpH0nC%2BHPsmJs3qV7l8uRNsvNshkwCxhvvXt%2BNX0%3D&st=2017-03-06T23%3A47%3A19Z&se=2017-03-07T03%3A52%3A19Z&sp=rw","storageUrlExpiry":"2017-03-07T03:52:19.8757425Z","state":"active","format":"zip","lastActivationTime":"2017-03-06T23:52:19.0545316Z"}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Mon, 06 Mar 2017 23:52:18 GMT']
ETag: ['0x8D464EBD2D10006']
Expires: ['-1']
Last-Modified: ['Mon, 06 Mar 2017 23:52:18 GMT']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
Vary: [Accept-Encoding]
X-Content-Type-Options: [nosniff]
content-length: ['470']
request-id: [8135a91e-c7a8-4df1-9485-cb5c15e76d99]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchmanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev]
accept-language: [en-US]
x-ms-client-request-id: [efd4ded4-02c7-11e7-a132-54ee750f2fc7]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7?api-version=2017-01-01
response:
body: {string: '{"name":"clibatchtest7","location":"brazilsouth","properties":{"accountEndpoint":"clibatchtest7.brazilsouth.batch.azure.com","provisioningState":"Succeeded","coreQuota":20,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Storage/storageAccounts/clibatchteststorage7","lastKeySync":"2017-03-06T23:51:44.2225138Z"},"poolAllocationMode":"batchservice"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7","type":"Microsoft.Batch/batchAccounts"}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Mon, 06 Mar 2017 23:52:19 GMT']
ETag: ['0x8D464EBD3C0D539']
Expires: ['-1']
Last-Modified: ['Mon, 06 Mar 2017 23:52:19 GMT']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
Vary: [Accept-Encoding]
X-Content-Type-Options: [nosniff]
content-length: ['677']
request-id: [86cd98c8-5885-49d6-b176-0cf4c2a0de2e]
status: {code: 200, message: OK}
- request:
body: '{"format": "zip"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['17']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchmanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev]
accept-language: [en-US]
x-ms-client-request-id: [f00a2430-02c7-11e7-bc1c-54ee750f2fc7]
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7/applications/testapp/versions/1.0/activate?api-version=2017-01-01
response:
body: {string: ''}
headers:
Cache-Control: [no-cache]
Content-Length: ['0']
Date: ['Mon, 06 Mar 2017 23:52:22 GMT']
ETag: ['0x8D464EBD2D10006']
Expires: ['-1']
Last-Modified: ['Mon, 06 Mar 2017 23:52:18 GMT']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-Content-Type-Options: [nosniff]
request-id: [bacbeaa5-ce0b-4b5c-a7f3-4b8305713ce7]
x-ms-ratelimit-remaining-subscription-writes: ['1197']
status: {code: 204, message: No Content}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchmanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev]
accept-language: [en-US]
x-ms-client-request-id: [f165ee02-02c7-11e7-bf24-54ee750f2fc7]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7?api-version=2017-01-01
response:
body: {string: '{"name":"clibatchtest7","location":"brazilsouth","properties":{"accountEndpoint":"clibatchtest7.brazilsouth.batch.azure.com","provisioningState":"Succeeded","coreQuota":20,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Storage/storageAccounts/clibatchteststorage7","lastKeySync":"2017-03-06T23:51:44.2225138Z"},"poolAllocationMode":"batchservice"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7","type":"Microsoft.Batch/batchAccounts"}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Mon, 06 Mar 2017 23:52:22 GMT']
ETag: ['0x8D464EBD55B30C4']
Expires: ['-1']
Last-Modified: ['Mon, 06 Mar 2017 23:52:22 GMT']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
Vary: [Accept-Encoding]
X-Content-Type-Options: [nosniff]
content-length: ['677']
request-id: [d7c6db3a-ebe5-42e3-8ea3-716252fa6bcc]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchmanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev]
accept-language: [en-US]
x-ms-client-request-id: [f1a78692-02c7-11e7-931d-54ee750f2fc7]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7/applications/testapp/versions/1.0?api-version=2017-01-01
response:
body: {string: '{"id":"testapp","version":"1.0","storageUrl":"https://clibatchteststorage7.blob.core.windows.net/app-testapp-4a19557dc1b96c20dfa19772af36624f6913ae44/testapp-1.0-74c25e27-d086-4cc6-8ccd-16f77fa36671?sv=2015-04-05&sr=b&sig=n35XeqyffOjGxq6BLl2PYsVyTTsgTC53FZrrIg%2BO8vE%3D&st=2017-03-06T23%3A47%3A23Z&se=2017-03-07T03%3A52%3A23Z&sp=rw","storageUrlExpiry":"2017-03-07T03:52:23.303365Z","state":"active","format":"zip","lastActivationTime":"2017-03-06T23:52:23.0863742Z"}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Mon, 06 Mar 2017 23:52:24 GMT']
ETag: ['0x8D464EBD53867EF']
Expires: ['-1']
Last-Modified: ['Mon, 06 Mar 2017 23:52:22 GMT']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
Vary: [Accept-Encoding]
X-Content-Type-Options: [nosniff]
content-length: ['467']
request-id: [3d0ec556-fd47-4d42-8748-2e23d12b4f22]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchmanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev]
accept-language: [en-US]
x-ms-client-request-id: [f2e93642-02c7-11e7-9f53-54ee750f2fc7]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7?api-version=2017-01-01
response:
body: {string: '{"name":"clibatchtest7","location":"brazilsouth","properties":{"accountEndpoint":"clibatchtest7.brazilsouth.batch.azure.com","provisioningState":"Succeeded","coreQuota":20,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Storage/storageAccounts/clibatchteststorage7","lastKeySync":"2017-03-06T23:51:44.2225138Z"},"poolAllocationMode":"batchservice"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7","type":"Microsoft.Batch/batchAccounts"}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Mon, 06 Mar 2017 23:52:25 GMT']
ETag: ['0x8D464EBD7638897']
Expires: ['-1']
Last-Modified: ['Mon, 06 Mar 2017 23:52:25 GMT']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
Vary: [Accept-Encoding]
X-Content-Type-Options: [nosniff]
content-length: ['677']
request-id: [324ca323-615c-4b86-8769-ab5968399140]
status: {code: 200, message: OK}
- request:
body: '{"defaultVersion": "1.0"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['25']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchmanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev]
accept-language: [en-US]
x-ms-client-request-id: [f31eaba6-02c7-11e7-97f8-54ee750f2fc7]
method: PATCH
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7/applications/testapp?api-version=2017-01-01
response:
body: {string: ''}
headers:
Cache-Control: [no-cache]
Content-Length: ['0']
Date: ['Mon, 06 Mar 2017 23:52:26 GMT']
ETag: ['0x8D464EBCCA5AA71']
Expires: ['-1']
Last-Modified: ['Mon, 06 Mar 2017 23:52:07 GMT']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-Content-Type-Options: [nosniff]
request-id: [6690cdaa-cf07-490a-8fc0-a2f7974dc4c9]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 204, message: No Content}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchmanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev]
accept-language: [en-US]
x-ms-client-request-id: [f3e6e036-02c7-11e7-8ff0-54ee750f2fc7]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7?api-version=2017-01-01
response:
body: {string: '{"name":"clibatchtest7","location":"brazilsouth","properties":{"accountEndpoint":"clibatchtest7.brazilsouth.batch.azure.com","provisioningState":"Succeeded","coreQuota":20,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Storage/storageAccounts/clibatchteststorage7","lastKeySync":"2017-03-06T23:51:44.2225138Z"},"poolAllocationMode":"batchservice"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7","type":"Microsoft.Batch/batchAccounts"}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Mon, 06 Mar 2017 23:52:26 GMT']
ETag: ['0x8D464EBD7CF194C']
Expires: ['-1']
Last-Modified: ['Mon, 06 Mar 2017 23:52:26 GMT']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
Vary: [Accept-Encoding]
X-Content-Type-Options: [nosniff]
content-length: ['677']
request-id: [1ff73a13-397f-4ac2-a274-7fb143fe9fca]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchmanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev]
accept-language: [en-US]
x-ms-client-request-id: [f419ed18-02c7-11e7-9d57-54ee750f2fc7]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7/applications/testapp?api-version=2017-01-01
response:
body: {string: '{"id":"testapp","packages":[{"version":"1.0","state":"active","lastActivationTime":"2017-03-06T23:52:23.0863742Z","format":"zip"}],"allowUpdates":true,"defaultVersion":"1.0"}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Mon, 06 Mar 2017 23:52:27 GMT']
ETag: ['0x8D464EBD7BEA2E5']
Expires: ['-1']
Last-Modified: ['Mon, 06 Mar 2017 23:52:26 GMT']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
Vary: [Accept-Encoding]
X-Content-Type-Options: [nosniff]
content-length: ['174']
request-id: [aa0c6fe6-128b-4029-a4d6-5ef9dae16d13]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchmanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev]
accept-language: [en-US]
x-ms-client-request-id: [f4bdf76c-02c7-11e7-ab99-54ee750f2fc7]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7?api-version=2017-01-01
response:
body: {string: '{"name":"clibatchtest7","location":"brazilsouth","properties":{"accountEndpoint":"clibatchtest7.brazilsouth.batch.azure.com","provisioningState":"Succeeded","coreQuota":20,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Storage/storageAccounts/clibatchteststorage7","lastKeySync":"2017-03-06T23:51:44.2225138Z"},"poolAllocationMode":"batchservice"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7","type":"Microsoft.Batch/batchAccounts"}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Mon, 06 Mar 2017 23:52:29 GMT']
ETag: ['0x8D464EBD8CC9CC1']
Expires: ['-1']
Last-Modified: ['Mon, 06 Mar 2017 23:52:28 GMT']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
Vary: [Accept-Encoding]
X-Content-Type-Options: [nosniff]
content-length: ['677']
request-id: [16c704d7-6f5e-4ca1-bf37-faebe31dd8cf]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchmanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev]
accept-language: [en-US]
x-ms-client-request-id: [f5a0c0dc-02c7-11e7-b8c2-54ee750f2fc7]
method: DELETE
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7/applications/testapp/versions/1.0?api-version=2017-01-01
response:
body: {string: ''}
headers:
Cache-Control: [no-cache]
Content-Length: ['0']
Date: ['Mon, 06 Mar 2017 23:52:30 GMT']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-Content-Type-Options: [nosniff]
request-id: [75563074-d8e7-4d52-b10f-265a60f068ce]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 204, message: No Content}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchmanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev]
accept-language: [en-US]
x-ms-client-request-id: [f67aeba6-02c7-11e7-b2c4-54ee750f2fc7]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7?api-version=2017-01-01
response:
body: {string: '{"name":"clibatchtest7","location":"brazilsouth","properties":{"accountEndpoint":"clibatchtest7.brazilsouth.batch.azure.com","provisioningState":"Succeeded","coreQuota":20,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Storage/storageAccounts/clibatchteststorage7","lastKeySync":"2017-03-06T23:51:44.2225138Z"},"poolAllocationMode":"batchservice"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7","type":"Microsoft.Batch/batchAccounts"}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Mon, 06 Mar 2017 23:52:30 GMT']
ETag: ['0x8D464EBDA656D1B']
Expires: ['-1']
Last-Modified: ['Mon, 06 Mar 2017 23:52:31 GMT']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
Vary: [Accept-Encoding]
X-Content-Type-Options: [nosniff]
content-length: ['677']
request-id: [0def0359-19ac-4179-be08-d51a0caeed2b]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchmanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev]
accept-language: [en-US]
x-ms-client-request-id: [f6b36e02-02c7-11e7-b314-54ee750f2fc7]
method: DELETE
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7/applications/testapp?api-version=2017-01-01
response:
body: {string: ''}
headers:
Cache-Control: [no-cache]
Content-Length: ['0']
Date: ['Mon, 06 Mar 2017 23:52:32 GMT']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-Content-Type-Options: [nosniff]
request-id: [6b9812e0-feda-4df4-b1c8-ac06fdac7e8b]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 204, message: No Content}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchmanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev]
accept-language: [en-US]
x-ms-client-request-id: [f7f52e48-02c7-11e7-8588-54ee750f2fc7]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7?api-version=2017-01-01
response:
body: {string: '{"name":"clibatchtest7","location":"brazilsouth","properties":{"accountEndpoint":"clibatchtest7.brazilsouth.batch.azure.com","provisioningState":"Succeeded","coreQuota":20,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Storage/storageAccounts/clibatchteststorage7","lastKeySync":"2017-03-06T23:51:44.2225138Z"},"poolAllocationMode":"batchservice"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7","type":"Microsoft.Batch/batchAccounts"}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Mon, 06 Mar 2017 23:52:34 GMT']
ETag: ['0x8D464EBDD1B0CF2']
Expires: ['-1']
Last-Modified: ['Mon, 06 Mar 2017 23:52:35 GMT']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
Vary: [Accept-Encoding]
X-Content-Type-Options: [nosniff]
content-length: ['677']
request-id: [a7034f14-b7e9-435a-9f4c-943385d7e4cd]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchmanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev]
accept-language: [en-US]
x-ms-client-request-id: [f8ddfcf8-02c7-11e7-bf9d-54ee750f2fc7]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest7/applications?api-version=2017-01-01
response:
body: {string: '{"value":[]}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Mon, 06 Mar 2017 23:52:35 GMT']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
Vary: [Accept-Encoding]
X-Content-Type-Options: [nosniff]
content-length: ['12']
request-id: [65f8c802-1be6-422d-8e6f-4a026676976d]
status: {code: 200, message: OK}
version: 1

Просмотреть файл

@ -1,32 +1,181 @@
interactions:
- request:
body: '{"data": "MIIDSTCCArKgAwIBAgIQaleE9RaQtoVKrBwEt2q6RzANBgkqhkiG9w0BAQsFADBnMSswKQYDVQQLDCJDcmVhdGVkIGJ5IGh0dHA6Ly93d3cuZmlkZGxlcjIuY29tMRUwEwYDVQQKDAxET19OT1RfVFJVU1QxITAfBgNVBAMMGERPX05PVF9UUlVTVF9GaWRkbGVyUm9vdDAeFw0xNTAxMTAxNDAwNDVaFw0yMTAxMDkxNDAwNDVaMFoxKzApBgNVBAsMIkNyZWF0ZWQgYnkgaHR0cDovL3d3dy5maWRkbGVyMi5jb20xFTATBgNVBAoMDERPX05PVF9UUlVTVDEUMBIGA1UEAwwLKi5hYm91dC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDZEWc01Lku+PtDJXq9UMFRTpC9ITo/swlKcEODdOT/M+L7zv6OH8dEa9FOVquKoMjFCe6mv4s8c5/vVpaXseMDrWbU1v4OrZ6u3BtLVpcNg8SOUl5+s3gvWM7KTSjtEc4RQTKd5eZEj1vDKLbdyvbog9yCSoTrIfSpbN6S0G3utVBPD68evt8CQgQHPjy8DzElqemiPXVhKF5iJdaKn8JXSvjrcCiWG8A8y/+mFJHIW1jsbMevHSVat7ZPjyroR5PtImqtpXcgsZMiVuRVT0B/x7t3D3VlHp6Jb99d0rmci6DemF+ZyVtAgg+TBtqZEq24RS/nS+2/uVxTHDU3giApAgMBAAGjfzB9MA4GA1UdDwEB/wQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAWBgNVHREEDzANggsqLmFib3V0LmNvbTAfBgNVHSMEGDAWgBSEeNrHb5Vx0ZxM797sUj1T7Bx+FTAdBgNVHQ4EFgQUp7MhHnwP4+9nNjGy9cx4PlHH3AQwDQYJKoZIhvcNAQELBQADgYEAEMFcH3KmCNT8r5oRtKL+JiBN/HIRIjzYT1ILlSnn57rDSlx6yQgMxTjLqcpCvt5vR62QhwcdSSkOBTnpbO5qACrC70CBKJ4cPu9pb0Ncs3IO+l1aIGWpxbwESqiKoraAVNkSaJvU8R6sx20n74JHgxZCVZeC8Rg9UHFhfSeAAOo=",
"certificateFormat": "cer", "thumbprintAlgorithm": "sha1", "thumbprint": "59833fd835f827e9ec693a4c82435a6360cc6271"}'
body: '{"location": "westus", "tags": {"use": "az-test"}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [group create]
Connection: [keep-alive]
Content-Length: ['50']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 resourcemanagementclient/1.1.0rc1 Azure-SDK-For-Python
AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10
response:
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
headers:
cache-control: [no-cache]
content-length: ['328']
content-type: [application/json; charset=utf-8]
date: ['Tue, 16 May 2017 19:26:01 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 201, message: Created}
- request:
body: '{"location": "northcentralus"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [batch account create]
Connection: [keep-alive]
Content-Length: ['30']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchmanagementclient/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002?api-version=2017-05-01
response:
body: {string: ''}
headers:
cache-control: [no-cache]
content-length: ['0']
date: ['Tue, 16 May 2017 19:26:04 GMT']
expires: ['-1']
location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002/operationResults/9d2538d7-e4a6-4415-90b7-7456ec50164c?api-version=2017-05-01']
pragma: [no-cache]
request-id: [9d2538d7-e4a6-4415-90b7-7456ec50164c]
retry-after: ['15']
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-content-type-options: [nosniff]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 202, message: Accepted}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [batch account create]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchmanagementclient/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002/operationResults/9d2538d7-e4a6-4415-90b7-7456ec50164c?api-version=2017-05-01
response:
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002","name":"clibatch000002","type":"Microsoft.Batch/batchAccounts","location":"northcentralus","properties":{"accountEndpoint":"clibatch000002.northcentralus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"poolAllocationMode":"batchservice"}}'}
headers:
cache-control: [no-cache]
content-length: ['575']
content-type: [application/json; charset=utf-8]
date: ['Tue, 16 May 2017 19:26:20 GMT']
etag: ['"0x8D49C916DCEB475"']
expires: ['-1']
last-modified: ['Tue, 16 May 2017 19:26:19 GMT']
pragma: [no-cache]
request-id: [36bbf16a-5f25-4349-a9c0-d5a756d6fce1]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [batch account keys list]
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchmanagementclient/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002/listKeys?api-version=2017-05-01
response:
body: {string: '{"accountName":"clibatch000002","primary":"krrzhKWxnG1Gwts7tmp6KzNQvepl1R5hkOfGdKzQz2RWMbGNOYRLRLm4hjzdml/ohIDWs7uZWVNN+Im2Ue9XKA==","secondary":"rUen+5w+ITMIKliI/nHCXdUFouuVvsxdMzZpoJiN4DM+9sppxom5ANkeDxboJcLTbgmqygTyE3tasOTEdgFTGg=="}'}
headers:
cache-control: [no-cache]
content-length: ['246']
content-type: [application/json; charset=utf-8]
date: ['Tue, 16 May 2017 19:26:21 GMT']
expires: ['-1']
pragma: [no-cache]
request-id: [e2a2bca2-bb8e-4a64-87b4-67ce2aa07604]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
x-content-type-options: [nosniff]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [batch account show]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchmanagementclient/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002?api-version=2017-05-01
response:
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002","name":"clibatch000002","type":"Microsoft.Batch/batchAccounts","location":"northcentralus","properties":{"accountEndpoint":"clibatch000002.northcentralus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"poolAllocationMode":"batchservice"}}'}
headers:
cache-control: [no-cache]
content-length: ['575']
content-type: [application/json; charset=utf-8]
date: ['Tue, 16 May 2017 19:26:21 GMT']
etag: ['"0x8D49C9163E0A63B"']
expires: ['-1']
last-modified: ['Tue, 16 May 2017 19:26:02 GMT']
pragma: [no-cache]
request-id: [f996d129-2786-467b-ba32-9ee402abb76d]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: '{"certificateFormat": "cer", "thumbprintAlgorithm": "sha1", "thumbprint":
"59833fd835f827e9ec693a4c82435a6360cc6271", "data": "MIIDSTCCArKgAwIBAgIQaleE9RaQtoVKrBwEt2q6RzANBgkqhkiG9w0BAQsFADBnMSswKQYDVQQLDCJDcmVhdGVkIGJ5IGh0dHA6Ly93d3cuZmlkZGxlcjIuY29tMRUwEwYDVQQKDAxET19OT1RfVFJVU1QxITAfBgNVBAMMGERPX05PVF9UUlVTVF9GaWRkbGVyUm9vdDAeFw0xNTAxMTAxNDAwNDVaFw0yMTAxMDkxNDAwNDVaMFoxKzApBgNVBAsMIkNyZWF0ZWQgYnkgaHR0cDovL3d3dy5maWRkbGVyMi5jb20xFTATBgNVBAoMDERPX05PVF9UUlVTVDEUMBIGA1UEAwwLKi5hYm91dC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDZEWc01Lku+PtDJXq9UMFRTpC9ITo/swlKcEODdOT/M+L7zv6OH8dEa9FOVquKoMjFCe6mv4s8c5/vVpaXseMDrWbU1v4OrZ6u3BtLVpcNg8SOUl5+s3gvWM7KTSjtEc4RQTKd5eZEj1vDKLbdyvbog9yCSoTrIfSpbN6S0G3utVBPD68evt8CQgQHPjy8DzElqemiPXVhKF5iJdaKn8JXSvjrcCiWG8A8y/+mFJHIW1jsbMevHSVat7ZPjyroR5PtImqtpXcgsZMiVuRVT0B/x7t3D3VlHp6Jb99d0rmci6DemF+ZyVtAgg+TBtqZEq24RS/nS+2/uVxTHDU3giApAgMBAAGjfzB9MA4GA1UdDwEB/wQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAWBgNVHREEDzANggsqLmFib3V0LmNvbTAfBgNVHSMEGDAWgBSEeNrHb5Vx0ZxM797sUj1T7Bx+FTAdBgNVHQ4EFgQUp7MhHnwP4+9nNjGy9cx4PlHH3AQwDQYJKoZIhvcNAQELBQADgYEAEMFcH3KmCNT8r5oRtKL+JiBN/HIRIjzYT1ILlSnn57rDSlx6yQgMxTjLqcpCvt5vR62QhwcdSSkOBTnpbO5qACrC70CBKJ4cPu9pb0Ncs3IO+l1aIGWpxbwESqiKoraAVNkSaJvU8R6sx20n74JHgxZCVZeC8Rg9UHFhfSeAAOo="}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['1257']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [e73b0b80-fd48-11e6-ae9f-54ee750f2fc7]
ocp-date: ['Tue, 28 Feb 2017 00:00:24 GMT']
ocp-date: ['Tue, 16 May 2017 19:26:22 GMT']
method: POST
uri: https://clitest1.uksouth.batch.azure.com/certificates?api-version=2017-01-01.4.0
uri: https://clibatch000002.northcentralus.batch.azure.com/certificates?api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
DataServiceId: ['https://clitest1.uksouth.batch.azure.com/certificates(ThumbprintAlgorithm=sha1,Thumbprint=59833fd835f827e9ec693a4c82435a6360cc6271)']
DataServiceVersion: ['3.0']
Date: ['Tue, 28 Feb 2017 00:00:25 GMT']
Location: ['https://clitest1.uksouth.batch.azure.com/certificates(ThumbprintAlgorithm=sha1,Thumbprint=59833fd835f827e9ec693a4c82435a6360cc6271)']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [ecd86634-756a-4a57-8b5f-818ddb965807]
dataserviceid: ['https://clibatchviqim2oxj4bxx57l.northcentralus.batch.azure.com/certificates(ThumbprintAlgorithm=sha1,Thumbprint=59833fd835f827e9ec693a4c82435a6360cc6271)']
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:26:21 GMT']
location: ['https://clibatch000002.northcentralus.batch.azure.com/certificates(ThumbprintAlgorithm=sha1,Thumbprint=59833fd835f827e9ec693a4c82435a6360cc6271)']
request-id: [8df936ec-699c-446f-8e75-d04e0b923484]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 201, message: Created}
- request:
body: null
@ -35,29 +184,28 @@ interactions:
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [e874a236-fd48-11e6-b499-54ee750f2fc7]
ocp-date: ['Tue, 28 Feb 2017 00:00:26 GMT']
ocp-date: ['Tue, 16 May 2017 19:26:23 GMT']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/certificates(thumbprintAlgorithm=sha1,thumbprint=59833fd835f827e9ec693a4c82435a6360cc6271)?api-version=2017-01-01.4.0
uri: https://clibatch000002.northcentralus.batch.azure.com/certificates(thumbprintAlgorithm=sha1,thumbprint=59833fd835f827e9ec693a4c82435a6360cc6271)?api-version=2017-05-01.5.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#certificates/@Element\"\
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.northcentralus.batch.azure.com/$metadata#certificates/@Element\"\
,\"thumbprint\":\"59833fd835f827e9ec693a4c82435a6360cc6271\",\"thumbprintAlgorithm\"\
:\"sha1\",\"url\":\"https://clitest1.uksouth.batch.azure.com/certificates(thumbprintAlgorithm=sha1,thumbprint=59833fd835f827e9ec693a4c82435a6360cc6271)\"\
,\"state\":\"active\",\"stateTransitionTime\":\"2017-02-28T00:00:24.7064894Z\"\
:\"sha1\",\"url\":\"https://clibatch000002.northcentralus.batch.azure.com/certificates(thumbprintAlgorithm=sha1,thumbprint=59833fd835f827e9ec693a4c82435a6360cc6271)\"\
,\"state\":\"active\",\"stateTransitionTime\":\"2017-05-16T19:26:21.2211476Z\"\
,\"publicData\":\"MIIDSTCCArKgAwIBAgIQaleE9RaQtoVKrBwEt2q6RzANBgkqhkiG9w0BAQsFADBnMSswKQYDVQQLDCJDcmVhdGVkIGJ5IGh0dHA6Ly93d3cuZmlkZGxlcjIuY29tMRUwEwYDVQQKDAxET19OT1RfVFJVU1QxITAfBgNVBAMMGERPX05PVF9UUlVTVF9GaWRkbGVyUm9vdDAeFw0xNTAxMTAxNDAwNDVaFw0yMTAxMDkxNDAwNDVaMFoxKzApBgNVBAsMIkNyZWF0ZWQgYnkgaHR0cDovL3d3dy5maWRkbGVyMi5jb20xFTATBgNVBAoMDERPX05PVF9UUlVTVDEUMBIGA1UEAwwLKi5hYm91dC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDZEWc01Lku+PtDJXq9UMFRTpC9ITo/swlKcEODdOT/M+L7zv6OH8dEa9FOVquKoMjFCe6mv4s8c5/vVpaXseMDrWbU1v4OrZ6u3BtLVpcNg8SOUl5+s3gvWM7KTSjtEc4RQTKd5eZEj1vDKLbdyvbog9yCSoTrIfSpbN6S0G3utVBPD68evt8CQgQHPjy8DzElqemiPXVhKF5iJdaKn8JXSvjrcCiWG8A8y/+mFJHIW1jsbMevHSVat7ZPjyroR5PtImqtpXcgsZMiVuRVT0B/x7t3D3VlHp6Jb99d0rmci6DemF+ZyVtAgg+TBtqZEq24RS/nS+2/uVxTHDU3giApAgMBAAGjfzB9MA4GA1UdDwEB/wQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAWBgNVHREEDzANggsqLmFib3V0LmNvbTAfBgNVHSMEGDAWgBSEeNrHb5Vx0ZxM797sUj1T7Bx+FTAdBgNVHQ4EFgQUp7MhHnwP4+9nNjGy9cx4PlHH3AQwDQYJKoZIhvcNAQELBQADgYEAEMFcH3KmCNT8r5oRtKL+JiBN/HIRIjzYT1ILlSnn57rDSlx6yQgMxTjLqcpCvt5vR62QhwcdSSkOBTnpbO5qACrC70CBKJ4cPu9pb0Ncs3IO+l1aIGWpxbwESqiKoraAVNkSaJvU8R6sx20n74JHgxZCVZeC8Rg9UHFhfSeAAOo=\"\
\r\n}"}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Tue, 28 Feb 2017 00:00:27 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [5d2fc874-2f51-4e64-a5e1-b328337b6b4d]
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:26:24 GMT']
request-id: [f6ea8571-964c-4e9d-b350-07bb5ed0bd14]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
@ -66,30 +214,29 @@ interactions:
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [e93d25d0-fd48-11e6-a975-54ee750f2fc7]
ocp-date: ['Tue, 28 Feb 2017 00:00:27 GMT']
ocp-date: ['Tue, 16 May 2017 19:26:23 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/certificates?api-version=2017-01-01.4.0&timeout=30&maxresults=1000
uri: https://clibatch000002.northcentralus.batch.azure.com/certificates?maxresults=1000&timeout=30&api-version=2017-05-01.5.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#certificates\"\
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.northcentralus.batch.azure.com/$metadata#certificates\"\
,\"value\":[\r\n {\r\n \"thumbprint\":\"59833fd835f827e9ec693a4c82435a6360cc6271\"\
,\"thumbprintAlgorithm\":\"sha1\",\"url\":\"https://clitest1.uksouth.batch.azure.com/certificates(thumbprintAlgorithm=sha1,thumbprint=59833fd835f827e9ec693a4c82435a6360cc6271)\"\
,\"state\":\"active\",\"stateTransitionTime\":\"2017-02-28T00:00:24.7064894Z\"\
,\"thumbprintAlgorithm\":\"sha1\",\"url\":\"https://clibatch000002.northcentralus.batch.azure.com/certificates(thumbprintAlgorithm=sha1,thumbprint=59833fd835f827e9ec693a4c82435a6360cc6271)\"\
,\"state\":\"active\",\"stateTransitionTime\":\"2017-05-16T19:26:21.2211476Z\"\
,\"publicData\":\"MIIDSTCCArKgAwIBAgIQaleE9RaQtoVKrBwEt2q6RzANBgkqhkiG9w0BAQsFADBnMSswKQYDVQQLDCJDcmVhdGVkIGJ5IGh0dHA6Ly93d3cuZmlkZGxlcjIuY29tMRUwEwYDVQQKDAxET19OT1RfVFJVU1QxITAfBgNVBAMMGERPX05PVF9UUlVTVF9GaWRkbGVyUm9vdDAeFw0xNTAxMTAxNDAwNDVaFw0yMTAxMDkxNDAwNDVaMFoxKzApBgNVBAsMIkNyZWF0ZWQgYnkgaHR0cDovL3d3dy5maWRkbGVyMi5jb20xFTATBgNVBAoMDERPX05PVF9UUlVTVDEUMBIGA1UEAwwLKi5hYm91dC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDZEWc01Lku+PtDJXq9UMFRTpC9ITo/swlKcEODdOT/M+L7zv6OH8dEa9FOVquKoMjFCe6mv4s8c5/vVpaXseMDrWbU1v4OrZ6u3BtLVpcNg8SOUl5+s3gvWM7KTSjtEc4RQTKd5eZEj1vDKLbdyvbog9yCSoTrIfSpbN6S0G3utVBPD68evt8CQgQHPjy8DzElqemiPXVhKF5iJdaKn8JXSvjrcCiWG8A8y/+mFJHIW1jsbMevHSVat7ZPjyroR5PtImqtpXcgsZMiVuRVT0B/x7t3D3VlHp6Jb99d0rmci6DemF+ZyVtAgg+TBtqZEq24RS/nS+2/uVxTHDU3giApAgMBAAGjfzB9MA4GA1UdDwEB/wQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAWBgNVHREEDzANggsqLmFib3V0LmNvbTAfBgNVHSMEGDAWgBSEeNrHb5Vx0ZxM797sUj1T7Bx+FTAdBgNVHQ4EFgQUp7MhHnwP4+9nNjGy9cx4PlHH3AQwDQYJKoZIhvcNAQELBQADgYEAEMFcH3KmCNT8r5oRtKL+JiBN/HIRIjzYT1ILlSnn57rDSlx6yQgMxTjLqcpCvt5vR62QhwcdSSkOBTnpbO5qACrC70CBKJ4cPu9pb0Ncs3IO+l1aIGWpxbwESqiKoraAVNkSaJvU8R6sx20n74JHgxZCVZeC8Rg9UHFhfSeAAOo=\"\
\r\n }\r\n ]\r\n}"}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Tue, 28 Feb 2017 00:00:27 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [d13f4f89-ecec-40d2-b104-a94baa37c169]
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:26:22 GMT']
request-id: [c8812ba6-bcbe-44ce-a746-30609edf3ec2]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
@ -99,23 +246,22 @@ interactions:
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [e9fa19d2-fd48-11e6-afcf-54ee750f2fc7]
ocp-date: ['Tue, 28 Feb 2017 00:00:28 GMT']
ocp-date: ['Tue, 16 May 2017 19:26:23 GMT']
method: DELETE
uri: https://clitest1.uksouth.batch.azure.com/certificates(thumbprintAlgorithm=sha1,thumbprint=59833fd835f827e9ec693a4c82435a6360cc6271)?api-version=2017-01-01.4.0
uri: https://clibatch000002.northcentralus.batch.azure.com/certificates(thumbprintAlgorithm=sha1,thumbprint=59833fd835f827e9ec693a4c82435a6360cc6271)?api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
DataServiceVersion: ['3.0']
Date: ['Tue, 28 Feb 2017 00:00:27 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [bc5d3e41-6185-4530-8e59-9d675287c58c]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:26:23 GMT']
request-id: [80bcb0ae-ff2b-454e-b49d-632a329f74e1]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 202, message: Accepted}
- request:
body: null
@ -124,30 +270,57 @@ interactions:
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [eabdfa28-fd48-11e6-b4bb-54ee750f2fc7]
ocp-date: ['Tue, 28 Feb 2017 00:00:29 GMT']
ocp-date: ['Tue, 16 May 2017 19:26:24 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/certificates(thumbprintAlgorithm=sha1,thumbprint=59833fd835f827e9ec693a4c82435a6360cc6271)?api-version=2017-01-01.4.0&timeout=30
uri: https://clibatch000002.northcentralus.batch.azure.com/certificates(thumbprintAlgorithm=sha1,thumbprint=59833fd835f827e9ec693a4c82435a6360cc6271)?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#certificates/@Element\"\
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.northcentralus.batch.azure.com/$metadata#certificates/@Element\"\
,\"thumbprint\":\"59833fd835f827e9ec693a4c82435a6360cc6271\",\"thumbprintAlgorithm\"\
:\"sha1\",\"url\":\"https://clitest1.uksouth.batch.azure.com/certificates(thumbprintAlgorithm=sha1,thumbprint=59833fd835f827e9ec693a4c82435a6360cc6271)\"\
,\"state\":\"deleting\",\"stateTransitionTime\":\"2017-02-28T00:00:28.2022985Z\"\
,\"previousState\":\"active\",\"previousStateTransitionTime\":\"2017-02-28T00:00:24.7064894Z\"\
:\"sha1\",\"url\":\"https://clibatch000002.northcentralus.batch.azure.com/certificates(thumbprintAlgorithm=sha1,thumbprint=59833fd835f827e9ec693a4c82435a6360cc6271)\"\
,\"state\":\"deleting\",\"stateTransitionTime\":\"2017-05-16T19:26:22.464815Z\"\
,\"previousState\":\"active\",\"previousStateTransitionTime\":\"2017-05-16T19:26:21.2211476Z\"\
,\"publicData\":\"MIIDSTCCArKgAwIBAgIQaleE9RaQtoVKrBwEt2q6RzANBgkqhkiG9w0BAQsFADBnMSswKQYDVQQLDCJDcmVhdGVkIGJ5IGh0dHA6Ly93d3cuZmlkZGxlcjIuY29tMRUwEwYDVQQKDAxET19OT1RfVFJVU1QxITAfBgNVBAMMGERPX05PVF9UUlVTVF9GaWRkbGVyUm9vdDAeFw0xNTAxMTAxNDAwNDVaFw0yMTAxMDkxNDAwNDVaMFoxKzApBgNVBAsMIkNyZWF0ZWQgYnkgaHR0cDovL3d3dy5maWRkbGVyMi5jb20xFTATBgNVBAoMDERPX05PVF9UUlVTVDEUMBIGA1UEAwwLKi5hYm91dC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDZEWc01Lku+PtDJXq9UMFRTpC9ITo/swlKcEODdOT/M+L7zv6OH8dEa9FOVquKoMjFCe6mv4s8c5/vVpaXseMDrWbU1v4OrZ6u3BtLVpcNg8SOUl5+s3gvWM7KTSjtEc4RQTKd5eZEj1vDKLbdyvbog9yCSoTrIfSpbN6S0G3utVBPD68evt8CQgQHPjy8DzElqemiPXVhKF5iJdaKn8JXSvjrcCiWG8A8y/+mFJHIW1jsbMevHSVat7ZPjyroR5PtImqtpXcgsZMiVuRVT0B/x7t3D3VlHp6Jb99d0rmci6DemF+ZyVtAgg+TBtqZEq24RS/nS+2/uVxTHDU3giApAgMBAAGjfzB9MA4GA1UdDwEB/wQEAwIEsDATBgNVHSUEDDAKBggrBgEFBQcDATAWBgNVHREEDzANggsqLmFib3V0LmNvbTAfBgNVHSMEGDAWgBSEeNrHb5Vx0ZxM797sUj1T7Bx+FTAdBgNVHQ4EFgQUp7MhHnwP4+9nNjGy9cx4PlHH3AQwDQYJKoZIhvcNAQELBQADgYEAEMFcH3KmCNT8r5oRtKL+JiBN/HIRIjzYT1ILlSnn57rDSlx6yQgMxTjLqcpCvt5vR62QhwcdSSkOBTnpbO5qACrC70CBKJ4cPu9pb0Ncs3IO+l1aIGWpxbwESqiKoraAVNkSaJvU8R6sx20n74JHgxZCVZeC8Rg9UHFhfSeAAOo=\"\
\r\n}"}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Tue, 28 Feb 2017 00:00:30 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [4b25807e-1c66-42d2-84cd-59a514955464]
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:26:23 GMT']
request-id: [30ab3ac8-3238-4390-8ce4-2b66c3e33b19]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [group delete]
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 resourcemanagementclient/1.1.0rc1 Azure-SDK-For-Python
AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: DELETE
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10
response:
body: {string: ''}
headers:
cache-control: [no-cache]
content-length: ['0']
date: ['Tue, 16 May 2017 19:26:24 GMT']
expires: ['-1']
location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdLNlBZQVNTNkRERzdYRTNEWEpNTjNKQTNIMlEzRUVaS1pYS3xFQUNFMTJDODFBNTc5NkY5LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10']
pragma: [no-cache]
retry-after: ['15']
strict-transport-security: [max-age=31536000; includeSubDomains]
x-ms-ratelimit-remaining-subscription-writes: ['1198']
status: {code: 202, message: Accepted}
version: 1

Просмотреть файл

@ -1,51 +1,253 @@
interactions:
- request:
body: '{"jobManagerTask": {"resourceFiles": [{"filePath": "filePath", "blobSource":
"https://testacct.blob.core.windows.net/"}], "killJobOnCompletion": false, "environmentSettings":
[{"value": "value1", "name": "name1"}, {"value": "value2", "name": "name2"}],
"displayName": "jobManagerDisplay", "id": "jobManager", "commandLine": "cmd
/c dir /s", "constraints": {"maxWallClockTime": "PT1H"}}, "poolInfo": {"poolId":
"xplatTestPool"}, "metadata": [{"value": "specMetaValue1", "name": "specMeta1"},
{"value": "specMetaValue2", "name": "specMeta2"}], "priority": 1, "displayName":
"displayName", "jobPreparationTask": {"resourceFiles": [{"filePath": "jobPrepFilePath",
"blobSource": "https://testacct.blob.core.windows.net/"}], "id": "jobPrep",
"commandLine": "cmd /c dir /s", "environmentSettings": [{"value": "jobPrepValue1",
"name": "jobPrepName1"}, {"value": "jobPrepValue2", "name": "jobPrepName2"}],
"constraints": {"maxTaskRetryCount": 2}}, "id": "xplatJob", "commonEnvironmentSettings":
[{"value": "commonValue1", "name": "commonName1"}, {"value": "commonValue2",
"name": "commonName2"}], "jobReleaseTask": {"resourceFiles": [{"filePath": "jobReleaseFilePath",
"blobSource": "https://testacct.blob.core.windows.net/"}], "id": "jobRelease",
"commandLine": "cmd /c dir /s", "environmentSettings": [{"value": "jobReleaseValue1",
"name": "jobReleaseName1"}, {"value": "jobReleaseValue2", "name": "jobReleaseName2"}]},
"constraints": {"maxTaskRetryCount": 5, "maxWallClockTime": "P1D"}}'
body: '{"location": "westus", "tags": {"use": "az-test"}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [group create]
Connection: [keep-alive]
Content-Length: ['50']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 resourcemanagementclient/1.1.0rc1 Azure-SDK-For-Python
AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10
response:
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
headers:
cache-control: [no-cache]
content-length: ['328']
content-type: [application/json; charset=utf-8]
date: ['Tue, 16 May 2017 19:26:25 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 201, message: Created}
- request:
body: '{"location": "eastus2"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [batch account create]
Connection: [keep-alive]
Content-Length: ['23']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchmanagementclient/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002?api-version=2017-05-01
response:
body: {string: ''}
headers:
cache-control: [no-cache]
content-length: ['0']
date: ['Tue, 16 May 2017 19:26:27 GMT']
expires: ['-1']
location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002/operationResults/e14f1059-03a4-414b-b2a3-232e45e6fa05?api-version=2017-05-01']
pragma: [no-cache]
request-id: [e14f1059-03a4-414b-b2a3-232e45e6fa05]
retry-after: ['15']
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-content-type-options: [nosniff]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 202, message: Accepted}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [batch account create]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchmanagementclient/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002/operationResults/e14f1059-03a4-414b-b2a3-232e45e6fa05?api-version=2017-05-01
response:
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002","name":"clibatch000002","type":"Microsoft.Batch/batchAccounts","location":"eastus2","properties":{"accountEndpoint":"clibatch000002.eastus2.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"poolAllocationMode":"batchservice"}}'}
headers:
cache-control: [no-cache]
content-length: ['561']
content-type: [application/json; charset=utf-8]
date: ['Tue, 16 May 2017 19:26:43 GMT']
etag: ['"0x8D49C917DA44DC4"']
expires: ['-1']
last-modified: ['Tue, 16 May 2017 19:26:45 GMT']
pragma: [no-cache]
request-id: [9f6f8706-b93e-47d3-ad6d-481ccb8cb5a8]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [batch account keys list]
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchmanagementclient/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002/listKeys?api-version=2017-05-01
response:
body: {string: '{"accountName":"clibatch000002","primary":"WKK5UUBuavL/+h7CPa7J8F1N9KMgrclIqQ3B5lx7jkPrq2qTqN9+nRZxHS4OW9lUACbH/PD2Vo/TCT0lWB1PLQ==","secondary":"1RW7U0FbPN3hx21EInbw5Oe/CH5977M036ZS1CvA4+Mpw80uXSCXBneKoXImGovRxXqXWXjbT4C5RjLLqlwJvw=="}'}
headers:
cache-control: [no-cache]
content-length: ['246']
content-type: [application/json; charset=utf-8]
date: ['Tue, 16 May 2017 19:26:44 GMT']
expires: ['-1']
pragma: [no-cache]
request-id: [1b9b44b1-824d-4c0f-a259-5c102464490f]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
x-content-type-options: [nosniff]
x-ms-ratelimit-remaining-subscription-writes: ['1198']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [batch account show]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchmanagementclient/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002?api-version=2017-05-01
response:
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002","name":"clibatch000002","type":"Microsoft.Batch/batchAccounts","location":"eastus2","properties":{"accountEndpoint":"clibatch000002.eastus2.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"poolAllocationMode":"batchservice"}}'}
headers:
cache-control: [no-cache]
content-length: ['561']
content-type: [application/json; charset=utf-8]
date: ['Tue, 16 May 2017 19:26:44 GMT']
etag: ['"0x8D49C917218BF66"']
expires: ['-1']
last-modified: ['Tue, 16 May 2017 19:26:26 GMT']
pragma: [no-cache]
request-id: [1372e232-20c9-4f20-8639-1d6b95f816f2]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: '{"id": "xplatJobScheduleJobTests", "metadata": [{"name": "meta2", "value":
"value2"}, {"name": "meta1", "value": "value1"}], "displayName": "displayName",
"schedule": {"recurrenceInterval": "P2D"}, "jobSpecification": {"metadata":
[{"name": "specMeta1", "value": "specMetaValue1"}, {"name": "specMeta2", "value":
"specMetaValue2"}], "commonEnvironmentSettings": [{"name": "commonName1", "value":
"commonValue1"}, {"name": "commonName2", "value": "commonValue2"}], "poolInfo":
{"autoPoolSpecification": {"keepAlive": false, "pool": {"startTask": {"commandLine":
"cmd /c dir /s"}, "certificateReferences": [{"storeName": "certStore", "thumbprintAlgorithm":
"sha1", "thumbprint": "0123456789ABCDEF", "visibility": ["startTask"], "storeLocation":
"localMachine"}], "cloudServiceConfiguration": {"targetOSVersion": "*", "osFamily":
"4"}, "vmSize": "small"}, "poolLifetimeOption": "jobSchedule", "autoPoolIdPrefix":
"TestSpecPrefix"}}, "jobPreparationTask": {"environmentSettings": [{"name":
"jobPrepName1", "value": "jobPrepValue1"}, {"name": "jobPrepName2", "value":
"jobPrepValue2"}], "id": "jobPrep", "resourceFiles": [{"filePath": "jobPrepFilePath",
"blobSource": "https://testacct.blob.core.windows.net/"}], "commandLine": "cmd
/c dir /s", "constraints": {"maxTaskRetryCount": 2}}, "jobReleaseTask": {"environmentSettings":
[{"name": "jobReleaseName1", "value": "jobReleaseValue1"}, {"name": "jobReleaseName2",
"value": "jobReleaseValue2"}], "id": "jobRelease", "resourceFiles": [{"filePath":
"jobReleaseFilePath", "blobSource": "https://testacct.blob.core.windows.net/"}],
"commandLine": "cmd /c dir /s"}, "priority": 1, "constraints": {"maxWallClockTime":
"P1D", "maxTaskRetryCount": 5}, "jobManagerTask": {"environmentSettings": [{"name":
"name1", "value": "value1"}, {"name": "name2", "value": "value2"}], "id": "jobManager",
"resourceFiles": [{"filePath": "filePath", "blobSource": "https://testacct.blob.core.windows.net/"}],
"commandLine": "cmd /c dir /s", "displayName": "jobManagerDisplay", "killJobOnCompletion":
false, "constraints": {"maxWallClockTime": "PT1H"}}, "displayName": "jobSpecDisplayName"}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['2113']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:26:45 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clibatch000002.eastus2.batch.azure.com/jobschedules?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
dataserviceid: ['https://clibatchwzwviwonyph6c4lo.eastus2.batch.azure.com/jobschedules/xplatJobScheduleJobTests']
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:26:46 GMT']
etag: ['0x8D49C917E7EA19F']
last-modified: ['Tue, 16 May 2017 19:26:47 GMT']
location: ['https://clibatch000002.eastus2.batch.azure.com/jobschedules/xplatJobScheduleJobTests']
request-id: [993d1cfd-ecc3-4107-9e92-14041974cf28]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 201, message: Created}
- request:
body: '{"id": "xplatJob", "metadata": [{"name": "specMeta1", "value": "specMetaValue1"},
{"name": "specMeta2", "value": "specMetaValue2"}], "commonEnvironmentSettings":
[{"name": "commonName1", "value": "commonValue1"}, {"name": "commonName2", "value":
"commonValue2"}], "poolInfo": {"poolId": "xplatTestPool"}, "jobPreparationTask":
{"environmentSettings": [{"name": "jobPrepName1", "value": "jobPrepValue1"},
{"name": "jobPrepName2", "value": "jobPrepValue2"}], "id": "jobPrep", "resourceFiles":
[{"filePath": "jobPrepFilePath", "blobSource": "https://testacct.blob.core.windows.net/"}],
"commandLine": "cmd /c dir /s", "constraints": {"maxTaskRetryCount": 2}}, "jobReleaseTask":
{"environmentSettings": [{"name": "jobReleaseName1", "value": "jobReleaseValue1"},
{"name": "jobReleaseName2", "value": "jobReleaseValue2"}], "id": "jobRelease",
"resourceFiles": [{"filePath": "jobReleaseFilePath", "blobSource": "https://testacct.blob.core.windows.net/"}],
"commandLine": "cmd /c dir /s"}, "priority": 1, "constraints": {"maxWallClockTime":
"P1D", "maxTaskRetryCount": 5}, "jobManagerTask": {"environmentSettings": [{"name":
"name1", "value": "value1"}, {"name": "name2", "value": "value2"}], "id": "jobManager",
"resourceFiles": [{"filePath": "filePath", "blobSource": "https://testacct.blob.core.windows.net/"}],
"commandLine": "cmd /c dir /s", "displayName": "jobManagerDisplay", "killJobOnCompletion":
false, "constraints": {"maxWallClockTime": "PT1H"}}, "displayName": "displayName"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['1480']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [e0824492-fd48-11e6-b0e3-54ee750f2fc7]
ocp-date: ['Tue, 28 Feb 2017 00:00:12 GMT']
ocp-date: ['Tue, 16 May 2017 19:26:46 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clitest1.uksouth.batch.azure.com/jobs?api-version=2017-01-01.4.0&timeout=30
uri: https://clibatch000002.eastus2.batch.azure.com/jobs?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
DataServiceId: ['https://clitest1.uksouth.batch.azure.com/jobs/job-1']
DataServiceVersion: ['3.0']
Date: ['Tue, 28 Feb 2017 00:00:11 GMT']
ETag: ['0x8D45F6CC317423B']
Last-Modified: ['Tue, 28 Feb 2017 00:00:10 GMT']
Location: ['https://clitest1.uksouth.batch.azure.com/jobs/job-1']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [1bd9d4ec-8a23-4834-b036-69240b6a29a2]
dataserviceid: ['https://clibatchwzwviwonyph6c4lo.eastus2.batch.azure.com/jobs/job-1']
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:26:46 GMT']
etag: ['0x8D49C917EE75D0C']
last-modified: ['Tue, 16 May 2017 19:26:47 GMT']
location: ['https://clibatch000002.eastus2.batch.azure.com/jobs/job-1']
request-id: [b103f47e-164c-4640-b580-99285b276484]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 201, message: Created}
- request:
body: null
@ -54,22 +256,21 @@ interactions:
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [e12a9510-fd48-11e6-8825-54ee750f2fc7]
ocp-date: ['Tue, 28 Feb 2017 00:00:13 GMT']
ocp-date: ['Tue, 16 May 2017 19:26:46 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/jobschedules/xplatJobScheduleJobTests/jobs?api-version=2017-01-01.4.0&maxresults=1000&timeout=30
uri: https://clibatch000002.eastus2.batch.azure.com/jobschedules/xplatJobScheduleJobTests/jobs?maxresults=1000&timeout=30&api-version=2017-05-01.5.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#jobs\"\
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.eastus2.batch.azure.com/$metadata#jobs\"\
,\"value\":[\r\n {\r\n \"id\":\"xplatJobScheduleJobTests:job-1\",\"\
displayName\":\"jobSpecDisplayName\",\"url\":\"https://clitest1.uksouth.batch.azure.com/jobs/xplatJobScheduleJobTests:job-1\"\
,\"eTag\":\"0x8D45F6CC24BBF51\",\"lastModified\":\"2017-02-28T00:00:08.6933329Z\"\
,\"creationTime\":\"2017-02-28T00:00:08.6042365Z\",\"state\":\"completed\"\
,\"stateTransitionTime\":\"2017-02-28T00:00:08.7903436Z\",\"previousState\"\
:\"active\",\"previousStateTransitionTime\":\"2017-02-28T00:00:08.6933329Z\"\
displayName\":\"jobSpecDisplayName\",\"url\":\"https://clibatch000002.eastus2.batch.azure.com/jobs/xplatJobScheduleJobTests:job-1\"\
,\"eTag\":\"0x8D49C917E99AC8E\",\"lastModified\":\"2017-05-16T19:26:47.4273934Z\"\
,\"creationTime\":\"2017-05-16T19:26:47.3224792Z\",\"state\":\"completed\"\
,\"stateTransitionTime\":\"2017-05-16T19:26:47.5742536Z\",\"previousState\"\
:\"active\",\"previousStateTransitionTime\":\"2017-05-16T19:26:47.4273934Z\"\
,\"priority\":1,\"usesTaskDependencies\":false,\"constraints\":{\r\n \
\ \"maxWallClockTime\":\"P1D\",\"maxTaskRetryCount\":5\r\n },\"jobManagerTask\"\
:{\r\n \"id\":\"jobManager\",\"displayName\":\"jobManagerDisplay\"\
@ -81,10 +282,10 @@ interactions:
\ }\r\n ],\"constraints\":{\r\n \"maxWallClockTime\"\
:\"PT1H\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\"\
:5\r\n },\"userIdentity\":{\r\n \"autoUser\":{\r\n \
\ \"scope\":\"task\",\"elevationLevel\":\"nonadmin\"\r\n }\r\n\
\ },\"runExclusive\":true,\"killJobOnCompletion\":false\r\n },\"\
jobPreparationTask\":{\r\n \"id\":\"jobPrep\",\"commandLine\":\"cmd\
\ /c dir /s\",\"resourceFiles\":[\r\n {\r\n \"blobSource\"\
\ \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"runExclusive\"\
:true,\"allowLowPriorityNode\":true,\"killJobOnCompletion\":false\r\n \
\ },\"jobPreparationTask\":{\r\n \"id\":\"jobPrep\",\"commandLine\"\
:\"cmd /c dir /s\",\"resourceFiles\":[\r\n {\r\n \"blobSource\"\
:\"https://testacct.blob.core.windows.net/\",\"filePath\":\"jobPrepFilePath\"\
\r\n }\r\n ],\"environmentSettings\":[\r\n {\r\n\
\ \"name\":\"jobPrepName1\",\"value\":\"jobPrepValue1\"\r\n \
@ -92,38 +293,39 @@ interactions:
\r\n }\r\n ],\"constraints\":{\r\n \"maxWallClockTime\"\
:\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\"\
,\"maxTaskRetryCount\":2\r\n },\"userIdentity\":{\r\n \"autoUser\"\
:{\r\n \"scope\":\"task\",\"elevationLevel\":\"nonadmin\"\r\n \
\ }\r\n },\"waitForSuccess\":true,\"rerunOnNodeRebootAfterSuccess\"\
:true\r\n },\"jobReleaseTask\":{\r\n \"id\":\"jobRelease\",\"\
commandLine\":\"cmd /c dir /s\",\"resourceFiles\":[\r\n {\r\n \
\ \"blobSource\":\"https://testacct.blob.core.windows.net/\",\"filePath\"\
:\"jobReleaseFilePath\"\r\n }\r\n ],\"environmentSettings\"\
:[\r\n {\r\n \"name\":\"jobReleaseName1\",\"value\":\"\
jobReleaseValue1\"\r\n },{\r\n \"name\":\"jobReleaseName2\"\
,\"value\":\"jobReleaseValue2\"\r\n }\r\n ],\"maxWallClockTime\"\
:\"PT15M\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"userIdentity\"\
:{\r\n \"autoUser\":{\r\n \"scope\":\"task\",\"elevationLevel\"\
:\"nonadmin\"\r\n }\r\n }\r\n },\"commonEnvironmentSettings\"\
:[\r\n {\r\n \"name\":\"commonName1\",\"value\":\"commonValue1\"\
\r\n },{\r\n \"name\":\"commonName2\",\"value\":\"commonValue2\"\
\r\n }\r\n ],\"poolInfo\":{\r\n \"autoPoolSpecification\"\
:{\r\n \"autoPoolIdPrefix\":\"TestSpecPrefix\",\"poolLifetimeOption\"\
:\"jobschedule\",\"keepAlive\":false,\"pool\":{\r\n \"vmSize\"\
:\"small\",\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \
:{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n \
\ },\"waitForSuccess\":true,\"rerunOnNodeRebootAfterSuccess\":true\r\n \
\ },\"jobReleaseTask\":{\r\n \"id\":\"jobRelease\",\"commandLine\"\
:\"cmd /c dir /s\",\"resourceFiles\":[\r\n {\r\n \"blobSource\"\
:\"https://testacct.blob.core.windows.net/\",\"filePath\":\"jobReleaseFilePath\"\
\r\n }\r\n ],\"environmentSettings\":[\r\n {\r\n\
\ \"name\":\"jobReleaseName1\",\"value\":\"jobReleaseValue1\"\r\
\n },{\r\n \"name\":\"jobReleaseName2\",\"value\":\"jobReleaseValue2\"\
\r\n }\r\n ],\"maxWallClockTime\":\"PT15M\",\"retentionTime\"\
:\"P10675199DT2H48M5.4775807S\",\"userIdentity\":{\r\n \"autoUser\"\
:{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n \
\ }\r\n },\"commonEnvironmentSettings\":[\r\n {\r\n \
\ \"name\":\"commonName1\",\"value\":\"commonValue1\"\r\n },{\r\n\
\ \"name\":\"commonName2\",\"value\":\"commonValue2\"\r\n \
\ }\r\n ],\"poolInfo\":{\r\n \"autoPoolSpecification\":{\r\n \
\ \"autoPoolIdPrefix\":\"TestSpecPrefix\",\"poolLifetimeOption\":\"\
jobschedule\",\"keepAlive\":false,\"pool\":{\r\n \"vmSize\":\"\
small\",\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \
\ \"nodeFillType\":\"Spread\"\r\n },\"resizeTimeout\":\"PT15M\"\
,\"targetDedicated\":3,\"enableAutoScale\":false,\"enableInterNodeCommunication\"\
:false,\"startTask\":{\r\n \"commandLine\":\"cmd /c dir /s\"\
,\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"certificateReferences\"\
:[\r\n {\r\n \"thumbprint\":\"0123456789abcdef\"\
,\"thumbprintAlgorithm\":\"sha1\",\"storeLocation\":\"LocalMachine\",\"storeName\"\
:\"certStore\",\"visibility\":[\r\n \"starttask\"\r\n \
\ ]\r\n }\r\n ],\"cloudServiceConfiguration\"\
:{\r\n \"osFamily\":\"4\",\"targetOSVersion\":\"*\"\r\n \
\ }\r\n }\r\n }\r\n },\"metadata\":[\r\n \
\ {\r\n \"name\":\"specMeta1\",\"value\":\"specMetaValue1\"\r\n\
\ },{\r\n \"name\":\"specMeta2\",\"value\":\"specMetaValue2\"\
\r\n }\r\n ],\"executionInfo\":{\r\n \"startTime\":\"2017-02-28T00:00:08.6933329Z\"\
,\"endTime\":\"2017-02-28T00:00:08.7903436Z\",\"poolId\":\"TestSpecPrefix_6D0B6CAF-A051-43EC-A1CA-B010D2D38215\"\
,\"targetDedicatedNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\"\
:false,\"enableInterNodeCommunication\":false,\"startTask\":{\r\n \
\ \"commandLine\":\"cmd /c dir /s\",\"maxTaskRetryCount\":0,\"waitForSuccess\"\
:false\r\n },\"certificateReferences\":[\r\n {\r\n\
\ \"thumbprint\":\"0123456789abcdef\",\"thumbprintAlgorithm\"\
:\"sha1\",\"storeLocation\":\"LocalMachine\",\"storeName\":\"certStore\",\"\
visibility\":[\r\n \"starttask\"\r\n ]\r\n\
\ }\r\n ],\"cloudServiceConfiguration\":{\r\n \
\ \"osFamily\":\"4\",\"targetOSVersion\":\"*\"\r\n }\r\
\n }\r\n }\r\n },\"metadata\":[\r\n {\r\n \
\ \"name\":\"specMeta1\",\"value\":\"specMetaValue1\"\r\n },{\r\
\n \"name\":\"specMeta2\",\"value\":\"specMetaValue2\"\r\n \
\ }\r\n ],\"executionInfo\":{\r\n \"startTime\":\"2017-05-16T19:26:47.4273934Z\"\
,\"endTime\":\"2017-05-16T19:26:47.5742536Z\",\"poolId\":\"TestSpecPrefix_2FAB6C88-5FBC-44A5-BA80-1B525C217DCB\"\
,\"schedulingError\":{\r\n \"category\":\"UserError\",\"code\":\"\
InvalidCertificatesInAutoPool\",\"message\":\"One or more certificates specified\
\ for the pool are invalid\",\"details\":[\r\n {\r\n \
@ -132,14 +334,14 @@ interactions:
\ },\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\"\r\n\
\ }\r\n ]\r\n}"}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Tue, 28 Feb 2017 00:00:13 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [8d494fbd-7f6b-481c-b0ed-3e1747dbc95e]
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:26:46 GMT']
request-id: [18f52e6e-8f94-436e-b031-746ccaf66cd3]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
@ -148,21 +350,20 @@ interactions:
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [e268eb5c-fd48-11e6-a261-54ee750f2fc7]
ocp-date: ['Tue, 28 Feb 2017 00:00:15 GMT']
ocp-date: ['Tue, 16 May 2017 19:26:47 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/jobs?api-version=2017-01-01.4.0&maxresults=1000&timeout=30
uri: https://clibatch000002.eastus2.batch.azure.com/jobs?maxresults=1000&timeout=30&api-version=2017-05-01.5.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#jobs\"\
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.eastus2.batch.azure.com/$metadata#jobs\"\
,\"value\":[\r\n {\r\n \"id\":\"xplatJob\",\"displayName\":\"displayName\"\
,\"url\":\"https://clitest1.uksouth.batch.azure.com/jobs/xplatJob\",\"eTag\"\
:\"0x8D45F6CC317423B\",\"lastModified\":\"2017-02-28T00:00:10.0270651Z\",\"\
creationTime\":\"2017-02-28T00:00:09.9920338Z\",\"state\":\"active\",\"stateTransitionTime\"\
:\"2017-02-28T00:00:10.0270651Z\",\"priority\":1,\"usesTaskDependencies\"\
,\"url\":\"https://clibatch000002.eastus2.batch.azure.com/jobs/xplatJob\"\
,\"eTag\":\"0x8D49C917EE75D0C\",\"lastModified\":\"2017-05-16T19:26:47.9365388Z\"\
,\"creationTime\":\"2017-05-16T19:26:47.8552417Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-05-16T19:26:47.9365388Z\",\"priority\":1,\"usesTaskDependencies\"\
:false,\"constraints\":{\r\n \"maxWallClockTime\":\"P1D\",\"maxTaskRetryCount\"\
:5\r\n },\"jobManagerTask\":{\r\n \"id\":\"jobManager\",\"displayName\"\
:\"jobManagerDisplay\",\"commandLine\":\"cmd /c dir /s\",\"resourceFiles\"\
@ -173,10 +374,10 @@ interactions:
\ }\r\n ],\"constraints\":{\r\n \"maxWallClockTime\"\
:\"PT1H\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\"\
:5\r\n },\"userIdentity\":{\r\n \"autoUser\":{\r\n \
\ \"scope\":\"task\",\"elevationLevel\":\"nonadmin\"\r\n }\r\n\
\ },\"runExclusive\":true,\"killJobOnCompletion\":false\r\n },\"\
jobPreparationTask\":{\r\n \"id\":\"jobPrep\",\"commandLine\":\"cmd\
\ /c dir /s\",\"resourceFiles\":[\r\n {\r\n \"blobSource\"\
\ \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"runExclusive\"\
:true,\"allowLowPriorityNode\":true,\"killJobOnCompletion\":false\r\n \
\ },\"jobPreparationTask\":{\r\n \"id\":\"jobPrep\",\"commandLine\"\
:\"cmd /c dir /s\",\"resourceFiles\":[\r\n {\r\n \"blobSource\"\
:\"https://testacct.blob.core.windows.net/\",\"filePath\":\"jobPrepFilePath\"\
\r\n }\r\n ],\"environmentSettings\":[\r\n {\r\n\
\ \"name\":\"jobPrepName1\",\"value\":\"jobPrepValue1\"\r\n \
@ -184,32 +385,32 @@ interactions:
\r\n }\r\n ],\"constraints\":{\r\n \"maxWallClockTime\"\
:\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\"\
,\"maxTaskRetryCount\":2\r\n },\"userIdentity\":{\r\n \"autoUser\"\
:{\r\n \"scope\":\"task\",\"elevationLevel\":\"nonadmin\"\r\n \
\ }\r\n },\"waitForSuccess\":true,\"rerunOnNodeRebootAfterSuccess\"\
:true\r\n },\"jobReleaseTask\":{\r\n \"id\":\"jobRelease\",\"\
commandLine\":\"cmd /c dir /s\",\"resourceFiles\":[\r\n {\r\n \
\ \"blobSource\":\"https://testacct.blob.core.windows.net/\",\"filePath\"\
:\"jobReleaseFilePath\"\r\n }\r\n ],\"environmentSettings\"\
:[\r\n {\r\n \"name\":\"jobReleaseName1\",\"value\":\"\
jobReleaseValue1\"\r\n },{\r\n \"name\":\"jobReleaseName2\"\
,\"value\":\"jobReleaseValue2\"\r\n }\r\n ],\"maxWallClockTime\"\
:\"PT15M\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"userIdentity\"\
:{\r\n \"autoUser\":{\r\n \"scope\":\"task\",\"elevationLevel\"\
:\"nonadmin\"\r\n }\r\n }\r\n },\"commonEnvironmentSettings\"\
:[\r\n {\r\n \"name\":\"commonName1\",\"value\":\"commonValue1\"\
\r\n },{\r\n \"name\":\"commonName2\",\"value\":\"commonValue2\"\
\r\n }\r\n ],\"poolInfo\":{\r\n \"poolId\":\"xplatTestPool\"\
\r\n },\"metadata\":[\r\n {\r\n \"name\":\"specMeta1\"\
,\"value\":\"specMetaValue1\"\r\n },{\r\n \"name\":\"specMeta2\"\
:{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n \
\ },\"waitForSuccess\":true,\"rerunOnNodeRebootAfterSuccess\":true\r\n \
\ },\"jobReleaseTask\":{\r\n \"id\":\"jobRelease\",\"commandLine\"\
:\"cmd /c dir /s\",\"resourceFiles\":[\r\n {\r\n \"blobSource\"\
:\"https://testacct.blob.core.windows.net/\",\"filePath\":\"jobReleaseFilePath\"\
\r\n }\r\n ],\"environmentSettings\":[\r\n {\r\n\
\ \"name\":\"jobReleaseName1\",\"value\":\"jobReleaseValue1\"\r\
\n },{\r\n \"name\":\"jobReleaseName2\",\"value\":\"jobReleaseValue2\"\
\r\n }\r\n ],\"maxWallClockTime\":\"PT15M\",\"retentionTime\"\
:\"P10675199DT2H48M5.4775807S\",\"userIdentity\":{\r\n \"autoUser\"\
:{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n \
\ }\r\n },\"commonEnvironmentSettings\":[\r\n {\r\n \
\ \"name\":\"commonName1\",\"value\":\"commonValue1\"\r\n },{\r\n\
\ \"name\":\"commonName2\",\"value\":\"commonValue2\"\r\n \
\ }\r\n ],\"poolInfo\":{\r\n \"poolId\":\"xplatTestPool\"\r\n\
\ },\"metadata\":[\r\n {\r\n \"name\":\"specMeta1\",\"\
value\":\"specMetaValue1\"\r\n },{\r\n \"name\":\"specMeta2\"\
,\"value\":\"specMetaValue2\"\r\n }\r\n ],\"executionInfo\":{\r\
\n \"startTime\":\"2017-02-28T00:00:10.0270651Z\",\"poolId\":\"xplatTestPool\"\
\n \"startTime\":\"2017-05-16T19:26:47.9365388Z\",\"poolId\":\"xplatTestPool\"\
\r\n },\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\"\
\r\n },{\r\n \"id\":\"xplatJobScheduleJobTests:job-1\",\"displayName\"\
:\"jobSpecDisplayName\",\"url\":\"https://clitest1.uksouth.batch.azure.com/jobs/xplatJobScheduleJobTests:job-1\"\
,\"eTag\":\"0x8D45F6CC24BBF51\",\"lastModified\":\"2017-02-28T00:00:08.6933329Z\"\
,\"creationTime\":\"2017-02-28T00:00:08.6042365Z\",\"state\":\"completed\"\
,\"stateTransitionTime\":\"2017-02-28T00:00:08.7903436Z\",\"previousState\"\
:\"active\",\"previousStateTransitionTime\":\"2017-02-28T00:00:08.6933329Z\"\
:\"jobSpecDisplayName\",\"url\":\"https://clibatch000002.eastus2.batch.azure.com/jobs/xplatJobScheduleJobTests:job-1\"\
,\"eTag\":\"0x8D49C917E99AC8E\",\"lastModified\":\"2017-05-16T19:26:47.4273934Z\"\
,\"creationTime\":\"2017-05-16T19:26:47.3224792Z\",\"state\":\"completed\"\
,\"stateTransitionTime\":\"2017-05-16T19:26:47.5742536Z\",\"previousState\"\
:\"active\",\"previousStateTransitionTime\":\"2017-05-16T19:26:47.4273934Z\"\
,\"priority\":1,\"usesTaskDependencies\":false,\"constraints\":{\r\n \
\ \"maxWallClockTime\":\"P1D\",\"maxTaskRetryCount\":5\r\n },\"jobManagerTask\"\
:{\r\n \"id\":\"jobManager\",\"displayName\":\"jobManagerDisplay\"\
@ -221,10 +422,10 @@ interactions:
\ }\r\n ],\"constraints\":{\r\n \"maxWallClockTime\"\
:\"PT1H\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\"\
:5\r\n },\"userIdentity\":{\r\n \"autoUser\":{\r\n \
\ \"scope\":\"task\",\"elevationLevel\":\"nonadmin\"\r\n }\r\n\
\ },\"runExclusive\":true,\"killJobOnCompletion\":false\r\n },\"\
jobPreparationTask\":{\r\n \"id\":\"jobPrep\",\"commandLine\":\"cmd\
\ /c dir /s\",\"resourceFiles\":[\r\n {\r\n \"blobSource\"\
\ \"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"runExclusive\"\
:true,\"allowLowPriorityNode\":true,\"killJobOnCompletion\":false\r\n \
\ },\"jobPreparationTask\":{\r\n \"id\":\"jobPrep\",\"commandLine\"\
:\"cmd /c dir /s\",\"resourceFiles\":[\r\n {\r\n \"blobSource\"\
:\"https://testacct.blob.core.windows.net/\",\"filePath\":\"jobPrepFilePath\"\
\r\n }\r\n ],\"environmentSettings\":[\r\n {\r\n\
\ \"name\":\"jobPrepName1\",\"value\":\"jobPrepValue1\"\r\n \
@ -232,38 +433,39 @@ interactions:
\r\n }\r\n ],\"constraints\":{\r\n \"maxWallClockTime\"\
:\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\"\
,\"maxTaskRetryCount\":2\r\n },\"userIdentity\":{\r\n \"autoUser\"\
:{\r\n \"scope\":\"task\",\"elevationLevel\":\"nonadmin\"\r\n \
\ }\r\n },\"waitForSuccess\":true,\"rerunOnNodeRebootAfterSuccess\"\
:true\r\n },\"jobReleaseTask\":{\r\n \"id\":\"jobRelease\",\"\
commandLine\":\"cmd /c dir /s\",\"resourceFiles\":[\r\n {\r\n \
\ \"blobSource\":\"https://testacct.blob.core.windows.net/\",\"filePath\"\
:\"jobReleaseFilePath\"\r\n }\r\n ],\"environmentSettings\"\
:[\r\n {\r\n \"name\":\"jobReleaseName1\",\"value\":\"\
jobReleaseValue1\"\r\n },{\r\n \"name\":\"jobReleaseName2\"\
,\"value\":\"jobReleaseValue2\"\r\n }\r\n ],\"maxWallClockTime\"\
:\"PT15M\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"userIdentity\"\
:{\r\n \"autoUser\":{\r\n \"scope\":\"task\",\"elevationLevel\"\
:\"nonadmin\"\r\n }\r\n }\r\n },\"commonEnvironmentSettings\"\
:[\r\n {\r\n \"name\":\"commonName1\",\"value\":\"commonValue1\"\
\r\n },{\r\n \"name\":\"commonName2\",\"value\":\"commonValue2\"\
\r\n }\r\n ],\"poolInfo\":{\r\n \"autoPoolSpecification\"\
:{\r\n \"autoPoolIdPrefix\":\"TestSpecPrefix\",\"poolLifetimeOption\"\
:\"jobschedule\",\"keepAlive\":false,\"pool\":{\r\n \"vmSize\"\
:\"small\",\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \
:{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n \
\ },\"waitForSuccess\":true,\"rerunOnNodeRebootAfterSuccess\":true\r\n \
\ },\"jobReleaseTask\":{\r\n \"id\":\"jobRelease\",\"commandLine\"\
:\"cmd /c dir /s\",\"resourceFiles\":[\r\n {\r\n \"blobSource\"\
:\"https://testacct.blob.core.windows.net/\",\"filePath\":\"jobReleaseFilePath\"\
\r\n }\r\n ],\"environmentSettings\":[\r\n {\r\n\
\ \"name\":\"jobReleaseName1\",\"value\":\"jobReleaseValue1\"\r\
\n },{\r\n \"name\":\"jobReleaseName2\",\"value\":\"jobReleaseValue2\"\
\r\n }\r\n ],\"maxWallClockTime\":\"PT15M\",\"retentionTime\"\
:\"P10675199DT2H48M5.4775807S\",\"userIdentity\":{\r\n \"autoUser\"\
:{\r\n \"elevationLevel\":\"nonadmin\"\r\n }\r\n \
\ }\r\n },\"commonEnvironmentSettings\":[\r\n {\r\n \
\ \"name\":\"commonName1\",\"value\":\"commonValue1\"\r\n },{\r\n\
\ \"name\":\"commonName2\",\"value\":\"commonValue2\"\r\n \
\ }\r\n ],\"poolInfo\":{\r\n \"autoPoolSpecification\":{\r\n \
\ \"autoPoolIdPrefix\":\"TestSpecPrefix\",\"poolLifetimeOption\":\"\
jobschedule\",\"keepAlive\":false,\"pool\":{\r\n \"vmSize\":\"\
small\",\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \
\ \"nodeFillType\":\"Spread\"\r\n },\"resizeTimeout\":\"PT15M\"\
,\"targetDedicated\":3,\"enableAutoScale\":false,\"enableInterNodeCommunication\"\
:false,\"startTask\":{\r\n \"commandLine\":\"cmd /c dir /s\"\
,\"maxTaskRetryCount\":0,\"waitForSuccess\":false\r\n },\"certificateReferences\"\
:[\r\n {\r\n \"thumbprint\":\"0123456789abcdef\"\
,\"thumbprintAlgorithm\":\"sha1\",\"storeLocation\":\"LocalMachine\",\"storeName\"\
:\"certStore\",\"visibility\":[\r\n \"starttask\"\r\n \
\ ]\r\n }\r\n ],\"cloudServiceConfiguration\"\
:{\r\n \"osFamily\":\"4\",\"targetOSVersion\":\"*\"\r\n \
\ }\r\n }\r\n }\r\n },\"metadata\":[\r\n \
\ {\r\n \"name\":\"specMeta1\",\"value\":\"specMetaValue1\"\r\n\
\ },{\r\n \"name\":\"specMeta2\",\"value\":\"specMetaValue2\"\
\r\n }\r\n ],\"executionInfo\":{\r\n \"startTime\":\"2017-02-28T00:00:08.6933329Z\"\
,\"endTime\":\"2017-02-28T00:00:08.7903436Z\",\"poolId\":\"TestSpecPrefix_6D0B6CAF-A051-43EC-A1CA-B010D2D38215\"\
,\"targetDedicatedNodes\":0,\"targetLowPriorityNodes\":0,\"enableAutoScale\"\
:false,\"enableInterNodeCommunication\":false,\"startTask\":{\r\n \
\ \"commandLine\":\"cmd /c dir /s\",\"maxTaskRetryCount\":0,\"waitForSuccess\"\
:false\r\n },\"certificateReferences\":[\r\n {\r\n\
\ \"thumbprint\":\"0123456789abcdef\",\"thumbprintAlgorithm\"\
:\"sha1\",\"storeLocation\":\"LocalMachine\",\"storeName\":\"certStore\",\"\
visibility\":[\r\n \"starttask\"\r\n ]\r\n\
\ }\r\n ],\"cloudServiceConfiguration\":{\r\n \
\ \"osFamily\":\"4\",\"targetOSVersion\":\"*\"\r\n }\r\
\n }\r\n }\r\n },\"metadata\":[\r\n {\r\n \
\ \"name\":\"specMeta1\",\"value\":\"specMetaValue1\"\r\n },{\r\
\n \"name\":\"specMeta2\",\"value\":\"specMetaValue2\"\r\n \
\ }\r\n ],\"executionInfo\":{\r\n \"startTime\":\"2017-05-16T19:26:47.4273934Z\"\
,\"endTime\":\"2017-05-16T19:26:47.5742536Z\",\"poolId\":\"TestSpecPrefix_2FAB6C88-5FBC-44A5-BA80-1B525C217DCB\"\
,\"schedulingError\":{\r\n \"category\":\"UserError\",\"code\":\"\
InvalidCertificatesInAutoPool\",\"message\":\"One or more certificates specified\
\ for the pool are invalid\",\"details\":[\r\n {\r\n \
@ -272,14 +474,14 @@ interactions:
\ },\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\"\r\n\
\ }\r\n ]\r\n}"}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Tue, 28 Feb 2017 00:00:14 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [e2a5df3f-9ac9-444a-82af-692d05c58499]
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:26:48 GMT']
request-id: [15ee0b01-a5fc-4298-8b6c-c5d08d7dc717]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
@ -289,23 +491,76 @@ interactions:
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [e31b4c5c-fd48-11e6-b840-54ee750f2fc7]
ocp-date: ['Tue, 28 Feb 2017 00:00:17 GMT']
ocp-date: ['Tue, 16 May 2017 19:26:47 GMT']
return-client-request-id: ['false']
method: DELETE
uri: https://clitest1.uksouth.batch.azure.com/jobs/xplatJob?api-version=2017-01-01.4.0&timeout=30
uri: https://clibatch000002.eastus2.batch.azure.com/jobs/xplatJob?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
DataServiceVersion: ['3.0']
Date: ['Tue, 28 Feb 2017 00:00:18 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [45a0eb3d-9bd4-4350-858c-14c647d5400a]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:26:49 GMT']
request-id: [b59498c4-995d-4cd6-8ec8-8e91795c069a]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 202, message: Accepted}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:26:48 GMT']
return-client-request-id: ['false']
method: DELETE
uri: https://clibatch000002.eastus2.batch.azure.com/jobschedules/xplatJobScheduleJobTests?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:26:49 GMT']
request-id: [b70db40f-e823-41e5-8e08-8ed51a6a03e0]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 202, message: Accepted}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [group delete]
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 resourcemanagementclient/1.1.0rc1 Azure-SDK-For-Python
AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: DELETE
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10
response:
body: {string: ''}
headers:
cache-control: [no-cache]
content-length: ['0']
date: ['Tue, 16 May 2017 19:26:48 GMT']
expires: ['-1']
location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdTRldQVlEyUDIyRVBEWlNWNlFTS0VZSE1YSlVXWEJCUDIyVnwzOTNFMEIxNzBFQTI3MEI4LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10']
pragma: [no-cache]
retry-after: ['15']
strict-transport-security: [max-age=31536000; includeSubDomains]
x-ms-ratelimit-remaining-subscription-writes: ['1198']
status: {code: 202, message: Accepted}
version: 1

Просмотреть файл

@ -1,302 +0,0 @@
interactions:
- request:
body: '{"cloudServiceConfiguration": {"osFamily": "4"}, "vmSize": "small", "id":
"azure-cli-test-paas"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['96']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [01d04f8c-fd49-11e6-87dd-54ee750f2fc7]
ocp-date: ['Tue, 28 Feb 2017 00:01:08 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clitest1.uksouth.batch.azure.com/pools?timeout=30&api-version=2017-01-01.4.0
response:
body: {string: ''}
headers:
DataServiceId: ['https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-paas']
DataServiceVersion: ['3.0']
Date: ['Tue, 28 Feb 2017 00:01:10 GMT']
ETag: ['0x8D45F6CE5ABFBB9']
Last-Modified: ['Tue, 28 Feb 2017 00:01:08 GMT']
Location: ['https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-paas']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [8989d0a6-61df-45d3-8ee8-4901771088d7]
status: {code: 201, message: Created}
- request:
body: '{"metadata": [{"name": "test", "value": "value"}], "poolInfo": {"poolId":
"azure-cli-test-paas"}, "jobManagerTask": {"id": "JobManager", "environmentSettings":
[{"name": "CLI_TEST_VAR", "value": "CLI_TEST_VAR_VALUE"}], "commandLine": "cmd
/c set AZ_BATCH_TASK_ID"}, "constraints": {"maxTaskRetryCount": 5}, "id": "cli-test-job-1"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['330']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [02f5c136-fd49-11e6-913c-54ee750f2fc7]
ocp-date: ['Tue, 28 Feb 2017 00:01:10 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clitest1.uksouth.batch.azure.com/jobs?timeout=30&api-version=2017-01-01.4.0
response:
body: {string: ''}
headers:
DataServiceId: ['https://clitest1.uksouth.batch.azure.com/jobs/job-1']
DataServiceVersion: ['3.0']
Date: ['Tue, 28 Feb 2017 00:01:09 GMT']
ETag: ['0x8D45F6CE58C454B']
Last-Modified: ['Tue, 28 Feb 2017 00:01:07 GMT']
Location: ['https://clitest1.uksouth.batch.azure.com/jobs/job-1']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [7155ec87-2771-451d-b05b-47f841ef904d]
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [039efc12-fd49-11e6-80d3-54ee750f2fc7]
ocp-date: ['Tue, 28 Feb 2017 00:01:11 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/jobs/cli-test-job-1?timeout=30&api-version=2017-01-01.4.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#jobs/@Element\"\
,\"id\":\"cli-test-job-1\",\"url\":\"https://clitest1.uksouth.batch.azure.com/jobs/cli-test-job-1\"\
,\"eTag\":\"0x8D45F6CE58C454B\",\"lastModified\":\"2017-02-28T00:01:07.8364491Z\"\
,\"creationTime\":\"2017-02-28T00:01:07.8120094Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-02-28T00:01:07.8364491Z\",\"priority\":0,\"usesTaskDependencies\"\
:false,\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\"\
,\"maxTaskRetryCount\":5\r\n },\"jobManagerTask\":{\r\n \"id\":\"JobManager\"\
,\"commandLine\":\"cmd /c set AZ_BATCH_TASK_ID\",\"environmentSettings\":[\r\
\n {\r\n \"name\":\"CLI_TEST_VAR\",\"value\":\"CLI_TEST_VAR_VALUE\"\
\r\n }\r\n ],\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\"\
,\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":5\r\
\n },\"userIdentity\":{\r\n \"autoUser\":{\r\n \"scope\":\"\
task\",\"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"runExclusive\"\
:true,\"killJobOnCompletion\":true\r\n },\"poolInfo\":{\r\n \"poolId\"\
:\"azure-cli-test-paas\"\r\n },\"metadata\":[\r\n {\r\n \"name\"\
:\"test\",\"value\":\"value\"\r\n }\r\n ],\"executionInfo\":{\r\n \"\
startTime\":\"2017-02-28T00:01:07.8364491Z\",\"poolId\":\"azure-cli-test-paas\"\
\r\n },\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\"\
\r\n}"}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Tue, 28 Feb 2017 00:01:12 GMT']
ETag: ['0x8D45F6CE58C454B']
Last-Modified: ['Tue, 28 Feb 2017 00:01:07 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [a34ef7ce-9450-433f-8620-3db814f33653]
status: {code: 200, message: OK}
- request:
body: '{"onAllTasksComplete": "terminateJob", "constraints": {"maxWallClockTime":
"P3Y6M4DT12H30M5S"}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['95']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [04613d8c-fd49-11e6-8c3d-54ee750f2fc7]
ocp-date: ['Tue, 28 Feb 2017 00:01:12 GMT']
return-client-request-id: ['false']
method: PATCH
uri: https://clitest1.uksouth.batch.azure.com/jobs/cli-test-job-1?timeout=30&api-version=2017-01-01.4.0
response:
body: {string: ''}
headers:
DataServiceId: ['https://clitest1.uksouth.batch.azure.com/jobs/cli-test-job-1']
DataServiceVersion: ['3.0']
Date: ['Tue, 28 Feb 2017 00:01:13 GMT']
ETag: ['0x8D45F6CE6EB0980']
Last-Modified: ['Tue, 28 Feb 2017 00:01:10 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [ab306f8c-7851-4d81-af3a-7e3fd8616e65]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [0572dd92-fd49-11e6-b068-54ee750f2fc7]
ocp-date: ['Tue, 28 Feb 2017 00:01:14 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/jobs/cli-test-job-1?timeout=30&api-version=2017-01-01.4.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#jobs/@Element\"\
,\"id\":\"cli-test-job-1\",\"url\":\"https://clitest1.uksouth.batch.azure.com/jobs/cli-test-job-1\"\
,\"eTag\":\"0x8D45F6CE6EB0980\",\"lastModified\":\"2017-02-28T00:01:10.135232Z\"\
,\"creationTime\":\"2017-02-28T00:01:07.8120094Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-02-28T00:01:07.8364491Z\",\"priority\":0,\"usesTaskDependencies\"\
:false,\"constraints\":{\r\n \"maxWallClockTime\":\"P1279DT12H30M5S\",\"\
maxTaskRetryCount\":0\r\n },\"jobManagerTask\":{\r\n \"id\":\"JobManager\"\
,\"commandLine\":\"cmd /c set AZ_BATCH_TASK_ID\",\"environmentSettings\":[\r\
\n {\r\n \"name\":\"CLI_TEST_VAR\",\"value\":\"CLI_TEST_VAR_VALUE\"\
\r\n }\r\n ],\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\"\
,\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":5\r\
\n },\"userIdentity\":{\r\n \"autoUser\":{\r\n \"scope\":\"\
task\",\"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"runExclusive\"\
:true,\"killJobOnCompletion\":true\r\n },\"poolInfo\":{\r\n \"poolId\"\
:\"azure-cli-test-paas\"\r\n },\"metadata\":[\r\n {\r\n \"name\"\
:\"test\",\"value\":\"value\"\r\n }\r\n ],\"executionInfo\":{\r\n \"\
startTime\":\"2017-02-28T00:01:07.8364491Z\",\"poolId\":\"azure-cli-test-paas\"\
\r\n },\"onAllTasksComplete\":\"terminatejob\",\"onTaskFailure\":\"noaction\"\
\r\n}"}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Tue, 28 Feb 2017 00:01:13 GMT']
ETag: ['0x8D45F6CE6EB0980']
Last-Modified: ['Tue, 28 Feb 2017 00:01:10 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [9cb1abc6-c3e4-4b46-8ab0-a2e083d7e133]
status: {code: 200, message: OK}
- request:
body: '{"onAllTasksComplete": "terminateJob", "poolInfo": {"poolId": "azure-cli-test-paas"}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['85']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
If-Unmodified-Since: ['Mon, 27 Feb 2017 16:01:10 GMT']
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [05ff090c-fd49-11e6-bf0c-54ee750f2fc7]
ocp-date: ['Tue, 28 Feb 2017 00:01:15 GMT']
return-client-request-id: ['false']
method: PUT
uri: https://clitest1.uksouth.batch.azure.com/jobs/cli-test-job-1?timeout=30&api-version=2017-01-01.4.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\"\
,\"code\":\"ConditionNotMet\",\"message\":{\r\n \"lang\":\"en-US\",\"value\"\
:\"The condition specified using HTTP conditional header(s) is not met.\\\
nRequestId:dfdd40c5-cc4c-40a8-b9b6-b611c02692b9\\nTime:2017-02-28T00:01:14.3759486Z\"\
\r\n }\r\n}"}
headers:
Content-Length: ['367']
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Tue, 28 Feb 2017 00:01:13 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-Content-Type-Options: [nosniff]
request-id: [dfdd40c5-cc4c-40a8-b9b6-b611c02692b9]
status: {code: 412, message: The condition specified using HTTP conditional header(s)
is not met.}
- request:
body: '{"onAllTasksComplete": "terminateJob", "poolInfo": {"poolId": "azure-cli-test-paas"}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['85']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [06ab0f4a-fd49-11e6-ac85-54ee750f2fc7]
ocp-date: ['Tue, 28 Feb 2017 00:01:16 GMT']
return-client-request-id: ['false']
method: PUT
uri: https://clitest1.uksouth.batch.azure.com/jobs/cli-test-job-1?timeout=30&api-version=2017-01-01.4.0
response:
body: {string: ''}
headers:
DataServiceId: ['https://clitest1.uksouth.batch.azure.com/jobs/cli-test-job-1']
DataServiceVersion: ['3.0']
Date: ['Tue, 28 Feb 2017 00:01:17 GMT']
ETag: ['0x8D45F6CE92A21F3']
Last-Modified: ['Tue, 28 Feb 2017 00:01:13 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [47140b11-ced1-4833-82a6-ddb51937170c]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [073d93a4-fd49-11e6-bccd-54ee750f2fc7]
ocp-date: ['Tue, 28 Feb 2017 00:01:17 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/jobs/cli-test-job-1?timeout=30&api-version=2017-01-01.4.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#jobs/@Element\"\
,\"id\":\"cli-test-job-1\",\"url\":\"https://clitest1.uksouth.batch.azure.com/jobs/cli-test-job-1\"\
,\"eTag\":\"0x8D45F6CE92A21F3\",\"lastModified\":\"2017-02-28T00:01:13.9041779Z\"\
,\"creationTime\":\"2017-02-28T00:01:07.8120094Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-02-28T00:01:07.8364491Z\",\"priority\":0,\"usesTaskDependencies\"\
:false,\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\"\
,\"maxTaskRetryCount\":0\r\n },\"jobManagerTask\":{\r\n \"id\":\"JobManager\"\
,\"commandLine\":\"cmd /c set AZ_BATCH_TASK_ID\",\"environmentSettings\":[\r\
\n {\r\n \"name\":\"CLI_TEST_VAR\",\"value\":\"CLI_TEST_VAR_VALUE\"\
\r\n }\r\n ],\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\"\
,\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":5\r\
\n },\"userIdentity\":{\r\n \"autoUser\":{\r\n \"scope\":\"\
task\",\"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"runExclusive\"\
:true,\"killJobOnCompletion\":true\r\n },\"poolInfo\":{\r\n \"poolId\"\
:\"azure-cli-test-paas\"\r\n },\"executionInfo\":{\r\n \"startTime\":\"\
2017-02-28T00:01:07.8364491Z\",\"poolId\":\"azure-cli-test-paas\"\r\n },\"\
onAllTasksComplete\":\"terminatejob\",\"onTaskFailure\":\"noaction\"\r\n}"}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Tue, 28 Feb 2017 00:01:16 GMT']
ETag: ['0x8D45F6CE92A21F3']
Last-Modified: ['Tue, 28 Feb 2017 00:01:13 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [c7c4b8f4-89cf-430e-8f98-28bd7f57f9cf]
status: {code: 200, message: OK}
version: 1

Просмотреть файл

@ -0,0 +1,473 @@
interactions:
- request:
body: '{"location": "westus", "tags": {"use": "az-test"}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [group create]
Connection: [keep-alive]
Content-Length: ['50']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 resourcemanagementclient/1.1.0rc1 Azure-SDK-For-Python
AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10
response:
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
headers:
cache-control: [no-cache]
content-length: ['328']
content-type: [application/json; charset=utf-8]
date: ['Tue, 16 May 2017 19:26:48 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-ms-ratelimit-remaining-subscription-writes: ['1198']
status: {code: 201, message: Created}
- request:
body: '{"location": "canadaeast"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [batch account create]
Connection: [keep-alive]
Content-Length: ['26']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchmanagementclient/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002?api-version=2017-05-01
response:
body: {string: ''}
headers:
cache-control: [no-cache]
content-length: ['0']
date: ['Tue, 16 May 2017 19:26:50 GMT']
expires: ['-1']
location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002/operationResults/fc46e62d-b9d4-406c-a2fb-f288dda0fc04?api-version=2017-05-01']
pragma: [no-cache]
request-id: [fc46e62d-b9d4-406c-a2fb-f288dda0fc04]
retry-after: ['15']
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-content-type-options: [nosniff]
x-ms-ratelimit-remaining-subscription-writes: ['1197']
status: {code: 202, message: Accepted}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [batch account create]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchmanagementclient/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002/operationResults/fc46e62d-b9d4-406c-a2fb-f288dda0fc04?api-version=2017-05-01
response:
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002","name":"clibatch000002","type":"Microsoft.Batch/batchAccounts","location":"canadaeast","properties":{"accountEndpoint":"clibatch000002.canadaeast.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"poolAllocationMode":"batchservice"}}'}
headers:
cache-control: [no-cache]
content-length: ['567']
content-type: [application/json; charset=utf-8]
date: ['Tue, 16 May 2017 19:27:06 GMT']
etag: ['"0x8D49C918A176CB2"']
expires: ['-1']
last-modified: ['Tue, 16 May 2017 19:27:06 GMT']
pragma: [no-cache]
request-id: [b9571baf-b875-4d86-9664-0cd8c6edc8b7]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [batch account keys list]
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchmanagementclient/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002/listKeys?api-version=2017-05-01
response:
body: {string: '{"accountName":"clibatch000002","primary":"5u6k6Pnn6yq4CUK+WsKL0TFWUzSFpjomsj5R5uUjn3PcKdG3Vr4wxplnSFPZ4ecjOqJvMpIqWId2USwi/ct6wQ==","secondary":"KoARZyAfzQjp4GI7qoDJPXv5sTcfeqGwOeYNoweiUi4O9kie6nB7k/S5+5sM5V3y+lgDB76G2oklsfZCn15AZw=="}'}
headers:
cache-control: [no-cache]
content-length: ['246']
content-type: [application/json; charset=utf-8]
date: ['Tue, 16 May 2017 19:27:07 GMT']
expires: ['-1']
pragma: [no-cache]
request-id: [a59640b7-69df-44a7-8260-73d382edcef9]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
x-content-type-options: [nosniff]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [batch account show]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchmanagementclient/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002?api-version=2017-05-01
response:
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002","name":"clibatch000002","type":"Microsoft.Batch/batchAccounts","location":"canadaeast","properties":{"accountEndpoint":"clibatch000002.canadaeast.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"poolAllocationMode":"batchservice"}}'}
headers:
cache-control: [no-cache]
content-length: ['567']
content-type: [application/json; charset=utf-8]
date: ['Tue, 16 May 2017 19:27:08 GMT']
etag: ['"0x8D49C91802F1B79"']
expires: ['-1']
last-modified: ['Tue, 16 May 2017 19:26:50 GMT']
pragma: [no-cache]
request-id: [c0898fc3-8906-4567-8453-823261be601a]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: '{"id": "azure-cli-test-paas", "cloudServiceConfiguration": {"osFamily":
"4"}, "vmSize": "small"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['96']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:27:09 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clibatch000002.canadaeast.batch.azure.com/pools?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
dataserviceid: ['https://clibatchipqtwdc3gb2sotdu.canadaeast.batch.azure.com/pools/azure-cli-test-paas']
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:27:07 GMT']
etag: ['0x8D49C918B99572A']
last-modified: ['Tue, 16 May 2017 19:27:09 GMT']
location: ['https://clibatch000002.canadaeast.batch.azure.com/pools/azure-cli-test-paas']
request-id: [fd68dbb3-2490-4d98-ba5f-e52c371dcdb5]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 201, message: Created}
- request:
body: '{"id": "cli-test-job-1", "metadata": [{"name": "test", "value": "value"}],
"jobManagerTask": {"environmentSettings": [{"name": "CLI_TEST_VAR", "value":
"CLI_TEST_VAR_VALUE"}], "id": "JobManager", "commandLine": "cmd /c set AZ_BATCH_TASK_ID"},
"poolInfo": {"poolId": "azure-cli-test-paas"}, "constraints": {"maxTaskRetryCount":
5}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['330']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:27:09 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clibatch000002.canadaeast.batch.azure.com/jobs?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
dataserviceid: ['https://clibatchipqtwdc3gb2sotdu.canadaeast.batch.azure.com/jobs/job-1']
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:27:09 GMT']
etag: ['0x8D49C918BEE482C']
last-modified: ['Tue, 16 May 2017 19:27:09 GMT']
location: ['https://clibatch000002.canadaeast.batch.azure.com/jobs/job-1']
request-id: [80b964bb-10f1-44b9-ad61-081251a0261c]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:27:10 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clibatch000002.canadaeast.batch.azure.com/jobs/cli-test-job-1?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.canadaeast.batch.azure.com/$metadata#jobs/@Element\"\
,\"id\":\"cli-test-job-1\",\"url\":\"https://clibatch000002.canadaeast.batch.azure.com/jobs/cli-test-job-1\"\
,\"eTag\":\"0x8D49C918BEE482C\",\"lastModified\":\"2017-05-16T19:27:09.7922604Z\"\
,\"creationTime\":\"2017-05-16T19:27:09.7242774Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-05-16T19:27:09.7922604Z\",\"priority\":0,\"usesTaskDependencies\"\
:false,\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\"\
,\"maxTaskRetryCount\":5\r\n },\"jobManagerTask\":{\r\n \"id\":\"JobManager\"\
,\"commandLine\":\"cmd /c set AZ_BATCH_TASK_ID\",\"environmentSettings\":[\r\
\n {\r\n \"name\":\"CLI_TEST_VAR\",\"value\":\"CLI_TEST_VAR_VALUE\"\
\r\n }\r\n ],\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\"\
,\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":5\r\
\n },\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\"\
:\"nonadmin\"\r\n }\r\n },\"runExclusive\":true,\"allowLowPriorityNode\"\
:true,\"killJobOnCompletion\":true\r\n },\"poolInfo\":{\r\n \"poolId\"\
:\"azure-cli-test-paas\"\r\n },\"metadata\":[\r\n {\r\n \"name\"\
:\"test\",\"value\":\"value\"\r\n }\r\n ],\"executionInfo\":{\r\n \"\
startTime\":\"2017-05-16T19:27:09.7922604Z\",\"poolId\":\"azure-cli-test-paas\"\
\r\n },\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\"\
\r\n}"}
headers:
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:27:10 GMT']
etag: ['0x8D49C918BEE482C']
last-modified: ['Tue, 16 May 2017 19:27:09 GMT']
request-id: [540e1d6d-f8f1-476c-af4a-6f5a323ad97b]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: '{"onAllTasksComplete": "terminateJob", "constraints": {"maxWallClockTime":
"P3Y6M4DT12H30M5S"}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['95']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:27:10 GMT']
return-client-request-id: ['false']
method: PATCH
uri: https://clibatch000002.canadaeast.batch.azure.com/jobs/cli-test-job-1?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
dataserviceid: ['https://clibatchipqtwdc3gb2sotdu.canadaeast.batch.azure.com/jobs/cli-test-job-1']
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:27:10 GMT']
etag: ['0x8D49C918C884063']
last-modified: ['Tue, 16 May 2017 19:27:10 GMT']
request-id: [112f1b26-0656-47e9-a348-089728594778]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:27:11 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clibatch000002.canadaeast.batch.azure.com/jobs/cli-test-job-1?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.canadaeast.batch.azure.com/$metadata#jobs/@Element\"\
,\"id\":\"cli-test-job-1\",\"url\":\"https://clibatch000002.canadaeast.batch.azure.com/jobs/cli-test-job-1\"\
,\"eTag\":\"0x8D49C918C884063\",\"lastModified\":\"2017-05-16T19:27:10.8013155Z\"\
,\"creationTime\":\"2017-05-16T19:27:09.7242774Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-05-16T19:27:09.7922604Z\",\"priority\":0,\"usesTaskDependencies\"\
:false,\"constraints\":{\r\n \"maxWallClockTime\":\"P1279DT12H30M5S\",\"\
maxTaskRetryCount\":0\r\n },\"jobManagerTask\":{\r\n \"id\":\"JobManager\"\
,\"commandLine\":\"cmd /c set AZ_BATCH_TASK_ID\",\"environmentSettings\":[\r\
\n {\r\n \"name\":\"CLI_TEST_VAR\",\"value\":\"CLI_TEST_VAR_VALUE\"\
\r\n }\r\n ],\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\"\
,\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":5\r\
\n },\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\"\
:\"nonadmin\"\r\n }\r\n },\"runExclusive\":true,\"allowLowPriorityNode\"\
:true,\"killJobOnCompletion\":true\r\n },\"poolInfo\":{\r\n \"poolId\"\
:\"azure-cli-test-paas\"\r\n },\"metadata\":[\r\n {\r\n \"name\"\
:\"test\",\"value\":\"value\"\r\n }\r\n ],\"executionInfo\":{\r\n \"\
startTime\":\"2017-05-16T19:27:09.7922604Z\",\"poolId\":\"azure-cli-test-paas\"\
\r\n },\"onAllTasksComplete\":\"terminatejob\",\"onTaskFailure\":\"noaction\"\
\r\n}"}
headers:
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:27:11 GMT']
etag: ['0x8D49C918C884063']
last-modified: ['Tue, 16 May 2017 19:27:10 GMT']
request-id: [d95c45f7-24d3-4715-8436-69b4cae797fe]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: '{"onAllTasksComplete": "terminateJob", "poolInfo": {"poolId": "azure-cli-test-paas"}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['85']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
If-Unmodified-Since: ['Tue, 16 May 2017 12:27:09 GMT']
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:27:11 GMT']
return-client-request-id: ['false']
method: PUT
uri: https://clibatch000002.canadaeast.batch.azure.com/jobs/cli-test-job-1?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.canadaeast.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\"\
,\"code\":\"ConditionNotMet\",\"message\":{\r\n \"lang\":\"en-US\",\"value\"\
:\"The condition specified using HTTP conditional header(s) is not met.\\\
nRequestId:e163bb81-8a69-4c05-984b-86ac41d9a074\\nTime:2017-05-16T19:27:13.1317894Z\"\
\r\n }\r\n}"}
headers:
content-length: ['386']
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:27:12 GMT']
request-id: [e163bb81-8a69-4c05-984b-86ac41d9a074]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-content-type-options: [nosniff]
status: {code: 412, message: The condition specified using HTTP conditional header(s)
is not met.}
- request:
body: '{"onAllTasksComplete": "terminateJob", "poolInfo": {"poolId": "azure-cli-test-paas"}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['85']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:27:12 GMT']
return-client-request-id: ['false']
method: PUT
uri: https://clibatch000002.canadaeast.batch.azure.com/jobs/cli-test-job-1?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
dataserviceid: ['https://clibatchipqtwdc3gb2sotdu.canadaeast.batch.azure.com/jobs/cli-test-job-1']
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:27:11 GMT']
etag: ['0x8D49C918D5D9A42']
last-modified: ['Tue, 16 May 2017 19:27:12 GMT']
request-id: [1774b250-ad6c-468b-87cf-c13a9ad6eba9]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:27:12 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clibatch000002.canadaeast.batch.azure.com/jobs/cli-test-job-1?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.canadaeast.batch.azure.com/$metadata#jobs/@Element\"\
,\"id\":\"cli-test-job-1\",\"url\":\"https://clibatch000002.canadaeast.batch.azure.com/jobs/cli-test-job-1\"\
,\"eTag\":\"0x8D49C918D5D9A42\",\"lastModified\":\"2017-05-16T19:27:12.199533Z\"\
,\"creationTime\":\"2017-05-16T19:27:09.7242774Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-05-16T19:27:09.7922604Z\",\"priority\":0,\"usesTaskDependencies\"\
:false,\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\"\
,\"maxTaskRetryCount\":0\r\n },\"jobManagerTask\":{\r\n \"id\":\"JobManager\"\
,\"commandLine\":\"cmd /c set AZ_BATCH_TASK_ID\",\"environmentSettings\":[\r\
\n {\r\n \"name\":\"CLI_TEST_VAR\",\"value\":\"CLI_TEST_VAR_VALUE\"\
\r\n }\r\n ],\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\"\
,\"retentionTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":5\r\
\n },\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\"\
:\"nonadmin\"\r\n }\r\n },\"runExclusive\":true,\"allowLowPriorityNode\"\
:true,\"killJobOnCompletion\":true\r\n },\"poolInfo\":{\r\n \"poolId\"\
:\"azure-cli-test-paas\"\r\n },\"executionInfo\":{\r\n \"startTime\":\"\
2017-05-16T19:27:09.7922604Z\",\"poolId\":\"azure-cli-test-paas\"\r\n },\"\
onAllTasksComplete\":\"terminatejob\",\"onTaskFailure\":\"noaction\"\r\n}"}
headers:
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:27:12 GMT']
etag: ['0x8D49C918D5D9A42']
last-modified: ['Tue, 16 May 2017 19:27:12 GMT']
request-id: [c249df5d-347b-41cb-bef1-407de7f0c6c0]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [group delete]
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 resourcemanagementclient/1.1.0rc1 Azure-SDK-For-Python
AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: DELETE
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10
response:
body: {string: ''}
headers:
cache-control: [no-cache]
content-length: ['0']
date: ['Tue, 16 May 2017 19:27:12 GMT']
expires: ['-1']
location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdONVBEQlo1SVJHS1BRNENEWTZXTlRJNks1U0pWVDJBSFdRV3xFRDVFRjMxMjdERTBGMDgzLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10']
pragma: [no-cache]
retry-after: ['15']
strict-transport-security: [max-age=31536000; includeSubDomains]
x-ms-ratelimit-remaining-subscription-writes: ['1198']
status: {code: 202, message: Accepted}
version: 1

Просмотреть файл

@ -1,216 +1,186 @@
interactions:
- request:
body: null
body: '{"location": "westus", "tags": {"use": "az-test"}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [group create]
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
Content-Length: ['50']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 resourcemanagementclient/1.1.0rc1 Azure-SDK-For-Python
AZURECLI/2.0.6+dev]
accept-language: [en-US]
client-request-id: [ae55a1e8-fd46-11e6-b8dd-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:44:29 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/pools/xplatTestPool?api-version=2017-01-01.4.0&timeout=30
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#pools/@Element\"\
,\"id\":\"xplatTestPool\",\"url\":\"https://clitest1.uksouth.batch.azure.com/pools/xplatTestPool\"\
,\"eTag\":\"0x8D45F6A82E5A75A\",\"lastModified\":\"2017-02-27T23:44:03.3343322Z\"\
,\"creationTime\":\"2017-02-27T23:44:03.3343322Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-02-27T23:44:03.3343322Z\",\"allocationState\"\
:\"steady\",\"allocationStateTransitionTime\":\"2017-02-27T23:44:03.4349745Z\"\
,\"vmSize\":\"small\",\"resizeTimeout\":\"PT10M\",\"currentDedicated\":0,\"\
targetDedicated\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\"\
:false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\"\
:\"Pack\"\r\n },\"cloudServiceConfiguration\":{\r\n \"osFamily\":\"5\"\
,\"targetOSVersion\":\"*\",\"currentOSVersion\":\"*\"\r\n }\r\n}"}
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:44:30 GMT']
ETag: ['0x8D45F6A82E5A75A']
Last-Modified: ['Mon, 27 Feb 2017 23:44:03 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [7ae602ff-3f43-4eff-a30d-3715bfadd69f]
status: {code: 200, message: OK}
cache-control: [no-cache]
content-length: ['328']
content-type: [application/json; charset=utf-8]
date: ['Tue, 16 May 2017 19:27:13 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 201, message: Created}
- request:
body: '{"targetDedicated": 5}'
body: '{"location": "japanwest"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [batch account create]
Connection: [keep-alive]
Content-Length: ['22']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
Content-Length: ['25']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchmanagementclient/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.6+dev]
accept-language: [en-US]
client-request-id: [af2a3f9a-fd46-11e6-8402-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:44:30 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clitest1.uksouth.batch.azure.com/pools/xplatTestPool/resize?api-version=2017-01-01.4.0&timeout=30
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002?api-version=2017-05-01
response:
body: {string: ''}
headers:
DataServiceId: ['https://clitest1.uksouth.batch.azure.com/pools/xplatTestPool/resize']
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:44:28 GMT']
ETag: ['0x8D45F6A9283DFAE']
Last-Modified: ['Mon, 27 Feb 2017 23:44:29 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [541d7e2c-7c55-44ae-8f07-effac0bfda36]
cache-control: [no-cache]
content-length: ['0']
date: ['Tue, 16 May 2017 19:27:15 GMT']
expires: ['-1']
location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002/operationResults/5b89516d-579a-497f-855c-9e889816d752?api-version=2017-05-01']
pragma: [no-cache]
request-id: [5b89516d-579a-497f-855c-9e889816d752]
retry-after: ['15']
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-content-type-options: [nosniff]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 202, message: Accepted}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [batch account create]
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchmanagementclient/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.6+dev]
accept-language: [en-US]
client-request-id: [afb21cc0-fd46-11e6-a9a6-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:44:31 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/pools/xplatTestPool?api-version=2017-01-01.4.0&timeout=30
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002/operationResults/5b89516d-579a-497f-855c-9e889816d752?api-version=2017-05-01
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#pools/@Element\"\
,\"id\":\"xplatTestPool\",\"url\":\"https://clitest1.uksouth.batch.azure.com/pools/xplatTestPool\"\
,\"eTag\":\"0x8D45F6A9283DFAE\",\"lastModified\":\"2017-02-27T23:44:29.537067Z\"\
,\"creationTime\":\"2017-02-27T23:44:03.3343322Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-02-27T23:44:03.3343322Z\",\"allocationState\"\
:\"resizing\",\"allocationStateTransitionTime\":\"2017-02-27T23:44:29.537067Z\"\
,\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicated\":0,\"\
targetDedicated\":5,\"enableAutoScale\":false,\"enableInterNodeCommunication\"\
:false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\"\
:\"Pack\"\r\n },\"cloudServiceConfiguration\":{\r\n \"osFamily\":\"5\"\
,\"targetOSVersion\":\"*\",\"currentOSVersion\":\"*\"\r\n }\r\n}"}
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002","name":"clibatch000002","type":"Microsoft.Batch/batchAccounts","location":"japanwest","properties":{"accountEndpoint":"clibatch000002.japanwest.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"poolAllocationMode":"batchservice"}}'}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:44:29 GMT']
ETag: ['0x8D45F6A9283DFAE']
Last-Modified: ['Mon, 27 Feb 2017 23:44:29 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [73e65906-9d5a-4817-8859-ba2aab51695d]
cache-control: [no-cache]
content-length: ['565']
content-type: [application/json; charset=utf-8]
date: ['Tue, 16 May 2017 19:27:31 GMT']
etag: ['"0x8D49C919A696726"']
expires: ['-1']
last-modified: ['Tue, 16 May 2017 19:27:34 GMT']
pragma: [no-cache]
request-id: [e6326011-578d-4898-bff0-dc299b1775db]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [batch account keys list]
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchmanagementclient/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.6+dev]
accept-language: [en-US]
client-request-id: [b039714a-fd46-11e6-8dda-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:44:32 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clitest1.uksouth.batch.azure.com/pools/xplatTestPool/stopresize?api-version=2017-01-01.4.0&timeout=30
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002/listKeys?api-version=2017-05-01
response:
body: {string: ''}
body: {string: '{"accountName":"clibatch000002","primary":"eD6NkdtSzcnSuGsqgkf0vagR3MIUb8s4xhCHky9iejrLlcU50HoKQkQEVE9okIMfn5OIxOd0glBmoSjI89pZAg==","secondary":"BkaTefdllwyZjk17cfBEMmdAH8hLEZL2rGq+H2jnUNUJr86aiyMipb6m7uOTTFHpLkRXAu7nXhfUY/wQSDAkQw=="}'}
headers:
DataServiceId: ['https://clitest1.uksouth.batch.azure.com/pools/xplatTestPool/stopresize']
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:44:33 GMT']
ETag: ['0x8D45F6A93875579']
Last-Modified: ['Mon, 27 Feb 2017 23:44:31 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [0f731e99-1580-4912-a184-20e25d0dcf48]
status: {code: 202, message: Accepted}
cache-control: [no-cache]
content-length: ['246']
content-type: [application/json; charset=utf-8]
date: ['Tue, 16 May 2017 19:27:33 GMT']
expires: ['-1']
pragma: [no-cache]
request-id: [283cdbb3-0fbd-4f48-a7d9-39237b53a15c]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
x-content-type-options: [nosniff]
x-ms-ratelimit-remaining-subscription-writes: ['1197']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [batch account show]
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchmanagementclient/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.6+dev]
accept-language: [en-US]
client-request-id: [d47fecb4-fd46-11e6-a23c-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:45:33 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/pools/xplatTestPool?api-version=2017-01-01.4.0&timeout=30
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002?api-version=2017-05-01
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#pools/@Element\"\
,\"id\":\"xplatTestPool\",\"url\":\"https://clitest1.uksouth.batch.azure.com/pools/xplatTestPool\"\
,\"eTag\":\"0x8D45F6A93875579\",\"lastModified\":\"2017-02-27T23:44:31.2374649Z\"\
,\"creationTime\":\"2017-02-27T23:44:03.3343322Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-02-27T23:44:03.3343322Z\",\"allocationState\"\
:\"steady\",\"allocationStateTransitionTime\":\"2017-02-27T23:45:14.7525496Z\"\
,\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"resizeError\":{\r\n \
\ \"code\":\"ResizeStopped\",\"message\":\"Desired number of dedicated nodes\
\ could not be allocated due to a stop resize operation\"\r\n },\"currentDedicated\"\
:0,\"targetDedicated\":5,\"enableAutoScale\":false,\"enableInterNodeCommunication\"\
:false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\"\
:\"Pack\"\r\n },\"cloudServiceConfiguration\":{\r\n \"osFamily\":\"5\"\
,\"targetOSVersion\":\"*\",\"currentOSVersion\":\"*\"\r\n }\r\n}"}
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002","name":"clibatch000002","type":"Microsoft.Batch/batchAccounts","location":"japanwest","properties":{"accountEndpoint":"clibatch000002.japanwest.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"poolAllocationMode":"batchservice"}}'}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:45:32 GMT']
ETag: ['0x8D45F6A93875579']
Last-Modified: ['Mon, 27 Feb 2017 23:44:31 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [0f2df02a-da0a-4b67-bba0-a163106ca2e2]
cache-control: [no-cache]
content-length: ['565']
content-type: [application/json; charset=utf-8]
date: ['Tue, 16 May 2017 19:27:34 GMT']
etag: ['"0x8D49C9190284EE3"']
expires: ['-1']
last-modified: ['Tue, 16 May 2017 19:27:16 GMT']
pragma: [no-cache]
request-id: [38a4ad0a-37b9-4265-ab89-b1dabe51cace]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: '{"targetDedicated": 0, "id": "xplatCreatedPool", "cloudServiceConfiguration":
{"osFamily": "4", "targetOSVersion": "*"}, "startTask": {"commandLine": "cmd
/c echo test", "userIdentity": {"autoUser": {"elevationLevel": "admin", "scope":
"task"}}, "waitForSuccess": true}, "vmSize": "small"}'
body: '{"startTask": {"waitForSuccess": true, "commandLine": "cmd /c echo test",
"userIdentity": {"autoUser": {"elevationLevel": "admin", "scope": "task"}}},
"id": "xplatCreatedPool", "cloudServiceConfiguration": {"targetOSVersion": "*",
"osFamily": "4"}, "vmSize": "small"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['289']
Content-Length: ['267']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [d51d6a9e-fd46-11e6-a5ec-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:45:34 GMT']
ocp-date: ['Tue, 16 May 2017 19:27:34 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clitest1.uksouth.batch.azure.com/pools?api-version=2017-01-01.4.0&timeout=30
uri: https://clibatch000002.japanwest.batch.azure.com/pools?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
DataServiceId: ['https://clitest1.uksouth.batch.azure.com/pools/xplatCreatedPool']
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:45:34 GMT']
ETag: ['0x8D45F6AB87531F9']
Last-Modified: ['Mon, 27 Feb 2017 23:45:33 GMT']
Location: ['https://clitest1.uksouth.batch.azure.com/pools/xplatCreatedPool']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [6a2bb2c8-50b4-4266-8e0f-5753a43b63c5]
dataserviceid: ['https://clibatchyozk6m7mytrzsacs.japanwest.batch.azure.com/pools/xplatCreatedPool']
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:27:36 GMT']
etag: ['0x8D49C919BE317F1']
last-modified: ['Tue, 16 May 2017 19:27:36 GMT']
location: ['https://clibatch000002.japanwest.batch.azure.com/pools/xplatCreatedPool']
request-id: [775a15d7-282e-4447-af14-5b40308b1e0d]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 201, message: Created}
- request:
body: null
@ -219,23 +189,169 @@ interactions:
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [d5b1019c-fd46-11e6-ba93-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:45:35 GMT']
ocp-date: ['Tue, 16 May 2017 19:27:34 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/pools/xplatCreatedPool?api-version=2017-01-01.4.0&timeout=30
uri: https://clibatch000002.japanwest.batch.azure.com/pools/xplatCreatedPool?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#pools/@Element\"\
,\"id\":\"xplatCreatedPool\",\"url\":\"https://clitest1.uksouth.batch.azure.com/pools/xplatCreatedPool\"\
,\"eTag\":\"0x8D45F6AB87531F9\",\"lastModified\":\"2017-02-27T23:45:33.1942905Z\"\
,\"creationTime\":\"2017-02-27T23:45:33.1942905Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-02-27T23:45:33.1942905Z\",\"allocationState\"\
:\"steady\",\"allocationStateTransitionTime\":\"2017-02-27T23:45:33.29031Z\"\
,\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicated\":0,\"\
targetDedicated\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\"\
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.japanwest.batch.azure.com/$metadata#pools/@Element\"\
,\"id\":\"xplatCreatedPool\",\"url\":\"https://clibatch000002.japanwest.batch.azure.com/pools/xplatCreatedPool\"\
,\"eTag\":\"0x8D49C919BE317F1\",\"lastModified\":\"2017-05-16T19:27:36.5624817Z\"\
,\"creationTime\":\"2017-05-16T19:27:36.5624817Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-05-16T19:27:36.5624817Z\",\"allocationState\"\
:\"steady\",\"allocationStateTransitionTime\":\"2017-05-16T19:27:36.6795087Z\"\
,\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\"\
:0,\"targetDedicatedNodes\":0,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\"\
:0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"startTask\"\
:{\r\n \"commandLine\":\"cmd /c echo test\",\"userIdentity\":{\r\n \
\ \"autoUser\":{\r\n \"scope\":\"task\",\"elevationLevel\":\"admin\"\
\r\n }\r\n },\"maxTaskRetryCount\":0,\"waitForSuccess\":true\r\n \
\ },\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\"\
:\"Spread\"\r\n },\"cloudServiceConfiguration\":{\r\n \"osFamily\":\"\
4\",\"targetOSVersion\":\"*\",\"currentOSVersion\":\"*\"\r\n }\r\n}"}
headers:
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:27:37 GMT']
etag: ['0x8D49C919BE317F1']
last-modified: ['Tue, 16 May 2017 19:27:36 GMT']
request-id: [f6282777-f469-4358-8ddb-569b631af273]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: '{"targetDedicatedNodes": 5, "targetLowPriorityNodes": 3}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['56']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:27:35 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clibatch000002.japanwest.batch.azure.com/pools/xplatCreatedPool/resize?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
dataserviceid: ['https://clibatchyozk6m7mytrzsacs.japanwest.batch.azure.com/pools/xplatCreatedPool/resize']
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:27:37 GMT']
etag: ['0x8D49C919C8A6F29']
last-modified: ['Tue, 16 May 2017 19:27:37 GMT']
request-id: [cdcdec29-bf6d-427d-9f11-154b31e4bd0b]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 202, message: Accepted}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:27:36 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clibatch000002.japanwest.batch.azure.com/pools/xplatCreatedPool?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.japanwest.batch.azure.com/$metadata#pools/@Element\"\
,\"id\":\"xplatCreatedPool\",\"url\":\"https://clibatch000002.japanwest.batch.azure.com/pools/xplatCreatedPool\"\
,\"eTag\":\"0x8D49C919C8A6F29\",\"lastModified\":\"2017-05-16T19:27:37.6591657Z\"\
,\"creationTime\":\"2017-05-16T19:27:36.5624817Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-05-16T19:27:36.5624817Z\",\"allocationState\"\
:\"resizing\",\"allocationStateTransitionTime\":\"2017-05-16T19:27:37.6591657Z\"\
,\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\"\
:0,\"targetDedicatedNodes\":5,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\"\
:3,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"startTask\"\
:{\r\n \"commandLine\":\"cmd /c echo test\",\"userIdentity\":{\r\n \
\ \"autoUser\":{\r\n \"scope\":\"task\",\"elevationLevel\":\"admin\"\
\r\n }\r\n },\"maxTaskRetryCount\":0,\"waitForSuccess\":true\r\n \
\ },\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\"\
:\"Spread\"\r\n },\"cloudServiceConfiguration\":{\r\n \"osFamily\":\"\
4\",\"targetOSVersion\":\"*\",\"currentOSVersion\":\"*\"\r\n }\r\n}"}
headers:
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:27:36 GMT']
etag: ['0x8D49C919C8A6F29']
last-modified: ['Tue, 16 May 2017 19:27:37 GMT']
request-id: [514c5d9c-b333-42d9-9838-70a9f72d7ba3]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:27:36 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clibatch000002.japanwest.batch.azure.com/pools/xplatCreatedPool/stopresize?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
dataserviceid: ['https://clibatchyozk6m7mytrzsacs.japanwest.batch.azure.com/pools/xplatCreatedPool/stopresize']
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:27:38 GMT']
etag: ['0x8D49C919D4CDE7D']
last-modified: ['Tue, 16 May 2017 19:27:38 GMT']
request-id: [7ab8aa90-427a-44f4-b71e-5d81469e6fc6]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 202, message: Accepted}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:29:37 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clibatch000002.japanwest.batch.azure.com/pools/xplatCreatedPool?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.japanwest.batch.azure.com/$metadata#pools/@Element\"\
,\"id\":\"xplatCreatedPool\",\"url\":\"https://clibatch000002.japanwest.batch.azure.com/pools/xplatCreatedPool\"\
,\"eTag\":\"0x8D49C919D4CDE7D\",\"lastModified\":\"2017-05-16T19:27:38.9334141Z\"\
,\"creationTime\":\"2017-05-16T19:27:36.5624817Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-05-16T19:27:36.5624817Z\",\"allocationState\"\
:\"steady\",\"allocationStateTransitionTime\":\"2017-05-16T19:27:51.3689017Z\"\
,\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\"\
:0,\"targetDedicatedNodes\":5,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\"\
:3,\"resizeErrors\":[\r\n {\r\n \"code\":\"ResizeStopped\",\"message\"\
:\"Desired number of dedicated nodes could not be allocated due to a stop\
\ resize operation\"\r\n },{\r\n \"code\":\"ResizeStopped\",\"message\"\
:\"Desired number of low priority nodes could not be allocated due to a stop\
\ resize operation\"\r\n }\r\n ],\"enableAutoScale\":false,\"enableInterNodeCommunication\"\
:false,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo test\",\"userIdentity\"\
:{\r\n \"autoUser\":{\r\n \"scope\":\"task\",\"elevationLevel\"\
:\"admin\"\r\n }\r\n },\"maxTaskRetryCount\":0,\"waitForSuccess\"\
@ -243,20 +359,20 @@ interactions:
:\"Spread\"\r\n },\"cloudServiceConfiguration\":{\r\n \"osFamily\":\"\
4\",\"targetOSVersion\":\"*\",\"currentOSVersion\":\"*\"\r\n }\r\n}"}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:45:34 GMT']
ETag: ['0x8D45F6AB87531F9']
Last-Modified: ['Mon, 27 Feb 2017 23:45:33 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [6eea7993-cd01-4da4-821c-851a6e2197fa]
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:29:37 GMT']
etag: ['0x8D49C919D4CDE7D']
last-modified: ['Tue, 16 May 2017 19:27:38 GMT']
request-id: [d022ebf0-847c-4d23-a495-c6bc4d874594]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: '{"startTask": {"commandLine": "cmd /c echo updated", "waitForSuccess":
true}, "metadata": [], "applicationPackageReferences": [], "certificateReferences":
body: '{"startTask": {"waitForSuccess": true, "commandLine": "cmd /c echo updated"},
"metadata": [], "certificateReferences": [], "applicationPackageReferences":
[]}'
headers:
Accept: [application/json]
@ -264,26 +380,25 @@ interactions:
Connection: [keep-alive]
Content-Length: ['158']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [d6299b02-fd46-11e6-8b2e-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:45:36 GMT']
ocp-date: ['Tue, 16 May 2017 19:29:37 GMT']
method: POST
uri: https://clitest1.uksouth.batch.azure.com/pools/xplatCreatedPool/updateproperties?api-version=2017-01-01.4.0
uri: https://clibatch000002.japanwest.batch.azure.com/pools/xplatCreatedPool/updateproperties?api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
Content-Length: ['0']
DataServiceId: ['https://clitest1.uksouth.batch.azure.com/pools/xplatCreatedPool/updateproperties']
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:45:36 GMT']
ETag: ['0x8D45F6AB98723EE']
Last-Modified: ['Mon, 27 Feb 2017 23:45:34 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-Content-Type-Options: [nosniff]
request-id: [0ba38f76-09a1-494a-9874-3a5a9c9eec86]
content-length: ['0']
dataserviceid: ['https://clibatchyozk6m7mytrzsacs.japanwest.batch.azure.com/pools/xplatCreatedPool/updateproperties']
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:29:40 GMT']
etag: ['0x8D49C91E58B3411']
last-modified: ['Tue, 16 May 2017 19:29:40 GMT']
request-id: [c1ff2765-5791-4e31-a721-ef15d91e9d65]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-content-type-options: [nosniff]
status: {code: 204, message: No Content}
- request:
body: null
@ -292,42 +407,46 @@ interactions:
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [d6abc83e-fd46-11e6-831b-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:45:37 GMT']
ocp-date: ['Tue, 16 May 2017 19:29:38 GMT']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/pools/xplatCreatedPool?api-version=2017-01-01.4.0
uri: https://clibatch000002.japanwest.batch.azure.com/pools/xplatCreatedPool?api-version=2017-05-01.5.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#pools/@Element\"\
,\"id\":\"xplatCreatedPool\",\"url\":\"https://clitest1.uksouth.batch.azure.com/pools/xplatCreatedPool\"\
,\"eTag\":\"0x8D45F6AB98723EE\",\"lastModified\":\"2017-02-27T23:45:34.9896174Z\"\
,\"creationTime\":\"2017-02-27T23:45:33.1942905Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-02-27T23:45:33.1942905Z\",\"allocationState\"\
:\"steady\",\"allocationStateTransitionTime\":\"2017-02-27T23:45:33.29031Z\"\
,\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicated\":0,\"\
targetDedicated\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\"\
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.japanwest.batch.azure.com/$metadata#pools/@Element\"\
,\"id\":\"xplatCreatedPool\",\"url\":\"https://clibatch000002.japanwest.batch.azure.com/pools/xplatCreatedPool\"\
,\"eTag\":\"0x8D49C91E58B3411\",\"lastModified\":\"2017-05-16T19:29:40.1378833Z\"\
,\"creationTime\":\"2017-05-16T19:27:36.5624817Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-05-16T19:27:36.5624817Z\",\"allocationState\"\
:\"steady\",\"allocationStateTransitionTime\":\"2017-05-16T19:27:51.3689017Z\"\
,\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\"\
:0,\"targetDedicatedNodes\":5,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\"\
:3,\"resizeErrors\":[\r\n {\r\n \"code\":\"ResizeStopped\",\"message\"\
:\"Desired number of dedicated nodes could not be allocated due to a stop\
\ resize operation\"\r\n },{\r\n \"code\":\"ResizeStopped\",\"message\"\
:\"Desired number of low priority nodes could not be allocated due to a stop\
\ resize operation\"\r\n }\r\n ],\"enableAutoScale\":false,\"enableInterNodeCommunication\"\
:false,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo updated\",\"maxTaskRetryCount\"\
:0,\"waitForSuccess\":true\r\n },\"maxTasksPerNode\":1,\"taskSchedulingPolicy\"\
:{\r\n \"nodeFillType\":\"Spread\"\r\n },\"cloudServiceConfiguration\"\
:{\r\n \"osFamily\":\"4\",\"targetOSVersion\":\"*\",\"currentOSVersion\"\
:\"*\"\r\n }\r\n}"}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:45:38 GMT']
ETag: ['0x8D45F6AB98723EE']
Last-Modified: ['Mon, 27 Feb 2017 23:45:34 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [6639e8fe-748d-4e9b-8dd9-da7acdc3675b]
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:29:40 GMT']
etag: ['0x8D49C91E58B3411']
last-modified: ['Tue, 16 May 2017 19:29:40 GMT']
request-id: [a97614e8-76bf-4d3d-b12c-dceb71af7551]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: '{"startTask": {"commandLine": "hostname"}, "metadata": [{"name": "a", "value":
"b"}, {"name": "c", "value": "d"}], "applicationPackageReferences": [], "certificateReferences":
"b"}, {"name": "c", "value": "d"}], "certificateReferences": [], "applicationPackageReferences":
[]}'
headers:
Accept: [application/json]
@ -335,26 +454,25 @@ interactions:
Connection: [keep-alive]
Content-Length: ['179']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [d7374758-fd46-11e6-9a17-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:45:38 GMT']
ocp-date: ['Tue, 16 May 2017 19:29:38 GMT']
method: POST
uri: https://clitest1.uksouth.batch.azure.com/pools/xplatCreatedPool/updateproperties?api-version=2017-01-01.4.0
uri: https://clibatch000002.japanwest.batch.azure.com/pools/xplatCreatedPool/updateproperties?api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
Content-Length: ['0']
DataServiceId: ['https://clitest1.uksouth.batch.azure.com/pools/xplatCreatedPool/updateproperties']
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:45:38 GMT']
ETag: ['0x8D45F6ABA88210A']
Last-Modified: ['Mon, 27 Feb 2017 23:45:36 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-Content-Type-Options: [nosniff]
request-id: [76dcbf10-5c64-4453-a285-0a52acc4eb05]
content-length: ['0']
dataserviceid: ['https://clibatchyozk6m7mytrzsacs.japanwest.batch.azure.com/pools/xplatCreatedPool/updateproperties']
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:29:39 GMT']
etag: ['0x8D49C91E62E2C50']
last-modified: ['Tue, 16 May 2017 19:29:41 GMT']
request-id: [7f0fad43-3d70-4043-9620-3b9184987bf6]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-content-type-options: [nosniff]
status: {code: 204, message: No Content}
- request:
body: null
@ -363,22 +481,26 @@ interactions:
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [d7ad49d2-fd46-11e6-9933-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:45:38 GMT']
ocp-date: ['Tue, 16 May 2017 19:29:39 GMT']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/pools/xplatCreatedPool?api-version=2017-01-01.4.0
uri: https://clibatch000002.japanwest.batch.azure.com/pools/xplatCreatedPool?api-version=2017-05-01.5.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#pools/@Element\"\
,\"id\":\"xplatCreatedPool\",\"url\":\"https://clitest1.uksouth.batch.azure.com/pools/xplatCreatedPool\"\
,\"eTag\":\"0x8D45F6ABA88210A\",\"lastModified\":\"2017-02-27T23:45:36.6738186Z\"\
,\"creationTime\":\"2017-02-27T23:45:33.1942905Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-02-27T23:45:33.1942905Z\",\"allocationState\"\
:\"steady\",\"allocationStateTransitionTime\":\"2017-02-27T23:45:33.29031Z\"\
,\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicated\":0,\"\
targetDedicated\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\"\
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.japanwest.batch.azure.com/$metadata#pools/@Element\"\
,\"id\":\"xplatCreatedPool\",\"url\":\"https://clibatch000002.japanwest.batch.azure.com/pools/xplatCreatedPool\"\
,\"eTag\":\"0x8D49C91E62E2C50\",\"lastModified\":\"2017-05-16T19:29:41.2059216Z\"\
,\"creationTime\":\"2017-05-16T19:27:36.5624817Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-05-16T19:27:36.5624817Z\",\"allocationState\"\
:\"steady\",\"allocationStateTransitionTime\":\"2017-05-16T19:27:51.3689017Z\"\
,\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\"\
:0,\"targetDedicatedNodes\":5,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\"\
:3,\"resizeErrors\":[\r\n {\r\n \"code\":\"ResizeStopped\",\"message\"\
:\"Desired number of dedicated nodes could not be allocated due to a stop\
\ resize operation\"\r\n },{\r\n \"code\":\"ResizeStopped\",\"message\"\
:\"Desired number of low priority nodes could not be allocated due to a stop\
\ resize operation\"\r\n }\r\n ],\"enableAutoScale\":false,\"enableInterNodeCommunication\"\
:false,\"startTask\":{\r\n \"commandLine\":\"hostname\",\"maxTaskRetryCount\"\
:0,\"waitForSuccess\":false\r\n },\"metadata\":[\r\n {\r\n \"name\"\
:\"a\",\"value\":\"b\"\r\n },{\r\n \"name\":\"c\",\"value\":\"d\"\r\
@ -387,16 +509,16 @@ interactions:
osFamily\":\"4\",\"targetOSVersion\":\"*\",\"currentOSVersion\":\"*\"\r\n\
\ }\r\n}"}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:45:36 GMT']
ETag: ['0x8D45F6ABA88210A']
Last-Modified: ['Mon, 27 Feb 2017 23:45:36 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [18a76bcb-2124-46f5-a1de-c7acde694265]
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:29:41 GMT']
etag: ['0x8D49C91E62E2C50']
last-modified: ['Tue, 16 May 2017 19:29:41 GMT']
request-id: [af8cf797-3a7c-48fe-b6d1-30774f087b02]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
@ -406,23 +528,50 @@ interactions:
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [d83c7426-fd46-11e6-b456-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:45:39 GMT']
ocp-date: ['Tue, 16 May 2017 19:29:40 GMT']
return-client-request-id: ['false']
method: DELETE
uri: https://clitest1.uksouth.batch.azure.com/pools/xplatCreatedPool?api-version=2017-01-01.4.0&timeout=30
uri: https://clibatch000002.japanwest.batch.azure.com/pools/xplatCreatedPool?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:45:38 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [3d539732-133d-4dfe-ad0e-5dece99ae122]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:29:41 GMT']
request-id: [61fddfc0-a866-4625-8667-f4a57f181ac4]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 202, message: Accepted}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [group delete]
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 resourcemanagementclient/1.1.0rc1 Azure-SDK-For-Python
AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: DELETE
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10
response:
body: {string: ''}
headers:
cache-control: [no-cache]
content-length: ['0']
date: ['Tue, 16 May 2017 19:29:39 GMT']
expires: ['-1']
location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdGUFQ1WllHSVZZQlZGWklOUFVYWU1BQlpDWTZWNFFTSDREU3w1NzE1ODM3MTcxMDFCRjYyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10']
pragma: [no-cache]
retry-after: ['15']
strict-transport-security: [max-age=31536000; includeSubDomains]
x-ms-ratelimit-remaining-subscription-writes: ['1196']
status: {code: 202, message: Accepted}
version: 1

Просмотреть файл

@ -1,812 +0,0 @@
interactions:
- request:
body: '{"cloudServiceConfiguration": {"osFamily": "4"}, "vmSize": "small", "id":
"azure-cli-test-paas"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['96']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [358ae564-fd46-11e6-96c5-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:41:06 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clitest1.uksouth.batch.azure.com/pools?api-version=2017-01-01.4.0&timeout=30
response:
body: {string: ''}
headers:
DataServiceId: ['https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-paas']
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:41:06 GMT']
ETag: ['0x8D45F6A1923EFE9']
Last-Modified: ['Mon, 27 Feb 2017 23:41:05 GMT']
Location: ['https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-paas']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [374e61ed-ac9f-40c7-bb2a-08ca40cbcb81]
status: {code: 201, message: Created}
- request:
body: '{"virtualMachineConfiguration": {"nodeAgentSKUId": "batch.node.ubuntu 16.04",
"imageReference": {"version": "latest", "sku": "16.04.0-LTS", "offer": "UbuntuServer",
"publisher": "Canonical"}}, "vmSize": "Standard_A1", "id": "azure-cli-test-iaas"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['246']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [36548ade-fd46-11e6-b991-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:41:08 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clitest1.uksouth.batch.azure.com/pools?api-version=2017-01-01.4.0&timeout=30
response:
body: {string: ''}
headers:
DataServiceId: ['https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-iaas']
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:41:08 GMT']
ETag: ['0x8D45F6A199DBC99']
Last-Modified: ['Mon, 27 Feb 2017 23:41:06 GMT']
Location: ['https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-iaas']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [012852ef-1ec9-4dd3-88c7-2b62a7d223b0]
status: {code: 201, message: Created}
- request:
body: '{"userAccounts": [{"elevationLevel": "admin", "password": "SRYES@#%#_DSFH",
"name": "cliTestUser"}], "targetDedicated": 2, "id": "azure-cli-test-json",
"startTask": {"commandLine": "cmd /c echo test", "waitForSuccess": true, "userIdentity":
{"username": "cliTestUser"}}, "cloudServiceConfiguration": {"osFamily": "4",
"targetOSVersion": "*"}, "vmSize": "small", "resizeTimeout": "PT15M"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['387']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [371a71e6-fd46-11e6-95eb-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:41:09 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clitest1.uksouth.batch.azure.com/pools?api-version=2017-01-01.4.0&timeout=30
response:
body: {string: ''}
headers:
DataServiceId: ['https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-json']
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:41:09 GMT']
ETag: ['0x8D45F6A1A67D366']
Last-Modified: ['Mon, 27 Feb 2017 23:41:08 GMT']
Location: ['https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-json']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [541ad5a4-3a36-4130-9215-a97ca5d4cc62]
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [3797cba2-fd46-11e6-bff7-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:41:10 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-json?api-version=2017-01-01.4.0&timeout=30
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#pools/@Element\"\
,\"id\":\"azure-cli-test-json\",\"url\":\"https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-json\"\
,\"eTag\":\"0x8D45F6A1A67D366\",\"lastModified\":\"2017-02-27T23:41:08.0266598Z\"\
,\"creationTime\":\"2017-02-27T23:41:08.0266598Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-02-27T23:41:08.0266598Z\",\"allocationState\"\
:\"resizing\",\"allocationStateTransitionTime\":\"2017-02-27T23:41:08.0266598Z\"\
,\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicated\":0,\"\
targetDedicated\":2,\"enableAutoScale\":false,\"enableInterNodeCommunication\"\
:false,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo test\",\"userIdentity\"\
:{\r\n \"username\":\"cliTestUser\"\r\n },\"maxTaskRetryCount\":0,\"\
waitForSuccess\":true\r\n },\"userAccounts\":[\r\n {\r\n \"name\"\
:\"cliTestUser\",\"elevationLevel\":\"admin\"\r\n }\r\n ],\"maxTasksPerNode\"\
:1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n },\"\
cloudServiceConfiguration\":{\r\n \"osFamily\":\"4\",\"targetOSVersion\"\
:\"*\",\"currentOSVersion\":\"*\"\r\n }\r\n}"}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:41:07 GMT']
ETag: ['0x8D45F6A1A67D366']
Last-Modified: ['Mon, 27 Feb 2017 23:41:08 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [2b103cec-8822-46d0-b9e4-781064742223]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [383f605c-fd46-11e6-aaeb-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:41:11 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/pools?maxresults=1000&api-version=2017-01-01.4.0&timeout=30
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#pools\"\
,\"value\":[\r\n {\r\n \"id\":\"azure-cli-test-iaas\",\"url\":\"https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-iaas\"\
,\"eTag\":\"0x8D45F6A199DBC99\",\"lastModified\":\"2017-02-27T23:41:06.7022489Z\"\
,\"creationTime\":\"2017-02-27T23:41:06.7022489Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-02-27T23:41:06.7022489Z\",\"allocationState\"\
:\"steady\",\"allocationStateTransitionTime\":\"2017-02-27T23:41:07.2892499Z\"\
,\"vmSize\":\"standard_a1\",\"resizeTimeout\":\"PT15M\",\"currentDedicated\"\
:0,\"targetDedicated\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\"\
:false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\"\
:\"Spread\"\r\n },\"virtualMachineConfiguration\":{\r\n \"imageReference\"\
:{\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"\
sku\":\"16.04.0-LTS\",\"version\":\"latest\"\r\n },\"nodeAgentSKUId\"\
:\"batch.node.ubuntu 16.04\"\r\n }\r\n },{\r\n \"id\":\"azure-cli-test-json\"\
,\"url\":\"https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-json\"\
,\"eTag\":\"0x8D45F6A1A67D366\",\"lastModified\":\"2017-02-27T23:41:08.0266598Z\"\
,\"creationTime\":\"2017-02-27T23:41:08.0266598Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-02-27T23:41:08.0266598Z\",\"allocationState\"\
:\"resizing\",\"allocationStateTransitionTime\":\"2017-02-27T23:41:08.0266598Z\"\
,\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicated\":0,\"\
targetDedicated\":2,\"enableAutoScale\":false,\"enableInterNodeCommunication\"\
:false,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo test\",\"\
userIdentity\":{\r\n \"username\":\"cliTestUser\"\r\n },\"\
maxTaskRetryCount\":0,\"waitForSuccess\":true\r\n },\"userAccounts\"\
:[\r\n {\r\n \"name\":\"cliTestUser\",\"elevationLevel\":\"\
admin\"\r\n }\r\n ],\"maxTasksPerNode\":1,\"taskSchedulingPolicy\"\
:{\r\n \"nodeFillType\":\"Spread\"\r\n },\"cloudServiceConfiguration\"\
:{\r\n \"osFamily\":\"4\",\"targetOSVersion\":\"*\",\"currentOSVersion\"\
:\"*\"\r\n }\r\n },{\r\n \"id\":\"azure-cli-test-paas\",\"url\"\
:\"https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-paas\",\"\
eTag\":\"0x8D45F6A1923EFE9\",\"lastModified\":\"2017-02-27T23:41:05.9040233Z\"\
,\"creationTime\":\"2017-02-27T23:41:05.9040233Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-02-27T23:41:05.9040233Z\",\"allocationState\"\
:\"steady\",\"allocationStateTransitionTime\":\"2017-02-27T23:41:06.0030642Z\"\
,\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicated\":0,\"\
targetDedicated\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\"\
:false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\"\
:\"Spread\"\r\n },\"cloudServiceConfiguration\":{\r\n \"osFamily\"\
:\"4\",\"targetOSVersion\":\"*\",\"currentOSVersion\":\"*\"\r\n }\r\n\
\ }\r\n ]\r\n}"}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:41:09 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [c296c57f-5c6b-4fb8-8367-e3b4ec9cbb80]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [38b8b7dc-fd46-11e6-bc1c-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:41:12 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/pools?maxresults=1000&api-version=2017-01-01.4.0&$filter=id%20eq%20%27azure-cli-test-paas%27&timeout=30
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#pools\"\
,\"value\":[\r\n {\r\n \"id\":\"azure-cli-test-paas\",\"url\":\"https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-paas\"\
,\"eTag\":\"0x8D45F6A1923EFE9\",\"lastModified\":\"2017-02-27T23:41:05.9040233Z\"\
,\"creationTime\":\"2017-02-27T23:41:05.9040233Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-02-27T23:41:05.9040233Z\",\"allocationState\"\
:\"steady\",\"allocationStateTransitionTime\":\"2017-02-27T23:41:06.0030642Z\"\
,\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicated\":0,\"\
targetDedicated\":0,\"enableAutoScale\":false,\"enableInterNodeCommunication\"\
:false,\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\"\
:\"Spread\"\r\n },\"cloudServiceConfiguration\":{\r\n \"osFamily\"\
:\"4\",\"targetOSVersion\":\"*\",\"currentOSVersion\":\"*\"\r\n }\r\n\
\ }\r\n ]\r\n}"}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:41:11 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [c913a0b3-960d-489b-9ccc-bf2cc669897f]
status: {code: 200, message: OK}
- request:
body: '{"targetDedicated": 5}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['22']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [392e8612-fd46-11e6-ad9c-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:41:13 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-paas/resize?api-version=2017-01-01.4.0&timeout=30
response:
body: {string: ''}
headers:
DataServiceId: ['https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-paas/resize']
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:41:11 GMT']
ETag: ['0x8D45F6A1C76B06A']
Last-Modified: ['Mon, 27 Feb 2017 23:41:11 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [9a286078-c032-459e-aa4d-09c767e5253f]
status: {code: 202, message: Accepted}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [39a6b77a-fd46-11e6-9f6f-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:41:13 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-paas?$select=allocationState%2C%20targetDedicated&api-version=2017-01-01.4.0&timeout=30
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#pools/@Element\"\
,\"allocationState\":\"resizing\",\"targetDedicated\":5\r\n}"}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:41:14 GMT']
ETag: ['0x8D45F6A1C76B06A']
Last-Modified: ['Mon, 27 Feb 2017 23:41:11 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [f7e61b87-5e4d-4cef-b185-0c9027f83056]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [3a349426-fd46-11e6-9846-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:41:14 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-paas/stopresize?api-version=2017-01-01.4.0&timeout=30
response:
body: {string: ''}
headers:
DataServiceId: ['https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-paas/stopresize']
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:41:13 GMT']
ETag: ['0x8D45F6A1D7A6B14']
Last-Modified: ['Mon, 27 Feb 2017 23:41:13 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [c9c6c65e-04f3-40a0-a94d-8bb711a6917f]
status: {code: 202, message: Accepted}
- request:
body: '{"autoScaleFormula": "$TargetDedicated=3"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['42']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [3abf7c98-fd46-11e6-9575-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:41:15 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-iaas/enableautoscale?api-version=2017-01-01.4.0&timeout=30
response:
body: {string: ''}
headers:
DataServiceId: ['https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-iaas/enableautoscale']
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:41:14 GMT']
ETag: ['0x8D45F6A1E04BD3B']
Last-Modified: ['Mon, 27 Feb 2017 23:41:14 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [7a08040c-7f2d-451c-89dc-36e232526864]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [3b509092-fd46-11e6-9a4c-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:41:16 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-iaas?$select=enableAutoScale&api-version=2017-01-01.4.0&timeout=30
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#pools/@Element\"\
,\"enableAutoScale\":true\r\n}"}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:41:16 GMT']
ETag: ['0x8D45F6A1E04BD3B']
Last-Modified: ['Mon, 27 Feb 2017 23:41:14 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [1f0db283-d9fb-4ff1-85bd-3d495c42c745]
status: {code: 200, message: OK}
- request:
body: '{"autoScaleFormula": "$TargetDedicated=3"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['42']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [3bf17d66-fd46-11e6-baaf-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:41:17 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-iaas/evaluateautoscale?api-version=2017-01-01.4.0&timeout=30
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.AutoScaleRun\"\
,\"timestamp\":\"2017-02-27T23:41:17.8557381Z\",\"results\":\"$TargetDedicated=3;$NodeDeallocationOption=requeue\"\
\r\n}"}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceId: ['https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-iaas/evaluateautoscale']
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:41:17 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [aa2438eb-e2e5-4030-9d58-5b990b10ef32]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [3c939540-fd46-11e6-a049-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:41:18 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-iaas/disableautoscale?api-version=2017-01-01.4.0&timeout=30
response:
body: {string: ''}
headers:
DataServiceId: ['https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-iaas/disableautoscale']
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:41:16 GMT']
ETag: ['0x8D45F6A1FE83E77']
Last-Modified: ['Mon, 27 Feb 2017 23:41:17 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [95c3b6f0-c70a-4d48-be23-ffdc2a38582e]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [3d1c205a-fd46-11e6-bc3d-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:41:19 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-iaas?$select=enableAutoScale&api-version=2017-01-01.4.0&timeout=30
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#pools/@Element\"\
,\"enableAutoScale\":false\r\n}"}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:41:18 GMT']
ETag: ['0x8D45F6A1FE8659B']
Last-Modified: ['Mon, 27 Feb 2017 23:41:17 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [ae701667-eb2c-4085-a741-ea0eb9a575cb]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [3d9fb910-fd46-11e6-a80a-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:41:20 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/poolusagemetrics?maxresults=1000&api-version=2017-01-01.4.0&timeout=30
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#poolusagemetrics\"\
,\"value\":[\r\n \r\n ]\r\n}"}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:41:20 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [bf79ee7a-9f40-4195-bb47-f75e8a2f6d48]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [3e186170-fd46-11e6-bffb-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:41:21 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-json?$select=startTask&api-version=2017-01-01.4.0&timeout=30
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#pools/@Element\"\
,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo test\",\"userIdentity\"\
:{\r\n \"username\":\"cliTestUser\"\r\n },\"maxTaskRetryCount\":0,\"\
waitForSuccess\":true\r\n }\r\n}"}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:41:20 GMT']
ETag: ['0x8D45F6A1A67D366']
Last-Modified: ['Mon, 27 Feb 2017 23:41:08 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [e74c1ce1-5c68-4968-bef9-cc48fc9e3b71]
status: {code: 200, message: OK}
- request:
body: '{"startTask": {"commandLine": "new_value"}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['43']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [3ebfad94-fd46-11e6-8ed2-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:41:22 GMT']
return-client-request-id: ['false']
method: PATCH
uri: https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-json?api-version=2017-01-01.4.0&timeout=30
response:
body: {string: ''}
headers:
DataServiceId: ['https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-json']
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:41:22 GMT']
ETag: ['0x8D45F6A2238470F']
Last-Modified: ['Mon, 27 Feb 2017 23:41:21 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [f662d961-c31b-46b8-aaaf-7ed2f1a4e902]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [3f7dce14-fd46-11e6-bcfd-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:41:23 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-json?$select=startTask&api-version=2017-01-01.4.0&timeout=30
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#pools/@Element\"\
,\"startTask\":{\r\n \"commandLine\":\"new_value\",\"maxTaskRetryCount\"\
:0,\"waitForSuccess\":false\r\n }\r\n}"}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:41:24 GMT']
ETag: ['0x8D45F6A2238470F']
Last-Modified: ['Mon, 27 Feb 2017 23:41:21 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [5d606f04-f2b6-462c-bf6a-067ee079ac78]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [406e450c-fd46-11e6-be18-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:41:25 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/nodeagentskus?maxresults=1000&api-version=2017-01-01.4.0&timeout=30
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#nodeagentskus\"\
,\"value\":[\r\n {\r\n \"id\":\"batch.node.centos 7\",\"verifiedImageReferences\"\
:[\r\n {\r\n \"publisher\":\"OpenLogic\",\"offer\":\"CentOS\"\
,\"sku\":\"7.2\",\"version\":\"latest\"\r\n },{\r\n \"publisher\"\
:\"OpenLogic\",\"offer\":\"CentOS\",\"sku\":\"7.1\",\"version\":\"latest\"\
\r\n },{\r\n \"publisher\":\"OpenLogic\",\"offer\":\"CentOS\"\
,\"sku\":\"7.0\",\"version\":\"latest\"\r\n },{\r\n \"publisher\"\
:\"OpenLogic\",\"offer\":\"CentOS-HPC\",\"sku\":\"7.1\",\"version\":\"latest\"\
\r\n },{\r\n \"publisher\":\"Oracle\",\"offer\":\"Oracle-Linux\"\
,\"sku\":\"7.2\",\"version\":\"latest\"\r\n },{\r\n \"publisher\"\
:\"Oracle\",\"offer\":\"Oracle-Linux\",\"sku\":\"7.0\",\"version\":\"latest\"\
\r\n },{\r\n \"publisher\":\"microsoft-ads\",\"offer\":\"\
linux-data-science-vm\",\"sku\":\"linuxdsvm\",\"version\":\"latest\"\r\n \
\ }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.debian\
\ 8\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\"\
:\"Credativ\",\"offer\":\"Debian\",\"sku\":\"8\",\"version\":\"latest\"\r\n\
\ }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.opensuse\
\ 13.2\",\"verifiedImageReferences\":[\r\n {\r\n \"publisher\"\
:\"SUSE\",\"offer\":\"openSUSE\",\"sku\":\"13.2\",\"version\":\"latest\"\r\
\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"\
batch.node.opensuse 42.1\",\"verifiedImageReferences\":[\r\n {\r\n\
\ \"publisher\":\"SUSE\",\"offer\":\"openSUSE-Leap\",\"sku\":\"42.1\"\
,\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"SUSE\"\
,\"offer\":\"SLES\",\"sku\":\"12-SP1\",\"version\":\"latest\"\r\n },{\r\
\n \"publisher\":\"SUSE\",\"offer\":\"SLES-HPC\",\"sku\":\"12-SP1\"\
,\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n \
\ },{\r\n \"id\":\"batch.node.ubuntu 14.04\",\"verifiedImageReferences\"\
:[\r\n {\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\"\
,\"sku\":\"14.04.5-LTS\",\"version\":\"latest\"\r\n }\r\n ],\"\
osType\":\"linux\"\r\n },{\r\n \"id\":\"batch.node.ubuntu 16.04\"\
,\"verifiedImageReferences\":[\r\n {\r\n \"publisher\":\"\
Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.04.0-LTS\",\"version\"\
:\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \
\ \"id\":\"batch.node.windows amd64\",\"verifiedImageReferences\":[\r\n\
\ {\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\"\
:\"WindowsServer\",\"sku\":\"2012-R2-Datacenter\",\"version\":\"latest\"\r\
\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\"\
:\"WindowsServer\",\"sku\":\"2012-Datacenter\",\"version\":\"latest\"\r\n\
\ },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\"\
:\"WindowsServer\",\"sku\":\"2008-R2-SP1\",\"version\":\"latest\"\r\n \
\ },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"\
WindowsServer\",\"sku\":\"2016-Datacenter\",\"version\":\"latest\"\r\n \
\ },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\"\
:\"WindowsServer\",\"sku\":\"2016-Datacenter-with-Containers\",\"version\"\
:\"latest\"\r\n },{\r\n \"publisher\":\"microsoft-ads\",\"\
offer\":\"standard-data-science-vm\",\"sku\":\"standard-data-science-vm\"\
,\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"windows\"\r\n\
\ }\r\n ]\r\n}"}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:41:25 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [e502ce1e-62f3-409a-9856-624f4de8a7a5]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [412be870-fd46-11e6-bdfc-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:41:26 GMT']
return-client-request-id: ['false']
method: DELETE
uri: https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-iaas?api-version=2017-01-01.4.0&timeout=30
response:
body: {string: ''}
headers:
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:41:23 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [0430bfb4-7bf2-4ab2-b2f9-87c684faf843]
status: {code: 202, message: Accepted}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [41a94a76-fd46-11e6-a8ed-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:41:27 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-iaas?$select=state&api-version=2017-01-01.4.0&timeout=30
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#pools/@Element\"\
,\"state\":\"deleting\"\r\n}"}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:41:25 GMT']
ETag: ['0x8D45F6A24712C75']
Last-Modified: ['Mon, 27 Feb 2017 23:41:24 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [d15c3252-cf6a-4760-96b8-ade6b69be3d3]
status: {code: 200, message: OK}
- request:
body: '{"cloudServiceConfiguration": {"osFamily": "4"}, "vmSize": "small", "id":
"app_package_test", "applicationPackageReferences": [{"applicationId": "does-not-exist"}]}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['164']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [4231ebe6-fd46-11e6-9cb7-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:41:28 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clitest1.uksouth.batch.azure.com/pools?api-version=2017-01-01.4.0&timeout=30
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\"\
,\"code\":\"InvalidApplicationPackageReferences\",\"message\":{\r\n \"\
lang\":\"en-US\",\"value\":\"One or more of the specified application package\
\ references are invalid.\\nRequestId:46baabe7-63ea-414e-ae6c-c8d7a63e438f\\\
nTime:2017-02-27T23:41:28.7677426Z\"\r\n },\"values\":[\r\n {\r\n \
\ \"key\":\"does-not-exist\",\"value\":\"The specified application package\
\ does not exist.\"\r\n }\r\n ]\r\n}"}
headers:
Content-Length: ['511']
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:41:28 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-Content-Type-Options: [nosniff]
request-id: [46baabe7-63ea-414e-ae6c-c8d7a63e438f]
status: {code: 409, message: One or more of the specified application package
references are invalid.}
- request:
body: '{"applicationPackageReferences": [{"applicationId": "does-not-exist"}]}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['71']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [42c9f8e4-fd46-11e6-a7a0-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:41:29 GMT']
return-client-request-id: ['false']
method: PATCH
uri: https://clitest1.uksouth.batch.azure.com/pools/azure-cli-test-paas?api-version=2017-01-01.4.0&timeout=30
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\"\
,\"code\":\"InvalidApplicationPackageReferences\",\"message\":{\r\n \"\
lang\":\"en-US\",\"value\":\"One or more of the specified application package\
\ references are invalid.\\nRequestId:34862835-3dcb-426a-bada-58a528d8607e\\\
nTime:2017-02-27T23:41:27.7470715Z\"\r\n },\"values\":[\r\n {\r\n \
\ \"key\":\"does-not-exist\",\"value\":\"The specified application package\
\ does not exist.\"\r\n }\r\n ]\r\n}"}
headers:
Content-Length: ['511']
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:41:27 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-Content-Type-Options: [nosniff]
request-id: [34862835-3dcb-426a-bada-58a528d8607e]
status: {code: 409, message: One or more of the specified application package
references are invalid.}
version: 1

Просмотреть файл

@ -0,0 +1,973 @@
interactions:
- request:
body: '{"location": "westus", "tags": {"use": "az-test"}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [group create]
Connection: [keep-alive]
Content-Length: ['50']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 resourcemanagementclient/1.1.0rc1 Azure-SDK-For-Python
AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10
response:
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
headers:
cache-control: [no-cache]
content-length: ['328']
content-type: [application/json; charset=utf-8]
date: ['Tue, 16 May 2017 19:29:40 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 201, message: Created}
- request:
body: '{"location": "westeurope"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [batch account create]
Connection: [keep-alive]
Content-Length: ['26']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchmanagementclient/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002?api-version=2017-05-01
response:
body: {string: ''}
headers:
cache-control: [no-cache]
content-length: ['0']
date: ['Tue, 16 May 2017 19:29:42 GMT']
expires: ['-1']
location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002/operationResults/9c156ede-9d67-4470-87c7-0cea2fd513c0?api-version=2017-05-01']
pragma: [no-cache]
request-id: [9c156ede-9d67-4470-87c7-0cea2fd513c0]
retry-after: ['15']
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-content-type-options: [nosniff]
x-ms-ratelimit-remaining-subscription-writes: ['1197']
status: {code: 202, message: Accepted}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [batch account create]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchmanagementclient/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002/operationResults/9c156ede-9d67-4470-87c7-0cea2fd513c0?api-version=2017-05-01
response:
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002","name":"clibatch000002","type":"Microsoft.Batch/batchAccounts","location":"westeurope","properties":{"accountEndpoint":"clibatch000002.westeurope.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"poolAllocationMode":"batchservice"}}'}
headers:
cache-control: [no-cache]
content-length: ['567']
content-type: [application/json; charset=utf-8]
date: ['Tue, 16 May 2017 19:29:58 GMT']
etag: ['"0x8D49C91F058474B"']
expires: ['-1']
last-modified: ['Tue, 16 May 2017 19:29:58 GMT']
pragma: [no-cache]
request-id: [a1c2e367-8ced-4471-becc-01111a5e0088]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [batch account keys list]
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchmanagementclient/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002/listKeys?api-version=2017-05-01
response:
body: {string: '{"accountName":"clibatch000002","primary":"Hzy+fkoFkbZKHSlhQVXIf/wOXlAlKj13EgzxkQ2s+10hF1Rof60IZQZpx7oGoEHihNZ1YWIZqJst18xgBBVsjA==","secondary":"adgI/XvvqavTOyO6QZvdYU/81y0Lb7CH+scnI5lWWbgVc2IdVl7pYXihYPUsae/pZIR+KXPh6FEzS9/ZeOVGlw=="}'}
headers:
cache-control: [no-cache]
content-length: ['246']
content-type: [application/json; charset=utf-8]
date: ['Tue, 16 May 2017 19:29:59 GMT']
expires: ['-1']
pragma: [no-cache]
request-id: [27c62f38-0045-4431-8dd8-9d8682991672]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
x-content-type-options: [nosniff]
x-ms-ratelimit-remaining-subscription-writes: ['1196']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [batch account show]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchmanagementclient/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002?api-version=2017-05-01
response:
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002","name":"clibatch000002","type":"Microsoft.Batch/batchAccounts","location":"westeurope","properties":{"accountEndpoint":"clibatch000002.westeurope.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"poolAllocationMode":"batchservice"}}'}
headers:
cache-control: [no-cache]
content-length: ['567']
content-type: [application/json; charset=utf-8]
date: ['Tue, 16 May 2017 19:30:00 GMT']
etag: ['"0x8D49C91E6C2C35E"']
expires: ['-1']
last-modified: ['Tue, 16 May 2017 19:29:42 GMT']
pragma: [no-cache]
request-id: [fae86791-61d7-4dd4-a5d0-799010b477ea]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: '{"id": "azure-cli-test-paas", "cloudServiceConfiguration": {"osFamily":
"4"}, "vmSize": "small"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['96']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:30:01 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clibatch000002.westeurope.batch.azure.com/pools?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
dataserviceid: ['https://clibatchjy3pkxmfsvtaieuy.westeurope.batch.azure.com/pools/azure-cli-test-paas']
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:00 GMT']
etag: ['0x8D49C91F29989FD']
last-modified: ['Tue, 16 May 2017 19:30:02 GMT']
location: ['https://clibatch000002.westeurope.batch.azure.com/pools/azure-cli-test-paas']
request-id: [4dfe4923-b143-4dc9-98ce-d9ef83e83148]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 201, message: Created}
- request:
body: '{"id": "azure-cli-test-iaas", "vmSize": "Standard_A1", "virtualMachineConfiguration":
{"imageReference": {"offer": "UbuntuServer", "version": "latest", "sku": "16.04.0-LTS",
"publisher": "Canonical"}, "nodeAgentSKUId": "batch.node.ubuntu 16.04"}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['246']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:30:02 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clibatch000002.westeurope.batch.azure.com/pools?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
dataserviceid: ['https://clibatchjy3pkxmfsvtaieuy.westeurope.batch.azure.com/pools/azure-cli-test-iaas']
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:03 GMT']
etag: ['0x8D49C91F31CFC29']
last-modified: ['Tue, 16 May 2017 19:30:02 GMT']
location: ['https://clibatch000002.westeurope.batch.azure.com/pools/azure-cli-test-iaas']
request-id: [d98c69d5-69cc-4ce8-8fab-b926a3c39994]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 201, message: Created}
- request:
body: '{"startTask": {"waitForSuccess": true, "commandLine": "cmd /c echo test",
"userIdentity": {"username": "cliTestUser"}}, "id": "azure-cli-test-json", "cloudServiceConfiguration":
{"targetOSVersion": "*", "osFamily": "4"}, "vmSize": "small", "userAccounts":
[{"name": "cliTestUser", "password": "SRYES@#%#_DSFH", "elevationLevel": "admin"}],
"resizeTimeout": "PT15M"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['365']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:30:03 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clibatch000002.westeurope.batch.azure.com/pools?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
dataserviceid: ['https://clibatchjy3pkxmfsvtaieuy.westeurope.batch.azure.com/pools/azure-cli-test-json']
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:03 GMT']
etag: ['0x8D49C91F3AE5893']
last-modified: ['Tue, 16 May 2017 19:30:03 GMT']
location: ['https://clibatch000002.westeurope.batch.azure.com/pools/azure-cli-test-json']
request-id: [d06fd5a1-a1a1-4e89-beee-cf1fcdf66800]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:30:03 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clibatch000002.westeurope.batch.azure.com/pools/azure-cli-test-json?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.westeurope.batch.azure.com/$metadata#pools/@Element\"\
,\"id\":\"azure-cli-test-json\",\"url\":\"https://clibatch000002.westeurope.batch.azure.com/pools/azure-cli-test-json\"\
,\"eTag\":\"0x8D49C91F3AE5893\",\"lastModified\":\"2017-05-16T19:30:03.8562963Z\"\
,\"creationTime\":\"2017-05-16T19:30:03.8562963Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-05-16T19:30:03.8562963Z\",\"allocationState\"\
:\"steady\",\"allocationStateTransitionTime\":\"2017-05-16T19:30:04.0212944Z\"\
,\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\"\
:0,\"targetDedicatedNodes\":0,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\"\
:0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"startTask\"\
:{\r\n \"commandLine\":\"cmd /c echo test\",\"userIdentity\":{\r\n \
\ \"username\":\"cliTestUser\"\r\n },\"maxTaskRetryCount\":0,\"waitForSuccess\"\
:true\r\n },\"userAccounts\":[\r\n {\r\n \"name\":\"cliTestUser\"\
,\"elevationLevel\":\"admin\"\r\n }\r\n ],\"maxTasksPerNode\":1,\"taskSchedulingPolicy\"\
:{\r\n \"nodeFillType\":\"Spread\"\r\n },\"cloudServiceConfiguration\"\
:{\r\n \"osFamily\":\"4\",\"targetOSVersion\":\"*\",\"currentOSVersion\"\
:\"*\"\r\n }\r\n}"}
headers:
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:04 GMT']
etag: ['0x8D49C91F3AE5893']
last-modified: ['Tue, 16 May 2017 19:30:03 GMT']
request-id: [7dc6042e-3b32-4d31-a3a5-58147111edff]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:30:04 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clibatch000002.westeurope.batch.azure.com/pools?maxresults=1000&timeout=30&api-version=2017-05-01.5.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.westeurope.batch.azure.com/$metadata#pools\"\
,\"value\":[\r\n {\r\n \"id\":\"azure-cli-test-iaas\",\"url\":\"https://clibatch000002.westeurope.batch.azure.com/pools/azure-cli-test-iaas\"\
,\"eTag\":\"0x8D49C91F31CFC29\",\"lastModified\":\"2017-05-16T19:30:02.9036585Z\"\
,\"creationTime\":\"2017-05-16T19:30:02.9036585Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-05-16T19:30:02.9036585Z\",\"allocationState\"\
:\"steady\",\"allocationStateTransitionTime\":\"2017-05-16T19:30:03.5616531Z\"\
,\"vmSize\":\"standard_a1\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\"\
:0,\"targetDedicatedNodes\":0,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\"\
:0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\"\
:1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n \
\ },\"virtualMachineConfiguration\":{\r\n \"imageReference\":{\r\
\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\"\
:\"16.04.0-LTS\",\"version\":\"latest\"\r\n },\"nodeAgentSKUId\":\"\
batch.node.ubuntu 16.04\"\r\n }\r\n },{\r\n \"id\":\"azure-cli-test-json\"\
,\"url\":\"https://clibatch000002.westeurope.batch.azure.com/pools/azure-cli-test-json\"\
,\"eTag\":\"0x8D49C91F3AE5893\",\"lastModified\":\"2017-05-16T19:30:03.8562963Z\"\
,\"creationTime\":\"2017-05-16T19:30:03.8562963Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-05-16T19:30:03.8562963Z\",\"allocationState\"\
:\"steady\",\"allocationStateTransitionTime\":\"2017-05-16T19:30:04.0212944Z\"\
,\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\"\
:0,\"targetDedicatedNodes\":0,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\"\
:0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"startTask\"\
:{\r\n \"commandLine\":\"cmd /c echo test\",\"userIdentity\":{\r\n\
\ \"username\":\"cliTestUser\"\r\n },\"maxTaskRetryCount\"\
:0,\"waitForSuccess\":true\r\n },\"userAccounts\":[\r\n {\r\n\
\ \"name\":\"cliTestUser\",\"elevationLevel\":\"admin\"\r\n \
\ }\r\n ],\"maxTasksPerNode\":1,\"taskSchedulingPolicy\":{\r\n \
\ \"nodeFillType\":\"Spread\"\r\n },\"cloudServiceConfiguration\"\
:{\r\n \"osFamily\":\"4\",\"targetOSVersion\":\"*\",\"currentOSVersion\"\
:\"*\"\r\n }\r\n },{\r\n \"id\":\"azure-cli-test-paas\",\"url\"\
:\"https://clibatch000002.westeurope.batch.azure.com/pools/azure-cli-test-paas\"\
,\"eTag\":\"0x8D49C91F29989FD\",\"lastModified\":\"2017-05-16T19:30:02.0422141Z\"\
,\"creationTime\":\"2017-05-16T19:30:02.0422141Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-05-16T19:30:02.0422141Z\",\"allocationState\"\
:\"steady\",\"allocationStateTransitionTime\":\"2017-05-16T19:30:02.2383335Z\"\
,\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\"\
:0,\"targetDedicatedNodes\":0,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\"\
:0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\"\
:1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n \
\ },\"cloudServiceConfiguration\":{\r\n \"osFamily\":\"4\",\"targetOSVersion\"\
:\"*\",\"currentOSVersion\":\"*\"\r\n }\r\n }\r\n ]\r\n}"}
headers:
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:04 GMT']
request-id: [d24c76a1-e489-401d-9df5-23990bde4b34]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:30:05 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clibatch000002.westeurope.batch.azure.com/pools?maxresults=1000&$filter=id%20eq%20%27azure-cli-test-paas%27&api-version=2017-05-01.5.0&timeout=30
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.westeurope.batch.azure.com/$metadata#pools\"\
,\"value\":[\r\n {\r\n \"id\":\"azure-cli-test-paas\",\"url\":\"https://clibatch000002.westeurope.batch.azure.com/pools/azure-cli-test-paas\"\
,\"eTag\":\"0x8D49C91F29989FD\",\"lastModified\":\"2017-05-16T19:30:02.0422141Z\"\
,\"creationTime\":\"2017-05-16T19:30:02.0422141Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-05-16T19:30:02.0422141Z\",\"allocationState\"\
:\"steady\",\"allocationStateTransitionTime\":\"2017-05-16T19:30:02.2383335Z\"\
,\"vmSize\":\"small\",\"resizeTimeout\":\"PT15M\",\"currentDedicatedNodes\"\
:0,\"targetDedicatedNodes\":0,\"currentLowPriorityNodes\":0,\"targetLowPriorityNodes\"\
:0,\"enableAutoScale\":false,\"enableInterNodeCommunication\":false,\"maxTasksPerNode\"\
:1,\"taskSchedulingPolicy\":{\r\n \"nodeFillType\":\"Spread\"\r\n \
\ },\"cloudServiceConfiguration\":{\r\n \"osFamily\":\"4\",\"targetOSVersion\"\
:\"*\",\"currentOSVersion\":\"*\"\r\n }\r\n }\r\n ]\r\n}"}
headers:
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:05 GMT']
request-id: [4b78770b-48fb-428d-b261-391dbdff8025]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: '{"targetDedicatedNodes": 5}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['27']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:30:06 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clibatch000002.westeurope.batch.azure.com/pools/azure-cli-test-paas/resize?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
dataserviceid: ['https://clibatchjy3pkxmfsvtaieuy.westeurope.batch.azure.com/pools/azure-cli-test-paas/resize']
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:06 GMT']
etag: ['0x8D49C91F5966B3C']
last-modified: ['Tue, 16 May 2017 19:30:07 GMT']
request-id: [cb6e3abb-0163-412d-bfff-a9ea99e9d5fb]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 202, message: Accepted}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:30:07 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clibatch000002.westeurope.batch.azure.com/pools/azure-cli-test-paas?$select=allocationState%2C%20targetDedicatedNodes&api-version=2017-05-01.5.0&timeout=30
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.westeurope.batch.azure.com/$metadata#pools/@Element\"\
,\"allocationState\":\"resizing\",\"targetDedicatedNodes\":5\r\n}"}
headers:
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:07 GMT']
etag: ['0x8D49C91F5966B3C']
last-modified: ['Tue, 16 May 2017 19:30:07 GMT']
request-id: [789ccbc8-67ff-423a-a651-5782aa578e37]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:30:07 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clibatch000002.westeurope.batch.azure.com/pools/azure-cli-test-paas/stopresize?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
dataserviceid: ['https://clibatchjy3pkxmfsvtaieuy.westeurope.batch.azure.com/pools/azure-cli-test-paas/stopresize']
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:08 GMT']
etag: ['0x8D49C91F67F8722']
last-modified: ['Tue, 16 May 2017 19:30:08 GMT']
request-id: [043ece83-42b4-492e-a5f2-725ecaa108e1]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 202, message: Accepted}
- request:
body: '{"autoScaleFormula": "$TargetDedicatedNodes=3"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['47']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:30:08 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clibatch000002.westeurope.batch.azure.com/pools/azure-cli-test-iaas/enableautoscale?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
dataserviceid: ['https://clibatchjy3pkxmfsvtaieuy.westeurope.batch.azure.com/pools/azure-cli-test-iaas/enableautoscale']
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:08 GMT']
etag: ['0x8D49C91F6EF9D69']
last-modified: ['Tue, 16 May 2017 19:30:09 GMT']
request-id: [ba6f75d0-ed7e-4dd5-8cfc-bdaa144ccec6]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:30:09 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clibatch000002.westeurope.batch.azure.com/pools/azure-cli-test-iaas?$select=enableAutoScale&api-version=2017-05-01.5.0&timeout=30
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.westeurope.batch.azure.com/$metadata#pools/@Element\"\
,\"enableAutoScale\":true\r\n}"}
headers:
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:10 GMT']
etag: ['0x8D49C91F6EF9D69']
last-modified: ['Tue, 16 May 2017 19:30:09 GMT']
request-id: [b829e77b-58fd-486b-bae8-3a4b8f2db3fb]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: '{"autoScaleFormula": "$TargetDedicatedNodes=3"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['47']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:30:10 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clibatch000002.westeurope.batch.azure.com/pools/azure-cli-test-iaas/evaluateautoscale?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.westeurope.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.AutoScaleRun\"\
,\"timestamp\":\"2017-05-16T19:30:10.442468Z\",\"results\":\"$TargetDedicatedNodes=3;$TargetLowPriorityNodes=0;$NodeDeallocationOption=requeue\"\
\r\n}"}
headers:
content-type: [application/json;odata=minimalmetadata]
dataserviceid: ['https://clibatchjy3pkxmfsvtaieuy.westeurope.batch.azure.com/pools/azure-cli-test-iaas/evaluateautoscale']
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:09 GMT']
request-id: [6d5bf265-a50d-43bc-92e7-b73cfb7d70f6]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:30:10 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clibatch000002.westeurope.batch.azure.com/pools/azure-cli-test-iaas/disableautoscale?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
dataserviceid: ['https://clibatchjy3pkxmfsvtaieuy.westeurope.batch.azure.com/pools/azure-cli-test-iaas/disableautoscale']
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:11 GMT']
etag: ['0x8D49C91F856DF51']
last-modified: ['Tue, 16 May 2017 19:30:11 GMT']
request-id: [b8a52ecd-8b74-4145-b6d2-eb774e8d5c8c]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:30:11 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clibatch000002.westeurope.batch.azure.com/pools/azure-cli-test-iaas?$select=enableAutoScale&api-version=2017-05-01.5.0&timeout=30
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.westeurope.batch.azure.com/$metadata#pools/@Element\"\
,\"enableAutoScale\":false\r\n}"}
headers:
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:11 GMT']
etag: ['0x8D49C91F856DF51']
last-modified: ['Tue, 16 May 2017 19:30:11 GMT']
request-id: [64861918-b30d-4fdc-a2b0-679b1ebdbd80]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:30:12 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clibatch000002.westeurope.batch.azure.com/poolusagemetrics?maxresults=1000&timeout=30&api-version=2017-05-01.5.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.westeurope.batch.azure.com/$metadata#poolusagemetrics\"\
,\"value\":[\r\n \r\n ]\r\n}"}
headers:
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:12 GMT']
request-id: [9916fd89-97b6-48b9-83ca-4e5245793c61]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:30:13 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clibatch000002.westeurope.batch.azure.com/pools/azure-cli-test-json?$select=startTask&api-version=2017-05-01.5.0&timeout=30
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.westeurope.batch.azure.com/$metadata#pools/@Element\"\
,\"startTask\":{\r\n \"commandLine\":\"cmd /c echo test\",\"userIdentity\"\
:{\r\n \"username\":\"cliTestUser\"\r\n },\"maxTaskRetryCount\":0,\"\
waitForSuccess\":true\r\n }\r\n}"}
headers:
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:13 GMT']
etag: ['0x8D49C91F3AE5893']
last-modified: ['Tue, 16 May 2017 19:30:03 GMT']
request-id: [bcf0c322-a592-4f0c-a3d6-0e854753269f]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: '{"startTask": {"commandLine": "new_value"}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['43']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:30:13 GMT']
return-client-request-id: ['false']
method: PATCH
uri: https://clibatch000002.westeurope.batch.azure.com/pools/azure-cli-test-json?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
dataserviceid: ['https://clibatchjy3pkxmfsvtaieuy.westeurope.batch.azure.com/pools/azure-cli-test-json']
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:12 GMT']
etag: ['0x8D49C91FA1ED7E7']
last-modified: ['Tue, 16 May 2017 19:30:14 GMT']
request-id: [22557582-1c2c-40d7-94c4-381c96762b51]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:30:14 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clibatch000002.westeurope.batch.azure.com/pools/azure-cli-test-json?$select=startTask&api-version=2017-05-01.5.0&timeout=30
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.westeurope.batch.azure.com/$metadata#pools/@Element\"\
,\"startTask\":{\r\n \"commandLine\":\"new_value\",\"maxTaskRetryCount\"\
:0,\"waitForSuccess\":false\r\n }\r\n}"}
headers:
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:15 GMT']
etag: ['0x8D49C91FA1ED7E7']
last-modified: ['Tue, 16 May 2017 19:30:14 GMT']
request-id: [bdb34d01-1676-4711-9e4d-fb523e1e2523]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:30:15 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clibatch000002.westeurope.batch.azure.com/nodeagentskus?maxresults=1000&timeout=30&api-version=2017-05-01.5.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.westeurope.batch.azure.com/$metadata#nodeagentskus\"\
,\"value\":[\r\n {\r\n \"id\":\"batch.node.centos 7\",\"verifiedImageReferences\"\
:[\r\n {\r\n \"publisher\":\"OpenLogic\",\"offer\":\"CentOS\"\
,\"sku\":\"7.3\",\"version\":\"latest\"\r\n },{\r\n \"publisher\"\
:\"OpenLogic\",\"offer\":\"CentOS\",\"sku\":\"7.2\",\"version\":\"latest\"\
\r\n },{\r\n \"publisher\":\"OpenLogic\",\"offer\":\"CentOS\"\
,\"sku\":\"7.1\",\"version\":\"latest\"\r\n },{\r\n \"publisher\"\
:\"OpenLogic\",\"offer\":\"CentOS\",\"sku\":\"7.0\",\"version\":\"latest\"\
\r\n },{\r\n \"publisher\":\"OpenLogic\",\"offer\":\"CentOS-HPC\"\
,\"sku\":\"7.1\",\"version\":\"latest\"\r\n },{\r\n \"publisher\"\
:\"Oracle\",\"offer\":\"Oracle-Linux\",\"sku\":\"7.2\",\"version\":\"latest\"\
\r\n },{\r\n \"publisher\":\"Oracle\",\"offer\":\"Oracle-Linux\"\
,\"sku\":\"7.0\",\"version\":\"latest\"\r\n },{\r\n \"publisher\"\
:\"microsoft-ads\",\"offer\":\"linux-data-science-vm\",\"sku\":\"linuxdsvm\"\
,\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n \
\ },{\r\n \"id\":\"batch.node.debian 8\",\"verifiedImageReferences\"\
:[\r\n {\r\n \"publisher\":\"Credativ\",\"offer\":\"Debian\"\
,\"sku\":\"8\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"\
linux\"\r\n },{\r\n \"id\":\"batch.node.opensuse 13.2\",\"verifiedImageReferences\"\
:[\r\n \r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\"\
:\"batch.node.opensuse 42.1\",\"verifiedImageReferences\":[\r\n {\r\
\n \"publisher\":\"SUSE\",\"offer\":\"openSUSE-Leap\",\"sku\":\"\
42.1\",\"version\":\"latest\"\r\n },{\r\n \"publisher\":\"\
SUSE\",\"offer\":\"SLES\",\"sku\":\"12-SP2\",\"version\":\"latest\"\r\n \
\ },{\r\n \"publisher\":\"SUSE\",\"offer\":\"SLES\",\"sku\"\
:\"12-SP1\",\"version\":\"latest\"\r\n },{\r\n \"publisher\"\
:\"SUSE\",\"offer\":\"SLES-HPC\",\"sku\":\"12-SP1\",\"version\":\"latest\"\
\r\n }\r\n ],\"osType\":\"linux\"\r\n },{\r\n \"id\":\"\
batch.node.ubuntu 14.04\",\"verifiedImageReferences\":[\r\n {\r\n \
\ \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"\
14.04.5-LTS\",\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"\
linux\"\r\n },{\r\n \"id\":\"batch.node.ubuntu 16.04\",\"verifiedImageReferences\"\
:[\r\n {\r\n \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\"\
,\"sku\":\"16.04-LTS\",\"version\":\"latest\"\r\n },{\r\n \
\ \"publisher\":\"Canonical\",\"offer\":\"UbuntuServer\",\"sku\":\"16.10\"\
,\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"linux\"\r\n \
\ },{\r\n \"id\":\"batch.node.windows amd64\",\"verifiedImageReferences\"\
:[\r\n {\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\"\
:\"WindowsServer\",\"sku\":\"2012-R2-Datacenter\",\"version\":\"latest\"\r\
\n },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\"\
:\"WindowsServer\",\"sku\":\"2012-Datacenter\",\"version\":\"latest\"\r\n\
\ },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\"\
:\"WindowsServer\",\"sku\":\"2008-R2-SP1\",\"version\":\"latest\"\r\n \
\ },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\":\"\
WindowsServer\",\"sku\":\"2016-Datacenter\",\"version\":\"latest\"\r\n \
\ },{\r\n \"publisher\":\"MicrosoftWindowsServer\",\"offer\"\
:\"WindowsServer\",\"sku\":\"2016-Datacenter-with-Containers\",\"version\"\
:\"latest\"\r\n },{\r\n \"publisher\":\"microsoft-ads\",\"\
offer\":\"standard-data-science-vm\",\"sku\":\"standard-data-science-vm\"\
,\"version\":\"latest\"\r\n }\r\n ],\"osType\":\"windows\"\r\n\
\ }\r\n ]\r\n}"}
headers:
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:15 GMT']
request-id: [fef9bd0b-259a-4aa8-8552-2befdea05b45]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:30:16 GMT']
return-client-request-id: ['false']
method: DELETE
uri: https://clibatch000002.westeurope.batch.azure.com/pools/azure-cli-test-iaas?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:17 GMT']
request-id: [b7538939-8f6c-45a1-be63-969bceb0766a]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 202, message: Accepted}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:30:16 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clibatch000002.westeurope.batch.azure.com/pools/azure-cli-test-iaas?$select=state&api-version=2017-05-01.5.0&timeout=30
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.westeurope.batch.azure.com/$metadata#pools/@Element\"\
,\"state\":\"deleting\"\r\n}"}
headers:
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:17 GMT']
etag: ['0x8D49C91FB6E2B15']
last-modified: ['Tue, 16 May 2017 19:30:16 GMT']
request-id: [dbe69ce1-d802-4444-9d01-fe6fbceb80b0]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: '{"id": "app_package_test", "cloudServiceConfiguration": {"osFamily": "4"},
"vmSize": "small", "applicationPackageReferences": [{"applicationId": "does-not-exist"}]}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['164']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:30:17 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clibatch000002.westeurope.batch.azure.com/pools?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.westeurope.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\"\
,\"code\":\"InvalidApplicationPackageReferences\",\"message\":{\r\n \"\
lang\":\"en-US\",\"value\":\"One or more of the specified application package\
\ references are invalid.\\nRequestId:441929a7-2e45-4d34-a4c8-e8fbc6615973\\\
nTime:2017-05-16T19:30:18.8712133Z\"\r\n },\"values\":[\r\n {\r\n \
\ \"key\":\"does-not-exist\",\"value\":\"The specified application package\
\ does not exist.\"\r\n }\r\n ]\r\n}"}
headers:
content-length: ['530']
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:18 GMT']
request-id: [441929a7-2e45-4d34-a4c8-e8fbc6615973]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-content-type-options: [nosniff]
status: {code: 409, message: One or more of the specified application package
references are invalid.}
- request:
body: '{"applicationPackageReferences": [{"applicationId": "does-not-exist"}]}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['71']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:30:18 GMT']
return-client-request-id: ['false']
method: PATCH
uri: https://clibatch000002.westeurope.batch.azure.com/pools/azure-cli-test-paas?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.westeurope.batch.azure.com/$metadata#Microsoft.Azure.Batch.Protocol.Entities.Container.errors/@Element\"\
,\"code\":\"InvalidApplicationPackageReferences\",\"message\":{\r\n \"\
lang\":\"en-US\",\"value\":\"One or more of the specified application package\
\ references are invalid.\\nRequestId:3203ce82-c2ed-4456-9f92-ac4d3ef0f2df\\\
nTime:2017-05-16T19:30:19.0467677Z\"\r\n },\"values\":[\r\n {\r\n \
\ \"key\":\"does-not-exist\",\"value\":\"The specified application package\
\ does not exist.\"\r\n }\r\n ]\r\n}"}
headers:
content-length: ['530']
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:18 GMT']
request-id: [3203ce82-c2ed-4456-9f92-ac4d3ef0f2df]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-content-type-options: [nosniff]
status: {code: 409, message: One or more of the specified application package
references are invalid.}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [group delete]
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 resourcemanagementclient/1.1.0rc1 Azure-SDK-For-Python
AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: DELETE
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10
response:
body: {string: ''}
headers:
cache-control: [no-cache]
content-length: ['0']
date: ['Tue, 16 May 2017 19:30:19 GMT']
expires: ['-1']
location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdSQ1c0VFo0TVNXM1hPQk9HU1VYVVNBSVNTV1lEVFBHWEVWU3w1MzY3QjM5QTZGQTRFNTNELVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10']
pragma: [no-cache]
retry-after: ['15']
strict-transport-security: [max-age=31536000; includeSubDomains]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 202, message: Accepted}
version: 1

Просмотреть файл

@ -1,38 +1,221 @@
interactions:
- request:
body: '{"constraints": {"maxWallClockTime": "P1D", "maxTaskRetryCount": 2}, "authenticationTokenSettings":
{"access": ["job"]}, "multiInstanceSettings": {"coordinationCommandLine": "cmd
/c echo hello", "numberOfInstances": 3}, "displayName": "displayName", "id":
"xplatTask", "commandLine": "cmd /c dir /s", "environmentSettings": [{"name":
"env1", "value": "value1"}, {"name": "env2", "value": "value2"}], "userIdentity":
{"autoUser": {"elevationLevel": "nonAdmin", "scope": "pool"}}}'
body: '{"location": "westus", "tags": {"use": "az-test"}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [group create]
Connection: [keep-alive]
Content-Length: ['50']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 resourcemanagementclient/1.1.0rc1 Azure-SDK-For-Python
AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10
response:
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
headers:
cache-control: [no-cache]
content-length: ['328']
content-type: [application/json; charset=utf-8]
date: ['Tue, 16 May 2017 19:30:19 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 201, message: Created}
- request:
body: '{"location": "canadacentral"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [batch account create]
Connection: [keep-alive]
Content-Length: ['29']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchmanagementclient/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002?api-version=2017-05-01
response:
body: {string: ''}
headers:
cache-control: [no-cache]
content-length: ['0']
date: ['Tue, 16 May 2017 19:30:21 GMT']
expires: ['-1']
location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002/operationResults/69777331-267e-403a-8d0d-124a025a352d?api-version=2017-05-01']
pragma: [no-cache]
request-id: [69777331-267e-403a-8d0d-124a025a352d]
retry-after: ['15']
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-content-type-options: [nosniff]
x-ms-ratelimit-remaining-subscription-writes: ['1198']
status: {code: 202, message: Accepted}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [batch account create]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchmanagementclient/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002/operationResults/69777331-267e-403a-8d0d-124a025a352d?api-version=2017-05-01
response:
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002","name":"clibatch000002","type":"Microsoft.Batch/batchAccounts","location":"canadacentral","properties":{"accountEndpoint":"clibatch000002.canadacentral.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"poolAllocationMode":"batchservice"}}'}
headers:
cache-control: [no-cache]
content-length: ['573']
content-type: [application/json; charset=utf-8]
date: ['Tue, 16 May 2017 19:30:36 GMT']
etag: ['"0x8D49C92072AC225"']
expires: ['-1']
last-modified: ['Tue, 16 May 2017 19:30:36 GMT']
pragma: [no-cache]
request-id: [df56ef12-5477-4802-8bca-dc61751bb17b]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [batch account keys list]
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchmanagementclient/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002/listKeys?api-version=2017-05-01
response:
body: {string: '{"accountName":"clibatch000002","primary":"Nz6V2jZdrO+mGv2SKb6EPbrqAe6sKCBIDY6KK+uNNV4+T2mCvzaTjSdgr7+dmTr59jXmuuw3DquAuUqKnK9Tjg==","secondary":"cgk/w+ns+MqEmTeS/yAQoxhh8ept/L+N/kUA1bhgylSPzpMmOvzXrR3gnpRxe76Ily/Fb6yktonvxVa+X3+tgg=="}'}
headers:
cache-control: [no-cache]
content-length: ['246']
content-type: [application/json; charset=utf-8]
date: ['Tue, 16 May 2017 19:30:37 GMT']
expires: ['-1']
pragma: [no-cache]
request-id: [2b590d87-2bb2-4e46-b2b9-199ecab4bf2e]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
x-content-type-options: [nosniff]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [batch account show]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchmanagementclient/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002?api-version=2017-05-01
response:
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatch000002","name":"clibatch000002","type":"Microsoft.Batch/batchAccounts","location":"canadacentral","properties":{"accountEndpoint":"clibatch000002.canadacentral.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"poolAllocationMode":"batchservice"}}'}
headers:
cache-control: [no-cache]
content-length: ['573']
content-type: [application/json; charset=utf-8]
date: ['Tue, 16 May 2017 19:30:38 GMT']
etag: ['"0x8D49C91FD25B9C8"']
expires: ['-1']
last-modified: ['Tue, 16 May 2017 19:30:19 GMT']
pragma: [no-cache]
request-id: [2a996a48-bea4-41f7-9e99-5815632cbbc2]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: '{"id": "xplatJobForTaskTests", "metadata": [{"name": "specMeta1", "value":
"specMetaValue1"}, {"name": "specMeta2", "value": "specMetaValue2"}], "displayName":
"displayName", "priority": 1, "constraints": {"maxWallClockTime": "P1D", "maxTaskRetryCount":
5}, "poolInfo": {"poolId": "xplatTestPool"}, "commonEnvironmentSettings": [{"name":
"commonName1", "value": "commonValue1"}, {"name": "commonName2", "value": "commonValue2"}]}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['429']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:30:39 GMT']
return-client-request-id: ['false']
method: POST
uri: https://clibatch000002.canadacentral.batch.azure.com/jobs?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
dataserviceid: ['https://clibatchqi3gdtxzhtkbbjs5.canadacentral.batch.azure.com/jobs/job-1']
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:39 GMT']
etag: ['0x8D49C920917CF86']
last-modified: ['Tue, 16 May 2017 19:30:39 GMT']
location: ['https://clibatch000002.canadacentral.batch.azure.com/jobs/job-1']
request-id: [126aefd0-48d9-480a-a412-f3c4e02155fd]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 201, message: Created}
- request:
body: '{"environmentSettings": [{"name": "env1", "value": "value1"}, {"name":
"env2", "value": "value2"}], "id": "xplatTask", "commandLine": "cmd /c dir /s",
"displayName": "displayName", "authenticationTokenSettings": {"access": ["job"]},
"userIdentity": {"autoUser": {"elevationLevel": "nonAdmin", "scope": "pool"}},
"constraints": {"maxWallClockTime": "P1D", "maxTaskRetryCount": 2}, "multiInstanceSettings":
{"coordinationCommandLine": "cmd /c echo hello", "numberOfInstances": 3}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['478']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [c4c0559c-fd48-11e6-b58e-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:59:26 GMT']
ocp-date: ['Tue, 16 May 2017 19:30:40 GMT']
method: POST
uri: https://clitest1.uksouth.batch.azure.com/jobs/xplatJobForTaskTests/tasks?api-version=2017-01-01.4.0
uri: https://clibatch000002.canadacentral.batch.azure.com/jobs/xplatJobForTaskTests/tasks?api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
DataServiceId: ['https://clitest1.uksouth.batch.azure.com/jobs/xplatJobForTaskTests/tasks/xplatTask']
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:59:25 GMT']
ETag: ['0x8D45F6CA8A89AF9']
Last-Modified: ['Mon, 27 Feb 2017 23:59:25 GMT']
Location: ['https://clitest1.uksouth.batch.azure.com/jobs/xplatJobForTaskTests/tasks/xplatTask']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [6ee16912-a7af-4c92-a87e-6cd37393bf22]
dataserviceid: ['https://clibatchqi3gdtxzhtkbbjs5.canadacentral.batch.azure.com/jobs/xplatJobForTaskTests/tasks/xplatTask']
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:39 GMT']
etag: ['0x8D49C92095C0AE5']
last-modified: ['Tue, 16 May 2017 19:30:40 GMT']
location: ['https://clibatch000002.canadacentral.batch.azure.com/jobs/xplatJobForTaskTests/tasks/xplatTask']
request-id: [e16f0e40-4e0d-4ddb-b8d5-38574237bfe7]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 201, message: Created}
- request:
body: null
@ -41,19 +224,18 @@ interactions:
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [c54f88b8-fd48-11e6-b670-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:59:27 GMT']
ocp-date: ['Tue, 16 May 2017 19:30:40 GMT']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/jobs/xplatJobForTaskTests/tasks/xplatTask?api-version=2017-01-01.4.0
uri: https://clibatch000002.canadacentral.batch.azure.com/jobs/xplatJobForTaskTests/tasks/xplatTask?api-version=2017-05-01.5.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#tasks/@Element\"\
,\"id\":\"xplatTask\",\"displayName\":\"displayName\",\"url\":\"https://clitest1.uksouth.batch.azure.com/jobs/xplatJobForTaskTests/tasks/xplatTask\"\
,\"eTag\":\"0x8D45F6CA8A89AF9\",\"creationTime\":\"2017-02-27T23:59:25.6811257Z\"\
,\"lastModified\":\"2017-02-27T23:59:25.6811257Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-02-27T23:59:25.6811257Z\",\"commandLine\":\"\
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.canadacentral.batch.azure.com/$metadata#tasks/@Element\"\
,\"id\":\"xplatTask\",\"displayName\":\"displayName\",\"url\":\"https://clibatch000002.canadacentral.batch.azure.com/jobs/xplatJobForTaskTests/tasks/xplatTask\"\
,\"eTag\":\"0x8D49C92095C0AE5\",\"creationTime\":\"2017-05-16T19:30:40.2267877Z\"\
,\"lastModified\":\"2017-05-16T19:30:40.2267877Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-05-16T19:30:40.2267877Z\",\"commandLine\":\"\
cmd /c dir /s\",\"environmentSettings\":[\r\n {\r\n \"name\":\"env1\"\
,\"value\":\"value1\"\r\n },{\r\n \"name\":\"env2\",\"value\":\"value2\"\
\r\n }\r\n ],\"userIdentity\":{\r\n \"autoUser\":{\r\n \"scope\"\
@ -65,16 +247,16 @@ interactions:
:2\r\n },\"executionInfo\":{\r\n \"retryCount\":0,\"requeueCount\":0\r\
\n }\r\n}"}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:59:25 GMT']
ETag: ['0x8D45F6CA8A89AF9']
Last-Modified: ['Mon, 27 Feb 2017 23:59:25 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [a4c3c382-b7ee-4b21-bd47-b37e56117b4a]
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:39 GMT']
etag: ['0x8D49C92095C0AE5']
last-modified: ['Tue, 16 May 2017 19:30:40 GMT']
request-id: [5a4f6263-c6a7-453b-ab35-1bb5c7b9b143]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
@ -83,20 +265,19 @@ interactions:
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [c5ebc034-fd48-11e6-b3ad-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:59:28 GMT']
ocp-date: ['Tue, 16 May 2017 19:30:40 GMT']
return-client-request-id: ['false']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/jobs/xplatJobForTaskTests/tasks/xplatTask?api-version=2017-01-01.4.0&timeout=30
uri: https://clibatch000002.canadacentral.batch.azure.com/jobs/xplatJobForTaskTests/tasks/xplatTask?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#tasks/@Element\"\
,\"id\":\"xplatTask\",\"displayName\":\"displayName\",\"url\":\"https://clitest1.uksouth.batch.azure.com/jobs/xplatJobForTaskTests/tasks/xplatTask\"\
,\"eTag\":\"0x8D45F6CA8A89AF9\",\"creationTime\":\"2017-02-27T23:59:25.6811257Z\"\
,\"lastModified\":\"2017-02-27T23:59:25.6811257Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-02-27T23:59:25.6811257Z\",\"commandLine\":\"\
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.canadacentral.batch.azure.com/$metadata#tasks/@Element\"\
,\"id\":\"xplatTask\",\"displayName\":\"displayName\",\"url\":\"https://clibatch000002.canadacentral.batch.azure.com/jobs/xplatJobForTaskTests/tasks/xplatTask\"\
,\"eTag\":\"0x8D49C92095C0AE5\",\"creationTime\":\"2017-05-16T19:30:40.2267877Z\"\
,\"lastModified\":\"2017-05-16T19:30:40.2267877Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-05-16T19:30:40.2267877Z\",\"commandLine\":\"\
cmd /c dir /s\",\"environmentSettings\":[\r\n {\r\n \"name\":\"env1\"\
,\"value\":\"value1\"\r\n },{\r\n \"name\":\"env2\",\"value\":\"value2\"\
\r\n }\r\n ],\"userIdentity\":{\r\n \"autoUser\":{\r\n \"scope\"\
@ -108,16 +289,16 @@ interactions:
:2\r\n },\"executionInfo\":{\r\n \"retryCount\":0,\"requeueCount\":0\r\
\n }\r\n}"}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:59:29 GMT']
ETag: ['0x8D45F6CA8A89AF9']
Last-Modified: ['Mon, 27 Feb 2017 23:59:25 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [e334e90b-5294-437a-bed3-3f380953ea07]
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:40 GMT']
etag: ['0x8D49C92095C0AE5']
last-modified: ['Tue, 16 May 2017 19:30:40 GMT']
request-id: [c0ba3677-b026-4936-b27f-7ff280d7aaea]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
@ -127,54 +308,52 @@ interactions:
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [c6aef800-fd48-11e6-bc9f-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:59:29 GMT']
ocp-date: ['Tue, 16 May 2017 19:30:41 GMT']
return-client-request-id: ['false']
method: DELETE
uri: https://clitest1.uksouth.batch.azure.com/jobs/xplatJobForTaskTests/tasks/xplatTask?api-version=2017-01-01.4.0&timeout=30
uri: https://clibatch000002.canadacentral.batch.azure.com/jobs/xplatJobForTaskTests/tasks/xplatTask?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:59:27 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [0b7d852c-6242-42c4-9374-d266feb7d740]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:42 GMT']
request-id: [6772cd5c-6a38-4a78-8513-f2c3fd43b216]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: '{"commandLine": "echo hello", "id": "aaa"}'
body: '{"id": "aaa", "commandLine": "echo hello"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['42']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [c7595b10-fd48-11e6-98e9-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:59:30 GMT']
ocp-date: ['Tue, 16 May 2017 19:30:41 GMT']
method: POST
uri: https://clitest1.uksouth.batch.azure.com/jobs/xplatJobForTaskTests/tasks?api-version=2017-01-01.4.0
uri: https://clibatch000002.canadacentral.batch.azure.com/jobs/xplatJobForTaskTests/tasks?api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
DataServiceId: ['https://clitest1.uksouth.batch.azure.com/jobs/xplatJobForTaskTests/tasks/aaa']
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:59:31 GMT']
ETag: ['0x8D45F6CABF2EAA1']
Last-Modified: ['Mon, 27 Feb 2017 23:59:31 GMT']
Location: ['https://clitest1.uksouth.batch.azure.com/jobs/xplatJobForTaskTests/tasks/aaa']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [27a6b50c-dbb2-4a99-ae6a-5a0c52e8d29b]
dataserviceid: ['https://clibatchqi3gdtxzhtkbbjs5.canadacentral.batch.azure.com/jobs/xplatJobForTaskTests/tasks/aaa']
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:41 GMT']
etag: ['0x8D49C920A621E8E']
last-modified: ['Tue, 16 May 2017 19:30:41 GMT']
location: ['https://clibatch000002.canadacentral.batch.azure.com/jobs/xplatJobForTaskTests/tasks/aaa']
request-id: [7c26b323-44ee-4709-ad5b-5428b41a9410]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 201, message: Created}
- request:
body: null
@ -183,35 +362,34 @@ interactions:
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [c7d5c87e-fd48-11e6-8341-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:59:31 GMT']
ocp-date: ['Tue, 16 May 2017 19:30:42 GMT']
method: GET
uri: https://clitest1.uksouth.batch.azure.com/jobs/xplatJobForTaskTests/tasks/aaa?api-version=2017-01-01.4.0
uri: https://clibatch000002.canadacentral.batch.azure.com/jobs/xplatJobForTaskTests/tasks/aaa?api-version=2017-05-01.5.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#tasks/@Element\"\
,\"id\":\"aaa\",\"url\":\"https://clitest1.uksouth.batch.azure.com/jobs/xplatJobForTaskTests/tasks/aaa\"\
,\"eTag\":\"0x8D45F6CABF2EAA1\",\"creationTime\":\"2017-02-27T23:59:31.2012961Z\"\
,\"lastModified\":\"2017-02-27T23:59:31.2012961Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-02-27T23:59:31.2012961Z\",\"commandLine\":\"\
echo hello\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"scope\":\"\
task\",\"elevationLevel\":\"nonadmin\"\r\n }\r\n },\"constraints\":{\r\
\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"retentionTime\"\
:\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":5\r\n },\"executionInfo\"\
:{\r\n \"retryCount\":0,\"requeueCount\":0\r\n }\r\n}"}
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.canadacentral.batch.azure.com/$metadata#tasks/@Element\"\
,\"id\":\"aaa\",\"url\":\"https://clibatch000002.canadacentral.batch.azure.com/jobs/xplatJobForTaskTests/tasks/aaa\"\
,\"eTag\":\"0x8D49C920A621E8E\",\"creationTime\":\"2017-05-16T19:30:41.9443342Z\"\
,\"lastModified\":\"2017-05-16T19:30:41.9443342Z\",\"state\":\"active\",\"\
stateTransitionTime\":\"2017-05-16T19:30:41.9443342Z\",\"commandLine\":\"\
echo hello\",\"userIdentity\":{\r\n \"autoUser\":{\r\n \"elevationLevel\"\
:\"nonadmin\"\r\n }\r\n },\"constraints\":{\r\n \"maxWallClockTime\"\
:\"P10675199DT2H48M5.4775807S\",\"retentionTime\":\"P10675199DT2H48M5.4775807S\"\
,\"maxTaskRetryCount\":5\r\n },\"executionInfo\":{\r\n \"retryCount\"\
:0,\"requeueCount\":0\r\n }\r\n}"}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:59:32 GMT']
ETag: ['0x8D45F6CABF2EAA1']
Last-Modified: ['Mon, 27 Feb 2017 23:59:31 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [ff845d08-3bc0-4049-abb6-7ab9cdf2c93b]
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:41 GMT']
etag: ['0x8D49C920A621E8E']
last-modified: ['Tue, 16 May 2017 19:30:41 GMT']
request-id: [1550ee9d-1ff4-411f-8c0a-02e2649a0b8e]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
@ -221,67 +399,119 @@ interactions:
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [c88a5a88-fd48-11e6-a2f9-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:59:32 GMT']
ocp-date: ['Tue, 16 May 2017 19:30:42 GMT']
return-client-request-id: ['false']
method: DELETE
uri: https://clitest1.uksouth.batch.azure.com/jobs/xplatJobForTaskTests/tasks/aaa?api-version=2017-01-01.4.0&timeout=30
uri: https://clibatch000002.canadacentral.batch.azure.com/jobs/xplatJobForTaskTests/tasks/aaa?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:59:31 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [409b8694-6bd5-4991-b761-c4c1e412bef8]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:42 GMT']
request-id: [e9901650-4791-4de1-9890-191bcebe984d]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: '{"value": [{"commandLine": "cmd /c dir /s", "constraints": {"maxWallClockTime":
"P1D", "maxTaskRetryCount": 2}, "environmentSettings": [{"name": "env1", "value":
"value1"}, {"name": "env2", "value": "value2"}], "displayName": "displayName",
"id": "xplatTask1"}, {"commandLine": "cmd /c dir /s", "constraints": {"maxWallClockTime":
"P1D", "maxTaskRetryCount": 2}, "displayName": "displayName1", "id": "xplatTask2"},
{"commandLine": "cmd /c dir /s", "environmentSettings": [{"name": "env1", "value":
"value1"}, {"name": "env2", "value": "value2"}], "displayName": "displayName2",
"id": "xplatTask3"}]}'
body: '{"value": [{"environmentSettings": [{"name": "env1", "value": "value1"},
{"name": "env2", "value": "value2"}], "id": "xplatTask1", "commandLine": "cmd
/c dir /s", "displayName": "displayName", "constraints": {"maxWallClockTime":
"P1D", "maxTaskRetryCount": 2}}, {"id": "xplatTask2", "commandLine": "cmd /c
dir /s", "displayName": "displayName1", "constraints": {"maxWallClockTime":
"P1D", "maxTaskRetryCount": 2}}, {"environmentSettings": [{"name": "env1", "value":
"value1"}, {"name": "env2", "value": "value2"}], "id": "xplatTask3", "commandLine":
"cmd /c dir /s", "displayName": "displayName2"}]}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['599']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-8.1-6.3.9600-SP0) requests/2.9.1 msrest/0.4.5
msrest_azure/0.4.7 batchserviceclient/2.0.0 Azure-SDK-For-Python]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
client-request-id: [c91a07fa-fd48-11e6-b645-54ee750f2fc7]
ocp-date: ['Mon, 27 Feb 2017 23:59:33 GMT']
ocp-date: ['Tue, 16 May 2017 19:30:43 GMT']
method: POST
uri: https://clitest1.uksouth.batch.azure.com/jobs/xplatJobForTaskTests/addtaskcollection?api-version=2017-01-01.4.0
uri: https://clibatch000002.canadacentral.batch.azure.com/jobs/xplatJobForTaskTests/addtaskcollection?api-version=2017-05-01.5.0
response:
body: {string: "{\r\n \"odata.metadata\":\"https://clitest1.uksouth.batch.azure.com/$metadata#taskaddresult\"\
body: {string: "{\r\n \"odata.metadata\":\"https://clibatch000002.canadacentral.batch.azure.com/$metadata#taskaddresult\"\
,\"value\":[\r\n {\r\n \"status\":\"Success\",\"taskId\":\"xplatTask1\"\
,\"eTag\":\"0x8D45F6CAD10F914\",\"lastModified\":\"2017-02-27T23:59:33.0759956Z\"\
,\"location\":\"https://clitest1.uksouth.batch.azure.com/jobs/xplatJobForTaskTests/tasks/xplatTask1\"\
,\"eTag\":\"0x8D49C920ADAF21B\",\"lastModified\":\"2017-05-16T19:30:42.7361819Z\"\
,\"location\":\"https://clibatch000002.canadacentral.batch.azure.com/jobs/xplatJobForTaskTests/tasks/xplatTask1\"\
\r\n },{\r\n \"status\":\"Success\",\"taskId\":\"xplatTask3\",\"eTag\"\
:\"0x8D45F6CAD12D540\",\"lastModified\":\"2017-02-27T23:59:33.0881856Z\",\"\
location\":\"https://clitest1.uksouth.batch.azure.com/jobs/xplatJobForTaskTests/tasks/xplatTask3\"\
:\"0x8D49C920AE5054D\",\"lastModified\":\"2017-05-16T19:30:42.8022093Z\",\"\
location\":\"https://clibatch000002.canadacentral.batch.azure.com/jobs/xplatJobForTaskTests/tasks/xplatTask3\"\
\r\n },{\r\n \"status\":\"Success\",\"taskId\":\"xplatTask2\",\"eTag\"\
:\"0x8D45F6CAD17B76B\",\"lastModified\":\"2017-02-27T23:59:33.1201899Z\",\"\
location\":\"https://clitest1.uksouth.batch.azure.com/jobs/xplatJobForTaskTests/tasks/xplatTask2\"\
:\"0x8D49C920AE728A4\",\"lastModified\":\"2017-05-16T19:30:42.8162212Z\",\"\
location\":\"https://clibatch000002.canadacentral.batch.azure.com/jobs/xplatJobForTaskTests/tasks/xplatTask2\"\
\r\n }\r\n ]\r\n}"}
headers:
Content-Type: [application/json;odata=minimalmetadata]
DataServiceVersion: ['3.0']
Date: ['Mon, 27 Feb 2017 23:59:33 GMT']
Server: [Microsoft-HTTPAPI/2.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
X-Content-Type-Options: [nosniff]
request-id: [24da8c14-2057-4380-a622-71c2a847bb5b]
content-type: [application/json;odata=minimalmetadata]
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:42 GMT']
request-id: [333b5af4-8288-4d60-86b3-c454c70fde13]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 batchserviceclient/3.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
ocp-date: ['Tue, 16 May 2017 19:30:43 GMT']
return-client-request-id: ['false']
method: DELETE
uri: https://clibatch000002.canadacentral.batch.azure.com/jobs/xplatJobForTaskTests?timeout=30&api-version=2017-05-01.5.0
response:
body: {string: ''}
headers:
dataserviceversion: ['3.0']
date: ['Tue, 16 May 2017 19:30:44 GMT']
request-id: [2c0007d0-f023-4d0b-b9e5-6abb91df3e92]
server: [Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
status: {code: 202, message: Accepted}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
CommandName: [group delete]
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
msrest_azure/0.4.7 resourcemanagementclient/1.1.0rc1 Azure-SDK-For-Python
AZURECLI/2.0.6+dev]
accept-language: [en-US]
method: DELETE
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10
response:
body: {string: ''}
headers:
cache-control: [no-cache]
content-length: ['0']
date: ['Tue, 16 May 2017 19:30:44 GMT']
expires: ['-1']
location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdGMkNaRUxHSkdOVVpOVUhEVU9NRkxUUTI3SzdSWjc2R05ZUHwyMUY1ODE0OEE1RTg0RTRDLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10']
pragma: [no-cache]
retry-after: ['15']
strict-transport-security: [max-age=31536000; includeSubDomains]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 202, message: Accepted}
version: 1

Просмотреть файл

@ -330,7 +330,7 @@ class TestBatchParser(unittest.TestCase):
tree.queue_argument('id', 'pool', 'id', {}, 'str', ['vm_size', 'id'])
tree.queue_argument('vm_size', 'pool', 'vm_size', {}, 'str', ['vm_size', 'id'])
tree.queue_argument('target_dedicated', 'pool', 'target_dedicated', {}, 'int',
tree.queue_argument('target_dedicated_nodes', 'pool', 'target_dedicated_nodes', {}, 'int',
['vm_size', 'id'])
tree.queue_argument('command_line', 'pool.start_task', 'command_line', {}, 'str',
['command_line'])
@ -358,7 +358,7 @@ class TestBatchParser(unittest.TestCase):
ns = TestObj()
ns.id = None
ns.vm_size = None
ns.target_dedicated = 3
ns.target_dedicated_nodes = 3
ns.command_line = None
ns.run_elevated = None
ns.node_agent_sku_id = None
@ -432,7 +432,7 @@ class TestBatchParser(unittest.TestCase):
'pool.cloud_service_configuration'])
siblings = tree._get_siblings("pool")
self.assertEqual(sorted(siblings), ["id", "target_dedicated", "vm_size"])
self.assertEqual(sorted(siblings), ["id", "target_dedicated_nodes", "vm_size"])
siblings = tree._get_siblings("pool.virtual_machine_configuration")
self.assertEqual(sorted(siblings), ["node_agent_sku_id"])
children = tree._get_children("pool.virtual_machine_configuration")
@ -558,7 +558,6 @@ class TestBatchLoader(unittest.TestCase):
self.assertFalse(self.command_job._cancel_operation({}, config, user))
self.assertFalse(self.command_job._cancel_operation({'yes': True}, config, user))
self.assertFalse(self.command_delete._cancel_operation({'yes': True}, config, user))
self.assertTrue(self.command_delete._cancel_operation({'yes': None}, config, user))
def test_batch_should_flatten(self):
self.assertFalse(self.command_task._should_flatten('task.depends_on'))
@ -571,7 +570,7 @@ class TestBatchLoader(unittest.TestCase):
attrs = list(self.command_job._get_attrs(models.ResourceFile, 'task.resource_files'))
self.assertEqual(len(attrs), 3)
attrs = list(self.command_job._get_attrs(models.JobManagerTask, 'job.job_manager_task'))
self.assertEqual(len(attrs), 11)
self.assertEqual(len(attrs), 13)
attrs = list(self.command_job._get_attrs(models.JobAddParameter, 'job'))
self.assertEqual(len(attrs), 10)
@ -579,7 +578,7 @@ class TestBatchLoader(unittest.TestCase):
# pylint: disable=too-many-statements
handler = operations.pool_operations.PoolOperations.add
args = list(self.command_pool._load_transformed_arguments(handler))
self.assertEqual(len(args), 32)
self.assertEqual(len(args), 34)
self.assertFalse('yes' in [a for a, _ in args])
self.assertTrue('json_file' in [a for a, _ in args])
self.assertFalse('destination' in [a for a, _ in args])
@ -618,15 +617,16 @@ class TestBatchLoader(unittest.TestCase):
self.assertFalse('json_file' in [a for a, _ in args])
self.assertFalse('destination' in [a for a, _ in args])
handler = operations.job_schedule_operations.JobScheduleOperations.add
args = list(self.command_conflicts._load_transformed_arguments(handler))
self.assertEqual(len(args), 46)
self.assertTrue('id' in [a for a, _ in args])
self.assertTrue('job_manager_task_id' in [a for a, _ in args])
self.assertTrue('job_manager_task_max_wall_clock_time' in [a for a, _ in args])
self.assertTrue('job_max_wall_clock_time' in [a for a, _ in args])
self.assertFalse('yes' in [a for a, _ in args])
self.assertTrue('json_file' in [a for a, _ in args])
self.assertFalse('destination' in [a for a, _ in args])
args = [a for a, _ in self.command_conflicts._load_transformed_arguments(handler)]
self.assertEqual(len(args), 47)
self.assertTrue('id' in args)
self.assertTrue('job_manager_task_id' in args)
self.assertTrue('job_manager_task_max_wall_clock_time' in args)
self.assertTrue('job_max_wall_clock_time' in args)
self.assertTrue('allow_low_priority_node' in args)
self.assertFalse('yes' in args)
self.assertTrue('json_file' in args)
self.assertFalse('destination' in args)
def test_batch_execute_command(self):
def function_result(client, **kwargs):
@ -641,7 +641,7 @@ class TestBatchLoader(unittest.TestCase):
args = list(self.command_pool._load_transformed_arguments(handler))
with mock.patch.object(_command_type, 'get_op_handler', get_op_handler):
with self.assertRaises(CLIError):
self.command_pool.cmd(kwargs={'id': 'pool_test', 'vm_size': 'small'})
self.command_pool.cmd.execute(kwargs={'id': 'pool_test', 'vm_size': 'small'})
def function_result(client, **kwargs):
# pylint: disable=function-redefined,unused-argument
@ -649,7 +649,7 @@ class TestBatchLoader(unittest.TestCase):
with mock.patch.object(_command_type, 'get_op_handler', get_op_handler):
with self.assertRaises(CLIError):
self.command_pool.cmd(kwargs={'id': 'pool_test', 'vm_size': 'small'})
self.command_pool.cmd.execute(kwargs={'id': 'pool_test', 'vm_size': 'small'})
def function_result(client, **kwargs):
# pylint: disable=function-redefined,unused-argument
@ -666,7 +666,7 @@ class TestBatchLoader(unittest.TestCase):
with mock.patch.object(_command_type, 'get_op_handler', get_op_handler):
with self.assertRaises(CLIError):
self.command_pool.cmd(kwargs={'id': 'pool_test', 'vm_size': 'small'})
self.command_pool.cmd.execute(kwargs={'id': 'pool_test', 'vm_size': 'small'})
def function_result(client, **kwargs):
# pylint: disable=function-redefined,unused-argument
@ -681,5 +681,5 @@ class TestBatchLoader(unittest.TestCase):
kwargs = {a: None for a, _ in args}
kwargs['json_file'] = json_file
with mock.patch.object(_command_type, 'get_op_handler', get_op_handler):
result = self.command_pool.cmd(kwargs=kwargs)
result = self.command_pool.cmd.execute(kwargs=kwargs)
self.assertEqual(result, "Pool Created")

Просмотреть файл

@ -1,27 +0,0 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
import os
from azure.cli.testsdk.vcr_test_base import VCRTestBase
class BatchDataPlaneTestBase(VCRTestBase):
# pylint:disable=too-few-public-methods
def __init__(self, test_file, test_method):
super(BatchDataPlaneTestBase, self).__init__(test_file, test_method)
self.account_name = 'clitest1'
if not self.playback:
self.account_key = os.environ['AZURE_BATCH_ACCESS_KEY']
else:
self.account_key = 'ZmFrZV9hY29jdW50X2tleQ=='
self.account_endpoint = 'https://clitest1.uksouth.batch.azure.com/'
def cmd(self, command, checks=None, allowed_exceptions=None,
debug=False):
command = '{} --account-name {} --account-key "{}" --account-endpoint {}'.\
format(command, self.account_name, self.account_key, self.account_endpoint)
return super(BatchDataPlaneTestBase, self).cmd(command, checks, allowed_exceptions, debug)

Просмотреть файл

@ -4,206 +4,379 @@
# --------------------------------------------------------------------------------------------
import os
import datetime
from azure.cli.testsdk.vcr_test_base import (JMESPathCheck)
from .test_batch_data_plane_command_base import (BatchDataPlaneTestBase)
from azure.cli.core.util import CLIError
from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer, JMESPathCheck
from .batch_preparers import BatchAccountPreparer, BatchScenarioMixin
class BatchCertificateScenarioTest(BatchDataPlaneTestBase):
class BatchDataPlaneScenarioTests(BatchScenarioMixin, ScenarioTest):
def __init__(self, test_method):
super(BatchCertificateScenarioTest, self).__init__(__file__, test_method)
self.create_cert_file_path = os.path.join(os.path.dirname(os.path.realpath(__file__)),
'data',
'batchtest.cer')
self.cert_thumbprint = '59833fd835f827e9ec693a4c82435a6360cc6271'
def _get_test_data_file(self, filename):
filepath = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'data', filename)
self.assertTrue(os.path.isfile(filepath), 'File {} does not exist.'.format(filepath))
return filepath
def test_batch_certificate_cmd(self):
self.execute()
@ResourceGroupPreparer()
@BatchAccountPreparer(location='northcentralus')
def test_batch_certificate_cmd(self, resource_group, batch_account_name):
create_cert_file_path = self._get_test_data_file('batchtest.cer')
cert_thumbprint = '59833fd835f827e9ec693a4c82435a6360cc6271'
def body(self):
# test create certificate with default set
self.cmd('batch certificate create --thumbprint {} --certificate-file "{}"'.
format(self.cert_thumbprint, self.create_cert_file_path),
checks=[
JMESPathCheck('thumbprint', self.cert_thumbprint),
account_info = self.get_account_info(batch_account_name, resource_group)
self.batch_cmd('batch certificate create --thumbprint {} --certificate-file "{}"',
account_info, cert_thumbprint, create_cert_file_path) \
.assert_with_checks([JMESPathCheck('thumbprint', cert_thumbprint),
JMESPathCheck('thumbprintAlgorithm', 'sha1'),
JMESPathCheck('state', 'active')
])
JMESPathCheck('state', 'active')])
# test create account with default set
self.cmd('batch certificate list', checks=[
JMESPathCheck('length(@)', 1),
JMESPathCheck('[0].thumbprint', self.cert_thumbprint),
])
self.batch_cmd('batch certificate list', account_info).assert_with_checks(
[JMESPathCheck('length(@)', 1), JMESPathCheck('[0].thumbprint', cert_thumbprint)])
self.cmd("batch certificate delete --thumbprint {} --yes".
format(self.cert_thumbprint))
self.batch_cmd("batch certificate delete --thumbprint {} --yes", account_info,
cert_thumbprint)
self.cmd('batch certificate show --thumbprint {}'.
format(self.cert_thumbprint),
checks=[
JMESPathCheck('thumbprint', self.cert_thumbprint),
self.batch_cmd('batch certificate show --thumbprint {}', account_info, cert_thumbprint) \
.assert_with_checks([JMESPathCheck('thumbprint', cert_thumbprint),
JMESPathCheck('thumbprintAlgorithm', 'sha1'),
JMESPathCheck('state', 'deleting')
])
JMESPathCheck('state', 'deleting')])
@ResourceGroupPreparer()
@BatchAccountPreparer(location='japanwest')
def test_batch_pool_cmd(self, resource_group, batch_account_name):
account_info = self.get_account_info(batch_account_name, resource_group)
create_pool_file_path = self._get_test_data_file('batchCreatePool.json')
update_pool_file_path = self._get_test_data_file('batchUpdatePool.json')
create_pool_id = 'xplatCreatedPool'
is_playback = os.path.exists(self.recording_file)
class BatchPoolScenarioTest(BatchDataPlaneTestBase):
self.batch_cmd('batch pool create --json-file "{}"', account_info, create_pool_file_path)
def __init__(self, test_method):
super(BatchPoolScenarioTest, self).__init__(__file__, test_method)
self.create_pool_file_path = os.path.join(os.path.dirname(os.path.realpath(__file__)),
'data',
'batchCreatePool.json')
self.update_pool_file_path = os.path.join(os.path.dirname(os.path.realpath(__file__)),
'data',
'batchUpdatePool.json')
self.share_pool_id = 'xplatTestPool'
self.create_pool_id = 'xplatCreatedPool'
def test_batch_pool_cmd(self):
self.execute()
def body(self):
result = self.cmd('batch pool show --pool-id {}'.format(self.share_pool_id),
checks=[JMESPathCheck('allocationState', 'steady'),
JMESPathCheck('id', self.share_pool_id)])
target = result['currentDedicated']
self.cmd('batch pool resize --pool-id {} --target-dedicated 5'.format(self.share_pool_id))
self.cmd('batch pool show --pool-id {}'.format(self.share_pool_id),
checks=[JMESPathCheck('allocationState', 'resizing'),
JMESPathCheck('targetDedicated', 5),
JMESPathCheck('id', self.share_pool_id)])
self.cmd('batch pool resize --pool-id {} --abort'.format(self.share_pool_id))
if not self.playback:
import time
time.sleep(60)
self.cmd('batch pool show --pool-id {}'.format(self.share_pool_id),
checks=[JMESPathCheck('allocationState', 'steady'),
JMESPathCheck('id', self.share_pool_id),
JMESPathCheck('currentDedicated', target),
JMESPathCheck('targetDedicated', 5)])
self.cmd('batch pool create --json-file "{}"'.format(self.create_pool_file_path))
self.cmd('batch pool show --pool-id {}'.format(self.create_pool_id),
checks=[JMESPathCheck('allocationState', 'steady'),
JMESPathCheck('id', self.create_pool_id),
result = self.batch_cmd('batch pool show --pool-id {}', account_info, create_pool_id) \
.assert_with_checks([JMESPathCheck('allocationState', 'steady'),
JMESPathCheck('id', create_pool_id),
JMESPathCheck('startTask.commandLine', "cmd /c echo test"),
JMESPathCheck('startTask.userIdentity.autoUser.elevationLevel', "admin")])
JMESPathCheck('startTask.userIdentity.autoUser.elevationLevel',
"admin")])
target = result.get_output_in_json()['currentDedicatedNodes']
self.batch_cmd('batch pool resize --pool-id {} --target-dedicated-nodes 5 '
'--target-low-priority-nodes 3', account_info, create_pool_id)
self.batch_cmd('batch pool show --pool-id {}', account_info, create_pool_id) \
.assert_with_checks([JMESPathCheck('allocationState', 'resizing'),
JMESPathCheck('targetDedicatedNodes', 5),
JMESPathCheck('targetLowPriorityNodes', 3),
JMESPathCheck('id', create_pool_id)])
self.cmd('batch pool reset --pool-id {} --json-file "{}"'.
format(self.create_pool_id, self.update_pool_file_path),
checks=[JMESPathCheck('allocationState', 'steady'),
JMESPathCheck('id', self.create_pool_id),
self.batch_cmd('batch pool resize --pool-id {} --abort', account_info, create_pool_id)
if not is_playback:
import time
time.sleep(120)
self.batch_cmd('batch pool show --pool-id {}', account_info, create_pool_id) \
.assert_with_checks([JMESPathCheck('allocationState', 'steady'),
JMESPathCheck('id', create_pool_id),
JMESPathCheck('currentDedicatedNodes', target),
JMESPathCheck('targetDedicatedNodes', 5),
JMESPathCheck('targetLowPriorityNodes', 3)])
self.batch_cmd('batch pool reset --pool-id {} --json-file "{}"', account_info,
create_pool_id, update_pool_file_path) \
.assert_with_checks([JMESPathCheck('allocationState', 'steady'),
JMESPathCheck('id', create_pool_id),
JMESPathCheck('startTask.commandLine', "cmd /c echo updated")])
self.cmd('batch pool reset --pool-id {} --start-task-command-line '
'hostname --metadata a=b c=d'.format(self.create_pool_id),
checks=[JMESPathCheck('allocationState', 'steady'),
JMESPathCheck('id', self.create_pool_id),
self.batch_cmd('batch pool reset --pool-id {} --start-task-command-line hostname '
'--metadata a=b c=d', account_info, create_pool_id) \
.assert_with_checks([JMESPathCheck('allocationState', 'steady'),
JMESPathCheck('id', create_pool_id),
JMESPathCheck('startTask.commandLine', "hostname"),
JMESPathCheck('length(metadata)', 2),
JMESPathCheck('metadata[0].name', 'a'),
JMESPathCheck('metadata[1].value', 'd')])
self.cmd('batch pool delete --pool-id {} --yes'.format(self.create_pool_id))
self.batch_cmd('batch pool delete --pool-id {} --yes', account_info, create_pool_id)
@ResourceGroupPreparer()
@BatchAccountPreparer(location='eastus2')
def test_batch_job_list_cmd(self, resource_group, batch_account_name):
account_info = self.get_account_info(batch_account_name, resource_group)
class BatchJobListScenarioTest(BatchDataPlaneTestBase):
def set_up(self):
self.cmd('batch job-schedule create --json-file "{}"'.
format(self.create_jobschedule_file_path))
def tear_down(self):
self.cmd('batch job-schedule delete --job-schedule-id {} --yes'.
format(self.job_schedule_id))
def __init__(self, test_method):
super(BatchJobListScenarioTest, self).__init__(__file__, test_method)
self.create_jobschedule_file_path = os.path.join(os.path.
dirname(os.path.realpath(__file__)),
'data',
create_job_id = 'xplatJob'
job_schedule_id = 'xplatJobScheduleJobTests'
create_job_file_path = self._get_test_data_file('batchCreateJob.json')
create_jobschedule_file_path = self._get_test_data_file(
'batchCreateJobScheduleForJobTests.json')
self.create_job_file_path = os.path.join(os.path.dirname(os.path.realpath(__file__)),
'data',
'batchCreateJob.json')
self.job_schedule_id = 'xplatJobScheduleJobTests'
self.create_job_id = 'xplatJob'
def test_batch_job_list_cmd(self):
self.execute()
self.batch_cmd('batch job-schedule create --json-file "{}"', account_info,
create_jobschedule_file_path)
def body(self):
self.cmd('batch job create --json-file "{}"'.format(self.create_job_file_path))
self.addCleanup(
lambda: self.batch_cmd('batch job-schedule delete --job-schedule-id {} --yes',
account_info, job_schedule_id))
self.cmd('batch job list --job-schedule-id {}'.format(self.job_schedule_id),
checks=[JMESPathCheck('length(@)', 1),
JMESPathCheck('[0].id', '{}:job-1'.format(self.job_schedule_id))])
self.batch_cmd('batch job create --json-file "{}"', account_info, create_job_file_path)
self.batch_cmd('batch job list --job-schedule-id {}', account_info, job_schedule_id) \
.assert_with_checks([JMESPathCheck('length(@)', 1),
JMESPathCheck('[0].id', '{}:job-1'.format(job_schedule_id))])
result = self.cmd('batch job list',
checks=[JMESPathCheck('length(@)', 2)])
self.assertIsNotNone(
[i for i in result if i['id'] == '{}:job-1'.format(self.job_schedule_id)])
self.assertIsNotNone([i for i in result if i['id'] == self.create_job_id])
result = self.batch_cmd('batch job list', account_info) \
.assert_with_checks([JMESPathCheck('length(@)', 2)]) \
.get_output_in_json()
self.cmd('batch job delete --job-id {} --yes'.format(self.create_job_id))
self.assertTrue(any([i for i in result if i['id'] == '{}:job-1'.format(job_schedule_id)]))
self.assertTrue(any([i for i in result if i['id'] == create_job_id]))
self.batch_cmd('batch job delete --job-id {} --yes', account_info, create_job_id)
class BatchTaskAddScenarioTest(BatchDataPlaneTestBase):
# pylint: disable=too-many-instance-attributes
def set_up(self):
self.cmd('batch job create --json-file "{}"'.format(self.create_job_file_path))
@ResourceGroupPreparer()
@BatchAccountPreparer(location='canadacentral')
def test_batch_task_create_cmd(self, resource_group, batch_account_name):
job_id = 'xplatJobForTaskTests'
task_id = 'xplatTask'
create_job_file_path = self._get_test_data_file('batchCreateJobForTaskTests.json')
create_task_file_path = self._get_test_data_file('batchCreateTask.json')
create_tasks_file_path = self._get_test_data_file('batchCreateMultiTasks.json')
account_info = self.get_account_info(batch_account_name, resource_group)
def tear_down(self):
self.cmd('batch job delete --job-id {} --yes'.format(self.job_id))
self.batch_cmd('batch job create --json-file "{}"', account_info, create_job_file_path)
self.addCleanup(lambda:
self.batch_cmd('batch job delete --job-id {} --yes', account_info, job_id))
def __init__(self, test_method):
super(BatchTaskAddScenarioTest, self).__init__(__file__, test_method)
self.create_task_file_path = os.path.join(os.path.dirname(os.path.realpath(__file__)),
'data',
'batchCreateTask.json')
self.create_tasks_file_path = os.path.join(os.path.dirname(os.path.realpath(__file__)),
'data',
'batchCreateMultiTasks.json')
self.create_job_file_path = os.path.join(os.path.dirname(os.path.realpath(__file__)),
'data',
'batchCreateJobForTaskTests.json')
self.job_id = 'xplatJobForTaskTests'
self.task_id = 'xplatTask'
def test_batch_task_create_cmd(self):
self.execute()
def body(self):
self.cmd('batch task create --job-id {} --json-file "{}"'.
format(self.job_id, self.create_task_file_path),
checks=[JMESPathCheck('id', self.task_id),
self.batch_cmd('batch task create --job-id {} --json-file "{}"', account_info, job_id,
create_task_file_path) \
.assert_with_checks([JMESPathCheck('id', task_id),
JMESPathCheck('commandLine', 'cmd /c dir /s')])
task = self.cmd('batch task show --job-id {} --task-id {}'.format(
self.job_id, self.task_id))
self.assertEqual(task['userIdentity']['autoUser']['scope'], 'pool')
self.assertEqual(task['authenticationTokenSettings']['access'][0], 'job')
self.batch_cmd('batch task show --job-id {} --task-id {}', account_info, job_id, task_id) \
.assert_with_checks([JMESPathCheck('userIdentity.autoUser.scope', 'pool'),
JMESPathCheck('authenticationTokenSettings.access[0]', 'job')])
self.cmd('batch task delete --job-id {} --task-id {} --yes'.
format(self.job_id, self.task_id))
self.batch_cmd('batch task delete --job-id {} --task-id {} --yes', account_info, job_id,
task_id)
self.cmd('batch task create --job-id {} --task-id aaa --command-line "echo hello"'.
format(self.job_id),
checks=[JMESPathCheck('id', 'aaa'),
JMESPathCheck('commandLine', 'echo hello')])
self.batch_cmd('batch task create --job-id {} --task-id aaa --command-line "echo hello"',
account_info, job_id) \
.assert_with_checks(
[JMESPathCheck('id', 'aaa'), JMESPathCheck('commandLine', 'echo hello')])
self.cmd('batch task delete --job-id {} --task-id aaa --yes'.format(self.job_id))
self.batch_cmd('batch task delete --job-id {} --task-id aaa --yes', account_info, job_id)
result = self.cmd('batch task create --job-id {} --json-file "{}"'.
format(self.job_id, self.create_tasks_file_path),
checks=[JMESPathCheck('length(@)', 3)])
self.assertIsNotNone([i for i in result if i['taskId'] == 'xplatTask1'])
result = self.batch_cmd('batch task create --job-id {} --json-file "{}"', account_info,
job_id, create_tasks_file_path).get_output_in_json()
self.assertEqual(len(result), 3)
self.assertTrue(any([i for i in result if i['taskId'] == 'xplatTask1']))
@ResourceGroupPreparer()
@BatchAccountPreparer(location='canadaeast')
def test_batch_jobs_and_tasks(self, resource_group, batch_account_name):
pool_paas = "azure-cli-test-paas"
job_id = "cli-test-job-1"
account_info = self.get_account_info(batch_account_name, resource_group)
# test create paas pool using parameters
self.batch_cmd('batch pool create --id {} --vm-size small --os-family 4', account_info,
pool_paas)
# test create job with missing parameters
start_time = datetime.datetime.now().isoformat()
with self.assertRaises(SystemExit):
self.batch_cmd('batch job create --id {} --metadata test=value '
'--job-manager-task-environment-settings a=b '
'--job-max-task-retry-count 5 ', account_info, job_id)
# test create job
self.batch_cmd('batch job create --id {} --metadata test=value '
'--job-max-task-retry-count 5 '
'--job-manager-task-id JobManager '
'--job-manager-task-command-line "cmd /c set AZ_BATCH_TASK_ID" '
'--job-manager-task-environment-settings '
'CLI_TEST_VAR=CLI_TEST_VAR_VALUE --pool-id {}',
account_info, job_id, pool_paas)
# test get job
self.batch_cmd('batch job show --job-id {}', account_info, job_id) \
.assert_with_checks([JMESPathCheck('onAllTasksComplete', 'noAction'),
JMESPathCheck('constraints.maxTaskRetryCount', 5),
JMESPathCheck('jobManagerTask.id', 'JobManager'),
JMESPathCheck('jobManagerTask.environmentSettings[0].name', 'CLI_TEST_VAR'),
JMESPathCheck('jobManagerTask.environmentSettings[0].value', 'CLI_TEST_VAR_VALUE'),
JMESPathCheck('metadata[0].name', 'test'),
JMESPathCheck('metadata[0].value', 'value')])
# test bad enum value
with self.assertRaises(SystemExit):
self.batch_cmd('batch job set --job-id {} '
'--on-all-tasks-complete badValue ', account_info, job_id)
# test patch job
self.batch_cmd('batch job set --job-id {} --job-max-wall-clock-time P3Y6M4DT12H30M5S '
'--on-all-tasks-complete terminateJob', account_info, job_id)
self.batch_cmd('batch job show --job-id {}', account_info, job_id) \
.assert_with_checks([JMESPathCheck('onAllTasksComplete', 'terminateJob'),
JMESPathCheck('constraints.maxTaskRetryCount', 0),
JMESPathCheck('constraints.maxWallClockTime', '1279 days, 12:30:05'),
JMESPathCheck('jobManagerTask.id', 'JobManager'),
JMESPathCheck('jobManagerTask.environmentSettings[0].name', 'CLI_TEST_VAR'),
JMESPathCheck('jobManagerTask.environmentSettings[0].value', 'CLI_TEST_VAR_VALUE'),
JMESPathCheck('metadata[0].name', 'test'),
JMESPathCheck('metadata[0].value', 'value')])
# test filter/header argument
with self.assertRaises(CLIError):
self.batch_cmd('batch job reset --job-id {} --pool-id {} '
'--on-all-tasks-complete terminateJob '
'--if-unmodified-since {}', account_info, job_id, pool_paas, start_time)
# test reset job
self.batch_cmd('batch job reset --job-id {} --pool-id {} '
'--on-all-tasks-complete terminateJob ', account_info, job_id, pool_paas)
job = self.batch_cmd('batch job show --job-id {}', account_info, job_id) \
.assert_with_checks([JMESPathCheck('constraints.maxTaskRetryCount', 0),
JMESPathCheck('metadata', None)])
job = job.get_output_in_json()
self.assertFalse(job['constraints']['maxWallClockTime'] == '1279 days, 12:30:05')
# TODO: test task commands
@ResourceGroupPreparer()
@BatchAccountPreparer(location='westeurope')
def test_batch_pools_and_nodes(self, resource_group, batch_account_name): # pylint:disable=too-many-statements
pool_paas = "azure-cli-test-paas"
pool_iaas = "azure-cli-test-iaas"
pool_json = "azure-cli-test-json"
account_info = self.get_account_info(batch_account_name, resource_group)
# test create paas pool using parameters
self.batch_cmd('batch pool create --id {} --vm-size small --os-family 4',
account_info, pool_paas)
# test create iaas pool using parameters
self.batch_cmd('batch pool create --id {} --vm-size Standard_A1 '
'--image Canonical:UbuntuServer:16.04.0-LTS '
'--node-agent-sku-id "batch.node.ubuntu 16.04"', account_info, pool_iaas)
# test create pool with missing parameters
with self.assertRaises(SystemExit):
self.batch_cmd('batch pool create --id missing-params-test --os-family 4',
account_info)
# test create pool with missing required mutually exclusive parameters
with self.assertRaises(SystemExit):
self.batch_cmd('batch pool create --id missing-required-group-test --vm-size small',
account_info)
# test create pool with parameters from mutually exclusive groups
with self.assertRaises(SystemExit):
self.batch_cmd('batch pool create --id mutually-exclusive-test --vm-size small '
'--os-family 4 --image Canonical:UbuntuServer:16-LTS:latest',
account_info)
# test create pool with invalid vm size for IaaS
with self.assertRaises(SystemExit):
self.batch_cmd('batch pool create --id invalid-size-test --vm-size small '
'--image Canonical:UbuntuServer:16.04.0-LTS --node-agent-sku-id '
'"batch.node.ubuntu 16.04"', account_info)
# test create pool with missing optional parameters
with self.assertRaises(SystemExit):
self.batch_cmd('batch pool create --id missing-optional-test --vm-size small '
'--os-family 4 --start-task-wait-for-success', account_info)
# test create pool from JSON file
input_json = self._get_test_data_file('batch-pool-create.json').replace('\\', '\\\\')
self.batch_cmd('batch pool create --json-file {}', account_info, input_json)
self.batch_cmd('batch pool show --pool-id azure-cli-test-json', account_info) \
.assert_with_checks([JMESPathCheck('userAccounts[0].name', 'cliTestUser'),
JMESPathCheck('startTask.userIdentity.userName', 'cliTestUser')])
# test create pool from non-existant JSON file
with self.assertRaises(SystemExit):
self.batch_cmd('batch pool create --json-file batch-pool-create-missing.json',
account_info)
# test create pool from invalid JSON file
with self.assertRaises(SystemExit):
input_json = self._get_test_data_file('batch-pool-create-invalid.json').replace('\\', '\\\\')
self.batch_cmd('batch pool create --json-file {}', account_info, input_json)
# test create pool from JSON file with additional parameters
with self.assertRaises(SystemExit):
input_json = self._get_test_data_file('batch-pool-create.json').replace('\\', '\\\\')
self.batch_cmd('batch pool create --json-file {} --vm-size small', account_info, input_json)
# test list pools
pool_list = self.batch_cmd('batch pool list', account_info)
pool_list = pool_list.get_output_in_json()
self.assertEqual(len(pool_list), 3)
pool_ids = sorted([p['id'] for p in pool_list])
self.assertEqual(pool_ids, [pool_iaas, pool_json, pool_paas])
# test list pools with select
pool_list = self.batch_cmd('batch pool list --filter "id eq \'{}\'"',
account_info, pool_paas).get_output_in_json()
self.assertEqual(len(pool_list), 1)
# test resize pool
self.batch_cmd('batch pool resize --pool-id {} --target-dedicated-nodes 5', account_info, pool_paas)
self.batch_cmd('batch pool show --pool-id {} --select "allocationState, targetDedicatedNodes"',
account_info, pool_paas).assert_with_checks([
JMESPathCheck('allocationState', 'resizing'),
JMESPathCheck('targetDedicatedNodes', 5)])
# test cancel pool resize
self.batch_cmd('batch pool resize --pool-id {} --abort', account_info, pool_paas)
# test enable autoscale
self.batch_cmd('batch pool autoscale enable --pool-id {} --auto-scale-formula '
'"$TargetDedicatedNodes=3"', account_info, pool_iaas)
self.batch_cmd('batch pool show --pool-id {} --select "enableAutoScale"',
account_info, pool_iaas).assert_with_checks([
JMESPathCheck('enableAutoScale', True)])
# test evaluate autoscale
self.batch_cmd('batch pool autoscale evaluate --pool-id {} --auto-scale-formula '
'"$TargetDedicatedNodes=3"', account_info, pool_iaas)
# test disable autoscale
self.batch_cmd('batch pool autoscale disable --pool-id {}', account_info, pool_iaas)
self.batch_cmd('batch pool show --pool-id {} --select "enableAutoScale"',
account_info, pool_iaas).assert_with_checks([
JMESPathCheck('enableAutoScale', False)])
# test list usage metrics
self.batch_cmd('batch pool usage-metrics list', account_info)
# TODO: Test update pool from JSON file
# test patch pool using parameters
current = self.batch_cmd('batch pool show --pool-id {} --select "startTask"',
account_info, pool_json).get_output_in_json()
self.batch_cmd('batch pool set --pool-id {} --start-task-command-line new_value',
account_info, pool_json)
updated = self.batch_cmd('batch pool show --pool-id {} --select "startTask"',
account_info, pool_json).get_output_in_json()
self.assertNotEqual(current['startTask']['commandLine'],
updated['startTask']['commandLine'])
# test list node agent skus
self.batch_cmd('batch pool node-agent-skus list', account_info)
# test delete iaas pool
self.batch_cmd('batch pool delete --pool-id {} --yes', account_info, pool_iaas)
self.batch_cmd('batch pool show --pool-id {} --select "state"',
account_info, pool_iaas).assert_with_checks([
JMESPathCheck('state', 'deleting')])
# test app package reference
with self.assertRaises(CLIError):
self.batch_cmd('batch pool create --id app_package_test --vm-size small --os-family 4 '
'--application-package-references does-not-exist', account_info)
with self.assertRaises(CLIError):
self.batch_cmd('batch pool set --pool-id {} --application-package-references '
'does-not-exist', account_info, pool_paas)
# TODO: Test node commands

Просмотреть файл

@ -1,100 +0,0 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
import datetime
import os
from azure.cli.core.util import CLIError
from .test_batch_data_plane_command_base import (BatchDataPlaneTestBase)
class BatchJobTest(BatchDataPlaneTestBase):
def __init__(self, test_method):
super(BatchJobTest, self).__init__(__file__, test_method)
self.pool_paas = "azure-cli-test-paas"
self.job1 = "cli-test-job-1"
self.data_dir = os.path.join(
os.path.dirname(__file__), 'data', 'batch-job-{}.json').replace('\\', '\\\\')
def tear_down(self):
# Clean up any running pools in case the test exited early
try:
self.cmd('batch pool delete --pool-id {} --yes'.format(self.pool_paas))
except Exception: # pylint: disable=broad-except
pass
try:
self.cmd('batch job delete --job-id {} --yes'.format(self.job1))
except Exception: # pylint: disable=broad-except
pass
def test_batch_jobs(self):
self.execute()
def body(self):
# pylint: disable=too-many-statements
# test create paas pool using parameters
self.cmd('batch pool create --id {} --vm-size small --os-family 4'.format(
self.pool_paas))
start_time = datetime.datetime.now().isoformat()
# test create job with missing parameters
with self.assertRaises(SystemExit):
self.cmd('batch job create --id {} --metadata test=value '
'--job-manager-task-environment-settings a=b '
'--job-max-task-retry-count 5 '.format(self.job1))
# test create job
self.cmd('batch job create --id {} --metadata test=value --job-max-task-retry-count 5 '
'--job-manager-task-id JobManager '
'--job-manager-task-command-line "cmd /c set AZ_BATCH_TASK_ID" '
'--job-manager-task-environment-settings '
'CLI_TEST_VAR=CLI_TEST_VAR_VALUE --pool-id {}'.format(self.job1, self.pool_paas))
# test get job
job1 = self.cmd('batch job show --job-id {}'.format(self.job1))
self.assertEqual(job1['metadata'][0]['name'], 'test')
self.assertEqual(job1['metadata'][0]['value'], 'value')
self.assertEqual(job1['jobManagerTask']['environmentSettings'][0]['name'],
'CLI_TEST_VAR')
self.assertEqual(job1['jobManagerTask']['environmentSettings'][0]['value'],
'CLI_TEST_VAR_VALUE')
self.assertEqual(job1['jobManagerTask']['id'], 'JobManager')
self.assertEqual(job1['constraints']['maxTaskRetryCount'], 5)
self.assertEqual(job1['onAllTasksComplete'], 'noAction')
# test bad enum value
with self.assertRaises(SystemExit):
self.cmd('batch job set --job-id {} '
'--on-all-tasks-complete badValue '.format(self.job1))
# test patch job
self.cmd('batch job set --job-id {} --job-max-wall-clock-time P3Y6M4DT12H30M5S '
'--on-all-tasks-complete terminateJob'.format(self.job1))
job1 = self.cmd('batch job show --job-id {}'.format(self.job1))
self.assertEqual(job1['metadata'][0]['name'], 'test')
self.assertEqual(job1['metadata'][0]['value'], 'value')
self.assertEqual(job1['jobManagerTask']['environmentSettings'][0]['name'],
'CLI_TEST_VAR')
self.assertEqual(job1['jobManagerTask']['environmentSettings'][0]['value'],
'CLI_TEST_VAR_VALUE')
self.assertEqual(job1['jobManagerTask']['id'], 'JobManager')
self.assertEqual(job1['constraints']['maxTaskRetryCount'], 0)
self.assertEqual(job1['constraints']['maxWallClockTime'], '1279 days, 12:30:05')
self.assertEqual(job1['onAllTasksComplete'], 'terminateJob')
# test filter/header argument
with self.assertRaises(CLIError):
self.cmd('batch job reset --job-id {} --pool-id {} '
'--on-all-tasks-complete terminateJob '
'--if-unmodified-since {}'.format(self.job1, self.pool_paas, start_time))
# test reset job
self.cmd('batch job reset --job-id {} --pool-id {} '
'--on-all-tasks-complete terminateJob '.format(self.job1, self.pool_paas))
job1 = self.cmd('batch job show --job-id {}'.format(self.job1))
self.assertEqual(job1['metadata'], None)
self.assertEqual(job1['constraints']['maxTaskRetryCount'], 0)
self.assertNotEqual(job1['constraints']['maxWallClockTime'], '1279 days, 12:30:05')

Просмотреть файл

@ -7,225 +7,193 @@ import tempfile
import os
import mock
from azure.cli.testsdk.vcr_test_base import (ResourceGroupVCRTestBase, JMESPathCheck,
NoneCheck)
from azure.cli.core.util import CLIError
from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer, JMESPathCheck, NoneCheck
from .batch_preparers import BatchAccountPreparer, BatchScenarioMixin
from azure.cli.core._config import az_config, CONFIG_FILE_NAME
def _before_record_response(response):
# ignore any 401 responses during playback
if response['status']['code'] == 401:
response = None
return response
class BatchMgmtScenarioTests(ScenarioTest): # pylint: disable=too-many-instance-attributes
class BatchMgmtAccountScenarioTest(ResourceGroupVCRTestBase): # pylint: disable=too-many-instance-attributes
def tear_down(self):
rg = self.resource_group
name = self.storage_account_name
self.cmd('storage account delete -g {} -n {} --yes'.format(rg, name))
def __init__(self, test_method):
super(BatchMgmtAccountScenarioTest, self).__init__(__file__, test_method)
self.config_dir = tempfile.mkdtemp()
self.config_path = os.path.join(self.config_dir, CONFIG_FILE_NAME)
self.resource_group = 'vcr_resource_group'
self.account_name = 'clibatchtest1'
self.byos_account_name = 'clibatchtestuser1'
self.location = 'brazilsouth'
self.byos_location = 'uksouth'
self.storage_account_name = 'clibatchteststorage1'
self.keyvault_name = 'clibatchtestkeyvault1'
self.object_id = 'f520d84c-3fd3-4cc8-88d4-2ed25b00d27a'
def test_batch_account_mgmt(self):
self.execute()
def body(self):
rg = self.resource_group
name = self.account_name
loc = self.location
@ResourceGroupPreparer(location='northeurope')
def test_batch_account_cmd(self, resource_group):
config_dir = tempfile.mkdtemp()
config_path = os.path.join(config_dir, CONFIG_FILE_NAME)
storage_account_name = 'clibatchteststorage1'
location = 'northeurope'
account_name = 'clibatchtest1'
byos_account_name = 'clibatchtestuser1'
byos_location = 'uksouth'
keyvault_name = 'clibatchtestkeyvault1'
object_id = 'f520d84c-3fd3-4cc8-88d4-2ed25b00d27a'
# test create storage account with default set
result = self.cmd('storage account create -g {} -n {} -l {} --sku Standard_LRS'.
format(rg, self.storage_account_name, loc),
checks=[JMESPathCheck('name', self.storage_account_name),
JMESPathCheck('location', loc),
JMESPathCheck('resourceGroup', rg)])
sid = result['id']
result = self.cmd('storage account create -g {} -n {} -l {} --sku Standard_LRS'.format(
resource_group, storage_account_name, location)).assert_with_checks([
JMESPathCheck('name', storage_account_name),
JMESPathCheck('location', location),
JMESPathCheck('resourceGroup', resource_group)])
storage_id = result.get_output_in_json()['id']
# test create keyvault for use with BYOS account
self.cmd('keyvault create -g {} -n {} -l {} --enabled-for-deployment true '
'--enabled-for-disk-encryption true --enabled-for-template-deployment'
' true'.format(rg, self.keyvault_name, self.byos_location),
checks=[JMESPathCheck('name', self.keyvault_name),
JMESPathCheck('location', self.byos_location),
JMESPathCheck('resourceGroup', rg),
self.cmd('keyvault create -g {} -n {} -l {} --enabled-for-deployment true --enabled-for'
'-disk-encryption true --enabled-for-template-deployment true'.format(
resource_group, keyvault_name, byos_location)).assert_with_checks([
JMESPathCheck('name', keyvault_name),
JMESPathCheck('location', byos_location),
JMESPathCheck('resourceGroup', resource_group),
JMESPathCheck('type(properties.accessPolicies)', 'array'),
JMESPathCheck('length(properties.accessPolicies)', 1),
JMESPathCheck('properties.sku.name', 'standard')])
self.cmd('keyvault set-policy -g {} -n {} --object-id {} --key-permissions all '
'--secret-permissions all'.format(rg, self.keyvault_name, self.object_id))
'--secret-permissions all'.format(resource_group, keyvault_name, object_id))
# test create account with default set
self.cmd('batch account create -g {} -n {} -l {}'.format(rg, name, loc), checks=[
JMESPathCheck('name', name),
JMESPathCheck('location', loc),
JMESPathCheck('resourceGroup', rg)
])
self.cmd('batch account create -g {} -n {} -l {}'.format(
resource_group, account_name, location)).assert_with_checks([
JMESPathCheck('name', account_name),
JMESPathCheck('location', location),
JMESPathCheck('resourceGroup', resource_group)])
# test create account with BYOS
self.cmd('batch account create -g {} -n {} -l {} --keyvault {}'.
format(rg, self.byos_account_name, self.byos_location, self.keyvault_name),
checks=[JMESPathCheck('name', self.byos_account_name),
JMESPathCheck('location', self.byos_location),
JMESPathCheck('resourceGroup', rg)])
self.cmd('batch account create -g {} -n {} -l {} --keyvault {}'.format(
resource_group, byos_account_name, byos_location, keyvault_name)).assert_with_checks([
JMESPathCheck('name', byos_account_name),
JMESPathCheck('location', byos_location),
JMESPathCheck('resourceGroup', resource_group)])
self.cmd('batch account set -g {} -n {} --storage-account {}'.
format(rg, name, self.storage_account_name),
checks=[JMESPathCheck('name', name),
JMESPathCheck('location', loc),
JMESPathCheck('resourceGroup', rg)])
self.cmd('batch account set -g {} -n {} --storage-account {}'.format(
resource_group, account_name, storage_account_name)).assert_with_checks([
JMESPathCheck('name', account_name),
JMESPathCheck('location', location),
JMESPathCheck('resourceGroup', resource_group)])
self.cmd('batch account show -g {} -n {}'.format(rg, name),
checks=[JMESPathCheck('name', name),
JMESPathCheck('location', loc),
JMESPathCheck('resourceGroup', rg),
JMESPathCheck('autoStorage.storageAccountId', sid)])
self.cmd('batch account show -g {} -n {}'.format(
resource_group, account_name)).assert_with_checks([
JMESPathCheck('name', account_name),
JMESPathCheck('location', location),
JMESPathCheck('resourceGroup', resource_group),
JMESPathCheck('autoStorage.storageAccountId', storage_id)])
self.cmd('batch account autostorage-keys sync -g {} -n {}'.format(rg, name))
self.cmd('batch account autostorage-keys sync -g {} -n {}'.format(
resource_group, account_name))
keys = self.cmd('batch account keys list -g {} -n {}'.format(rg, name),
checks=[JMESPathCheck('primary != null', True),
keys = self.cmd('batch account keys list -g {} -n {}'.format(
resource_group, account_name)).assert_with_checks([
JMESPathCheck('primary != null', True),
JMESPathCheck('secondary != null', True)])
keys2 = self.cmd('batch account keys renew -g {} -n {} --key-name primary'.
format(rg, name),
checks=[JMESPathCheck('primary != null', True),
JMESPathCheck('secondary', keys['secondary'])])
keys2 = self.cmd('batch account keys renew -g {} -n {} --key-name primary'.format(
resource_group, account_name)).assert_with_checks([
JMESPathCheck('primary != null', True),
JMESPathCheck('secondary', keys.get_output_in_json()['secondary'])])
self.assertTrue(keys['primary'] != keys2['primary'])
self.assertTrue(keys.get_output_in_json()['primary'] !=
keys2.get_output_in_json()['primary'])
with mock.patch('azure.cli.core._config.GLOBAL_CONFIG_DIR', self.config_dir), \
mock.patch('azure.cli.core._config.GLOBAL_CONFIG_PATH', self.config_path): # noqa: F122
with mock.patch('azure.cli.core._config.GLOBAL_CONFIG_DIR', config_dir), \
mock.patch('azure.cli.core._config.GLOBAL_CONFIG_PATH', config_path):
self.cmd('batch account login -g {} -n {}'.
format(rg, name), checks=NoneCheck())
format(resource_group, account_name)).assert_with_checks(NoneCheck())
self.assertEqual(az_config.config_parser.get('batch', 'auth_mode'), 'aad')
self.assertEqual(az_config.config_parser.get('batch', 'account'), name)
self.assertEqual(az_config.config_parser.get('batch', 'account'), account_name)
self.assertFalse(az_config.config_parser.has_option('batch', 'access_key'))
self.cmd('batch account login -g {} -n {} --shared-key-auth'.
format(rg, name), checks=NoneCheck())
format(resource_group, account_name)).assert_with_checks(NoneCheck())
self.assertEqual(az_config.config_parser.get('batch', 'auth_mode'), 'shared_key')
self.assertEqual(az_config.config_parser.get('batch', 'account'), name)
self.assertEqual(az_config.config_parser.get('batch', 'access_key'), keys2['primary'])
self.assertEqual(az_config.config_parser.get('batch', 'account'), account_name)
self.assertEqual(az_config.config_parser.get('batch', 'access_key'),
keys2.get_output_in_json()['primary'])
# test batch account delete
self.cmd('batch account delete -g {} -n {} --yes'.format(rg, name))
self.cmd('batch account delete -g {} -n {} --yes'.format(rg, self.byos_account_name))
self.cmd('batch account list -g {}'.format(rg), checks=NoneCheck())
self.cmd('batch account delete -g {} -n {} --yes'.format(resource_group, account_name))
self.cmd('batch account delete -g {} -n {} --yes'.format(
resource_group, byos_account_name))
self.cmd('batch account list -g {}'.format(
resource_group)).assert_with_checks(NoneCheck())
self.cmd('batch location quotas show -l {}'.format(loc),
checks=[JMESPathCheck('accountQuota', 1)])
self.cmd('batch location quotas show -l {}'.format(location)).assert_with_checks(
[JMESPathCheck('accountQuota', 1)])
class BatchMgmtApplicationScenarioTest(ResourceGroupVCRTestBase):
def set_up(self):
super(BatchMgmtApplicationScenarioTest, self).set_up()
rg = self.resource_group
sname = self.storage_account_name
name = self.account_name
loc = self.location
@ResourceGroupPreparer(location='ukwest')
def test_batch_application_cmd(self, resource_group):
account_name = 'clibatchtest7'
location = 'ukwest'
storage_account_name = 'clibatchteststorage7'
application_name = 'testapp'
application_package_name = '1.0'
_, package_file_name = tempfile.mkstemp()
# test create account with default set
result = self.cmd('storage account create -g {} -n {} -l {} --sku Standard_LRS'.
format(rg, sname, loc), checks=[
JMESPathCheck('name', sname),
JMESPathCheck('location', loc),
JMESPathCheck('resourceGroup', rg)
])
result = self.cmd('storage account create -g {} -n {} -l {} --sku Standard_LRS'.format(
resource_group, storage_account_name, location)).assert_with_checks([
JMESPathCheck('name', storage_account_name),
JMESPathCheck('location', location),
JMESPathCheck('resourceGroup', resource_group)])
self.cmd('batch account create -g {} -n {} -l {} --storage-account {}'.
format(rg, name, loc, result['id']), checks=[
JMESPathCheck('name', name),
JMESPathCheck('location', loc),
JMESPathCheck('resourceGroup', rg)
])
self.cmd('batch account create -g {} -n {} -l {} --storage-account {}'.format(
resource_group, account_name, location,
result.get_output_in_json()['id'])).assert_with_checks([
JMESPathCheck('name', account_name),
JMESPathCheck('location', location),
JMESPathCheck('resourceGroup', resource_group)])
def tear_down(self):
rg = self.resource_group
sname = self.storage_account_name
name = self.account_name
self.cmd('storage account delete -g {} -n {} --yes'.format(rg, sname))
self.cmd('batch account delete -g {} -n {} --yes'.format(rg, name))
def __init__(self, test_method):
super(BatchMgmtApplicationScenarioTest, self).__init__(__file__, test_method)
self.resource_group = 'vcr_resource_group'
self.account_name = 'clibatchtest7'
self.location = 'brazilsouth'
self.storage_account_name = 'clibatchteststorage7'
self.application_name = 'testapp'
self.application_package_name = '1.0'
_, self.package_file_name = tempfile.mkstemp()
def test_batch_application_mgmt(self):
self.execute()
def body(self):
with open(self.package_file_name, 'w') as f:
with open(package_file_name, 'w') as f:
f.write('storage blob test sample file')
rg = self.resource_group
name = self.account_name
aname = self.application_name
ver = self.application_package_name
# test create application with default set
self.cmd('batch application create -g {} -n {} --application-id {} --allow-updates'.
format(rg, name, aname), checks=[
JMESPathCheck('id', aname),
JMESPathCheck('allowUpdates', True)
])
self.cmd('batch application create -g {} -n {} --application-id {} '
'--allow-updates'.format(
resource_group, account_name, application_name)).assert_with_checks([
JMESPathCheck('id', application_name),
JMESPathCheck('allowUpdates', True)])
self.cmd('batch application list -g {} -n {}'.format(rg, name), checks=[
self.cmd('batch application list -g {} -n {}'.format(
resource_group, account_name)).assert_with_checks([
JMESPathCheck('length(@)', 1),
JMESPathCheck('[0].id', aname),
])
JMESPathCheck('[0].id', application_name)])
self.cmd('batch application package create -g {} -n {} --application-id {}'
' --version {} --package-file "{}"'.
format(rg, name, aname, ver, self.package_file_name), checks=[
JMESPathCheck('id', aname),
' --version {} --package-file "{}"'.format(
resource_group, account_name, application_name, application_package_name,
package_file_name)).assert_with_checks([
JMESPathCheck('id', application_name),
JMESPathCheck('storageUrl != null', True),
JMESPathCheck('version', ver),
JMESPathCheck('state', 'active')
])
JMESPathCheck('version', application_package_name),
JMESPathCheck('state', 'active')])
self.cmd('batch application package activate -g {} -n {} --application-id {}'
' --version {} --format zip'.format(rg, name, aname, ver))
' --version {} --format zip'.format(resource_group, account_name,
application_name, application_package_name))
self.cmd('batch application package show -g {} -n {} --application-id {} --version {}'.
format(rg, name, aname, ver), checks=[
JMESPathCheck('id', aname),
format(resource_group, account_name, application_name,
application_package_name)).assert_with_checks([
JMESPathCheck('id', application_name),
JMESPathCheck('format', 'zip'),
JMESPathCheck('version', ver),
JMESPathCheck('state', 'active')
])
JMESPathCheck('version', application_package_name),
JMESPathCheck('state', 'active')])
self.cmd('batch application set -g {} -n {} --application-id {} --default-version {}'.format(rg, name, aname, ver)) # pylint: disable=line-too-long
self.cmd('batch application set -g {} -n {} --application-id {} '
'--default-version {}'.format(
resource_group, account_name, application_name, application_package_name))
self.cmd('batch application show -g {} -n {} --application-id {}'.format(rg, name, aname),
checks=[JMESPathCheck('id', aname),
JMESPathCheck('defaultVersion', ver),
self.cmd('batch application show -g {} -n {} --application-id {}'.format(
resource_group, account_name, application_name)).assert_with_checks([
JMESPathCheck('id', application_name),
JMESPathCheck('defaultVersion', application_package_name),
JMESPathCheck('packages[0].format', 'zip'),
JMESPathCheck('packages[0].state', 'active')])
# test batch applcation delete
self.cmd('batch application package delete -g {} -n {} --application-id {} --version {} --yes'. # pylint: disable=line-too-long
format(rg, name, aname, ver))
self.cmd('batch application delete -g {} -n {} --application-id {} --yes'.
format(rg, name, aname))
self.cmd('batch application list -g {} -n {}'.format(rg, name), checks=NoneCheck())
self.cmd('batch application package delete -g {} -n {} --application-id {} '
'--version {} --yes'.format(resource_group, account_name, application_name,
application_package_name))
self.cmd('batch application delete -g {} -n {} --application-id {} --yes'.format(
resource_group, account_name, application_name))
self.cmd('batch application list -g {} -n {}'.format(
resource_group, account_name)).assert_with_checks(NoneCheck())
self.cmd('storage account delete -g {} -n {} --yes'.format(
resource_group, storage_account_name))

Просмотреть файл

@ -1,186 +0,0 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
import os
from azure.cli.core.util import CLIError
from .test_batch_data_plane_command_base import (BatchDataPlaneTestBase)
class BatchPoolTest(BatchDataPlaneTestBase):
def __init__(self, test_method):
super(BatchPoolTest, self).__init__(__file__, test_method)
self.pool_paas = "azure-cli-test-paas"
self.pool_iaas = "azure-cli-test-iaas"
self.pool_json = "azure-cli-test-json"
self.data_dir = os.path.join(
os.path.dirname(__file__), 'data', 'batch-pool-{}.json').replace('\\', '\\\\')
def tear_down(self):
# Clean up any running pools in case the test exited early
for pool in [self.pool_iaas, self.pool_paas, self.pool_json]:
try:
self.cmd('batch pool delete --pool-id {} --yes'.format(pool))
except Exception: # pylint: disable=broad-except
pass
def test_batch_pools(self):
self.execute()
def body(self):
# pylint: disable=too-many-statements
# test create paas pool using parameters
self.cmd('batch pool create --id {} --vm-size small --os-family 4'.format(
self.pool_paas))
# test create iaas pool using parameters
self.cmd('batch pool create --id {} --vm-size Standard_A1 '
'--image Canonical:UbuntuServer:16.04.0-LTS '
'--node-agent-sku-id "batch.node.ubuntu 16.04"'.
format(self.pool_iaas))
# test create pool with missing parameters
try:
self.cmd('batch pool create --id missing-params-test --os-family 4')
raise AssertionError("Excepted exception to be raised.")
except SystemExit as exp:
self.assertEqual(exp.code, 2)
# test create pool with missing required mutually exclusive parameters
try:
self.cmd('batch pool create --id missing-required-group-test --vm-size small')
raise AssertionError("Excepted exception to be raised.")
except SystemExit as exp:
self.assertEqual(exp.code, 2)
# test create pool with parameters from mutually exclusive groups
try:
self.cmd('batch pool create --id mutually-exclusive-test --vm-size small --os-family ' +
'4 --image Canonical:UbuntuServer:16-LTS:latest')
raise AssertionError("Excepted exception to be raised.")
except SystemExit as exp:
self.assertEqual(exp.code, 2)
# test create pool with invalid vm size for IaaS
try:
self.cmd('batch pool create --id invalid-size-test --vm-size small ' +
'--image Canonical:UbuntuServer:16.04.0-LTS --node-agent-sku-id ' +
'"batch.node.ubuntu 16.04"')
except SystemExit as exp:
self.assertEqual(exp.code, 2)
# test create pool with missing optional parameters
try:
self.cmd('batch pool create --id missing-optional-test --vm-size small --os-family' +
' 4 --start-task-wait-for-success')
raise AssertionError("Excepted exception to be raised.")
except SystemExit as exp:
self.assertEqual(exp.code, 2)
# test create pool from JSON file
self.cmd('batch pool create --json-file {}'.format(self.data_dir.format('create')))
from_json = self.cmd('batch pool show --pool-id azure-cli-test-json')
self.assertEqual(len(from_json['userAccounts']), 1)
self.assertEqual(from_json['userAccounts'][0]['name'], 'cliTestUser')
self.assertEqual(from_json['startTask']['userIdentity']['userName'], 'cliTestUser')
# test create pool from non-existant JSON file
try:
self.cmd('batch pool create --json-file batch-pool-create-missing.json')
raise AssertionError("Excepted exception to be raised.")
except SystemExit as exp:
self.assertEqual(exp.code, 2)
# test create pool from invalid JSON file
try:
self.cmd('batch pool create --json-file {}'.format(
self.data_dir.format('create-invalid')))
raise AssertionError("Excepted exception to be raised.")
except SystemExit as exp:
self.assertEqual(exp.code, 2)
# test create pool from JSON file with additional parameters
try:
self.cmd('batch pool create --json-file {} --vm-size small'.format(
self.data_dir.format('create')))
raise AssertionError("Excepted exception to be raised.")
except SystemExit as exp:
self.assertEqual(exp.code, 2)
# test list pools
pool_list = self.cmd('batch pool list')
self.assertEqual(len(pool_list), 3)
pool_ids = sorted([p['id'] for p in pool_list])
self.assertEqual(pool_ids, [self.pool_iaas, self.pool_json, self.pool_paas])
# test list pools with select
pool_list = self.cmd('batch pool list --filter "id eq \'{}\'"'.format(self.pool_paas))
self.assertEqual(len(pool_list), 1)
# test resize pool
self.cmd('batch pool resize --pool-id {} --target-dedicated 5'.format(self.pool_paas))
pool_result = self.cmd('batch pool show --pool-id {} --select "allocationState,'
' targetDedicated"'.format(self.pool_paas))
self.assertEqual(pool_result['allocationState'], 'resizing')
self.assertEqual(pool_result['targetDedicated'], 5)
# test cancel pool resize
self.cmd('batch pool resize --pool-id {} --abort'.format(self.pool_paas))
# test enable autoscale
self.cmd('batch pool autoscale enable --pool-id {} --auto-scale-formula '
'"$TargetDedicated=3"'.format(self.pool_iaas))
pool_result = self.cmd('batch pool show --pool-id {} --select "enableAutoScale"'.format(
self.pool_iaas))
self.assertEqual(pool_result['enableAutoScale'], True)
# test evaluate autoscale
self.cmd('batch pool autoscale evaluate --pool-id {} --auto-scale-formula '
'"$TargetDedicated=3"'.format(self.pool_iaas))
# test disable autoscale
self.cmd('batch pool autoscale disable --pool-id {}'.format(self.pool_iaas))
pool_result = self.cmd('batch pool show --pool-id {} --select "enableAutoScale"'.format(
self.pool_iaas))
self.assertEqual(pool_result['enableAutoScale'], False)
# test list usage metrics
self.cmd('batch pool usage-metrics list')
# TODO: Test update pool from JSON file
# test patch pool using parameters
current = self.cmd('batch pool show --pool-id {} --select "startTask"'.format(
self.pool_json))
self.cmd('batch pool set --pool-id {} --start-task-command-line new_value'.format(
self.pool_json))
updated = self.cmd('batch pool show --pool-id {} --select "startTask"'.format(
self.pool_json))
self.assertNotEqual(current['startTask']['commandLine'],
updated['startTask']['commandLine'])
# test list node agent skus
self.cmd('batch pool node-agent-skus list')
# test delete iaas pool
self.cmd('batch pool delete --pool-id {} --yes'.format(self.pool_iaas))
pool_result = self.cmd('batch pool show --pool-id {} --select "state"'.format(
self.pool_iaas))
self.assertEqual(pool_result['state'], 'deleting')
# test app package reference
try:
self.cmd('batch pool create --id app_package_test --vm-size small --os-family 4 ' +
'--application-package-references does-not-exist')
raise AssertionError("Excepted exception to be raised.")
except CLIError:
pass
try:
self.cmd('batch pool set --pool-id {} --application-package-references '
'does-not-exist'.format(self.pool_paas))
raise AssertionError("Excepted exception to be raised.")
except CLIError:
pass