diff --git a/azure-cli.pyproj b/azure-cli.pyproj index 720fd0f7d..f8b8557fc 100644 --- a/azure-cli.pyproj +++ b/azure-cli.pyproj @@ -164,10 +164,7 @@ - - - diff --git a/src/command_modules/azure-cli-batch/HISTORY.rst b/src/command_modules/azure-cli-batch/HISTORY.rst index 63eb0caf7..df266613c 100644 --- a/src/command_modules/azure-cli-batch/HISTORY.rst +++ b/src/command_modules/azure-cli-batch/HISTORY.rst @@ -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) ++++++++++++++++++++ diff --git a/src/command_modules/azure-cli-batch/azure/cli/command_modules/batch/_validators.py b/src/command_modules/azure-cli-batch/azure/cli/command_modules/batch/_validators.py index 8e6bc4199..ca640ee66 100644 --- a/src/command_modules/azure-cli-batch/azure/cli/command_modules/batch/_validators.py +++ b/src/command_modules/azure-cli-batch/azure/cli/command_modules/batch/_validators.py @@ -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): diff --git a/src/command_modules/azure-cli-batch/azure/cli/command_modules/batch/commands.py b/src/command_modules/azure-cli-batch/azure/cli/command_modules/batch/commands.py index 66be5e318..ed993071a 100644 --- a/src/command_modules/azure-cli-batch/azure/cli/command_modules/batch/commands.py +++ b/src/command_modules/azure-cli-batch/azure/cli/command_modules/batch/commands.py @@ -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) diff --git a/src/command_modules/azure-cli-batch/azure/cli/command_modules/batch/custom.py b/src/command_modules/azure-cli-batch/azure/cli/command_modules/batch/custom.py index d8d2ff0c5..a2e60a740 100644 --- a/src/command_modules/azure-cli-batch/azure/cli/command_modules/batch/custom.py +++ b/src/command_modules/azure-cli-batch/azure/cli/command_modules/batch/custom.py @@ -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, diff --git a/src/command_modules/azure-cli-batch/setup.py b/src/command_modules/azure-cli-batch/setup.py index ef53acfc7..df2a6e6d0 100644 --- a/src/command_modules/azure-cli-batch/setup.py +++ b/src/command_modules/azure-cli-batch/setup.py @@ -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' ] diff --git a/src/command_modules/azure-cli-batch/tests/batch_preparers.py b/src/command_modules/azure-cli-batch/tests/batch_preparers.py new file mode 100644 index 000000000..594cb87de --- /dev/null +++ b/src/command_modules/azure-cli-batch/tests/batch_preparers.py @@ -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) diff --git a/src/command_modules/azure-cli-batch/tests/generate_full_cli_help.bat b/src/command_modules/azure-cli-batch/tests/generate_full_cli_help.bat new file mode 100644 index 000000000..b3ca3c535 --- /dev/null +++ b/src/command_modules/azure-cli-batch/tests/generate_full_cli_help.bat @@ -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 \ No newline at end of file diff --git a/src/command_modules/azure-cli-batch/tests/generate_short_cli_help.bat b/src/command_modules/azure-cli-batch/tests/generate_short_cli_help.bat new file mode 100644 index 000000000..6ec579151 --- /dev/null +++ b/src/command_modules/azure-cli-batch/tests/generate_short_cli_help.bat @@ -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 diff --git a/src/command_modules/azure-cli-batch/tests/recordings/batch_help_full.txt b/src/command_modules/azure-cli-batch/tests/recordings/batch_help_full.txt new file mode 100644 index 000000000..bfe22198a --- /dev/null +++ b/src/command_modules/azure-cli-batch/tests/recordings/batch_help_full.txt @@ -0,0 +1,4155 @@ + +(env) C:\Code\Forks\azure-cli>cmd /c az batch --help + +Group + az batch: Manage Azure Batch. + +Subgroups: + account : Manage your Batch accounts. + application : Manage your Batch applications. + certificate : Manage your Batch certificates. + job : Manage your Batch jobs. + job-schedule: Manage your Batch job schedules. + location : Manage Batch service options for a subscription at the region level. + node : Manage your Batch compute nodes. + pool : Manage your Batch pools. + task : Manage your Batch tasks. + + +(env) C:\Code\Forks\azure-cli>cmd /c az batch account --help + +Group + az batch account: Manage your Batch accounts. + +Subgroups: + autostorage-keys: Manage the access keys for the auto storage account configured for your Batch + account. + keys : Manage your Batch account keys. + +Commands: + create : Create a Batch account with the specified parameters. + delete : Deletes the specified Batch account. + list : List the Batch accounts associated with a subscription or resource group. + login : Log in with specified Batch account through Azure Active Directory or Shared + Key authentication. + set : Update the properties of the specified Batch account. Properties that are not + specified remain unchanged. + show : Gets information about the specified Batch account. + + +(env) C:\Code\Forks\azure-cli>cmd /c az batch account list --help + +Command + az batch account list: List the Batch accounts associated with a subscription or resource group. + +Arguments + --resource-group -g: Name of the resource group. + +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 account show --help + +Command + az batch account show: Gets information about the specified Batch account. + +Arguments + --name -n [Required]: Name of the Batch account. + --resource-group -g [Required]: Name of the resource group. + +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 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 account set --help + +Command + az batch account set: Update the properties of the specified Batch account. Properties that are + not specified remain unchanged. + +Arguments + --name -n [Required]: Name of the Batch account. + --resource-group -g [Required]: Name of the resource group. + --storage-account : The storage account name or resource ID to be used for auto + storage. + --tags : Space separated tags in 'key[=value]' format. Use "" to clear + existing tags. + +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 account delete --help + +Command + az batch account delete: Deletes the specified Batch account. + +Arguments + --name -n [Required]: Name of the Batch account. + --resource-group -g [Required]: Name of the resource group. + --yes -y : Do not prompt for confirmation. + +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 account autostorage-keys --help + +Group + az batch account autostorage-keys: Manage the access keys for the auto storage account + configured for your Batch account. + +Commands: + sync: Synchronizes access keys for the auto-storage account configured for the specified Batch + account. + + +(env) C:\Code\Forks\azure-cli>cmd /c az batch account autostorage-keys sync --help + +Command + az batch account autostorage-keys sync: Synchronizes access keys for the auto-storage account + configured for the specified Batch account. + +Arguments + --name -n [Required]: Name of the Batch account. + --resource-group -g [Required]: Name of the resource group. + +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 account keys --help + +Group + az batch account keys: Manage your Batch account keys. + +Commands: + list : Gets the account keys for the specified Batch account. + renew: Regenerates the specified account key for the Batch account. + + +(env) C:\Code\Forks\azure-cli>cmd /c az batch account keys list --help + +Command + az batch account keys list: Gets the account keys for the specified Batch account. + This operation applies only to Batch accounts created with a poolAllocationMode of + 'BatchService'. If the Batch account was created with a poolAllocationMode of + 'UserSubscription', clients cannot use access to keys to authenticate, and must use Azure + Active Directory instead. In this case, getting the keys will fail. + +Arguments + --name -n [Required]: Name of the Batch account. + --resource-group -g [Required]: Name of the resource group. + +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 account keys renew --help + +Command + az batch account keys renew: Regenerates the specified account key for the Batch account. + +Arguments + --key-name [Required]: The type of account key to regenerate. Allowed values: Primary, + Secondary. + --name -n [Required]: Name of the Batch account. + --resource-group -g [Required]: Name of the resource group. + +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 --help + +Group + az batch application: Manage your Batch applications. + +Subgroups: + package: Manage your Batch application packages. + summary: View a summary of your Batch application packages. + +Commands: + create : Adds an application to the specified Batch account. + delete : Deletes an application. + list : Lists all of the applications in the specified account. + set : Update the properties of the specified application. Properties that are not specified + remain unchanged. + show : Gets information about the specified application. + + +(env) C:\Code\Forks\azure-cli>cmd /c az batch application list --help + +Command + az batch application list: Lists all of the applications in the specified account. + +Arguments + --name -n [Required]: Name of the Batch account. + --resource-group -g [Required]: Name of the resource group. + --maxresults : The maximum number of items to return in the response. + +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 show --help + +Command + az batch application show: Gets information about the specified application. + +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. + +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 set --help + +Command + az batch application set: Update the properties of the specified application. Properties that + are not specified remain unchanged. + +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. Specify either + 'true' or 'false' to update the property. + --default-version : The package to use if a client requests the application but does + not specify a version. + --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 delete --help + +Command + az batch application delete: Deletes an application. + +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. + --yes -y : Do not prompt for confirmation. + +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 --help + +Group + az batch application package: Manage your Batch application packages. + +Commands: + activate: Activates the specified application package. This step is unnecessary if the package + has already been successfully activated by the 'create' command. + create : Create an application package record and activate it. + delete : Deletes an application package record and its associated binary file. + show : Gets information about the specified application package. + + +(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 application package delete --help + +Command + az batch application package delete: Deletes an application package record and its associated + binary file. + +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. + --version [Required]: The version of the application to delete. + --yes -y : Do not prompt for confirmation. + +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 show --help + +Command + az batch application package show: Gets information about the specified application package. + +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. + --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 application package activate --help + +Command + az batch application package activate: Activates the specified application package. This step is + unnecessary if the package has already been successfully activated by the 'create' command. + +Arguments + --application-id [Required]: The ID of the application. + --format [Required]: The format of the application package binary file. + --name -n [Required]: Name of the Batch account. + --resource-group -g [Required]: Name of the resource group. + --version [Required]: The version of the application to activate. + +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 summary --help + +Group + az batch application summary: View a summary of your Batch application packages. + +Commands: + list: Lists all of the applications available in the specified account. + show: Gets information about the specified application. + + +(env) C:\Code\Forks\azure-cli>cmd /c az batch application summary list --help + +Command + az batch application summary list: Lists all of the applications available in the specified + account. + This operation returns only applications and versions that are available for use on compute + nodes; that is, that can be used in an application package reference. For administrator + information about applications and versions that are not yet available to compute nodes, use + the Azure portal or the Azure Resource Manager API. + +Arguments + +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. + +(env) C:\Code\Forks\azure-cli>cmd /c az batch application summary show --help + +Command + az batch application summary show: Gets information about the specified application. + +Arguments + --application-id [Required]: The ID of the application. + +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. + +(env) C:\Code\Forks\azure-cli>cmd /c az batch location --help + +Group + az batch location: Manage Batch service options for a subscription at the region level. + +Subgroups: + quotas: Manage Batch service quotas at the region level. + + +(env) C:\Code\Forks\azure-cli>cmd /c az batch location quotas --help + +Group + az batch location quotas: Manage Batch service quotas at the region level. + +Commands: + show: Gets the Batch service quotas for the specified subscription at the given location. + + +(env) C:\Code\Forks\azure-cli>cmd /c az batch location quotas show --help + +Command + az batch location quotas show: Gets the Batch service quotas for the specified subscription at + the given location. + +Arguments + --location -l [Required]: The region from which to display the Batch service quotas. + +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 --help + +Group + az batch certificate: Manage your Batch certificates. + +Commands: + create: Add a certificate. + delete: Delete the specified Batch certificate. + list : Lists all of the certificates that have been added to the specified account. + show : Gets information about the specified certificate. + + +(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 certificate delete --help + +Command + az batch certificate delete: Delete the specified Batch certificate. + +Arguments + --thumbprint [Required]: The certificate thumbprint. + --abort : Cancel the failed certificate deletion operation. + --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 : 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 certificate show --help + +Command + az batch certificate show: Gets information about the specified certificate. + +Arguments + --thumbprint [Required]: The certificate thumbprint. + +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 + --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 certificate list --help + +Command + az batch certificate list: Lists all of the certificates that have been added to the specified + account. + +Arguments + +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 pool --help + +Group + az batch pool: Manage your Batch pools. + +Subgroups: + all-statistics : View statistics of all pools under your Batch account. + autoscale : Manage automatic scaling of your Batch pools. + node-agent-skus: Retrieve node agent SKUs of pools using a Virtual Machine Configuration. + os : Manage the operating system of your Batch pools. + usage-metrics : View usage metrics of your Batch pools. + +Commands: + create : Create a pool in the specified account. When creating a pool, choose arguments + from either Cloud Services Configuration or Virtual Machine Configuration. + delete : Deletes a pool from the specified account. + list : Lists all of the pools in the specified account. + reset : Update the properties of the specified pool. All updatable properties are + replaced with the values specified or reset to default values if unspecified. + resize : Resize (or stop resizing) the Batch pool. + set : Update the properties of the specified pool. Properties can be updated + independently, but when a property is updated in a sub-group, for example + 'start task', all properties of that group are reset. + show : Gets information about the specified pool. + + +(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 pool list --help + +Command + az batch pool list: Lists all of the pools in the specified account. + +Arguments + +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 + --expand : An OData $expand clause. + --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 pool delete --help + +Command + az batch pool delete: Deletes a pool from the specified account. + When you request that a pool be deleted, the following actions occur: the pool state is set + to deleting; any ongoing resize operation on the pool are stopped; the Batch service starts + resizing the pool to zero nodes; any tasks running on existing nodes are terminated and + requeued (as if a resize pool operation had been requested with the default requeue option); + finally, the pool is removed from the system. Because running tasks are requeued, the user + can rerun these tasks by updating their job to target a different pool. The tasks can then + run on the new pool. If you want to override the requeue behavior, then you should call + resize pool explicitly to shrink the pool to zero size before deleting the pool. If you call + an Update, Patch or Delete API on a pool in the deleting state, it will fail with HTTP + status code 409 with error code PoolBeingDeleted. + +Arguments + --pool-id [Required]: The ID of the pool to delete. + --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. + +Pre-condition and Query Arguments + --if-match : An ETag value associated with the version of the resource known to the + client. The operation will be performed only if the resource's current + ETag on the service exactly matches the value specified by the client. + --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-none-match : An ETag value associated with the version of the resource known to the + client. The operation will be performed only if the resource's current + ETag on the service does not match the value specified by the client. + --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. + +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 show --help + +Command + az batch pool show: Gets information about the specified pool. + +Arguments + --pool-id [Required]: The ID of the pool to get. + +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 + --expand : An OData $expand clause. + --if-match : An ETag value associated with the version of the resource known to the + client. The operation will be performed only if the resource's current + ETag on the service exactly matches the value specified by the client. + --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-none-match : An ETag value associated with the version of the resource known to the + client. The operation will be performed only if the resource's current + ETag on the service does not match the value specified by the client. + --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. + --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 pool set --help + +Command + az batch pool set: Update the properties of the specified pool. Properties can be updated + independently, but when a property is updated in a sub-group, for example 'start task', all + properties of that group are reset. + +Arguments + --pool-id [Required]: The ID of the pool to update. + --json-file : A file containing the pool patch parameter 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-package-references : A list of application packages to be installed on each + compute node in the pool. Changes to application package + references affect all new compute nodes joining the pool, but + do not affect compute nodes that are already in the pool + until they are rebooted or reimaged. If this element is + present, it replaces any existing application package + references. If you specify an empty collection, then all + application package references are removed from the pool. If + omitted, any existing application package references are left + unchanged. Space separated application IDs with optional + version in 'id[#version]' format. + --certificate-references : A list of certificates to be installed on each compute node + in the pool. If omitted, any existing certificate references + are left unchanged. 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. + --metadata : A list of name-value pairs associated with the pool as + metadata. If this element is present, it replaces any + existing metadata configured on the pool. If you specify an + empty collection, any metadata is removed from the pool. If + omitted, any existing metadata is left unchanged. Space + separated values in 'key=value' format. + +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-environment-settings: A list of environment variable settings for the start task. + Space separated values in 'key=value' format. + --start-task-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. + --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. Specify either 'true' or 'false' to update the + property. + +Pre-condition and Query Arguments + --if-match : An ETag value associated with the version of the resource + known to the client. The operation will be performed only if + the resource's current ETag on the service exactly matches + the value specified by the client. + --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-none-match : An ETag value associated with the version of the resource + known to the client. The operation will be performed only if + the resource's current ETag on the service does not match the + value specified by the client. + --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. + +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 reset --help + +Command + az batch pool reset: Update the properties of the specified pool. All updatable properties are + replaced with the values specified or reset to default values if unspecified. + +Arguments + --pool-id [Required]: The ID of the pool to update. + --json-file : The file containing pool update properties parameter + specification in JSON format. If this parameter is specified, + all 'Pool Update Properties Parameter Arguments' are ignored. + +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. + +Pool Arguments + --application-package-references : A list of application packages to be installed on each + compute node in the pool. Changes to application package + references affect all new compute nodes joining the pool, but + do not affect compute nodes that are already in the pool + until they are rebooted or reimaged. The list replaces any + existing application package references. If omitted, or if + you specify an empty collection, any existing application + packages references are removed from the pool. + --certificate-references : A list of certificates to be installed on each compute node + in the pool. If you specify an empty collection, any existing + certificate references are removed from 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. + --metadata : A list of name-value pairs associated with the pool as + metadata. This list replaces any existing metadata configured + on the pool. If omitted, or if you specify an empty + collection, any existing metadata is removed from the pool. + +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-environment-settings: A list of environment variable settings for the start task. + Space separated values in 'key=value' format. + --start-task-max-task-retry-count: The maximum number of times the task may be retried. + --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. True if flag + present, otherwise defaults to False. + +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 resize --help + +Command + az batch pool resize: Resize (or stop resizing) the Batch pool. + +Arguments + --pool-id [Required]: The ID of the pool. + --abort : Stop the pool resize operation. + --node-deallocation-option : When nodes may be removed from the pool, if the pool size is + decreasing. Allowed values: requeue, retainedData, taskCompletion, + terminate. + --resize-timeout : The timeout for allocation of compute nodes to the pool or removal + of compute nodes from the pool. 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). + --target-dedicated-nodes : The desired number of dedicated compute nodes in the pool. + --target-low-priority-nodes: The desired number of low-priority compute nodes in the pool. + +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. + +Pre-condition and Query Arguments + --if-match : The operation will be performed only if the resource's current ETag + exactly matches the specified value. + --if-modified-since : The operation will be performed only if the resource has been + modified since the specified timestamp. + --if-none-match : The operation will not be performed only if the resource's current + ETag exactly matches the specified value. + --if-unmodified-since : The operation will not be performed only if the resource has been + modified since the specified timestamp. + +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 node-agent-skus --help + +Group + az batch pool node-agent-skus: Retrieve node agent SKUs of pools using a Virtual Machine + Configuration. + +Commands: + list: Lists all node agent SKUs supported by the Azure Batch service. + + +(env) C:\Code\Forks\azure-cli>cmd /c az batch pool node-agent-skus list --help + +Command + az batch pool node-agent-skus list: Lists all node agent SKUs supported by the Azure Batch + service. + +Arguments + +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. + +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 os --help + +Group + az batch pool os: Manage the operating system of your Batch pools. + +Commands: + upgrade: Upgrades the operating system of the specified pool. + + +(env) C:\Code\Forks\azure-cli>cmd /c az batch pool os upgrade --help + +Command + az batch pool os upgrade: Upgrades the operating system of the specified pool. + During an upgrade, the Batch service upgrades each compute node in the pool. When a compute + node is chosen for upgrade, any tasks running on that node are removed from the node and + returned to the queue to be rerun later (or on a different compute node). The node will be + unavailable until the upgrade is complete. This operation results in temporarily reduced + pool capacity as nodes are taken out of service to be upgraded. Although the Batch service + tries to avoid upgrading all compute nodes at the same time, it does not guarantee to do + this (particularly on small pools); therefore, the pool may be temporarily unavailable to + run tasks. When this operation runs, the pool state changes to upgrading. When all compute + nodes have finished upgrading, the pool state returns to active. + +Arguments + --pool-id [Required]: The ID of the pool to upgrade. + --target-os-version [Required]: The Azure Guest OS version to be installed on the virtual + machines in the pool. + +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 + --if-match : An ETag value associated with the version of the resource known + to the client. The operation will be performed only if the + resource's current ETag on the service exactly matches the value + specified by the client. + --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-none-match : An ETag value associated with the version of the resource known + to the client. The operation will be performed only if the + resource's current ETag on the service does not match the value + specified by the client. + --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. + +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 usage-metrics --help + +Group + az batch pool usage-metrics: View usage metrics of your Batch pools. + +Commands: + list: Lists the usage metrics, aggregated by pool across individual time intervals, for the + specified account. + + +(env) C:\Code\Forks\azure-cli>cmd /c az batch pool usage-metrics list --help + +Command + az batch pool usage-metrics list: Lists the usage metrics, aggregated by pool across individual + time intervals, for the specified account. + If you do not specify a $filter clause including a poolId, the response includes all pools + that existed in the account in the time range of the returned aggregation intervals. + +Arguments + +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-time : The latest time from which to include metrics. This must be at least two + hours before the current time. If not specified this defaults to the end + time of the last aggregation interval currently available. + --filter : An OData $filter clause. If this is not specified the response includes all + pools that existed in the account in the time range of the returned + aggregation intervals. + --start-time : The earliest time from which to include metrics. This must be at least two + and a half hours before the current time. If not specified this defaults to + the start time of the last aggregation interval currently available. + +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 all-statistics --help + +Group + az batch pool all-statistics: View statistics of all pools under your Batch account. + +Commands: + show: Get lifetime summary statistics for all of the pools in the specified account. Statistics + are aggregated across all pools that have ever existed in the account, from account + creation to the last update time of the statistics. + + +(env) C:\Code\Forks\azure-cli>cmd /c az batch pool all-statistics show --help + +Command + az batch pool all-statistics show: Get lifetime summary statistics for all of the pools in the + specified account. Statistics are aggregated across all pools that have ever existed in the + account, from account creation to the last update time of the statistics. + +Arguments + +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. + +(env) C:\Code\Forks\azure-cli>cmd /c az batch pool autoscale --help + +Group + az batch pool autoscale: Manage automatic scaling of your Batch pools. + +Commands: + disable : Disables automatic scaling for a pool. + enable : Enables automatic scaling for a pool. + evaluate: Gets the result of evaluating an automatic scaling formula on the pool. + + +(env) C:\Code\Forks\azure-cli>cmd /c az batch pool autoscale enable --help + +Command + az batch pool autoscale enable: Enables automatic scaling for a pool. + You cannot enable automatic scaling on a pool if a resize operation is in progress on the + pool. If automatic scaling of the pool is currently disabled, you must specify a valid + autoscale formula as part of the request. If automatic scaling of the pool is already + enabled, you may specify a new autoscale formula and/or a new evaluation interval. You + cannot call this API for the same pool more than once every 30 seconds. + +Arguments + --pool-id [Required]: The ID of the pool on which to enable automatic scaling. + --auto-scale-evaluation-interval: The time interval at which to automatically adjust the pool + size according to the autoscale formula. The default value is + 15 minutes. The minimum and maximum value are 5 minutes and + 168 hours respectively. If you specify a value less than 5 + minutes or greater than 168 hours, the Batch service rejects + the request with an invalid property value error; if you are + calling the REST API directly, the HTTP status code is 400 + (Bad Request). If you specify a new interval, then the + existing autoscale evaluation schedule will be stopped and a + new autoscale evaluation schedule will be started, with its + starting time being the time when this request was issued. + --auto-scale-formula : The formula for the desired number of compute nodes in the + pool. The formula is checked for validity before it is applied + to the pool. If the formula is not valid, the Batch service + rejects the request with detailed error information. For more + information about specifying this formula, see Automatically + scale compute nodes in an Azure Batch pool + (https://azure.microsoft.com/en- + us/documentation/articles/batch-automatic-scaling). + +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 + --if-match : An ETag value associated with the version of the resource + known to the client. The operation will be performed only if + the resource's current ETag on the service exactly matches the + value specified by the client. + --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-none-match : An ETag value associated with the version of the resource + known to the client. The operation will be performed only if + the resource's current ETag on the service does not match the + value specified by the client. + --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. + +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 autoscale disable --help + +Command + az batch pool autoscale disable: Disables automatic scaling for a pool. + +Arguments + --pool-id [Required]: The ID of the pool on which to disable automatic scaling. + +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. + +(env) C:\Code\Forks\azure-cli>cmd /c az batch pool autoscale evaluate --help + +Command + az batch pool autoscale evaluate: Gets the result of evaluating an automatic scaling formula on + the pool. + This API is primarily for validating an autoscale formula, as it simply returns the result + without applying the formula to the pool. + +Arguments + --auto-scale-formula [Required]: The formula for the desired number of compute nodes in the + pool. The formula is validated and its results calculated, but + it is not applied to the pool. To apply the formula to the + pool, 'Enable automatic scaling on a pool'. For more + information about specifying this formula, see Automatically + scale compute nodes in an Azure Batch pool + (https://azure.microsoft.com/en- + us/documentation/articles/batch-automatic-scaling). + --pool-id [Required]: The ID of the pool on which to evaluate the automatic scaling + formula. + +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. + +(env) C:\Code\Forks\azure-cli>cmd /c az batch node --help + +Group + az batch node: Manage your Batch compute nodes. + +Subgroups: + file : Manage your Batch compute node files. + remote-desktop : Retrieve the remote desktop protocol for a Batch compute node. + remote-login-settings: Retrieve the remote login settings for a Batch compute node. + scheduling : Manage task scheduling for a Batch compute node. + user : Manage the user accounts of your Batch compute node. + +Commands: + delete : Removes compute nodes from the specified pool. + list : Lists the compute nodes in the specified pool. + reboot : Restarts the specified compute node. + reimage : Reinstalls the operating system on the specified compute node. + show : Gets information about the specified compute node. + + +(env) C:\Code\Forks\azure-cli>cmd /c az batch node delete --help + +Command + az batch node delete: Removes compute nodes from the specified pool. + This operation can only run when the allocation state of the pool is steady. When this + operation runs, the allocation state changes from steady to resizing. + +Arguments + --pool-id [Required]: The ID of the pool from which you want to remove nodes. + --json-file : A file containing the node remove parameter specification in JSON + format. If this parameter is specified, all 'Node Remove 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. + +Node Remove Arguments + --node-deallocation-option: Determines what to do with a node and its running task(s) after it + has been selected for deallocation. The default value is requeue. + Allowed values: requeue, retainedData, taskCompletion, terminate. + --node-list : A list containing the ids of the compute nodes to be removed from + the specified pool. Space separated values. + --resize-timeout : The timeout for removal of compute nodes to the pool. 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. + +Pre-condition and Query Arguments + --if-match : An ETag value associated with the version of the resource known to + the client. The operation will be performed only if the resource's + current ETag on the service exactly matches the value specified by + the client. + --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-none-match : An ETag value associated with the version of the resource known to + the client. The operation will be performed only if the resource's + current ETag on the service does not match the value specified by + the client. + --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. + +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 show --help + +Command + az batch node show: Gets information about the specified compute node. + +Arguments + --node-id [Required]: The ID of the compute node that you want to get information about. + --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 + --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 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 reboot --help + +Command + az batch node reboot: Restarts the specified compute node. + You can restart a node only if it is in an idle or running state. + +Arguments + --node-id [Required]: The ID of the compute node that you want to restart. + --pool-id [Required]: The ID of the pool that contains the compute node. + --node-reboot-option: When to reboot the compute node and what to do with currently running + tasks. The default value is requeue. Allowed values: 'requeue', + 'retainedData', 'taskCompletion', 'terminate'. + +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. + +(env) C:\Code\Forks\azure-cli>cmd /c az batch node reimage --help + +Command + az batch node reimage: Reinstalls the operating system on the specified compute node. + You can reinstall the operating system on a node only if it is in an idle or running state. + This API can be invoked only on pools created with the cloud service configuration property. + +Arguments + --node-id [Required]: The ID of the compute node that you want to restart. + --pool-id [Required]: The ID of the pool that contains the compute node. + --node-reimage-option: When to reimage the compute node and what to do with currently running + tasks. The default value is requeue. Allowed values: 'requeue', + 'retainedData', 'taskCompletion', 'terminate'. + +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. + +(env) C:\Code\Forks\azure-cli>cmd /c az batch node user --help + +Group + az batch node user: Manage the user accounts of your Batch compute node. + +Commands: + create: Add a user account to the specified compute node. + delete: Deletes a user account from the specified compute node. + reset : Update the properties of a user account on the specified compute node. All updatable + properties are replaced with the values specified or reset if unspecified. + + +(env) C:\Code\Forks\azure-cli>cmd /c az batch node user create --help + +Command + az batch node user create: Add a user account to the specified compute node. + +Arguments + --node-id [Required]: The ID of the machine on which you want to create a user account. + --pool-id [Required]: The ID of the pool that contains the compute node. + --json-file : A file containing the user specification in JSON format. If this parameter + is specified, all 'User 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. + +User Arguments + --expiry-time : The time at which the account should expire. If omitted, the default is 1 + day from the current time. For Linux compute nodes, the expiryTime has a + precision up to a day. Expected format is an ISO-8601 timestamp. + --is-admin : Whether the account should be an administrator on the compute node. The + default value is false. True if flag present. + --name : The user name of the account. + --password : The password of the account. The password is required for Windows nodes + (those created with 'cloudServiceConfiguration', or created with + 'virtualMachineConfiguration' using a Windows image reference). For Linux + compute nodes, the password can optionally be specified along with the + sshPublicKey property. + --ssh-public-key : The SSH public key that can be used for remote login to the compute node. + The public key should be compatible with OpenSSH encoding and should be + base 64 encoded. This property can be specified only for Linux nodes. If + this is specified for a Windows node, then the Batch service rejects the + request; if you are calling the REST API directly, the HTTP status code is + 400 (Bad Request). + +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 user delete --help + +Command + az batch node user delete: Deletes a user account from the specified compute node. + You can delete a user account to a node only when it is in the idle or running state. + +Arguments + --node-id [Required]: The ID of the machine on which you want to delete a user account. + --pool-id [Required]: The ID of the pool that contains the compute node. + --user-name [Required]: The name of the user account to delete. + --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. + +(env) C:\Code\Forks\azure-cli>cmd /c az batch node user reset --help + +Command + az batch node user reset: Update the properties of a user account on the specified compute node. + All updatable properties are replaced with the values specified or reset if unspecified. + +Arguments + --node-id [Required]: The ID of the machine on which you want to update a user account. + --pool-id [Required]: The ID of the pool that contains the compute node. + --user-name [Required]: The name of the user account to update. + --json-file : A file containing the node update user parameter specification in JSON + format. If this parameter is specified, all 'Node Update User 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. + +Node Update User Arguments + --expiry-time : The time at which the account should expire. If omitted, the default is + 1 day from the current time. For Linux compute nodes, the expiryTime has + a precision up to a day. Expected format is an ISO-8601 timestamp. + --password : The password of the account. The password is required for Windows nodes + (those created with 'cloudServiceConfiguration', or created with + 'virtualMachineConfiguration' using a Windows image reference). For + Linux compute nodes, the password can optionally be specified along with + the sshPublicKey property. If omitted, any existing password is removed. + --ssh-public-key : The SSH public key that can be used for remote login to the compute + node. The public key should be compatible with OpenSSH encoding and + should be base 64 encoded. This property can be specified only for Linux + nodes. If this is specified for a Windows node, then the Batch service + rejects the request; if you are calling the REST API directly, the HTTP + status code is 400 (Bad Request). If omitted, any existing SSH public + key is removed. + +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 scheduling --help + +Group + az batch node scheduling: Manage task scheduling for a Batch compute node. + +Commands: + disable: Disables task scheduling on the specified compute node. + enable : Enables task scheduling on the specified compute node. + + +(env) C:\Code\Forks\azure-cli>cmd /c az batch node scheduling disable --help + +Command + az batch node scheduling disable: Disables task scheduling on the specified compute node. + +Arguments + --node-id [Required]: The ID of the compute node on which you want to disable task + scheduling. + --pool-id [Required]: The ID of the pool that contains the compute node. + --node-disable-scheduling-option: What to do with currently running tasks when disabling task + scheduling on the compute node. The default value is requeue. + Allowed values: 'requeue', 'taskCompletion', 'terminate'. + +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. + +(env) C:\Code\Forks\azure-cli>cmd /c az batch node scheduling enable --help + +Command + az batch node scheduling enable: Enables task scheduling on the specified compute node. + +Arguments + --node-id [Required]: The ID of the compute node on which you want to enable task scheduling. + --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. + +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 remote-login-settings --help + +Group + az batch node remote-login-settings: Retrieve the remote login settings for a Batch compute + node. + +Commands: + show: Gets the settings required for remote login to a compute node. + + +(env) C:\Code\Forks\azure-cli>cmd /c az batch node remote-login-settings show --help + +Command + az batch node remote-login-settings show: Gets the settings required for remote login to a + compute node. + Before you can remotely login to a node using the remote login settings, you must create a + user account on the node. This API can be invoked only on pools created with the virtual + machine configuration property. + +Arguments + --node-id [Required]: The ID of the compute node for which to obtain the remote login settings. + --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. + +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 remote-desktop --help + +Group + az batch node remote-desktop: Retrieve the remote desktop protocol for a Batch compute node. + +Commands: + download: Gets the Remote Desktop Protocol file for the specified compute node. + + +(env) C:\Code\Forks\azure-cli>cmd /c az batch node remote-desktop download --help + +Command + az batch node remote-desktop download: Gets the Remote Desktop Protocol file for the specified + compute node. + Before you can access a node by using the RDP file, you must create a user account on the + node. This API can only be invoked on pools created with the cloud service configuration + property. + +Arguments + --destination [Required]: The path to the destination file or directory. + --node-id [Required]: The ID of the compute node for which you want to get the Remote + Desktop Protocol 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. + +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 --help + +Group + az batch node file: Manage your Batch compute node files. + +Commands: + delete : Deletes the specified file from the compute node. + download: Download the content of the specified node file. + list : Lists all of the files in task directories on the specified compute node. + show : Gets the properties of the specified compute node file. + + +(env) C:\Code\Forks\azure-cli>cmd /c az batch node file delete --help + +Command + az batch node file delete: Deletes the specified file from the compute node. + +Arguments + --file-path [Required]: The path to the file that you want to delete. + --node-id [Required]: The ID of the compute node from which you want to delete the file. + --pool-id [Required]: The ID of the pool that contains the compute node. + --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. + +(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 node file show --help + +Command + az batch node file show: Gets the properties of the specified compute node file. + +Arguments + --file-path [Required]: The path to the compute node file that you want to get the properties + 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 + --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. + +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 list --help + +Command + az batch node file list: Lists all of the files in task directories on the specified compute + node. + +Arguments + --node-id [Required]: The ID of the compute node whose files you want to list. + --pool-id [Required]: The ID of the pool that contains the compute node. + --recursive : Whether to list children of a directory. + +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. + +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 --help + +Group + az batch job: Manage your Batch jobs. + +Subgroups: + all-statistics : View statistics of all the jobs under your Batch account. + prep-release-status: View the status of your job preparation and release tasks. + +Commands: + create : Add a job to the specified account. + delete : Deletes a job. + disable : Disables the specified job, preventing new tasks from running. + enable : Enables the specified job, allowing new tasks to run. + list : List all of the jobs in the specified account or the specified job + schedule. + reset : Update the properties of a job. All updatable properties are replaced with + the values specified or reset to default vaules if unspecified. + set : Update the properties of a job. Properties can be updated independently, + but when a property is updated in a sub-group, for example 'constraints' or + 'pool info', all properties of that group are reset. + show : Gets information about the specified job. + stop : Terminates the specified job, marking it as completed. + + +(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 delete --help + +Command + az batch job delete: Deletes a job. + Deleting a job also deletes all tasks that are part of that job, and all job statistics. + This also overrides the retention period for task data; that is, if the job contains tasks + which are still retained on compute nodes, the Batch services deletes those tasks' working + directories and all their contents. + +Arguments + --job-id [Required]: The ID of the job to delete. + --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. + +Pre-condition and Query Arguments + --if-match : An ETag value associated with the version of the resource known to the + client. The operation will be performed only if the resource's current + ETag on the service exactly matches the value specified by the client. + --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-none-match : An ETag value associated with the version of the resource known to the + client. The operation will be performed only if the resource's current + ETag on the service does not match the value specified by the client. + --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. + +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 show --help + +Command + az batch job show: Gets information about the specified job. + +Arguments + --job-id [Required]: The ID of the job. + +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 + --expand : An OData $expand clause. + --if-match : An ETag value associated with the version of the resource known to the + client. The operation will be performed only if the resource's current + ETag on the service exactly matches the value specified by the client. + --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-none-match : An ETag value associated with the version of the resource known to the + client. The operation will be performed only if the resource's current + ETag on the service does not match the value specified by the client. + --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. + --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 job set --help + +Command + az batch job set: Update the properties of a job. Properties can be updated independently, but + when a property is updated in a sub-group, for example 'constraints' or 'pool info', all + properties of that group are reset. + +Arguments + --job-id [Required]: The ID of the job whose properties you want to update. + --json-file : A file containing the job patch parameter 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 + --metadata : A list of name-value pairs associated with the job as metadata. If + omitted, the existing job metadata is left unchanged. Space + separated values in 'key=value' format. + --on-all-tasks-complete : The action the Batch service should take when all tasks in the job + are in the completed state. If omitted, the completion behavior is + left unchanged. You may not change the value from terminateJob to + noAction - that is, once you have engaged automatic job termination, + you cannot turn it off again. If you try to do this, the request + fails with an 'invalid property value' error response; if you are + calling the REST API directly, the HTTP status code is 400 (Bad + Request). Allowed values: noAction, terminateJob. + --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. If omitted, the priority of the job is left + unchanged. + +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: Pool Info Arguments + --pool-id : The id of an existing pool. All the tasks of the job will run on the + specified pool. + +Pre-condition and Query Arguments + --if-match : An ETag value associated with the version of the resource known to + the client. The operation will be performed only if the resource's + current ETag on the service exactly matches the value specified by + the client. + --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-none-match : An ETag value associated with the version of the resource known to + the client. The operation will be performed only if the resource's + current ETag on the service does not match the value specified by + the client. + --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. + +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 reset --help + +Command + az batch job reset: Update the properties of a job. All updatable properties are replaced with + the values specified or reset to default vaules if unspecified. + +Arguments + --job-id [Required]: The ID of the job whose properties you want to update. + --json-file : A file containing the job update parameter 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 + --metadata : A list of name-value pairs associated with the job as metadata. If + omitted, it takes the default value of an empty list; in effect, any + existing metadata is deleted. Space separated values in 'key=value' + format. + --on-all-tasks-complete : The action the Batch service should take when all tasks in the job + are in the completed state. If omitted, the completion behavior is + set to noAction. If the current value is terminateJob, this is an + error because a job's completion behavior may not be changed from + terminateJob to noAction. Allowed values: noAction, terminateJob. + --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. If omitted, it is set to the default value 0. + +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: Pool Info Arguments + --pool-id : The id of an existing pool. All the tasks of the job will run on the + specified pool. + +Pre-condition and Query Arguments + --if-match : An ETag value associated with the version of the resource known to + the client. The operation will be performed only if the resource's + current ETag on the service exactly matches the value specified by + the client. + --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-none-match : An ETag value associated with the version of the resource known to + the client. The operation will be performed only if the resource's + current ETag on the service does not match the value specified by + the client. + --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. + +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 list --help + +Command + az batch job list: List all of the jobs in the specified account or the specified job schedule. + +Arguments + --job-schedule-id : The ID of the job schedule from which you want to get a list of jobs. If + omitted, lists all jobs in the account. + +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. + +Pre-condition and Query Arguments + --expand : An OData $expand clause. + --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 job disable --help + +Command + az batch job disable: Disables the specified job, preventing new tasks from running. + The Batch Service immediately moves the job to the disabling state. Batch then uses the + disableTasks parameter to determine what to do with the currently running tasks of the job. + The job remains in the disabling state until the disable operation is completed and all + tasks have been dealt with according to the disableTasks option; the job then moves to the + disabled state. No new tasks are started under the job until it moves back to active state. + If you try to disable a job that is in any state other than active, disabling, or disabled, + the request fails with status code 409. + +Arguments + --job-id [Required]: The ID of the job to disable. + --disable-tasks : What to do with active tasks associated with the job. requeue - Terminate + running tasks and requeue them. The tasks will run again when the job is + enabled. terminate - Terminate running tasks. The tasks will not run + again. wait - Allow currently running tasks to complete. Allowed values: + 'requeue', 'terminate', 'wait'. + +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 + --if-match : An ETag value associated with the version of the resource known to the + client. The operation will be performed only if the resource's current + ETag on the service exactly matches the value specified by the client. + --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-none-match : An ETag value associated with the version of the resource known to the + client. The operation will be performed only if the resource's current + ETag on the service does not match the value specified by the client. + --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. + +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 enable --help + +Command + az batch job enable: Enables the specified job, allowing new tasks to run. + When you call this API, the Batch service sets a disabled job to the enabling state. After + the this operation is completed, the job moves to the active state, and scheduling of new + tasks under the job resumes. The Batch service does not allow a task to remain in the active + state for more than 7 days. Therefore, if you enable a job containing active tasks which + were added more than 7 days ago, those tasks will not run. + +Arguments + --job-id [Required]: The ID of the job to enable. + +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 + --if-match : An ETag value associated with the version of the resource known to the + client. The operation will be performed only if the resource's current + ETag on the service exactly matches the value specified by the client. + --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-none-match : An ETag value associated with the version of the resource known to the + client. The operation will be performed only if the resource's current + ETag on the service does not match the value specified by the client. + --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. + +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 stop --help + +Command + az batch job stop: Terminates the specified job, marking it as completed. + When a Terminate Job request is received, the Batch service sets the job to the terminating + state. The Batch service then terminates any active or running tasks associated with the + job, and runs any required Job Release tasks. The job then moves into the completed state. + +Arguments + --job-id [Required]: The ID of the job to terminate. + --terminate-reason : The text you want to appear as the job's TerminateReason. The default is + 'UserTerminate'. + +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 + --if-match : An ETag value associated with the version of the resource known to the + client. The operation will be performed only if the resource's current + ETag on the service exactly matches the value specified by the client. + --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-none-match : An ETag value associated with the version of the resource known to the + client. The operation will be performed only if the resource's current + ETag on the service does not match the value specified by the client. + --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. + +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 all-statistics --help + +Group + az batch job all-statistics: View statistics of all the jobs under your Batch account. + +Commands: + show: Get lifetime summary statistics for all of the jobs in the specified account. Statistics + are aggregated across all jobs that have ever existed in the account, from account + creation to the last update time of the statistics. + + +(env) C:\Code\Forks\azure-cli>cmd /c az batch job all-statistics show --help + +Command + az batch job all-statistics show: Get lifetime summary statistics for all of the jobs in the + specified account. Statistics are aggregated across all jobs that have ever existed in the + account, from account creation to the last update time of the statistics. + +Arguments + +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. + +(env) C:\Code\Forks\azure-cli>cmd /c az batch job prep-release-status --help + +Group + az batch job prep-release-status: View the status of your job preparation and release tasks. + +Commands: + list: Lists the execution status of the Job Preparation and Job Release task for the specified + job across the compute nodes where the job has run. + + +(env) C:\Code\Forks\azure-cli>cmd /c az batch job prep-release-status list --help + +Command + az batch job prep-release-status list: Lists the execution status of the Job Preparation and Job + Release task for the specified job across the compute nodes where the job has run. + This API returns the Job Preparation and Job Release task status on all compute nodes that + have run the Job Preparation or Job Release task. This includes nodes which have since been + removed from the pool. . + +Arguments + --job-id [Required]: The ID of the job. + +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 job-schedule --help + +Group + az batch job-schedule: Manage your Batch job schedules. + +Commands: + create : Add a job schedule to the specified account. + delete : Deletes a job schedule from the specified account. + disable: Disables a job schedule. + enable : Enables a job schedule. + list : Lists all of the job schedules in the specified account. + reset : Update the properties of the specified job schedule. All updatable properties are + replaced with the values specified or reset to default values if unspecified. An + updated job specification only applies to new jobs. + set : Update the properties of the specified job schedule. You can independently update the + 'schedule' and the 'job specification', but any change to either of these entities will + reset all properties in that entity. + show : Gets information about the specified job schedule. + stop : Terminates a job schedule. + + +(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 job-schedule delete --help + +Command + az batch job-schedule delete: Deletes a job schedule from the specified account. + When you delete a job schedule, this also deletes all jobs and tasks under that schedule. + When tasks are deleted, all the files in their working directories on the compute nodes are + also deleted (the retention period is ignored). The job schedule statistics are no longer + accessible once the job schedule is deleted, though they are still counted towards account + lifetime statistics. + +Arguments + --job-schedule-id [Required]: The ID of the job schedule to delete. + --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. + +Pre-condition and Query Arguments + --if-match : An ETag value associated with the version of the resource known to + the client. The operation will be performed only if the resource's + current ETag on the service exactly matches the value specified by + the client. + --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-none-match : An ETag value associated with the version of the resource known to + the client. The operation will be performed only if the resource's + current ETag on the service does not match the value specified by + the client. + --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. + +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 show --help + +Command + az batch job-schedule show: Gets information about the specified job schedule. + +Arguments + --job-schedule-id [Required]: The ID of the job schedule to get. + +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 + --expand : An OData $expand clause. + --if-match : An ETag value associated with the version of the resource known to + the client. The operation will be performed only if the resource's + current ETag on the service exactly matches the value specified by + the client. + --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-none-match : An ETag value associated with the version of the resource known to + the client. The operation will be performed only if the resource's + current ETag on the service does not match the value specified by + the client. + --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. + --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 job-schedule set --help + +Command + az batch job-schedule set: Update the properties of the specified job schedule. You can + independently update the 'schedule' and the 'job specification', but any change to either of + these entities will reset all properties in that entity. + +Arguments + --job-schedule-id [Required]: The ID of the job schedule to update. + --json-file : A file containing the job schedule patch + parameter specification in JSON format. If + this parameter is specified, all '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. + +Job Schedule Arguments + --metadata : A list of name-value pairs associated with + the job schedule as metadata. If you do not + specify this element, existing metadata is + left unchanged. Space separated values in + 'key=value' format. + +Job Schedule: Job Specification Arguments + --job-metadata : A list of name-value pairs associated with + each job created under this 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. + --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. Specify either + 'true' or 'false' to update the property. + +Job Schedule: Job Specification: Job Manager Task Arguments + --job-manager-task-application-package-references: A list of application packages that the Batch + service will deploy to the compute node + before running the command line. Application + packages are downloaded and deployed to a + shared directory, not the task directory. + Therefore, if a referenced package is already + on the compute node, and is up to date, then + it is not re-downloaded; the existing copy on + the compute node is used. If a referenced + application package cannot be installed, for + example because the package has been deleted + or because download failed, the task fails + with a scheduling error. This property is + currently not supported on jobs running on + pools created using the + virtualMachineConfiguration (IaaS) property. + If a task specifying + applicationPackageReferences runs on such a + pool, it fails with a scheduling error with + code TaskSchedulingConstraintFailed. Space + separated application IDs with optional + version in 'id[#version]' format. + --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 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. + +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. + +Pre-condition and Query Arguments + --if-match : An ETag value associated with the version of + the resource known to the client. The + operation will be performed only if the + resource's current ETag on the service + exactly matches the value specified by the + client. + --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-none-match : An ETag value associated with the version of + the resource known to the client. The + operation will be performed only if the + resource's current ETag on the service does + not match the value specified by the client. + --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. + +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 reset --help + +Command + az batch job-schedule reset: Update the properties of the specified job schedule. All updatable + properties are replaced with the values specified or reset to default values if unspecified. An + updated job specification only applies to new jobs. + +Arguments + --job-schedule-id [Required]: The ID of the job schedule to update. + --json-file : A file containing the job schedule update + parameter specification in JSON format. If + this parameter is specified, all '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. + +Job Schedule Arguments + --metadata : A list of name-value pairs associated with + the job schedule as metadata. If you do not + specify this element, it takes the default + value of an empty list; in effect, any + existing metadata is deleted. Space separated + values in 'key=value' format. + +Job Schedule: Job Specification Arguments + --job-metadata : A list of name-value pairs associated with + each job created under this 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. + --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. + +Job Schedule: Job Specification: Job Manager Task Arguments + --job-manager-task-application-package-references: A list of application packages that the Batch + service will deploy to the compute node + before running the command line. Application + packages are downloaded and deployed to a + shared directory, not the task directory. + Therefore, if a referenced package is already + on the compute node, and is up to date, then + it is not re-downloaded; the existing copy on + the compute node is used. If a referenced + application package cannot be installed, for + example because the package has been deleted + or because download failed, the task fails + with a scheduling error. This property is + currently not supported on jobs running on + pools created using the + virtualMachineConfiguration (IaaS) property. + If a task specifying + applicationPackageReferences runs on such a + pool, it fails with a scheduling error with + code TaskSchedulingConstraintFailed. Space + separated application IDs with optional + version in 'id[#version]' format. + --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 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. + +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. + +Pre-condition and Query Arguments + --if-match : An ETag value associated with the version of + the resource known to the client. The + operation will be performed only if the + resource's current ETag on the service + exactly matches the value specified by the + client. + --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-none-match : An ETag value associated with the version of + the resource known to the client. The + operation will be performed only if the + resource's current ETag on the service does + not match the value specified by the client. + --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. + +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 disable --help + +Command + az batch job-schedule disable: Disables a job schedule. + No new jobs will be created until the job schedule is enabled again. + +Arguments + --job-schedule-id [Required]: The ID of the job schedule to disable. + +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 + --if-match : An ETag value associated with the version of the resource known to + the client. The operation will be performed only if the resource's + current ETag on the service exactly matches the value specified by + the client. + --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-none-match : An ETag value associated with the version of the resource known to + the client. The operation will be performed only if the resource's + current ETag on the service does not match the value specified by + the client. + --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. + +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 enable --help + +Command + az batch job-schedule enable: Enables a job schedule. + +Arguments + --job-schedule-id [Required]: The ID of the job schedule to enable. + +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 + --if-match : An ETag value associated with the version of the resource known to + the client. The operation will be performed only if the resource's + current ETag on the service exactly matches the value specified by + the client. + --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-none-match : An ETag value associated with the version of the resource known to + the client. The operation will be performed only if the resource's + current ETag on the service does not match the value specified by + the client. + --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. + +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 stop --help + +Command + az batch job-schedule stop: Terminates a job schedule. + +Arguments + --job-schedule-id [Required]: The ID of the job schedule to terminates. + +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 + --if-match : An ETag value associated with the version of the resource known to + the client. The operation will be performed only if the resource's + current ETag on the service exactly matches the value specified by + the client. + --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-none-match : An ETag value associated with the version of the resource known to + the client. The operation will be performed only if the resource's + current ETag on the service does not match the value specified by + the client. + --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. + +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 list --help + +Command + az batch job-schedule list: Lists all of the job schedules in the specified account. + +Arguments + +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 + --expand : An OData $expand clause. + --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 task --help + +Group + az batch task: Manage your Batch tasks. + +Subgroups: + file : Manage your Batch task files. + subtask : Manage subtask information of your Batch task. + +Commands: + create : Create a single Batch task or multiple Batch tasks. + delete : Deletes a task from the specified job. + list : Lists all of the tasks that are associated with the specified job. + reactivate: Reactivates the specified task. + reset : Update the properties of the specified task. All updatable properties are replaced + with the values specified or reset if unspecified. + show : Gets information about the specified task. + stop : Terminates the specified task. + + +(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 list --help + +Command + az batch task list: Lists all of the tasks that are associated with the specified job. + For multi-instance tasks, information such as affinityId, executionInfo and nodeInfo refer + to the primary task. Use the list subtasks API to retrieve information about subtasks. + +Arguments + --job-id [Required]: The ID of the job. + +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 + --expand : An OData $expand clause. + --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 task delete --help + +Command + az batch task delete: Deletes a task from the specified job. + When a task is deleted, all of the files in its directory on the compute node where it ran + are also deleted (regardless of the retention time). For multi-instance tasks, the delete + task operation applies synchronously to the primary task; subtasks and their files are then + deleted asynchronously in the background. + +Arguments + --job-id [Required]: The ID of the job from which to delete the task. + --task-id [Required]: The ID of the task to delete. + --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. + +Pre-condition and Query Arguments + --if-match : An ETag value associated with the version of the resource known to the + client. The operation will be performed only if the resource's current + ETag on the service exactly matches the value specified by the client. + --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-none-match : An ETag value associated with the version of the resource known to the + client. The operation will be performed only if the resource's current + ETag on the service does not match the value specified by the client. + --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. + +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 show --help + +Command + az batch task show: Gets information about the specified task. + For multi-instance tasks, information such as affinityId, executionInfo and nodeInfo refer + to the primary task. Use the list subtasks API to retrieve information about subtasks. + +Arguments + --job-id [Required]: The ID of the job that contains the task. + --task-id [Required]: The ID of the task to get information about. + +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 + --expand : An OData $expand clause. + --if-match : An ETag value associated with the version of the resource known to the + client. The operation will be performed only if the resource's current + ETag on the service exactly matches the value specified by the client. + --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-none-match : An ETag value associated with the version of the resource known to the + client. The operation will be performed only if the resource's current + ETag on the service does not match the value specified by the client. + --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. + --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 task reset --help + +Command + az batch task reset: Update the properties of the specified task. All updatable properties are + replaced with the values specified or reset if unspecified. + +Arguments + --job-id [Required]: The ID of the job containing the task. + --task-id [Required]: The ID of the task to update. + --json-file : A file containing the constraints specification in JSON format. If this + parameter is specified, all 'Constraints 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. + +Constraints Arguments + --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. Expected format is an ISO-8601 + duration. + --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. Expected format is an ISO-8601 duration. + +Pre-condition and Query Arguments + --if-match : An ETag value associated with the version of the resource known to the + client. The operation will be performed only if the resource's current + ETag on the service exactly matches the value specified by the client. + --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-none-match : An ETag value associated with the version of the resource known to the + client. The operation will be performed only if the resource's current + ETag on the service does not match the value specified by the client. + --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. + +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 reactivate --help + +Command + az batch task reactivate: Reactivates the specified task. + Reactivation makes a task eligible to be retried again up to its maximum retry count. The + task's state is changed to active. As the task is no longer in the completed state, any + previous exit code or scheduling error is no longer available after reactivation. This will + fail for tasks that are not completed or that previously completed successfully (with an + exit code of 0). Additionally, this will fail if the job has completed (or is terminating or + deleting). + +Arguments + --job-id [Required]: The ID of the job containing the task. + --task-id [Required]: The ID of the task to reactivate. + +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 + --if-match : An ETag value associated with the version of the resource known to the + client. The operation will be performed only if the resource's current + ETag on the service exactly matches the value specified by the client. + --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-none-match : An ETag value associated with the version of the resource known to the + client. The operation will be performed only if the resource's current + ETag on the service does not match the value specified by the client. + --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. + +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 stop --help + +Command + az batch task stop: Terminates the specified task. + When the task has been terminated, it moves to the completed state. For multi-instance + tasks, the terminate task operation applies synchronously to the primary task; subtasks are + then terminated asynchronously in the background. + +Arguments + --job-id [Required]: The ID of the job containing the task. + --task-id [Required]: The ID of the task to terminate. + +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 + --if-match : An ETag value associated with the version of the resource known to the + client. The operation will be performed only if the resource's current + ETag on the service exactly matches the value specified by the client. + --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-none-match : An ETag value associated with the version of the resource known to the + client. The operation will be performed only if the resource's current + ETag on the service does not match the value specified by the client. + --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. + +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 subtask --help + +Group + az batch task subtask: Manage subtask information of your Batch task. + +Commands: + list: Lists all of the subtasks that are associated with the specified multi-instance task. + + +(env) C:\Code\Forks\azure-cli>cmd /c az batch task subtask list --help + +Command + az batch task subtask list: Lists all of the subtasks that are associated with the specified + multi-instance task. + If the task is not a multi-instance task then this returns an empty collection. + +Arguments + --job-id [Required]: The ID of the job. + --task-id [Required]: The ID of the task. + +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 + --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 task file --help + +Group + az batch task file: Manage your Batch task files. + +Commands: + delete : Deletes the specified task file from the compute node where the task ran. + download: Download the content of the specified task file. + list : Lists the files in a task's directory on its compute node. + show : Gets the properties of the specified task file. + + +(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. + +(env) C:\Code\Forks\azure-cli>cmd /c az batch task file download --help + +Command + az batch task file download: Download the content of the specified task file. + +Arguments + --destination [Required]: The path to the destination file or directory. + --file-path [Required]: The path to the task file that you want to get the content of. + --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 retrieve. + +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 task file show --help + +Command + az batch task file show: Gets the properties of the specified task file. + +Arguments + --file-path [Required]: The path to the task file that you want to get the properties of. + --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 get the properties of. + +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 + --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. + +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 list --help + +Command + az batch task file list: Lists the files in a task's directory on its compute node. + +Arguments + --job-id [Required]: The ID of the job that contains the task. + --task-id [Required]: The ID of the task whose files you want to list. + --recursive : Whether to list children of a directory. This parameter can be used in + combination with the filter parameter to list specific type of files. + +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. + +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. diff --git a/src/command_modules/azure-cli-batch/tests/recordings/batch_short_help.txt b/src/command_modules/azure-cli-batch/tests/recordings/batch_short_help.txt new file mode 100644 index 000000000..f03a58189 --- /dev/null +++ b/src/command_modules/azure-cli-batch/tests/recordings/batch_short_help.txt @@ -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. diff --git a/src/command_modules/azure-cli-batch/tests/recordings/test_batch_account_cmd.yaml b/src/command_modules/azure-cli-batch/tests/recordings/test_batch_account_cmd.yaml new file mode 100644 index 000000000..39281547d --- /dev/null +++ b/src/command_modules/azure-cli-batch/tests/recordings/test_batch_account_cmd.yaml @@ -0,0 +1,1933 @@ +interactions: +- request: + body: '{"tags": {"use": "az-test"}, "location": "northeurope"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['55'] + 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":"northeurope","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['333'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:26:03 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: '{"kind": "Storage", "location": "northeurope", "sku": {"name": "Standard_LRS"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage account create] + Connection: [keep-alive] + Content-Length: ['79'] + 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 storagemanagementclient/1.0.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/providers/Microsoft.Storage/storageAccounts/clibatchteststorage1?api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:26:06 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:26:41 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:26:59 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:27:17 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:27:34 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:27:52 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:28:10 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:28:27 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:28:45 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:29:03 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:29:21 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:29:38 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:29:56 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:30:14 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:30:32 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:30:49 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:31:06 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:31:25 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:31:42 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:32:00 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:32:17 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:32:35 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:32:52 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:33:10 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:33:26 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:33:44 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:34:02 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:34:19 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:34:37 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:34:55 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:35:12 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:35:29 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:35:46 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:36:05 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:36:21 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:36:39 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:36:57 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:37:14 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:37:31 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/dab37cf4-afa2-48fc-a312-a4ee8c7fd635?monitor=true&api-version=2016-12-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststorage1","kind":"Storage","location":"northeurope","name":"clibatchteststorage1","properties":{"creationTime":"2017-05-16T19:26:06.9343340Z","primaryEndpoints":{"blob":"https://clibatchteststorage1.blob.core.windows.net/","file":"https://clibatchteststorage1.file.core.windows.net/","queue":"https://clibatchteststorage1.queue.core.windows.net/","table":"https://clibatchteststorage1.table.core.windows.net/"},"primaryLocation":"northeurope","provisioningState":"Succeeded","statusOfPrimary":"available","supportsHttpsTrafficOnly":false},"sku":{"name":"Standard_LRS","tier":"Standard"},"tags":{},"type":"Microsoft.Storage/storageAccounts"} + + '} + headers: + cache-control: [no-cache] + content-length: ['847'] + content-type: [application/json] + date: ['Tue, 16 May 2017 19:37:49 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + 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-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7 + msrest_azure/0.4.7 graphrbacmanagementclient/0.30.0rc6 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/me?api-version=1.6 + response: + body: {string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.User/@Element","odata.type":"Microsoft.DirectoryServices.User","objectType":"User","objectId":"27aa7661-2d45-410a-a506-0b75a866acfa","deletionTimestamp":null,"accountEnabled":true,"signInNames":[],"assignedLicenses":[{"disabledPlans":[],"skuId":"c7df2760-2c81-4ef7-b578-5b5392b571df"},{"disabledPlans":[],"skuId":"0c266dff-15dd-4b49-8397-2bb16070ed52"},{"disabledPlans":[],"skuId":"1f2f344a-700d-42c9-9427-5cea1d5d7ba6"},{"disabledPlans":[],"skuId":"c5928f49-12ba-48f7-ada3-0d743a3601d5"},{"disabledPlans":["e95bec33-7c88-4a70-8e19-b10bd9d0c014","5dbe027f-2339-4123-9542-606e4d348a72"],"skuId":"f82a60b8-1ee3-4cfb-a4fe-1c6a53c2656c"},{"disabledPlans":[],"skuId":"078d2b04-f1bd-4111-bbd4-b4b1b354cef4"},{"disabledPlans":[],"skuId":"c52ea49f-fe5d-4e95-93ba-1de91d380f89"}],"assignedPlans":[{"assignedTimestamp":"2017-05-15T18:44:05Z","capabilityStatus":"Enabled","service":"MicrosoftCommunicationsOnline","servicePlanId":"4828c8ec-dc2e-4779-b502-87ac9ce28ab7"},{"assignedTimestamp":"2017-05-15T18:44:05Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"5dbe027f-2339-4123-9542-606e4d348a72"},{"assignedTimestamp":"2017-05-15T18:44:05Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"e95bec33-7c88-4a70-8e19-b10bd9d0c014"},{"assignedTimestamp":"2017-05-13T02:30:55Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"8e0c0a52-6a6c-4d40-8370-dd62790dcd70"},{"assignedTimestamp":"2017-05-13T02:30:55Z","capabilityStatus":"Enabled","service":"MicrosoftCommunicationsOnline","servicePlanId":"3e26ee1f-8a5f-4d52-aee2-b81ce45c8f40"},{"assignedTimestamp":"2017-02-21T23:11:41Z","capabilityStatus":"Enabled","service":"Deskless","servicePlanId":"8c7d2df8-86f0-4902-b2ed-a0458298f3b3"},{"assignedTimestamp":"2017-01-20T02:26:07Z","capabilityStatus":"Enabled","service":"MicrosoftCommunicationsOnline","servicePlanId":"0feaeb32-d00e-4d66-bd5a-43b5b83db82c"},{"assignedTimestamp":"2017-01-20T02:26:07Z","capabilityStatus":"Deleted","service":"MicrosoftCommunicationsOnline","servicePlanId":"27216c54-caf8-4d0d-97e2-517afb5c08f6"},{"assignedTimestamp":"2017-01-20T02:26:07Z","capabilityStatus":"Enabled","service":"Sway","servicePlanId":"a23b959c-7ce8-4e57-9140-b90eb88a9e97"},{"assignedTimestamp":"2017-01-20T02:26:07Z","capabilityStatus":"Enabled","service":"ProjectWorkManagement","servicePlanId":"b737dad2-2f6c-4c65-90e3-ca563267e8b9"},{"assignedTimestamp":"2017-01-20T02:26:07Z","capabilityStatus":"Enabled","service":"RMSOnline","servicePlanId":"bea4c11e-220a-4e6d-8eb8-8ea15d019f90"},{"assignedTimestamp":"2017-01-20T02:26:07Z","capabilityStatus":"Deleted","service":"PowerAppsService","servicePlanId":"c68f8d98-5534-41c8-bf36-22fa496fa792"},{"assignedTimestamp":"2017-01-20T02:26:07Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"efb87545-963c-4e0d-99df-69c6916d9eb0"},{"assignedTimestamp":"2017-01-20T02:26:07Z","capabilityStatus":"Enabled","service":"TeamspaceAPI","servicePlanId":"57ff2da0-773e-42df-b2af-ffb7a2317929"},{"assignedTimestamp":"2017-01-20T02:26:07Z","capabilityStatus":"Enabled","service":"YammerEnterprise","servicePlanId":"7547a3fe-08ee-4ccb-b430-5077c5041653"},{"assignedTimestamp":"2017-01-20T02:26:07Z","capabilityStatus":"Deleted","service":"ProcessSimple","servicePlanId":"76846ad7-7776-4c40-a281-a386362dd1b9"},{"assignedTimestamp":"2017-01-20T02:26:07Z","capabilityStatus":"Enabled","service":"MicrosoftOffice","servicePlanId":"43de0ff5-c92c-492b-9116-175376d08c38"},{"assignedTimestamp":"2016-12-16T01:44:26Z","capabilityStatus":"Enabled","service":"MicrosoftStream","servicePlanId":"acffdce6-c30f-4dc2-81c0-372e33c515ec"},{"assignedTimestamp":"2016-11-29T21:24:57Z","capabilityStatus":"Enabled","service":"ProcessSimple","servicePlanId":"07699545-9485-468e-95b6-2fca3738be01"},{"assignedTimestamp":"2016-11-29T21:24:57Z","capabilityStatus":"Enabled","service":"PowerAppsService","servicePlanId":"9c0dab89-a30c-4117-86e7-97bda240acd2"},{"assignedTimestamp":"2016-10-27T03:03:04Z","capabilityStatus":"Enabled","service":"PowerBI","servicePlanId":"70d33638-9c74-4d01-bfd3-562de28bd4ba"},{"assignedTimestamp":"2016-10-27T03:03:04Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"34c0d7a0-a70f-4668-9238-47f9fc208882"},{"assignedTimestamp":"2016-10-27T03:03:04Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"9f431833-0334-42de-a7dc-70aa40db46db"},{"assignedTimestamp":"2016-10-27T03:03:04Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"4de31727-a228-4ec3-a5bf-8e45b5ca48cc"},{"assignedTimestamp":"2016-10-27T03:03:04Z","capabilityStatus":"Enabled","service":"Adallom","servicePlanId":"8c098270-9dd4-4350-9b30-ba4703f3b36b"},{"assignedTimestamp":"2016-10-27T03:03:04Z","capabilityStatus":"Deleted","service":"AzureAnalysis","servicePlanId":"2049e525-b859-401b-b2a0-e0a31c4b1fe4"},{"assignedTimestamp":"2016-10-27T03:03:04Z","capabilityStatus":"Deleted","service":"SharePoint","servicePlanId":"c4048e79-4474-4c74-ba9b-c31ff225e511"},{"assignedTimestamp":"2016-10-27T03:03:04Z","capabilityStatus":"Deleted","service":"PowerBI","servicePlanId":"fc0a60aa-feee-4746-a0e3-aecfe81a38dd"},{"assignedTimestamp":"2016-10-27T03:03:04Z","capabilityStatus":"Deleted","service":"SharePoint","servicePlanId":"2125cfd7-2110-4567-83c4-c1cd5275163d"},{"assignedTimestamp":"2014-04-30T00:49:39Z","capabilityStatus":"Enabled","service":"MicrosoftOffice","servicePlanId":"663a804f-1c30-4ff0-9915-9db84f0d1cea"},{"assignedTimestamp":"2014-05-24T11:58:34Z","capabilityStatus":"Enabled","service":"MicrosoftOffice","servicePlanId":"fafd7243-e5c1-4a3a-9e40-495efcb1d3c3"},{"assignedTimestamp":"2014-05-24T11:58:34Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"fe71d6c3-a2ea-4499-9778-da042bf08063"},{"assignedTimestamp":"2015-07-18T01:10:34Z","capabilityStatus":"Enabled","service":"MultiFactorService","servicePlanId":"8a256a2b-b617-496d-b51b-e76466e88db0"},{"assignedTimestamp":"2015-07-18T01:10:34Z","capabilityStatus":"Enabled","service":"AADPremiumService","servicePlanId":"41781fb2-bc02-4b7c-bd55-b576c07bb09d"},{"assignedTimestamp":"2016-01-13T23:09:24Z","capabilityStatus":"Enabled","service":"RMSOnline","servicePlanId":"6c57d4b6-3b23-47a5-9bc9-69f17b4947b3"}],"city":"REDMOND","companyName":"MICROSOFT","country":null,"creationType":null,"department":"R&D + WA Dev","dirSyncEnabled":true,"displayName":"Anna Tisch","facsimileTelephoneNumber":null,"givenName":"Anna","immutableId":"743426","isCompromised":null,"jobTitle":"SOFTWARE + ENGINEER II","lastDirSyncTime":"2017-03-24T17:08:05Z","mail":"Anna.Tisch@microsoft.com","mailNickname":"antisch","mobile":null,"onPremisesSecurityIdentifier":"S-1-5-21-38895556-1487699162-1270813805-238347","otherMails":[],"passwordPolicies":"DisablePasswordExpiration","passwordProfile":null,"physicalDeliveryOfficeName":"22/3019","postalCode":null,"preferredLanguage":null,"provisionedPlans":[{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Deleted","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"Adallom"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Deleted","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Deleted","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftOffice"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftOffice"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftOffice"}],"provisioningErrors":[],"proxyAddresses":["x500:/o=ExchangeLabs/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=5873882610104377bfbce9c88df96da6-Anna + Tisch","X500:/o=MMS/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Anna + Tischfe616a9a-6052-483c-85cf-25ae0d3f1748","X500:/o=microsoft/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Anna Tischdf0","smtp:antisch@service.microsoft.com","SMTP:Anna.Tisch@microsoft.com","smtp:antisch@microsoft.com","x500:/o=SDF/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=c5a67f94485248ff9e48a62783fee3e9-Anna + Tisch","x500:/o=microsoft/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Anna + Tischc7a","x500:/O=Nokia/OU=HUB/cn=Recipients/cn=antisch","x500:/o=microsoft/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Anna Tischa11","smtp:antisch@064d.mgd.microsoft.com","X500:/o=MMS/ou=External + (FYDIBOHF25SPDLT)/cn=Recipients/cn=4a919a0cc3ac4d7da639504c5bb6cd94"],"refreshTokensValidFromDateTime":"2017-03-24T16:02:00Z","showInAddressList":null,"sipProxyAddress":"antisch@microsoft.com","state":null,"streetAddress":null,"surname":"Tisch","telephoneNumber":"+64 + (4) 4706633 X6633","usageLocation":"US","userPrincipalName":"antisch@microsoft.com","userType":"Member","extension_18e31482d3fb4a8ea958aa96b662f508_SupervisorInd":"N","extension_18e31482d3fb4a8ea958aa96b662f508_ReportsToPersonnelNbr":"76808","extension_18e31482d3fb4a8ea958aa96b662f508_ReportsToFullName":"Savage, + Daryl W","extension_18e31482d3fb4a8ea958aa96b662f508_ReportsToEmailName":"DARYLS","extension_18e31482d3fb4a8ea958aa96b662f508_AddressLine1":"1 + Microsoft Way","extension_18e31482d3fb4a8ea958aa96b662f508_CityName":"REDMOND","extension_18e31482d3fb4a8ea958aa96b662f508_CompanyCode":"1010","extension_18e31482d3fb4a8ea958aa96b662f508_CostCenterCode":"61687","extension_18e31482d3fb4a8ea958aa96b662f508_CountryShortCode":"US","extension_18e31482d3fb4a8ea958aa96b662f508_LocationAreaCode":"US","extension_18e31482d3fb4a8ea958aa96b662f508_PersonnelNumber":"743426","extension_18e31482d3fb4a8ea958aa96b662f508_PositionNumber":"91208230","extension_18e31482d3fb4a8ea958aa96b662f508_ProfitCenterCode":"P61687","extension_18e31482d3fb4a8ea958aa96b662f508_StateProvinceCode":"WA","extension_18e31482d3fb4a8ea958aa96b662f508_ZipCode":"98052","extension_18e31482d3fb4a8ea958aa96b662f508_BuildingID":"21","extension_18e31482d3fb4a8ea958aa96b662f508_BuildingName":"22"}'} + headers: + access-control-allow-origin: ['*'] + cache-control: [no-cache] + content-length: ['11123'] + content-type: [application/json;odata=minimalmetadata;streaming=true;charset=utf-8] + dataserviceversion: [3.0;] + date: ['Tue, 16 May 2017 19:37:49 GMT'] + duration: ['1094966'] + expires: ['-1'] + ocp-aad-diagnostics-server-name: [SbtWc5+I23LOrpKcANdEDWNl4YgfTbLWAdTBUDuDqek=] + ocp-aad-session-key: [2GpWAd-a8qe3IChzPNHQ6qwl-A_ad1on8csclzs2yVNt7khiLpgcTSF4t-bWOPv_5-LEyqjm77Qaf6se25ykT_l9tXuASzDpbNjMuYKTxg0c5m2IrZDhjmKCr6TvtUSj.8BKRB3mxabU305HQF4elLpBKHpVlsT5c7VQjrq1hNeE] + pragma: [no-cache] + request-id: [a0222d72-507c-4eea-879e-3b81bff111a6] + server: [Microsoft-IIS/8.5] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-aspnet-version: [4.0.30319] + x-content-type-options: [nosniff] + x-ms-dirapi-data-contract-version: ['1.6'] + x-powered-by: [ASP.NET, ASP.NET] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"enabledForTemplateDeployment": true, "enabledForDiskEncryption": + true, "accessPolicies": [{"permissions": {"keys": ["get", "create", "delete", + "list", "update", "import", "backup", "restore"], "secrets": ["all"], "certificates": + ["all"]}, "objectId": "27aa7661-2d45-410a-a506-0b75a866acfa", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"}], + "sku": {"family": "A", "name": "standard"}, "enabledForDeployment": true, "tenantId": + "72f988bf-86f1-41af-91ab-2d7cd011db47"}, "location": "uksouth"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [keyvault create] + Connection: [keep-alive] + Content-Length: ['511'] + 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 keyvaultmanagementclient/0.31.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.KeyVault/vaults/clibatchtestkeyvault1?api-version=2015-06-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.KeyVault/vaults/clibatchtestkeyvault1","name":"clibatchtestkeyvault1","type":"Microsoft.KeyVault/vaults","location":"uksouth","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","accessPolicies":[{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","objectId":"27aa7661-2d45-410a-a506-0b75a866acfa","permissions":{"keys":["get","create","delete","list","update","import","backup","restore"],"secrets":["all"],"certificates":["all"]}}],"enabledForDeployment":true,"enabledForDiskEncryption":true,"enabledForTemplateDeployment":true,"vaultUri":"https://clibatchtestkeyvault1.vault.azure.net"}}'} + headers: + cache-control: [no-cache] + content-length: ['820'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:37:55 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/8.5] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-aspnet-version: [4.0.30319] + x-content-type-options: [nosniff] + x-ms-keyvault-service-version: [1.0.0.157] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [keyvault set-policy] + 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 keyvaultmanagementclient/0.31.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.KeyVault/vaults/clibatchtestkeyvault1?api-version=2015-06-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.KeyVault/vaults/clibatchtestkeyvault1","name":"clibatchtestkeyvault1","type":"Microsoft.KeyVault/vaults","location":"uksouth","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","accessPolicies":[{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","objectId":"27aa7661-2d45-410a-a506-0b75a866acfa","permissions":{"keys":["get","create","delete","list","update","import","backup","restore"],"secrets":["all"],"certificates":["all"]}}],"enabledForDeployment":true,"enabledForDiskEncryption":true,"enabledForTemplateDeployment":true,"vaultUri":"https://clibatchtestkeyvault1.vault.azure.net/"}}'} + headers: + cache-control: [no-cache] + content-length: ['821'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:37:56 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/8.5] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-aspnet-version: [4.0.30319] + x-content-type-options: [nosniff] + x-ms-keyvault-service-version: [1.0.0.157] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"enabledForTemplateDeployment": true, "enabledForDiskEncryption": + true, "accessPolicies": [{"permissions": {"keys": ["get", "create", "delete", + "list", "update", "import", "backup", "restore"], "secrets": ["all"], "certificates": + ["all"]}, "objectId": "27aa7661-2d45-410a-a506-0b75a866acfa", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"}, + {"permissions": {"keys": ["all"], "secrets": ["all"]}, "objectId": "f520d84c-3fd3-4cc8-88d4-2ed25b00d27a", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"}], "sku": {"family": "A", + "name": "standard"}, "enabledForDeployment": true, "vaultUri": "https://clibatchtestkeyvault1.vault.azure.net/", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"}, "tags": {}, "location": + "uksouth"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [keyvault set-policy] + Connection: [keep-alive] + Content-Length: ['745'] + 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 keyvaultmanagementclient/0.31.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.KeyVault/vaults/clibatchtestkeyvault1?api-version=2015-06-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.KeyVault/vaults/clibatchtestkeyvault1","name":"clibatchtestkeyvault1","type":"Microsoft.KeyVault/vaults","location":"uksouth","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","accessPolicies":[{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","objectId":"27aa7661-2d45-410a-a506-0b75a866acfa","permissions":{"keys":["get","create","delete","list","update","import","backup","restore"],"secrets":["all"],"certificates":["all"]}},{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","objectId":"f520d84c-3fd3-4cc8-88d4-2ed25b00d27a","permissions":{"keys":["all"],"secrets":["all"]}}],"enabledForDeployment":true,"enabledForDiskEncryption":true,"enabledForTemplateDeployment":true,"vaultUri":"https://clibatchtestkeyvault1.vault.azure.net/"}}'} + headers: + cache-control: [no-cache] + content-length: ['972'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:37:57 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/8.5] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-aspnet-version: [4.0.30319] + x-content-type-options: [nosniff] + x-ms-keyvault-service-version: [1.0.0.157] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: '{"location": "northeurope"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [batch account create] + Connection: [keep-alive] + Content-Length: ['27'] + 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/clibatchtest1?api-version=2017-05-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:38:01 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtest1/operationResults/3f7e31bd-f972-4974-9358-361e453a3f76?api-version=2017-05-01'] + pragma: [no-cache] + request-id: [3f7e31bd-f972-4974-9358-361e453a3f76] + 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/clibatchtest1/operationResults/3f7e31bd-f972-4974-9358-361e453a3f76?api-version=2017-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtest1","name":"clibatchtest1","type":"Microsoft.Batch/batchAccounts","location":"northeurope","properties":{"accountEndpoint":"clibatchtest1.northeurope.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"poolAllocationMode":"batchservice"}}'} + headers: + cache-control: [no-cache] + content-length: ['536'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:38:16 GMT'] + etag: ['"0x8D49C931B17FA54"'] + expires: ['-1'] + last-modified: ['Tue, 16 May 2017 19:38:19 GMT'] + pragma: [no-cache] + request-id: [a5157249-50e6-46ab-a3b4-5b76130cca76] + 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 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 keyvaultmanagementclient/0.31.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.KeyVault/vaults/clibatchtestkeyvault1?api-version=2015-06-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.KeyVault/vaults/clibatchtestkeyvault1","name":"clibatchtestkeyvault1","type":"Microsoft.KeyVault/vaults","location":"uksouth","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","accessPolicies":[{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","objectId":"27aa7661-2d45-410a-a506-0b75a866acfa","permissions":{"keys":["get","create","delete","list","update","import","backup","restore"],"secrets":["all"],"certificates":["all"]}},{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","objectId":"f520d84c-3fd3-4cc8-88d4-2ed25b00d27a","permissions":{"keys":["all"],"secrets":["all"]}}],"enabledForDeployment":true,"enabledForDiskEncryption":true,"enabledForTemplateDeployment":true,"vaultUri":"https://clibatchtestkeyvault1.vault.azure.net/"}}'} + headers: + cache-control: [no-cache] + content-length: ['972'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:38:19 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/8.5] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-aspnet-version: [4.0.30319] + x-content-type-options: [nosniff] + x-ms-keyvault-service-version: [1.0.0.157] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: 'b''{"properties": {"poolAllocationMode": "UserSubscription", "keyVaultReference": + {"id": "/subscriptions/603663e9-700c-46de-9d41-e080ff1d461e/resourceGroups/clitest.rg000001/providers/Microsoft.KeyVault/vaults/clibatchtestkeyvault1", + "url": "https://clibatchtestkeyvault1.vault.azure.net/"}}, "location": "uksouth"}''' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [batch account create] + Connection: [keep-alive] + Content-Length: ['371'] + 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/clibatchtestuser1?api-version=2017-05-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:38:25 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestuser1/operationResults/8e2a5e8a-2cc4-40c7-b234-0e0a031dbc55?api-version=2017-05-01'] + pragma: [no-cache] + request-id: [8e2a5e8a-2cc4-40c7-b234-0e0a031dbc55] + 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/clibatchtestuser1/operationResults/8e2a5e8a-2cc4-40c7-b234-0e0a031dbc55?api-version=2017-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestuser1","name":"clibatchtestuser1","type":"Microsoft.Batch/batchAccounts","location":"uksouth","properties":{"accountEndpoint":"clibatchtestuser1.uksouth.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":2147483647,"lowPriorityCoreQuota":0,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"poolAllocationMode":"usersubscription","keyVaultReference":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.KeyVault/vaults/clibatchtestkeyvault1","url":"https://clibatchtestkeyvault1.vault.azure.net/"}}}'} + headers: + cache-control: [no-cache] + content-length: ['836'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:38:41 GMT'] + etag: ['"0x8D49C9328B282DA"'] + expires: ['-1'] + last-modified: ['Tue, 16 May 2017 19:38:42 GMT'] + pragma: [no-cache] + request-id: [b6152293-75bb-4ce5-ab1d-7143101d3636] + 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 set] + 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 storagemanagementclient/1.0.0rc1 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.Storage/storageAccounts/clibatchteststorage1?api-version=2016-12-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststorage1","kind":"Storage","location":"northeurope","name":"clibatchteststorage1","properties":{"creationTime":"2017-05-16T19:26:06.9343340Z","primaryEndpoints":{"blob":"https://clibatchteststorage1.blob.core.windows.net/","file":"https://clibatchteststorage1.file.core.windows.net/","queue":"https://clibatchteststorage1.queue.core.windows.net/","table":"https://clibatchteststorage1.table.core.windows.net/"},"primaryLocation":"northeurope","provisioningState":"Succeeded","statusOfPrimary":"available","supportsHttpsTrafficOnly":false},"sku":{"name":"Standard_LRS","tier":"Standard"},"tags":{},"type":"Microsoft.Storage/storageAccounts"} + + '} + headers: + cache-control: [no-cache] + content-length: ['847'] + content-type: [application/json] + date: ['Tue, 16 May 2017 19:38:43 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: 'b''{"properties": {"autoStorage": {"storageAccountId": "/subscriptions/603663e9-700c-46de-9d41-e080ff1d461e/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststorage1"}}}''' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [batch account set] + Connection: [keep-alive] + Content-Length: ['264'] + 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: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtest1?api-version=2017-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtest1","name":"clibatchtest1","type":"Microsoft.Batch/batchAccounts","location":"northeurope","properties":{"accountEndpoint":"clibatchtest1.northeurope.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststorage1","lastKeySync":"2017-05-16T19:38:44.5263361Z"},"poolAllocationMode":"batchservice"}}'} + headers: + cache-control: [no-cache] + content-length: ['826'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:38:44 GMT'] + etag: ['"0x8D49C932B73CCC6"'] + expires: ['-1'] + last-modified: ['Tue, 16 May 2017 19:38:46 GMT'] + pragma: [no-cache] + request-id: [e0abfb14-b4f3-46e8-89e0-ca1b576d08f6] + 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/clibatchtest1?api-version=2017-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtest1","name":"clibatchtest1","type":"Microsoft.Batch/batchAccounts","location":"northeurope","properties":{"accountEndpoint":"clibatchtest1.northeurope.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststorage1","lastKeySync":"2017-05-16T19:38:44.5263361Z"},"poolAllocationMode":"batchservice"}}'} + headers: + cache-control: [no-cache] + content-length: ['826'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:38:46 GMT'] + etag: ['"0x8D49C932A064A01"'] + expires: ['-1'] + last-modified: ['Tue, 16 May 2017 19:38:44 GMT'] + pragma: [no-cache] + request-id: [c14e95fa-ba0a-476e-8aa5-88da2921d9e1] + 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 autostorage-keys sync] + 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/clibatchtest1/syncAutoStorageKeys?api-version=2017-05-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:38:47 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-id: [5a8768e7-0e21-411b-9370-ea5f7c51cb17] + 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: 204, message: No Content} +- 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/clibatchtest1/listKeys?api-version=2017-05-01 + response: + body: {string: '{"accountName":"clibatchtest1","primary":"bRgUS7G/ePfWJC0XNFD9tTh367/jlXmtsnp/VrVEas336k9RxwvCQkZ4eoHuHJV8v1muA8TuZtHmGEs/IVRd5w==","secondary":"RE5SkYFuBf5TtgtexGt0wumj0M/1QQcYoYIGj6+fWqRpg0TI1wY9vka5+qMDEQZ2or0kcaPobWb3fB/SibpNLg=="}'} + headers: + cache-control: [no-cache] + content-length: ['235'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:38:48 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-id: [e48ce345-0ad9-4680-a2fb-cf4ef7d2f27b] + 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: '{"keyName": "Primary"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [batch account keys renew] + Connection: [keep-alive] + Content-Length: ['22'] + 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/clibatchtest1/regenerateKeys?api-version=2017-05-01 + response: + body: {string: '{"accountName":"clibatchtest1","primary":"m2BsdEp8hSB9VbUbg8DpM9P8wdGXxWeWMdiGyBbavQ8fUI9j8R4bQftVdruIiQ5KnKb3icHqWS11li6AccKfWQ==","secondary":"RE5SkYFuBf5TtgtexGt0wumj0M/1QQcYoYIGj6+fWqRpg0TI1wY9vka5+qMDEQZ2or0kcaPobWb3fB/SibpNLg=="}'} + headers: + cache-control: [no-cache] + content-length: ['235'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:38:49 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-id: [6a0677eb-5677-4038-a2ab-e46937adb14a] + 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 login] + 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/clibatchtest1?api-version=2017-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtest1","name":"clibatchtest1","type":"Microsoft.Batch/batchAccounts","location":"northeurope","properties":{"accountEndpoint":"clibatchtest1.northeurope.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststorage1","lastKeySync":"2017-05-16T19:38:47.3502918Z"},"poolAllocationMode":"batchservice"}}'} + headers: + cache-control: [no-cache] + content-length: ['826'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:38:50 GMT'] + etag: ['"0x8D49C932D0C2100"'] + expires: ['-1'] + last-modified: ['Tue, 16 May 2017 19:38:49 GMT'] + pragma: [no-cache] + request-id: [aae63f8f-5e26-4562-b204-efee9c4978e0] + 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 login] + 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/clibatchtest1?api-version=2017-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtest1","name":"clibatchtest1","type":"Microsoft.Batch/batchAccounts","location":"northeurope","properties":{"accountEndpoint":"clibatchtest1.northeurope.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststorage1","lastKeySync":"2017-05-16T19:38:47.3502918Z"},"poolAllocationMode":"batchservice"}}'} + headers: + cache-control: [no-cache] + content-length: ['826'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:38:51 GMT'] + etag: ['"0x8D49C932D0C2100"'] + expires: ['-1'] + last-modified: ['Tue, 16 May 2017 19:38:49 GMT'] + pragma: [no-cache] + request-id: [452fd437-08b2-402f-bf16-56eeaab7b821] + 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 login] + 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/clibatchtest1/listKeys?api-version=2017-05-01 + response: + body: {string: '{"accountName":"clibatchtest1","primary":"m2BsdEp8hSB9VbUbg8DpM9P8wdGXxWeWMdiGyBbavQ8fUI9j8R4bQftVdruIiQ5KnKb3icHqWS11li6AccKfWQ==","secondary":"RE5SkYFuBf5TtgtexGt0wumj0M/1QQcYoYIGj6+fWqRpg0TI1wY9vka5+qMDEQZ2or0kcaPobWb3fB/SibpNLg=="}'} + headers: + cache-control: [no-cache] + content-length: ['235'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:38:52 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-id: [aa64710c-9ef6-4abc-8a37-8fad811be351] + 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 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 batchmanagementclient/4.0.0 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/providers/Microsoft.Batch/batchAccounts/clibatchtest1?api-version=2017-05-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:38:54 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtest1/operationResults/345a1ef3-481b-4a86-8783-b268408d8fcc?api-version=2017-05-01'] + pragma: [no-cache] + request-id: [345a1ef3-481b-4a86-8783-b268408d8fcc] + 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 delete] + 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/clibatchtest1/operationResults/345a1ef3-481b-4a86-8783-b268408d8fcc?api-version=2017-05-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:39:10 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-id: [4e92a1ba-c17e-4c29-bbef-c0a289e13151] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [batch account 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 batchmanagementclient/4.0.0 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/providers/Microsoft.Batch/batchAccounts/clibatchtestuser1?api-version=2017-05-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:39:12 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtestuser1/operationResults/fa1dc095-25f1-405f-a09c-288bda009cda?api-version=2017-05-01'] + pragma: [no-cache] + request-id: [fa1dc095-25f1-405f-a09c-288bda009cda] + 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 delete] + 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/clibatchtestuser1/operationResults/fa1dc095-25f1-405f-a09c-288bda009cda?api-version=2017-05-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:39:27 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-id: [c1ca5d65-c41b-46d3-a90b-b8a606574949] + server: [Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [batch account list] + 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?api-version=2017-05-01 + response: + body: {string: '{"value":[]}'} + headers: + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:39:29 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-id: [b447f679-ca49-4c2a-ab88-336030cd3a2b] + 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 location quotas 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/providers/Microsoft.Batch/locations/northeurope/quotas?api-version=2017-05-01 + response: + body: {string: '{"accountQuota":1}'} + headers: + cache-control: [no-cache] + content-length: ['18'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:39:30 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-id: [51552466-33d8-4b68-b439-1130732d0e29] + 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: [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:39:34 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdaSEQzQzdGM1RGVElKUUZBNEZEVFZJN01JNUVHV0VOVDNCNXxBOEUyQkZGOUE3NTBCREUxLU5PUlRIRVVST1BFIiwiam9iTG9jYXRpb24iOiJub3J0aGV1cm9wZSJ9?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 diff --git a/src/command_modules/azure-cli-batch/tests/recordings/test_batch_account_mgmt.yaml b/src/command_modules/azure-cli-batch/tests/recordings/test_batch_account_mgmt.yaml deleted file mode 100644 index 8ee57b087..000000000 --- a/src/command_modules/azure-cli-batch/tests/recordings/test_batch_account_mgmt.yaml +++ /dev/null @@ -1,887 +0,0 @@ -interactions: -- request: - body: '{"location": "brazilsouth", "kind": "Storage", "sku": {"name": "Standard_LRS"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['79'] - 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 storagemanagementclient/0.31.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] - accept-language: [en-US] - x-ms-client-request-id: [0bd1935e-0513-11e7-9459-54ee750f2fc7] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Storage/storageAccounts/clibatchteststorage1?api-version=2016-12-01 - response: - body: {string: ''} - headers: - Cache-Control: [no-cache] - Content-Length: ['0'] - Date: ['Thu, 09 Mar 2017 21:55:03 GMT'] - Expires: ['-1'] - Location: ['https://management.azure.com/subscriptions/603663e9-700c-46de-9d41-e080ff1d461e/providers/Microsoft.Storage/operations/21a39276-b919-4514-bff9-93bdde4e2779?monitor=true&api-version=2016-12-01'] - Pragma: [no-cache] - Retry-After: ['17'] - Server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 202, message: Accepted} -- 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 storagemanagementclient/0.31.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] - accept-language: [en-US] - x-ms-client-request-id: [0bd1935e-0513-11e7-9459-54ee750f2fc7] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/21a39276-b919-4514-bff9-93bdde4e2779?monitor=true&api-version=2016-12-01 - response: - body: {string: ''} - headers: - Cache-Control: [no-cache] - Content-Length: ['0'] - Date: ['Thu, 09 Mar 2017 21:55:22 GMT'] - Expires: ['-1'] - Location: ['https://management.azure.com/subscriptions/603663e9-700c-46de-9d41-e080ff1d461e/providers/Microsoft.Storage/operations/21a39276-b919-4514-bff9-93bdde4e2779?monitor=true&api-version=2016-12-01'] - Pragma: [no-cache] - Retry-After: ['17'] - Server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - status: {code: 202, message: Accepted} -- 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 storagemanagementclient/0.31.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] - accept-language: [en-US] - x-ms-client-request-id: [0bd1935e-0513-11e7-9459-54ee750f2fc7] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/21a39276-b919-4514-bff9-93bdde4e2779?monitor=true&api-version=2016-12-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Storage/storageAccounts/clibatchteststorage1","kind":"Storage","location":"brazilsouth","name":"clibatchteststorage1","properties":{"creationTime":"2017-03-09T21:55:04.6086841Z","primaryEndpoints":{"blob":"https://clibatchteststorage1.blob.core.windows.net/","file":"https://clibatchteststorage1.file.core.windows.net/","queue":"https://clibatchteststorage1.queue.core.windows.net/","table":"https://clibatchteststorage1.table.core.windows.net/"},"primaryLocation":"brazilsouth","provisioningState":"Succeeded","statusOfPrimary":"available"},"sku":{"name":"Standard_LRS","tier":"Standard"},"tags":{},"type":"Microsoft.Storage/storageAccounts"} - - '} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json] - Date: ['Thu, 09 Mar 2017 21:55:39 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['757'] - 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-10-10.0.14393-SP0) requests/2.9.1 msrest/0.4.5 - msrest_azure/0.4.7 graphrbacmanagementclient/0.30.0rc6 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [8d2fb5e2-051c-11e7-a0c0-a0b3ccf7272a] - method: GET - uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/users?$filter=userPrincipalName%20eq%20%27example%40example.com%27&api-version=1.6 - response: - body: {string: '{"odata.metadata":"https://graph.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/$metadata#directoryObjects/Microsoft.DirectoryServices.User","value":[{"odata.type":"Microsoft.DirectoryServices.User","objectType":"User","objectId":"5963f50c-7c43-405c-af7e-53294de76abd","deletionTimestamp":null,"accountEnabled":true,"signInNames":[],"assignedLicenses":[],"assignedPlans":[],"city":null,"companyName":null,"country":null,"creationType":null,"department":null,"dirSyncEnabled":null,"displayName":"Admin2","facsimileTelephoneNumber":null,"givenName":"Admin2","immutableId":null,"isCompromised":null,"jobTitle":null,"lastDirSyncTime":null,"mail":null,"mailNickname":"admin2","mobile":null,"onPremisesSecurityIdentifier":null,"otherMails":["destanko@microsoft.com"],"passwordPolicies":"None","passwordProfile":null,"physicalDeliveryOfficeName":null,"postalCode":null,"preferredLanguage":null,"provisionedPlans":[],"provisioningErrors":[],"proxyAddresses":[],"refreshTokensValidFromDateTime":"2017-01-03T20:58:19Z","showInAddressList":null,"sipProxyAddress":null,"state":null,"streetAddress":null,"surname":"Admin2","telephoneNumber":null,"usageLocation":null,"userPrincipalName":"admin2@AzureSDKTeam.onmicrosoft.com","userType":"Member"}]}'} - headers: - Access-Control-Allow-Origin: ['*'] - Cache-Control: [no-cache] - Content-Length: ['1236'] - Content-Type: [application/json;odata=minimalmetadata;streaming=true;charset=utf-8] - DataServiceVersion: [3.0;] - Date: ['Thu, 09 Mar 2017 23:03:03 GMT'] - Duration: ['762923'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-IIS/8.5] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - X-AspNet-Version: [4.0.30319] - X-Content-Type-Options: [nosniff] - X-Powered-By: [ASP.NET, ASP.NET] - ocp-aad-diagnostics-server-name: [DR19pqY8f0NwIf7uWlwUtWuxMpUjmBOYROdsxaOBGDc=] - ocp-aad-session-key: [9bFJtv5SvNAoN3-ubP1PLYL0w1Xq8so8RgtYTZsyqCzazZBQb6yRKowIKXnzZ1e58KFf64kafXL7ppZOg9CtuHeripVKPItwfLZJD9Nq5BReTlpr9I6hvDMGBktNm9sk.fvs3uBvcYLbZUJ_Vi5XIuZ6pSDiuFnTeSbnesxRhmeE] - request-id: [993c3fb2-9c8c-4a6a-8d34-e63427f49731] - x-ms-dirapi-data-contract-version: ['1.6'] - 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 graphrbacmanagementclient/0.30.0rc6 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [238015a8-0513-11e7-992e-54ee750f2fc7] - method: GET - uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/me?api-version=1.6 - response: - body: {string: '{"odata.metadata":"https://graph.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47/$metadata#directoryObjects/Microsoft.DirectoryServices.User/@Element","odata.type":"Microsoft.DirectoryServices.User","objectType":"User","objectId":"27aa7661-2d45-410a-a506-0b75a866acfa","deletionTimestamp":null,"accountEnabled":true,"signInNames":[],"assignedLicenses":[{"disabledPlans":[],"skuId":"0c266dff-15dd-4b49-8397-2bb16070ed52"},{"disabledPlans":["4828c8ec-dc2e-4779-b502-87ac9ce28ab7","3e26ee1f-8a5f-4d52-aee2-b81ce45c8f40"],"skuId":"c7df2760-2c81-4ef7-b578-5b5392b571df"},{"disabledPlans":[],"skuId":"1f2f344a-700d-42c9-9427-5cea1d5d7ba6"},{"disabledPlans":[],"skuId":"c5928f49-12ba-48f7-ada3-0d743a3601d5"},{"disabledPlans":["e95bec33-7c88-4a70-8e19-b10bd9d0c014","5dbe027f-2339-4123-9542-606e4d348a72"],"skuId":"f82a60b8-1ee3-4cfb-a4fe-1c6a53c2656c"},{"disabledPlans":[],"skuId":"078d2b04-f1bd-4111-bbd4-b4b1b354cef4"},{"disabledPlans":[],"skuId":"c52ea49f-fe5d-4e95-93ba-1de91d380f89"}],"assignedPlans":[{"assignedTimestamp":"2017-02-25T10:06:23Z","capabilityStatus":"Enabled","service":"MicrosoftCommunicationsOnline","servicePlanId":"3e26ee1f-8a5f-4d52-aee2-b81ce45c8f40"},{"assignedTimestamp":"2017-02-25T10:06:23Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"5dbe027f-2339-4123-9542-606e4d348a72"},{"assignedTimestamp":"2017-02-25T10:06:23Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"e95bec33-7c88-4a70-8e19-b10bd9d0c014"},{"assignedTimestamp":"2017-02-21T23:11:41Z","capabilityStatus":"Enabled","service":"Deskless","servicePlanId":"8c7d2df8-86f0-4902-b2ed-a0458298f3b3"},{"assignedTimestamp":"2017-02-21T23:11:41Z","capabilityStatus":"Suspended","service":"MicrosoftCommunicationsOnline","servicePlanId":"4828c8ec-dc2e-4779-b502-87ac9ce28ab7"},{"assignedTimestamp":"2017-01-20T02:26:07Z","capabilityStatus":"Enabled","service":"MicrosoftCommunicationsOnline","servicePlanId":"0feaeb32-d00e-4d66-bd5a-43b5b83db82c"},{"assignedTimestamp":"2017-01-20T02:26:07Z","capabilityStatus":"Deleted","service":"MicrosoftCommunicationsOnline","servicePlanId":"27216c54-caf8-4d0d-97e2-517afb5c08f6"},{"assignedTimestamp":"2017-01-20T02:26:07Z","capabilityStatus":"Enabled","service":"Sway","servicePlanId":"a23b959c-7ce8-4e57-9140-b90eb88a9e97"},{"assignedTimestamp":"2017-01-20T02:26:07Z","capabilityStatus":"Enabled","service":"ProjectWorkManagement","servicePlanId":"b737dad2-2f6c-4c65-90e3-ca563267e8b9"},{"assignedTimestamp":"2017-01-20T02:26:07Z","capabilityStatus":"Enabled","service":"RMSOnline","servicePlanId":"bea4c11e-220a-4e6d-8eb8-8ea15d019f90"},{"assignedTimestamp":"2017-01-20T02:26:07Z","capabilityStatus":"Deleted","service":"PowerAppsService","servicePlanId":"c68f8d98-5534-41c8-bf36-22fa496fa792"},{"assignedTimestamp":"2017-01-20T02:26:07Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"efb87545-963c-4e0d-99df-69c6916d9eb0"},{"assignedTimestamp":"2017-01-20T02:26:07Z","capabilityStatus":"Enabled","service":"TeamspaceAPI","servicePlanId":"57ff2da0-773e-42df-b2af-ffb7a2317929"},{"assignedTimestamp":"2017-01-20T02:26:07Z","capabilityStatus":"Enabled","service":"YammerEnterprise","servicePlanId":"7547a3fe-08ee-4ccb-b430-5077c5041653"},{"assignedTimestamp":"2017-01-20T02:26:07Z","capabilityStatus":"Deleted","service":"ProcessSimple","servicePlanId":"76846ad7-7776-4c40-a281-a386362dd1b9"},{"assignedTimestamp":"2017-01-20T02:26:07Z","capabilityStatus":"Enabled","service":"MicrosoftOffice","servicePlanId":"43de0ff5-c92c-492b-9116-175376d08c38"},{"assignedTimestamp":"2016-12-16T01:44:26Z","capabilityStatus":"Enabled","service":"MicrosoftStream","servicePlanId":"acffdce6-c30f-4dc2-81c0-372e33c515ec"},{"assignedTimestamp":"2016-11-29T21:24:57Z","capabilityStatus":"Enabled","service":"ProcessSimple","servicePlanId":"07699545-9485-468e-95b6-2fca3738be01"},{"assignedTimestamp":"2016-11-29T21:24:57Z","capabilityStatus":"Enabled","service":"PowerAppsService","servicePlanId":"9c0dab89-a30c-4117-86e7-97bda240acd2"},{"assignedTimestamp":"2016-10-27T03:03:04Z","capabilityStatus":"Enabled","service":"PowerBI","servicePlanId":"70d33638-9c74-4d01-bfd3-562de28bd4ba"},{"assignedTimestamp":"2016-10-27T03:03:04Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"34c0d7a0-a70f-4668-9238-47f9fc208882"},{"assignedTimestamp":"2016-10-27T03:03:04Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"9f431833-0334-42de-a7dc-70aa40db46db"},{"assignedTimestamp":"2016-10-27T03:03:04Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"4de31727-a228-4ec3-a5bf-8e45b5ca48cc"},{"assignedTimestamp":"2016-10-27T03:03:04Z","capabilityStatus":"Enabled","service":"Adallom","servicePlanId":"8c098270-9dd4-4350-9b30-ba4703f3b36b"},{"assignedTimestamp":"2016-10-27T03:03:04Z","capabilityStatus":"Deleted","service":"AzureAnalysis","servicePlanId":"2049e525-b859-401b-b2a0-e0a31c4b1fe4"},{"assignedTimestamp":"2016-10-27T03:03:04Z","capabilityStatus":"Deleted","service":"SharePoint","servicePlanId":"c4048e79-4474-4c74-ba9b-c31ff225e511"},{"assignedTimestamp":"2016-10-27T03:03:04Z","capabilityStatus":"Deleted","service":"PowerBI","servicePlanId":"fc0a60aa-feee-4746-a0e3-aecfe81a38dd"},{"assignedTimestamp":"2016-10-27T03:03:04Z","capabilityStatus":"Deleted","service":"SharePoint","servicePlanId":"2125cfd7-2110-4567-83c4-c1cd5275163d"},{"assignedTimestamp":"2014-04-30T00:49:39Z","capabilityStatus":"Enabled","service":"MicrosoftOffice","servicePlanId":"663a804f-1c30-4ff0-9915-9db84f0d1cea"},{"assignedTimestamp":"2014-05-24T11:58:34Z","capabilityStatus":"Enabled","service":"MicrosoftOffice","servicePlanId":"fafd7243-e5c1-4a3a-9e40-495efcb1d3c3"},{"assignedTimestamp":"2014-05-24T11:58:34Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"fe71d6c3-a2ea-4499-9778-da042bf08063"},{"assignedTimestamp":"2015-07-18T01:10:34Z","capabilityStatus":"Enabled","service":"MultiFactorService","servicePlanId":"8a256a2b-b617-496d-b51b-e76466e88db0"},{"assignedTimestamp":"2015-07-18T01:10:34Z","capabilityStatus":"Enabled","service":"AADPremiumService","servicePlanId":"41781fb2-bc02-4b7c-bd55-b576c07bb09d"},{"assignedTimestamp":"2016-01-13T23:09:24Z","capabilityStatus":"Enabled","service":"RMSOnline","servicePlanId":"6c57d4b6-3b23-47a5-9bc9-69f17b4947b3"}],"city":"REDMOND","companyName":"MICROSOFT","country":null,"creationType":null,"department":"R&D - WA Dev","dirSyncEnabled":true,"displayName":"Anna Tisch","facsimileTelephoneNumber":null,"givenName":"Anna","immutableId":"743426","isCompromised":null,"jobTitle":"SOFTWARE - ENGINEER II","lastDirSyncTime":"2017-03-01T10:26:19Z","mail":"Anna.Tisch@microsoft.com","mailNickname":"antisch","mobile":null,"onPremisesSecurityIdentifier":"S-1-5-21-38895556-1487699162-1270813805-238347","otherMails":[],"passwordPolicies":"DisablePasswordExpiration","passwordProfile":null,"physicalDeliveryOfficeName":"22/3019","postalCode":null,"preferredLanguage":null,"provisionedPlans":[{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Suspended","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Deleted","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"Adallom"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Deleted","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Deleted","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftOffice"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftOffice"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftOffice"}],"provisioningErrors":[],"proxyAddresses":["X500:/o=microsoft/ou=Exchange - Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Anna Tischdf0","smtp:antisch@service.microsoft.com","SMTP:Anna.Tisch@microsoft.com","smtp:antisch@microsoft.com","x500:/o=SDF/ou=Exchange - Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=c5a67f94485248ff9e48a62783fee3e9-Anna - Tisch","x500:/o=microsoft/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Anna - Tischc7a","x500:/O=Nokia/OU=HUB/cn=Recipients/cn=antisch","x500:/o=microsoft/ou=Exchange - Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Anna Tischa11","smtp:antisch@064d.mgd.microsoft.com","x500:/o=ExchangeLabs/ou=Exchange - Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=5873882610104377bfbce9c88df96da6-Anna - Tisch","X500:/o=MMS/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Anna - Tischfe616a9a-6052-483c-85cf-25ae0d3f1748","X500:/o=MMS/ou=External (FYDIBOHF25SPDLT)/cn=Recipients/cn=4a919a0cc3ac4d7da639504c5bb6cd94"],"refreshTokensValidFromDateTime":"2017-01-16T02:57:10Z","showInAddressList":null,"sipProxyAddress":"antisch@microsoft.com","state":null,"streetAddress":null,"surname":"Tisch","telephoneNumber":"+64 - (4) 4706633 X6633","usageLocation":"US","userPrincipalName":"antisch@microsoft.com","userType":"Member","extension_18e31482d3fb4a8ea958aa96b662f508_SupervisorInd":"N","extension_18e31482d3fb4a8ea958aa96b662f508_ReportsToPersonnelNbr":"76808","extension_18e31482d3fb4a8ea958aa96b662f508_ReportsToFullName":"Savage, - Daryl W","extension_18e31482d3fb4a8ea958aa96b662f508_ReportsToEmailName":"DARYLS","extension_18e31482d3fb4a8ea958aa96b662f508_AddressLine1":"1 - Microsoft Way","extension_18e31482d3fb4a8ea958aa96b662f508_CityName":"REDMOND","extension_18e31482d3fb4a8ea958aa96b662f508_CompanyCode":"1010","extension_18e31482d3fb4a8ea958aa96b662f508_CostCenterCode":"61687","extension_18e31482d3fb4a8ea958aa96b662f508_CountryShortCode":"US","extension_18e31482d3fb4a8ea958aa96b662f508_LocationAreaCode":"US","extension_18e31482d3fb4a8ea958aa96b662f508_PersonnelNumber":"743426","extension_18e31482d3fb4a8ea958aa96b662f508_PositionNumber":"91208230","extension_18e31482d3fb4a8ea958aa96b662f508_ProfitCenterCode":"P61687","extension_18e31482d3fb4a8ea958aa96b662f508_StateProvinceCode":"WA","extension_18e31482d3fb4a8ea958aa96b662f508_ZipCode":"98052","extension_18e31482d3fb4a8ea958aa96b662f508_BuildingID":"21","extension_18e31482d3fb4a8ea958aa96b662f508_BuildingName":"22"}'} - headers: - Access-Control-Allow-Origin: ['*'] - Cache-Control: [no-cache] - Content-Length: ['10971'] - Content-Type: [application/json;odata=minimalmetadata;streaming=true;charset=utf-8] - DataServiceVersion: [3.0;] - Date: ['Thu, 09 Mar 2017 21:55:40 GMT'] - Duration: ['1283794'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-IIS/8.5] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - X-AspNet-Version: [4.0.30319] - X-Content-Type-Options: [nosniff] - X-Powered-By: [ASP.NET, ASP.NET] - ocp-aad-diagnostics-server-name: [sGncqq/jAUwe+u21VpqfIg042/gGrfTtg+ux6iNITto=] - ocp-aad-session-key: [n7cpK-O6fg1r0pNQOascj2B3POtXiMV0C4aIrqAXK5D55XvEeHFCOggM4LVd2Otv_zqwt33u-m9UmB59ygE86jOcVMYTZA3q9-Ktx0FIVImPG16jQtNacB29VsHGIgsv.ylJRiIEiC8p36cydA-OPWqkyMj1KmUSpteOvbmwO1fM] - request-id: [88852b97-3cdc-4093-a7e5-5d5de0b7dd63] - x-ms-dirapi-data-contract-version: ['1.6'] - status: {code: 200, message: OK} -- request: - body: '{"location": "uksouth", "properties": {"enabledForDeployment": true, "enabledForDiskEncryption": - true, "accessPolicies": [{"objectId": "27aa7661-2d45-410a-a506-0b75a866acfa", - "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "permissions": {"secrets": - ["all"], "certificates": ["all"], "keys": ["get", "create", "delete", "list", - "update", "import", "backup", "restore"]}}], "sku": {"family": "A", "name": - "standard"}, "enabledForTemplateDeployment": true, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['511'] - 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 keyvaultmanagementclient/0.30.0 Azure-SDK-For-Python - AZURECLI/TEST/2.0.0+dev] - accept-language: [en-US] - x-ms-client-request-id: [23b4bb34-0513-11e7-ad2f-54ee750f2fc7] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.KeyVault/vaults/clibatchtestkeyvault1?api-version=2015-06-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.KeyVault/vaults/clibatchtestkeyvault1","name":"clibatchtestkeyvault1","type":"Microsoft.KeyVault/vaults","location":"uksouth","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","accessPolicies":[{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","objectId":"27aa7661-2d45-410a-a506-0b75a866acfa","permissions":{"secrets":["all"],"certificates":["all"],"keys":["get","create","delete","list","update","import","backup","restore"]}}],"enabledForDeployment":true,"enabledForDiskEncryption":true,"enabledForTemplateDeployment":true,"vaultUri":"https://clibatchtestkeyvault1.vault.azure.net"}}'} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Thu, 09 Mar 2017 21:55:46 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-IIS/8.5] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - X-AspNet-Version: [4.0.30319] - X-Content-Type-Options: [nosniff] - X-Powered-By: [ASP.NET] - content-length: ['763'] - x-ms-keyvault-service-version: [1.0.0.153] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - 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 keyvaultmanagementclient/0.30.0 Azure-SDK-For-Python - AZURECLI/TEST/2.0.0+dev] - accept-language: [en-US] - x-ms-client-request-id: [276353f6-0513-11e7-96b1-54ee750f2fc7] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.KeyVault/vaults/clibatchtestkeyvault1?api-version=2015-06-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.KeyVault/vaults/clibatchtestkeyvault1","name":"clibatchtestkeyvault1","type":"Microsoft.KeyVault/vaults","location":"uksouth","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","accessPolicies":[{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","objectId":"27aa7661-2d45-410a-a506-0b75a866acfa","permissions":{"secrets":["all"],"certificates":["all"],"keys":["get","create","delete","list","update","import","backup","restore"]}}],"enabledForDeployment":true,"enabledForDiskEncryption":true,"enabledForTemplateDeployment":true,"vaultUri":"https://clibatchtestkeyvault1.vault.azure.net/"}}'} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Thu, 09 Mar 2017 21:55:48 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-IIS/8.5] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - X-AspNet-Version: [4.0.30319] - X-Content-Type-Options: [nosniff] - X-Powered-By: [ASP.NET] - content-length: ['764'] - x-ms-keyvault-service-version: [1.0.0.153] - status: {code: 200, message: OK} -- request: - body: '{"location": "uksouth", "properties": {"enabledForDeployment": true, "enabledForDiskEncryption": - true, "accessPolicies": [{"objectId": "27aa7661-2d45-410a-a506-0b75a866acfa", - "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "permissions": {"secrets": - ["all"], "certificates": ["all"], "keys": ["get", "create", "delete", "list", - "update", "import", "backup", "restore"]}}, {"objectId": "f520d84c-3fd3-4cc8-88d4-2ed25b00d27a", - "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "permissions": {"secrets": - ["all"], "keys": ["all"]}}], "sku": {"family": "A", "name": "standard"}, "enabledForTemplateDeployment": - true, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "vaultUri": "https://clibatchtestkeyvault1.vault.azure.net/"}, - "tags": {}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['745'] - 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 keyvaultmanagementclient/0.30.0 Azure-SDK-For-Python - AZURECLI/TEST/2.0.0+dev] - accept-language: [en-US] - x-ms-client-request-id: [2801a848-0513-11e7-aa6a-54ee750f2fc7] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.KeyVault/vaults/clibatchtestkeyvault1?api-version=2015-06-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.KeyVault/vaults/clibatchtestkeyvault1","name":"clibatchtestkeyvault1","type":"Microsoft.KeyVault/vaults","location":"uksouth","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","accessPolicies":[{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","objectId":"27aa7661-2d45-410a-a506-0b75a866acfa","permissions":{"secrets":["all"],"certificates":["all"],"keys":["get","create","delete","list","update","import","backup","restore"]}},{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","objectId":"f520d84c-3fd3-4cc8-88d4-2ed25b00d27a","permissions":{"secrets":["all"],"keys":["all"]}}],"enabledForDeployment":true,"enabledForDiskEncryption":true,"enabledForTemplateDeployment":true,"vaultUri":"https://clibatchtestkeyvault1.vault.azure.net/"}}'} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Thu, 09 Mar 2017 21:55:49 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-IIS/8.5] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - X-AspNet-Version: [4.0.30319] - X-Content-Type-Options: [nosniff] - X-Powered-By: [ASP.NET] - content-length: ['915'] - x-ms-keyvault-service-version: [1.0.0.153] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: '{"location": "brazilsouth"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['27'] - 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: [29561a5c-0513-11e7-a516-54ee750f2fc7] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest1?api-version=2017-01-01 - response: - body: {string: ''} - headers: - Cache-Control: [no-cache] - Content-Length: ['0'] - Date: ['Thu, 09 Mar 2017 21:55:53 GMT'] - Expires: ['-1'] - Location: ['https://management.azure.com/subscriptions/603663e9-700c-46de-9d41-e080ff1d461e/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest1/operationResults/cb76547d-bca3-406e-ac63-dc28df6bd546?api-version=2017-01-01'] - Pragma: [no-cache] - Retry-After: ['15'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - X-Content-Type-Options: [nosniff] - request-id: [cb76547d-bca3-406e-ac63-dc28df6bd546] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 202, message: Accepted} -- 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: [29561a5c-0513-11e7-a516-54ee750f2fc7] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest1/operationResults/cb76547d-bca3-406e-ac63-dc28df6bd546?api-version=2017-01-01 - response: - body: {string: '{"name":"clibatchtest1","location":"brazilsouth","properties":{"accountEndpoint":"clibatchtest1.brazilsouth.batch.azure.com","provisioningState":"Succeeded","coreQuota":20,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"poolAllocationMode":"batchservice"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest1","type":"Microsoft.Batch/batchAccounts"}'} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Thu, 09 Mar 2017 21:56:10 GMT'] - ETag: ['0x8D4673719045FFD'] - Expires: ['-1'] - Last-Modified: ['Thu, 09 Mar 2017 21:56: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: ['444'] - request-id: [ab80eee9-9074-4f45-b65a-309689b57c5b] - 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 keyvaultmanagementclient/0.30.0 Azure-SDK-For-Python - AZURECLI/TEST/2.0.0+dev] - accept-language: [en-US] - x-ms-client-request-id: [35ae920c-0513-11e7-933b-54ee750f2fc7] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.KeyVault/vaults/clibatchtestkeyvault1?api-version=2015-06-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.KeyVault/vaults/clibatchtestkeyvault1","name":"clibatchtestkeyvault1","type":"Microsoft.KeyVault/vaults","location":"uksouth","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","accessPolicies":[{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","objectId":"27aa7661-2d45-410a-a506-0b75a866acfa","permissions":{"secrets":["all"],"certificates":["all"],"keys":["get","create","delete","list","update","import","backup","restore"]}},{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","objectId":"f520d84c-3fd3-4cc8-88d4-2ed25b00d27a","permissions":{"secrets":["all"],"keys":["all"]}}],"enabledForDeployment":true,"enabledForDiskEncryption":true,"enabledForTemplateDeployment":true,"vaultUri":"https://clibatchtestkeyvault1.vault.azure.net/"}}'} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Thu, 09 Mar 2017 21:56:12 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-IIS/8.5] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - X-AspNet-Version: [4.0.30319] - X-Content-Type-Options: [nosniff] - X-Powered-By: [ASP.NET] - content-length: ['915'] - x-ms-keyvault-service-version: [1.0.0.153] - status: {code: 200, message: OK} -- request: - body: '{"location": "uksouth", "properties": {"keyVaultReference": {"id": "/subscriptions/603663e9-700c-46de-9d41-e080ff1d461e/resourceGroups/vcr_resource_group/providers/Microsoft.KeyVault/vaults/clibatchtestkeyvault1", - "url": "https://clibatchtestkeyvault1.vault.azure.net/"}, "poolAllocationMode": - "UserSubscription"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['314'] - 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: [367747d8-0513-11e7-bf8b-54ee750f2fc7] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtestuser1?api-version=2017-01-01 - response: - body: {string: ''} - headers: - Cache-Control: [no-cache] - Content-Length: ['0'] - Date: ['Thu, 09 Mar 2017 21:56:20 GMT'] - Expires: ['-1'] - Location: ['https://management.azure.com/subscriptions/603663e9-700c-46de-9d41-e080ff1d461e/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtestuser1/operationResults/a407b0fa-ae86-444a-830c-f90416eb942f?api-version=2017-01-01'] - Pragma: [no-cache] - Retry-After: ['15'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - X-Content-Type-Options: [nosniff] - request-id: [a407b0fa-ae86-444a-830c-f90416eb942f] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 202, message: Accepted} -- 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: [367747d8-0513-11e7-bf8b-54ee750f2fc7] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtestuser1/operationResults/a407b0fa-ae86-444a-830c-f90416eb942f?api-version=2017-01-01 - response: - body: {string: '{"name":"clibatchtestuser1","location":"uksouth","properties":{"accountEndpoint":"clibatchtestuser1.uksouth.batch.azure.com","provisioningState":"Succeeded","coreQuota":2147483647,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"poolAllocationMode":"usersubscription","keyVaultReference":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.KeyVault/vaults/clibatchtestkeyvault1","url":"https://clibatchtestkeyvault1.vault.azure.net/"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtestuser1","type":"Microsoft.Batch/batchAccounts"}'} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Thu, 09 Mar 2017 21:56:37 GMT'] - ETag: ['0x8D467372A6BBF13'] - Expires: ['-1'] - Last-Modified: ['Thu, 09 Mar 2017 21:56:39 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: ['688'] - request-id: [77cd5fe2-74ff-42e1-9748-2e6caf6ded83] - 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 storagemanagementclient/0.31.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.0+dev] - accept-language: [en-US] - x-ms-client-request-id: [45b6145e-0513-11e7-a882-54ee750f2fc7] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Storage/storageAccounts/clibatchteststorage1?api-version=2016-12-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Storage/storageAccounts/clibatchteststorage1","kind":"Storage","location":"brazilsouth","name":"clibatchteststorage1","properties":{"creationTime":"2017-03-09T21:55:04.6086841Z","primaryEndpoints":{"blob":"https://clibatchteststorage1.blob.core.windows.net/","file":"https://clibatchteststorage1.file.core.windows.net/","queue":"https://clibatchteststorage1.queue.core.windows.net/","table":"https://clibatchteststorage1.table.core.windows.net/"},"primaryLocation":"brazilsouth","provisioningState":"Succeeded","statusOfPrimary":"available"},"sku":{"name":"Standard_LRS","tier":"Standard"},"tags":{},"type":"Microsoft.Storage/storageAccounts"} - - '} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json] - Date: ['Thu, 09 Mar 2017 21:56:38 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['757'] - status: {code: 200, message: OK} -- request: - body: '{"properties": {"autoStorage": {"storageAccountId": "/subscriptions/603663e9-700c-46de-9d41-e080ff1d461e/resourceGroups/vcr_resource_group/providers/Microsoft.Storage/storageAccounts/clibatchteststorage1"}}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['207'] - 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: [45f25064-0513-11e7-8291-54ee750f2fc7] - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest1?api-version=2017-01-01 - response: - body: {string: '{"name":"clibatchtest1","location":"brazilsouth","properties":{"accountEndpoint":"clibatchtest1.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/clibatchteststorage1","lastKeySync":"2017-03-09T21:56:43.1361347Z"},"poolAllocationMode":"batchservice"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest1","type":"Microsoft.Batch/batchAccounts"}'} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Thu, 09 Mar 2017 21:56:42 GMT'] - ETag: ['0x8D467372C45971A'] - Expires: ['-1'] - Last-Modified: ['Thu, 09 Mar 2017 21:56:42 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: [5b014d23-eb56-4132-b246-9b83aaa8e584] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - 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: [48a85ce6-0513-11e7-bff8-54ee750f2fc7] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest1?api-version=2017-01-01 - response: - body: {string: '{"name":"clibatchtest1","location":"brazilsouth","properties":{"accountEndpoint":"clibatchtest1.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/clibatchteststorage1","lastKeySync":"2017-03-09T21:56:43.1361347Z"},"poolAllocationMode":"batchservice"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest1","type":"Microsoft.Batch/batchAccounts"}'} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Thu, 09 Mar 2017 21:56:44 GMT'] - ETag: ['0x8D467372D9EBAA9'] - Expires: ['-1'] - Last-Modified: ['Thu, 09 Mar 2017 21:56:45 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: [42c7acf7-4677-4f7c-8b49-1d1e8d2e83f9] - 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: [49edf774-0513-11e7-a3ea-54ee750f2fc7] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest1/syncAutoStorageKeys?api-version=2017-01-01 - response: - body: {string: ''} - headers: - Cache-Control: [no-cache] - Content-Length: ['0'] - Date: ['Thu, 09 Mar 2017 21:56:49 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: [0e61666a-a76c-44e4-903e-4ad881a36a84] - 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-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: [4c7c0b50-0513-11e7-a8fb-54ee750f2fc7] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest1/listKeys?api-version=2017-01-01 - response: - body: {string: '{"accountName":"clibatchtest1","primary":"a+bjlGDL66OhhouRBgwabDavPMfcuaNEiJywa32/XXZBKjY4+9DJ54QR/PXdxjT5C9RO8UZsUL9/R3wzF3VZ6A==","secondary":"A1HwXdaWgz/+FeFnBy9qH5k395PFBoTultTAJqIyCzRE5Q9QRXI3oREni9kTvd8A+XZe3iPV1UX0b5FVw1EXJQ=="}'} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Thu, 09 Mar 2017 21:56:51 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: ['235'] - request-id: [f7e75afb-e301-4759-b75d-3a8208a5b604] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: '{"keyName": "Primary"}' - 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: [4db3892c-0513-11e7-9ac5-54ee750f2fc7] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest1/regenerateKeys?api-version=2017-01-01 - response: - body: {string: '{"accountName":"clibatchtest1","primary":"0EUWCG5J0BAbAi0t3K62Qq9brqgHYzJo2dvkR04W4CP9vgU+PJB7f5o7nmW1K5s/56W9CAoshJ3CJeGvsRHsAg==","secondary":"A1HwXdaWgz/+FeFnBy9qH5k395PFBoTultTAJqIyCzRE5Q9QRXI3oREni9kTvd8A+XZe3iPV1UX0b5FVw1EXJQ=="}'} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Thu, 09 Mar 2017 21:56:53 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: ['235'] - request-id: [db686f25-5713-42f5-950f-cae532d56117] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - 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: [4eea4e06-0513-11e7-9544-54ee750f2fc7] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest1?api-version=2017-01-01 - response: - body: {string: '{"name":"clibatchtest1","location":"brazilsouth","properties":{"accountEndpoint":"clibatchtest1.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/clibatchteststorage1","lastKeySync":"2017-03-09T21:56:49.7512756Z"},"poolAllocationMode":"batchservice"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest1","type":"Microsoft.Batch/batchAccounts"}'} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Thu, 09 Mar 2017 21:56:55 GMT'] - ETag: ['0x8D4673733D6C1D7'] - Expires: ['-1'] - Last-Modified: ['Thu, 09 Mar 2017 21:56:55 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: [3f92d3d6-7abe-4c0c-a109-6dec4768e0bf] - 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: [5017621c-0513-11e7-b3b4-54ee750f2fc7] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest1?api-version=2017-01-01 - response: - body: {string: '{"name":"clibatchtest1","location":"brazilsouth","properties":{"accountEndpoint":"clibatchtest1.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/clibatchteststorage1","lastKeySync":"2017-03-09T21:56:49.7512756Z"},"poolAllocationMode":"batchservice"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest1","type":"Microsoft.Batch/batchAccounts"}'} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Thu, 09 Mar 2017 21:56:56 GMT'] - ETag: ['0x8D4673735138CBC'] - Expires: ['-1'] - Last-Modified: ['Thu, 09 Mar 2017 21:56:57 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: [53ed1e7f-5bb7-43c1-8a0c-0482075a443c] - 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: [50f72008-0513-11e7-8444-54ee750f2fc7] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest1/listKeys?api-version=2017-01-01 - response: - body: {string: '{"accountName":"clibatchtest1","primary":"0EUWCG5J0BAbAi0t3K62Qq9brqgHYzJo2dvkR04W4CP9vgU+PJB7f5o7nmW1K5s/56W9CAoshJ3CJeGvsRHsAg==","secondary":"A1HwXdaWgz/+FeFnBy9qH5k395PFBoTultTAJqIyCzRE5Q9QRXI3oREni9kTvd8A+XZe3iPV1UX0b5FVw1EXJQ=="}'} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Thu, 09 Mar 2017 21:56:58 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: ['235'] - request-id: [6306ce86-7f45-4c04-891b-fd75722c2132] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - 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: [522189b6-0513-11e7-996a-54ee750f2fc7] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest1?api-version=2017-01-01 - response: - body: {string: ''} - headers: - Cache-Control: [no-cache] - Content-Length: ['0'] - Date: ['Thu, 09 Mar 2017 21:57:01 GMT'] - Expires: ['-1'] - Location: ['https://management.azure.com/subscriptions/603663e9-700c-46de-9d41-e080ff1d461e/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest1/operationResults/74570e89-acf0-470f-a823-ccb04523fce6?api-version=2017-01-01'] - Pragma: [no-cache] - Retry-After: ['15'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - X-Content-Type-Options: [nosniff] - request-id: [74570e89-acf0-470f-a823-ccb04523fce6] - x-ms-ratelimit-remaining-subscription-writes: ['1191'] - status: {code: 202, message: Accepted} -- 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: [522189b6-0513-11e7-996a-54ee750f2fc7] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtest1/operationResults/74570e89-acf0-470f-a823-ccb04523fce6?api-version=2017-01-01 - response: - body: {string: ''} - headers: - Cache-Control: [no-cache] - Content-Length: ['0'] - Date: ['Thu, 09 Mar 2017 21:57:17 GMT'] - ETag: ['0x8D4673740D0516B'] - Expires: ['-1'] - Last-Modified: ['Thu, 09 Mar 2017 21:57:17 GMT'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - X-Content-Type-Options: [nosniff] - request-id: [3642abf6-e02f-4845-b063-05dd1abf0f5b] - 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: [5dd457ac-0513-11e7-82e0-54ee750f2fc7] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtestuser1?api-version=2017-01-01 - response: - body: {string: ''} - headers: - Cache-Control: [no-cache] - Content-Length: ['0'] - Date: ['Thu, 09 Mar 2017 21:57:19 GMT'] - Expires: ['-1'] - Location: ['https://management.azure.com/subscriptions/603663e9-700c-46de-9d41-e080ff1d461e/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtestuser1/operationResults/7f91a508-77e9-4085-9676-21c0c4a2ac70?api-version=2017-01-01'] - Pragma: [no-cache] - Retry-After: ['15'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - X-Content-Type-Options: [nosniff] - request-id: [7f91a508-77e9-4085-9676-21c0c4a2ac70] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] - status: {code: 202, message: Accepted} -- 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: [5dd457ac-0513-11e7-82e0-54ee750f2fc7] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts/clibatchtestuser1/operationResults/7f91a508-77e9-4085-9676-21c0c4a2ac70?api-version=2017-01-01 - response: - body: {string: ''} - headers: - Cache-Control: [no-cache] - Content-Length: ['0'] - Date: ['Thu, 09 Mar 2017 21:57:36 GMT'] - ETag: ['0x8D467374D7187EC'] - Expires: ['-1'] - Last-Modified: ['Thu, 09 Mar 2017 21:57:38 GMT'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - X-Content-Type-Options: [nosniff] - request-id: [9988b9b5-fb91-4d91-b85e-2aedb39a89ce] - 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: [68e10a8c-0513-11e7-ab42-54ee750f2fc7] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vcr_resource_group/providers/Microsoft.Batch/batchAccounts?api-version=2017-01-01 - response: - body: {string: '{"value":[]}'} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Thu, 09 Mar 2017 21:57:38 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: [0ff10127-0bb1-4021-ae3a-98ce8796bac8] - 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: [6a0f7aca-0513-11e7-a374-54ee750f2fc7] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/brazilsouth/quotas?api-version=2017-01-01 - response: - body: {string: '{"accountQuota":1}'} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Thu, 09 Mar 2017 21:57:40 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: ['18'] - request-id: [0f1f4e7e-46e9-4ae2-9d2f-16298ea976db] - status: {code: 200, message: OK} -version: 1 diff --git a/src/command_modules/azure-cli-batch/tests/recordings/test_batch_application_cmd.yaml b/src/command_modules/azure-cli-batch/tests/recordings/test_batch_application_cmd.yaml new file mode 100644 index 000000000..5003a8a7f --- /dev/null +++ b/src/command_modules/azure-cli-batch/tests/recordings/test_batch_application_cmd.yaml @@ -0,0 +1,1977 @@ +interactions: +- request: + body: '{"tags": {"use": "az-test"}, "location": "ukwest"}' + 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":"ukwest","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:39:37 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: '{"kind": "Storage", "location": "ukwest", "sku": {"name": "Standard_LRS"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage account create] + Connection: [keep-alive] + Content-Length: ['74'] + 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 storagemanagementclient/1.0.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/providers/Microsoft.Storage/storageAccounts/clibatchteststorage7?api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:39:40 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:39:58 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:40:15 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:40:32 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:40:50 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:41:07 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:41:24 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:41:42 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:42:00 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:42:17 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:42:35 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:42:53 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:43:10 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:43:27 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:43:45 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:44:02 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:44:20 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:44:37 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:44:54 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:45:12 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:45:30 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:45:48 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:46:05 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:46:23 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:46:40 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:46:57 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:47:14 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:47:31 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:47:49 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:48:07 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:48:24 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:48:42 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:48:59 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:49:16 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:49:34 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:49:51 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:50:08 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:50:26 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:50:44 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:51:01 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01'] + pragma: [no-cache] + retry-after: ['17'] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [storage 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 storagemanagementclient/1.0.0rc1 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/providers/Microsoft.Storage/operations/b18ad5bc-1b91-4754-bbd8-d8fdb4c1b3c7?monitor=true&api-version=2016-12-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststorage7","kind":"Storage","location":"ukwest","name":"clibatchteststorage7","properties":{"creationTime":"2017-05-16T19:39:40.4622024Z","primaryEndpoints":{"blob":"https://clibatchteststorage7.blob.core.windows.net/","file":"https://clibatchteststorage7.file.core.windows.net/","queue":"https://clibatchteststorage7.queue.core.windows.net/","table":"https://clibatchteststorage7.table.core.windows.net/"},"primaryLocation":"ukwest","provisioningState":"Succeeded","statusOfPrimary":"available","supportsHttpsTrafficOnly":false},"sku":{"name":"Standard_LRS","tier":"Standard"},"tags":{},"type":"Microsoft.Storage/storageAccounts"} + + '} + headers: + cache-control: [no-cache] + content-length: ['837'] + content-type: [application/json] + date: ['Tue, 16 May 2017 19:51:19 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: 'b''{"properties": {"autoStorage": {"storageAccountId": "/subscriptions/603663e9-700c-46de-9d41-e080ff1d461e/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststorage7"}}, + "location": "ukwest"}''' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [batch account create] + Connection: [keep-alive] + Content-Length: ['286'] + 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/clibatchtest7?api-version=2017-05-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:51:24 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtest7/operationResults/1102d2b8-9f97-47af-9802-5f4a088c0dee?api-version=2017-05-01'] + pragma: [no-cache] + request-id: [1102d2b8-9f97-47af-9802-5f4a088c0dee] + 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/clibatchtest7/operationResults/1102d2b8-9f97-47af-9802-5f4a088c0dee?api-version=2017-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtest7","name":"clibatchtest7","type":"Microsoft.Batch/batchAccounts","location":"ukwest","properties":{"accountEndpoint":"clibatchtest7.ukwest.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststorage7","lastKeySync":"2017-05-16T19:51:23.7742818Z"},"poolAllocationMode":"batchservice"}}'} + headers: + cache-control: [no-cache] + content-length: ['816'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:51:39 GMT'] + etag: ['"0x8D49C94F8568BBB"'] + expires: ['-1'] + last-modified: ['Tue, 16 May 2017 19:51:40 GMT'] + pragma: [no-cache] + request-id: [f1cfb278-efc9-4007-8efe-709ddefa717b] + 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 application 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/clibatchtest7?api-version=2017-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtest7","name":"clibatchtest7","type":"Microsoft.Batch/batchAccounts","location":"ukwest","properties":{"accountEndpoint":"clibatchtest7.ukwest.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststorage7","lastKeySync":"2017-05-16T19:51:23.7742818Z"},"poolAllocationMode":"batchservice"}}'} + headers: + cache-control: [no-cache] + content-length: ['816'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:51:40 GMT'] + etag: ['"0x8D49C94EE9254E2"'] + expires: ['-1'] + last-modified: ['Tue, 16 May 2017 19:51:23 GMT'] + pragma: [no-cache] + request-id: [a6820b7c-d931-422e-baaa-50e8e9bfdc3e] + 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: '{"allowUpdates": true}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [batch application create] + Connection: [keep-alive] + Content-Length: ['22'] + 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/clibatchtest7/applications/testapp?api-version=2017-05-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: ['Tue, 16 May 2017 19:51:42 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-id: [a5701663-d8ab-40fd-a22b-a752d1109e66] + 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: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [batch application list] + 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/clibatchtest7?api-version=2017-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtest7","name":"clibatchtest7","type":"Microsoft.Batch/batchAccounts","location":"ukwest","properties":{"accountEndpoint":"clibatchtest7.ukwest.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststorage7","lastKeySync":"2017-05-16T19:51:23.7742818Z"},"poolAllocationMode":"batchservice"}}'} + headers: + cache-control: [no-cache] + content-length: ['816'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:51:42 GMT'] + etag: ['"0x8D49C94EE9254E2"'] + expires: ['-1'] + last-modified: ['Tue, 16 May 2017 19:51:23 GMT'] + pragma: [no-cache] + request-id: [d892e700-b106-4026-b0be-d72f370bd26a] + 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 application list] + 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/clibatchtest7/applications?api-version=2017-05-01 + response: + body: {string: '{"value":[{"id":"testapp","packages":[],"allowUpdates":true}]}'} + headers: + cache-control: [no-cache] + content-length: ['62'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:51:43 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-id: [1aa02e2e-a5e5-4e46-bca0-5ac5ca10cd45] + 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 application package 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/clibatchtest7?api-version=2017-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtest7","name":"clibatchtest7","type":"Microsoft.Batch/batchAccounts","location":"ukwest","properties":{"accountEndpoint":"clibatchtest7.ukwest.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststorage7","lastKeySync":"2017-05-16T19:51:23.7742818Z"},"poolAllocationMode":"batchservice"}}'} + headers: + cache-control: [no-cache] + content-length: ['816'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:51:44 GMT'] + etag: ['"0x8D49C94EE9254E2"'] + expires: ['-1'] + last-modified: ['Tue, 16 May 2017 19:51:23 GMT'] + pragma: [no-cache] + request-id: [0c95a25b-81af-447b-9222-2b5ec2d79aa3] + 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 application package 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/clibatchtest7/applications/testapp?api-version=2017-05-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: ['Tue, 16 May 2017 19:51:45 GMT'] + etag: ['"0x8D49C94F9BE3832"'] + expires: ['-1'] + last-modified: ['Tue, 16 May 2017 19:51:42 GMT'] + pragma: [no-cache] + request-id: [166938d3-8ecc-4e6f-bfaf-5d0258b4bbe6] + 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 application package create] + 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: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtest7/applications/testapp/versions/1.0?api-version=2017-05-01 + response: + body: {string: '{"id":"testapp","version":"1.0","storageUrl":"https://clibatchteststorage7.blob.core.windows.net/app-testapp-4a19557dc1b96c20dfa19772af36624f6913ae44/testapp-1.0-5ee92df1-cfee-4a87-9da9-41ef15c3757b?sv=2015-04-05&sr=b&sig=OohqNpm%2FNomnwQ%2BAA6i1buGgk7mcP%2BHyp2UHwB37WpQ%3D&st=2017-05-16T19%3A46%3A45Z&se=2017-05-16T23%3A51%3A45Z&sp=rw","storageUrlExpiry":"2017-05-16T23:51:45.7527427Z","state":"pending"}'} + headers: + cache-control: [no-cache] + content-length: ['406'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:51:46 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-id: [0e627902-490d-4e1f-bdc9-010d6116b9b6] + 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: 201, message: Created} +- request: + body: storage blob test sample file + headers: + Connection: [keep-alive] + Content-Length: ['29'] + User-Agent: [Azure-Storage/0.34.0 (Python CPython 3.5.1; Windows 10)] + x-ms-blob-type: [BlockBlob] + x-ms-date: ['Tue, 16 May 2017 19:51:47 GMT'] + x-ms-version: ['2016-05-31'] + method: PUT + uri: https://clibatchteststorage7.blob.core.windows.net/app-testapp-4a19557dc1b96c20dfa19772af36624f6913ae44/testapp-1.0-5ee92df1-cfee-4a87-9da9-41ef15c3757b?sv=2015-04-05&sr=b&sig=OohqNpm%2FNomnwQ%2BAA6i1buGgk7mcP%2BHyp2UHwB37WpQ%3D&st=2017-05-16T19%3A46%3A45Z&se=2017-05-16T23%3A51%3A45Z&sp=rw + response: + body: {string: ''} + headers: + content-md5: [JeBon6PeparxrbCKMR+6hw==] + date: ['Tue, 16 May 2017 19:51:47 GMT'] + etag: ['"0x8D49C94FD3D3AF5"'] + last-modified: ['Tue, 16 May 2017 19:51:48 GMT'] + server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + transfer-encoding: [chunked] + x-ms-request-server-encrypted: ['false'] + x-ms-version: ['2016-05-31'] + status: {code: 201, message: Created} +- request: + body: '{"format": "zip"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [batch application package create] + Connection: [keep-alive] + Content-Length: ['17'] + 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/clibatchtest7/applications/testapp/versions/1.0/activate?api-version=2017-05-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:51:47 GMT'] + etag: ['"0x8D49C94FC82B78C"'] + expires: ['-1'] + last-modified: ['Tue, 16 May 2017 19:51:47 GMT'] + pragma: [no-cache] + request-id: [fab420b7-be45-4feb-9a51-2cc64f335c0c] + 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: 204, message: No Content} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [batch application package 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/clibatchtest7/applications/testapp/versions/1.0?api-version=2017-05-01 + response: + body: {string: '{"id":"testapp","version":"1.0","storageUrl":"https://clibatchteststorage7.blob.core.windows.net/app-testapp-4a19557dc1b96c20dfa19772af36624f6913ae44/testapp-1.0-5ee92df1-cfee-4a87-9da9-41ef15c3757b?sv=2015-04-05&sr=b&sig=dPfmW6cF54t%2B1Tdfw8XtQw1kZPJVCIA78vhhW8JQf%2BM%3D&st=2017-05-16T19%3A46%3A48Z&se=2017-05-16T23%3A51%3A48Z&sp=rw","storageUrlExpiry":"2017-05-16T23:51:48.1580199Z","state":"active","format":"zip","lastActivationTime":"2017-05-16T19:51:49.2500205Z"}'} + headers: + cache-control: [no-cache] + content-length: ['470'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:51:49 GMT'] + etag: ['"0x8D49C94FD7B745C"'] + expires: ['-1'] + last-modified: ['Tue, 16 May 2017 19:51:48 GMT'] + pragma: [no-cache] + request-id: [4462a4d8-90eb-4370-a2d2-1fa68c964c43] + 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 application package activate] + 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/clibatchtest7?api-version=2017-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtest7","name":"clibatchtest7","type":"Microsoft.Batch/batchAccounts","location":"ukwest","properties":{"accountEndpoint":"clibatchtest7.ukwest.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststorage7","lastKeySync":"2017-05-16T19:51:23.7742818Z"},"poolAllocationMode":"batchservice"}}'} + headers: + cache-control: [no-cache] + content-length: ['816'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:51:49 GMT'] + etag: ['"0x8D49C94EE9254E2"'] + expires: ['-1'] + last-modified: ['Tue, 16 May 2017 19:51:23 GMT'] + pragma: [no-cache] + request-id: [354c22b3-2c49-45be-a795-e81edfc82394] + 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: '{"format": "zip"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [batch application package activate] + Connection: [keep-alive] + Content-Length: ['17'] + 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/clibatchtest7/applications/testapp/versions/1.0/activate?api-version=2017-05-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:51:50 GMT'] + etag: ['"0x8D49C94FD7B745C"'] + expires: ['-1'] + last-modified: ['Tue, 16 May 2017 19:51:48 GMT'] + pragma: [no-cache] + request-id: [750472a9-f389-4c2a-b724-868b8d580aea] + 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: 204, message: No Content} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [batch application package 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/clibatchtest7?api-version=2017-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtest7","name":"clibatchtest7","type":"Microsoft.Batch/batchAccounts","location":"ukwest","properties":{"accountEndpoint":"clibatchtest7.ukwest.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststorage7","lastKeySync":"2017-05-16T19:51:23.7742818Z"},"poolAllocationMode":"batchservice"}}'} + headers: + cache-control: [no-cache] + content-length: ['816'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:51:50 GMT'] + etag: ['"0x8D49C94EE9254E2"'] + expires: ['-1'] + last-modified: ['Tue, 16 May 2017 19:51:23 GMT'] + pragma: [no-cache] + request-id: [1e7056bc-e66d-496b-b245-2890d9e31bcb] + 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 application package 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/clibatchtest7/applications/testapp/versions/1.0?api-version=2017-05-01 + response: + body: {string: '{"id":"testapp","version":"1.0","storageUrl":"https://clibatchteststorage7.blob.core.windows.net/app-testapp-4a19557dc1b96c20dfa19772af36624f6913ae44/testapp-1.0-5ee92df1-cfee-4a87-9da9-41ef15c3757b?sv=2015-04-05&sr=b&sig=PbMdklS4cxuGtWGirsZO0C4aww7n8EUmd7NE9DNj3Dc%3D&st=2017-05-16T19%3A46%3A49Z&se=2017-05-16T23%3A51%3A49Z&sp=rw","storageUrlExpiry":"2017-05-16T23:51:49.0314361Z","state":"active","format":"zip","lastActivationTime":"2017-05-16T19:51:51.288511Z"}'} + headers: + cache-control: [no-cache] + content-length: ['465'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:51:51 GMT'] + etag: ['"0x8D49C94FEB2CBE4"'] + expires: ['-1'] + last-modified: ['Tue, 16 May 2017 19:51:50 GMT'] + pragma: [no-cache] + request-id: [a176db11-1ed8-4fa7-9156-51a277d850c3] + 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 application set] + 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/clibatchtest7?api-version=2017-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtest7","name":"clibatchtest7","type":"Microsoft.Batch/batchAccounts","location":"ukwest","properties":{"accountEndpoint":"clibatchtest7.ukwest.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststorage7","lastKeySync":"2017-05-16T19:51:23.7742818Z"},"poolAllocationMode":"batchservice"}}'} + headers: + cache-control: [no-cache] + content-length: ['816'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:51:50 GMT'] + etag: ['"0x8D49C94EE9254E2"'] + expires: ['-1'] + last-modified: ['Tue, 16 May 2017 19:51:23 GMT'] + pragma: [no-cache] + request-id: [d68cb16f-3fd8-4a4b-af51-7e7647e6ad9d] + 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: '{"defaultVersion": "1.0"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [batch application set] + Connection: [keep-alive] + 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] + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtest7/applications/testapp?api-version=2017-05-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:51:51 GMT'] + etag: ['"0x8D49C94F9BE3832"'] + expires: ['-1'] + last-modified: ['Tue, 16 May 2017 19:51:42 GMT'] + pragma: [no-cache] + request-id: [40ad7f6a-f823-42e4-89eb-616ceb9ffa1d] + 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: 204, message: No Content} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [batch application 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/clibatchtest7?api-version=2017-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtest7","name":"clibatchtest7","type":"Microsoft.Batch/batchAccounts","location":"ukwest","properties":{"accountEndpoint":"clibatchtest7.ukwest.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststorage7","lastKeySync":"2017-05-16T19:51:23.7742818Z"},"poolAllocationMode":"batchservice"}}'} + headers: + cache-control: [no-cache] + content-length: ['816'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:51:52 GMT'] + etag: ['"0x8D49C94EE9254E2"'] + expires: ['-1'] + last-modified: ['Tue, 16 May 2017 19:51:23 GMT'] + pragma: [no-cache] + request-id: [0ba74723-efeb-4a9f-967a-a2615f3f8f34] + 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 application 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/clibatchtest7/applications/testapp?api-version=2017-05-01 + response: + body: {string: '{"id":"testapp","packages":[{"version":"1.0","state":"active","lastActivationTime":"2017-05-16T19:51:51.288511Z","format":"zip"}],"allowUpdates":true,"defaultVersion":"1.0"}'} + headers: + cache-control: [no-cache] + content-length: ['173'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:51:52 GMT'] + etag: ['"0x8D49C94FF8EACEC"'] + expires: ['-1'] + last-modified: ['Tue, 16 May 2017 19:51:52 GMT'] + pragma: [no-cache] + request-id: [d5439407-0d69-4794-9bb6-92d80d4bef1a] + 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 application package delete] + 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/clibatchtest7?api-version=2017-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtest7","name":"clibatchtest7","type":"Microsoft.Batch/batchAccounts","location":"ukwest","properties":{"accountEndpoint":"clibatchtest7.ukwest.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststorage7","lastKeySync":"2017-05-16T19:51:23.7742818Z"},"poolAllocationMode":"batchservice"}}'} + headers: + cache-control: [no-cache] + content-length: ['816'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:51:53 GMT'] + etag: ['"0x8D49C94EE9254E2"'] + expires: ['-1'] + last-modified: ['Tue, 16 May 2017 19:51:23 GMT'] + pragma: [no-cache] + request-id: [f41c3356-b0be-497c-a90d-22f7b866ed68] + 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 application package 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 batchmanagementclient/4.0.0 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/providers/Microsoft.Batch/batchAccounts/clibatchtest7/applications/testapp/versions/1.0?api-version=2017-05-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:51:53 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-id: [60f003be-7641-43ca-b73f-76e7c888b639] + 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: 204, message: No Content} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [batch application delete] + 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/clibatchtest7?api-version=2017-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtest7","name":"clibatchtest7","type":"Microsoft.Batch/batchAccounts","location":"ukwest","properties":{"accountEndpoint":"clibatchtest7.ukwest.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststorage7","lastKeySync":"2017-05-16T19:51:23.7742818Z"},"poolAllocationMode":"batchservice"}}'} + headers: + cache-control: [no-cache] + content-length: ['816'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:51:55 GMT'] + etag: ['"0x8D49C94EE9254E2"'] + expires: ['-1'] + last-modified: ['Tue, 16 May 2017 19:51:23 GMT'] + pragma: [no-cache] + request-id: [e9d829d8-77c6-4c93-8d44-5353cfdd3ca0] + 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 application 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 batchmanagementclient/4.0.0 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/providers/Microsoft.Batch/batchAccounts/clibatchtest7/applications/testapp?api-version=2017-05-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:51:55 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-id: [ddfb3c1c-16d9-48ba-9177-56c03cd17768] + 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: 204, message: No Content} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [batch application list] + 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/clibatchtest7?api-version=2017-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Batch/batchAccounts/clibatchtest7","name":"clibatchtest7","type":"Microsoft.Batch/batchAccounts","location":"ukwest","properties":{"accountEndpoint":"clibatchtest7.ukwest.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":20,"lowPriorityCoreQuota":50,"poolQuota":20,"activeJobAndJobScheduleQuota":20,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clibatchteststorage7","lastKeySync":"2017-05-16T19:51:23.7742818Z"},"poolAllocationMode":"batchservice"}}'} + headers: + cache-control: [no-cache] + content-length: ['816'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:51:55 GMT'] + etag: ['"0x8D49C94EE9254E2"'] + expires: ['-1'] + last-modified: ['Tue, 16 May 2017 19:51:23 GMT'] + pragma: [no-cache] + request-id: [5c8cbff6-005f-45f1-97e1-6920db3d3525] + 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 application list] + 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/clibatchtest7/applications?api-version=2017-05-01 + response: + body: {string: '{"value":[]}'} + headers: + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 16 May 2017 19:51:56 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-id: [51e70f25-2f05-4257-9866-baa53a43170b] + 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: [storage account 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 storagemanagementclient/1.0.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/providers/Microsoft.Storage/storageAccounts/clibatchteststorage7?api-version=2016-12-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 16 May 2017 19:52:02 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-Azure-Storage-Resource-Provider/1.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + 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:52:06 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdDM0xDVUFJUkFRUUFIR1BaSzZRN0RVNkU0QUNRQVUyWlIyQXxCMzE0RkM4QzdERjQyNUQ4LVVLV0VTVCIsImpvYkxvY2F0aW9uIjoidWt3ZXN0In0?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 diff --git a/src/command_modules/azure-cli-batch/tests/recordings/test_batch_application_mgmt.yaml b/src/command_modules/azure-cli-batch/tests/recordings/test_batch_application_mgmt.yaml deleted file mode 100644 index ee57dae0b..000000000 --- a/src/command_modules/azure-cli-batch/tests/recordings/test_batch_application_mgmt.yaml +++ /dev/null @@ -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 diff --git a/src/command_modules/azure-cli-batch/tests/recordings/test_batch_certificate_cmd.yaml b/src/command_modules/azure-cli-batch/tests/recordings/test_batch_certificate_cmd.yaml index f88ddeb80..1d3b183f2 100644 --- a/src/command_modules/azure-cli-batch/tests/recordings/test_batch_certificate_cmd.yaml +++ b/src/command_modules/azure-cli-batch/tests/recordings/test_batch_certificate_cmd.yaml @@ -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 diff --git a/src/command_modules/azure-cli-batch/tests/recordings/test_batch_job_list_cmd.yaml b/src/command_modules/azure-cli-batch/tests/recordings/test_batch_job_list_cmd.yaml index 37415e7a7..96593d4e9 100644 --- a/src/command_modules/azure-cli-batch/tests/recordings/test_batch_job_list_cmd.yaml +++ b/src/command_modules/azure-cli-batch/tests/recordings/test_batch_job_list_cmd.yaml @@ -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 \ - \ \"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\"\ + :{\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\"\ + ,\"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 \ - \ \"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\"\ + :{\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\"\ + ,\"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 diff --git a/src/command_modules/azure-cli-batch/tests/recordings/test_batch_jobs.yaml b/src/command_modules/azure-cli-batch/tests/recordings/test_batch_jobs.yaml deleted file mode 100644 index cbbf0a773..000000000 --- a/src/command_modules/azure-cli-batch/tests/recordings/test_batch_jobs.yaml +++ /dev/null @@ -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 diff --git a/src/command_modules/azure-cli-batch/tests/recordings/test_batch_jobs_and_tasks.yaml b/src/command_modules/azure-cli-batch/tests/recordings/test_batch_jobs_and_tasks.yaml new file mode 100644 index 000000000..33d9ec6ce --- /dev/null +++ b/src/command_modules/azure-cli-batch/tests/recordings/test_batch_jobs_and_tasks.yaml @@ -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 diff --git a/src/command_modules/azure-cli-batch/tests/recordings/test_batch_pool_cmd.yaml b/src/command_modules/azure-cli-batch/tests/recordings/test_batch_pool_cmd.yaml index 70cbde3af..41ead0010 100644 --- a/src/command_modules/azure-cli-batch/tests/recordings/test_batch_pool_cmd.yaml +++ b/src/command_modules/azure-cli-batch/tests/recordings/test_batch_pool_cmd.yaml @@ -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 diff --git a/src/command_modules/azure-cli-batch/tests/recordings/test_batch_pools.yaml b/src/command_modules/azure-cli-batch/tests/recordings/test_batch_pools.yaml deleted file mode 100644 index 87e78439b..000000000 --- a/src/command_modules/azure-cli-batch/tests/recordings/test_batch_pools.yaml +++ /dev/null @@ -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 diff --git a/src/command_modules/azure-cli-batch/tests/recordings/test_batch_pools_and_nodes.yaml b/src/command_modules/azure-cli-batch/tests/recordings/test_batch_pools_and_nodes.yaml new file mode 100644 index 000000000..18e657986 --- /dev/null +++ b/src/command_modules/azure-cli-batch/tests/recordings/test_batch_pools_and_nodes.yaml @@ -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 diff --git a/src/command_modules/azure-cli-batch/tests/recordings/test_batch_task_create_cmd.yaml b/src/command_modules/azure-cli-batch/tests/recordings/test_batch_task_create_cmd.yaml index 45026a548..d2eeee542 100644 --- a/src/command_modules/azure-cli-batch/tests/recordings/test_batch_task_create_cmd.yaml +++ b/src/command_modules/azure-cli-batch/tests/recordings/test_batch_task_create_cmd.yaml @@ -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 diff --git a/src/command_modules/azure-cli-batch/tests/test_batch_commands.py b/src/command_modules/azure-cli-batch/tests/test_batch_commands.py index 7d8d5a88b..065632151 100644 --- a/src/command_modules/azure-cli-batch/tests/test_batch_commands.py +++ b/src/command_modules/azure-cli-batch/tests/test_batch_commands.py @@ -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,14 +649,14 @@ 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 error = models.BatchError() error.code = 'InvalidHeaderValue' error.message = models.ErrorMessage('en-US', 'The value for one of the HTTP ' - 'headers is not in the correct format') + 'headers is not in the correct format') error.values = [ models.BatchErrorDetail('HeaderName', 'Content-Type'), models.BatchErrorDetail('HeaderValue', 'application/json') @@ -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") diff --git a/src/command_modules/azure-cli-batch/tests/test_batch_data_plane_command_base.py b/src/command_modules/azure-cli-batch/tests/test_batch_data_plane_command_base.py deleted file mode 100644 index 1bfb805e5..000000000 --- a/src/command_modules/azure-cli-batch/tests/test_batch_data_plane_command_base.py +++ /dev/null @@ -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) diff --git a/src/command_modules/azure-cli-batch/tests/test_batch_data_plane_commands.py b/src/command_modules/azure-cli-batch/tests/test_batch_data_plane_commands.py index 77cd638d2..54445588d 100644 --- a/src/command_modules/azure-cli-batch/tests/test_batch_data_plane_commands.py +++ b/src/command_modules/azure-cli-batch/tests/test_batch_data_plane_commands.py @@ -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), - JMESPathCheck('thumbprintAlgorithm', 'sha1'), - JMESPathCheck('state', 'active') - ]) + 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')]) # 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), - JMESPathCheck('thumbprintAlgorithm', 'sha1'), - JMESPathCheck('state', 'deleting') - ]) + self.batch_cmd('batch certificate show --thumbprint {}', account_info, cert_thumbprint) \ + .assert_with_checks([JMESPathCheck('thumbprint', cert_thumbprint), + JMESPathCheck('thumbprintAlgorithm', 'sha1'), + 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' + 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")]) + 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)]) - 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: + self.batch_cmd('batch pool resize --pool-id {} --abort', account_info, create_pool_id) + if not is_playback: import time - time.sleep(60) + time.sleep(120) - 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.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.cmd('batch pool create --json-file "{}"'.format(self.create_pool_file_path)) + 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 show --pool-id {}'.format(self.create_pool_id), - checks=[JMESPathCheck('allocationState', 'steady'), - JMESPathCheck('id', self.create_pool_id), - JMESPathCheck('startTask.commandLine', "cmd /c echo test"), - JMESPathCheck('startTask.userIdentity.autoUser.elevationLevel', "admin")]) + 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 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), - JMESPathCheck('startTask.commandLine', "cmd /c echo updated")]) + self.batch_cmd('batch pool delete --pool-id {} --yes', account_info, create_pool_id) - 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), - JMESPathCheck('startTask.commandLine', "hostname"), - JMESPathCheck('length(metadata)', 2), - JMESPathCheck('metadata[0].name', 'a'), - JMESPathCheck('metadata[1].value', 'd')]) + @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) - self.cmd('batch pool delete --pool-id {} --yes'.format(self.create_pool_id)) + 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.batch_cmd('batch job-schedule create --json-file "{}"', account_info, + create_jobschedule_file_path) -class BatchJobListScenarioTest(BatchDataPlaneTestBase): + self.addCleanup( + lambda: self.batch_cmd('batch job-schedule delete --job-schedule-id {} --yes', + account_info, job_schedule_id)) - def set_up(self): - self.cmd('batch job-schedule create --json-file "{}"'. - format(self.create_jobschedule_file_path)) + 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))]) - def tear_down(self): - self.cmd('batch job-schedule delete --job-schedule-id {} --yes'. - format(self.job_schedule_id)) + result = self.batch_cmd('batch job list', account_info) \ + .assert_with_checks([JMESPathCheck('length(@)', 2)]) \ + .get_output_in_json() - 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', - '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' + 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])) - def test_batch_job_list_cmd(self): - self.execute() + self.batch_cmd('batch job delete --job-id {} --yes', account_info, create_job_id) - def body(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) - 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.addCleanup(lambda: + self.batch_cmd('batch job delete --job-id {} --yes', account_info, job_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]) + 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')]) - self.cmd('batch job delete --job-id {} --yes'.format(self.create_job_id)) + 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.batch_cmd('batch task delete --job-id {} --task-id {} --yes', account_info, job_id, + task_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)) + 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')]) - def tear_down(self): - self.cmd('batch job delete --job-id {} --yes'.format(self.job_id)) + self.batch_cmd('batch task delete --job-id {} --task-id aaa --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' + 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'])) - def test_batch_task_create_cmd(self): - self.execute() + @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) - 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), - JMESPathCheck('commandLine', 'cmd /c dir /s')]) + # test create paas pool using parameters + self.batch_cmd('batch pool create --id {} --vm-size small --os-family 4', account_info, + pool_paas) - 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') + # 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) - self.cmd('batch task delete --job-id {} --task-id {} --yes'. - format(self.job_id, self.task_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) - 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')]) + # 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')]) - self.cmd('batch task delete --job-id {} --task-id aaa --yes'.format(self.job_id)) + # 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) - 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']) + # 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 diff --git a/src/command_modules/azure-cli-batch/tests/test_batch_job_commands.py b/src/command_modules/azure-cli-batch/tests/test_batch_job_commands.py deleted file mode 100644 index 25d6f4575..000000000 --- a/src/command_modules/azure-cli-batch/tests/test_batch_job_commands.py +++ /dev/null @@ -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') diff --git a/src/command_modules/azure-cli-batch/tests/test_batch_mgmt_commands.py b/src/command_modules/azure-cli-batch/tests/test_batch_mgmt_commands.py index f15bc8812..afc7cf7c6 100644 --- a/src/command_modules/azure-cli-batch/tests/test_batch_mgmt_commands.py +++ b/src/command_modules/azure-cli-batch/tests/test_batch_mgmt_commands.py @@ -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), - JMESPathCheck('secondary != 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=[ - JMESPathCheck('length(@)', 1), - JMESPathCheck('[0].id', aname), - ]) + self.cmd('batch application list -g {} -n {}'.format( + resource_group, account_name)).assert_with_checks([ + JMESPathCheck('length(@)', 1), + 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), - JMESPathCheck('storageUrl != null', True), - JMESPathCheck('version', ver), - JMESPathCheck('state', 'active') - ]) + ' --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', 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), - JMESPathCheck('format', 'zip'), - JMESPathCheck('version', ver), - JMESPathCheck('state', 'active') - ]) + format(resource_group, account_name, application_name, + application_package_name)).assert_with_checks([ + JMESPathCheck('id', application_name), + JMESPathCheck('format', 'zip'), + 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), - JMESPathCheck('packages[0].format', 'zip'), - JMESPathCheck('packages[0].state', 'active')]) + 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)) diff --git a/src/command_modules/azure-cli-batch/tests/test_batch_pool_commands.py b/src/command_modules/azure-cli-batch/tests/test_batch_pool_commands.py deleted file mode 100644 index 7e0acc6a8..000000000 --- a/src/command_modules/azure-cli-batch/tests/test_batch_pool_commands.py +++ /dev/null @@ -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