diff --git a/azure-cli.pyproj b/azure-cli.pyproj
index 90f30f495f6..5e87b27879e 100644
--- a/azure-cli.pyproj
+++ b/azure-cli.pyproj
@@ -105,6 +105,7 @@
+
@@ -124,6 +125,7 @@
+
@@ -204,7 +206,6 @@
-
@@ -231,10 +232,6 @@
-
- Code
-
-
@@ -315,6 +312,8 @@
+
+
@@ -382,6 +381,7 @@
+
@@ -424,10 +424,16 @@
Code
+
+
+
+
+
+
Code
@@ -477,6 +483,15 @@
+
+
+
+
+
+
+
+
+
@@ -540,12 +555,14 @@
+
+
-
+
Code
@@ -554,9 +571,6 @@
-
-
-
@@ -586,8 +600,6 @@
-
-
@@ -710,11 +722,6 @@
-
-
-
-
-
@@ -760,8 +767,6 @@
-
-
@@ -825,6 +830,11 @@
+
+
+
+
+
@@ -832,6 +842,11 @@
+
+
+
+
+
@@ -950,7 +965,6 @@
-
@@ -967,11 +981,6 @@
-
-
-
-
-
@@ -1017,6 +1026,10 @@
+
+
+
+
diff --git a/azure-cli2017.pyproj b/azure-cli2017.pyproj
index 545a280c112..315890108aa 100644
--- a/azure-cli2017.pyproj
+++ b/azure-cli2017.pyproj
@@ -14,8 +14,7 @@
Standard Python launcher
MSBuild|{54f4b6dc-0859-46dc-99bb-b275c9d0aca3}|$(MSBuildProjectFullPath)
False
-
-
+ mysql server-logs download -h
@@ -423,6 +422,9 @@
+
+ Code
+
diff --git a/src/azure-cli-core/azure/cli/core/__init__.py b/src/azure-cli-core/azure/cli/core/__init__.py
index dc2b8ac4545..d03eddca4b8 100644
--- a/src/azure-cli-core/azure/cli/core/__init__.py
+++ b/src/azure-cli-core/azure/cli/core/__init__.py
@@ -179,6 +179,7 @@ def load_arguments(self, command):
if command_loaders:
for loader in command_loaders:
+ loader.command_name = command
loader.load_arguments(command)
self.argument_registry.arguments.update(loader.argument_registry.arguments)
self.extra_argument_registry.update(loader.extra_argument_registry)
@@ -188,19 +189,24 @@ def load_arguments(self, command):
c.argument('location', get_location_type(self.cli_ctx))
c.argument('deployment_name', deployment_name_type)
c.argument('cmd', ignore_type)
-
- super(MainCommandsLoader, self).load_arguments(command)
+ super(MainCommandsLoader, self).load_arguments(command)
class AzCommandsLoader(CLICommandsLoader):
- def __init__(self, cli_ctx=None, min_profile=None, max_profile='latest', **kwargs):
+ def __init__(self, cli_ctx=None, min_profile=None, max_profile='latest',
+ command_group_cls=None, argument_context_cls=None,
+ **kwargs):
from azure.cli.core.commands import AzCliCommand
+ from azure.cli.core.sdk.util import _CommandGroup, _ParametersContext
+
super(AzCommandsLoader, self).__init__(cli_ctx=cli_ctx, command_cls=AzCliCommand)
self.module_name = __name__
self.min_profile = min_profile
self.max_profile = max_profile
self.module_kwargs = kwargs
+ self._command_group_cls = command_group_cls or _CommandGroup
+ self._argument_context_cls = argument_context_cls or _ParametersContext
def _update_command_definitions(self):
for command_name, command in self.command_table.items():
@@ -241,7 +247,6 @@ def _apply_doc_string(self, dest, command_kwargs):
raise CLIError("command authoring error: source '{}' not found.".format(doc_string_source))
dest.__doc__ = model.__doc__
-
def get_api_version(self, resource_type=None):
from azure.cli.core.profiles import get_api_version
resource_type = resource_type or self.module_kwargs.get('resource_type', None)
@@ -266,18 +271,16 @@ def get_models(self, *attr_args, **kwargs):
return get_sdk(self.cli_ctx, resource_type, *attr_args, mod='models')
def command_group(self, group_name, command_type=None, **kwargs):
- from azure.cli.core.sdk.util import _CommandGroup
merged_kwargs = self.module_kwargs.copy()
if command_type:
merged_kwargs['command_type'] = command_type
merged_kwargs.update(kwargs)
- return _CommandGroup(self.module_name, self, group_name, **merged_kwargs)
+ return self._command_group_cls(self.module_name, self, group_name, **merged_kwargs)
def argument_context(self, scope, **kwargs):
- from azure.cli.core.sdk.util import _ParametersContext
merged_kwargs = self.module_kwargs.copy()
merged_kwargs.update(kwargs)
- return _ParametersContext(self, scope, **merged_kwargs)
+ return self._argument_context_cls(self, scope, **merged_kwargs)
def _cli_command(self, name, operation=None, handler=None, argument_loader=None, description_loader=None, **kwargs):
diff --git a/src/azure-cli-core/azure/cli/core/commands/__init__.py b/src/azure-cli-core/azure/cli/core/commands/__init__.py
index dce333aaa38..83802faeefb 100644
--- a/src/azure-cli-core/azure/cli/core/commands/__init__.py
+++ b/src/azure-cli-core/azure/cli/core/commands/__init__.py
@@ -19,7 +19,6 @@
import six
-from azure.cli.core import AzCommandsLoader
import azure.cli.core.telemetry as telemetry
logger = get_logger(__name__)
@@ -134,6 +133,7 @@ def _resolve_default_value_from_cfg_file(self, arg, overrides):
overrides.settings['required'] = False
def load_arguments(self):
+ from azure.cli.core.commands.validators import DefaultStr, DefaultInt
if self.arguments_loader:
cmd_args = self.arguments_loader()
if self.no_wait_param:
@@ -146,6 +146,14 @@ def load_arguments(self):
(CONFIRM_PARAM_NAME,
CLICommandArgument(CONFIRM_PARAM_NAME, options_list=['--yes', '-y'], action='store_true',
help='Do not prompt for confirmation.')))
+ for (arg_name, arg) in cmd_args:
+ arg_def = arg.type.settings.get('default', None)
+ if isinstance(arg_def, str):
+ arg_def = DefaultStr(arg_def)
+ elif isinstance(arg_def, int):
+ arg_def = DefaultInt(arg_def)
+ if arg_def:
+ arg.type.settings['default'] = arg_def
self.arguments.update(cmd_args)
def update_argument(self, param_name, argtype):
@@ -155,6 +163,7 @@ def update_argument(self, param_name, argtype):
def __call__(self, *args, **kwargs):
+ from azure.cli.core import AzCommandsLoader
cmd_args = args[0]
if self.command_source and isinstance(self.command_source, ExtensionCommandSource) and\
@@ -326,6 +335,34 @@ def execute(self, args):
table_transformer=cmd_tbl[parsed_args.command].table_transformer,
is_query_active=self.data['query_active'])
+ def _build_kwargs(self, func, ns): # pylint: disable=no-self-use
+ import inspect
+ arg_spec = inspect.getargspec(func).args # pylint: disable=deprecated-method
+ kwargs = {}
+ if 'cmd' in arg_spec:
+ kwargs['cmd'] = ns._cmd # pylint: disable=protected-access
+ if 'namespace' in arg_spec:
+ kwargs['namespace'] = ns
+ if 'ns' in arg_spec:
+ kwargs['ns'] = ns
+ return kwargs
+
+ def _validate_cmd_level(self, ns, cmd_validator): # pylint: disable=no-self-use
+ if cmd_validator:
+ cmd_validator(**self._build_kwargs(cmd_validator, ns))
+ try:
+ delattr(ns, '_command_validator')
+ except AttributeError:
+ pass
+
+ def _validate_arg_level(self, ns, **_): # pylint: disable=no-self-use
+ for validator in getattr(ns, '_argument_validators', []):
+ validator(**self._build_kwargs(validator, ns))
+ try:
+ delattr(ns, '_argument_validators')
+ except AttributeError:
+ pass
+
class LongRunningOperation(object): # pylint: disable=too-few-public-methods
diff --git a/src/azure-cli-core/azure/cli/core/commands/arm.py b/src/azure-cli-core/azure/cli/core/commands/arm.py
index 62e50203a6a..4c7582b82c2 100644
--- a/src/azure-cli-core/azure/cli/core/commands/arm.py
+++ b/src/azure-cli-core/azure/cli/core/commands/arm.py
@@ -203,13 +203,14 @@ def _get_child(parent, collection_name, item_name, collection_key):
def _get_operations_tmpl(cmd):
- operations_tmpl = cmd.command_kwargs.get('operations_tmpl', cmd.command_kwargs.get('command_type').settings['operations_tmpl'])
+ operations_tmpl = cmd.command_kwargs.get('operations_tmpl',
+ cmd.command_kwargs.get('command_type').settings['operations_tmpl'])
if not operations_tmpl:
raise CLIError("command authoring error: cmd '{}' does not have an operations_tmpl.".format(cmd.name))
return operations_tmpl
-def _get_client_factory(name, kwargs):
+def _get_client_factory(_, kwargs):
factory = kwargs.get('client_factory', kwargs.get('command_type').settings.get('client_factory', None))
return factory
@@ -239,7 +240,7 @@ def function_arguments_loader():
return {}
custom_op = context.get_op_handler(custom_function_op)
- context._apply_doc_string(custom_op, kwargs)
+ context._apply_doc_string(custom_op, kwargs) # pylint: disable=protected-access
return dict(extract_args_from_signature(custom_op))
def generic_update_arguments_loader():
@@ -445,7 +446,8 @@ def handler(args):
client = factory(context.cli_ctx) if factory else None
except TypeError:
client = factory(context.cli_ctx, None) if factory else None
- args[client_arg_name] = client
+ if client:
+ args[client_arg_name] = client
getter = context.get_op_handler(getter_op)
@@ -749,7 +751,7 @@ def _find_property(instance, path):
return instance
-def assign_implict_identity(getter, setter, identity_role=None, identity_scope=None):
+def assign_implict_identity(cli_ctx, getter, setter, identity_role=None, identity_scope=None):
import time
from azure.mgmt.authorization import AuthorizationManagementClient
from azure.mgmt.authorization.models import RoleAssignmentProperties
@@ -766,8 +768,8 @@ def assign_implict_identity(getter, setter, identity_role=None, identity_scope=N
if identity_scope:
principal_id = resource.identity.principal_id
- identity_role_id = resolve_role_id(identity_role, identity_scope)
- assignments_client = get_mgmt_service_client(AuthorizationManagementClient).role_assignments
+ identity_role_id = resolve_role_id(cli_ctx, identity_role, identity_scope)
+ assignments_client = get_mgmt_service_client(cli_ctx, AuthorizationManagementClient).role_assignments
properties = RoleAssignmentProperties(identity_role_id, principal_id)
logger.info("Creating an assignment with a role '%s' on the scope of '%s'", identity_role_id, identity_scope)
@@ -791,10 +793,10 @@ def assign_implict_identity(getter, setter, identity_role=None, identity_scope=N
return resource
-def resolve_role_id(role, scope):
+def resolve_role_id(cli_ctx, role, scope):
import uuid
from azure.mgmt.authorization import AuthorizationManagementClient
- client = get_mgmt_service_client(AuthorizationManagementClient).role_definitions
+ client = get_mgmt_service_client(cli_ctx, AuthorizationManagementClient).role_definitions
role_id = None
if re.match(r'/subscriptions/[^/]+/providers/Microsoft.Authorization/roleDefinitions/',
diff --git a/src/azure-cli-core/azure/cli/core/commands/parameters.py b/src/azure-cli-core/azure/cli/core/commands/parameters.py
index 6e55b3d05d5..bc051db20de 100644
--- a/src/azure-cli-core/azure/cli/core/commands/parameters.py
+++ b/src/azure-cli-core/azure/cli/core/commands/parameters.py
@@ -79,12 +79,16 @@ def get_resources_in_subscription(cli_ctx, resource_type=None):
return list(rcf.resources.list(filter=filter_str))
-def get_resource_name_completion_list(cli_ctx, resource_type=None):
- def completer(prefix, action, parsed_args, **kwargs): # pylint: disable=unused-argument
- if getattr(parsed_args, 'resource_group_name', None):
- rg = parsed_args.resource_group_name
- return [r.name for r in get_resources_in_resource_group(cli_ctx, rg, resource_type=resource_type)]
- return [r.name for r in get_resources_in_subscription(cli_ctx, resource_type)]
+def get_resource_name_completion_list(resource_type=None):
+ from azure.cli.core.decorators import Completer
+
+ @Completer
+ def completer(cmd, prefix, namespace, **kwargs): # pylint: disable=unused-argument
+ rg = getattr(namespace, 'resource_group_name', None)
+ if rg:
+ return [r.name for r in get_resources_in_resource_group(cmd.cli_ctx, rg, resource_type=resource_type)]
+ return [r.name for r in get_resources_in_subscription(cmd.cli_ctx, resource_type)]
+
return completer
@@ -144,11 +148,12 @@ def _type(value):
default_value = None
if default:
+ from azure.cli.core.commands.validators import DefaultStr
default_value = next((x for x in choices if x.lower() == default.lower()), None)
if not default_value:
raise CLIError("Command authoring exception: urecognized default '{}' from choices '{}'"
.format(default, choices))
- arg_type = CLIArgumentType(choices=CaseInsensitiveList(choices), type=_type, default=default_value)
+ arg_type = CLIArgumentType(choices=CaseInsensitiveList(choices), type=_type, default=DefaultStr(default_value))
else:
arg_type = CLIArgumentType(choices=CaseInsensitiveList(choices), type=_type)
return arg_type
diff --git a/src/azure-cli-core/azure/cli/core/commands/validators.py b/src/azure-cli-core/azure/cli/core/commands/validators.py
index 129d03654a6..2778dc7551b 100644
--- a/src/azure-cli-core/azure/cli/core/commands/validators.py
+++ b/src/azure-cli-core/azure/cli/core/commands/validators.py
@@ -66,10 +66,10 @@ def generate_deployment_name(namespace):
'azurecli{}{}'.format(str(time.time()), str(random.randint(1, 100000)))
-def get_default_location_from_resource_group(namespace):
+def get_default_location_from_resource_group(cmd, namespace):
if not namespace.location:
from azure.cli.core.commands.client_factory import get_mgmt_service_client
- resource_client = get_mgmt_service_client(namespace.cmd.cli_ctx, ResourceType.MGMT_RESOURCE_RESOURCES)
+ resource_client = get_mgmt_service_client(cmd.cli_ctx, ResourceType.MGMT_RESOURCE_RESOURCES)
rg = resource_client.resource_groups.get(namespace.resource_group_name)
namespace.location = rg.location # pylint: disable=no-member
logger.debug("using location '%s' from resource group '%s'", namespace.location, rg.name)
diff --git a/src/azure-cli-core/azure/cli/core/decorators.py b/src/azure-cli-core/azure/cli/core/decorators.py
index 67441dfb43e..6c20a6b65db 100644
--- a/src/azure-cli-core/azure/cli/core/decorators.py
+++ b/src/azure-cli-core/azure/cli/core/decorators.py
@@ -23,6 +23,19 @@
is_diagnostics_mode = False
+# pylint: disable=too-few-public-methods
+class Completer(object):
+
+ def __init__(self, func):
+ self.func = func
+
+ def __call__(self, **kwargs):
+ namespace = kwargs['parsed_args']
+ prefix = kwargs['prefix']
+ cmd = namespace._cmd # pylint: disable=protected-access
+ return self.func(cmd, prefix, namespace)
+
+
# internal functions
def _should_raise(raise_in_diagnostics):
diff --git a/src/azure-cli-core/azure/cli/core/parser.py b/src/azure-cli-core/azure/cli/core/parser.py
index cf2b363078d..073b0cb9a07 100644
--- a/src/azure-cli-core/azure/cli/core/parser.py
+++ b/src/azure-cli-core/azure/cli/core/parser.py
@@ -87,6 +87,7 @@ def load_command_table(self, cmd_tbl):
command_parser.set_defaults(
func=metadata,
command=command_name,
+ _cmd=metadata,
_command_validator=command_validator,
_argument_validators=argument_validators,
_parser=command_parser)
diff --git a/src/azure-cli-testsdk/azure/cli/testsdk/preparers.py b/src/azure-cli-testsdk/azure/cli/testsdk/preparers.py
index 29162cc3664..13cf9c2e60b 100644
--- a/src/azure-cli-testsdk/azure/cli/testsdk/preparers.py
+++ b/src/azure-cli-testsdk/azure/cli/testsdk/preparers.py
@@ -69,7 +69,7 @@ def create_resource(self, name, **kwargs):
if not self.dev_setting_name:
template = 'az storage account create -n {} -g {} -l {} --sku {}'
- execute(template.format(name, group, self.location, self.sku))
+ execute(self.cli_ctx, template.format(name, group, self.location, self.sku))
else:
name = self.dev_setting_name
diff --git a/src/command_modules/azure-cli-component/HISTORY.rst b/src/command_modules/azure-cli-component/HISTORY.rst
deleted file mode 100644
index 7aa509928d4..00000000000
--- a/src/command_modules/azure-cli-component/HISTORY.rst
+++ /dev/null
@@ -1,81 +0,0 @@
-.. :changelog:
-
-Release History
-===============
-
-2.0.8
-+++++
-* minor fixes
-
-2.0.7 (2017-08-11)
-++++++++++++++++++
-
-* Add deprecation warning to 'az component' commands.
-
-2.0.6 (2017-06-21)
-++++++++++++++++++
-
-* Minor fixes.
-
-2.0.5 (2017-05-30)
-++++++++++++++++++
-
-* Minor fixes.
-
-2.0.4 (2017-05-09)
-++++++++++++++++++
-
-* Remove references to CLI being in preview (#3273)
-
-2.0.3 (2017-05-02)
-++++++++++++++++++
-
-* Reinstall azure-nspkg and azure-mgmt-nspkg.
-
-2.0.2 (2017-04-28)
-++++++++++++++++++
-
-* New packaging system
-
-2.0.1 (2017-04-17)
-++++++++++++++++++
-
-* Apply core changes required for JSON string parsing from shell (#2705)
-
-2.0.0 (2017-02-27)
-++++++++++++++++++
-
-* GA release
-
-
-0.1.1rc2 (2017-02-22)
-+++++++++++++++++++++
-
-* Documentation updates.
-
-
-0.1.1rc1 (2017-02-17)
-+++++++++++++++++++++
-
-* 'component update' now checks additional component author on PyPI
-
-
-0.1.0rc2 (2017-01-30)
-+++++++++++++++++++++
-
-* Support Python 3.6.
-
-0.1.0rc1 (2017-01-13)
-+++++++++++++++++++++
-
-* Release candidate. No code changes from 0.1.0b12.
-
-0.1.0b12 (2017-01-07)
-+++++++++++++++++++++
-
-* Fix pip seg fault on 'az component update'
-
-0.1.0b11 (2016-12-12)
-+++++++++++++++++++++
-
-* Preview release.
diff --git a/src/command_modules/azure-cli-component/MANIFEST.in b/src/command_modules/azure-cli-component/MANIFEST.in
deleted file mode 100644
index bb37a2723da..00000000000
--- a/src/command_modules/azure-cli-component/MANIFEST.in
+++ /dev/null
@@ -1 +0,0 @@
-include *.rst
diff --git a/src/command_modules/azure-cli-component/README.rst b/src/command_modules/azure-cli-component/README.rst
deleted file mode 100644
index 46fc27403f0..00000000000
--- a/src/command_modules/azure-cli-component/README.rst
+++ /dev/null
@@ -1,7 +0,0 @@
-Microsoft Azure CLI 'component' Command Module
-==============================================
-
-This package is for the 'component' module.
-i.e. 'az component'
-
-
diff --git a/src/command_modules/azure-cli-component/azure/__init__.py b/src/command_modules/azure-cli-component/azure/__init__.py
deleted file mode 100644
index 73baee1e640..00000000000
--- a/src/command_modules/azure-cli-component/azure/__init__.py
+++ /dev/null
@@ -1,6 +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 pkg_resources
-pkg_resources.declare_namespace(__name__)
diff --git a/src/command_modules/azure-cli-component/azure/cli/__init__.py b/src/command_modules/azure-cli-component/azure/cli/__init__.py
deleted file mode 100644
index 73baee1e640..00000000000
--- a/src/command_modules/azure-cli-component/azure/cli/__init__.py
+++ /dev/null
@@ -1,6 +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 pkg_resources
-pkg_resources.declare_namespace(__name__)
diff --git a/src/command_modules/azure-cli-component/azure/cli/command_modules/__init__.py b/src/command_modules/azure-cli-component/azure/cli/command_modules/__init__.py
deleted file mode 100644
index 73baee1e640..00000000000
--- a/src/command_modules/azure-cli-component/azure/cli/command_modules/__init__.py
+++ /dev/null
@@ -1,6 +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 pkg_resources
-pkg_resources.declare_namespace(__name__)
diff --git a/src/command_modules/azure-cli-component/azure/cli/command_modules/component/__init__.py b/src/command_modules/azure-cli-component/azure/cli/command_modules/component/__init__.py
deleted file mode 100644
index 7e2b1d31cc7..00000000000
--- a/src/command_modules/azure-cli-component/azure/cli/command_modules/component/__init__.py
+++ /dev/null
@@ -1,32 +0,0 @@
-# --------------------------------------------------------------------------------------------
-# Copyright (c) Microsoft Corporation. All rights reserved.
-# Licensed under the MIT License. See License.txt in the project root for license information.
-# --------------------------------------------------------------------------------------------
-
-from azure.cli.core import AzCommandsLoader
-from azure.cli.core.sdk.util import CliCommandType
-
-import azure.cli.command_modules.component._help # pylint: disable=unused-import
-
-
-class ComponentCommandsLoader(AzCommandsLoader):
-
- def __init__(self, cli_ctx=None):
- component_custom = CliCommandType(operations_tmpl='azure.cli.command_modules.component.custom#{}')
- super(ComponentCommandsLoader, self).__init__(cli_ctx=cli_ctx,
- custom_command_type=component_custom)
- self.module_name = __name__
-
- def load_command_table(self, args):
- super(ComponentCommandsLoader, self).load_command_table(args)
- from azure.cli.command_modules.component.commands import load_command_table
- load_command_table(self, args)
- return self.command_table
-
- def load_arguments(self, command):
- super(ComponentCommandsLoader, self).load_arguments(command)
- from azure.cli.command_modules.component._params import load_arguments
- load_arguments(self, command)
-
-
-COMMAND_LOADER_CLS = ComponentCommandsLoader
diff --git a/src/command_modules/azure-cli-component/azure/cli/command_modules/component/_help.py b/src/command_modules/azure-cli-component/azure/cli/command_modules/component/_help.py
deleted file mode 100644
index b51fe91512e..00000000000
--- a/src/command_modules/azure-cli-component/azure/cli/command_modules/component/_help.py
+++ /dev/null
@@ -1,26 +0,0 @@
-# --------------------------------------------------------------------------------------------
-# Copyright (c) Microsoft Corporation. All rights reserved.
-# Licensed under the MIT License. See License.txt in the project root for license information.
-# --------------------------------------------------------------------------------------------
-
-from knack.help_files import helps
-
-helps['component'] = """
- type: group
- short-summary: Manage and update Azure CLI 2.0 components.
-"""
-
-helps['component list'] = """
- type: command
- short-summary: List the installed components of Azure CLI 2.0.
-"""
-
-helps['component remove'] = """
- type: command
- short-summary: Remove a component from Azure CLI 2.0.
-"""
-
-helps['component update'] = """
- type: command
- short-summary: Update Azure CLI 2.0 and all of the installed components.
-"""
diff --git a/src/command_modules/azure-cli-component/azure/cli/command_modules/component/_params.py b/src/command_modules/azure-cli-component/azure/cli/command_modules/component/_params.py
deleted file mode 100644
index 87e7e4298b5..00000000000
--- a/src/command_modules/azure-cli-component/azure/cli/command_modules/component/_params.py
+++ /dev/null
@@ -1,16 +0,0 @@
-# --------------------------------------------------------------------------------------------
-# Copyright (c) Microsoft Corporation. All rights reserved.
-# Licensed under the MIT License. See License.txt in the project root for license information.
-# --------------------------------------------------------------------------------------------
-
-
-# pylint: disable=line-too-long
-def load_arguments(self, _):
-
- with self.argument_context('component') as c:
- c.argument('component_name', options_list=['--name', '-n'], help='Name of component')
- c.argument('link', options_list=['--link', '-l'], help='If a url or path to an html file, parse for links to archives. If local path or file:// url that\'s a directory, then look for archives in the directory listing.')
- c.argument('private', help='Include packages from a private server.', action='store_true')
- c.argument('pre', help='Include pre-release versions', action='store_true')
- c.argument('additional_components', options_list=['--add'], nargs='+', help='The names of additional components to install (space separated)')
- c.argument('allow_third_party', options_list=['--allow-third-party'], action='store_true', help='Allow installation of 3rd party command modules. This option is assumed with --private.')
diff --git a/src/command_modules/azure-cli-component/azure/cli/command_modules/component/commands.py b/src/command_modules/azure-cli-component/azure/cli/command_modules/component/commands.py
deleted file mode 100644
index 9fd35bcbeff..00000000000
--- a/src/command_modules/azure-cli-component/azure/cli/command_modules/component/commands.py
+++ /dev/null
@@ -1,14 +0,0 @@
-# --------------------------------------------------------------------------------------------
-# Copyright (c) Microsoft Corporation. All rights reserved.
-# Licensed under the MIT License. See License.txt in the project root for license information.
-# --------------------------------------------------------------------------------------------
-
-
-# pylint: disable=line-too-long
-def load_command_table(self, _):
-
- with self.command_group('component') as g:
- g.custom_command('list', 'list_components')
- g.custom_command('update', 'update')
- g.custom_command('remove', 'remove')
- g.custom_command('list-available', 'list_available_components')
diff --git a/src/command_modules/azure-cli-component/azure/cli/command_modules/component/custom.py b/src/command_modules/azure-cli-component/azure/cli/command_modules/component/custom.py
deleted file mode 100644
index a5e06df6cfb..00000000000
--- a/src/command_modules/azure-cli-component/azure/cli/command_modules/component/custom.py
+++ /dev/null
@@ -1,180 +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 site
-import logging
-from six import StringIO
-
-from azure.cli.core.util import COMPONENT_PREFIX, CLI_PACKAGE_NAME
-
-from knack.log import get_logger
-from knack.util import CLIError
-
-logger = get_logger(__name__)
-
-
-def _deprecate_warning():
- from knack.prompting import NoTTYException, prompt_y_n
- logger.warning("The 'component' commands will be deprecated in the future.")
- logger.warning("az component and subcommands may not work unless the CLI is installed with pip.")
- try:
- ans = prompt_y_n("Are you sure you want to continue?", default='n')
- if not ans:
- raise CLIError('Operation cancelled.')
- except NoTTYException:
- pass
-
-
-def list_components():
- """ List the installed components """
- _deprecate_warning()
- import pip
- return sorted([{'name': dist.key.replace(COMPONENT_PREFIX, ''), 'version': dist.version}
- for dist in pip.get_installed_distributions(local_only=True)
- if dist.key.startswith(COMPONENT_PREFIX)], key=lambda x: x['name'])
-
-
-def _get_first_party_pypi_command_modules():
- try:
- import xmlrpclib
- except ImportError:
- import xmlrpc.client as xmlrpclib # pylint: disable=import-error
- results = []
- client = xmlrpclib.ServerProxy('https://pypi.python.org/pypi')
- pypi_hits = client.search({'author': 'Microsoft Corporation', 'author_email': 'azpycli'})
- for hit in pypi_hits:
- if hit['name'].startswith(COMPONENT_PREFIX):
- comp_name = hit['name'].replace(COMPONENT_PREFIX, '')
- results.append({
- 'name': comp_name,
- 'summary': hit['summary'],
- 'version': hit['version']
- })
- return results
-
-
-def list_available_components():
- """ List publicly available components that can be installed """
- _deprecate_warning()
- import pip
- available_components = []
- installed_component_names = [dist.key.replace(COMPONENT_PREFIX, '') for dist in
- pip.get_installed_distributions(local_only=True) if
- dist.key.startswith(COMPONENT_PREFIX)]
-
- pypi_results = _get_first_party_pypi_command_modules()
- logger.debug('The following components are already installed %s', installed_component_names)
- logger.debug("Found %d result(s)", len(pypi_results))
-
- for pypi_res in pypi_results:
- if pypi_res['name'] not in installed_component_names:
- available_components.append(pypi_res)
- if not available_components:
- logger.warning('All available components are already installed.')
- return available_components
-
-
-def remove(component_name):
- """ Remove a component """
- _deprecate_warning()
- if component_name in ['nspkg', 'core']:
- raise CLIError("This component cannot be removed, it is required for the CLI to function.")
- import pip
- full_component_name = COMPONENT_PREFIX + component_name
- found = bool([dist for dist in pip.get_installed_distributions(local_only=True)
- if dist.key == full_component_name])
- if found:
- options = ['--isolated', '--yes']
- pip_args = ['uninstall'] + options + ['--disable-pip-version-check', full_component_name]
- _run_pip(pip, pip_args)
- else:
- raise CLIError("Component not installed.")
-
-
-def _run_pip(pip, pip_exec_args):
- log_stream = StringIO()
- log_handler = logging.StreamHandler(log_stream)
- log_handler.setFormatter(logging.Formatter('%(name)s : %(message)s'))
- pip.logger.handlers = []
- pip.logger.addHandler(log_handler)
- # Don't propagate to root logger as we catch the pip logs in our own log stream
- pip.logger.propagate = False
- logger.debug('Running pip: %s %s', pip, pip_exec_args)
- status_code = pip.main(pip_exec_args)
- log_output = log_stream.getvalue()
- logger.debug(log_output)
- log_stream.close()
- if status_code > 0:
- if '[Errno 13] Permission denied' in log_output:
- raise CLIError('Permission denied. Run command with --debug for more information.\n'
- 'If executing az with sudo, you may want sudo\'s -E and -H flags.')
- raise CLIError('An error occurred. Run command with --debug for more information.\n'
- 'If executing az with sudo, you may want sudo\'s -E and -H flags.')
-
-
-def _installed_in_user():
- try:
- return __file__.startswith(site.getusersitepackages())
- except (TypeError, AttributeError):
- return False
-
-
-def _install_or_update(cli_ctx, package_list, link, private, pre):
- import pip
- options = ['--isolated', '--disable-pip-version-check', '--upgrade']
- if pre:
- options.append('--pre')
- if _installed_in_user():
- options.append('--user')
- pkg_index_options = ['--find-links', link] if link else []
- if private:
- package_index_url = cli_ctx.config.get('component', 'package_index_url', fallback=None)
- package_index_trusted_host = cli_ctx.config.get('component', 'package_index_trusted_host',
- fallback=None)
- if package_index_url:
- pkg_index_options += ['--extra-index-url', package_index_url]
- else:
- raise CLIError('AZURE_COMPONENT_PACKAGE_INDEX_URL environment variable not set and not '
- 'specified in config. AZURE_COMPONENT_PACKAGE_INDEX_TRUSTED_HOST may '
- 'also need to be set.\nIf executing az with sudo, you may want sudo\'s '
- '-E and -H flags.')
- pkg_index_options += ['--trusted-host',
- package_index_trusted_host] if package_index_trusted_host else []
- pip_args = ['install'] + options + package_list + pkg_index_options
- _run_pip(pip, pip_args)
- # Fix to make sure that we have empty __init__.py files for the azure site-packages folder.
- nspkg_pip_args = ['install'] + options + ['--force-reinstall', 'azure-nspkg', 'azure-mgmt-nspkg'] + pkg_index_options # pylint: disable=line-too-long
- _run_pip(pip, nspkg_pip_args)
-
-
-def _verify_additional_components(components, private, allow_third_party):
- # Don't verify as third party packages allowed or private server which we can't query
- if allow_third_party or private:
- return
- third_party = []
- first_party_component_names = [r['name']for r in _get_first_party_pypi_command_modules()]
- for c in components:
- if c not in first_party_component_names:
- third_party.append(c)
- if third_party:
- raise CLIError("The following component(s) '{}' are third party or not available. "
- "Use --allow-third-party to install "
- "third party packages.".format(', '.join(third_party)))
-
-
-def update(cmd, private=False, pre=False, link=None, additional_components=None, allow_third_party=False):
- """ Update the CLI and all installed components """
- _deprecate_warning()
- import pip
- # Update the CLI itself
- package_list = [CLI_PACKAGE_NAME]
- # Update all the packages we currently have installed
- package_list += [dist.key for dist in pip.get_installed_distributions(local_only=True)
- if dist.key.startswith(COMPONENT_PREFIX)]
- # Install/Update any new components the user requested
- if additional_components:
- _verify_additional_components(additional_components, private, allow_third_party)
- for c in additional_components:
- package_list += [COMPONENT_PREFIX + c]
- _install_or_update(cmd.cli_ctx, package_list, link, private, pre)
diff --git a/src/command_modules/azure-cli-component/azure_bdist_wheel.py b/src/command_modules/azure-cli-component/azure_bdist_wheel.py
deleted file mode 100644
index 3ffa5ea50a9..00000000000
--- a/src/command_modules/azure-cli-component/azure_bdist_wheel.py
+++ /dev/null
@@ -1,533 +0,0 @@
-"""
-"wheel" copyright (c) 2012-2017 Daniel Holth and
-contributors.
-
-The MIT License
-
-Permission is hereby granted, free of charge, to any person obtaining a
-copy of this software and associated documentation files (the "Software"),
-to deal in the Software without restriction, including without limitation
-the rights to use, copy, modify, merge, publish, distribute, sublicense,
-and/or sell copies of the Software, and to permit persons to whom the
-Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included
-in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
-THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
-OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
-ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
-
-Create a Azure wheel (.whl) distribution (a wheel is a built archive format).
-
-This file is a copy of the official bdist_wheel file from wheel 0.30.0a0, enhanced
-of the bottom with some Microsoft extension for Azure SDK for Python
-
-"""
-
-import csv
-import hashlib
-import os
-import subprocess
-import warnings
-import shutil
-import json
-import sys
-
-try:
- import sysconfig
-except ImportError: # pragma nocover
- # Python < 2.7
- import distutils.sysconfig as sysconfig
-
-import pkg_resources
-
-safe_name = pkg_resources.safe_name
-safe_version = pkg_resources.safe_version
-
-from shutil import rmtree
-from email.generator import Generator
-
-from distutils.core import Command
-from distutils.sysconfig import get_python_version
-
-from distutils import log as logger
-
-from wheel.pep425tags import get_abbr_impl, get_impl_ver, get_abi_tag, get_platform
-from wheel.util import native, open_for_csv
-from wheel.archive import archive_wheelfile
-from wheel.pkginfo import read_pkg_info, write_pkg_info
-from wheel.metadata import pkginfo_to_dict
-from wheel import pep425tags, metadata
-from wheel import __version__ as wheel_version
-
-def safer_name(name):
- return safe_name(name).replace('-', '_')
-
-def safer_version(version):
- return safe_version(version).replace('-', '_')
-
-class bdist_wheel(Command):
-
- description = 'create a wheel distribution'
-
- user_options = [('bdist-dir=', 'b',
- "temporary directory for creating the distribution"),
- ('plat-name=', 'p',
- "platform name to embed in generated filenames "
- "(default: %s)" % get_platform()),
- ('keep-temp', 'k',
- "keep the pseudo-installation tree around after " +
- "creating the distribution archive"),
- ('dist-dir=', 'd',
- "directory to put final built distributions in"),
- ('skip-build', None,
- "skip rebuilding everything (for testing/debugging)"),
- ('relative', None,
- "build the archive using relative paths"
- "(default: false)"),
- ('owner=', 'u',
- "Owner name used when creating a tar file"
- " [default: current user]"),
- ('group=', 'g',
- "Group name used when creating a tar file"
- " [default: current group]"),
- ('universal', None,
- "make a universal wheel"
- " (default: false)"),
- ('python-tag=', None,
- "Python implementation compatibility tag"
- " (default: py%s)" % get_impl_ver()[0]),
- ]
-
- boolean_options = ['keep-temp', 'skip-build', 'relative', 'universal']
-
- def initialize_options(self):
- self.bdist_dir = None
- self.data_dir = None
- self.plat_name = None
- self.plat_tag = None
- self.format = 'zip'
- self.keep_temp = False
- self.dist_dir = None
- self.distinfo_dir = None
- self.egginfo_dir = None
- self.root_is_pure = None
- self.skip_build = None
- self.relative = False
- self.owner = None
- self.group = None
- self.universal = False
- self.python_tag = 'py' + get_impl_ver()[0]
- self.plat_name_supplied = False
-
- def finalize_options(self):
- if self.bdist_dir is None:
- bdist_base = self.get_finalized_command('bdist').bdist_base
- self.bdist_dir = os.path.join(bdist_base, 'wheel')
-
- self.data_dir = self.wheel_dist_name + '.data'
- self.plat_name_supplied = self.plat_name is not None
-
- need_options = ('dist_dir', 'plat_name', 'skip_build')
-
- self.set_undefined_options('bdist',
- *zip(need_options, need_options))
-
- self.root_is_pure = not (self.distribution.has_ext_modules()
- or self.distribution.has_c_libraries())
-
- # Support legacy [wheel] section for setting universal
- wheel = self.distribution.get_option_dict('wheel')
- if 'universal' in wheel:
- # please don't define this in your global configs
- val = wheel['universal'][1].strip()
- if val.lower() in ('1', 'true', 'yes'):
- self.universal = True
-
- @property
- def wheel_dist_name(self):
- """Return distribution full name with - replaced with _"""
- return '-'.join((safer_name(self.distribution.get_name()),
- safer_version(self.distribution.get_version())))
-
- def get_tag(self):
- # bdist sets self.plat_name if unset, we should only use it for purepy
- # wheels if the user supplied it.
- if self.plat_name_supplied:
- plat_name = self.plat_name
- elif self.root_is_pure:
- plat_name = 'any'
- else:
- plat_name = self.plat_name or get_platform()
- if plat_name in ('linux-x86_64', 'linux_x86_64') and sys.maxsize == 2147483647:
- plat_name = 'linux_i686'
- plat_name = plat_name.replace('-', '_').replace('.', '_')
-
-
- if self.root_is_pure:
- if self.universal:
- impl = 'py2.py3'
- else:
- impl = self.python_tag
- tag = (impl, 'none', plat_name)
- else:
- impl_name = get_abbr_impl()
- impl_ver = get_impl_ver()
- # PEP 3149
- abi_tag = str(get_abi_tag()).lower()
- tag = (impl_name + impl_ver, abi_tag, plat_name)
- supported_tags = pep425tags.get_supported(
- supplied_platform=plat_name if self.plat_name_supplied else None)
- # XXX switch to this alternate implementation for non-pure:
- assert tag == supported_tags[0], "%s != %s" % (tag, supported_tags[0])
- return tag
-
- def get_archive_basename(self):
- """Return archive name without extension"""
-
- impl_tag, abi_tag, plat_tag = self.get_tag()
-
- archive_basename = "%s-%s-%s-%s" % (
- self.wheel_dist_name,
- impl_tag,
- abi_tag,
- plat_tag)
- return archive_basename
-
- def run(self):
- build_scripts = self.reinitialize_command('build_scripts')
- build_scripts.executable = 'python'
-
- if not self.skip_build:
- self.run_command('build')
-
- install = self.reinitialize_command('install',
- reinit_subcommands=True)
- install.root = self.bdist_dir
- install.compile = False
- install.skip_build = self.skip_build
- install.warn_dir = False
-
- # A wheel without setuptools scripts is more cross-platform.
- # Use the (undocumented) `no_ep` option to setuptools'
- # install_scripts command to avoid creating entry point scripts.
- install_scripts = self.reinitialize_command('install_scripts')
- install_scripts.no_ep = True
-
- # Use a custom scheme for the archive, because we have to decide
- # at installation time which scheme to use.
- for key in ('headers', 'scripts', 'data', 'purelib', 'platlib'):
- setattr(install,
- 'install_' + key,
- os.path.join(self.data_dir, key))
-
- basedir_observed = ''
-
- if os.name == 'nt':
- # win32 barfs if any of these are ''; could be '.'?
- # (distutils.command.install:change_roots bug)
- basedir_observed = os.path.normpath(os.path.join(self.data_dir, '..'))
- self.install_libbase = self.install_lib = basedir_observed
-
- setattr(install,
- 'install_purelib' if self.root_is_pure else 'install_platlib',
- basedir_observed)
-
- logger.info("installing to %s", self.bdist_dir)
-
- self.run_command('install')
-
- archive_basename = self.get_archive_basename()
-
- pseudoinstall_root = os.path.join(self.dist_dir, archive_basename)
- if not self.relative:
- archive_root = self.bdist_dir
- else:
- archive_root = os.path.join(
- self.bdist_dir,
- self._ensure_relative(install.install_base))
-
- self.set_undefined_options(
- 'install_egg_info', ('target', 'egginfo_dir'))
- self.distinfo_dir = os.path.join(self.bdist_dir,
- '%s.dist-info' % self.wheel_dist_name)
- self.egg2dist(self.egginfo_dir,
- self.distinfo_dir)
-
- self.write_wheelfile(self.distinfo_dir)
-
- self.write_record(self.bdist_dir, self.distinfo_dir)
-
- # Make the archive
- if not os.path.exists(self.dist_dir):
- os.makedirs(self.dist_dir)
- wheel_name = archive_wheelfile(pseudoinstall_root, archive_root)
-
- # Sign the archive
- if 'WHEEL_TOOL' in os.environ:
- subprocess.call([os.environ['WHEEL_TOOL'], 'sign', wheel_name])
-
- # Add to 'Distribution.dist_files' so that the "upload" command works
- getattr(self.distribution, 'dist_files', []).append(
- ('bdist_wheel', get_python_version(), wheel_name))
-
- if not self.keep_temp:
- if self.dry_run:
- logger.info('removing %s', self.bdist_dir)
- else:
- rmtree(self.bdist_dir)
-
- def write_wheelfile(self, wheelfile_base, generator='bdist_wheel (' + wheel_version + ')'):
- from email.message import Message
- msg = Message()
- msg['Wheel-Version'] = '1.0' # of the spec
- msg['Generator'] = generator
- msg['Root-Is-Purelib'] = str(self.root_is_pure).lower()
-
- # Doesn't work for bdist_wininst
- impl_tag, abi_tag, plat_tag = self.get_tag()
- for impl in impl_tag.split('.'):
- for abi in abi_tag.split('.'):
- for plat in plat_tag.split('.'):
- msg['Tag'] = '-'.join((impl, abi, plat))
-
- wheelfile_path = os.path.join(wheelfile_base, 'WHEEL')
- logger.info('creating %s', wheelfile_path)
- with open(wheelfile_path, 'w') as f:
- Generator(f, maxheaderlen=0).flatten(msg)
-
- def _ensure_relative(self, path):
- # copied from dir_util, deleted
- drive, path = os.path.splitdrive(path)
- if path[0:1] == os.sep:
- path = drive + path[1:]
- return path
-
- def _pkginfo_to_metadata(self, egg_info_path, pkginfo_path):
- return metadata.pkginfo_to_metadata(egg_info_path, pkginfo_path)
-
- def license_file(self):
- """Return license filename from a license-file key in setup.cfg, or None."""
- metadata = self.distribution.get_option_dict('metadata')
- if not 'license_file' in metadata:
- return None
- return metadata['license_file'][1]
-
- def setupcfg_requirements(self):
- """Generate requirements from setup.cfg as
- ('Requires-Dist', 'requirement; qualifier') tuples. From a metadata
- section in setup.cfg:
-
- [metadata]
- provides-extra = extra1
- extra2
- requires-dist = requirement; qualifier
- another; qualifier2
- unqualified
-
- Yields
-
- ('Provides-Extra', 'extra1'),
- ('Provides-Extra', 'extra2'),
- ('Requires-Dist', 'requirement; qualifier'),
- ('Requires-Dist', 'another; qualifier2'),
- ('Requires-Dist', 'unqualified')
- """
- metadata = self.distribution.get_option_dict('metadata')
-
- # our .ini parser folds - to _ in key names:
- for key, title in (('provides_extra', 'Provides-Extra'),
- ('requires_dist', 'Requires-Dist')):
- if not key in metadata:
- continue
- field = metadata[key]
- for line in field[1].splitlines():
- line = line.strip()
- if not line:
- continue
- yield (title, line)
-
- def add_requirements(self, metadata_path):
- """Add additional requirements from setup.cfg to file metadata_path"""
- additional = list(self.setupcfg_requirements())
- if not additional: return
- pkg_info = read_pkg_info(metadata_path)
- if 'Provides-Extra' in pkg_info or 'Requires-Dist' in pkg_info:
- warnings.warn('setup.cfg requirements overwrite values from setup.py')
- del pkg_info['Provides-Extra']
- del pkg_info['Requires-Dist']
- for k, v in additional:
- pkg_info[k] = v
- write_pkg_info(metadata_path, pkg_info)
-
- def egg2dist(self, egginfo_path, distinfo_path):
- """Convert an .egg-info directory into a .dist-info directory"""
- def adios(p):
- """Appropriately delete directory, file or link."""
- if os.path.exists(p) and not os.path.islink(p) and os.path.isdir(p):
- shutil.rmtree(p)
- elif os.path.exists(p):
- os.unlink(p)
-
- adios(distinfo_path)
-
- if not os.path.exists(egginfo_path):
- # There is no egg-info. This is probably because the egg-info
- # file/directory is not named matching the distribution name used
- # to name the archive file. Check for this case and report
- # accordingly.
- import glob
- pat = os.path.join(os.path.dirname(egginfo_path), '*.egg-info')
- possible = glob.glob(pat)
- err = "Egg metadata expected at %s but not found" % (egginfo_path,)
- if possible:
- alt = os.path.basename(possible[0])
- err += " (%s found - possible misnamed archive file?)" % (alt,)
-
- raise ValueError(err)
-
- if os.path.isfile(egginfo_path):
- # .egg-info is a single file
- pkginfo_path = egginfo_path
- pkg_info = self._pkginfo_to_metadata(egginfo_path, egginfo_path)
- os.mkdir(distinfo_path)
- else:
- # .egg-info is a directory
- pkginfo_path = os.path.join(egginfo_path, 'PKG-INFO')
- pkg_info = self._pkginfo_to_metadata(egginfo_path, pkginfo_path)
-
- # ignore common egg metadata that is useless to wheel
- shutil.copytree(egginfo_path, distinfo_path,
- ignore=lambda x, y: set(('PKG-INFO',
- 'requires.txt',
- 'SOURCES.txt',
- 'not-zip-safe',)))
-
- # delete dependency_links if it is only whitespace
- dependency_links_path = os.path.join(distinfo_path, 'dependency_links.txt')
- with open(dependency_links_path, 'r') as dependency_links_file:
- dependency_links = dependency_links_file.read().strip()
- if not dependency_links:
- adios(dependency_links_path)
-
- write_pkg_info(os.path.join(distinfo_path, 'METADATA'), pkg_info)
-
- # XXX deprecated. Still useful for current distribute/setuptools.
- metadata_path = os.path.join(distinfo_path, 'METADATA')
- self.add_requirements(metadata_path)
-
- # XXX intentionally a different path than the PEP.
- metadata_json_path = os.path.join(distinfo_path, 'metadata.json')
- pymeta = pkginfo_to_dict(metadata_path,
- distribution=self.distribution)
-
- if 'description' in pymeta:
- description_filename = 'DESCRIPTION.rst'
- description_text = pymeta.pop('description')
- description_path = os.path.join(distinfo_path,
- description_filename)
- with open(description_path, "wb") as description_file:
- description_file.write(description_text.encode('utf-8'))
- pymeta['extensions']['python.details']['document_names']['description'] = description_filename
-
- # XXX heuristically copy any LICENSE/LICENSE.txt?
- license = self.license_file()
- if license:
- license_filename = 'LICENSE.txt'
- shutil.copy(license, os.path.join(self.distinfo_dir, license_filename))
- pymeta['extensions']['python.details']['document_names']['license'] = license_filename
-
- with open(metadata_json_path, "w") as metadata_json:
- json.dump(pymeta, metadata_json, sort_keys=True)
-
- adios(egginfo_path)
-
- def write_record(self, bdist_dir, distinfo_dir):
- from wheel.util import urlsafe_b64encode
-
- record_path = os.path.join(distinfo_dir, 'RECORD')
- record_relpath = os.path.relpath(record_path, bdist_dir)
-
- def walk():
- for dir, dirs, files in os.walk(bdist_dir):
- dirs.sort()
- for f in sorted(files):
- yield os.path.join(dir, f)
-
- def skip(path):
- """Wheel hashes every possible file."""
- return (path == record_relpath)
-
- with open_for_csv(record_path, 'w+') as record_file:
- writer = csv.writer(record_file)
- for path in walk():
- relpath = os.path.relpath(path, bdist_dir)
- if skip(relpath):
- hash = ''
- size = ''
- else:
- with open(path, 'rb') as f:
- data = f.read()
- digest = hashlib.sha256(data).digest()
- hash = 'sha256=' + native(urlsafe_b64encode(digest))
- size = len(data)
- record_path = os.path.relpath(
- path, bdist_dir).replace(os.path.sep, '/')
- writer.writerow((record_path, hash, size))
-
-
-#-------------------------------------------------------------------------
-# Copyright (c) Microsoft Corporation. All rights reserved.
-# Licensed under the MIT License. See License.txt in the project root for
-# license information.
-#--------------------------------------------------------------------------
-
-from distutils import log as logger
-import os.path
-
-#from wheel.bdist_wheel import bdist_wheel
-class azure_bdist_wheel(bdist_wheel):
-
- description = "Create an Azure wheel distribution"
-
- user_options = bdist_wheel.user_options + \
- [('azure-namespace-package=', None,
- "Name of the deepest nspkg used")]
-
- def initialize_options(self):
- bdist_wheel.initialize_options(self)
- self.azure_namespace_package = None
-
- def finalize_options(self):
- bdist_wheel.finalize_options(self)
- if self.azure_namespace_package and not self.azure_namespace_package.endswith("-nspkg"):
- raise ValueError("azure_namespace_package must finish by -nspkg")
-
- def run(self):
- if not self.distribution.install_requires:
- self.distribution.install_requires = []
- self.distribution.install_requires.append(
- "{}>=2.0.0".format(self.azure_namespace_package.replace('_', '-')))
- bdist_wheel.run(self)
-
- def write_record(self, bdist_dir, distinfo_dir):
- if self.azure_namespace_package:
- # Split and remove last part, assuming it's "nspkg"
- subparts = self.azure_namespace_package.split('-')[0:-1]
- folder_with_init = [os.path.join(*subparts[0:i+1]) for i in range(len(subparts))]
- for azure_sub_package in folder_with_init:
- init_file = os.path.join(bdist_dir, azure_sub_package, '__init__.py')
- if os.path.isfile(init_file):
- logger.info("manually remove {} while building the wheel".format(init_file))
- os.remove(init_file)
- else:
- raise ValueError("Unable to find {}. Are you sure of your namespace package?".format(init_file))
- bdist_wheel.write_record(self, bdist_dir, distinfo_dir)
-cmdclass = {
- 'bdist_wheel': azure_bdist_wheel,
-}
diff --git a/src/command_modules/azure-cli-component/setup.cfg b/src/command_modules/azure-cli-component/setup.cfg
deleted file mode 100644
index 3326c62a76e..00000000000
--- a/src/command_modules/azure-cli-component/setup.cfg
+++ /dev/null
@@ -1,3 +0,0 @@
-[bdist_wheel]
-universal=1
-azure-namespace-package=azure-cli-command_modules-nspkg
diff --git a/src/command_modules/azure-cli-component/setup.py b/src/command_modules/azure-cli-component/setup.py
deleted file mode 100644
index a77ebff18b8..00000000000
--- a/src/command_modules/azure-cli-component/setup.py
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/usr/bin/env python
-
-# --------------------------------------------------------------------------------------------
-# Copyright (c) Microsoft Corporation. All rights reserved.
-# Licensed under the MIT License. See License.txt in the project root for license information.
-# --------------------------------------------------------------------------------------------
-
-from codecs import open
-from setuptools import setup
-try:
- from azure_bdist_wheel import cmdclass
-except ImportError:
- from distutils import log as logger
- logger.warn("Wheel is not available, disabling bdist_wheel hook")
- cmdclass = {}
-
-VERSION = "2.0.8"
-
-CLASSIFIERS = [
- 'Development Status :: 5 - Production/Stable',
- 'Intended Audience :: Developers',
- 'Intended Audience :: System Administrators',
- 'Programming Language :: Python',
- 'Programming Language :: Python :: 2',
- 'Programming Language :: Python :: 2.7',
- 'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3.4',
- 'Programming Language :: Python :: 3.5',
- 'Programming Language :: Python :: 3.6',
- 'License :: OSI Approved :: MIT License',
-]
-
-DEPENDENCIES = [
- 'azure-cli-core',
- 'pip',
-]
-
-with open('README.rst', 'r', encoding='utf-8') as f:
- README = f.read()
-with open('HISTORY.rst', 'r', encoding='utf-8') as f:
- HISTORY = f.read()
-
-setup(
- name='azure-cli-component',
- version=VERSION,
- description='Microsoft Azure Command-Line Tools Component Command Module',
- long_description=README + '\n\n' + HISTORY,
- license='MIT',
- author='Microsoft Corporation',
- author_email='azpycli@microsoft.com',
- url='https://github.com/Azure/azure-cli',
- classifiers=CLASSIFIERS,
- packages=[
- 'azure',
- 'azure.cli',
- 'azure.cli.command_modules',
- 'azure.cli.command_modules.component',
- ],
- install_requires=DEPENDENCIES,
- cmdclass=cmdclass,
-)
diff --git a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_params.py b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_params.py
index dc9c80a2388..2a6a032654e 100644
--- a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_params.py
+++ b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_params.py
@@ -134,7 +134,6 @@ def load_arguments(self, _):
c.argument('network_security_group_name', nsg_name_type, id_part='name')
c.argument('private_ip_address', private_ip_address_type)
c.argument('private_ip_address_version', arg_type=get_enum_type(IPVersion))
-
# endregion
# region ApplicationGateways
diff --git a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_validators.py b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_validators.py
index 1d77fb518d5..8a70a5e23c4 100644
--- a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_validators.py
+++ b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_validators.py
@@ -493,8 +493,8 @@ def process_ag_url_path_map_rule_create_namespace(namespace): # pylint: disable
namespace, 'redirectConfigurations', namespace.redirect_config)
-def process_ag_create_namespace(namespace):
- get_default_location_from_resource_group(namespace)
+def process_ag_create_namespace(cmd, namespace):
+ get_default_location_from_resource_group(cmd, namespace)
get_servers_validator(camel_case=True)(namespace)
@@ -517,8 +517,8 @@ def process_auth_create_namespace(namespace):
namespace.authorization_parameters = ExpressRouteCircuitAuthorization()
-def process_lb_create_namespace(namespace):
- get_default_location_from_resource_group(namespace)
+def process_lb_create_namespace(cmd, namespace):
+ get_default_location_from_resource_group(cmd, namespace)
if namespace.subnet and namespace.public_ip_address:
raise ValueError(
@@ -558,17 +558,17 @@ def process_lb_frontend_ip_namespace(namespace):
get_public_ip_validator()(namespace)
-def process_local_gateway_create_namespace(namespace):
+def process_local_gateway_create_namespace(cmd, namespace):
ns = namespace
- get_default_location_from_resource_group(ns)
+ get_default_location_from_resource_group(cmd, ns)
use_bgp_settings = any([ns.asn or ns.bgp_peering_address or ns.peer_weight])
if use_bgp_settings and (not ns.asn or not ns.bgp_peering_address):
raise ValueError(
'incorrect usage: --bgp-peering-address IP --asn ASN [--peer-weight WEIGHT]')
-def process_nic_create_namespace(namespace):
- get_default_location_from_resource_group(namespace)
+def process_nic_create_namespace(cmd, namespace):
+ get_default_location_from_resource_group(cmd, namespace)
validate_address_pool_id_list(namespace)
validate_inbound_nat_rule_id_list(namespace)
@@ -580,13 +580,13 @@ def process_nic_create_namespace(namespace):
get_nsg_validator(has_type_field=False, allow_none=True, default_none=True)(namespace)
-def process_public_ip_create_namespace(namespace):
- get_default_location_from_resource_group(namespace)
+def process_public_ip_create_namespace(cmd, namespace):
+ get_default_location_from_resource_group(cmd, namespace)
-def process_route_table_create_namespace(namespace):
+def process_route_table_create_namespace(cmd, namespace):
RouteTable = namespace.cmd.get_models('RouteTable')
- get_default_location_from_resource_group(namespace)
+ get_default_location_from_resource_group(cmd, namespace)
validate_tags(namespace)
namespace.parameters = RouteTable(location=namespace.location, tags=namespace.tags)
@@ -648,8 +648,8 @@ def process_tm_endpoint_create_namespace(namespace):
raise CLIError(error_message)
-def process_vnet_create_namespace(namespace):
- get_default_location_from_resource_group(namespace)
+def process_vnet_create_namespace(cmd, namespace):
+ get_default_location_from_resource_group(cmd, namespace)
validate_tags(namespace)
if namespace.subnet_prefix and not namespace.subnet_name:
@@ -665,9 +665,9 @@ def process_vnet_create_namespace(namespace):
namespace.subnet_prefix = '{}/{}'.format(address, subnet_mask)
-def process_vnet_gateway_create_namespace(namespace):
+def process_vnet_gateway_create_namespace(cmd, namespace):
ns = namespace
- get_default_location_from_resource_group(ns)
+ get_default_location_from_resource_group(cmd, ns)
get_virtual_network_validator()(ns)
get_public_ip_validator()(ns)
@@ -692,9 +692,9 @@ def process_vnet_gateway_update_namespace(namespace):
'public IPs to create an active-active gateway.')
-def process_vpn_connection_create_namespace(namespace):
+def process_vpn_connection_create_namespace(cmd, namespace):
from msrestazure.tools import is_valid_resource_id, resource_id
- get_default_location_from_resource_group(namespace)
+ get_default_location_from_resource_group(cmd, namespace)
args = [a for a in [namespace.express_route_circuit2,
namespace.local_gateway2,
diff --git a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/recordings/latest/test_network_ag_address_pool.yaml b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/recordings/latest/test_network_ag_address_pool.yaml
new file mode 100644
index 00000000000..84943e12aa7
--- /dev/null
+++ b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/recordings/latest/test_network_ag_address_pool.yaml
@@ -0,0 +1,1975 @@
+interactions:
+- request:
+ body: '{"location": "westus", "tags": {"use": "az-test"}}'
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Length: ['50']
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_ag_address_pool000001?api-version=2017-05-10
+ response:
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001","name":"cli_test_ag_address_pool000001","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: ['Wed, 15 Nov 2017 17:11: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: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_ag_address_pool000001?api-version=2017-05-10
+ response:
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001","name":"cli_test_ag_address_pool000001","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: ['Wed, 15 Nov 2017 17:11:19 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ vary: [Accept-Encoding]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceGroup%20eq%20%27cli_test_ag_address_pool000001%27%20and%20name%20eq%20%27None%27%20and%20resourceType%20eq%20%27Microsoft.Network%2FvirtualNetworks%27&api-version=2017-05-10
+ response:
+ body: {string: '{"value":[]}'}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['12']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:11:20 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ vary: [Accept-Encoding]
+ status: {code: 200, message: OK}
+- request:
+ body: 'b''{"properties": {"mode": "Incremental", "parameters": {}, "template":
+ {"resources": [{"type": "Microsoft.Network/virtualNetworks", "dependsOn": [],
+ "location": "westus", "apiVersion": "2015-06-15", "tags": {}, "properties":
+ {"subnets": [{"properties": {"addressPrefix": "10.0.0.0/24"}, "name": "default"}],
+ "addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}}, "name": "ag1Vnet"}, {"type":
+ "Microsoft.Network/applicationGateways", "dependsOn": ["Microsoft.Network/virtualNetworks/ag1Vnet"],
+ "location": "westus", "apiVersion": "2017-09-01", "tags": {}, "properties":
+ {"requestRoutingRules": [{"Name": "rule1", "properties": {"RuleType": "Basic",
+ "backendHttpSettings": {"id": "[concat(variables(\''appGwID\''), \''/backendHttpSettingsCollection/appGatewayBackendHttpSettings\'')]"},
+ "backendAddressPool": {"id": "[concat(variables(\''appGwID\''), \''/backendAddressPools/appGatewayBackendPool\'')]"},
+ "httpListener": {"id": "[concat(variables(\''appGwID\''), \''/httpListeners/appGatewayHttpListener\'')]"}}}],
+ "httpListeners": [{"properties": {"SslCertificate": null, "FrontendPort": {"Id":
+ "[concat(variables(\''appGwID\''), \''/frontendPorts/appGatewayFrontendPort\'')]"},
+ "FrontendIpConfiguration": {"Id": "[concat(variables(\''appGwID\''), \''/frontendIPConfigurations/appGatewayFrontendIP\'')]"},
+ "Protocol": "http"}, "name": "appGatewayHttpListener"}], "gatewayIPConfigurations":
+ [{"properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/virtualNetworks/ag1Vnet/subnets/default"}},
+ "name": "appGatewayFrontendIP"}], "sku": {"capacity": 2, "tier": "Standard",
+ "name": "Standard_Medium"}, "frontendPorts": [{"properties": {"Port": 80}, "name":
+ "appGatewayFrontendPort"}], "backendAddressPools": [{"name": "appGatewayBackendPool"}],
+ "backendHttpSettingsCollection": [{"properties": {"CookieBasedAffinity": "disabled",
+ "Port": 80, "connectionDraining": {"drainTimeoutInSec": 1, "enabled": false},
+ "Protocol": "Http"}, "name": "appGatewayBackendHttpSettings"}], "frontendIPConfigurations":
+ [{"properties": {"privateIPAllocationMethod": "Dynamic", "privateIPAddress":
+ "", "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/virtualNetworks/ag1Vnet/subnets/default"}},
+ "name": "appGatewayFrontendIP"}]}, "name": "ag1"}], "outputs": {"applicationGateway":
+ {"type": "object", "value": "[reference(\''ag1\'')]"}}, "parameters": {}, "variables":
+ {"appGwID": "[resourceId(\''Microsoft.Network/applicationGateways\'', \''ag1\'')]"},
+ "contentVersion": "1.0.0.0", "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#"}}}'''
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Length: ['2784']
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_ag_address_pool000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
+ response:
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Resources/deployments/ag_deploy_Hyzq9Pu2aoQShhfFgTRKa1ynu7VhXufu","name":"ag_deploy_Hyzq9Pu2aoQShhfFgTRKa1ynu7VhXufu","properties":{"templateHash":"11881802229214271737","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-11-15T17:11:22.5456928Z","duration":"PT0.4824754S","correlationId":"2e8c8352-290d-4b14-b7bd-d7a5b6317688","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"applicationGateways","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/virtualNetworks/ag1Vnet","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"ag1Vnet"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1","resourceType":"Microsoft.Network/applicationGateways","resourceName":"ag1"}]}}'}
+ headers:
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_ag_address_pool000001/providers/Microsoft.Resources/deployments/ag_deploy_Hyzq9Pu2aoQShhfFgTRKa1ynu7VhXufu/operationStatuses/08586908410034144346?api-version=2017-05-10']
+ cache-control: [no-cache]
+ content-length: ['1310']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:11:21 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ x-ms-ratelimit-remaining-subscription-writes: ['1196']
+ status: {code: 201, message: Created}
+- request:
+ body: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1?api-version=2017-09-01
+ response:
+ body: {string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Network/applicationGateways/ag1''
+ under resource group ''cli_test_ag_address_pool000001'' was not found."}}'}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['220']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:11:22 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ x-ms-failure-cause: [gateway]
+ status: {code: 404, message: Not Found}
+- request:
+ body: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"name\": \"ag1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1\"\
+ ,\r\n \"etag\": \"W/\\\"d982ee82-c90b-4d30-95ca-07f2bbc767f7\\\"\",\r\n \
+ \ \"type\": \"Microsoft.Network/applicationGateways\",\r\n \"location\":\
+ \ \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\"\
+ : \"Updating\",\r\n \"resourceGuid\": \"608a5da7-7a58-47cb-b477-dea9b903033b\"\
+ ,\r\n \"sku\": {\r\n \"name\": \"Standard_Medium\",\r\n \"tier\"\
+ : \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"operationalState\"\
+ : \"Stopped\",\r\n \"gatewayIPConfigurations\": [\r\n {\r\n \
+ \ \"name\": \"appGatewayFrontendIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/gatewayIPConfigurations/appGatewayFrontendIP\"\
+ ,\r\n \"etag\": \"W/\\\"d982ee82-c90b-4d30-95ca-07f2bbc767f7\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/virtualNetworks/ag1Vnet/subnets/default\"\
+ \r\n }\r\n }\r\n }\r\n ],\r\n \"sslCertificates\"\
+ : [],\r\n \"authenticationCertificates\": [],\r\n \"frontendIPConfigurations\"\
+ : [\r\n {\r\n \"name\": \"appGatewayFrontendIP\",\r\n \"\
+ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendIPConfigurations/appGatewayFrontendIP\"\
+ ,\r\n \"etag\": \"W/\\\"d982ee82-c90b-4d30-95ca-07f2bbc767f7\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"\
+ subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/virtualNetworks/ag1Vnet/subnets/default\"\
+ \r\n },\r\n \"httpListeners\": [\r\n {\r\n \
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener\"\
+ \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
+ \ \"frontendPorts\": [\r\n {\r\n \"name\": \"appGatewayFrontendPort\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendPorts/appGatewayFrontendPort\"\
+ ,\r\n \"etag\": \"W/\\\"d982ee82-c90b-4d30-95ca-07f2bbc767f7\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"port\": 80,\r\n \"httpListeners\": [\r\n \
+ \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener\"\
+ \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
+ \ \"backendAddressPools\": [\r\n {\r\n \"name\": \"appGatewayBackendPool\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendAddressPools/appGatewayBackendPool\"\
+ ,\r\n \"etag\": \"W/\\\"d982ee82-c90b-4d30-95ca-07f2bbc767f7\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"backendAddresses\": [],\r\n \"requestRoutingRules\"\
+ : [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1\"\
+ \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
+ \ \"backendHttpSettingsCollection\": [\r\n {\r\n \"name\": \"\
+ appGatewayBackendHttpSettings\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendHttpSettingsCollection/appGatewayBackendHttpSettings\"\
+ ,\r\n \"etag\": \"W/\\\"d982ee82-c90b-4d30-95ca-07f2bbc767f7\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"port\": 80,\r\n \"protocol\": \"Http\",\r\n \
+ \ \"cookieBasedAffinity\": \"Disabled\",\r\n \"connectionDraining\"\
+ : {\r\n \"enabled\": false,\r\n \"drainTimeoutInSec\"\
+ : 1\r\n },\r\n \"pickHostNameFromBackendAddress\": false,\r\
+ \n \"requestTimeout\": 30,\r\n \"requestRoutingRules\":\
+ \ [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1\"\
+ \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
+ \ \"httpListeners\": [\r\n {\r\n \"name\": \"appGatewayHttpListener\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener\"\
+ ,\r\n \"etag\": \"W/\\\"d982ee82-c90b-4d30-95ca-07f2bbc767f7\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendIPConfigurations/appGatewayFrontendIP\"\
+ \r\n },\r\n \"frontendPort\": {\r\n \"id\": \"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendPorts/appGatewayFrontendPort\"\
+ \r\n },\r\n \"protocol\": \"Http\",\r\n \"requireServerNameIndication\"\
+ : false,\r\n \"requestRoutingRules\": [\r\n {\r\n \
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1\"\
+ \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
+ \ \"urlPathMaps\": [],\r\n \"requestRoutingRules\": [\r\n {\r\n \
+ \ \"name\": \"rule1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1\"\
+ ,\r\n \"etag\": \"W/\\\"d982ee82-c90b-4d30-95ca-07f2bbc767f7\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"ruleType\": \"Basic\",\r\n \"httpListener\": {\r\
+ \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener\"\
+ \r\n },\r\n \"backendAddressPool\": {\r\n \"\
+ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendAddressPools/appGatewayBackendPool\"\
+ \r\n },\r\n \"backendHttpSettings\": {\r\n \"\
+ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendHttpSettingsCollection/appGatewayBackendHttpSettings\"\
+ \r\n }\r\n }\r\n }\r\n ],\r\n \"probes\": [],\r\
+ \n \"redirectConfigurations\": []\r\n }\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['8479']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:11:52 GMT']
+ etag: [W/"d982ee82-c90b-4d30-95ca-07f2bbc767f7"]
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"name\": \"ag1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1\"\
+ ,\r\n \"etag\": \"W/\\\"d982ee82-c90b-4d30-95ca-07f2bbc767f7\\\"\",\r\n \
+ \ \"type\": \"Microsoft.Network/applicationGateways\",\r\n \"location\":\
+ \ \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\"\
+ : \"Updating\",\r\n \"resourceGuid\": \"608a5da7-7a58-47cb-b477-dea9b903033b\"\
+ ,\r\n \"sku\": {\r\n \"name\": \"Standard_Medium\",\r\n \"tier\"\
+ : \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"operationalState\"\
+ : \"Stopped\",\r\n \"gatewayIPConfigurations\": [\r\n {\r\n \
+ \ \"name\": \"appGatewayFrontendIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/gatewayIPConfigurations/appGatewayFrontendIP\"\
+ ,\r\n \"etag\": \"W/\\\"d982ee82-c90b-4d30-95ca-07f2bbc767f7\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/virtualNetworks/ag1Vnet/subnets/default\"\
+ \r\n }\r\n }\r\n }\r\n ],\r\n \"sslCertificates\"\
+ : [],\r\n \"authenticationCertificates\": [],\r\n \"frontendIPConfigurations\"\
+ : [\r\n {\r\n \"name\": \"appGatewayFrontendIP\",\r\n \"\
+ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendIPConfigurations/appGatewayFrontendIP\"\
+ ,\r\n \"etag\": \"W/\\\"d982ee82-c90b-4d30-95ca-07f2bbc767f7\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"\
+ subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/virtualNetworks/ag1Vnet/subnets/default\"\
+ \r\n },\r\n \"httpListeners\": [\r\n {\r\n \
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener\"\
+ \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
+ \ \"frontendPorts\": [\r\n {\r\n \"name\": \"appGatewayFrontendPort\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendPorts/appGatewayFrontendPort\"\
+ ,\r\n \"etag\": \"W/\\\"d982ee82-c90b-4d30-95ca-07f2bbc767f7\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"port\": 80,\r\n \"httpListeners\": [\r\n \
+ \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener\"\
+ \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
+ \ \"backendAddressPools\": [\r\n {\r\n \"name\": \"appGatewayBackendPool\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendAddressPools/appGatewayBackendPool\"\
+ ,\r\n \"etag\": \"W/\\\"d982ee82-c90b-4d30-95ca-07f2bbc767f7\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"backendAddresses\": [],\r\n \"requestRoutingRules\"\
+ : [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1\"\
+ \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
+ \ \"backendHttpSettingsCollection\": [\r\n {\r\n \"name\": \"\
+ appGatewayBackendHttpSettings\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendHttpSettingsCollection/appGatewayBackendHttpSettings\"\
+ ,\r\n \"etag\": \"W/\\\"d982ee82-c90b-4d30-95ca-07f2bbc767f7\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"port\": 80,\r\n \"protocol\": \"Http\",\r\n \
+ \ \"cookieBasedAffinity\": \"Disabled\",\r\n \"connectionDraining\"\
+ : {\r\n \"enabled\": false,\r\n \"drainTimeoutInSec\"\
+ : 1\r\n },\r\n \"pickHostNameFromBackendAddress\": false,\r\
+ \n \"requestTimeout\": 30,\r\n \"requestRoutingRules\":\
+ \ [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1\"\
+ \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
+ \ \"httpListeners\": [\r\n {\r\n \"name\": \"appGatewayHttpListener\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener\"\
+ ,\r\n \"etag\": \"W/\\\"d982ee82-c90b-4d30-95ca-07f2bbc767f7\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendIPConfigurations/appGatewayFrontendIP\"\
+ \r\n },\r\n \"frontendPort\": {\r\n \"id\": \"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendPorts/appGatewayFrontendPort\"\
+ \r\n },\r\n \"protocol\": \"Http\",\r\n \"requireServerNameIndication\"\
+ : false,\r\n \"requestRoutingRules\": [\r\n {\r\n \
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1\"\
+ \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
+ \ \"urlPathMaps\": [],\r\n \"requestRoutingRules\": [\r\n {\r\n \
+ \ \"name\": \"rule1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1\"\
+ ,\r\n \"etag\": \"W/\\\"d982ee82-c90b-4d30-95ca-07f2bbc767f7\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"ruleType\": \"Basic\",\r\n \"httpListener\": {\r\
+ \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener\"\
+ \r\n },\r\n \"backendAddressPool\": {\r\n \"\
+ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendAddressPools/appGatewayBackendPool\"\
+ \r\n },\r\n \"backendHttpSettings\": {\r\n \"\
+ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendHttpSettingsCollection/appGatewayBackendHttpSettings\"\
+ \r\n }\r\n }\r\n }\r\n ],\r\n \"probes\": [],\r\
+ \n \"redirectConfigurations\": []\r\n }\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['8479']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:11:53 GMT']
+ etag: [W/"d982ee82-c90b-4d30-95ca-07f2bbc767f7"]
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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''{"etag": "W/\\"d982ee82-c90b-4d30-95ca-07f2bbc767f7\\"", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1",
+ "location": "westus", "tags": {}, "properties": {"probes": [], "requestRoutingRules":
+ [{"etag": "W/\\"d982ee82-c90b-4d30-95ca-07f2bbc767f7\\"", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1",
+ "properties": {"provisioningState": "Updating", "ruleType": "Basic", "backendAddressPool":
+ {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendAddressPools/appGatewayBackendPool"},
+ "httpListener": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener"},
+ "backendHttpSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendHttpSettingsCollection/appGatewayBackendHttpSettings"}},
+ "name": "rule1"}], "frontendPorts": [{"etag": "W/\\"d982ee82-c90b-4d30-95ca-07f2bbc767f7\\"",
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendPorts/appGatewayFrontendPort",
+ "properties": {"port": 80, "provisioningState": "Updating"}, "name": "appGatewayFrontendPort"}],
+ "redirectConfigurations": [], "backendAddressPools": [{"etag": "W/\\"d982ee82-c90b-4d30-95ca-07f2bbc767f7\\"",
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendAddressPools/appGatewayBackendPool",
+ "properties": {"backendAddresses": [], "provisioningState": "Updating"}, "name":
+ "appGatewayBackendPool"}, {"properties": {"backendAddresses": [{"ipAddress":
+ "123.4.5.6"}, {"fqdn": "www.mydns.com"}]}, "name": "pool1"}], "provisioningState":
+ "Updating", "authenticationCertificates": [], "urlPathMaps": [], "httpListeners":
+ [{"etag": "W/\\"d982ee82-c90b-4d30-95ca-07f2bbc767f7\\"", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener",
+ "properties": {"provisioningState": "Updating", "protocol": "Http", "frontendIPConfiguration":
+ {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendIPConfigurations/appGatewayFrontendIP"},
+ "frontendPort": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendPorts/appGatewayFrontendPort"},
+ "requireServerNameIndication": false}, "name": "appGatewayHttpListener"}], "gatewayIPConfigurations":
+ [{"etag": "W/\\"d982ee82-c90b-4d30-95ca-07f2bbc767f7\\"", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/gatewayIPConfigurations/appGatewayFrontendIP",
+ "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/virtualNetworks/ag1Vnet/subnets/default"},
+ "provisioningState": "Updating"}, "name": "appGatewayFrontendIP"}], "sku": {"capacity":
+ 2, "tier": "Standard", "name": "Standard_Medium"}, "backendHttpSettingsCollection":
+ [{"etag": "W/\\"d982ee82-c90b-4d30-95ca-07f2bbc767f7\\"", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendHttpSettingsCollection/appGatewayBackendHttpSettings",
+ "properties": {"port": 80, "provisioningState": "Updating", "connectionDraining":
+ {"drainTimeoutInSec": 1, "enabled": false}, "cookieBasedAffinity": "Disabled",
+ "requestTimeout": 30, "protocol": "Http", "pickHostNameFromBackendAddress":
+ false}, "name": "appGatewayBackendHttpSettings"}], "sslCertificates": [], "frontendIPConfigurations":
+ [{"etag": "W/\\"d982ee82-c90b-4d30-95ca-07f2bbc767f7\\"", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendIPConfigurations/appGatewayFrontendIP",
+ "properties": {"privateIPAllocationMethod": "Dynamic", "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/virtualNetworks/ag1Vnet/subnets/default"},
+ "provisioningState": "Updating"}, "name": "appGatewayFrontendIP"}], "resourceGuid":
+ "608a5da7-7a58-47cb-b477-dea9b903033b"}}'''
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Length: ['5732']
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"name\": \"ag1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1\"\
+ ,\r\n \"etag\": \"W/\\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\\"\",\r\n \
+ \ \"type\": \"Microsoft.Network/applicationGateways\",\r\n \"location\":\
+ \ \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\"\
+ : \"Updating\",\r\n \"resourceGuid\": \"608a5da7-7a58-47cb-b477-dea9b903033b\"\
+ ,\r\n \"sku\": {\r\n \"name\": \"Standard_Medium\",\r\n \"tier\"\
+ : \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"operationalState\"\
+ : \"Stopped\",\r\n \"gatewayIPConfigurations\": [\r\n {\r\n \
+ \ \"name\": \"appGatewayFrontendIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/gatewayIPConfigurations/appGatewayFrontendIP\"\
+ ,\r\n \"etag\": \"W/\\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/virtualNetworks/ag1Vnet/subnets/default\"\
+ \r\n }\r\n }\r\n }\r\n ],\r\n \"sslCertificates\"\
+ : [],\r\n \"authenticationCertificates\": [],\r\n \"frontendIPConfigurations\"\
+ : [\r\n {\r\n \"name\": \"appGatewayFrontendIP\",\r\n \"\
+ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendIPConfigurations/appGatewayFrontendIP\"\
+ ,\r\n \"etag\": \"W/\\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"\
+ subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/virtualNetworks/ag1Vnet/subnets/default\"\
+ \r\n },\r\n \"httpListeners\": [\r\n {\r\n \
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener\"\
+ \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
+ \ \"frontendPorts\": [\r\n {\r\n \"name\": \"appGatewayFrontendPort\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendPorts/appGatewayFrontendPort\"\
+ ,\r\n \"etag\": \"W/\\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"port\": 80,\r\n \"httpListeners\": [\r\n \
+ \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener\"\
+ \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
+ \ \"backendAddressPools\": [\r\n {\r\n \"name\": \"appGatewayBackendPool\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendAddressPools/appGatewayBackendPool\"\
+ ,\r\n \"etag\": \"W/\\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"backendAddresses\": [],\r\n \"requestRoutingRules\"\
+ : [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1\"\
+ \r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \
+ \ \"name\": \"pool1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendAddressPools/pool1\"\
+ ,\r\n \"etag\": \"W/\\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"backendAddresses\": [\r\n {\r\n \"\
+ ipAddress\": \"123.4.5.6\"\r\n },\r\n {\r\n \
+ \ \"fqdn\": \"www.mydns.com\"\r\n }\r\n ]\r\n \
+ \ }\r\n }\r\n ],\r\n \"backendHttpSettingsCollection\": [\r\
+ \n {\r\n \"name\": \"appGatewayBackendHttpSettings\",\r\n \
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendHttpSettingsCollection/appGatewayBackendHttpSettings\"\
+ ,\r\n \"etag\": \"W/\\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"port\": 80,\r\n \"protocol\": \"Http\",\r\n \
+ \ \"cookieBasedAffinity\": \"Disabled\",\r\n \"connectionDraining\"\
+ : {\r\n \"enabled\": false,\r\n \"drainTimeoutInSec\"\
+ : 1\r\n },\r\n \"pickHostNameFromBackendAddress\": false,\r\
+ \n \"requestTimeout\": 30,\r\n \"requestRoutingRules\":\
+ \ [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1\"\
+ \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
+ \ \"httpListeners\": [\r\n {\r\n \"name\": \"appGatewayHttpListener\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener\"\
+ ,\r\n \"etag\": \"W/\\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendIPConfigurations/appGatewayFrontendIP\"\
+ \r\n },\r\n \"frontendPort\": {\r\n \"id\": \"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendPorts/appGatewayFrontendPort\"\
+ \r\n },\r\n \"protocol\": \"Http\",\r\n \"requireServerNameIndication\"\
+ : false,\r\n \"requestRoutingRules\": [\r\n {\r\n \
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1\"\
+ \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
+ \ \"urlPathMaps\": [],\r\n \"requestRoutingRules\": [\r\n {\r\n \
+ \ \"name\": \"rule1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1\"\
+ ,\r\n \"etag\": \"W/\\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"ruleType\": \"Basic\",\r\n \"httpListener\": {\r\
+ \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener\"\
+ \r\n },\r\n \"backendAddressPool\": {\r\n \"\
+ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendAddressPools/appGatewayBackendPool\"\
+ \r\n },\r\n \"backendHttpSettings\": {\r\n \"\
+ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendHttpSettingsCollection/appGatewayBackendHttpSettings\"\
+ \r\n }\r\n }\r\n }\r\n ],\r\n \"probes\": [],\r\
+ \n \"redirectConfigurations\": []\r\n }\r\n}"}
+ headers:
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/fca302f0-7cb8-4a43-97c5-bd3d4180e95b?api-version=2017-09-01']
+ cache-control: [no-cache]
+ content-length: ['9092']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:11:54 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-subscription-writes: ['1199']
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"name\": \"ag1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1\"\
+ ,\r\n \"etag\": \"W/\\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\\"\",\r\n \
+ \ \"type\": \"Microsoft.Network/applicationGateways\",\r\n \"location\":\
+ \ \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\"\
+ : \"Updating\",\r\n \"resourceGuid\": \"608a5da7-7a58-47cb-b477-dea9b903033b\"\
+ ,\r\n \"sku\": {\r\n \"name\": \"Standard_Medium\",\r\n \"tier\"\
+ : \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"operationalState\"\
+ : \"Stopped\",\r\n \"gatewayIPConfigurations\": [\r\n {\r\n \
+ \ \"name\": \"appGatewayFrontendIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/gatewayIPConfigurations/appGatewayFrontendIP\"\
+ ,\r\n \"etag\": \"W/\\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/virtualNetworks/ag1Vnet/subnets/default\"\
+ \r\n }\r\n }\r\n }\r\n ],\r\n \"sslCertificates\"\
+ : [],\r\n \"authenticationCertificates\": [],\r\n \"frontendIPConfigurations\"\
+ : [\r\n {\r\n \"name\": \"appGatewayFrontendIP\",\r\n \"\
+ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendIPConfigurations/appGatewayFrontendIP\"\
+ ,\r\n \"etag\": \"W/\\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"\
+ subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/virtualNetworks/ag1Vnet/subnets/default\"\
+ \r\n },\r\n \"httpListeners\": [\r\n {\r\n \
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener\"\
+ \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
+ \ \"frontendPorts\": [\r\n {\r\n \"name\": \"appGatewayFrontendPort\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendPorts/appGatewayFrontendPort\"\
+ ,\r\n \"etag\": \"W/\\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"port\": 80,\r\n \"httpListeners\": [\r\n \
+ \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener\"\
+ \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
+ \ \"backendAddressPools\": [\r\n {\r\n \"name\": \"appGatewayBackendPool\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendAddressPools/appGatewayBackendPool\"\
+ ,\r\n \"etag\": \"W/\\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"backendAddresses\": [],\r\n \"requestRoutingRules\"\
+ : [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1\"\
+ \r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \
+ \ \"name\": \"pool1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendAddressPools/pool1\"\
+ ,\r\n \"etag\": \"W/\\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"backendAddresses\": [\r\n {\r\n \"\
+ ipAddress\": \"123.4.5.6\"\r\n },\r\n {\r\n \
+ \ \"fqdn\": \"www.mydns.com\"\r\n }\r\n ]\r\n \
+ \ }\r\n }\r\n ],\r\n \"backendHttpSettingsCollection\": [\r\
+ \n {\r\n \"name\": \"appGatewayBackendHttpSettings\",\r\n \
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendHttpSettingsCollection/appGatewayBackendHttpSettings\"\
+ ,\r\n \"etag\": \"W/\\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"port\": 80,\r\n \"protocol\": \"Http\",\r\n \
+ \ \"cookieBasedAffinity\": \"Disabled\",\r\n \"connectionDraining\"\
+ : {\r\n \"enabled\": false,\r\n \"drainTimeoutInSec\"\
+ : 1\r\n },\r\n \"pickHostNameFromBackendAddress\": false,\r\
+ \n \"requestTimeout\": 30,\r\n \"requestRoutingRules\":\
+ \ [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1\"\
+ \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
+ \ \"httpListeners\": [\r\n {\r\n \"name\": \"appGatewayHttpListener\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener\"\
+ ,\r\n \"etag\": \"W/\\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendIPConfigurations/appGatewayFrontendIP\"\
+ \r\n },\r\n \"frontendPort\": {\r\n \"id\": \"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendPorts/appGatewayFrontendPort\"\
+ \r\n },\r\n \"protocol\": \"Http\",\r\n \"requireServerNameIndication\"\
+ : false,\r\n \"requestRoutingRules\": [\r\n {\r\n \
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1\"\
+ \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
+ \ \"urlPathMaps\": [],\r\n \"requestRoutingRules\": [\r\n {\r\n \
+ \ \"name\": \"rule1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1\"\
+ ,\r\n \"etag\": \"W/\\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"ruleType\": \"Basic\",\r\n \"httpListener\": {\r\
+ \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener\"\
+ \r\n },\r\n \"backendAddressPool\": {\r\n \"\
+ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendAddressPools/appGatewayBackendPool\"\
+ \r\n },\r\n \"backendHttpSettings\": {\r\n \"\
+ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendHttpSettingsCollection/appGatewayBackendHttpSettings\"\
+ \r\n }\r\n }\r\n }\r\n ],\r\n \"probes\": [],\r\
+ \n \"redirectConfigurations\": []\r\n }\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['9092']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:11:55 GMT']
+ etag: [W/"6920d7df-59c9-44f3-a058-6e4661a911e9"]
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"name\": \"ag1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1\"\
+ ,\r\n \"etag\": \"W/\\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\\"\",\r\n \
+ \ \"type\": \"Microsoft.Network/applicationGateways\",\r\n \"location\":\
+ \ \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\"\
+ : \"Updating\",\r\n \"resourceGuid\": \"608a5da7-7a58-47cb-b477-dea9b903033b\"\
+ ,\r\n \"sku\": {\r\n \"name\": \"Standard_Medium\",\r\n \"tier\"\
+ : \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"operationalState\"\
+ : \"Stopped\",\r\n \"gatewayIPConfigurations\": [\r\n {\r\n \
+ \ \"name\": \"appGatewayFrontendIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/gatewayIPConfigurations/appGatewayFrontendIP\"\
+ ,\r\n \"etag\": \"W/\\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/virtualNetworks/ag1Vnet/subnets/default\"\
+ \r\n }\r\n }\r\n }\r\n ],\r\n \"sslCertificates\"\
+ : [],\r\n \"authenticationCertificates\": [],\r\n \"frontendIPConfigurations\"\
+ : [\r\n {\r\n \"name\": \"appGatewayFrontendIP\",\r\n \"\
+ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendIPConfigurations/appGatewayFrontendIP\"\
+ ,\r\n \"etag\": \"W/\\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"\
+ subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/virtualNetworks/ag1Vnet/subnets/default\"\
+ \r\n },\r\n \"httpListeners\": [\r\n {\r\n \
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener\"\
+ \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
+ \ \"frontendPorts\": [\r\n {\r\n \"name\": \"appGatewayFrontendPort\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendPorts/appGatewayFrontendPort\"\
+ ,\r\n \"etag\": \"W/\\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"port\": 80,\r\n \"httpListeners\": [\r\n \
+ \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener\"\
+ \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
+ \ \"backendAddressPools\": [\r\n {\r\n \"name\": \"appGatewayBackendPool\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendAddressPools/appGatewayBackendPool\"\
+ ,\r\n \"etag\": \"W/\\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"backendAddresses\": [],\r\n \"requestRoutingRules\"\
+ : [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1\"\
+ \r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \
+ \ \"name\": \"pool1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendAddressPools/pool1\"\
+ ,\r\n \"etag\": \"W/\\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"backendAddresses\": [\r\n {\r\n \"\
+ ipAddress\": \"123.4.5.6\"\r\n },\r\n {\r\n \
+ \ \"fqdn\": \"www.mydns.com\"\r\n }\r\n ]\r\n \
+ \ }\r\n }\r\n ],\r\n \"backendHttpSettingsCollection\": [\r\
+ \n {\r\n \"name\": \"appGatewayBackendHttpSettings\",\r\n \
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendHttpSettingsCollection/appGatewayBackendHttpSettings\"\
+ ,\r\n \"etag\": \"W/\\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"port\": 80,\r\n \"protocol\": \"Http\",\r\n \
+ \ \"cookieBasedAffinity\": \"Disabled\",\r\n \"connectionDraining\"\
+ : {\r\n \"enabled\": false,\r\n \"drainTimeoutInSec\"\
+ : 1\r\n },\r\n \"pickHostNameFromBackendAddress\": false,\r\
+ \n \"requestTimeout\": 30,\r\n \"requestRoutingRules\":\
+ \ [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1\"\
+ \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
+ \ \"httpListeners\": [\r\n {\r\n \"name\": \"appGatewayHttpListener\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener\"\
+ ,\r\n \"etag\": \"W/\\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendIPConfigurations/appGatewayFrontendIP\"\
+ \r\n },\r\n \"frontendPort\": {\r\n \"id\": \"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendPorts/appGatewayFrontendPort\"\
+ \r\n },\r\n \"protocol\": \"Http\",\r\n \"requireServerNameIndication\"\
+ : false,\r\n \"requestRoutingRules\": [\r\n {\r\n \
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1\"\
+ \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
+ \ \"urlPathMaps\": [],\r\n \"requestRoutingRules\": [\r\n {\r\n \
+ \ \"name\": \"rule1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1\"\
+ ,\r\n \"etag\": \"W/\\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"ruleType\": \"Basic\",\r\n \"httpListener\": {\r\
+ \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener\"\
+ \r\n },\r\n \"backendAddressPool\": {\r\n \"\
+ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendAddressPools/appGatewayBackendPool\"\
+ \r\n },\r\n \"backendHttpSettings\": {\r\n \"\
+ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendHttpSettingsCollection/appGatewayBackendHttpSettings\"\
+ \r\n }\r\n }\r\n }\r\n ],\r\n \"probes\": [],\r\
+ \n \"redirectConfigurations\": []\r\n }\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['9092']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:11:55 GMT']
+ etag: [W/"6920d7df-59c9-44f3-a058-6e4661a911e9"]
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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''{"etag": "W/\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\"", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1",
+ "location": "westus", "tags": {}, "properties": {"probes": [], "requestRoutingRules":
+ [{"etag": "W/\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\"", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1",
+ "properties": {"provisioningState": "Updating", "ruleType": "Basic", "backendAddressPool":
+ {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendAddressPools/appGatewayBackendPool"},
+ "httpListener": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener"},
+ "backendHttpSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendHttpSettingsCollection/appGatewayBackendHttpSettings"}},
+ "name": "rule1"}], "frontendPorts": [{"etag": "W/\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\"",
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendPorts/appGatewayFrontendPort",
+ "properties": {"port": 80, "provisioningState": "Updating"}, "name": "appGatewayFrontendPort"}],
+ "redirectConfigurations": [], "backendAddressPools": [{"etag": "W/\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\"",
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendAddressPools/appGatewayBackendPool",
+ "properties": {"backendAddresses": [], "provisioningState": "Updating"}, "name":
+ "appGatewayBackendPool"}, {"etag": "W/\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\"",
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendAddressPools/pool1",
+ "properties": {"backendAddresses": [{"ipAddress": "5.4.3.2"}], "provisioningState":
+ "Updating"}, "name": "pool1"}], "provisioningState": "Updating", "authenticationCertificates":
+ [], "urlPathMaps": [], "httpListeners": [{"etag": "W/\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\"",
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener",
+ "properties": {"provisioningState": "Updating", "protocol": "Http", "frontendIPConfiguration":
+ {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendIPConfigurations/appGatewayFrontendIP"},
+ "frontendPort": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendPorts/appGatewayFrontendPort"},
+ "requireServerNameIndication": false}, "name": "appGatewayHttpListener"}], "gatewayIPConfigurations":
+ [{"etag": "W/\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\"", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/gatewayIPConfigurations/appGatewayFrontendIP",
+ "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/virtualNetworks/ag1Vnet/subnets/default"},
+ "provisioningState": "Updating"}, "name": "appGatewayFrontendIP"}], "sku": {"capacity":
+ 2, "tier": "Standard", "name": "Standard_Medium"}, "backendHttpSettingsCollection":
+ [{"etag": "W/\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\"", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendHttpSettingsCollection/appGatewayBackendHttpSettings",
+ "properties": {"port": 80, "provisioningState": "Updating", "connectionDraining":
+ {"drainTimeoutInSec": 1, "enabled": false}, "cookieBasedAffinity": "Disabled",
+ "requestTimeout": 30, "protocol": "Http", "pickHostNameFromBackendAddress":
+ false}, "name": "appGatewayBackendHttpSettings"}], "sslCertificates": [], "frontendIPConfigurations":
+ [{"etag": "W/\\"6920d7df-59c9-44f3-a058-6e4661a911e9\\"", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendIPConfigurations/appGatewayFrontendIP",
+ "properties": {"privateIPAllocationMethod": "Dynamic", "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/virtualNetworks/ag1Vnet/subnets/default"},
+ "provisioningState": "Updating"}, "name": "appGatewayFrontendIP"}], "resourceGuid":
+ "608a5da7-7a58-47cb-b477-dea9b903033b"}}'''
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Length: ['6020']
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"name\": \"ag1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1\"\
+ ,\r\n \"etag\": \"W/\\\"512fed73-ea79-4968-a0ed-e83e172cfe85\\\"\",\r\n \
+ \ \"type\": \"Microsoft.Network/applicationGateways\",\r\n \"location\":\
+ \ \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\"\
+ : \"Updating\",\r\n \"resourceGuid\": \"608a5da7-7a58-47cb-b477-dea9b903033b\"\
+ ,\r\n \"sku\": {\r\n \"name\": \"Standard_Medium\",\r\n \"tier\"\
+ : \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"operationalState\"\
+ : \"Stopped\",\r\n \"gatewayIPConfigurations\": [\r\n {\r\n \
+ \ \"name\": \"appGatewayFrontendIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/gatewayIPConfigurations/appGatewayFrontendIP\"\
+ ,\r\n \"etag\": \"W/\\\"512fed73-ea79-4968-a0ed-e83e172cfe85\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/virtualNetworks/ag1Vnet/subnets/default\"\
+ \r\n }\r\n }\r\n }\r\n ],\r\n \"sslCertificates\"\
+ : [],\r\n \"authenticationCertificates\": [],\r\n \"frontendIPConfigurations\"\
+ : [\r\n {\r\n \"name\": \"appGatewayFrontendIP\",\r\n \"\
+ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendIPConfigurations/appGatewayFrontendIP\"\
+ ,\r\n \"etag\": \"W/\\\"512fed73-ea79-4968-a0ed-e83e172cfe85\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"\
+ subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/virtualNetworks/ag1Vnet/subnets/default\"\
+ \r\n },\r\n \"httpListeners\": [\r\n {\r\n \
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener\"\
+ \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
+ \ \"frontendPorts\": [\r\n {\r\n \"name\": \"appGatewayFrontendPort\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendPorts/appGatewayFrontendPort\"\
+ ,\r\n \"etag\": \"W/\\\"512fed73-ea79-4968-a0ed-e83e172cfe85\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"port\": 80,\r\n \"httpListeners\": [\r\n \
+ \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener\"\
+ \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
+ \ \"backendAddressPools\": [\r\n {\r\n \"name\": \"appGatewayBackendPool\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendAddressPools/appGatewayBackendPool\"\
+ ,\r\n \"etag\": \"W/\\\"512fed73-ea79-4968-a0ed-e83e172cfe85\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"backendAddresses\": [],\r\n \"requestRoutingRules\"\
+ : [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1\"\
+ \r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \
+ \ \"name\": \"pool1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendAddressPools/pool1\"\
+ ,\r\n \"etag\": \"W/\\\"512fed73-ea79-4968-a0ed-e83e172cfe85\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"backendAddresses\": [\r\n {\r\n \"\
+ ipAddress\": \"5.4.3.2\"\r\n }\r\n ]\r\n }\r\n\
+ \ }\r\n ],\r\n \"backendHttpSettingsCollection\": [\r\n {\r\
+ \n \"name\": \"appGatewayBackendHttpSettings\",\r\n \"id\":\
+ \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendHttpSettingsCollection/appGatewayBackendHttpSettings\"\
+ ,\r\n \"etag\": \"W/\\\"512fed73-ea79-4968-a0ed-e83e172cfe85\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"port\": 80,\r\n \"protocol\": \"Http\",\r\n \
+ \ \"cookieBasedAffinity\": \"Disabled\",\r\n \"connectionDraining\"\
+ : {\r\n \"enabled\": false,\r\n \"drainTimeoutInSec\"\
+ : 1\r\n },\r\n \"pickHostNameFromBackendAddress\": false,\r\
+ \n \"requestTimeout\": 30,\r\n \"requestRoutingRules\":\
+ \ [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1\"\
+ \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
+ \ \"httpListeners\": [\r\n {\r\n \"name\": \"appGatewayHttpListener\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener\"\
+ ,\r\n \"etag\": \"W/\\\"512fed73-ea79-4968-a0ed-e83e172cfe85\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendIPConfigurations/appGatewayFrontendIP\"\
+ \r\n },\r\n \"frontendPort\": {\r\n \"id\": \"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/frontendPorts/appGatewayFrontendPort\"\
+ \r\n },\r\n \"protocol\": \"Http\",\r\n \"requireServerNameIndication\"\
+ : false,\r\n \"requestRoutingRules\": [\r\n {\r\n \
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1\"\
+ \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \
+ \ \"urlPathMaps\": [],\r\n \"requestRoutingRules\": [\r\n {\r\n \
+ \ \"name\": \"rule1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1\"\
+ ,\r\n \"etag\": \"W/\\\"512fed73-ea79-4968-a0ed-e83e172cfe85\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\
+ ,\r\n \"ruleType\": \"Basic\",\r\n \"httpListener\": {\r\
+ \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener\"\
+ \r\n },\r\n \"backendAddressPool\": {\r\n \"\
+ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendAddressPools/appGatewayBackendPool\"\
+ \r\n },\r\n \"backendHttpSettings\": {\r\n \"\
+ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ag_address_pool000001/providers/Microsoft.Network/applicationGateways/ag1/backendHttpSettingsCollection/appGatewayBackendHttpSettings\"\
+ \r\n }\r\n }\r\n }\r\n ],\r\n \"probes\": [],\r\
+ \n \"redirectConfigurations\": []\r\n }\r\n}"}
+ headers:
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01']
+ cache-control: [no-cache]
+ content-length: ['9020']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:11:56 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-subscription-writes: ['1197']
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:12:06 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:12:16 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:12:27 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:12:37 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:12:48 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:12:59 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:13:09 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:13:20 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:13:30 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:13:41 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:13:51 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:14:02 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:14:13 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:14:23 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:14:33 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:14:44 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:14:54 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:15:04 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:15:15 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:15:25 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:15:36 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:15:47 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:15:56 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:16:07 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:16:17 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:16:28 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:16:38 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:16:48 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:16:59 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:17:09 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:17:20 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:17:30 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:17:40 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:17:50 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:18:01 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:18:12 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:18:22 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:18:32 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75c122c3-e800-4e33-b5a0-363b4ea5f449?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['30']
+ content-type: [application/json; charset=utf-8]
+ date: ['Wed, 15 Nov 2017 17:18:42 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Length: ['0']
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: DELETE
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_ag_address_pool000001?api-version=2017-05-10
+ response:
+ body: {string: ''}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['0']
+ date: ['Wed, 15 Nov 2017 17:18:51 GMT']
+ expires: ['-1']
+ location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGQUc6NUZBRERSRVNTOjVGUE9PTDNMV1VaTjZOTkZKNUpPMnwzMEQ4OERFOEJGMzZCNDdGLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ x-ms-ratelimit-remaining-subscription-writes: ['1193']
+ status: {code: 202, message: Accepted}
+version: 1
diff --git a/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/__init__.py b/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/__init__.py
index 6284656e090..6f85af61f3c 100644
--- a/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/__init__.py
+++ b/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/__init__.py
@@ -3,14 +3,33 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
+from azure.cli.core import AzCommandsLoader
+
import azure.cli.command_modules.rdbms._help # pylint: disable=unused-import
-__all__ = ['load_params', 'load_commands']
+class RdbmsCommandsLoader(AzCommandsLoader):
+
+ def __init__(self, cli_ctx=None):
+ from azure.cli.core.sdk.util import CliCommandType
+ from azure.cli.command_modules.rdbms._util import _PolyParametersContext
+ rdbms_custom = CliCommandType(operations_tmpl='azure.cli.command_modules.rdbms.custom#{}')
+ super(RdbmsCommandsLoader, self).__init__(cli_ctx=cli_ctx,
+ min_profile='2017-03-10-profile',
+ custom_command_type=rdbms_custom,
+ argument_context_cls=_PolyParametersContext)
+ self.module_name = __name__
+
+ def load_command_table(self, args):
+ super(RdbmsCommandsLoader, self).load_command_table(args)
+ from azure.cli.command_modules.rdbms.commands import load_command_table
+ load_command_table(self, args)
+ return self.command_table
-def load_params(_):
- import azure.cli.command_modules.rdbms._params # pylint: disable=redefined-outer-name, unused-variable
+ def load_arguments(self, command):
+ super(RdbmsCommandsLoader, self).load_arguments(command)
+ from azure.cli.command_modules.rdbms._params import load_arguments
+ load_arguments(self, command)
-def load_commands():
- import azure.cli.command_modules.rdbms.commands # pylint: disable=redefined-outer-name, unused-variable
+COMMAND_LOADER_CLS = RdbmsCommandsLoader
diff --git a/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/_client_factory.py b/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/_client_factory.py
new file mode 100644
index 00000000000..9bcf4db1cbd
--- /dev/null
+++ b/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/_client_factory.py
@@ -0,0 +1,112 @@
+# --------------------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# --------------------------------------------------------------------------------------------
+
+from azure.cli.core.commands.client_factory import get_mgmt_service_client
+
+# CLIENT FACTORIES
+
+RM_URI_OVERRIDE = 'AZURE_CLI_RDBMS_RM_URI'
+SUB_ID_OVERRIDE = 'AZURE_CLI_RDBMS_SUB_ID'
+CLIENT_ID = 'AZURE_CLIENT_ID'
+TENANT_ID = 'AZURE_TENANT_ID'
+CLIENT_SECRET = 'AZURE_CLIENT_SECRET'
+
+
+def get_mysql_management_client(cli_ctx, **_):
+ from os import getenv
+ from azure.mgmt.rdbms.mysql import MySQLManagementClient
+
+ # Allow overriding resource manager URI using environment variable
+ # for testing purposes. Subscription id is also determined by environment
+ # variable.
+ rm_uri_override = getenv(RM_URI_OVERRIDE)
+ if rm_uri_override:
+ client_id = getenv(CLIENT_ID)
+ if client_id:
+ from azure.common.credentials import ServicePrincipalCredentials
+ credentials = ServicePrincipalCredentials(
+ client_id=client_id,
+ secret=getenv(CLIENT_SECRET),
+ tenant=getenv(TENANT_ID))
+ else:
+ from msrest.authentication import Authentication
+ credentials = Authentication()
+
+ return MySQLManagementClient(
+ subscription_id=getenv(SUB_ID_OVERRIDE),
+ base_url=rm_uri_override,
+ credentials=credentials)
+ else:
+ # Normal production scenario.
+ return get_mgmt_service_client(cli_ctx, MySQLManagementClient)
+
+
+def get_postgresql_management_client(cli_ctx, **_):
+ from os import getenv
+ from azure.mgmt.rdbms.postgresql import PostgreSQLManagementClient
+
+ # Allow overriding resource manager URI using environment variable
+ # for testing purposes. Subscription id is also determined by environment
+ # variable.
+ rm_uri_override = getenv(RM_URI_OVERRIDE)
+ if rm_uri_override:
+ client_id = getenv(CLIENT_ID)
+ if client_id:
+ from azure.common.credentials import ServicePrincipalCredentials
+ credentials = ServicePrincipalCredentials(
+ client_id=client_id,
+ secret=getenv(CLIENT_SECRET),
+ tenant=getenv(TENANT_ID))
+ else:
+ from msrest.authentication import Authentication
+ credentials = Authentication()
+
+ return PostgreSQLManagementClient(
+ subscription_id=getenv(SUB_ID_OVERRIDE),
+ base_url=rm_uri_override,
+ credentials=credentials)
+ else:
+ # Normal production scenario.
+ return get_mgmt_service_client(cli_ctx, PostgreSQLManagementClient)
+
+
+def cf_mysql_servers(cli_ctx, _):
+ return get_mysql_management_client(cli_ctx).servers
+
+
+def cf_postgres_servers(cli_ctx, _):
+ return get_postgresql_management_client(cli_ctx).servers
+
+
+def cf_mysql_firewall_rules(cli_ctx, _):
+ return get_mysql_management_client(cli_ctx).firewall_rules
+
+
+def cf_postgres_firewall_rules(cli_ctx, _):
+ return get_postgresql_management_client(cli_ctx).firewall_rules
+
+
+def cf_mysql_config(cli_ctx, _):
+ return get_mysql_management_client(cli_ctx).configurations
+
+
+def cf_postgres_config(cli_ctx, _):
+ return get_postgresql_management_client(cli_ctx).configurations
+
+
+def cf_mysql_log(cli_ctx, _):
+ return get_mysql_management_client(cli_ctx).log_files
+
+
+def cf_postgres_log(cli_ctx, _):
+ return get_postgresql_management_client(cli_ctx).log_files
+
+
+def cf_mysql_db(cli_ctx, _):
+ return get_mysql_management_client(cli_ctx).databases
+
+
+def cf_postgres_db(cli_ctx, _):
+ return get_postgresql_management_client(cli_ctx).databases
diff --git a/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/_params.py b/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/_params.py
index 9bc17aa578d..b61ac241cef 100644
--- a/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/_params.py
+++ b/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/_params.py
@@ -5,110 +5,89 @@
from azure.mgmt.rdbms import mysql
from azure.mgmt.rdbms import postgresql
-from azure.cli.core.commands import register_cli_argument
-from azure.cli.core.commands.parameters import get_resource_name_completion_list, tags_type, location_type
+from azure.cli.core.commands.parameters import (
+ get_resource_name_completion_list, tags_type, get_location_type, get_enum_type)
-from knack.arguments import enum_choice_list
-
-from ._util import PolyParametersContext
-from .validators import configuration_value_validator
+from azure.cli.command_modules.rdbms.validators import configuration_value_validator
# pylint: disable=line-too-long
-# load parameters from models #
-
-
-def load_params(command_group, engine):
- with PolyParametersContext(command='{} server create'.format(command_group)) as c:
- c.expand('sku', engine.models.Sku)
- c.ignore('name')
- c.ignore('family')
- c.ignore('size')
-
- c.expand('properties', engine.models.ServerPropertiesForDefaultCreate)
- c.argument('administrator_login', arg_group='Authentication')
- c.argument('administrator_login_password', arg_group='Authentication')
-
- c.expand('parameters', engine.models.ServerForCreate)
-
- c.argument('location', location_type, required=False)
-
- with PolyParametersContext(command='{} server restore'.format(command_group)) as c:
- c.expand('sku', engine.models.Sku)
- c.ignore('name')
- c.ignore('family')
- c.ignore('size')
- c.ignore('tier')
- c.ignore('capacity')
-
- c.expand('properties', engine.models.ServerPropertiesForRestore)
- c.ignore('version')
- c.ignore('ssl_enforcement')
- c.ignore('storage_mb')
-
- c.expand('parameters', engine.models.ServerForCreate)
- c.ignore('tags')
- c.ignore('location')
-
- c.argument('source_server_id', options_list=('--source-server', '-s'),
- help='The name or ID of the source server to restore from.')
- c.argument('restore_point_in_time',
- help='The point in time to restore from (ISO8601 format), e.g., 2017-04-26T02:10:00+08:00')
-
- with PolyParametersContext(command='{} server configuration set'.format(command_group)) as c:
- c.ignore('source')
- c.argument('value',
- help='Value of the configuration. If not provided, configuration value will be set to default.',
- validator=configuration_value_validator)
-
-
-load_params('mysql', mysql)
-load_params('postgres', postgresql)
-
-#####
-# register cli arguments
-#####
-
-server_completers = {'mysql': get_resource_name_completion_list('Microsoft.DBForMySQL/servers'),
- 'postgres': get_resource_name_completion_list('Microsoft.DBForPostgreSQL/servers')}
-
-
-for command_group_name in ['mysql', 'postgres']:
- register_cli_argument('{0}'.format(command_group_name), 'name', options_list=('--sku-name',))
- register_cli_argument('{0}'.format(command_group_name), 'server_name', completer=server_completers[command_group_name], options_list=('--server-name', '-s'))
-
- register_cli_argument('{0} server'.format(command_group_name), 'server_name', options_list=('--name', '-n'), id_part='name',
- help='Name of the server.')
- register_cli_argument('{0} server'.format(command_group_name), 'administrator_login', options_list=('--admin-user', '-u'))
- register_cli_argument('{0} server'.format(command_group_name), 'administrator_login_password', options_list=('--admin-password', '-p'), required=False,
- help='The password of the administrator login.')
- register_cli_argument('{0} server'.format(command_group_name), 'ssl_enforcement', options_list=('--ssl-enforcement',),
- help='Enable ssl enforcement or not when connect to server.',
- **enum_choice_list(['Enabled', 'Disabled']))
- register_cli_argument('{0} server'.format(command_group_name), 'tier', options_list=('--performance-tier',),
- help='The performance tier of the server.',
- **enum_choice_list(['Basic', 'Standard']))
- register_cli_argument('{0} server'.format(command_group_name), 'capacity', options_list=('--compute-units',), type=int,
- help='Number of compute units.')
- register_cli_argument('{0} server'.format(command_group_name), 'storage_mb', options_list=('--storage-size',), type=int,
- help='The max storage size of the server, unit is MB.')
- register_cli_argument('{0} server'.format(command_group_name), 'tags', tags_type)
-
- register_cli_argument('{0} server-logs'.format(command_group_name), 'file_name', options_list=('--name', '-n'), nargs='+')
- register_cli_argument('{0} server-logs'.format(command_group_name), 'max_file_size', type=int)
- register_cli_argument('{0} server-logs'.format(command_group_name), 'file_last_written', type=int)
-
- register_cli_argument('{0} db'.format(command_group_name), 'database_name', options_list=('--name', '-n'))
-
- register_cli_argument('{0} server firewall-rule'.format(command_group_name), 'server_name', options_list=('--server-name', '-s'))
- register_cli_argument('{0} server firewall-rule'.format(command_group_name), 'firewall_rule_name', options_list=('--name', '-n'), id_part='child_name_1',
- help='The name of the firewall rule.')
- register_cli_argument('{0} server firewall-rule'.format(command_group_name), 'start_ip_address', options_list=('--start-ip-address',),
- help='The start IP address of the firewall rule. Must be IPv4 format. Use value'
- ' \'0.0.0.0\' to represent all Azure-internal IP addresses.')
- register_cli_argument('{0} server firewall-rule'.format(command_group_name), 'end_ip_address', options_list=('--end-ip-address',),
- help='The end IP address of the firewall rule. Must be IPv4 format. Use value'
- ' \'0.0.0.0\' to represent all Azure-internal IP addresses.')
-
- register_cli_argument('{0} server configuration'.format(command_group_name), 'server_name', options_list=('--server-name', '-s'))
- register_cli_argument('{0} server configuration'.format(command_group_name), 'configuration_name', id_part='child_name_1', options_list=('--name', '-n'))
+
+def load_arguments(self, _):
+
+ server_completers = {
+ 'mysql': get_resource_name_completion_list('Microsoft.DBForMySQL/servers'),
+ 'postgres': get_resource_name_completion_list('Microsoft.DBForPostgreSQL/servers')
+ }
+
+ def _complex_params(command_group, engine):
+
+ with self.argument_context('{} server create'.format(command_group)) as c:
+ c.expand('sku', engine.models.Sku)
+ c.ignore('name', 'family', 'size')
+
+ c.expand('properties', engine.models.ServerPropertiesForDefaultCreate)
+ c.argument('administrator_login', arg_group='Authentication')
+ c.argument('administrator_login_password', arg_group='Authentication')
+
+ c.expand('parameters', engine.models.ServerForCreate)
+
+ c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False)
+
+ with self.argument_context('{} server restore'. format(command_group)) as c:
+ c.expand('sku', engine.models.Sku)
+ c.ignore('name', 'family', 'size', 'tier', 'capacity')
+
+ c.expand('properties', engine.models.ServerPropertiesForRestore)
+ c.ignore('version', 'ssl_enforcement', 'storage_mb')
+
+ c.expand('parameters', engine.models.ServerForCreate)
+ c.ignore('tags', 'location')
+
+ c.argument('source_server_id', options_list=['--source-server', '-s'], help='The name or ID of the source server to restore from.')
+ c.argument('restore_point_in_time', help='The point in time to restore from (ISO8601 format), e.g., 2017-04-26T02:10:00+08:00')
+
+ with self.argument_context('{} server configuration set'.format(command_group)) as c:
+ c.argument('value', help='Value of the configuration. If not provided, configuration value will be set to default.', validator=configuration_value_validator)
+ c.ignore('source')
+
+ _complex_params('mysql', mysql)
+ _complex_params('postgres', postgresql)
+
+ for scope in ['mysql', 'postgres']:
+ with self.argument_context(scope) as c:
+ c.argument('name', options_list=['--sku-name'])
+ c.argument('server_name', completer=server_completers[scope], options_list=['--server-name', '-s'])
+
+ for scope in ['mysql server', 'postgres server']:
+ with self.argument_context(scope) as c:
+ c.argument('server_name', options_list=['--name', '-n'], id_part='name', help='Name of the server.')
+ c.argument('administrator_login', options_list=['--admin-user', '-u'])
+ c.argument('administrator_login_password', options_list=['--admin-password', '-p'], required=False, help='The password of the administrator login.')
+ c.argument('ssl_enforcement', arg_type=get_enum_type(['Enabled', 'Disabled']), options_list=['--ssl-enforcement'], help='Enable ssl enforcement or not when connect to server.')
+ c.argument('tier', arg_type=get_enum_type(['Basic', 'Standard']), options_list=['--performance-tier'], help='The performance tier of the server.')
+ c.argument('capacity', options_list=['--compute-units'], type=int, help='Number of compute units.')
+ c.argument('storage_mb', options_list=['--storage-size'], type=int, help='The max storage size of the server, unit is MB.')
+ c.argument('tags', tags_type)
+
+ for scope in ['mysql server-logs', 'postgres server-logs']:
+ with self.argument_context(scope) as c:
+ c.argument('file_name', options_list=['--name', '-n'], nargs='+')
+ c.argument('max_file_size', type=int)
+ c.argument('file_last_written', type=int)
+
+ for scope in ['mysql db', 'postgres db']:
+ with self.argument_context(scope) as c:
+ c.argument('database_name', options_list=['--name', '-n'])
+
+ for scope in ['mysql server firewall-rule', 'postgres server firewall-rule']:
+ with self.argument_context(scope) as c:
+ c.argument('server_name', options_list=['--server-name', '-s'])
+ c.argument('firewall_rule_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the firewall rule.')
+ c.argument('start_ip_address', options_list=['--start-ip-address'], help='The start IP address of the firewall rule. Must be IPv4 format. Use value \'0.0.0.0\' to represent all Azure-internal IP addresses.')
+ c.argument('end_ip_address', options_list=['--end-ip-address'], help='The end IP address of the firewall rule. Must be IPv4 format. Use value \'0.0.0.0\' to represent all Azure-internal IP addresses.')
+
+ for scope in ['mysql server configuration', 'postgres server configuration']:
+ with self.argument_context(scope) as c:
+ c.argument('server_name', options_list=['--server-name', '-s'])
+ c.argument('configuration_name', id_part='child_name_1', options_list=['--name', '-n'])
diff --git a/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/_util.py b/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/_util.py
index 563dd5e6861..924d2bb7965 100644
--- a/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/_util.py
+++ b/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/_util.py
@@ -3,86 +3,19 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
-from azure.cli.core.commands import _get_cli_argument
-from azure.cli.core.commands.client_factory import get_mgmt_service_client
-from azure.cli.core.sdk.util import ParametersContext
+from azure.cli.core.sdk.util import _ParametersContext
-from knack.arguments import ignore_type
-# CLIENT FACTORIES
+class _PolyParametersContext(_ParametersContext):
-RM_URI_OVERRIDE = 'AZURE_CLI_RDBMS_RM_URI'
-SUB_ID_OVERRIDE = 'AZURE_CLI_RDBMS_SUB_ID'
-CLIENT_ID = 'AZURE_CLIENT_ID'
-TENANT_ID = 'AZURE_TENANT_ID'
-CLIENT_SECRET = 'AZURE_CLIENT_SECRET'
-
-
-def get_mysql_management_client(_):
- from os import getenv
- from azure.mgmt.rdbms.mysql import MySQLManagementClient
-
- # Allow overriding resource manager URI using environment variable
- # for testing purposes. Subscription id is also determined by environment
- # variable.
- rm_uri_override = getenv(RM_URI_OVERRIDE)
- if rm_uri_override:
- client_id = getenv(CLIENT_ID)
- if client_id:
- from azure.common.credentials import ServicePrincipalCredentials
- credentials = ServicePrincipalCredentials(
- client_id=client_id,
- secret=getenv(CLIENT_SECRET),
- tenant=getenv(TENANT_ID))
- else:
- from msrest.authentication import Authentication
- credentials = Authentication()
-
- return MySQLManagementClient(
- subscription_id=getenv(SUB_ID_OVERRIDE),
- base_url=rm_uri_override,
- credentials=credentials)
- else:
- # Normal production scenario.
- return get_mgmt_service_client(MySQLManagementClient)
-
-
-def get_postgresql_management_client(_):
- from os import getenv
- from azure.mgmt.rdbms.postgresql import PostgreSQLManagementClient
-
- # Allow overriding resource manager URI using environment variable
- # for testing purposes. Subscription id is also determined by environment
- # variable.
- rm_uri_override = getenv(RM_URI_OVERRIDE)
- if rm_uri_override:
- client_id = getenv(CLIENT_ID)
- if client_id:
- from azure.common.credentials import ServicePrincipalCredentials
- credentials = ServicePrincipalCredentials(
- client_id=client_id,
- secret=getenv(CLIENT_SECRET),
- tenant=getenv(TENANT_ID))
- else:
- from msrest.authentication import Authentication
- credentials = Authentication()
-
- return PostgreSQLManagementClient(
- subscription_id=getenv(SUB_ID_OVERRIDE),
- base_url=rm_uri_override,
- credentials=credentials)
- else:
- # Normal production scenario.
- return get_mgmt_service_client(PostgreSQLManagementClient)
-
-
-class PolyParametersContext(ParametersContext):
- def __init__(self, command):
- super(PolyParametersContext, self).__init__(command)
+ def __init__(self, command_loader, scope, **kwargs):
+ super(_PolyParametersContext, self).__init__(command_loader, scope)
self.validators = []
def expand(self, argument_name, model_type, group_name=None, patches=None):
- super(PolyParametersContext, self).expand(argument_name, model_type, group_name, patches)
+ super(_PolyParametersContext, self).expand(argument_name, model_type, group_name, patches)
+
+ from knack.arguments import ignore_type
# Remove the validator and store it into a list
arg = _get_cli_argument(self._commmand, argument_name)
diff --git a/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/commands.py b/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/commands.py
index 93b5e72a488..821b62c1a4b 100644
--- a/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/commands.py
+++ b/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/commands.py
@@ -3,99 +3,124 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
-from azure.cli.core.commands.arm import _cli_generic_update_command
-from azure.cli.core.profiles import supported_api_version, PROFILE_TYPE
-from azure.cli.core.sdk.util import (
- create_service_adapter,
- ServiceGroup)
-from ._util import (
- get_mysql_management_client,
- get_postgresql_management_client)
-
-if not supported_api_version(PROFILE_TYPE, max_api='2017-03-09-profile'):
- custom_path = 'azure.cli.command_modules.rdbms.custom#{}'
-
- def load_commands_from_factory(server_type, command_group_name, management_client):
- # server
- server_sa = create_service_adapter(
- 'azure.mgmt.rdbms.{}.operations.servers_operations'.format(server_type),
- 'ServersOperations')
-
- def server_factory(args):
- return management_client(args).servers
-
- with ServiceGroup(__name__, server_factory, server_sa, custom_path) as s:
- with s.group('{} server'.format(command_group_name)) as c:
- c.command('create', 'create_or_update')
- c.custom_command('restore', '_server_restore')
- c.command('delete', 'delete', confirmation=True)
- c.command('show', 'get')
- c.custom_command('list', '_server_list_custom_func')
- c.generic_update_command('update', 'get', 'update',
- custom_func_name='_server_update_custom_func')
-
- # firewall rule
- firewall_rule_sa = create_service_adapter(
- 'azure.mgmt.rdbms.{}.operations.firewall_rules_operations'.format(server_type),
- 'FirewallRulesOperations')
-
- def firewall_rule_factory(args):
- return management_client(args).firewall_rules
-
- with ServiceGroup(__name__, firewall_rule_factory, firewall_rule_sa, custom_path) as s:
- with s.group('{} server firewall-rule'.format(command_group_name)) as c:
- c.command('create', 'create_or_update')
- c.command('delete', 'delete', confirmation=True)
- c.command('show', 'get')
- c.command('list', 'list_by_server')
- _cli_generic_update_command(__name__,
- '{} server firewall-rule update'.format(command_group_name),
- firewall_rule_sa('get'),
- custom_path.format('_firewall_rule_custom_setter'),
- firewall_rule_factory,
- custom_function_op=custom_path.format('_firewall_rule_update_custom_func'))
-
- # configuration
- configuration_sa = create_service_adapter(
- 'azure.mgmt.rdbms.{}.operations.configurations_operations'.format(server_type),
- 'ConfigurationsOperations')
-
- def configuration_factory(args):
- return management_client(args).configurations
-
- with ServiceGroup(__name__, configuration_factory, configuration_sa) as s:
- with s.group('{} server configuration'.format(command_group_name)) as c:
- c.command('set', 'create_or_update')
- c.command('show', 'get')
- c.command('list', 'list_by_server')
-
- # log_files
- log_file_sa = create_service_adapter(
- 'azure.mgmt.rdbms.{}.operations.log_files_operations'.format(server_type),
- 'LogFilesOperations')
-
- def log_file_factory(args):
- return management_client(args).log_files
-
- with ServiceGroup(__name__, log_file_factory, log_file_sa, custom_path) as s:
- with s.group('{} server-logs'.format(command_group_name)) as c:
- c.custom_command('list', '_list_log_files_with_filter')
- c.custom_command('download', '_download_log_files')
-
- # database
- database_sa = create_service_adapter(
- 'azure.mgmt.rdbms.{}.operations.databases_operations'.format(server_type),
- 'DatabasesOperations')
-
- def database_factory(args):
- return management_client(args).databases
-
- with ServiceGroup(__name__, database_factory, database_sa) as s:
- with s.group('{} db'.format(command_group_name)) as c:
- # c.command('create', 'create_or_update')
- # c.command('delete', 'delete', confirmation=True)
- # c.command('show', 'get')
- c.command('list', 'list_by_server')
-
- load_commands_from_factory('mysql', 'mysql', get_mysql_management_client)
- load_commands_from_factory('postgresql', 'postgres', get_postgresql_management_client)
+from azure.cli.core.sdk.util import CliCommandType
+
+from azure.cli.command_modules.rdbms._client_factory import (
+ cf_mysql_servers, cf_postgres_servers, cf_mysql_firewall_rules, cf_postgres_firewall_rules,
+ cf_mysql_config, cf_postgres_config, cf_mysql_log, cf_postgres_log, cf_mysql_db, cf_postgres_db)
+
+
+# pylint: disable=too-many-locals, too-many-statements, line-too-long
+def load_command_table(self, _):
+
+ mysql_servers_sdk = CliCommandType(
+ operations_tmpl='azure.mgmt.rdbms.mysql.operations.servers_operations#ServersOperations.{}',
+ client_factory=cf_mysql_servers
+ )
+
+ postgres_servers_sdk = CliCommandType(
+ operations_tmpl='azure.mgmt.rdbms.postgresql.operations.servers_operations#ServersOperations.{}',
+ client_factory=cf_postgres_servers
+ )
+
+ mysql_firewall_rule_sdk = CliCommandType(
+ operations_tmpl='azure.mgmt.rdbms.mysql.operations.firewall_rules_operations#FirewallRulesOperations.{}',
+ client_factory=cf_mysql_firewall_rules
+ )
+
+ postgres_firewall_rule_sdk = CliCommandType(
+ operations_tmpl='azure.mgmt.rdbms.postgresql.operations.firewall_rules_operations#FirewallRulesOperations.{}',
+ client_factory=cf_postgres_firewall_rules
+ )
+
+ mysql_config_sdk = CliCommandType(
+ operations_tmpl='azure.mgmt.rdbms.mysql.operations.configurations_operations#ConfigurationsOperations.{}',
+ client_factory=cf_mysql_config
+ )
+
+ postgres_config_sdk = CliCommandType(
+ operations_tmpl='azure.mgmt.rdbms.postgresql.operations.configurations_operations#ConfigurationsOperations.{}',
+ client_factory=cf_postgres_config
+ )
+
+ mysql_log_sdk = CliCommandType(
+ operations_tmpl='azure.mgmt.rdbms.mysql.operations.log_files_operations#LogFilesOperations.{}',
+ client_factory=cf_mysql_log
+ )
+
+ postgres_log_sdk = CliCommandType(
+ operations_tmpl='azure.mgmt.rdbms.postgres.operations.log_files_operations#LogFilesOperations.{}',
+ client_factory=cf_postgres_log
+ )
+
+ mysql_db_sdk = CliCommandType(
+ operations_tmpl='azure.mgmt.rdbms.mysql.operations.databases_operations#DatabasesOperations.{}',
+ client_factory=cf_mysql_db
+ )
+
+ postgres_db_sdk = CliCommandType(
+ operations_tmpl='azure.mgmt.rdbms.postgresql.operations.databases_operations#DatabasesOperations.{}',
+ client_factory=cf_postgres_db
+ )
+
+ with self.command_group('mysql server', mysql_servers_sdk) as g:
+ g.command('create', 'create_or_update')
+ g.custom_command('restore', '_server_restore')
+ g.command('delete', 'delete', confirmation=True)
+ g.command('show', 'get')
+ g.custom_command('list', '_server_list_custom_func')
+ g.generic_update_command('update', setter_name='update',
+ custom_func_name='_server_update_custom_func')
+
+ with self.command_group('postgres server', postgres_servers_sdk) as g:
+ g.command('create', 'create_or_update')
+ g.custom_command('restore', '_server_restore')
+ g.command('delete', 'delete', confirmation=True)
+ g.command('show', 'get')
+ g.custom_command('list', '_server_list_custom_func')
+ g.generic_update_command('update', setter_name='update',
+ custom_func_name='_server_update_custom_func')
+
+ with self.command_group('mysql server firewall-rule', mysql_firewall_rule_sdk) as g:
+ g.command('create', 'create_or_update')
+ g.command('delete', 'delete', confirmation=True)
+ g.command('show', 'get')
+ g.command('list', 'list_by_server')
+ g.generic_update_command('update', setter_name='_firewall_rule_custom_setter', custom_func_name='_firewall_rule_update_custom_func')
+
+ with self.command_group('postgres server firewall-rule', postgres_firewall_rule_sdk) as g:
+ g.command('create', 'create_or_update')
+ g.command('delete', 'delete', confirmation=True)
+ g.command('show', 'get')
+ g.command('list', 'list_by_server')
+ g.generic_update_command('update', setter_name='_firewall_rule_custom_setter', custom_func_name='_firewall_rule_update_custom_func')
+
+ with self.command_group('mysql server configuration', mysql_config_sdk) as g:
+ g.command('set', 'create_or_update')
+ g.command('show', 'get')
+ g.command('list', 'list_by_server')
+
+ with self.command_group('postgres server configuration', postgres_config_sdk) as g:
+ g.command('set', 'create_or_update')
+ g.command('show', 'get')
+ g.command('list', 'list_by_server')
+
+ with self.command_group('mysql server-logs', mysql_log_sdk) as g:
+ g.custom_command('list', '_list_log_files_with_filter')
+ g.custom_command('download', '_download_log_files')
+
+ with self.command_group('postgres server-logs', postgres_log_sdk) as g:
+ g.custom_command('list', '_list_log_files_with_filter')
+ g.custom_command('download', '_download_log_files')
+
+ with self.command_group('mysql db', mysql_db_sdk) as g:
+ # g.command('create', 'create_or_update')
+ # g.command('delete', 'delete', confirmation=True)
+ # g.command('show', 'get')
+ g.command('list', 'list_by_server')
+
+ with self.command_group('postgres db', postgres_db_sdk) as g:
+ # g.command('create', 'create_or_update')
+ # g.command('delete', 'delete', confirmation=True)
+ # g.command('show', 'get')
+ g.command('list', 'list_by_server')
diff --git a/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/custom.py b/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/custom.py
index 8afab4e49c5..c62dc0bf272 100644
--- a/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/custom.py
+++ b/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/custom.py
@@ -3,22 +3,14 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
-from msrestazure.tools import \
- (resource_id, is_valid_resource_id, parse_resource_id)
+from msrestazure.tools import (
+ resource_id, is_valid_resource_id, parse_resource_id)
# need to replace source sever name with source server id, so customer server restore function
# The parameter list should be the same as that in factory to use the ParametersContext
# auguments and validators
-def _server_restore(
- client,
- resource_group_name,
- server_name,
- parameters,
- **kwargs):
- """
- Create a new server by restoring from a server backup.
- """
+def _server_restore(cmd, client, resource_group_name, server_name, parameters, **kwargs):
source_server = kwargs['source_server_id']
if not is_valid_resource_id(source_server):
@@ -26,7 +18,7 @@ def _server_restore(
from azure.cli.core.commands.client_factory import get_subscription_id
from azure.mgmt.rdbms.mysql.operations.servers_operations import ServersOperations
provider = 'Microsoft.DBForMySQL' if isinstance(client, ServersOperations) else 'Microsoft.DBforPostgreSQL'
- source_server = resource_id(subscription=get_subscription_id(),
+ source_server = resource_id(subscription=get_subscription_id(cmd.cli_ctx),
resource_group=resource_group_name,
namespace=provider,
type='servers',
@@ -99,18 +91,14 @@ def _download_log_files(
resource_group_name,
server_name,
file_name):
- """
- Download log file(s) of a given server to current directory.
-
- :param resource_group_name: The name of the resource group that
- contains the resource. You can obtain this value from the Azure
- Resource Manager API or the portal.
- :type resource_group_name: str
- :param server_name: Name of the server.
- :type server_name: str
- :param file_name: Space separated list of log filenames on the server to download.
- :type filename_contains: str
- """
+ #:param resource_group_name: The name of the resource group that
+ #contains the resource. You can obtain this value from the Azure
+ #Resource Manager API or the portal.
+ #:type resource_group_name: str
+ #:param server_name: Name of the server.
+ #:type server_name: str
+ #:param file_name: Space separated list of log filenames on the server to download.
+ #:type filename_contains: str
from six.moves.urllib.request import urlretrieve # pylint: disable=import-error
# list all files
@@ -123,22 +111,19 @@ def _download_log_files(
def _list_log_files_with_filter(client, resource_group_name, server_name, filename_contains=None,
file_last_written=None, max_file_size=None):
- """List all the log files of a given server.
-
- :param resource_group_name: The name of the resource group that
- contains the resource. You can obtain this value from the Azure
- Resource Manager API or the portal.
- :type resource_group_name: str
- :param server_name: The name of the server.
- :type server_name: str
- :param filename_contains: The pattern that file name should match.
- :type filename_contains: str
- :param file_last_written: Interger in hours to indicate file last modify time,
- default value is 72.
- :type file_last_written: int
- :param max_file_size: The file size limitation to filter files.
- :type max_file_size: int
- """
+ #:param resource_group_name: The name of the resource group that
+ #contains the resource. You can obtain this value from the Azure
+ #Resource Manager API or the portal.
+ #:type resource_group_name: str
+ #:param server_name: The name of the server.
+ #:type server_name: str
+ #:param filename_contains: The pattern that file name should match.
+ #:type filename_contains: str
+ #:param file_last_written: Interger in hours to indicate file last modify time,
+ #default value is 72.
+ #:type file_last_written: int
+ #:param max_file_size: The file size limitation to filter files.
+ #:type max_file_size: int
import re
from datetime import datetime, timedelta
from dateutil.tz import tzutc
@@ -166,13 +151,7 @@ def _list_log_files_with_filter(client, resource_group_name, server_name, filena
# Custom funcs for list servers #
-def _server_list_custom_func(
- client,
- resource_group_name=None):
- """
- List servers by resource group name or subscription
- """
-
+def _server_list_custom_func(client, resource_group_name=None):
if resource_group_name:
return client.list_by_resource_group(resource_group_name)
return client.list()
diff --git a/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/tests/__init__.py b/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/tests/__init__.py
deleted file mode 100644
index 34913fb394d..00000000000
--- a/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/tests/__init__.py
+++ /dev/null
@@ -1,4 +0,0 @@
-# --------------------------------------------------------------------------------------------
-# Copyright (c) Microsoft Corporation. All rights reserved.
-# Licensed under the MIT License. See License.txt in the project root for license information.
-# --------------------------------------------------------------------------------------------
diff --git a/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/tests/recordings/latest/test_mysql_proxy_resources_mgmt.yaml b/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/tests/recordings/latest/test_mysql_proxy_resources_mgmt.yaml
deleted file mode 100644
index 6f4530bdc73..00000000000
--- a/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/tests/recordings/latest/test_mysql_proxy_resources_mgmt.yaml
+++ /dev/null
@@ -1,1316 +0,0 @@
-interactions:
-- request:
- body: '{"tags": {"use": "az-test"}, "location": "westus"}'
- 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: ['Fri, 19 May 2017 15:44:47 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: '{"properties": {"createMode": "Default", "administratorLogin": "cloudsa",
- "administratorLoginPassword": "SecretPassword123"}, "location": "westeurope"}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server create]
- Connection: [keep-alive]
- Content-Length: ['151']
- 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpsertElasticServer","startTime":"2017-05-19T15:44:49.133Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/azureAsyncOperation/e4d3b085-9cef-4a42-956e-3e1d30550c7c?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['74']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:44:49 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/operationResults/e4d3b085-9cef-4a42-956e-3e1d30550c7c?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['60']
- server: [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: [mysql server 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 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/e4d3b085-9cef-4a42-956e-3e1d30550c7c?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"e4d3b085-9cef-4a42-956e-3e1d30550c7c","status":"InProgress","startTime":"2017-05-19T15:44:49.133Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:45: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]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server 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 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/e4d3b085-9cef-4a42-956e-3e1d30550c7c?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"e4d3b085-9cef-4a42-956e-3e1d30550c7c","status":"InProgress","startTime":"2017-05-19T15:44:49.133Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:46:24 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server 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 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/e4d3b085-9cef-4a42-956e-3e1d30550c7c?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"e4d3b085-9cef-4a42-956e-3e1d30550c7c","status":"Succeeded","startTime":"2017-05-19T15:44:49.133Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['107']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:46:55 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002","name":"azuredbclitest000002","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000002.mysql.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['698']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:46:56 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- transfer-encoding: [chunked]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: '{"properties": {"startIpAddress": "0.0.0.0", "endIpAddress": "255.255.255.255"}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server firewall-rule create]
- Connection: [keep-alive]
- Content-Length: ['80']
- 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule1?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpsertElasticServerFirewallRules","startTime":"2017-05-19T15:46:57.103Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/azureAsyncOperation/f5bfc9c5-944a-4f3d-9afb-a2a499795149?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['87']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:46:58 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/operationResults/f5bfc9c5-944a-4f3d-9afb-a2a499795149?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['15']
- server: [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: [mysql server firewall-rule 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 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/f5bfc9c5-944a-4f3d-9afb-a2a499795149?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"f5bfc9c5-944a-4f3d-9afb-a2a499795149","status":"Succeeded","startTime":"2017-05-19T15:46:57.103Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['107']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:47:14 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server firewall-rule 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule1?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule1","name":"rule1","type":"Microsoft.DBforMySQL/servers/firewallRules","properties":{"startIpAddress":"0.0.0.0","endIpAddress":"255.255.255.255"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['416']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:47:15 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server firewall-rule 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule1?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule1","name":"rule1","type":"Microsoft.DBforMySQL/servers/firewallRules","properties":{"startIpAddress":"0.0.0.0","endIpAddress":"255.255.255.255"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['416']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:47:17 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server firewall-rule update]
- 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule1?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule1","name":"rule1","type":"Microsoft.DBforMySQL/servers/firewallRules","properties":{"startIpAddress":"0.0.0.0","endIpAddress":"255.255.255.255"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['416']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:47:18 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- transfer-encoding: [chunked]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: '{"properties": {"startIpAddress": "123.123.123.123", "endIpAddress": "123.123.123.124"}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server firewall-rule update]
- Connection: [keep-alive]
- Content-Length: ['88']
- 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule1?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpsertElasticServerFirewallRules","startTime":"2017-05-19T15:47:17.803Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/azureAsyncOperation/a82aa73b-ed5f-413f-a6c8-a7c8bf8b0ade?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['87']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:47:18 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/operationResults/a82aa73b-ed5f-413f-a6c8-a7c8bf8b0ade?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['15']
- server: [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: [mysql server firewall-rule update]
- 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 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/a82aa73b-ed5f-413f-a6c8-a7c8bf8b0ade?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"a82aa73b-ed5f-413f-a6c8-a7c8bf8b0ade","status":"Succeeded","startTime":"2017-05-19T15:47:17.803Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['107']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:47:34 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server firewall-rule update]
- 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule1?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule1","name":"rule1","type":"Microsoft.DBforMySQL/servers/firewallRules","properties":{"startIpAddress":"123.123.123.123","endIpAddress":"123.123.123.124"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['424']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:47: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]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server firewall-rule update]
- 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule1?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule1","name":"rule1","type":"Microsoft.DBforMySQL/servers/firewallRules","properties":{"startIpAddress":"123.123.123.123","endIpAddress":"123.123.123.124"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['424']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:47:37 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- transfer-encoding: [chunked]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: '{"properties": {"startIpAddress": "0.0.0.0", "endIpAddress": "123.123.123.124"}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server firewall-rule update]
- Connection: [keep-alive]
- Content-Length: ['80']
- 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule1?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpsertElasticServerFirewallRules","startTime":"2017-05-19T15:47:40.71Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/azureAsyncOperation/c89f0409-29c0-4708-acf7-f0519805c93e?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['86']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:47:38 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/operationResults/c89f0409-29c0-4708-acf7-f0519805c93e?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['15']
- server: [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: [mysql server firewall-rule update]
- 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 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/c89f0409-29c0-4708-acf7-f0519805c93e?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"c89f0409-29c0-4708-acf7-f0519805c93e","status":"Succeeded","startTime":"2017-05-19T15:47:40.71Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['106']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:47:54 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server firewall-rule update]
- 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule1?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule1","name":"rule1","type":"Microsoft.DBforMySQL/servers/firewallRules","properties":{"startIpAddress":"0.0.0.0","endIpAddress":"123.123.123.124"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['416']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:47:56 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server firewall-rule update]
- 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule1?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule1","name":"rule1","type":"Microsoft.DBforMySQL/servers/firewallRules","properties":{"startIpAddress":"0.0.0.0","endIpAddress":"123.123.123.124"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['416']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:47: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]
- status: {code: 200, message: OK}
-- request:
- body: '{"properties": {"startIpAddress": "0.0.0.0", "endIpAddress": "255.255.255.255"}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server firewall-rule update]
- Connection: [keep-alive]
- Content-Length: ['80']
- 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule1?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpsertElasticServerFirewallRules","startTime":"2017-05-19T15:47:57.31Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/azureAsyncOperation/d76ebc90-899f-4575-8080-7cd9136e08bc?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['86']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:47:58 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/operationResults/d76ebc90-899f-4575-8080-7cd9136e08bc?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['15']
- server: [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: [mysql server firewall-rule update]
- 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 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/d76ebc90-899f-4575-8080-7cd9136e08bc?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"d76ebc90-899f-4575-8080-7cd9136e08bc","status":"Succeeded","startTime":"2017-05-19T15:47:57.31Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['106']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:48:14 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server firewall-rule update]
- 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule1?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule1","name":"rule1","type":"Microsoft.DBforMySQL/servers/firewallRules","properties":{"startIpAddress":"0.0.0.0","endIpAddress":"255.255.255.255"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['416']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:48:15 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- transfer-encoding: [chunked]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: '{"properties": {"startIpAddress": "123.123.123.123", "endIpAddress": "123.123.123.124"}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server firewall-rule create]
- Connection: [keep-alive]
- Content-Length: ['88']
- 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule2?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpsertElasticServerFirewallRules","startTime":"2017-05-19T15:48:17.467Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/azureAsyncOperation/3e8aa870-16af-4e43-8a3c-7d6153422013?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['87']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:48:17 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/operationResults/3e8aa870-16af-4e43-8a3c-7d6153422013?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['15']
- server: [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: [mysql server firewall-rule 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 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e8aa870-16af-4e43-8a3c-7d6153422013?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e8aa870-16af-4e43-8a3c-7d6153422013","status":"Succeeded","startTime":"2017-05-19T15:48:17.467Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['107']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:48:34 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server firewall-rule 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule2?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule2","name":"rule2","type":"Microsoft.DBforMySQL/servers/firewallRules","properties":{"startIpAddress":"123.123.123.123","endIpAddress":"123.123.123.124"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['424']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:48: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]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server firewall-rule 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/firewallRules?api-version=2017-04-30-preview
- response:
- body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule1","name":"rule1","type":"Microsoft.DBforMySQL/servers/firewallRules","properties":{"startIpAddress":"0.0.0.0","endIpAddress":"255.255.255.255"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule2","name":"rule2","type":"Microsoft.DBforMySQL/servers/firewallRules","properties":{"startIpAddress":"123.123.123.123","endIpAddress":"123.123.123.124"}}]}'}
- headers:
- cache-control: [no-cache]
- content-length: ['853']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:48:37 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server firewall-rule 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule1?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"DropElasticServerFirewallRule","startTime":"2017-05-19T15:48:41.007Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/azureAsyncOperation/a758afef-113d-4022-bcd6-6d6013a00e2d?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['84']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:48:38 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/operationResults/a758afef-113d-4022-bcd6-6d6013a00e2d?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['15']
- server: [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: [mysql server firewall-rule 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 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/a758afef-113d-4022-bcd6-6d6013a00e2d?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"a758afef-113d-4022-bcd6-6d6013a00e2d","status":"Succeeded","startTime":"2017-05-19T15:48:41.007Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['107']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:48:55 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server firewall-rule 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/firewallRules?api-version=2017-04-30-preview
- response:
- body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule2","name":"rule2","type":"Microsoft.DBforMySQL/servers/firewallRules","properties":{"startIpAddress":"123.123.123.123","endIpAddress":"123.123.123.124"}}]}'}
- headers:
- cache-control: [no-cache]
- content-length: ['436']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:48:57 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server firewall-rule 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/firewallRules/rule2?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"DropElasticServerFirewallRule","startTime":"2017-05-19T15:48:57.127Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/azureAsyncOperation/b15e3f34-dcb9-415a-9bfa-da0715879f29?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['84']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:48:57 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/operationResults/b15e3f34-dcb9-415a-9bfa-da0715879f29?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['15']
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1197']
- status: {code: 202, message: Accepted}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server firewall-rule 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 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/b15e3f34-dcb9-415a-9bfa-da0715879f29?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"b15e3f34-dcb9-415a-9bfa-da0715879f29","status":"Succeeded","startTime":"2017-05-19T15:48:57.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['107']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:49:14 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server firewall-rule 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/firewallRules?api-version=2017-04-30-preview
- response:
- body: {string: '{"value":[]}'}
- headers:
- cache-control: [no-cache]
- content-length: ['12']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:49:15 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql db 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/databases?api-version=2017-04-30-preview
- response:
- body: {string: '{"value":[]}'}
- headers:
- cache-control: [no-cache]
- content-length: ['12']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:49:17 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server configuration 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/configurations/log_slow_admin_statements?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/configurations/log_slow_admin_statements","name":"log_slow_admin_statements","type":"Microsoft.DBforMySQL/servers/configurations","properties":{"value":"OFF","description":"Include
- slow administrative statements in the statements written to the slow query
- log.","defaultValue":"OFF","dataType":"Enumeration","allowedValues":"ON,OFF","source":"system-default"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['613']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:49:19 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- transfer-encoding: [chunked]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: '{"properties": {"value": "ON"}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server configuration set]
- Connection: [keep-alive]
- Content-Length: ['31']
- 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/configurations/log_slow_admin_statements?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpdateElasticServerConfig","startTime":"2017-05-19T15:49:20.03Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/azureAsyncOperation/9985e0ac-b0fd-4b09-a557-79f2b8e99f43?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['79']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:49:20 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/operationResults/9985e0ac-b0fd-4b09-a557-79f2b8e99f43?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['15']
- server: [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: [mysql server configuration 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 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/9985e0ac-b0fd-4b09-a557-79f2b8e99f43?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"9985e0ac-b0fd-4b09-a557-79f2b8e99f43","status":"Succeeded","startTime":"2017-05-19T15:49:20.03Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['106']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:49:36 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server configuration 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/configurations/log_slow_admin_statements?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/configurations/log_slow_admin_statements","name":"log_slow_admin_statements","type":"Microsoft.DBforMySQL/servers/configurations","properties":{"value":"ON","description":"Include
- slow administrative statements in the statements written to the slow query
- log.","defaultValue":"OFF","dataType":"Enumeration","allowedValues":"ON,OFF","source":"user-override"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['611']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:49:37 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- transfer-encoding: [chunked]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: '{"properties": {"source": "system-default"}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server configuration set]
- Connection: [keep-alive]
- Content-Length: ['44']
- 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/configurations/log_slow_admin_statements?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpdateElasticServerConfig","startTime":"2017-05-19T15:49:40.34Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/azureAsyncOperation/1192c5e4-85ef-46a9-8269-97d2c1444176?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['79']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:49:39 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/operationResults/1192c5e4-85ef-46a9-8269-97d2c1444176?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['15']
- server: [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: [mysql server configuration 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 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/1192c5e4-85ef-46a9-8269-97d2c1444176?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"1192c5e4-85ef-46a9-8269-97d2c1444176","status":"Succeeded","startTime":"2017-05-19T15:49:40.34Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['106']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:49:56 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server configuration 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/configurations/log_slow_admin_statements?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/configurations/log_slow_admin_statements","name":"log_slow_admin_statements","type":"Microsoft.DBforMySQL/servers/configurations","properties":{"value":"OFF","description":"Include
- slow administrative statements in the statements written to the slow query
- log.","defaultValue":"OFF","dataType":"Enumeration","allowedValues":"ON,OFF","source":"system-default"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['613']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:49:57 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server configuration 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/configurations?api-version=2017-04-30-preview
- response:
- body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/configurations/div_precision_increment","name":"div_precision_increment","type":"Microsoft.DBforMySQL/servers/configurations","properties":{"value":"4","description":"Number
- of digits by which to increase the scale of the result of division operations.","defaultValue":"4","dataType":"Integer","allowedValues":"0-30","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/configurations/group_concat_max_len","name":"group_concat_max_len","type":"Microsoft.DBforMySQL/servers/configurations","properties":{"value":"1024","description":"Maximum
- allowed result length in bytes for the GROUP_CONCAT().","defaultValue":"1024","dataType":"Integer","allowedValues":"4-16777216","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/configurations/innodb_adaptive_hash_index","name":"innodb_adaptive_hash_index","type":"Microsoft.DBforMySQL/servers/configurations","properties":{"value":"ON","description":"Whether
- innodb adaptive hash indexes are enabled or disabled.","defaultValue":"ON","dataType":"Enumeration","allowedValues":"ON,OFF","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/configurations/innodb_lock_wait_timeout","name":"innodb_lock_wait_timeout","type":"Microsoft.DBforMySQL/servers/configurations","properties":{"value":"50","description":"The
- length of time in seconds an InnoDB transaction waits for a row lock before
- giving up.","defaultValue":"50","dataType":"Integer","allowedValues":"1-3600","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/configurations/interactive_timeout","name":"interactive_timeout","type":"Microsoft.DBforMySQL/servers/configurations","properties":{"value":"1800","description":"Number
- of seconds the server waits for activity on an interactive connection before
- closing it.","defaultValue":"1800","dataType":"Integer","allowedValues":"10-1800","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/configurations/log_queries_not_using_indexes","name":"log_queries_not_using_indexes","type":"Microsoft.DBforMySQL/servers/configurations","properties":{"value":"OFF","description":"Logs
- queries that are expected to retrieve all rows to slow query log.","defaultValue":"OFF","dataType":"Enumeration","allowedValues":"ON,OFF","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/configurations/log_throttle_queries_not_using_indexes","name":"log_throttle_queries_not_using_indexes","type":"Microsoft.DBforMySQL/servers/configurations","properties":{"value":"0","description":"Limits
- the number of such queries per minute that can be written to the slow query
- log.","defaultValue":"0","dataType":"Integer","allowedValues":"0-4294967295","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/configurations/log_slow_admin_statements","name":"log_slow_admin_statements","type":"Microsoft.DBforMySQL/servers/configurations","properties":{"value":"OFF","description":"Include
- slow administrative statements in the statements written to the slow query
- log.","defaultValue":"OFF","dataType":"Enumeration","allowedValues":"ON,OFF","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/configurations/log_bin_trust_function_creators","name":"log_bin_trust_function_creators","type":"Microsoft.DBforMySQL/servers/configurations","properties":{"value":"OFF","description":"This
- variable applies when binary logging is enabled. It controls whether stored
- function creators can be trusted not to create stored functions that will
- cause unsafe events to be written to the binary log.","defaultValue":"OFF","dataType":"Enumeration","allowedValues":"ON,OFF","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/configurations/long_query_time","name":"long_query_time","type":"Microsoft.DBforMySQL/servers/configurations","properties":{"value":"10","description":"If
- a query takes longer than this many seconds, the server increments the Slow_queries
- status variable.","defaultValue":"10","dataType":"Numeric","allowedValues":"1-1E+100","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/configurations/min_examined_row_limit","name":"min_examined_row_limit","type":"Microsoft.DBforMySQL/servers/configurations","properties":{"value":"0","description":"Can
- be used to cause queries which examine fewer than the stated number of rows
- not to be logged.","defaultValue":"0","dataType":"Integer","allowedValues":"0-18446744073709551615","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/configurations/slow_query_log","name":"slow_query_log","type":"Microsoft.DBforMySQL/servers/configurations","properties":{"value":"OFF","description":"Enable
- or disable the slow query log","defaultValue":"OFF","dataType":"Enumeration","allowedValues":"ON,OFF","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/configurations/sql_mode","name":"sql_mode","type":"Microsoft.DBforMySQL/servers/configurations","properties":{"value":"","description":"The
- current server SQL mode.","defaultValue":"","dataType":"Set","allowedValues":",ALLOW_INVALID_DATES,ANSI_QUOTES,ERROR_FOR_DIVISION_BY_ZERO,HIGH_NOT_PRECEDENCE,IGNORE_SPACE,NO_AUTO_CREATE_USER,NO_AUTO_VALUE_ON_ZERO,NO_BACKSLASH_ESCAPES,NO_DIR_IN_CREATE,NO_ENGINE_SUBSTITUTION,NO_FIELD_OPTIONS,NO_KEY_OPTIONS,NO_TABLE_OPTIONS,NO_UNSIGNED_SUBTRACTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,ONLY_FULL_GROUP_BY,PAD_CHAR_TO_FULL_LENGTH,PIPES_AS_CONCAT,REAL_AS_FLOAT,STRICT_ALL_TABLES,STRICT_TRANS_TABLES","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/configurations/wait_timeout","name":"wait_timeout","type":"Microsoft.DBforMySQL/servers/configurations","properties":{"value":"120","description":"The
- number of seconds the server waits for activity on a noninteractive connection
- before closing it.","defaultValue":"120","dataType":"Integer","allowedValues":"60-240","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/configurations/server_id","name":"server_id","type":"Microsoft.DBforMySQL/servers/configurations","properties":{"value":"4205965256","description":"The
- server ID, used in replication to give each master and slave a unique identity.","defaultValue":"1000","dataType":"Integer","allowedValues":"1000-4294967295","source":"user-override"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/configurations/max_allowed_packet","name":"max_allowed_packet","type":"Microsoft.DBforMySQL/servers/configurations","properties":{"value":"536870912","description":"The
- maximum size of one packet or any generated/intermediate string, or any parameter
- sent by the mysql_stmt_send_long_data() C API function.","defaultValue":"536870912","dataType":"Integer","allowedValues":"1024-1073741824","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/configurations/slave_net_timeout","name":"slave_net_timeout","type":"Microsoft.DBforMySQL/servers/configurations","properties":{"value":"60","description":"The
- number of seconds to wait for more data from the master before the slave considers
- the connection broken, aborts the read, and tries to reconnect.","defaultValue":"60","dataType":"Integer","allowedValues":"30-3600","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/configurations/time_zone","name":"time_zone","type":"Microsoft.DBforMySQL/servers/configurations","properties":{"value":"SYSTEM","description":"The
- server time zone","defaultValue":"SYSTEM","dataType":"String","allowedValues":"[+|-][0]{0,1}[0-9]:[0-5][0-9]|[+|-][1][0-2]:[0-5][0-9]|SYSTEM","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/configurations/character_set_server","name":"character_set_server","type":"Microsoft.DBforMySQL/servers/configurations","properties":{"value":"latin1","description":"Use
- charset_name as the default server character set.","defaultValue":"latin1","dataType":"Enumeration","allowedValues":"BIG5,DEC8,CP850,HP8,KOI8R,LATIN1,LATIN2,SWE7,ASCII,UJIS,SJIS,HEBREW,TIS620,EUCKR,KOI8U,GB2312,GREEK,CP1250,GBK,LATIN5,ARMSCII8,UTF8,UCS2,CP866,KEYBCS2,MACCE,MACROMAN,CP852,LATIN7,UTF8MB4,CP1251,UTF16,CP1256,CP1257,UTF32,BINARY,GEOSTD8,CP932,EUCJPMS","source":"system-default"}}]}'}
- headers:
- cache-control: [no-cache]
- content-length: ['12185']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:49: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]
- status: {code: 200, message: OK}
-- request:
- body: '{"properties": {"value": "ON"}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server configuration set]
- Connection: [keep-alive]
- Content-Length: ['31']
- 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/configurations/slow_query_log?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpdateElasticServerConfig","startTime":"2017-05-19T15:49:59.697Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/azureAsyncOperation/0e89f550-f169-40df-8dd8-f8aa8d410467?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['80']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:49:59 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/operationResults/0e89f550-f169-40df-8dd8-f8aa8d410467?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['15']
- server: [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: [mysql server configuration 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 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/0e89f550-f169-40df-8dd8-f8aa8d410467?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"0e89f550-f169-40df-8dd8-f8aa8d410467","status":"Succeeded","startTime":"2017-05-19T15:49:59.697Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['107']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:50:16 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server configuration 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/configurations/slow_query_log?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/configurations/slow_query_log","name":"slow_query_log","type":"Microsoft.DBforMySQL/servers/configurations","properties":{"value":"ON","description":"Enable
- or disable the slow query log","defaultValue":"OFF","dataType":"Enumeration","allowedValues":"ON,OFF","source":"user-override"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['538']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:50:17 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server-logs 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 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000002/logFiles?api-version=2017-04-30-preview
- response:
- body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000002/logFiles/mysql-slow-azuredbclitest000002-2017051915.log","name":"mysql-slow-azuredbclitest000002-2017051915.log","type":"Microsoft.DBforMySQL/servers/logFiles","properties":{"name":"mysql-slow-azuredbclitest000002-2017051915.log","sizeInKB":1,"createdTime":"0001-01-01T00:00:00+00:00","lastModifiedTime":"2017-05-19T15:50:00+00:00","type":"slowlog","url":"https://wasd2prodweu1afse1.file.core.windows.net/3893aa42feb64204943723fe2bb3153c/serverlogs/mysql-slow-azuredbclitest000002-2017051915.log?sv=2015-04-05&sr=f&sig=AEVFSGNY13DyV3VjA53ouiaxBJTQrhJL%2F6izPN%2B3mGA%3D&se=2017-05-19T16%3A50%3A19Z&sp=r"}}]}'}
- headers:
- cache-control: [no-cache]
- content-length: ['1042']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:50:18 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- 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: ['Fri, 19 May 2017 15:50:19 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdNUkhBUDVGUEtCQ1dBQjRYQlY3VldWRjRZNFdCNE1WTERHRHxBNDg1RDM5NkYzNUI5REYwLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?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-rdbms/azure/cli/command_modules/rdbms/tests/recordings/latest/test_mysql_server_mgmt.yaml b/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/tests/recordings/latest/test_mysql_server_mgmt.yaml
deleted file mode 100644
index 3c1f16133b9..00000000000
--- a/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/tests/recordings/latest/test_mysql_server_mgmt.yaml
+++ /dev/null
@@ -1,1871 +0,0 @@
-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.6.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: ['Mon, 22 May 2017 04:47:55 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1196']
- status: {code: 201, message: Created}
-- 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.6.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.rg000002?api-version=2017-05-10
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002","name":"clitest.rg000002","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: ['Mon, 22 May 2017 04:47:57 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: '{"sku": {"name": "SkuName", "tier": "Basic", "capacity": 100}, "properties":
- {"createMode": "Default", "administratorLogin": "cloudsa", "administratorLoginPassword":
- "SecretPassword123"}, "location": "westeurope", "tags": {"key": "1"}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server create]
- Connection: [keep-alive]
- Content-Length: ['235']
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpsertElasticServer","startTime":"2017-05-22T04:48:03.587Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/azureAsyncOperation/42be40b6-12a7-4782-ab36-0aeff8b8adce?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['74']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 04:48:01 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/operationResults/42be40b6-12a7-4782-ab36-0aeff8b8adce?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['60']
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1195']
- status: {code: 202, message: Accepted}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/42be40b6-12a7-4782-ab36-0aeff8b8adce?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"42be40b6-12a7-4782-ab36-0aeff8b8adce","status":"InProgress","startTime":"2017-05-22T04:48:03.587Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 04:49:04 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/42be40b6-12a7-4782-ab36-0aeff8b8adce?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"42be40b6-12a7-4782-ab36-0aeff8b8adce","status":"InProgress","startTime":"2017-05-22T04:48:03.587Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 04:49:36 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/42be40b6-12a7-4782-ab36-0aeff8b8adce?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"42be40b6-12a7-4782-ab36-0aeff8b8adce","status":"Succeeded","startTime":"2017-05-22T04:48:03.587Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['107']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 04:50:09 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"tags":{"key":"1"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.mysql.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['717']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 04:50: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]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server show]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"tags":{"key":"1"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.mysql.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['717']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 04:50:13 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"tags":{"key":"1"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.mysql.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['717']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 04:50:16 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- transfer-encoding: [chunked]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: '{"properties": {"administratorLoginPassword": "SecretPassword456", "sslEnforcement":
- "Disabled"}, "tags": {"key": "2"}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server update]
- Connection: [keep-alive]
- Content-Length: ['119']
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpsertElasticServer","startTime":"2017-05-22T04:50:21.383Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/azureAsyncOperation/1e26730b-2804-463b-b422-057592efc242?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['74']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 04:50:19 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/operationResults/1e26730b-2804-463b-b422-057592efc242?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['60']
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1193']
- status: {code: 202, message: Accepted}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/1e26730b-2804-463b-b422-057592efc242?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"1e26730b-2804-463b-b422-057592efc242","status":"Succeeded","startTime":"2017-05-22T04:50:21.383Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['107']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 04:51:22 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"tags":{"key":"2"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.mysql.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['718']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 04:51:23 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"tags":{"key":"2"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.mysql.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['718']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 04:51:25 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- transfer-encoding: [chunked]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: '{"sku": {"name": "MYSQLB100", "tier": "Basic", "capacity": 50}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server update]
- Connection: [keep-alive]
- Content-Length: ['63']
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpsertElasticServer","startTime":"2017-05-22T04:51:27.64Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/azureAsyncOperation/f68eebc3-2f06-4bd6-9ba7-24342e744bc5?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['73']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 04:51:28 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/operationResults/f68eebc3-2f06-4bd6-9ba7-24342e744bc5?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['60']
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1194']
- status: {code: 202, message: Accepted}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/f68eebc3-2f06-4bd6-9ba7-24342e744bc5?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"f68eebc3-2f06-4bd6-9ba7-24342e744bc5","status":"Succeeded","startTime":"2017-05-22T04:51:27.64Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['106']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 04:52:30 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"tags":{"key":"2"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.mysql.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['716']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 04:52:32 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server show]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"tags":{"key":"2"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.mysql.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['716']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 04:52:34 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"tags":{"key":"2"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.mysql.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['716']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 04:52:36 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- transfer-encoding: [chunked]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: '{"sku": {"name": "MYSQLB50", "tier": "Basic", "capacity": 100}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server update]
- Connection: [keep-alive]
- Content-Length: ['63']
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpsertElasticServer","startTime":"2017-05-22T04:52:39.083Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/azureAsyncOperation/f974af51-d562-4b5e-a49c-d415676b5ac3?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['74']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 04:52:39 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/operationResults/f974af51-d562-4b5e-a49c-d415676b5ac3?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['60']
- server: [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: [mysql server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/f974af51-d562-4b5e-a49c-d415676b5ac3?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"f974af51-d562-4b5e-a49c-d415676b5ac3","status":"Succeeded","startTime":"2017-05-22T04:52:39.083Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['107']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 04:53:41 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"tags":{"key":"2"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.mysql.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['718']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 04:53:43 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"tags":{"key":"2"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.mysql.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['718']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 04:53:46 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- transfer-encoding: [chunked]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: '{"properties": {"sslEnforcement": "Enabled"}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server update]
- Connection: [keep-alive]
- Content-Length: ['45']
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpsertElasticServer","startTime":"2017-05-22T04:53:47.873Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/azureAsyncOperation/e37fb05c-c184-458c-a24e-47c96651d3d0?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['74']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 04:53:48 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/operationResults/e37fb05c-c184-458c-a24e-47c96651d3d0?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['60']
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1193']
- status: {code: 202, message: Accepted}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/e37fb05c-c184-458c-a24e-47c96651d3d0?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"e37fb05c-c184-458c-a24e-47c96651d3d0","status":"Succeeded","startTime":"2017-05-22T04:53:47.873Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['107']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 04:54:50 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"tags":{"key":"2"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.mysql.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['717']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 04:54:52 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"tags":{"key":"2"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.mysql.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['717']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 04:54:55 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- transfer-encoding: [chunked]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: '{"tags": {"key": "3"}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server update]
- Connection: [keep-alive]
- Content-Length: ['22']
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpsertElasticServer","startTime":"2017-05-22T04:54:56.803Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/azureAsyncOperation/f943c760-ae04-4b75-a5cd-419b76615e1f?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['74']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 04:54:57 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/operationResults/f943c760-ae04-4b75-a5cd-419b76615e1f?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['60']
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1192']
- status: {code: 202, message: Accepted}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/f943c760-ae04-4b75-a5cd-419b76615e1f?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"f943c760-ae04-4b75-a5cd-419b76615e1f","status":"Succeeded","startTime":"2017-05-22T04:54:56.803Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['107']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 04:56:00 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"tags":{"key":"3"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.mysql.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['717']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 04:56:01 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"tags":{"key":"3"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.mysql.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['717']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:01:03 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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''b\''{"properties": {"createMode": "PointInTimeRestore", "sourceServerId":
- "/subscriptions/2941a09d-7bcf-42fe-91ca-1765f521c829/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000003",
- "restorePointInTime": "2017-05-22T05:01:02.344444Z"}, "location": "westeurope"}\'''''
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Length: ['398']
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.rg000002/providers/Microsoft.DBforMySQL/servers/azuredbclirestore000004?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"RestoreElasticServer","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['75']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:01:07 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/operationResults/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['10']
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1196']
- status: {code: 202, message: Accepted}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e323811-0885-4e74-88f0-8a72d4c9a846","status":"InProgress","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:01:19 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e323811-0885-4e74-88f0-8a72d4c9a846","status":"InProgress","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:01:50 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e323811-0885-4e74-88f0-8a72d4c9a846","status":"InProgress","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:02:22 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e323811-0885-4e74-88f0-8a72d4c9a846","status":"InProgress","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:02:54 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e323811-0885-4e74-88f0-8a72d4c9a846","status":"InProgress","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:03:26 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e323811-0885-4e74-88f0-8a72d4c9a846","status":"InProgress","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:03: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]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e323811-0885-4e74-88f0-8a72d4c9a846","status":"InProgress","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:04:30 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e323811-0885-4e74-88f0-8a72d4c9a846","status":"InProgress","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:05:02 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e323811-0885-4e74-88f0-8a72d4c9a846","status":"InProgress","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:05:34 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e323811-0885-4e74-88f0-8a72d4c9a846","status":"InProgress","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:06:07 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e323811-0885-4e74-88f0-8a72d4c9a846","status":"InProgress","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:06:39 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e323811-0885-4e74-88f0-8a72d4c9a846","status":"InProgress","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:07:10 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e323811-0885-4e74-88f0-8a72d4c9a846","status":"InProgress","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:07:42 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e323811-0885-4e74-88f0-8a72d4c9a846","status":"InProgress","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:08:14 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e323811-0885-4e74-88f0-8a72d4c9a846","status":"InProgress","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:08:46 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e323811-0885-4e74-88f0-8a72d4c9a846","status":"InProgress","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:09:19 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e323811-0885-4e74-88f0-8a72d4c9a846","status":"InProgress","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:09:50 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e323811-0885-4e74-88f0-8a72d4c9a846","status":"InProgress","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:10:21 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e323811-0885-4e74-88f0-8a72d4c9a846","status":"InProgress","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:10: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]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e323811-0885-4e74-88f0-8a72d4c9a846","status":"InProgress","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:11:25 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e323811-0885-4e74-88f0-8a72d4c9a846","status":"InProgress","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:11:57 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e323811-0885-4e74-88f0-8a72d4c9a846","status":"InProgress","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:12:29 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e323811-0885-4e74-88f0-8a72d4c9a846","status":"InProgress","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:13:00 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e323811-0885-4e74-88f0-8a72d4c9a846","status":"InProgress","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:13:32 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e323811-0885-4e74-88f0-8a72d4c9a846","status":"InProgress","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:14:05 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e323811-0885-4e74-88f0-8a72d4c9a846","status":"InProgress","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:14:37 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/3e323811-0885-4e74-88f0-8a72d4c9a846?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3e323811-0885-4e74-88f0-8a72d4c9a846","status":"Succeeded","startTime":"2017-05-22T05:01:06.127Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['107']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:15:07 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.rg000002/providers/Microsoft.DBforMySQL/servers/azuredbclirestore000004?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.DBforMySQL/servers/azuredbclirestore000004","name":"azuredbclirestore000004","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclirestore000004.mysql.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['698']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:15:09 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server list]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.rg000002/providers/Microsoft.DBforMySQL/servers?api-version=2017-04-30-preview
- response:
- body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.DBforMySQL/servers/azuredbclirestore000004","name":"azuredbclirestore000004","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclirestore000004.mysql.database.azure.com"}}]}'}
- headers:
- cache-control: [no-cache]
- content-length: ['710']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:15:12 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server list]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/servers?api-version=2017-04-30-preview
- response:
- body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fengyun/providers/Microsoft.DBforMySQL/servers/awscomparesmall","name":"awscomparesmall","type":"Microsoft.DBforMySQL/servers","location":"eastasia","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"properties":{"administratorLogin":"fengyuntest","storageMB":51200,"version":"5.7","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"awscomparesmall.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fengyun/providers/Microsoft.DBforMySQL/servers/awscomparemedium","name":"awscomparemedium","type":"Microsoft.DBforMySQL/servers","location":"eastasia","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"properties":{"administratorLogin":"fengyuntest","storageMB":51200,"version":"5.7","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"awscomparemedium.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/haz-group/providers/Microsoft.DBforMySQL/servers/hazstandard56","name":"hazstandard56","type":"Microsoft.DBforMySQL/servers","location":"eastasia","sku":{"name":"MYSQLS200","tier":"Standard","capacity":200},"properties":{"administratorLogin":"mysqlaas","storageMB":128000,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"hazstandard56.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/haz-group/providers/Microsoft.DBforMySQL/servers/hazstandard57","name":"hazstandard57","type":"Microsoft.DBforMySQL/servers","location":"eastasia","sku":{"name":"MYSQLS200","tier":"Standard","capacity":200},"properties":{"administratorLogin":"mysqlaas","storageMB":128000,"version":"5.7","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"hazstandard57.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fengyun/providers/Microsoft.DBforMySQL/servers/awscomparelarge","name":"awscomparelarge","type":"Microsoft.DBforMySQL/servers","location":"eastasia","sku":{"name":"MYSQLS100","tier":"Standard","capacity":100},"properties":{"administratorLogin":"fengyuntest","storageMB":128000,"version":"5.7","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"awscomparelarge.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yiszheng/providers/Microsoft.DBforMySQL/servers/yiszheng","name":"yiszheng","type":"Microsoft.DBforMySQL/servers","location":"japanwest","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"properties":{"administratorLogin":"yuko","storageMB":307200,"version":"5.7","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"yiszheng.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xiangyhurg/providers/Microsoft.DBforMySQL/servers/xiangyhumysql","name":"xiangyhumysql","type":"Microsoft.DBforMySQL/servers","location":"northeurope","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"properties":{"administratorLogin":"xiangyhu","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"xiangyhumysql.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xiangyhurg/providers/Microsoft.DBforMySQL/servers/mysqlcrashtest50-1","name":"mysqlcrashtest50-1","type":"Microsoft.DBforMySQL/servers","location":"northeurope","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"mysqlcrashtest50-1.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xiangyhurg/providers/Microsoft.DBforMySQL/servers/mysqlcrashtest50-2","name":"mysqlcrashtest50-2","type":"Microsoft.DBforMySQL/servers","location":"northeurope","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"mysqlcrashtest50-2.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/OrcasPMResource/providers/Microsoft.DBforMySQL/servers/mysql4doc","name":"mysql4doc","type":"Microsoft.DBforMySQL/servers","location":"northeurope","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"properties":{"administratorLogin":"mysqladmin","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"mysql4doc.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/etlitest/providers/Microsoft.DBforMySQL/servers/slowloglifecycle","name":"slowloglifecycle","type":"Microsoft.DBforMySQL/servers","location":"northeurope","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"slowloglifecycle.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.DBforMySQL/servers/nonotest","name":"nonotest","type":"Microsoft.DBforMySQL/servers","location":"northeurope","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"properties":{"administratorLogin":"nono","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"nonotest.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/etlitest/providers/Microsoft.DBforMySQL/servers/etli-scus-57basic","name":"etli-scus-57basic","type":"Microsoft.DBforMySQL/servers","location":"southcentralus","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"properties":{"administratorLogin":"mysqlaas","storageMB":179200,"version":"5.7","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"etli-scus-57basic.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/etlitest/providers/Microsoft.DBforMySQL/servers/etli-scus-56basic","name":"etli-scus-56basic","type":"Microsoft.DBforMySQL/servers","location":"southcentralus","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"properties":{"administratorLogin":"mysqlaas","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"etli-scus-56basic.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/haz-group/providers/Microsoft.DBforMySQL/servers/hazbasic56","name":"hazbasic56","type":"Microsoft.DBforMySQL/servers","location":"southcentralus","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"properties":{"administratorLogin":"mysqlaas","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"hazbasic56.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/haz-group/providers/Microsoft.DBforMySQL/servers/hazbasic573","name":"hazbasic573","type":"Microsoft.DBforMySQL/servers","location":"southcentralus","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"properties":{"administratorLogin":"mysqlaas","storageMB":51200,"version":"5.7","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"hazbasic573.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestGroup_WestEurope/providers/Microsoft.DBforMySQL/servers/mysqldumptest-56-basic-westeurope","name":"mysqldumptest-56-basic-westeurope","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"tags":{"elasticServer":"1"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"mysqldumptest-56-basic-westeurope.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestGroup_WestEurope/providers/Microsoft.DBforMySQL/servers/mysqlrestoretest-56-basic-westeurope","name":"mysqlrestoretest-56-basic-westeurope","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"tags":{"elasticServer":"1"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"mysqlrestoretest-56-basic-westeurope.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestGroup_WestEurope/providers/Microsoft.DBforMySQL/servers/mysqlfailovertest-56-basic-westeurope","name":"mysqlfailovertest-56-basic-westeurope","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"tags":{"elasticServer":"1"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"mysqlfailovertest-56-basic-westeurope.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestGroup_WestEurope/providers/Microsoft.DBforMySQL/servers/mysqlrestoretest-57-basic-westeurope","name":"mysqlrestoretest-57-basic-westeurope","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"tags":{"elasticServer":"1"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.7","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"mysqlrestoretest-57-basic-westeurope.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestGroup_WestEurope/providers/Microsoft.DBforMySQL/servers/mysqldumptest-56-standard-westeurope","name":"mysqldumptest-56-standard-westeurope","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLS100","tier":"Standard","capacity":100},"tags":{"elasticServer":"1"},"properties":{"administratorLogin":"cloudsa","storageMB":128000,"version":"5.6","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"mysqldumptest-56-standard-westeurope.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestGroup_WestEurope/providers/Microsoft.DBforMySQL/servers/mysqldumptest-57-basic-westeurope","name":"mysqldumptest-57-basic-westeurope","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"tags":{"elasticServer":"1"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.7","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"mysqldumptest-57-basic-westeurope.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestGroup_WestEurope/providers/Microsoft.DBforMySQL/servers/mysqlfailovertest-56-standard-westeurope","name":"mysqlfailovertest-56-standard-westeurope","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLS100","tier":"Standard","capacity":100},"tags":{"elasticServer":"1"},"properties":{"administratorLogin":"cloudsa","storageMB":128000,"version":"5.6","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"mysqlfailovertest-56-standard-westeurope.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestGroup_WestEurope/providers/Microsoft.DBforMySQL/servers/mysqlrestoretest-56-standard-westeurope","name":"mysqlrestoretest-56-standard-westeurope","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLS100","tier":"Standard","capacity":100},"tags":{"elasticServer":"1"},"properties":{"administratorLogin":"cloudsa","storageMB":128000,"version":"5.6","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"mysqlrestoretest-56-standard-westeurope.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestGroup_WestEurope/providers/Microsoft.DBforMySQL/servers/mysqldumptest-57-standard-westeurope","name":"mysqldumptest-57-standard-westeurope","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLS100","tier":"Standard","capacity":100},"tags":{"elasticServer":"1"},"properties":{"administratorLogin":"cloudsa","storageMB":128000,"version":"5.7","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"mysqldumptest-57-standard-westeurope.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestGroup_WestEurope/providers/Microsoft.DBforMySQL/servers/mysqlfailovertest-57-basic-westeurope","name":"mysqlfailovertest-57-basic-westeurope","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"tags":{"elasticServer":"1"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.7","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"mysqlfailovertest-57-basic-westeurope.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestGroup_WestEurope/providers/Microsoft.DBforMySQL/servers/mysqlrestoretest-57-standard-westeurope","name":"mysqlrestoretest-57-standard-westeurope","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLS100","tier":"Standard","capacity":100},"tags":{"elasticServer":"1"},"properties":{"administratorLogin":"cloudsa","storageMB":128000,"version":"5.7","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"mysqlrestoretest-57-standard-westeurope.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestGroup_WestEurope/providers/Microsoft.DBforMySQL/servers/mysqlconfigfailovertest-56-basic-westeurope","name":"mysqlconfigfailovertest-56-basic-westeurope","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"tags":{"elasticServer":"1"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"mysqlconfigfailovertest-56-basic-westeurope.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestGroup_WestEurope/providers/Microsoft.DBforMySQL/servers/mysqlfailovertest-57-standard-westeurope","name":"mysqlfailovertest-57-standard-westeurope","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLS100","tier":"Standard","capacity":100},"tags":{"elasticServer":"1"},"properties":{"administratorLogin":"cloudsa","storageMB":128000,"version":"5.7","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"mysqlfailovertest-57-standard-westeurope.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestGroup_WestEurope/providers/Microsoft.DBforMySQL/servers/mysqlclienttest-56-westeurope","name":"mysqlclienttest-56-westeurope","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"tags":{"elasticServer":"1"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"mysqlclienttest-56-westeurope.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestGroup_WestEurope/providers/Microsoft.DBforMySQL/servers/mysqlclienttest-57-westeurope","name":"mysqlclienttest-57-westeurope","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"tags":{"elasticServer":"1"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.7","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"mysqlclienttest-57-westeurope.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestGroup_WestEurope/providers/Microsoft.DBforMySQL/servers/mysqlconfigfailovertest-57-basic-westeurope","name":"mysqlconfigfailovertest-57-basic-westeurope","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"tags":{"elasticServer":"1"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.7","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"mysqlconfigfailovertest-57-basic-westeurope.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestGroup_WestEurope/providers/Microsoft.DBforMySQL/servers/mysqlconfigfailovertest-56-standard-westeurope","name":"mysqlconfigfailovertest-56-standard-westeurope","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLS100","tier":"Standard","capacity":100},"tags":{"elasticServer":"1"},"properties":{"administratorLogin":"cloudsa","storageMB":128000,"version":"5.6","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"mysqlconfigfailovertest-56-standard-westeurope.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestGroup_WestEurope/providers/Microsoft.DBforMySQL/servers/mysqlconfigfailovertest-57-standard-westeurope","name":"mysqlconfigfailovertest-57-standard-westeurope","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLS100","tier":"Standard","capacity":100},"tags":{"elasticServer":"2"},"properties":{"administratorLogin":"cloudsa","storageMB":128000,"version":"5.7","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"mysqlconfigfailovertest-57-standard-westeurope.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xiangyhurg/providers/Microsoft.DBforMySQL/servers/xiangyhumysqlweu","name":"xiangyhumysqlweu","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLS100","tier":"Standard","capacity":100},"properties":{"administratorLogin":"xiangyhu","storageMB":128000,"version":"5.7","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"xiangyhumysqlweu.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yiszheng/providers/Microsoft.DBforMySQL/servers/yiszheng-test","name":"yiszheng-test","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"properties":{"administratorLogin":"yuko","storageMB":51200,"version":"5.7","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"yiszheng-test.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xiangyhurg/providers/Microsoft.DBforMySQL/servers/xiangyhumysqlweu2","name":"xiangyhumysqlweu2","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"properties":{"administratorLogin":"xiangyhu","storageMB":51200,"version":"5.7","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"xiangyhumysqlweu2.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/howang-group/providers/Microsoft.DBforMySQL/servers/howang57basic","name":"howang57basic","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.7","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"howang57basic.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforMySQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"tags":{"key":"3"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.DBforMySQL/servers/azuredbclirestore000004","name":"azuredbclirestore000004","type":"Microsoft.DBforMySQL/servers","location":"westeurope","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclirestore000004.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/a791tIC/providers/Microsoft.DBforMySQL/servers/portaltest11","name":"portaltest11","type":"Microsoft.DBforMySQL/servers","location":"westus","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"portaltest11.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xiangyhurg/providers/Microsoft.DBforMySQL/servers/test200","name":"test200","type":"Microsoft.DBforMySQL/servers","location":"westus","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"properties":{"administratorLogin":"xiangyhurg","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"test200.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.DBforMySQL/servers/testq","name":"testq","type":"Microsoft.DBforMySQL/servers","location":"westus","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"properties":{"administratorLogin":"libin","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"testq.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.DBforMySQL/servers/webappmysql","name":"webappmysql","type":"Microsoft.DBforMySQL/servers","location":"westus","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"tags":{"displayName":"webappmysql"},"properties":{"administratorLogin":"lilia","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"webappmysql.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGOrcasPMTest/providers/Microsoft.DBforMySQL/servers/orcasmysqlpmtestarmserver","name":"orcasmysqlpmtestarmserver","type":"Microsoft.DBforMySQL/servers","location":"westus","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"properties":{"administratorLogin":"orcaslogin","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"orcasmysqlpmtestarmserver.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.DBforMySQL/servers/bcdmysqlserver","name":"bcdmysqlserver","type":"Microsoft.DBforMySQL/servers","location":"westus","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"properties":{"administratorLogin":"bcduser","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"bcdmysqlserver.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.DBforMySQL/servers/testwordpressmysqlserver","name":"testwordpressmysqlserver","type":"Microsoft.DBforMySQL/servers","location":"westus","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"properties":{"administratorLogin":"wordpressuser","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"testwordpressmysqlserver.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.DBforMySQL/servers/ttwordpressmysqlserver","name":"ttwordpressmysqlserver","type":"Microsoft.DBforMySQL/servers","location":"westus","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"properties":{"administratorLogin":"ttuser","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"ttwordpressmysqlserver.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.DBforMySQL/servers/ggmysqlserver","name":"ggmysqlserver","type":"Microsoft.DBforMySQL/servers","location":"westus","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"properties":{"administratorLogin":"gguser","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"ggmysqlserver.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.DBforMySQL/servers/wordpressmysqlserverdemo","name":"wordpressmysqlserverdemo","type":"Microsoft.DBforMySQL/servers","location":"westus","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"properties":{"administratorLogin":"wpuser","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"wordpressmysqlserverdemo.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.DBforMySQL/servers/wordpressmysqlserverdemo2","name":"wordpressmysqlserverdemo2","type":"Microsoft.DBforMySQL/servers","location":"westus","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"properties":{"administratorLogin":"wpuser","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"wordpressmysqlserverdemo2.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.DBforMySQL/servers/testmysql123","name":"testmysql123","type":"Microsoft.DBforMySQL/servers","location":"westus","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"properties":{"administratorLogin":"testuser","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"testmysql123.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xiangyhurg/providers/Microsoft.DBforMySQL/servers/arewya","name":"arewya","type":"Microsoft.DBforMySQL/servers","location":"westus","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"properties":{"administratorLogin":"adf","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"arewya.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.DBforMySQL/servers/kfc123-mysqldbserver","name":"kfc123-mysqldbserver","type":"Microsoft.DBforMySQL/servers","location":"westus","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"properties":{"administratorLogin":"mysqldbuser","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"kfc123-mysqldbserver.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.DBforMySQL/servers/xxxserver","name":"xxxserver","type":"Microsoft.DBforMySQL/servers","location":"westus","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"properties":{"administratorLogin":"mysqldbuser","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"xxxserver.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup2/providers/Microsoft.DBforMySQL/servers/nonotest2","name":"nonotest2","type":"Microsoft.DBforMySQL/servers","location":"westus","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"properties":{"administratorLogin":"nono","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"nonotest2.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroup1/providers/Microsoft.DBforMySQL/servers/nonotest3","name":"nonotest3","type":"Microsoft.DBforMySQL/servers","location":"westus","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"properties":{"administratorLogin":"nono","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"nonotest3.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/OrcasPMResource/providers/Microsoft.DBforMySQL/servers/mitmysql2","name":"mitmysql2","type":"Microsoft.DBforMySQL/servers","location":"westus","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"properties":{"administratorLogin":"mitmysql2login2","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"mitmysql2.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.DBforMySQL/servers/revertmysqlserver","name":"revertmysqlserver","type":"Microsoft.DBforMySQL/servers","location":"westus","sku":{"name":"MYSQLB100","tier":"Basic","capacity":100},"properties":{"administratorLogin":"revertuser","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"revertmysqlserver.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/taotest/providers/Microsoft.DBforMySQL/servers/wpdemo","name":"wpdemo","type":"Microsoft.DBforMySQL/servers","location":"westus","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"properties":{"administratorLogin":"WPAdmin","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"wpdemo.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.DBforMySQL/servers/updatelocationserver","name":"updatelocationserver","type":"Microsoft.DBforMySQL/servers","location":"westus","sku":{"name":"MYSQLB400","tier":"Basic","capacity":400},"properties":{"administratorLogin":"updateuser","storageMB":51200,"version":"5.7","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"updatelocationserver.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/build2017group/providers/Microsoft.DBforMySQL/servers/build2017mysql","name":"build2017mysql","type":"Microsoft.DBforMySQL/servers","location":"westus","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"properties":{"administratorLogin":"orcas","storageMB":51200,"version":"5.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"build2017mysql.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MySQLDemoWeb0510/providers/Microsoft.DBforMySQL/servers/mysqldemoweb0510-mysqldbserver","name":"mysqldemoweb0510-mysqldbserver","type":"Microsoft.DBforMySQL/servers","location":"westus","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"properties":{"administratorLogin":"mysqladmin","storageMB":51200,"version":"5.7","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"mysqldemoweb0510-mysqldbserver.mysql.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jandersinapp/providers/Microsoft.DBforMySQL/servers/jandersmysqldb","name":"jandersmysqldb","type":"Microsoft.DBforMySQL/servers","location":"westus","sku":{"name":"MYSQLB50","tier":"Basic","capacity":50},"properties":{"administratorLogin":"orcas","storageMB":51200,"version":"5.7","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"jandersmysqldb.mysql.database.azure.com"}}]}'}
- headers:
- cache-control: [no-cache]
- content-length: ['33752']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:15:14 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- x-ms-original-request-ids: [8cb6def5-a08b-4fc0-9e48-3a3ee4f0e81a, e337c059-e932-441b-9f76-9cccbc41e7a3,
- ea628631-b779-45a0-bd09-1f7516ae1c1c, 9794ce36-70db-491c-ad93-ac542143f1ae,
- 87a1da98-321d-471c-8371-5f5744f0bcdb, 72f3d4e2-eb6b-4735-b2ee-4221a259a8b2]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server delete]
- Connection: [keep-alive]
- Content-Length: ['0']
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"DropElasticServer","startTime":"2017-05-22T05:15:16.95Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/azureAsyncOperation/ea5bb9ec-c113-48f6-8182-572bd265fe47?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['71']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:15:18 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/operationResults/ea5bb9ec-c113-48f6-8182-572bd265fe47?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['60']
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1192']
- status: {code: 202, message: Accepted}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server delete]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/ea5bb9ec-c113-48f6-8182-572bd265fe47?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"ea5bb9ec-c113-48f6-8182-572bd265fe47","status":"Succeeded","startTime":"2017-05-22T05:15:16.95Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['106']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:16:19 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server delete]
- Connection: [keep-alive]
- Content-Length: ['0']
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.rg000002/providers/Microsoft.DBforMySQL/servers/azuredbclirestore000004?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"DropElasticServer","startTime":"2017-05-22T05:16:24.84Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/azureAsyncOperation/de1b1a08-35a6-4e3c-adc7-b6642f632938?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['71']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:16:22 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/westeurope/operationResults/de1b1a08-35a6-4e3c-adc7-b6642f632938?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['60']
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1191']
- status: {code: 202, message: Accepted}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [mysql server delete]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/locations/westeurope/azureAsyncOperation/de1b1a08-35a6-4e3c-adc7-b6642f632938?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"de1b1a08-35a6-4e3c-adc7-b6642f632938","status":"Succeeded","startTime":"2017-05-22T05:16:24.84Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['106']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:17:25 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [mysql server list]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 mysqlmanagementclient/0.1.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.DBforMySQL/servers?api-version=2017-04-30-preview
- response:
- body: {string: '{"value":[]}'}
- headers:
- cache-control: [no-cache]
- content-length: ['12']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:17:26 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- 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.6.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.rg000002?api-version=2017-05-10
- response:
- body: {string: ''}
- headers:
- cache-control: [no-cache]
- content-length: ['0']
- date: ['Mon, 22 May 2017 05:17:29 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdYRU40SDdFRlFJWFBDRFo2SlVKQ0xENFVRV1RXWE9OTkNLS3w3OTI0OTczNzMyNzkwQkMxLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10']
- pragma: [no-cache]
- retry-after: ['15']
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1194']
- 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.6.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: ['Mon, 22 May 2017 05:17:32 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkc3RUpDTFhXNUlLT0tWWlY3U1dHMzI3VkJZWktPN0VXNk9SRnxGNTgyNThBODcxMjBGQ0UxLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10']
- pragma: [no-cache]
- retry-after: ['15']
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1193']
- status: {code: 202, message: Accepted}
-version: 1
diff --git a/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/tests/recordings/latest/test_postgres_proxy_resources_mgmt.yaml b/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/tests/recordings/latest/test_postgres_proxy_resources_mgmt.yaml
deleted file mode 100644
index ae55388b42c..00000000000
--- a/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/tests/recordings/latest/test_postgres_proxy_resources_mgmt.yaml
+++ /dev/null
@@ -1,1488 +0,0 @@
-interactions:
-- request:
- body: '{"tags": {"use": "az-test"}, "location": "westus"}'
- 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: ['Fri, 19 May 2017 15:50:20 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: '{"properties": {"createMode": "Default", "administratorLogin": "cloudsa",
- "administratorLoginPassword": "SecretPassword123"}, "location": "westeurope"}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server create]
- Connection: [keep-alive]
- Content-Length: ['151']
- 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpsertElasticServer","startTime":"2017-05-19T15:50:25.077Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/3565d058-b99c-433c-9a76-0696e81da06e?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['74']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:50:22 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/operationResults/3565d058-b99c-433c-9a76-0696e81da06e?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['60']
- server: [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: [postgres server 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/3565d058-b99c-433c-9a76-0696e81da06e?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3565d058-b99c-433c-9a76-0696e81da06e","status":"InProgress","startTime":"2017-05-19T15:50:25.077Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:51:24 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/3565d058-b99c-433c-9a76-0696e81da06e?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3565d058-b99c-433c-9a76-0696e81da06e","status":"InProgress","startTime":"2017-05-19T15:50:25.077Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:51:55 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/3565d058-b99c-433c-9a76-0696e81da06e?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3565d058-b99c-433c-9a76-0696e81da06e","status":"InProgress","startTime":"2017-05-19T15:50:25.077Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:52:26 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/3565d058-b99c-433c-9a76-0696e81da06e?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3565d058-b99c-433c-9a76-0696e81da06e","status":"InProgress","startTime":"2017-05-19T15:50:25.077Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:52:56 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/3565d058-b99c-433c-9a76-0696e81da06e?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3565d058-b99c-433c-9a76-0696e81da06e","status":"InProgress","startTime":"2017-05-19T15:50:25.077Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:53:27 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/3565d058-b99c-433c-9a76-0696e81da06e?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3565d058-b99c-433c-9a76-0696e81da06e","status":"InProgress","startTime":"2017-05-19T15:50:25.077Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:53:59 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/3565d058-b99c-433c-9a76-0696e81da06e?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3565d058-b99c-433c-9a76-0696e81da06e","status":"InProgress","startTime":"2017-05-19T15:50:25.077Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:54:30 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/3565d058-b99c-433c-9a76-0696e81da06e?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3565d058-b99c-433c-9a76-0696e81da06e","status":"InProgress","startTime":"2017-05-19T15:50:25.077Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:55:01 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/3565d058-b99c-433c-9a76-0696e81da06e?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3565d058-b99c-433c-9a76-0696e81da06e","status":"Succeeded","startTime":"2017-05-19T15:50:25.077Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['107']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:55:32 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002","name":"azuredbclitest000002","type":"Microsoft.DBforPostgreSQL/servers","location":"westeurope","sku":{"name":"PGSQLB100","tier":"Basic","capacity":100},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"9.5","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000002.postgres.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['711']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:55:34 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- transfer-encoding: [chunked]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: '{"properties": {"startIpAddress": "0.0.0.0", "endIpAddress": "255.255.255.255"}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server firewall-rule create]
- Connection: [keep-alive]
- Content-Length: ['80']
- 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule1?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpsertElasticServerFirewallRules","startTime":"2017-05-19T15:55:35.19Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/71ab2ba0-e0a1-412a-8bb8-d367bdd2dd91?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['86']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:55:36 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/operationResults/71ab2ba0-e0a1-412a-8bb8-d367bdd2dd91?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['15']
- server: [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: [postgres server firewall-rule 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/71ab2ba0-e0a1-412a-8bb8-d367bdd2dd91?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"71ab2ba0-e0a1-412a-8bb8-d367bdd2dd91","status":"Succeeded","startTime":"2017-05-19T15:55:35.19Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['106']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:55:52 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server firewall-rule 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule1?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule1","name":"rule1","type":"Microsoft.DBforPostgreSQL/servers/firewallRules","properties":{"startIpAddress":"0.0.0.0","endIpAddress":"255.255.255.255"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['426']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:55: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]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server firewall-rule 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule1?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule1","name":"rule1","type":"Microsoft.DBforPostgreSQL/servers/firewallRules","properties":{"startIpAddress":"0.0.0.0","endIpAddress":"255.255.255.255"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['426']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:55:55 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server firewall-rule update]
- 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule1?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule1","name":"rule1","type":"Microsoft.DBforPostgreSQL/servers/firewallRules","properties":{"startIpAddress":"0.0.0.0","endIpAddress":"255.255.255.255"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['426']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:55:57 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- transfer-encoding: [chunked]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: '{"properties": {"startIpAddress": "123.123.123.123", "endIpAddress": "123.123.123.124"}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server firewall-rule update]
- Connection: [keep-alive]
- Content-Length: ['88']
- 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule1?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpsertElasticServerFirewallRules","startTime":"2017-05-19T15:55:58.347Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/502ac77c-fdcd-4b83-9f01-516c3e275b63?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['87']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:55:59 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/operationResults/502ac77c-fdcd-4b83-9f01-516c3e275b63?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['15']
- server: [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: [postgres server firewall-rule update]
- 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/502ac77c-fdcd-4b83-9f01-516c3e275b63?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"502ac77c-fdcd-4b83-9f01-516c3e275b63","status":"Succeeded","startTime":"2017-05-19T15:55:58.347Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['107']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:56:15 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server firewall-rule update]
- 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule1?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule1","name":"rule1","type":"Microsoft.DBforPostgreSQL/servers/firewallRules","properties":{"startIpAddress":"123.123.123.123","endIpAddress":"123.123.123.124"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['434']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:56:16 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server firewall-rule update]
- 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule1?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule1","name":"rule1","type":"Microsoft.DBforPostgreSQL/servers/firewallRules","properties":{"startIpAddress":"123.123.123.123","endIpAddress":"123.123.123.124"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['434']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:56:18 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- transfer-encoding: [chunked]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: '{"properties": {"startIpAddress": "0.0.0.0", "endIpAddress": "123.123.123.124"}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server firewall-rule update]
- Connection: [keep-alive]
- Content-Length: ['80']
- 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule1?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpsertElasticServerFirewallRules","startTime":"2017-05-19T15:56:19.967Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/02e511fb-e84f-4594-b21f-2c75a3d4eb9a?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['87']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:56:20 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/operationResults/02e511fb-e84f-4594-b21f-2c75a3d4eb9a?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['15']
- server: [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: [postgres server firewall-rule update]
- 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/02e511fb-e84f-4594-b21f-2c75a3d4eb9a?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"02e511fb-e84f-4594-b21f-2c75a3d4eb9a","status":"Succeeded","startTime":"2017-05-19T15:56:19.967Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['107']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:56:36 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server firewall-rule update]
- 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule1?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule1","name":"rule1","type":"Microsoft.DBforPostgreSQL/servers/firewallRules","properties":{"startIpAddress":"0.0.0.0","endIpAddress":"123.123.123.124"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['426']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:56: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]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server firewall-rule update]
- 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule1?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule1","name":"rule1","type":"Microsoft.DBforPostgreSQL/servers/firewallRules","properties":{"startIpAddress":"0.0.0.0","endIpAddress":"123.123.123.124"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['426']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:56:39 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- transfer-encoding: [chunked]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: '{"properties": {"startIpAddress": "0.0.0.0", "endIpAddress": "255.255.255.255"}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server firewall-rule update]
- Connection: [keep-alive]
- Content-Length: ['80']
- 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule1?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpsertElasticServerFirewallRules","startTime":"2017-05-19T15:56:39.773Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/dc8a7d5c-5978-4b60-893d-da5479537573?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['87']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:56:40 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/operationResults/dc8a7d5c-5978-4b60-893d-da5479537573?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['15']
- server: [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: [postgres server firewall-rule update]
- 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/dc8a7d5c-5978-4b60-893d-da5479537573?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"dc8a7d5c-5978-4b60-893d-da5479537573","status":"Succeeded","startTime":"2017-05-19T15:56:39.773Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['107']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:56:56 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server firewall-rule update]
- 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule1?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule1","name":"rule1","type":"Microsoft.DBforPostgreSQL/servers/firewallRules","properties":{"startIpAddress":"0.0.0.0","endIpAddress":"255.255.255.255"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['426']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:56:57 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- transfer-encoding: [chunked]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: '{"properties": {"startIpAddress": "123.123.123.123", "endIpAddress": "123.123.123.124"}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server firewall-rule create]
- Connection: [keep-alive]
- Content-Length: ['88']
- 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule2?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpsertElasticServerFirewallRules","startTime":"2017-05-19T15:56:58.15Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/853bc924-cc90-4918-b5f0-946d3bca02fc?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['86']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:56:59 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/operationResults/853bc924-cc90-4918-b5f0-946d3bca02fc?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['15']
- server: [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: [postgres server firewall-rule 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/853bc924-cc90-4918-b5f0-946d3bca02fc?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"853bc924-cc90-4918-b5f0-946d3bca02fc","status":"Succeeded","startTime":"2017-05-19T15:56:58.15Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['106']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:57:16 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server firewall-rule 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule2?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule2","name":"rule2","type":"Microsoft.DBforPostgreSQL/servers/firewallRules","properties":{"startIpAddress":"123.123.123.123","endIpAddress":"123.123.123.124"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['434']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:57:16 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server firewall-rule 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules?api-version=2017-04-30-preview
- response:
- body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule1","name":"rule1","type":"Microsoft.DBforPostgreSQL/servers/firewallRules","properties":{"startIpAddress":"0.0.0.0","endIpAddress":"255.255.255.255"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule2","name":"rule2","type":"Microsoft.DBforPostgreSQL/servers/firewallRules","properties":{"startIpAddress":"123.123.123.123","endIpAddress":"123.123.123.124"}}]}'}
- headers:
- cache-control: [no-cache]
- content-length: ['873']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:57:17 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server firewall-rule 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule1?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"DropElasticServerFirewallRule","startTime":"2017-05-19T15:57:19.423Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/2f9cc19f-8ea6-4f0f-a1c7-077cbb81fcf8?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['84']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:57:18 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/operationResults/2f9cc19f-8ea6-4f0f-a1c7-077cbb81fcf8?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['15']
- server: [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: [postgres server firewall-rule 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/2f9cc19f-8ea6-4f0f-a1c7-077cbb81fcf8?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"2f9cc19f-8ea6-4f0f-a1c7-077cbb81fcf8","status":"Succeeded","startTime":"2017-05-19T15:57:19.423Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['107']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:57: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]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server firewall-rule 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules?api-version=2017-04-30-preview
- response:
- body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule2","name":"rule2","type":"Microsoft.DBforPostgreSQL/servers/firewallRules","properties":{"startIpAddress":"123.123.123.123","endIpAddress":"123.123.123.124"}}]}'}
- headers:
- cache-control: [no-cache]
- content-length: ['446']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:57: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]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server firewall-rule 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules/rule2?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"DropElasticServerFirewallRule","startTime":"2017-05-19T15:57:36.99Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/ba372c58-fc96-44f1-b083-bf31bef633d0?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['83']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:57:37 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/operationResults/ba372c58-fc96-44f1-b083-bf31bef633d0?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['15']
- server: [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: [postgres server firewall-rule 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/ba372c58-fc96-44f1-b083-bf31bef633d0?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"ba372c58-fc96-44f1-b083-bf31bef633d0","status":"Succeeded","startTime":"2017-05-19T15:57:36.99Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['106']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:57: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]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server firewall-rule 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002/firewallRules?api-version=2017-04-30-preview
- response:
- body: {string: '{"value":[]}'}
- headers:
- cache-control: [no-cache]
- content-length: ['12']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:57:55 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres db 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002/databases?api-version=2017-04-30-preview
- response:
- body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/databases/postgres","name":"postgres","type":"Microsoft.DBforPostgreSQL/servers/databases","properties":{"charset":"UTF8","collation":"English_United
- States.1252"}}]}'}
- headers:
- cache-control: [no-cache]
- content-length: ['434']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:57:57 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server configuration 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002/configurations/array_nulls?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/array_nulls","name":"array_nulls","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"on","description":"Enable
- input of NULL elements in arrays.","defaultValue":"on","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['542']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:57:59 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- transfer-encoding: [chunked]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: '{"properties": {"value": "off"}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server configuration set]
- Connection: [keep-alive]
- Content-Length: ['32']
- 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002/configurations/array_nulls?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpdateElasticServerConfig","startTime":"2017-05-19T15:58:00.96Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/d5882774-b152-458d-a2ba-517aa223245b?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['79']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:58:00 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/operationResults/d5882774-b152-458d-a2ba-517aa223245b?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['15']
- server: [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: [postgres server configuration 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/d5882774-b152-458d-a2ba-517aa223245b?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"d5882774-b152-458d-a2ba-517aa223245b","status":"Succeeded","startTime":"2017-05-19T15:58:00.96Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['106']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:58:15 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server configuration 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002/configurations/array_nulls?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/array_nulls","name":"array_nulls","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"off","description":"Enable
- input of NULL elements in arrays.","defaultValue":"on","dataType":"Boolean","allowedValues":"on,off","source":"user-override"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['542']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:58:16 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- transfer-encoding: [chunked]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: '{"properties": {"source": "system-default"}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server configuration set]
- Connection: [keep-alive]
- Content-Length: ['44']
- 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002/configurations/array_nulls?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpdateElasticServerConfig","startTime":"2017-05-19T15:58:17.323Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/37a7d9b2-1c67-47b6-b417-a2aea8acc4dc?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['80']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:58:17 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/operationResults/37a7d9b2-1c67-47b6-b417-a2aea8acc4dc?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['15']
- server: [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: [postgres server configuration 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/37a7d9b2-1c67-47b6-b417-a2aea8acc4dc?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"37a7d9b2-1c67-47b6-b417-a2aea8acc4dc","status":"Succeeded","startTime":"2017-05-19T15:58:17.323Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['107']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:58:34 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server configuration 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002/configurations/array_nulls?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/array_nulls","name":"array_nulls","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"on","description":"Enable
- input of NULL elements in arrays.","defaultValue":"on","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['542']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:58: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]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server configuration 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002/configurations?api-version=2017-04-30-preview
- response:
- body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/array_nulls","name":"array_nulls","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"on","description":"Enable
- input of NULL elements in arrays.","defaultValue":"on","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/backslash_quote","name":"backslash_quote","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"safe_encoding","description":"Sets
- whether \"\\''\" is allowed in string literals.","defaultValue":"safe_encoding","dataType":"Enumeration","allowedValues":"safe_encoding,on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/bytea_output","name":"bytea_output","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"hex","description":"Sets
- the output format for bytea.","defaultValue":"hex","dataType":"Enumeration","allowedValues":"escape,hex","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/check_function_bodies","name":"check_function_bodies","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"on","description":"Check
- function bodies during CREATE FUNCTION.","defaultValue":"on","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/client_encoding","name":"client_encoding","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"sql_ascii","description":"Sets
- the client''s character set encoding.","defaultValue":"sql_ascii","dataType":"String","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/client_min_messages","name":"client_min_messages","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"notice","description":"Sets
- the message levels that are sent to the client.","defaultValue":"notice","dataType":"Enumeration","allowedValues":"debug5,debug4,debug3,debug2,debug1,log,notice,warning,error","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/constraint_exclusion","name":"constraint_exclusion","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"partition","description":"Enables
- the planner to use constraints to optimize queries.","defaultValue":"partition","dataType":"Enumeration","allowedValues":"partition,on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/cpu_index_tuple_cost","name":"cpu_index_tuple_cost","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"0.005","description":"Sets
- the planner''s estimate of the cost of processing each index entry during
- an index scan.","defaultValue":"0.005","dataType":"Numeric","allowedValues":"0-1.79769e+308","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/cpu_operator_cost","name":"cpu_operator_cost","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"0.0025","description":"Sets
- the planner''s estimate of the cost of processing each operator or function
- call.","defaultValue":"0.0025","dataType":"Numeric","allowedValues":"0-1.79769e+308","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/cpu_tuple_cost","name":"cpu_tuple_cost","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"0.01","description":"Sets
- the planner''s estimate of the cost of processing each tuple (row).","defaultValue":"0.01","dataType":"Numeric","allowedValues":"0-1.79769e+308","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/cursor_tuple_fraction","name":"cursor_tuple_fraction","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"0.1","description":"Sets
- the planner''s estimate of the fraction of a cursor''s rows that will be retrieved.","defaultValue":"0.1","dataType":"Numeric","allowedValues":"0-1","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/datestyle","name":"datestyle","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"iso,
- mdy","description":"Sets the display format for date and time values.","defaultValue":"iso,
- mdy","dataType":"String","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/deadlock_timeout","name":"deadlock_timeout","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"1000","description":"Sets
- the time to wait on a lock before checking for deadlock.","defaultValue":"1000","dataType":"Integer","allowedValues":"1-2147483647","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/debug_print_parse","name":"debug_print_parse","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"off","description":"Logs
- each query''s parse tree.","defaultValue":"off","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/debug_print_plan","name":"debug_print_plan","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"off","description":"Logs
- each query''s execution plan.","defaultValue":"off","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/debug_print_rewritten","name":"debug_print_rewritten","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"off","description":"Logs
- each query''s rewritten parse tree.","defaultValue":"off","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/default_statistics_target","name":"default_statistics_target","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"100","description":"Sets
- the default statistics target.","defaultValue":"100","dataType":"Integer","allowedValues":"1-10000","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/default_text_search_config","name":"default_text_search_config","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"pg_catalog.english","description":"Sets
- default text search configuration.","defaultValue":"pg_catalog.english","dataType":"String","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/default_transaction_deferrable","name":"default_transaction_deferrable","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"off","description":"Sets
- the default deferrable status of new transactions.","defaultValue":"off","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/default_transaction_isolation","name":"default_transaction_isolation","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"read
- committed","description":"Sets the transaction isolation level of each new
- transaction.","defaultValue":"read committed","dataType":"Enumeration","allowedValues":"serializable,repeatable
- read,read committed,read uncommitted","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/default_transaction_read_only","name":"default_transaction_read_only","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"off","description":"Sets
- the default read-only status of new transactions.","defaultValue":"off","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/default_with_oids","name":"default_with_oids","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"off","description":"Create
- new tables with OIDs by default.","defaultValue":"off","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/enable_bitmapscan","name":"enable_bitmapscan","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"on","description":"Enables
- the planner''s use of bitmap-scan plans.","defaultValue":"on","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/enable_hashagg","name":"enable_hashagg","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"on","description":"Enables
- the planner''s use of hashed aggregation plans.","defaultValue":"on","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/enable_hashjoin","name":"enable_hashjoin","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"on","description":"Enables
- the planner''s use of hash join plans.","defaultValue":"on","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/enable_indexonlyscan","name":"enable_indexonlyscan","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"on","description":"Enables
- the planner''s use of index-only-scan plans.","defaultValue":"on","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/enable_indexscan","name":"enable_indexscan","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"on","description":"Enables
- the planner''s use of index-scan plans.","defaultValue":"on","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/enable_material","name":"enable_material","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"on","description":"Enables
- the planner''s use of materialization.","defaultValue":"on","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/enable_mergejoin","name":"enable_mergejoin","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"on","description":"Enables
- the planner''s use of merge join plans.","defaultValue":"on","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/enable_nestloop","name":"enable_nestloop","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"on","description":"Enables
- the planner''s use of nested-loop join plans.","defaultValue":"on","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/enable_seqscan","name":"enable_seqscan","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"on","description":"Enables
- the planner''s use of sequential-scan plans.","defaultValue":"on","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/enable_sort","name":"enable_sort","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"on","description":"Enables
- the planner''s use of explicit sort steps.","defaultValue":"on","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/enable_tidscan","name":"enable_tidscan","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"on","description":"Enables
- the planner''s use of TID scan plans.","defaultValue":"on","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/escape_string_warning","name":"escape_string_warning","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"on","description":"Warn
- about backslash escapes in ordinary string literals.","defaultValue":"on","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/exit_on_error","name":"exit_on_error","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"off","description":"Terminate
- session on any error.","defaultValue":"off","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/extra_float_digits","name":"extra_float_digits","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"0","description":"Sets
- the number of digits displayed for floating-point values.","defaultValue":"0","dataType":"Integer","allowedValues":"-15-3","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/from_collapse_limit","name":"from_collapse_limit","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"8","description":"Sets
- the FROM-list size beyond which subqueries are not collapsed.","defaultValue":"8","dataType":"Integer","allowedValues":"1-2147483647","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/geqo","name":"geqo","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"on","description":"Enables
- genetic query optimization.","defaultValue":"on","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/geqo_effort","name":"geqo_effort","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"5","description":"GEQO:
- effort is used to set the default for other GEQO parameters.","defaultValue":"5","dataType":"Integer","allowedValues":"1-10","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/geqo_generations","name":"geqo_generations","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"0","description":"GEQO:
- number of iterations of the algorithm.","defaultValue":"0","dataType":"Integer","allowedValues":"0-2147483647","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/geqo_pool_size","name":"geqo_pool_size","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"0","description":"GEQO:
- number of individuals in the population.","defaultValue":"0","dataType":"Integer","allowedValues":"0-2147483647","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/geqo_seed","name":"geqo_seed","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"0.0","description":"GEQO:
- seed for random path selection.","defaultValue":"0.0","dataType":"Numeric","allowedValues":"0-1","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/geqo_selection_bias","name":"geqo_selection_bias","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"2.0","description":"GEQO:
- selective pressure within the population.","defaultValue":"2.0","dataType":"Numeric","allowedValues":"1.5-2","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/geqo_threshold","name":"geqo_threshold","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"12","description":"Sets
- the threshold of FROM items beyond which GEQO is used.","defaultValue":"12","dataType":"Integer","allowedValues":"2-2147483647","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/gin_fuzzy_search_limit","name":"gin_fuzzy_search_limit","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"0","description":"Sets
- the maximum allowed result for exact search by GIN.","defaultValue":"0","dataType":"Integer","allowedValues":"0-2147483647","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/intervalstyle","name":"intervalstyle","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"postgres","description":"Sets
- the display format for interval values.","defaultValue":"postgres","dataType":"Enumeration","allowedValues":"postgres,postgres_verbose,sql_standard,iso_8601","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/join_collapse_limit","name":"join_collapse_limit","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"8","description":"Sets
- the FROM-list size beyond which JOIN constructs are not flattened.","defaultValue":"8","dataType":"Integer","allowedValues":"1-2147483647","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/lock_timeout","name":"lock_timeout","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"0","description":"Sets
- the maximum allowed duration of any wait for a lock.","defaultValue":"0","dataType":"Integer","allowedValues":"0-2147483647","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/log_checkpoints","name":"log_checkpoints","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"off","description":"Logs
- each checkpoint.","defaultValue":"off","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/log_connections","name":"log_connections","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"off","description":"Logs
- each successful connection.","defaultValue":"off","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/log_disconnections","name":"log_disconnections","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"off","description":"Logs
- end of a session, including duration.","defaultValue":"off","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/log_duration","name":"log_duration","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"off","description":"Logs
- the duration of each completed SQL statement.","defaultValue":"off","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/log_error_verbosity","name":"log_error_verbosity","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"default","description":"Sets
- the verbosity of logged messages.","defaultValue":"default","dataType":"Enumeration","allowedValues":"terse,default,verbose","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/log_lock_waits","name":"log_lock_waits","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"off","description":"Logs
- long lock waits.","defaultValue":"off","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/log_min_duration_statement","name":"log_min_duration_statement","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"-1","description":"Sets
- the minimum execution time above which statements will be logged.","defaultValue":"-1","dataType":"Integer","allowedValues":"-1-2147483647","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/log_min_error_statement","name":"log_min_error_statement","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"error","description":"Causes
- all statements generating error at or above this level to be logged.","defaultValue":"error","dataType":"Enumeration","allowedValues":"debug5,debug4,debug3,debug2,debug1,info,notice,warning,error,log,fatal,panic","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/log_min_messages","name":"log_min_messages","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"warning","description":"Sets
- the message levels that are logged.","defaultValue":"warning","dataType":"Enumeration","allowedValues":"debug5,debug4,debug3,debug2,debug1,info,notice,warning,error,log,fatal,panic","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/log_statement","name":"log_statement","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"none","description":"Sets
- the type of statements logged.","defaultValue":"none","dataType":"Enumeration","allowedValues":"none,ddl,mod,all","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/max_locks_per_transaction","name":"max_locks_per_transaction","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"64","description":"Sets
- the maximum number of locks per transaction.","defaultValue":"64","dataType":"Integer","allowedValues":"10-2147483647","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/max_pred_locks_per_transaction","name":"max_pred_locks_per_transaction","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"64","description":"Sets
- the maximum number of predicate locks per transaction.","defaultValue":"64","dataType":"Integer","allowedValues":"10-2147483647","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/max_prepared_transactions","name":"max_prepared_transactions","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"0","description":"Sets
- the maximum number of simultaneously prepared transactions.","defaultValue":"0","dataType":"Integer","allowedValues":"0-8388607","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/quote_all_identifiers","name":"quote_all_identifiers","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"off","description":"When
- generating SQL fragments, quote all identifiers.","defaultValue":"off","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/random_page_cost","name":"random_page_cost","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"4.0","description":"Sets
- the planner''s estimate of the cost of a nonsequentially fetched disk page.","defaultValue":"4.0","dataType":"Numeric","allowedValues":"0-1.79769e+308","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/search_path","name":"search_path","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"\"","description":"Sets
- the schema search order for names that are not schema-qualified.","defaultValue":"\"","dataType":"String","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/seq_page_cost","name":"seq_page_cost","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"1.0","description":"Sets
- the planner''s estimate of the cost of a sequentially fetched disk page.","defaultValue":"1.0","dataType":"Numeric","allowedValues":"0-1.79769e+308","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/sql_inheritance","name":"sql_inheritance","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"on","description":"Causes
- subtables to be included by default in various commands.","defaultValue":"on","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/standard_conforming_strings","name":"standard_conforming_strings","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"on","description":"Causes
- ''...'' strings to treat backslashes literally.","defaultValue":"on","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/statement_timeout","name":"statement_timeout","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"0","description":"Sets
- the maximum allowed duration of any statement.","defaultValue":"0","dataType":"Integer","allowedValues":"0-2147483647","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/synchronize_seqscans","name":"synchronize_seqscans","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"on","description":"Enable
- synchronized sequential scans.","defaultValue":"on","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/synchronous_commit","name":"synchronous_commit","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"on","description":"Sets
- the current transaction''s synchronization level.","defaultValue":"on","dataType":"Enumeration","allowedValues":"local,remote_write,on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/transform_null_equals","name":"transform_null_equals","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"off","description":"Treats
- \"expr=NULL\" as \"expr IS NULL\".","defaultValue":"off","dataType":"Boolean","allowedValues":"on,off","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/xmlbinary","name":"xmlbinary","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"base64","description":"Sets
- how binary values are to be encoded in XML.","defaultValue":"base64","dataType":"Enumeration","allowedValues":"base64,hex","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/xmloption","name":"xmloption","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"content","description":"Sets
- whether XML data in implicit parsing and serialization operations is to be
- considered as documents or content fragments.","defaultValue":"content","dataType":"Enumeration","allowedValues":"content,document","source":"system-default"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/configurations/log_retention_days","name":"log_retention_days","type":"Microsoft.DBforPostgreSQL/servers/configurations","properties":{"value":"7","description":"Sets
- how many days a log file is saved for.","defaultValue":"7","dataType":"Integer","allowedValues":"1-7","source":"system-default"}}]}'}
- headers:
- cache-control: [no-cache]
- content-length: ['42658']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:58: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]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server-logs 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 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000002/logFiles?api-version=2017-04-30-preview
- response:
- body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000002/logFiles/postgresql-2017-05-19_155517.log","name":"postgresql-2017-05-19_155517.log","type":"Microsoft.DBforPostgreSQL/servers/logFiles","properties":{"name":"postgresql-2017-05-19_155517.log","sizeInKB":1,"createdTime":"0001-01-01T00:00:00+00:00","lastModifiedTime":"2017-05-19T15:58:18+00:00","type":"text","url":"https://wasd2prodweu1afse1.file.core.windows.net/c338978df8884dd2957fb396194f1b56/pg_log/postgresql-2017-05-19_155517.log?sv=2015-04-05&sr=f&sig=bsBrFHCtx04tnzzHoiiKvnqDirZzypqxnnD1BnK0G%2F4%3D&se=2017-05-19T16%3A58%3A41Z&sp=r"}}]}'}
- headers:
- cache-control: [no-cache]
- content-length: ['815']
- content-type: [application/json; charset=utf-8]
- date: ['Fri, 19 May 2017 15:58: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]
- 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: ['Fri, 19 May 2017 15:58:40 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdKUUtCTjJWTVlXUVhUR0ZEMlNZVVAyMjJMWldRMk1MVUdQSHwzNzI5NTY0MjFBMjYwM0M3LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?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-rdbms/azure/cli/command_modules/rdbms/tests/recordings/latest/test_postgres_server_mgmt.yaml b/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/tests/recordings/latest/test_postgres_server_mgmt.yaml
deleted file mode 100644
index 930020731f3..00000000000
--- a/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/tests/recordings/latest/test_postgres_server_mgmt.yaml
+++ /dev/null
@@ -1,1906 +0,0 @@
-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.6.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: ['Mon, 22 May 2017 05:17:34 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1192']
- status: {code: 201, message: Created}
-- 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.6.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.rg000002?api-version=2017-05-10
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002","name":"clitest.rg000002","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: ['Mon, 22 May 2017 05:17:37 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1194']
- status: {code: 201, message: Created}
-- request:
- body: '{"sku": {"name": "SkuName", "tier": "Basic", "capacity": 100}, "properties":
- {"createMode": "Default", "administratorLogin": "cloudsa", "administratorLoginPassword":
- "SecretPassword123"}, "location": "westeurope", "tags": {"key": "1"}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server create]
- Connection: [keep-alive]
- Content-Length: ['235']
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpsertElasticServer","startTime":"2017-05-22T05:17:42.383Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/31323641-4557-4b4f-9558-53cee9ee6fdf?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['74']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:17:40 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/operationResults/31323641-4557-4b4f-9558-53cee9ee6fdf?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['60']
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1192']
- status: {code: 202, message: Accepted}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/31323641-4557-4b4f-9558-53cee9ee6fdf?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"31323641-4557-4b4f-9558-53cee9ee6fdf","status":"InProgress","startTime":"2017-05-22T05:17:42.383Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:18:42 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/31323641-4557-4b4f-9558-53cee9ee6fdf?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"31323641-4557-4b4f-9558-53cee9ee6fdf","status":"InProgress","startTime":"2017-05-22T05:17:42.383Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:19:15 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/31323641-4557-4b4f-9558-53cee9ee6fdf?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"31323641-4557-4b4f-9558-53cee9ee6fdf","status":"InProgress","startTime":"2017-05-22T05:17:42.383Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:19:47 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/31323641-4557-4b4f-9558-53cee9ee6fdf?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"31323641-4557-4b4f-9558-53cee9ee6fdf","status":"InProgress","startTime":"2017-05-22T05:17:42.383Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:20:18 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/31323641-4557-4b4f-9558-53cee9ee6fdf?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"31323641-4557-4b4f-9558-53cee9ee6fdf","status":"InProgress","startTime":"2017-05-22T05:17:42.383Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:20: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]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/31323641-4557-4b4f-9558-53cee9ee6fdf?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"31323641-4557-4b4f-9558-53cee9ee6fdf","status":"Succeeded","startTime":"2017-05-22T05:17:42.383Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['107']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:21:22 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforPostgreSQL/servers","location":"westeurope","sku":{"name":"PGSQLB100","tier":"Basic","capacity":100},"tags":{"key":"1"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"9.5","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.postgres.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['730']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:21:25 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server show]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforPostgreSQL/servers","location":"westeurope","sku":{"name":"PGSQLB100","tier":"Basic","capacity":100},"tags":{"key":"1"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"9.5","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.postgres.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['730']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:21:27 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforPostgreSQL/servers","location":"westeurope","sku":{"name":"PGSQLB100","tier":"Basic","capacity":100},"tags":{"key":"1"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"9.5","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.postgres.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['730']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:21:30 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- transfer-encoding: [chunked]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: '{"properties": {"administratorLoginPassword": "SecretPassword456", "sslEnforcement":
- "Disabled"}, "tags": {"key": "2"}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server update]
- Connection: [keep-alive]
- Content-Length: ['119']
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpsertElasticServer","startTime":"2017-05-22T05:21:31.653Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/59534b00-b60c-4e06-a97b-7efe7d2e3081?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['74']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:21:32 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/operationResults/59534b00-b60c-4e06-a97b-7efe7d2e3081?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['60']
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1197']
- status: {code: 202, message: Accepted}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/59534b00-b60c-4e06-a97b-7efe7d2e3081?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"59534b00-b60c-4e06-a97b-7efe7d2e3081","status":"Succeeded","startTime":"2017-05-22T05:21:31.653Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['107']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:22:34 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforPostgreSQL/servers","location":"westeurope","sku":{"name":"PGSQLB100","tier":"Basic","capacity":100},"tags":{"key":"2"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"9.5","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.postgres.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['731']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:22:36 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforPostgreSQL/servers","location":"westeurope","sku":{"name":"PGSQLB100","tier":"Basic","capacity":100},"tags":{"key":"2"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"9.5","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.postgres.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['731']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:22: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]
- status: {code: 200, message: OK}
-- request:
- body: '{"sku": {"name": "PGSQLB100", "tier": "Basic", "capacity": 50}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server update]
- Connection: [keep-alive]
- Content-Length: ['63']
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpsertElasticServer","startTime":"2017-05-22T05:22:39.953Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/277ff99c-e05b-4f3c-a4a6-191d00e6d022?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['74']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:22:41 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/operationResults/277ff99c-e05b-4f3c-a4a6-191d00e6d022?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['60']
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1194']
- status: {code: 202, message: Accepted}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/277ff99c-e05b-4f3c-a4a6-191d00e6d022?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"277ff99c-e05b-4f3c-a4a6-191d00e6d022","status":"Succeeded","startTime":"2017-05-22T05:22:39.953Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['107']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:23:43 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforPostgreSQL/servers","location":"westeurope","sku":{"name":"PGSQLB50","tier":"Basic","capacity":50},"tags":{"key":"2"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"9.5","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.postgres.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['729']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:23:45 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server show]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforPostgreSQL/servers","location":"westeurope","sku":{"name":"PGSQLB50","tier":"Basic","capacity":50},"tags":{"key":"2"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"9.5","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.postgres.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['729']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:23:48 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforPostgreSQL/servers","location":"westeurope","sku":{"name":"PGSQLB50","tier":"Basic","capacity":50},"tags":{"key":"2"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"9.5","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.postgres.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['729']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:23:49 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- transfer-encoding: [chunked]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: '{"sku": {"name": "PGSQLB50", "tier": "Basic", "capacity": 100}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server update]
- Connection: [keep-alive]
- Content-Length: ['63']
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpsertElasticServer","startTime":"2017-05-22T05:23:52.46Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/98cc0850-6d57-4a2e-a679-e5dee93806b9?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['73']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:23:52 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/operationResults/98cc0850-6d57-4a2e-a679-e5dee93806b9?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['60']
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1193']
- status: {code: 202, message: Accepted}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/98cc0850-6d57-4a2e-a679-e5dee93806b9?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"98cc0850-6d57-4a2e-a679-e5dee93806b9","status":"Succeeded","startTime":"2017-05-22T05:23:52.46Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['106']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:24:54 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforPostgreSQL/servers","location":"westeurope","sku":{"name":"PGSQLB100","tier":"Basic","capacity":100},"tags":{"key":"2"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"9.5","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.postgres.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['731']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:24:56 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforPostgreSQL/servers","location":"westeurope","sku":{"name":"PGSQLB100","tier":"Basic","capacity":100},"tags":{"key":"2"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"9.5","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.postgres.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['731']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:24:59 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- transfer-encoding: [chunked]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: '{"properties": {"sslEnforcement": "Enabled"}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server update]
- Connection: [keep-alive]
- Content-Length: ['45']
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpsertElasticServer","startTime":"2017-05-22T05:25:00.853Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/46771233-2d50-4809-9eae-f1c7b37fb99b?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['74']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:25:00 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/operationResults/46771233-2d50-4809-9eae-f1c7b37fb99b?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['60']
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1191']
- status: {code: 202, message: Accepted}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/46771233-2d50-4809-9eae-f1c7b37fb99b?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"46771233-2d50-4809-9eae-f1c7b37fb99b","status":"Succeeded","startTime":"2017-05-22T05:25:00.853Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['107']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:26:03 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforPostgreSQL/servers","location":"westeurope","sku":{"name":"PGSQLB100","tier":"Basic","capacity":100},"tags":{"key":"2"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"9.5","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.postgres.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['730']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:26:04 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforPostgreSQL/servers","location":"westeurope","sku":{"name":"PGSQLB100","tier":"Basic","capacity":100},"tags":{"key":"2"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"9.5","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.postgres.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['730']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:26:07 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- transfer-encoding: [chunked]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: '{"tags": {"key": "3"}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server update]
- Connection: [keep-alive]
- Content-Length: ['22']
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"UpsertElasticServer","startTime":"2017-05-22T05:26:08.66Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/1673eae1-ae2c-4099-8ba3-db1e000dcc3d?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['73']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:26:09 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/operationResults/1673eae1-ae2c-4099-8ba3-db1e000dcc3d?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['60']
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1190']
- status: {code: 202, message: Accepted}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/1673eae1-ae2c-4099-8ba3-db1e000dcc3d?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"1673eae1-ae2c-4099-8ba3-db1e000dcc3d","status":"Succeeded","startTime":"2017-05-22T05:26:08.66Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['106']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:27:12 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server update]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforPostgreSQL/servers","location":"westeurope","sku":{"name":"PGSQLB100","tier":"Basic","capacity":100},"tags":{"key":"3"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"9.5","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.postgres.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['730']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:27:13 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforPostgreSQL/servers","location":"westeurope","sku":{"name":"PGSQLB100","tier":"Basic","capacity":100},"tags":{"key":"3"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"9.5","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.postgres.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['730']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:32:16 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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''b\''{"properties": {"createMode": "PointInTimeRestore", "sourceServerId":
- "/subscriptions/2941a09d-7bcf-42fe-91ca-1765f521c829/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000003",
- "restorePointInTime": "2017-05-22T05:32:14.683871Z"}, "location": "westeurope"}\'''''
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server restore]
- Connection: [keep-alive]
- Content-Length: ['403']
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.rg000002/providers/Microsoft.DBforPostgreSQL/servers/azuredbclirestore000004?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"RestoreElasticServer","startTime":"2017-05-22T05:32:18.543Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/b9658b95-e1fd-4de6-8062-ed6f8cb87ed0?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['75']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:32:20 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/operationResults/b9658b95-e1fd-4de6-8062-ed6f8cb87ed0?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['10']
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1196']
- status: {code: 202, message: Accepted}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/b9658b95-e1fd-4de6-8062-ed6f8cb87ed0?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"b9658b95-e1fd-4de6-8062-ed6f8cb87ed0","status":"InProgress","startTime":"2017-05-22T05:32:18.543Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:32:32 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/b9658b95-e1fd-4de6-8062-ed6f8cb87ed0?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"b9658b95-e1fd-4de6-8062-ed6f8cb87ed0","status":"InProgress","startTime":"2017-05-22T05:32:18.543Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:33:04 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/b9658b95-e1fd-4de6-8062-ed6f8cb87ed0?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"b9658b95-e1fd-4de6-8062-ed6f8cb87ed0","status":"InProgress","startTime":"2017-05-22T05:32:18.543Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:33:36 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/b9658b95-e1fd-4de6-8062-ed6f8cb87ed0?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"b9658b95-e1fd-4de6-8062-ed6f8cb87ed0","status":"InProgress","startTime":"2017-05-22T05:32:18.543Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:34:07 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/b9658b95-e1fd-4de6-8062-ed6f8cb87ed0?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"b9658b95-e1fd-4de6-8062-ed6f8cb87ed0","status":"InProgress","startTime":"2017-05-22T05:32:18.543Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:34:39 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/b9658b95-e1fd-4de6-8062-ed6f8cb87ed0?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"b9658b95-e1fd-4de6-8062-ed6f8cb87ed0","status":"InProgress","startTime":"2017-05-22T05:32:18.543Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:35:09 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/b9658b95-e1fd-4de6-8062-ed6f8cb87ed0?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"b9658b95-e1fd-4de6-8062-ed6f8cb87ed0","status":"InProgress","startTime":"2017-05-22T05:32:18.543Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:35: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]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/b9658b95-e1fd-4de6-8062-ed6f8cb87ed0?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"b9658b95-e1fd-4de6-8062-ed6f8cb87ed0","status":"InProgress","startTime":"2017-05-22T05:32:18.543Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:36:12 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/b9658b95-e1fd-4de6-8062-ed6f8cb87ed0?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"b9658b95-e1fd-4de6-8062-ed6f8cb87ed0","status":"InProgress","startTime":"2017-05-22T05:32:18.543Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:36:45 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/b9658b95-e1fd-4de6-8062-ed6f8cb87ed0?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"b9658b95-e1fd-4de6-8062-ed6f8cb87ed0","status":"InProgress","startTime":"2017-05-22T05:32:18.543Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:37:17 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/b9658b95-e1fd-4de6-8062-ed6f8cb87ed0?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"b9658b95-e1fd-4de6-8062-ed6f8cb87ed0","status":"InProgress","startTime":"2017-05-22T05:32:18.543Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:37:49 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/b9658b95-e1fd-4de6-8062-ed6f8cb87ed0?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"b9658b95-e1fd-4de6-8062-ed6f8cb87ed0","status":"InProgress","startTime":"2017-05-22T05:32:18.543Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:38:21 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/b9658b95-e1fd-4de6-8062-ed6f8cb87ed0?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"b9658b95-e1fd-4de6-8062-ed6f8cb87ed0","status":"InProgress","startTime":"2017-05-22T05:32:18.543Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:38: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]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/b9658b95-e1fd-4de6-8062-ed6f8cb87ed0?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"b9658b95-e1fd-4de6-8062-ed6f8cb87ed0","status":"InProgress","startTime":"2017-05-22T05:32:18.543Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:39:25 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/b9658b95-e1fd-4de6-8062-ed6f8cb87ed0?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"b9658b95-e1fd-4de6-8062-ed6f8cb87ed0","status":"InProgress","startTime":"2017-05-22T05:32:18.543Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:39:57 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/b9658b95-e1fd-4de6-8062-ed6f8cb87ed0?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"b9658b95-e1fd-4de6-8062-ed6f8cb87ed0","status":"InProgress","startTime":"2017-05-22T05:32:18.543Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:40:30 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/b9658b95-e1fd-4de6-8062-ed6f8cb87ed0?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"b9658b95-e1fd-4de6-8062-ed6f8cb87ed0","status":"InProgress","startTime":"2017-05-22T05:32:18.543Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:41:00 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/b9658b95-e1fd-4de6-8062-ed6f8cb87ed0?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"b9658b95-e1fd-4de6-8062-ed6f8cb87ed0","status":"InProgress","startTime":"2017-05-22T05:32:18.543Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:41:32 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/b9658b95-e1fd-4de6-8062-ed6f8cb87ed0?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"b9658b95-e1fd-4de6-8062-ed6f8cb87ed0","status":"InProgress","startTime":"2017-05-22T05:32:18.543Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:42:03 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/b9658b95-e1fd-4de6-8062-ed6f8cb87ed0?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"b9658b95-e1fd-4de6-8062-ed6f8cb87ed0","status":"InProgress","startTime":"2017-05-22T05:32:18.543Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:42: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]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/b9658b95-e1fd-4de6-8062-ed6f8cb87ed0?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"b9658b95-e1fd-4de6-8062-ed6f8cb87ed0","status":"InProgress","startTime":"2017-05-22T05:32:18.543Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:43:09 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/b9658b95-e1fd-4de6-8062-ed6f8cb87ed0?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"b9658b95-e1fd-4de6-8062-ed6f8cb87ed0","status":"InProgress","startTime":"2017-05-22T05:32:18.543Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['108']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:43:42 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/b9658b95-e1fd-4de6-8062-ed6f8cb87ed0?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"b9658b95-e1fd-4de6-8062-ed6f8cb87ed0","status":"Succeeded","startTime":"2017-05-22T05:32:18.543Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['107']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:44:14 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server restore]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.rg000002/providers/Microsoft.DBforPostgreSQL/servers/azuredbclirestore000004?api-version=2017-04-30-preview
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.DBforPostgreSQL/servers/azuredbclirestore000004","name":"azuredbclirestore000004","type":"Microsoft.DBforPostgreSQL/servers","location":"westeurope","sku":{"name":"PGSQLB100","tier":"Basic","capacity":100},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"9.5","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclirestore000004.postgres.database.azure.com"}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['711']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:44:17 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server list]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.rg000002/providers/Microsoft.DBforPostgreSQL/servers?api-version=2017-04-30-preview
- response:
- body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.DBforPostgreSQL/servers/azuredbclirestore000004","name":"azuredbclirestore000004","type":"Microsoft.DBforPostgreSQL/servers","location":"westeurope","sku":{"name":"PGSQLB100","tier":"Basic","capacity":100},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"9.5","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclirestore000004.postgres.database.azure.com"}}]}'}
- headers:
- cache-control: [no-cache]
- content-length: ['723']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:44:20 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server list]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers?api-version=2017-04-30-preview
- response:
- body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/OrcasPMResource/providers/Microsoft.DBforPostgreSQL/servers/orcaspmpg","name":"orcaspmpg","type":"Microsoft.DBforPostgreSQL/servers","location":"northeurope","sku":{"name":"PGSQLB100","tier":"Basic","capacity":100},"properties":{"administratorLogin":"orcaspmlogin","storageMB":51200,"version":"9.5","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"orcaspmpg.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.DBforPostgreSQL/servers/restoretestserver","name":"restoretestserver","type":"Microsoft.DBforPostgreSQL/servers","location":"westeurope","sku":{"name":"PGSQLB100","tier":"Basic","capacity":100},"properties":{"administratorLogin":"testuser","storageMB":51200,"version":"9.6","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"restoretestserver.postgres.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/webapplibliang/providers/Microsoft.DBforPostgreSQL/servers/previewserverbackup","name":"previewserverbackup","type":"Microsoft.DBforPostgreSQL/servers","location":"westeurope","sku":{"name":"PGSQLS400","tier":"Standard","capacity":400},"properties":{"administratorLogin":"previewuser","storageMB":128000,"version":"9.6","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"previewserverbackup.postgres.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.DBforPostgreSQL/servers/restorebackup","name":"restorebackup","type":"Microsoft.DBforPostgreSQL/servers","location":"westeurope","sku":{"name":"PGSQLB100","tier":"Basic","capacity":100},"properties":{"administratorLogin":"testuser","storageMB":51200,"version":"9.6","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"restorebackup.postgres.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.DBforPostgreSQL/servers/azuredbclitest000003","name":"azuredbclitest000003","type":"Microsoft.DBforPostgreSQL/servers","location":"westeurope","sku":{"name":"PGSQLB100","tier":"Basic","capacity":100},"tags":{"key":"3"},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"9.5","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclitest000003.postgres.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.DBforPostgreSQL/servers/azuredbclirestore000004","name":"azuredbclirestore000004","type":"Microsoft.DBforPostgreSQL/servers","location":"westeurope","sku":{"name":"PGSQLB100","tier":"Basic","capacity":100},"properties":{"administratorLogin":"cloudsa","storageMB":51200,"version":"9.5","sslEnforcement":"Enabled","userVisibleState":"Ready","fullyQualifiedDomainName":"azuredbclirestore000004.postgres.database.azure.com"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.DBforPostgreSQL/servers/webapptstpgserver3","name":"webapptstpgserver3","type":"Microsoft.DBforPostgreSQL/servers","location":"westus","sku":{"name":"PGSQLB50","tier":"Basic","capacity":50},"properties":{"administratorLogin":"webapppguser","storageMB":51200,"version":"9.5","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"webapptstpgserver3.database.windows.net"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/webapplibliang/providers/Microsoft.DBforPostgreSQL/servers/previewserver2backup","name":"previewserver2backup","type":"Microsoft.DBforPostgreSQL/servers","location":"westus","sku":{"name":"PGSQLB100","tier":"Basic","capacity":100},"properties":{"administratorLogin":"previewuser","storageMB":51200,"version":"9.6","sslEnforcement":"Disabled","userVisibleState":"Ready","fullyQualifiedDomainName":"previewserver2backup.postgres.database.azure.com"}}]}'}
- headers:
- cache-control: [no-cache]
- content-length: ['4549']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:44:23 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- x-ms-original-request-ids: [63fbb7bc-c57e-45eb-a9f1-d87057aee9c7, 5e9953f3-ebd2-40ed-8e2a-43f17cbc6a3d,
- 9b8624ae-4a3e-40d5-9d39-223a66bb2a72]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server delete]
- Connection: [keep-alive]
- Content-Length: ['0']
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers/azuredbclitest000003?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"DropElasticServer","startTime":"2017-05-22T05:44:26.307Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/3a939b42-583e-427e-b168-9519c6693039?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['72']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:44:26 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/operationResults/3a939b42-583e-427e-b168-9519c6693039?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['60']
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1194']
- status: {code: 202, message: Accepted}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server delete]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/3a939b42-583e-427e-b168-9519c6693039?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"3a939b42-583e-427e-b168-9519c6693039","status":"Succeeded","startTime":"2017-05-22T05:44:26.307Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['107']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:45:28 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server delete]
- Connection: [keep-alive]
- Content-Length: ['0']
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.rg000002/providers/Microsoft.DBforPostgreSQL/servers/azuredbclirestore000004?api-version=2017-04-30-preview
- response:
- body: {string: '{"operation":"DropElasticServer","startTime":"2017-05-22T05:45:30.133Z"}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/69af5d9a-8f7a-48a6-b216-1bd1620125e6?api-version=2017-04-30-preview']
- cache-control: [no-cache]
- content-length: ['72']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:45:31 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/westeurope/operationResults/69af5d9a-8f7a-48a6-b216-1bd1620125e6?api-version=2017-04-30-preview']
- pragma: [no-cache]
- retry-after: ['60']
- server: [Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1196']
- status: {code: 202, message: Accepted}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [postgres server delete]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/locations/westeurope/azureAsyncOperation/69af5d9a-8f7a-48a6-b216-1bd1620125e6?api-version=2017-04-30-preview
- response:
- body: {string: '{"name":"69af5d9a-8f7a-48a6-b216-1bd1620125e6","status":"Succeeded","startTime":"2017-05-22T05:45:30.133Z"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['107']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:46:33 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [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']
- CommandName: [postgres server list]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.6.1 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.7
- msrest_azure/0.4.7 postgresqlmanagementclient/0.1.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.DBforPostgreSQL/servers?api-version=2017-04-30-preview
- response:
- body: {string: '{"value":[]}'}
- headers:
- cache-control: [no-cache]
- content-length: ['12']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 22 May 2017 05:46:34 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- 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.6.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.rg000002?api-version=2017-05-10
- response:
- body: {string: ''}
- headers:
- cache-control: [no-cache]
- content-length: ['0']
- date: ['Mon, 22 May 2017 05:46:37 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdaT0ZWWTJSWE9XS1ZXS1JLTktGV01VRUszSDRMWE81VzZPNnw3ODY3ODQ5QjM4NjM0OUVELVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10']
- pragma: [no-cache]
- retry-after: ['15']
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1193']
- 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.6.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: ['Mon, 22 May 2017 05:46:41 GMT']
- expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdCVFBFRlFPM0JSQ0VOUEJFQUpDQTJIWTRXSkdSTkVOSkgyT3xCRUM0RDMxOEE5NkRENEEzLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10']
- pragma: [no-cache]
- retry-after: ['15']
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1195']
- status: {code: 202, message: Accepted}
-version: 1
diff --git a/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/validators.py b/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/validators.py
index 9edef5367d2..29039ab79dc 100644
--- a/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/validators.py
+++ b/src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/validators.py
@@ -3,20 +3,20 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
-from azure.cli.core.commands.validators import \
- (get_default_location_from_resource_group, validate_tags)
+from azure.cli.core.commands.validators import (
+ get_default_location_from_resource_group, validate_tags)
from knack.prompting import prompt_pass, NoTTYException
from knack.util import CLIError
def get_combined_validator(validators):
- def _final_valiator_impl(namespace):
+ def _final_valiator_impl(cmd, namespace):
# do additional creation validation
if namespace.subcommand == 'create':
storage_validator(namespace)
password_validator(namespace)
- get_default_location_from_resource_group(namespace)
+ get_default_location_from_resource_group(cmd, namespace)
validate_tags(namespace)
@@ -47,6 +47,5 @@ def password_validator(ns):
def storage_validator(ns):
- if ns.storage_mb:
- if ns.storage_mb > 1023 * 1024:
- raise ValueError('The size of storage cannot exceed 1023GB.')
+ if ns.storage_mb and ns.storage_mb > 1023 * 1024:
+ raise ValueError('The size of storage cannot exceed 1023GB.')
diff --git a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/__init__.py b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/__init__.py
index 375e9630bfb..fa92a883297 100644
--- a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/__init__.py
+++ b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/__init__.py
@@ -3,12 +3,34 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
+from azure.cli.core import AzCommandsLoader
+from azure.cli.core.profiles import ResourceType
+
import azure.cli.command_modules.storage._help # pylint: disable=unused-import
-def load_params(_):
- import azure.cli.command_modules.storage._params # pylint: disable=redefined-outer-name, unused-variable
+class StorageCommandsLoader(AzCommandsLoader):
+
+ def __init__(self, cli_ctx=None):
+ from azure.cli.core.sdk.util import CliCommandType
+ from azure.cli.command_modules.storage._command_type import _StorageCommandGroup
+
+ storage_custom = CliCommandType(operations_tmpl='azure.cli.command_modules.storage.custom#{}')
+ super(StorageCommandsLoader, self).__init__(cli_ctx=cli_ctx,
+ resource_type=ResourceType.DATA_STORAGE,
+ custom_command_type=storage_custom,
+ command_group_cls=_StorageCommandGroup)
+ self.module_name = __name__
+
+ def load_command_table(self, args):
+ super(StorageCommandsLoader, self).load_command_table(args)
+ from azure.cli.command_modules.storage.commands import load_command_table
+ load_command_table(self, args)
+ return self.command_table
+ def load_arguments(self, command):
+ super(StorageCommandsLoader, self).load_arguments(command)
+ from azure.cli.command_modules.storage._params import load_arguments
+ load_arguments(self, command)
-def load_commands():
- import azure.cli.command_modules.storage.commands # pylint: disable=redefined-outer-name, unused-variable
+COMMAND_LOADER_CLS = StorageCommandsLoader
diff --git a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_factory.py b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_client_factory.py
similarity index 80%
rename from src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_factory.py
rename to src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_client_factory.py
index a98d0d1fada..89fc7eee187 100644
--- a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_factory.py
+++ b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_client_factory.py
@@ -5,7 +5,8 @@
from azure.cli.core.commands.client_factory import get_mgmt_service_client, get_data_service_client
from azure.cli.core.profiles import ResourceType, get_sdk
-from .sdkutil import get_table_data_type
+
+from azure.cli.command_modules.storage.sdkutil import get_table_data_type
from knack.util import CLIError
@@ -22,33 +23,30 @@
def get_storage_data_service_client(cli_ctx, service, name=None, key=None, connection_string=None,
sas_token=None):
- return get_data_service_client(service,
- name,
- key,
- connection_string,
- sas_token,
+ return get_data_service_client(cli_ctx, service, name, key, connection_string, sas_token,
endpoint_suffix=cli_ctx.cloud.suffixes.storage_endpoint)
-def generic_data_service_factory(service, name=None, key=None, connection_string=None, sas_token=None):
+def generic_data_service_factory(cli_ctx, service, name=None, key=None, connection_string=None, sas_token=None):
try:
- return get_storage_data_service_client(service, name, key, connection_string, sas_token)
+ return get_storage_data_service_client(cli_ctx, service, name, key, connection_string, sas_token)
except ValueError as val_exception:
- _ERROR_STORAGE_MISSING_INFO = get_sdk(ResourceType.DATA_STORAGE, 'common._error#_ERROR_STORAGE_MISSING_INFO')
+ _ERROR_STORAGE_MISSING_INFO = get_sdk(cli_ctx, ResourceType.DATA_STORAGE,
+ 'common._error#_ERROR_STORAGE_MISSING_INFO')
message = str(val_exception)
if message == _ERROR_STORAGE_MISSING_INFO:
message = NO_CREDENTIALS_ERROR_MESSAGE
raise CLIError(message)
-def storage_client_factory(**_):
- return get_mgmt_service_client(ResourceType.MGMT_STORAGE)
+def storage_client_factory(cli_ctx, **_):
+ return get_mgmt_service_client(cli_ctx, ResourceType.MGMT_STORAGE)
def file_data_service_factory(cli_ctx, kwargs):
- FileService = cli_ctx.cloudget_sdk(ResourceType.DATA_STORAGE, 'file#FileService')
+ FileService = get_sdk(cli_ctx, ResourceType.DATA_STORAGE, 'file#FileService')
return generic_data_service_factory(
- FileService,
+ cli_ctx, FileService,
kwargs.pop('account_name', None),
kwargs.pop('account_key', None),
connection_string=kwargs.pop('connection_string', None),
@@ -58,7 +56,7 @@ def file_data_service_factory(cli_ctx, kwargs):
def page_blob_service_factory(cli_ctx, kwargs):
PageBlobService = get_sdk(cli_ctx, ResourceType.DATA_STORAGE, 'blob.pageblobservice#PageBlobService')
return generic_data_service_factory(
- PageBlobService,
+ cli_ctx, PageBlobService,
kwargs.pop('account_name', None),
kwargs.pop('account_key', None),
connection_string=kwargs.pop('connection_string', None),
@@ -71,17 +69,17 @@ def blob_data_service_factory(cli_ctx, kwargs):
blob_type = kwargs.get('blob_type')
blob_service = blob_types.get(blob_type, BlockBlobService)
return generic_data_service_factory(
- blob_service,
+ cli_ctx, blob_service,
kwargs.pop('account_name', None),
kwargs.pop('account_key', None),
connection_string=kwargs.pop('connection_string', None),
sas_token=kwargs.pop('sas_token', None))
-def table_data_service_factory(kwargs):
- TableService = get_table_data_type('table', 'TableService')
+def table_data_service_factory(cli_ctx, kwargs):
+ TableService = get_table_data_type(cli_ctx, 'table', 'TableService')
return generic_data_service_factory(
- TableService,
+ cli_ctx, TableService,
kwargs.pop('account_name', None),
kwargs.pop('account_key', None),
connection_string=kwargs.pop('connection_string', None),
@@ -91,7 +89,7 @@ def table_data_service_factory(kwargs):
def queue_data_service_factory(cli_ctx, kwargs):
QueueService = get_sdk(cli_ctx, ResourceType.DATA_STORAGE, 'queue#QueueService')
return generic_data_service_factory(
- QueueService,
+ cli_ctx, QueueService,
kwargs.pop('account_name', None),
kwargs.pop('account_key', None),
connection_string=kwargs.pop('connection_string', None),
@@ -115,7 +113,7 @@ def multi_service_properties_factory(cli_ctx, kwargs):
get_sdk(cli_ctx, ResourceType.DATA_STORAGE,
'blob.baseblobservice#BaseBlobService', 'file#FileService', 'queue#QueueService')
- TableService = get_table_data_type('table', 'TableService')
+ TableService = get_table_data_type(cli_ctx, 'table', 'TableService')
account_name = kwargs.pop('account_name', None)
account_key = kwargs.pop('account_key', None)
@@ -134,3 +132,6 @@ def get_creator(name, service_type):
}
return [creators[s]() for s in services]
+
+def cf_sa(cli_ctx, _):
+ return storage_client_factory(cli_ctx).storage_accounts
diff --git a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_command_type.py b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_command_type.py
index 6b433659105..b25c181f8c3 100644
--- a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_command_type.py
+++ b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_command_type.py
@@ -3,43 +3,52 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
-from azure.cli.core.profiles import supported_api_version
-from azure.cli.core.commands import create_command, command_table
-from ._validators import validate_client_parameters
-
-
-def cli_storage_data_plane_command(name, operation, client_factory, transform=None, table_transformer=None,
- exception_handler=None, resource_type=None, max_api=None, min_api=None):
- """ Registers an Azure CLI Storage Data Plane command. These commands always include the
- four parameters which can be used to obtain a storage client: account-name, account-key,
- connection-string, and sas-token. """
-
- if resource_type and (max_api or min_api):
- if not supported_api_version(resource_type, min_api=min_api, max_api=max_api):
- return
-
- command = create_command(__name__, name, operation, transform, table_transformer,
- client_factory, exception_handler=exception_handler)
- # add parameters required to create a storage client
- group_name = 'Storage Account'
- command.add_argument('account_name', '--account-name', required=False, default=None,
- arg_group=group_name,
- help='Storage account name. Related environment variable: AZURE_STORAGE_ACCOUNT. Must be used '
- 'in conjunction with either storage account key or a SAS token. If neither are present, '
- 'the command will try to query the storage account key using the authenticated Azure '
- 'account. If a large number of storage commands are executed the API quota may be hit')
- command.add_argument('account_key', '--account-key', required=False, default=None,
- arg_group=group_name,
- help='Storage account key. Must be used in conjunction with storage '
- 'account name. Environment variable: '
- 'AZURE_STORAGE_KEY')
- command.add_argument('connection_string', '--connection-string', required=False, default=None,
- validator=validate_client_parameters, arg_group=group_name,
- help='Storage account connection string. Environment variable: '
- 'AZURE_STORAGE_CONNECTION_STRING')
- command.add_argument('sas_token', '--sas-token', required=False, default=None,
- arg_group=group_name,
- help='A Shared Access Signature (SAS). Must be used in conjunction with '
- 'storage account name. Environment variable: '
- 'AZURE_STORAGE_SAS_TOKEN')
- command_table[command.name] = command
+from azure.cli.core.sdk.util import _CommandGroup
+
+from azure.cli.command_modules.storage._validators import validate_client_parameters
+
+
+class _StorageCommandGroup(_CommandGroup):
+
+ def data_plane_command(self, name, method_name=None, command_type=None, **kwargs):
+ """ Registers an Azure CLI Storage Data Plane command. These commands always include the
+ four parameters which can be used to obtain a storage client: account-name, account-key,
+ connection-string, and sas-token. """
+
+ self._check_stale()
+ merged_kwargs = self.group_kwargs.copy()
+ group_command_type = merged_kwargs.get('command_type', None)
+ if command_type:
+ merged_kwargs.update(command_type.settings)
+ elif group_command_type:
+ merged_kwargs.update(group_command_type.settings)
+ merged_kwargs.update(kwargs)
+
+ operations_tmpl = merged_kwargs.get('operations_tmpl')
+ command_name = '{} {}'.format(self.group_name, name) if self.group_name else name
+ operation = operations_tmpl.format(method_name) if operations_tmpl else None
+ self.command_loader._cli_command(command_name, operation, **merged_kwargs) # pylint: disable=protected-access
+
+ # add parameters required to create a storage client
+ command = self.command_loader.command_table[command_name]
+ group_name = 'Storage Account'
+ command.add_argument('account_name', '--account-name', required=False, default=None,
+ arg_group=group_name,
+ help='Storage account name. Related environment variable: AZURE_STORAGE_ACCOUNT. Must be used '
+ 'in conjunction with either storage account key or a SAS token. If neither are present, '
+ 'the command will try to query the storage account key using the authenticated Azure '
+ 'account. If a large number of storage commands are executed the API quota may be hit')
+ command.add_argument('account_key', '--account-key', required=False, default=None,
+ arg_group=group_name,
+ help='Storage account key. Must be used in conjunction with storage '
+ 'account name. Environment variable: '
+ 'AZURE_STORAGE_KEY')
+ command.add_argument('connection_string', '--connection-string', required=False, default=None,
+ validator=validate_client_parameters, arg_group=group_name,
+ help='Storage account connection string. Environment variable: '
+ 'AZURE_STORAGE_CONNECTION_STRING')
+ command.add_argument('sas_token', '--sas-token', required=False, default=None,
+ arg_group=group_name,
+ help='A Shared Access Signature (SAS). Must be used in conjunction with '
+ 'storage account name. Environment variable: '
+ 'AZURE_STORAGE_SAS_TOKEN')
diff --git a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_help.py b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_help.py
index 7badfa63e9b..fcad83dcb7c 100644
--- a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_help.py
+++ b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_help.py
@@ -108,6 +108,11 @@
text: az storage account show -g MyResourceGroup -n MyStorageAccount
"""
+helps['storage account show-usage'] = """
+ type: command
+ short-summary: Show the current count and limit of the storage accounts under the subscription.
+"""
+
helps['storage blob list'] = """
type: command
short-summary: List storage blobs in a container.
diff --git a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_params.py b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_params.py
index c4136e62d77..bf43cda091c 100644
--- a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_params.py
+++ b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_params.py
@@ -11,17 +11,16 @@
from azure.common import AzureMissingResourceHttpError
from azure.cli.core.commands.parameters import \
- (tags_type, file_type, get_resource_name_completion_list, model_choice_list, enum_default, location_type)
+ (tags_type, file_type, get_resource_name_completion_list, get_location_type, get_enum_type, get_three_state_flag)
from azure.cli.core.commands.validators import get_default_location_from_resource_group
import azure.cli.core.commands.arm # pylint: disable=unused-import
-from azure.cli.core.commands import register_cli_argument, register_extra_cli_argument, VersionConstraint
from azure.cli.core.profiles import get_sdk, ResourceType
-from knack.arguments import enum_choice_list, ignore_type, CLIArgumentType
+from knack.arguments import ignore_type, CLIArgumentType
-from .sdkutil import get_table_data_type
-from ._factory import get_storage_data_service_client
-from ._validators import \
+from azure.cli.command_modules.storage.sdkutil import get_table_data_type
+from azure.cli.command_modules.storage._client_factory import get_storage_data_service_client
+from azure.cli.command_modules.storage._validators import \
(get_datetime_type, get_file_path_validator, validate_metadata,
get_permission_validator, table_permission_validator, get_permission_help_string,
resource_type_type, services_type, ipv4_range_type, validate_entity,
@@ -29,118 +28,91 @@
validate_custom_domain, validate_public_access,
process_blob_upload_batch_parameters, process_blob_download_batch_parameters,
process_file_upload_batch_parameters, process_file_download_batch_parameters,
- get_content_setting_validator, validate_encryption, validate_accept,
+ get_content_setting_validator, validate_encryption_services, validate_accept,
validate_key, storage_account_key_options, validate_encryption_source,
process_file_download_namespace,
process_metric_update_namespace, process_blob_copy_batch_namespace,
get_source_file_or_blob_service_client, process_blob_source_uri,
- get_char_options_validator)
+ get_char_options_validator, validate_bypass)
-DeleteSnapshot, BlockBlobService, PageBlobService, AppendBlobService = get_sdk(ResourceType.DATA_STORAGE,
- 'DeleteSnapshot',
- 'BlockBlobService',
- 'PageBlobService',
- 'AppendBlobService',
- mod='blob')
+## UTILITY
-BlobContentSettings, ContainerPermissions, BlobPermissions, PublicAccess = get_sdk(ResourceType.DATA_STORAGE,
- 'ContentSettings',
- 'ContainerPermissions',
- 'BlobPermissions',
- 'PublicAccess',
- mod='blob.models')
+#public_access_types = {'off': None, 'blob': PublicAccess.Blob, 'container': PublicAccess.Container}
-FileContentSettings, SharePermissions, FilePermissions = get_sdk(ResourceType.DATA_STORAGE,
- 'ContentSettings',
- 'SharePermissions',
- 'FilePermissions',
- mod='file.models')
-TableService, TablePayloadFormat = get_table_data_type('table', 'TableService', 'TablePayloadFormat')
+#class CommandContext(object):
+# def __init__(self, scope):
+# self._scope = scope
-AccountPermissions = get_sdk(ResourceType.DATA_STORAGE, 'common.models#AccountPermissions')
+# def reg_arg(self, *args, **kwargs):
+# if not self._in_api_range(kwargs):
+# return register_cli_argument(self._scope, args[0], ignore_type)
-BaseBlobService, FileService, QueueService, QueuePermissions = get_sdk(ResourceType.DATA_STORAGE,
- 'blob.baseblobservice#BaseBlobService',
- 'file#FileService',
- 'queue#QueueService',
- 'queue.models#QueuePermissions')
+# return register_cli_argument(self._scope, *args, **kwargs)
-# UTILITY
+# def reg_extra_arg(self, *args, **kwargs):
+# return register_extra_cli_argument(self._scope, *args, **kwargs)
-public_access_types = {'off': None, 'blob': PublicAccess.Blob, 'container': PublicAccess.Container}
+# def ignore(self, argument):
+# return register_cli_argument(self._scope, argument, ignore_type)
+# def arg_group(self, name):
+# return ArgumentGroupContext(self._scope, name)
-class CommandContext(object):
- def __init__(self, scope):
- self._scope = scope
+# def __enter__(self):
+# return self
- def reg_arg(self, *args, **kwargs):
- if not self._in_api_range(kwargs):
- return register_cli_argument(self._scope, args[0], ignore_type)
+# def __exit__(self, exc_type, exc_val, exc_tb):
+# pass
- return register_cli_argument(self._scope, *args, **kwargs)
+# @staticmethod
+# def _in_api_range(kwargs):
+# resource_type = kwargs.pop('resource_type', None)
+# max_api = kwargs.pop('max_api', None)
+# min_api = kwargs.pop('min_api', None)
+# if resource_type and (max_api or min_api):
+# from azure.cli.core.profiles import supported_api_version
+# return supported_api_version(resource_type, min_api=min_api, max_api=max_api)
+# return True
- def reg_extra_arg(self, *args, **kwargs):
- return register_extra_cli_argument(self._scope, *args, **kwargs)
- def ignore(self, argument):
- return register_cli_argument(self._scope, argument, ignore_type)
+#class ArgumentGroupContext(CommandContext):
+# def __init__(self, scope, name):
+# CommandContext.__init__(self, scope)
+# self._name = name
- def arg_group(self, name):
- return ArgumentGroupContext(self._scope, name)
+# def __enter__(self):
+# return self
- def __enter__(self):
- return self
+# def __exit__(self, exc_type, exc_val, exc_tb):
+# pass
- def __exit__(self, exc_type, exc_val, exc_tb):
- pass
+# def reg_arg(self, *args, **kwargs):
+# kwargs['arg_group'] = self._name
+# return CommandContext.reg_arg(self, *args, **kwargs)
- @staticmethod
- def _in_api_range(kwargs):
- resource_type = kwargs.pop('resource_type', None)
- max_api = kwargs.pop('max_api', None)
- min_api = kwargs.pop('min_api', None)
- if resource_type and (max_api or min_api):
- from azure.cli.core.profiles import supported_api_version
- return supported_api_version(resource_type, min_api=min_api, max_api=max_api)
- return True
+# def reg_extra_arg(self, *args, **kwargs):
+# kwargs['arg_group'] = self._name
+# return CommandContext.reg_extra_arg(self, *args, **kwargs)
+## COMPLETERS
-class ArgumentGroupContext(CommandContext):
- def __init__(self, scope, name):
- CommandContext.__init__(self, scope)
- self._name = name
- def __enter__(self):
- return self
-
- def __exit__(self, exc_type, exc_val, exc_tb):
- pass
-
- def reg_arg(self, *args, **kwargs):
- kwargs['arg_group'] = self._name
- return CommandContext.reg_arg(self, *args, **kwargs)
-
- def reg_extra_arg(self, *args, **kwargs):
- kwargs['arg_group'] = self._name
- return CommandContext.reg_extra_arg(self, *args, **kwargs)
-
-# COMPLETERS
-
-
-def _get_client(service, parsed_args):
+def _get_client(cli_ctx, service, parsed_args):
account_name = getattr(parsed_args, 'account_name', None) or az_config.get('storage', 'account', None)
account_key = getattr(parsed_args, 'account_key', None) or az_config.get('storage', 'key', None)
connection_string = getattr(parsed_args, 'connection_string', None) or az_config.get('storage', 'connection_string', None)
sas_token = getattr(parsed_args, 'sas_token', None) or az_config.get('storage', 'sas_token', None)
return get_storage_data_service_client(
- service, account_name, account_key, connection_string, sas_token)
+ cli_ctx, service, account_name, account_key, connection_string, sas_token)
def get_storage_name_completion_list(service, func, parent=None):
- def completer(prefix, action, parsed_args, **kwargs): # pylint: disable=unused-argument
- client = _get_client(service, parsed_args)
+ from azure.cli.core.decorators import Completer
+
+ @Completer
+ def completer(cmd, prefix, namespace, **kwargs): # pylint: disable=unused-argument
+ client = _get_client(cmd.cli_ctx, service, parsed_args)
if parent:
parent_name = getattr(parsed_args, parent)
method = getattr(client, func)
@@ -151,554 +123,573 @@ def completer(prefix, action, parsed_args, **kwargs): # pylint: disable=unused-
return completer
-def get_storage_acl_name_completion_list(service, container_param, func):
- def completer(prefix, action, parsed_args, **kwargs): # pylint: disable=unused-argument
- client = _get_client(service, parsed_args)
- container_name = getattr(parsed_args, container_param)
- return list(getattr(client, func)(container_name))
- return completer
-
-
-def dir_path_completer(prefix, action, parsed_args, **kwargs): # pylint: disable=unused-argument
- client = _get_client(FileService, parsed_args)
- share_name = parsed_args.share_name
- directory_name = prefix or ''
- try:
- items = list(client.list_directories_and_files(share_name, directory_name))
- except AzureMissingResourceHttpError:
- directory_name = directory_name.rsplit('/', 1)[0] if '/' in directory_name else ''
- items = list(client.list_directories_and_files(share_name, directory_name))
-
- dir_list = [x for x in items if not hasattr(x.properties, 'content_length')]
- path_format = '{}{}/' if directory_name.endswith('/') or not directory_name else '{}/{}/'
- names = []
- for d in dir_list:
- name = path_format.format(directory_name, d.name)
- names.append(name)
- return sorted(names)
-
-
-def file_path_completer(prefix, action, parsed_args, **kwargs): # pylint: disable=unused-argument
- client = _get_client(FileService, parsed_args)
- share_name = parsed_args.share_name
- directory_name = prefix or ''
- try:
- items = list(client.list_directories_and_files(share_name, directory_name))
- except AzureMissingResourceHttpError:
- directory_name = directory_name.rsplit('/', 1)[0] if '/' in directory_name else ''
- items = list(client.list_directories_and_files(share_name, directory_name))
-
- path_format = '{}{}' if directory_name.endswith('/') or not directory_name else '{}/{}'
- names = []
- for i in items:
- name = path_format.format(directory_name, i.name)
- if not hasattr(i.properties, 'content_length'):
- name = '{}/'.format(name)
- names.append(name)
- return sorted(names)
-
-# PATH REGISTRATION
-
-
-def register_path_argument(scope, default_file_param=None, options_list=None):
- path_help = 'The path to the file within the file share.'
- if default_file_param:
- path_help = '{} If the file name is omitted, the source file name will be used.'.format(path_help)
- register_extra_cli_argument(scope, 'path', options_list=options_list or ('--path', '-p'), required=default_file_param is None, help=path_help, validator=get_file_path_validator(default_file_param=default_file_param), completer=file_path_completer)
- register_cli_argument(scope, 'file_name', ignore_type)
- register_cli_argument(scope, 'directory_name', ignore_type)
-
-# EXTRA PARAMETER SET REGISTRATION
-
-
-def register_content_settings_argument(scope, settings_class, update, arg_group=None, guess_from_file=None):
- register_cli_argument(scope, 'content_settings', ignore_type, validator=get_content_setting_validator(settings_class, update, guess_from_file=guess_from_file), arg_group=arg_group)
- register_extra_cli_argument(scope, 'content_type', default=None, help='The content MIME type.', arg_group=arg_group)
- register_extra_cli_argument(scope, 'content_encoding', default=None, help='The content encoding type.', arg_group=arg_group)
- register_extra_cli_argument(scope, 'content_language', default=None, help='The content language.', arg_group=arg_group)
- register_extra_cli_argument(scope, 'content_disposition', default=None, help='Conveys additional information about how to process the response payload, and can also be used to attach additional metadata.', arg_group=arg_group)
- register_extra_cli_argument(scope, 'content_cache_control', default=None, help='The cache control string.', arg_group=arg_group)
- register_extra_cli_argument(scope, 'content_md5', default=None, help='The content\'s MD5 hash.', arg_group=arg_group)
-
-
-def register_source_uri_arguments(scope):
- register_cli_argument(scope, 'copy_source', options_list=('--source-uri', '-u'), validator=validate_source_uri, required=False, arg_group='Copy Source')
- register_extra_cli_argument(scope, 'source_sas', default=None, help='The shared access signature for the source storage account.', arg_group='Copy Source')
- register_extra_cli_argument(scope, 'source_share', default=None, help='The share name for the source storage account.', arg_group='Copy Source')
- register_extra_cli_argument(scope, 'source_path', default=None, help='The file path for the source storage account.', arg_group='Copy Source')
- register_extra_cli_argument(scope, 'source_container', default=None, help='The container name for the source storage account.', arg_group='Copy Source')
- register_extra_cli_argument(scope, 'source_blob', default=None, help='The blob name for the source storage account.', arg_group='Copy Source')
- register_extra_cli_argument(scope, 'source_snapshot', default=None, help='The blob snapshot for the source storage account.', arg_group='Copy Source')
- register_extra_cli_argument(scope, 'source_account_name', default=None, help='The storage account name of the source blob.', arg_group='Copy Source')
- register_extra_cli_argument(scope, 'source_account_key', default=None, help='The storage account key of the source blob.', arg_group='Copy Source')
-
-
-def register_blob_source_uri_arguments(scope):
- register_cli_argument(scope, 'copy_source', options_list=('--source-uri', '-u'), validator=process_blob_source_uri, required=False, arg_group='Copy Source')
- register_extra_cli_argument(scope, 'source_sas', default=None, help='The shared access signature for the source storage account.', arg_group='Copy Source')
- register_extra_cli_argument(scope, 'source_container', default=None, help='The container name for the source storage account.', arg_group='Copy Source')
- register_extra_cli_argument(scope, 'source_blob', default=None, help='The blob name for the source storage account.', arg_group='Copy Source')
- register_extra_cli_argument(scope, 'source_snapshot', default=None, help='The blob snapshot for the source storage account.', arg_group='Copy Source')
- register_extra_cli_argument(scope, 'source_account_name', default=None, help='The storage account name of the source blob.', arg_group='Copy Source')
- register_extra_cli_argument(scope, 'source_account_key', default=None, help='The storage account key of the source blob.', arg_group='Copy Source')
-
-
-# CUSTOM CHOICE LISTS
-
-blob_types = {'block': BlockBlobService, 'page': PageBlobService, 'append': AppendBlobService}
-delete_snapshot_types = {'include': DeleteSnapshot.Include, 'only': DeleteSnapshot.Only}
-table_payload_formats = {'none': TablePayloadFormat.JSON_NO_METADATA, 'minimal': TablePayloadFormat.JSON_MINIMAL_METADATA, 'full': TablePayloadFormat.JSON_FULL_METADATA}
-
-# ARGUMENT TYPES
-
-account_name_type = CliArgumentType(options_list=('--account-name', '-n'), help='The storage account name.', completer=get_resource_name_completion_list('Microsoft.Storage/storageAccounts'), id_part='name')
-blob_name_type = CliArgumentType(options_list=('--blob-name', '-b'), help='The blob name.', completer=get_storage_name_completion_list(BaseBlobService, 'list_blobs', parent='container_name'))
-container_name_type = CliArgumentType(options_list=('--container-name', '-c'), help='The container name.', completer=get_storage_name_completion_list(BaseBlobService, 'list_containers'))
-directory_type = CliArgumentType(options_list=('--directory-name', '-d'), help='The directory name.', completer=get_storage_name_completion_list(FileService, 'list_directories_and_files', parent='share_name'))
-file_name_type = CliArgumentType(options_list=('--file-name', '-f'), completer=get_storage_name_completion_list(FileService, 'list_directories_and_files', parent='share_name'))
-share_name_type = CliArgumentType(options_list=('--share-name', '-s'), help='The file share name.', completer=get_storage_name_completion_list(FileService, 'list_shares'))
-table_name_type = CliArgumentType(options_list=('--table-name', '-t'), completer=get_storage_name_completion_list(TableService, 'list_tables'))
-queue_name_type = CliArgumentType(options_list=('--queue-name', '-q'), help='The queue name.', completer=get_storage_name_completion_list(QueueService, 'list_queues'))
-
-# PARAMETER REGISTRATIONS
-
-register_cli_argument('storage', 'directory_name', directory_type)
-register_cli_argument('storage', 'share_name', share_name_type)
-register_cli_argument('storage', 'table_name', table_name_type)
-register_cli_argument('storage', 'retry_wait', options_list=('--retry-interval',))
-register_cli_argument('storage', 'progress_callback', ignore_type)
-register_cli_argument('storage', 'metadata', nargs='+', help='Metadata in space-separated key=value pairs. This overwrites any existing metadata.', validator=validate_metadata)
-register_cli_argument('storage', 'timeout', help='Request timeout in seconds. Applies to each call to the service.', type=int)
-
-register_cli_argument('storage', 'if_modified_since', help='Alter only if modified since supplied UTC datetime (Y-m-d\'T\'H:M\'Z\')', type=get_datetime_type(False), arg_group='Pre-condition')
-register_cli_argument('storage', 'if_unmodified_since', help='Alter only if unmodified since supplied UTC datetime (Y-m-d\'T\'H:M\'Z\')', type=get_datetime_type(False), arg_group='Pre-condition')
-register_cli_argument('storage', 'if_match', arg_group='Pre-condition')
-register_cli_argument('storage', 'if_none_match', arg_group='Pre-condition')
-
-register_cli_argument('storage', 'container_name', container_name_type)
-
-for item in ['check-name', 'delete', 'list', 'show', 'show-usage', 'update', 'keys']:
- register_cli_argument('storage account {}'.format(item), 'account_name', account_name_type, options_list=('--name', '-n'))
-
-register_cli_argument('storage account show-connection-string', 'account_name', account_name_type, options_list=('--name', '-n'))
-register_cli_argument('storage account show-connection-string', 'protocol', help='The default endpoint protocol.', **enum_choice_list(['http', 'https']))
-register_cli_argument('storage account show-connection-string', 'key_name', options_list=('--key',), help='The key to use.', **enum_choice_list(list(storage_account_key_options.keys())))
-for item in ['blob', 'file', 'queue', 'table']:
- register_cli_argument('storage account show-connection-string', '{}_endpoint'.format(item), help='Custom endpoint for {}s.'.format(item))
-
-
-def register_common_storage_account_options(context):
- context.reg_arg('https_only', help='Allows https traffic only to storage service.', arg_type=get_three_state_flag())
- context.reg_arg('sku', help='The storage account SKU.', **model_choice_list(ResourceType.MGMT_STORAGE, 'SkuName'))
- context.reg_arg('assign_identity', help='Generate and assign a new Storage Account Identity for this storage '
- 'account for use with key management services like Azure KeyVault.',
- action='store_true', resource_type=ResourceType.MGMT_STORAGE, min_api='2017-06-01')
- context.reg_arg('access_tier', help='The access tier used for billing StandardBlob accounts. Cannot be set for '
- 'StandardLRS, StandardGRS, StandardRAGRS, or PremiumLRS account types. It is '
- 'required for StandardBlob accounts during creation',
- **model_choice_list(ResourceType.MGMT_STORAGE, 'AccessTier'))
-
- encryption_services_model = get_sdk(ResourceType.MGMT_STORAGE, 'models#EncryptionServices')
- if encryption_services_model:
- encryption_choices = list(encryption_services_model._attribute_map.keys()) # pylint: disable=protected-access
- context.reg_arg('encryption', nargs='+', help='Specifies which service(s) to encrypt.',
- validator=validate_encryption,
- resource_type=ResourceType.MGMT_STORAGE, min_api='2016-12-01',
- **enum_choice_list(encryption_choices))
-
-
-with CommandContext('storage account create') as c:
- register_common_storage_account_options(c)
- c.reg_arg('location', location_type, validator=get_default_location_from_resource_group)
- c.reg_arg('account_type', help='The storage account type',
- **model_choice_list(ResourceType.MGMT_STORAGE, 'AccountType'))
- c.reg_arg('account_name', account_name_type, options_list=('--name', '-n'), completer=None)
- c.reg_arg('kind', help='Indicates the type of storage account.',
- default=enum_default(ResourceType.MGMT_STORAGE, 'Kind', 'storage'),
- **model_choice_list(ResourceType.MGMT_STORAGE, 'Kind'))
- c.reg_arg('tags', tags_type)
- c.reg_arg('custom_domain', help='User domain assigned to the storage account. Name is the CNAME source.')
- c.reg_arg('sku', help='The storage account SKU.', default=enum_default(ResourceType.MGMT_STORAGE, 'SkuName', 'standard_ragrs'),
- **model_choice_list(ResourceType.MGMT_STORAGE, 'SkuName'))
-
-with CommandContext('storage account update') as c:
- register_common_storage_account_options(c)
- c.reg_arg('custom_domain', help='User domain assigned to the storage account. Name is the CNAME source. Use "" to '
- 'clear existing value.',
- validator=validate_custom_domain)
- c.reg_arg('use_subdomain', help='Specify whether to use indirect CNAME validation.',
- **enum_choice_list(['true', 'false']))
- c.reg_arg('tags', tags_type, default=None)
-
-
-register_cli_argument('storage account keys renew', 'key_name', options_list=('--key',), help='The key to regenerate.', validator=validate_key, **enum_choice_list(list(storage_account_key_options.keys())))
-register_cli_argument('storage account keys renew', 'account_name', account_name_type, id_part=None)
-register_cli_argument('storage account keys list', 'account_name', account_name_type, id_part=None)
-
-register_cli_argument('storage blob', 'blob_name', blob_name_type, options_list=('--name', '-n'))
-
-for item in ['container', 'blob']:
- register_cli_argument('storage {} lease'.format(item), 'lease_duration', type=int)
- register_cli_argument('storage {} lease'.format(item), 'lease_break_period', type=int)
-
-register_cli_argument('storage blob lease', 'blob_name', blob_name_type)
-
-for source in ['destination', 'source']:
- register_cli_argument('storage blob copy', '{}_if_modified_since'.format(source), arg_group='Pre-condition')
- register_cli_argument('storage blob copy', '{}_if_unmodified_since'.format(source), arg_group='Pre-condition')
- register_cli_argument('storage blob copy', '{}_if_match'.format(source), arg_group='Pre-condition')
- register_cli_argument('storage blob copy', '{}_if_none_match'.format(source), arg_group='Pre-condition')
-register_cli_argument('storage blob copy', 'container_name', container_name_type, options_list=('--destination-container', '-c'))
-register_cli_argument('storage blob copy', 'blob_name', blob_name_type, options_list=('--destination-blob', '-b'), help='Name of the destination blob. If the exists, it will be overwritten.')
-register_cli_argument('storage blob copy', 'source_lease_id', arg_group='Copy Source')
-
-# BLOB INCREMENTAL COPY PARAMETERS
-register_blob_source_uri_arguments('storage blob incremental-copy start')
-register_cli_argument('storage blob incremental-copy start', 'destination_if_modified_since', arg_group='Pre-condition')
-register_cli_argument('storage blob incremental-copy start', 'destination_if_unmodified_since', arg_group='Pre-condition')
-register_cli_argument('storage blob incremental-copy start', 'destination_if_match', arg_group='Pre-condition')
-register_cli_argument('storage blob incremental-copy start', 'destination_if_none_match', arg_group='Pre-condition')
-register_cli_argument('storage blob incremental-copy start', 'container_name', container_name_type, options_list=('--destination-container', '-c'))
-register_cli_argument('storage blob incremental-copy start', 'blob_name', blob_name_type, options_list=('--destination-blob', '-b'), help='Name of the destination blob. If the exists, it will be overwritten.')
-register_cli_argument('storage blob incremental-copy start', 'source_lease_id', arg_group='Copy Source')
-
-register_cli_argument('storage blob delete', 'delete_snapshots', **enum_choice_list(list(delete_snapshot_types.keys())))
-
-register_cli_argument('storage blob exists', 'blob_name', required=True)
-
-with CommandContext('storage blob list') as c:
- c.reg_arg('include',
- help='Specifies additional datasets to include: (c)opy-info, (m)etadata, (s)napshots. Can be combined.',
- validator=validate_included_datasets)
- c.reg_arg('num_results', type=int)
- c.reg_arg('marker', ignore_type) # https://github.com/Azure/azure-cli/issues/3745
-
-for item in ['download', 'upload']:
- register_cli_argument('storage blob {}'.format(item), 'file_path', options_list=('--file', '-f'), type=file_type, completer=FilesCompleter())
- register_cli_argument('storage blob {}'.format(item), 'max_connections', type=int)
- with VersionConstraint(ResourceType.DATA_STORAGE, min_api='2016-05-31') as c:
- c.register_cli_argument('storage blob {}'.format(item), 'validate_content', action='store_true')
-
-for item in ['update', 'upload', 'upload-batch']:
- register_content_settings_argument('storage blob {}'.format(item), BlobContentSettings, item == 'update')
-
-register_cli_argument('storage blob upload', 'blob_type', help="Defaults to 'page' for *.vhd files, or 'block' otherwise.", options_list=('--type', '-t'), validator=validate_blob_type, **enum_choice_list(blob_types.keys()))
-register_cli_argument('storage blob upload', 'maxsize_condition', help='The max length in bytes permitted for an append blob.')
-with VersionConstraint(ResourceType.DATA_STORAGE, min_api='2016-05-31') as c:
- c.register_cli_argument('storage blob upload', 'validate_content', help='Specifies that an MD5 hash shall be calculated for each chunk of the blob and verified by the service when the chunk has arrived.')
-
-# TODO: Remove once #807 is complete. Smart Create Generation requires this parameter.
-register_extra_cli_argument('storage blob upload', '_subscription_id', options_list=('--subscription',), help=argparse.SUPPRESS)
-
-# BLOB DOWNLOAD-BATCH PARAMETERS
-register_cli_argument('storage blob download-batch', 'destination', options_list=('--destination', '-d'))
-register_cli_argument('storage blob download-batch', 'source', options_list=('--source', '-s'),
- validator=process_blob_download_batch_parameters)
-
-register_cli_argument('storage blob download-batch', 'source_container_name', ignore_type)
-
-
-# BLOB DELETE-BATCH PARAMETERS
-register_cli_argument('storage blob delete-batch', 'source', options_list=('--source', '-s'),
- validator=process_blob_batch_source_parameters)
-
-register_cli_argument('storage blob delete-batch', 'source_container_name', ignore_type)
-register_cli_argument('storage blob delete-batch', 'delete_snapshots', **enum_choice_list(list(delete_snapshot_types.keys())))
-
-
-# BLOB UPLOAD-BATCH PARAMETERS
-register_cli_argument('storage blob upload-batch', 'destination', options_list=('--destination', '-d'))
-register_cli_argument('storage blob upload-batch', 'source', options_list=('--source', '-s'),
- validator=process_blob_upload_batch_parameters)
-
-register_cli_argument('storage blob upload-batch', 'source_files', ignore_type)
-register_cli_argument('storage blob upload-batch', 'destination_container_name', ignore_type)
-
-register_cli_argument('storage blob upload-batch', 'blob_type',
- help="Defaults to 'page' for *.vhd files, or 'block' otherwise. The setting will override blob types for every file.",
- options_list=('--type', '-t'),
- **enum_choice_list(blob_types.keys()))
-register_cli_argument('storage blob upload-batch', 'maxsize_condition',
- help='The max length in bytes permitted for an append blob.',
- arg_group='Content Control')
-with VersionConstraint(ResourceType.DATA_STORAGE, min_api='2016-05-31') as c:
- c.register_cli_argument('storage blob upload-batch', 'validate_content',
- help='Specifies that an MD5 hash shall be calculated for each chunk of the blob and verified by' +
- ' the service when the chunk has arrived.',
- arg_group='Content Control')
-register_cli_argument('storage blob upload-batch', 'lease_id', help='Required if the blob has an active lease')
-register_cli_argument('storage blob upload-batch', 'content_encoding', arg_group='Content Control')
-register_cli_argument('storage blob upload-batch', 'content_disposition', arg_group='Content Control')
-register_cli_argument('storage blob upload-batch', 'content_md5', arg_group='Content Control')
-register_cli_argument('storage blob upload-batch', 'content_type', arg_group='Content Control')
-register_cli_argument('storage blob upload-batch', 'content_cache_control', arg_group='Content Control')
-register_cli_argument('storage blob upload-batch', 'content_language', arg_group='Content Control')
-register_cli_argument('storage blob upload-batch', 'max_connections', type=int)
-
-# BLOB COPY-BATCH PARAMETERS
-
-with CommandContext('storage blob copy start-batch') as c:
- c.reg_arg('source_client', ignore_type, validator=get_source_file_or_blob_service_client)
-
- with c.arg_group('Copy Source') as group:
- group.reg_extra_arg('source_account_name')
- group.reg_extra_arg('source_account_key')
- group.reg_extra_arg('source_uri')
- group.reg_arg('source_sas')
- group.reg_arg('source_container')
- group.reg_arg('source_share')
- group.reg_arg('prefix', validator=process_blob_copy_batch_namespace)
-
-# FILE UPLOAD-BATCH PARAMETERS
-with CommandContext('storage file upload-batch') as c:
- c.reg_arg('source', options_list=('--source', '-s'), validator=process_file_upload_batch_parameters)
- c.reg_arg('destination', options_list=('--destination', '-d'))
-
- with c.arg_group('Download Control') as group:
- group.reg_arg('max_connections')
-
- with VersionConstraint(ResourceType.DATA_STORAGE, min_api='2016-05-31') as vc:
- vc.register_cli_argument('storage file upload-batch', 'validate_content')
-
-register_content_settings_argument('storage file upload-batch', FileContentSettings,
- update=False, arg_group='Content Settings')
+#def get_storage_acl_name_completion_list(service, container_param, func):
+# def completer(prefix, action, parsed_args, **kwargs): # pylint: disable=unused-argument
+# client = _get_client(service, parsed_args)
+# container_name = getattr(parsed_args, container_param)
+# return list(getattr(client, func)(container_name))
+# return completer
+
+
+#def dir_path_completer(prefix, action, parsed_args, **kwargs): # pylint: disable=unused-argument
+# client = _get_client(FileService, parsed_args)
+# share_name = parsed_args.share_name
+# directory_name = prefix or ''
+# try:
+# items = list(client.list_directories_and_files(share_name, directory_name))
+# except AzureMissingResourceHttpError:
+# directory_name = directory_name.rsplit('/', 1)[0] if '/' in directory_name else ''
+# items = list(client.list_directories_and_files(share_name, directory_name))
+
+# dir_list = [x for x in items if not hasattr(x.properties, 'content_length')]
+# path_format = '{}{}/' if directory_name.endswith('/') or not directory_name else '{}/{}/'
+# names = []
+# for d in dir_list:
+# name = path_format.format(directory_name, d.name)
+# names.append(name)
+# return sorted(names)
+
+
+#def file_path_completer(prefix, action, parsed_args, **kwargs): # pylint: disable=unused-argument
+# client = _get_client(FileService, parsed_args)
+# share_name = parsed_args.share_name
+# directory_name = prefix or ''
+# try:
+# items = list(client.list_directories_and_files(share_name, directory_name))
+# except AzureMissingResourceHttpError:
+# directory_name = directory_name.rsplit('/', 1)[0] if '/' in directory_name else ''
+# items = list(client.list_directories_and_files(share_name, directory_name))
+
+# path_format = '{}{}' if directory_name.endswith('/') or not directory_name else '{}/{}'
+# names = []
+# for i in items:
+# name = path_format.format(directory_name, i.name)
+# if not hasattr(i.properties, 'content_length'):
+# name = '{}/'.format(name)
+# names.append(name)
+# return sorted(names)
+
+## PATH REGISTRATION
+
+
+#def register_path_argument(scope, default_file_param=None, options_list=None):
+# path_help = 'The path to the file within the file share.'
+# if default_file_param:
+# path_help = '{} If the file name is omitted, the source file name will be used.'.format(path_help)
+# register_extra_cli_argument(scope, 'path', options_list=options_list or ('--path', '-p'), required=default_file_param is None, help=path_help, validator=get_file_path_validator(default_file_param=default_file_param), completer=file_path_completer)
+# register_cli_argument(scope, 'file_name', ignore_type)
+# register_cli_argument(scope, 'directory_name', ignore_type)
+
+## EXTRA PARAMETER SET REGISTRATION
+
+
+#def register_content_settings_argument(scope, settings_class, update, arg_group=None, guess_from_file=None):
+# register_cli_argument(scope, 'content_settings', ignore_type, validator=get_content_setting_validator(settings_class, update, guess_from_file=guess_from_file), arg_group=arg_group)
+# register_extra_cli_argument(scope, 'content_type', default=None, help='The content MIME type.', arg_group=arg_group)
+# register_extra_cli_argument(scope, 'content_encoding', default=None, help='The content encoding type.', arg_group=arg_group)
+# register_extra_cli_argument(scope, 'content_language', default=None, help='The content language.', arg_group=arg_group)
+# register_extra_cli_argument(scope, 'content_disposition', default=None, help='Conveys additional information about how to process the response payload, and can also be used to attach additional metadata.', arg_group=arg_group)
+# register_extra_cli_argument(scope, 'content_cache_control', default=None, help='The cache control string.', arg_group=arg_group)
+# register_extra_cli_argument(scope, 'content_md5', default=None, help='The content\'s MD5 hash.', arg_group=arg_group)
+
+
+#def register_source_uri_arguments(scope):
+# register_cli_argument(scope, 'copy_source', options_list=('--source-uri', '-u'), validator=validate_source_uri, required=False, arg_group='Copy Source')
+# register_extra_cli_argument(scope, 'source_sas', default=None, help='The shared access signature for the source storage account.', arg_group='Copy Source')
+# register_extra_cli_argument(scope, 'source_share', default=None, help='The share name for the source storage account.', arg_group='Copy Source')
+# register_extra_cli_argument(scope, 'source_path', default=None, help='The file path for the source storage account.', arg_group='Copy Source')
+# register_extra_cli_argument(scope, 'source_container', default=None, help='The container name for the source storage account.', arg_group='Copy Source')
+# register_extra_cli_argument(scope, 'source_blob', default=None, help='The blob name for the source storage account.', arg_group='Copy Source')
+# register_extra_cli_argument(scope, 'source_snapshot', default=None, help='The blob snapshot for the source storage account.', arg_group='Copy Source')
+# register_extra_cli_argument(scope, 'source_account_name', default=None, help='The storage account name of the source blob.', arg_group='Copy Source')
+# register_extra_cli_argument(scope, 'source_account_key', default=None, help='The storage account key of the source blob.', arg_group='Copy Source')
+
+
+#def register_blob_source_uri_arguments(scope):
+# register_cli_argument(scope, 'copy_source', options_list=('--source-uri', '-u'), validator=process_blob_source_uri, required=False, arg_group='Copy Source')
+# register_extra_cli_argument(scope, 'source_sas', default=None, help='The shared access signature for the source storage account.', arg_group='Copy Source')
+# register_extra_cli_argument(scope, 'source_container', default=None, help='The container name for the source storage account.', arg_group='Copy Source')
+# register_extra_cli_argument(scope, 'source_blob', default=None, help='The blob name for the source storage account.', arg_group='Copy Source')
+# register_extra_cli_argument(scope, 'source_snapshot', default=None, help='The blob snapshot for the source storage account.', arg_group='Copy Source')
+# register_extra_cli_argument(scope, 'source_account_name', default=None, help='The storage account name of the source blob.', arg_group='Copy Source')
+# register_extra_cli_argument(scope, 'source_account_key', default=None, help='The storage account key of the source blob.', arg_group='Copy Source')
+
+
+## CUSTOM CHOICE LISTS
+
+#blob_types = {'block': BlockBlobService, 'page': PageBlobService, 'append': AppendBlobService}
+#delete_snapshot_types = {'include': DeleteSnapshot.Include, 'only': DeleteSnapshot.Only}
+#table_payload_formats = {'none': TablePayloadFormat.JSON_NO_METADATA, 'minimal': TablePayloadFormat.JSON_MINIMAL_METADATA, 'full': TablePayloadFormat.JSON_FULL_METADATA}
+
+## PARAMETER REGISTRATIONS
+
+
+#register_cli_argument('storage blob', 'blob_name', blob_name_type, options_list=('--name', '-n'))
+
+#for item in ['container', 'blob']:
+# register_cli_argument('storage {} lease'.format(item), 'lease_duration', type=int)
+# register_cli_argument('storage {} lease'.format(item), 'lease_break_period', type=int)
+
+#register_cli_argument('storage blob lease', 'blob_name', blob_name_type)
+
+#for source in ['destination', 'source']:
+# register_cli_argument('storage blob copy', '{}_if_modified_since'.format(source), arg_group='Pre-condition')
+# register_cli_argument('storage blob copy', '{}_if_unmodified_since'.format(source), arg_group='Pre-condition')
+# register_cli_argument('storage blob copy', '{}_if_match'.format(source), arg_group='Pre-condition')
+# register_cli_argument('storage blob copy', '{}_if_none_match'.format(source), arg_group='Pre-condition')
+#register_cli_argument('storage blob copy', 'container_name', container_name_type, options_list=('--destination-container', '-c'))
+#register_cli_argument('storage blob copy', 'blob_name', blob_name_type, options_list=('--destination-blob', '-b'), help='Name of the destination blob. If the exists, it will be overwritten.')
+#register_cli_argument('storage blob copy', 'source_lease_id', arg_group='Copy Source')
+
+## BLOB INCREMENTAL COPY PARAMETERS
+#register_blob_source_uri_arguments('storage blob incremental-copy start')
+#register_cli_argument('storage blob incremental-copy start', 'destination_if_modified_since', arg_group='Pre-condition')
+#register_cli_argument('storage blob incremental-copy start', 'destination_if_unmodified_since', arg_group='Pre-condition')
+#register_cli_argument('storage blob incremental-copy start', 'destination_if_match', arg_group='Pre-condition')
+#register_cli_argument('storage blob incremental-copy start', 'destination_if_none_match', arg_group='Pre-condition')
+#register_cli_argument('storage blob incremental-copy start', 'container_name', container_name_type, options_list=('--destination-container', '-c'))
+#register_cli_argument('storage blob incremental-copy start', 'blob_name', blob_name_type, options_list=('--destination-blob', '-b'), help='Name of the destination blob. If the exists, it will be overwritten.')
+#register_cli_argument('storage blob incremental-copy start', 'source_lease_id', arg_group='Copy Source')
+
+#register_cli_argument('storage blob delete', 'delete_snapshots', **enum_choice_list(list(delete_snapshot_types.keys())))
+
+#register_cli_argument('storage blob exists', 'blob_name', required=True)
+
+#with CommandContext('storage blob list') as c:
+# c.argument('include',
+# help='Specifies additional datasets to include: (c)opy-info, (m)etadata, (s)napshots. Can be combined.',
+# validator=validate_included_datasets)
+# c.argument('num_results', type=int)
+# c.argument('marker', ignore_type) # https://github.com/Azure/azure-cli/issues/3745
+
+#for item in ['download', 'upload']:
+# register_cli_argument('storage blob {}'.format(item), 'file_path', options_list=('--file', '-f'), type=file_type, completer=FilesCompleter())
+# register_cli_argument('storage blob {}'.format(item), 'max_connections', type=int)
+# with VersionConstraint(ResourceType.DATA_STORAGE, min_api='2016-05-31') as c:
+# c.register_cli_argument('storage blob {}'.format(item), 'validate_content', action='store_true')
+
+#for item in ['update', 'upload', 'upload-batch']:
+# register_content_settings_argument('storage blob {}'.format(item), BlobContentSettings, item == 'update')
+
+#register_cli_argument('storage blob upload', 'blob_type', help="Defaults to 'page' for *.vhd files, or 'block' otherwise.", options_list=('--type', '-t'), validator=validate_blob_type, **enum_choice_list(blob_types.keys()))
+#register_cli_argument('storage blob upload', 'maxsize_condition', help='The max length in bytes permitted for an append blob.')
+#with VersionConstraint(ResourceType.DATA_STORAGE, min_api='2016-05-31') as c:
+# c.register_cli_argument('storage blob upload', 'validate_content', help='Specifies that an MD5 hash shall be calculated for each chunk of the blob and verified by the service when the chunk has arrived.')
+
+## TODO: Remove once #807 is complete. Smart Create Generation requires this parameter.
+#register_extra_cli_argument('storage blob upload', '_subscription_id', options_list=('--subscription',), help=argparse.SUPPRESS)
+
+## BLOB DOWNLOAD-BATCH PARAMETERS
+#register_cli_argument('storage blob download-batch', 'destination', options_list=('--destination', '-d'))
+#register_cli_argument('storage blob download-batch', 'source', options_list=('--source', '-s'),
+# validator=process_blob_download_batch_parameters)
+
+#register_cli_argument('storage blob download-batch', 'source_container_name', ignore_type)
+
+
+## BLOB DELETE-BATCH PARAMETERS
+#register_cli_argument('storage blob delete-batch', 'source', options_list=('--source', '-s'),
+# validator=process_blob_batch_source_parameters)
+
+#register_cli_argument('storage blob delete-batch', 'source_container_name', ignore_type)
+#register_cli_argument('storage blob delete-batch', 'delete_snapshots', **enum_choice_list(list(delete_snapshot_types.keys())))
+
+
+## BLOB UPLOAD-BATCH PARAMETERS
+#register_cli_argument('storage blob upload-batch', 'destination', options_list=('--destination', '-d'))
+#register_cli_argument('storage blob upload-batch', 'source', options_list=('--source', '-s'),
+# validator=process_blob_upload_batch_parameters)
+
+#register_cli_argument('storage blob upload-batch', 'source_files', ignore_type)
+#register_cli_argument('storage blob upload-batch', 'destination_container_name', ignore_type)
-# FILE DOWNLOAD-BATCH PARAMETERS
-with CommandContext('storage file download-batch') as c:
- c.reg_arg('source', options_list=('--source', '-s'), validator=process_file_download_batch_parameters)
- c.reg_arg('destination', options_list=('--destination', '-d'))
+#register_cli_argument('storage blob upload-batch', 'blob_type',
+# help="Defaults to 'page' for *.vhd files, or 'block' otherwise. The setting will override blob types for every file.",
+# options_list=('--type', '-t'),
+# **enum_choice_list(blob_types.keys()))
+#register_cli_argument('storage blob upload-batch', 'maxsize_condition',
+# help='The max length in bytes permitted for an append blob.',
+# arg_group='Content Control')
+#with VersionConstraint(ResourceType.DATA_STORAGE, min_api='2016-05-31') as c:
+# c.register_cli_argument('storage blob upload-batch', 'validate_content',
+# help='Specifies that an MD5 hash shall be calculated for each chunk of the blob and verified by' +
+# ' the service when the chunk has arrived.',
+# arg_group='Content Control')
+#register_cli_argument('storage blob upload-batch', 'lease_id', help='Required if the blob has an active lease')
+#register_cli_argument('storage blob upload-batch', 'content_encoding', arg_group='Content Control')
+#register_cli_argument('storage blob upload-batch', 'content_disposition', arg_group='Content Control')
+#register_cli_argument('storage blob upload-batch', 'content_md5', arg_group='Content Control')
+#register_cli_argument('storage blob upload-batch', 'content_type', arg_group='Content Control')
+#register_cli_argument('storage blob upload-batch', 'content_cache_control', arg_group='Content Control')
+#register_cli_argument('storage blob upload-batch', 'content_language', arg_group='Content Control')
+#register_cli_argument('storage blob upload-batch', 'max_connections', type=int)
- with c.arg_group('Download Control') as group:
- group.reg_arg('max_connections')
+## BLOB COPY-BATCH PARAMETERS
- with VersionConstraint(ResourceType.DATA_STORAGE, min_api='2016-05-31') as vc:
- vc.register_cli_argument('storage file download-batch', 'validate_content')
+#with CommandContext('storage blob copy start-batch') as c:
+# c.argument('source_client', ignore_type, validator=get_source_file_or_blob_service_client)
+
+# with c.arg_group('Copy Source') as group:
+# group.reg_extra_arg('source_account_name')
+# group.reg_extra_arg('source_account_key')
+# group.reg_extra_arg('source_uri')
+# group.reg_arg('source_sas')
+# group.reg_arg('source_container')
+# group.reg_arg('source_share')
+# group.reg_arg('prefix', validator=process_blob_copy_batch_namespace)
-# FILE DELETE-BATCH PARAMETERS
-with CommandContext('storage file delete-batch') as c:
- c.reg_arg('source', options_list=('--source', '-s'), validator=process_file_batch_source_parameters)
+## FILE UPLOAD-BATCH PARAMETERS
+#with CommandContext('storage file upload-batch') as c:
+# c.argument('source', options_list=('--source', '-s'), validator=process_file_upload_batch_parameters)
+# c.argument('destination', options_list=('--destination', '-d'))
-# FILE COPY-BATCH PARAMETERS
-with CommandContext('storage file copy start-batch') as c:
- c.reg_arg('source_client', ignore_type, validator=get_source_file_or_blob_service_client)
+# with c.arg_group('Download Control') as group:
+# group.reg_arg('max_connections')
- with c.arg_group('Copy Source') as group:
- group.reg_extra_arg('source_account_name')
- group.reg_extra_arg('source_account_key')
- group.reg_extra_arg('source_uri')
- group.reg_arg('source_sas')
- group.reg_arg('source_container')
- group.reg_arg('source_share')
+# with VersionConstraint(ResourceType.DATA_STORAGE, min_api='2016-05-31') as vc:
+# vc.register_cli_argument('storage file upload-batch', 'validate_content')
-for item in ['file', 'blob']:
- register_cli_argument('storage {} url'.format(item), 'protocol', help='Protocol to use.', default='https', **enum_choice_list(['http', 'https']))
- register_source_uri_arguments('storage {} copy start'.format(item))
+#register_content_settings_argument('storage file upload-batch', FileContentSettings,
+# update=False, arg_group='Content Settings')
-register_cli_argument('storage container', 'container_name', container_name_type, options_list=('--name', '-n'))
-register_cli_argument('storage container', 'public_access', validator=validate_public_access, help='Specifies whether data in the container may be accessed publically. By default, container data is private ("off") to the account owner. Use "blob" to allow public read access for blobs. Use "container" to allow public read and list access to the entire container.', **enum_choice_list(public_access_types.keys()))
+## FILE DOWNLOAD-BATCH PARAMETERS
+#with CommandContext('storage file download-batch') as c:
+# c.argument('source', options_list=('--source', '-s'), validator=process_file_download_batch_parameters)
+# c.argument('destination', options_list=('--destination', '-d'))
-register_cli_argument('storage container create', 'container_name', container_name_type, options_list=('--name', '-n'), completer=None)
-register_cli_argument('storage container create', 'fail_on_exist', help='Throw an exception if the container already exists.')
+# with c.arg_group('Download Control') as group:
+# group.reg_arg('max_connections')
-register_cli_argument('storage container delete', 'fail_not_exist', help='Throw an exception if the container does not exist.')
+# with VersionConstraint(ResourceType.DATA_STORAGE, min_api='2016-05-31') as vc:
+# vc.register_cli_argument('storage file download-batch', 'validate_content')
-register_cli_argument('storage container exists', 'blob_name', ignore_type)
-register_cli_argument('storage container exists', 'snapshot', ignore_type)
+## FILE DELETE-BATCH PARAMETERS
+#with CommandContext('storage file delete-batch') as c:
+# c.argument('source', options_list=('--source', '-s'), validator=process_file_batch_source_parameters)
-register_cli_argument('storage container set-permission', 'signed_identifiers', ignore_type)
+## FILE COPY-BATCH PARAMETERS
+#with CommandContext('storage file copy start-batch') as c:
+# c.argument('source_client', ignore_type, validator=get_source_file_or_blob_service_client)
-register_cli_argument('storage container lease', 'container_name', container_name_type)
+# with c.arg_group('Copy Source') as group:
+# group.reg_extra_arg('source_account_name')
+# group.reg_extra_arg('source_account_key')
+# group.reg_extra_arg('source_uri')
+# group.reg_arg('source_sas')
+# group.reg_arg('source_container')
+# group.reg_arg('source_share')
-register_cli_argument('storage container policy', 'container_name', container_name_type)
-register_cli_argument('storage container policy', 'policy_name', options_list=('--name', '-n'), help='The stored access policy name.', completer=get_storage_acl_name_completion_list(BaseBlobService, 'container_name', 'get_container_acl'))
-for item in ['create', 'delete', 'list', 'show', 'update']:
- register_extra_cli_argument('storage container policy {}'.format(item), 'lease_id', options_list=('--lease-id',), help='The container lease ID.')
+#for item in ['file', 'blob']:
+# register_cli_argument('storage {} url'.format(item), 'protocol', help='Protocol to use.', default='https', **enum_choice_list(['http', 'https']))
+# register_source_uri_arguments('storage {} copy start'.format(item))
-register_cli_argument('storage container list', 'marker', ignore_type) # https://github.com/Azure/azure-cli/issues/3745
+#register_cli_argument('storage container', 'container_name', container_name_type, options_list=('--name', '-n'))
+#register_cli_argument('storage container', 'public_access', validator=validate_public_access, help='Specifies whether data in the container may be accessed publically. By default, container data is private ("off") to the account owner. Use "blob" to allow public read access for blobs. Use "container" to allow public read and list access to the entire container.', **enum_choice_list(public_access_types.keys()))
-register_cli_argument('storage share', 'share_name', share_name_type, options_list=('--name', '-n'))
+#register_cli_argument('storage container create', 'container_name', container_name_type, options_list=('--name', '-n'), completer=None)
+#register_cli_argument('storage container create', 'fail_on_exist', help='Throw an exception if the container already exists.')
-register_cli_argument('storage share exists', 'directory_name', ignore_type)
-register_cli_argument('storage share exists', 'file_name', ignore_type)
+#register_cli_argument('storage container delete', 'fail_not_exist', help='Throw an exception if the container does not exist.')
-register_cli_argument('storage share policy', 'container_name', share_name_type)
-register_cli_argument('storage share policy', 'policy_name', options_list=('--name', '-n'), help='The stored access policy name.', completer=get_storage_acl_name_completion_list(FileService, 'container_name', 'get_share_acl'))
+#register_cli_argument('storage container exists', 'blob_name', ignore_type)
+#register_cli_argument('storage container exists', 'snapshot', ignore_type)
-register_cli_argument('storage share list', 'marker', ignore_type) # https://github.com/Azure/azure-cli/issues/3745
-register_cli_argument('storage share delete', 'delete_snapshots',
- help='Specify the deletion strategy when the share has snapshots.',
- **enum_choice_list(list(delete_snapshot_types.keys())))
+#register_cli_argument('storage container set-permission', 'signed_identifiers', ignore_type)
-register_cli_argument('storage directory', 'directory_name', directory_type, options_list=('--name', '-n'))
+#register_cli_argument('storage container lease', 'container_name', container_name_type)
-register_cli_argument('storage directory exists', 'directory_name', required=True)
-register_cli_argument('storage directory exists', 'file_name', ignore_type)
+#register_cli_argument('storage container policy', 'container_name', container_name_type)
+#register_cli_argument('storage container policy', 'policy_name', options_list=('--name', '-n'), help='The stored access policy name.', completer=get_storage_acl_name_completion_list(BaseBlobService, 'container_name', 'get_container_acl'))
+#for item in ['create', 'delete', 'list', 'show', 'update']:
+# register_extra_cli_argument('storage container policy {}'.format(item), 'lease_id', options_list=('--lease-id',), help='The container lease ID.')
-register_cli_argument('storage file', 'file_name', file_name_type, options_list=('--name', '-n'))
-register_cli_argument('storage file', 'directory_name', directory_type, required=False)
+#register_cli_argument('storage container list', 'marker', ignore_type) # https://github.com/Azure/azure-cli/issues/3745
-register_cli_argument('storage file copy', 'share_name', share_name_type, options_list=('--destination-share', '-s'), help='Name of the destination share. The share must exist.')
-register_path_argument('storage file copy start', options_list=('--destination-path', '-p'))
-register_path_argument('storage file copy cancel', options_list=('--destination-path', '-p'))
+#register_cli_argument('storage share', 'share_name', share_name_type, options_list=('--name', '-n'))
-register_path_argument('storage file delete')
+#register_cli_argument('storage share exists', 'directory_name', ignore_type)
+#register_cli_argument('storage share exists', 'file_name', ignore_type)
-register_cli_argument('storage file download', 'file_path', options_list=('--dest',), type=file_type, help='Path of the file to write to. The source filename will be used if not specified.', required=False, validator=process_file_download_namespace, completer=FilesCompleter())
-register_cli_argument('storage file download', 'path', validator=None) # validator called manually from process_file_download_namespace so remove the automatic one
-register_cli_argument('storage file download', 'progress_callback', ignore_type)
-register_path_argument('storage file download')
+#register_cli_argument('storage share policy', 'container_name', share_name_type)
+#register_cli_argument('storage share policy', 'policy_name', options_list=('--name', '-n'), help='The stored access policy name.', completer=get_storage_acl_name_completion_list(FileService, 'container_name', 'get_share_acl'))
-register_cli_argument('storage file exists', 'file_name', required=True)
-register_path_argument('storage file exists')
+#register_cli_argument('storage share list', 'marker', ignore_type) # https://github.com/Azure/azure-cli/issues/3745
+#register_cli_argument('storage share delete', 'delete_snapshots',
+# help='Specify the deletion strategy when the share has snapshots.',
+# **enum_choice_list(list(delete_snapshot_types.keys())))
-register_path_argument('storage file generate-sas')
+#register_cli_argument('storage directory', 'directory_name', directory_type, options_list=('--name', '-n'))
-register_cli_argument('storage file list', 'directory_name', options_list=('--path', '-p'), help='The directory path within the file share.', completer=dir_path_completer)
+#register_cli_argument('storage directory exists', 'directory_name', required=True)
+#register_cli_argument('storage directory exists', 'file_name', ignore_type)
-register_path_argument('storage file metadata show')
-register_path_argument('storage file metadata update')
+#register_cli_argument('storage file', 'file_name', file_name_type, options_list=('--name', '-n'))
+#register_cli_argument('storage file', 'directory_name', directory_type, required=False)
-register_cli_argument('storage file resize', 'content_length', options_list=('--size',))
-register_path_argument('storage file resize')
+#register_cli_argument('storage file copy', 'share_name', share_name_type, options_list=('--destination-share', '-s'), help='Name of the destination share. The share must exist.')
+#register_path_argument('storage file copy start', options_list=('--destination-path', '-p'))
+#register_path_argument('storage file copy cancel', options_list=('--destination-path', '-p'))
-register_path_argument('storage file show')
+#register_path_argument('storage file delete')
-register_content_settings_argument('storage file update', FileContentSettings, update=True)
-register_content_settings_argument('storage file upload', FileContentSettings, update=False, guess_from_file='local_file_path')
+#register_cli_argument('storage file download', 'file_path', options_list=('--dest',), type=file_type, help='Path of the file to write to. The source filename will be used if not specified.', required=False, validator=process_file_download_namespace, completer=FilesCompleter())
+#register_cli_argument('storage file download', 'path', validator=None) # validator called manually from process_file_download_namespace so remove the automatic one
+#register_cli_argument('storage file download', 'progress_callback', ignore_type)
+#register_path_argument('storage file download')
-register_path_argument('storage file update')
+#register_cli_argument('storage file exists', 'file_name', required=True)
+#register_path_argument('storage file exists')
-register_cli_argument('storage file upload', 'progress_callback', ignore_type)
-register_cli_argument('storage file upload', 'local_file_path', options_list=('--source',), type=file_type, completer=FilesCompleter())
-register_path_argument('storage file upload', default_file_param='local_file_path')
+#register_path_argument('storage file generate-sas')
-register_path_argument('storage file url')
+#register_cli_argument('storage file list', 'directory_name', options_list=('--path', '-p'), help='The directory path within the file share.', completer=dir_path_completer)
-for item in ['container', 'share', 'table', 'queue']:
- register_cli_argument('storage {} policy'.format(item), 'start', type=get_datetime_type(True), help='start UTC datetime (Y-m-d\'T\'H:M:S\'Z\'). Defaults to time of request.')
- register_cli_argument('storage {} policy'.format(item), 'expiry', type=get_datetime_type(True), help='expiration UTC datetime in (Y-m-d\'T\'H:M:S\'Z\')')
+#register_path_argument('storage file metadata show')
+#register_path_argument('storage file metadata update')
-register_cli_argument('storage table', 'table_name', table_name_type, options_list=('--name', '-n'))
+#register_cli_argument('storage file resize', 'content_length', options_list=('--size',))
+#register_path_argument('storage file resize')
-register_cli_argument('storage table batch', 'table_name', table_name_type)
+#register_path_argument('storage file show')
-register_cli_argument('storage table create', 'table_name', table_name_type, options_list=('--name', '-n'), completer=None)
-register_cli_argument('storage table create', 'fail_on_exist', help='Throw an exception if the table already exists.')
+#register_content_settings_argument('storage file update', FileContentSettings, update=True)
+#register_content_settings_argument('storage file upload', FileContentSettings, update=False, guess_from_file='local_file_path')
-register_cli_argument('storage table policy', 'container_name', table_name_type)
-register_cli_argument('storage table policy', 'policy_name', options_list=('--name', '-n'), help='The stored access policy name.', completer=get_storage_acl_name_completion_list(TableService, 'container_name', 'get_table_acl'))
+#register_path_argument('storage file update')
-register_cli_argument('storage entity', 'entity', options_list=('--entity', '-e'), validator=validate_entity, nargs='+')
-register_cli_argument('storage entity', 'property_resolver', ignore_type)
-register_cli_argument('storage entity', 'select', nargs='+', help='Space separated list of properties to return for each entity.', validator=validate_select)
+#register_cli_argument('storage file upload', 'progress_callback', ignore_type)
+#register_cli_argument('storage file upload', 'local_file_path', options_list=('--source',), type=file_type, completer=FilesCompleter())
+#register_path_argument('storage file upload', default_file_param='local_file_path')
-register_cli_argument('storage entity insert', 'if_exists', **enum_choice_list(['fail', 'merge', 'replace']))
+#register_path_argument('storage file url')
-register_cli_argument('storage entity query', 'accept', help='Specifies how much metadata to include in the response payload.', default='minimal', validator=validate_accept, **enum_choice_list(table_payload_formats.keys()))
+#for item in ['container', 'share', 'table', 'queue']:
+# register_cli_argument('storage {} policy'.format(item), 'start', type=get_datetime_type(True), help='start UTC datetime (Y-m-d\'T\'H:M:S\'Z\'). Defaults to time of request.')
+# register_cli_argument('storage {} policy'.format(item), 'expiry', type=get_datetime_type(True), help='expiration UTC datetime in (Y-m-d\'T\'H:M:S\'Z\')')
-register_cli_argument('storage queue', 'queue_name', queue_name_type, options_list=('--name', '-n'))
+#register_cli_argument('storage table', 'table_name', table_name_type, options_list=('--name', '-n'))
-register_cli_argument('storage queue create', 'queue_name', queue_name_type, options_list=('--name', '-n'), completer=None)
+#register_cli_argument('storage table batch', 'table_name', table_name_type)
-register_cli_argument('storage queue policy', 'container_name', queue_name_type)
-register_cli_argument('storage queue policy', 'policy_name', options_list=('--name', '-n'), help='The stored access policy name.', completer=get_storage_acl_name_completion_list(QueueService, 'container_name', 'get_queue_acl'))
+#register_cli_argument('storage table create', 'table_name', table_name_type, options_list=('--name', '-n'), completer=None)
+#register_cli_argument('storage table create', 'fail_on_exist', help='Throw an exception if the table already exists.')
-register_cli_argument('storage message', 'queue_name', queue_name_type)
-register_cli_argument('storage message', 'message_id', options_list=('--id',))
-register_cli_argument('storage message', 'content', type=unicode_string, help='Message content, up to 64KB in size.')
+#register_cli_argument('storage table policy', 'container_name', table_name_type)
+#register_cli_argument('storage table policy', 'policy_name', options_list=('--name', '-n'), help='The stored access policy name.', completer=get_storage_acl_name_completion_list(TableService, 'container_name', 'get_table_acl'))
-for item in ['account', 'blob', 'container', 'file', 'share', 'table', 'queue']:
- register_cli_argument('storage {} generate-sas'.format(item), 'ip', help='Specifies the IP address or range of IP addresses from which to accept requests. Supports only IPv4 style addresses.', type=ipv4_range_type)
- register_cli_argument('storage {} generate-sas'.format(item), 'expiry', help='Specifies the UTC datetime (Y-m-d\'T\'H:M\'Z\') at which the SAS becomes invalid. Do not use if a stored access policy is referenced with --id that specifies this value.', type=get_datetime_type(True))
- register_cli_argument('storage {} generate-sas'.format(item), 'start', help='Specifies the UTC datetime (Y-m-d\'T\'H:M\'Z\') at which the SAS becomes valid. Do not use if a stored access policy is referenced with --id that specifies this value. Defaults to the time of the request.', type=get_datetime_type(True))
- register_cli_argument('storage {} generate-sas'.format(item), 'protocol', options_list=('--https-only',), help='Only permit requests made with the HTTPS protocol. If omitted, requests from both the HTTP and HTTPS protocol are permitted.', action='store_const', const='https')
+#register_cli_argument('storage entity', 'entity', options_list=('--entity', '-e'), validator=validate_entity, nargs='+')
+#register_cli_argument('storage entity', 'property_resolver', ignore_type)
+#register_cli_argument('storage entity', 'select', nargs='+', help='Space separated list of properties to return for each entity.', validator=validate_select)
-help_format = 'The permissions the SAS grants. Allowed values: {}. Do not use if a stored access policy is referenced with --id that specifies this value. Can be combined.'
-policies = [
- {'name': 'account', 'container': '', 'class': '', 'sas_perm_help': 'The permissions the SAS grants. Allowed values: {}. Can be combined.'.format(get_permission_help_string(AccountPermissions)), 'policy_perm_help': '', 'perm_validator': get_permission_validator(AccountPermissions)},
- {'name': 'container', 'container': 'container', 'class': BaseBlobService, 'sas_perm_help': help_format.format(get_permission_help_string(ContainerPermissions)), 'policy_perm_help': 'Allowed values: {}. Can be combined.'.format(get_permission_help_string(ContainerPermissions)), 'perm_validator': get_permission_validator(ContainerPermissions)},
- {'name': 'blob', 'container': 'container', 'class': BaseBlobService, 'sas_perm_help': help_format.format(get_permission_help_string(BlobPermissions)), 'policy_perm_help': '', 'perm_validator': get_permission_validator(BlobPermissions)},
- {'name': 'share', 'container': 'share', 'class': FileService, 'sas_perm_help': help_format.format(get_permission_help_string(SharePermissions)), 'policy_perm_help': 'Allowed values: {}. Can be combined.'.format(get_permission_help_string(SharePermissions)), 'perm_validator': get_permission_validator(SharePermissions)},
- {'name': 'file', 'container': 'share', 'class': FileService, 'sas_perm_help': help_format.format(get_permission_help_string(FilePermissions)), 'policy_perm_help': '', 'perm_validator': get_permission_validator(FilePermissions)},
- {'name': 'table', 'container': 'table', 'class': TableService, 'sas_perm_help': help_format.format('(r)ead/query (a)dd (u)pdate (d)elete'), 'policy_perm_help': 'Allowed values: {}. Can be combined.'.format('(r)ead/query (a)dd (u)pdate (d)elete'), 'perm_validator': table_permission_validator},
- {'name': 'queue', 'container': 'queue', 'class': QueueService, 'sas_perm_help': help_format.format(get_permission_help_string(QueuePermissions)), 'policy_perm_help': 'Allowed values: {}. Can be combined.'.format(get_permission_help_string(QueuePermissions)), 'perm_validator': get_permission_validator(QueuePermissions)}
-]
-for item in policies:
- register_cli_argument('storage {} generate-sas'.format(item['name']), 'id', options_list=('--policy-name',), help='The name of a stored access policy within the {}\'s ACL.'.format(item['container']), completer=get_storage_acl_name_completion_list(item['class'], '{}_name'.format(item['container']), 'get_{}_acl'.format(item['container'])))
- register_cli_argument('storage {} generate-sas'.format(item['name']), 'permission', options_list=('--permissions',), help=item['sas_perm_help'], validator=item['perm_validator'])
- register_cli_argument('storage {} policy'.format(item['name']), 'permission', options_list=('--permissions',), help=item['policy_perm_help'], validator=item['perm_validator'])
+#register_cli_argument('storage entity insert', 'if_exists', **enum_choice_list(['fail', 'merge', 'replace']))
-register_cli_argument('storage account generate-sas', 'services', help='The storage services the SAS is applicable for. Allowed values: (b)lob (f)ile (q)ueue (t)able. Can be combined.', type=services_type)
-register_cli_argument('storage account generate-sas', 'resource_types', help='The resource types the SAS is applicable for. Allowed values: (s)ervice (c)ontainer (o)bject. Can be combined.', type=resource_type_type)
-register_cli_argument('storage account generate-sas', 'expiry', help='Specifies the UTC datetime (Y-m-d\'T\'H:M\'Z\') at which the SAS becomes invalid.', type=get_datetime_type(True))
-register_cli_argument('storage account generate-sas', 'start', help='Specifies the UTC datetime (Y-m-d\'T\'H:M\'Z\') at which the SAS becomes valid. Defaults to the time of the request.', type=get_datetime_type(True))
-register_cli_argument('storage account generate-sas', 'account_name', account_name_type, options_list=('--account-name',), help='Storage account name. Must be used in conjunction with either storage account key or a SAS token. Environment Variable: AZURE_STORAGE_ACCOUNT')
-register_cli_argument('storage account generate-sas', 'sas_token', ignore_type)
+#register_cli_argument('storage entity query', 'accept', help='Specifies how much metadata to include in the response payload.', default='minimal', validator=validate_accept, **enum_choice_list(table_payload_formats.keys()))
+#register_cli_argument('storage queue', 'queue_name', queue_name_type, options_list=('--name', '-n'))
-#######################################
-# storage cors commands parameters
-#######################################
+#register_cli_argument('storage queue create', 'queue_name', queue_name_type, options_list=('--name', '-n'), completer=None)
-with CommandContext('storage cors') as c:
- c.reg_arg('services', validator=get_char_options_validator('bfqt', 'services'))
+#register_cli_argument('storage queue policy', 'container_name', queue_name_type)
+#register_cli_argument('storage queue policy', 'policy_name', options_list=('--name', '-n'), help='The stored access policy name.', completer=get_storage_acl_name_completion_list(QueueService, 'container_name', 'get_queue_acl'))
+#register_cli_argument('storage message', 'queue_name', queue_name_type)
+#register_cli_argument('storage message', 'message_id', options_list=('--id',))
+#register_cli_argument('storage message', 'content', type=unicode_string, help='Message content, up to 64KB in size.')
-with CommandContext('storage cors list') as c:
- c.reg_arg('services', validator=get_char_options_validator('bfqt', 'services'), default='bqft', required=False)
+#for item in ['account', 'blob', 'container', 'file', 'share', 'table', 'queue']:
+# register_cli_argument('storage {} generate-sas'.format(item), 'ip', help='Specifies the IP address or range of IP addresses from which to accept requests. Supports only IPv4 style addresses.', type=ipv4_range_type)
+# register_cli_argument('storage {} generate-sas'.format(item), 'expiry', help='Specifies the UTC datetime (Y-m-d\'T\'H:M\'Z\') at which the SAS becomes invalid. Do not use if a stored access policy is referenced with --id that specifies this value.', type=get_datetime_type(True))
+# register_cli_argument('storage {} generate-sas'.format(item), 'start', help='Specifies the UTC datetime (Y-m-d\'T\'H:M\'Z\') at which the SAS becomes valid. Do not use if a stored access policy is referenced with --id that specifies this value. Defaults to the time of the request.', type=get_datetime_type(True))
+# register_cli_argument('storage {} generate-sas'.format(item), 'protocol', options_list=('--https-only',), help='Only permit requests made with the HTTPS protocol. If omitted, requests from both the HTTP and HTTPS protocol are permitted.', action='store_const', const='https')
+#help_format = 'The permissions the SAS grants. Allowed values: {}. Do not use if a stored access policy is referenced with --id that specifies this value. Can be combined.'
+#policies = [
+# {'name': 'account', 'container': '', 'class': '', 'sas_perm_help': 'The permissions the SAS grants. Allowed values: {}. Can be combined.'.format(get_permission_help_string(AccountPermissions)), 'policy_perm_help': '', 'perm_validator': get_permission_validator(AccountPermissions)},
+# {'name': 'container', 'container': 'container', 'class': BaseBlobService, 'sas_perm_help': help_format.format(get_permission_help_string(ContainerPermissions)), 'policy_perm_help': 'Allowed values: {}. Can be combined.'.format(get_permission_help_string(ContainerPermissions)), 'perm_validator': get_permission_validator(ContainerPermissions)},
+# {'name': 'blob', 'container': 'container', 'class': BaseBlobService, 'sas_perm_help': help_format.format(get_permission_help_string(BlobPermissions)), 'policy_perm_help': '', 'perm_validator': get_permission_validator(BlobPermissions)},
+# {'name': 'share', 'container': 'share', 'class': FileService, 'sas_perm_help': help_format.format(get_permission_help_string(SharePermissions)), 'policy_perm_help': 'Allowed values: {}. Can be combined.'.format(get_permission_help_string(SharePermissions)), 'perm_validator': get_permission_validator(SharePermissions)},
+# {'name': 'file', 'container': 'share', 'class': FileService, 'sas_perm_help': help_format.format(get_permission_help_string(FilePermissions)), 'policy_perm_help': '', 'perm_validator': get_permission_validator(FilePermissions)},
+# {'name': 'table', 'container': 'table', 'class': TableService, 'sas_perm_help': help_format.format('(r)ead/query (a)dd (u)pdate (d)elete'), 'policy_perm_help': 'Allowed values: {}. Can be combined.'.format('(r)ead/query (a)dd (u)pdate (d)elete'), 'perm_validator': table_permission_validator},
+# {'name': 'queue', 'container': 'queue', 'class': QueueService, 'sas_perm_help': help_format.format(get_permission_help_string(QueuePermissions)), 'policy_perm_help': 'Allowed values: {}. Can be combined.'.format(get_permission_help_string(QueuePermissions)), 'perm_validator': get_permission_validator(QueuePermissions)}
+#]
+#for item in policies:
+# register_cli_argument('storage {} generate-sas'.format(item['name']), 'id', options_list=('--policy-name',), help='The name of a stored access policy within the {}\'s ACL.'.format(item['container']), completer=get_storage_acl_name_completion_list(item['class'], '{}_name'.format(item['container']), 'get_{}_acl'.format(item['container'])))
+# register_cli_argument('storage {} generate-sas'.format(item['name']), 'permission', options_list=('--permissions',), help=item['sas_perm_help'], validator=item['perm_validator'])
+# register_cli_argument('storage {} policy'.format(item['name']), 'permission', options_list=('--permissions',), help=item['policy_perm_help'], validator=item['perm_validator'])
-with CommandContext('storage cors add') as c:
- c.reg_arg('max_age')
- c.reg_arg('origins', nargs='+')
- c.reg_arg('methods', nargs='+', **enum_choice_list(['DELETE', 'GET', 'HEAD', 'MERGE', 'POST', 'OPTIONS', 'PUT']))
- c.reg_arg('allowed_headers', nargs='+')
- c.reg_arg('exposed_headers', nargs='+')
+#register_cli_argument('storage account generate-sas', 'services', help='The storage services the SAS is applicable for. Allowed values: (b)lob (f)ile (q)ueue (t)able. Can be combined.', type=services_type)
+#register_cli_argument('storage account generate-sas', 'resource_types', help='The resource types the SAS is applicable for. Allowed values: (s)ervice (c)ontainer (o)bject. Can be combined.', type=resource_type_type)
+#register_cli_argument('storage account generate-sas', 'expiry', help='Specifies the UTC datetime (Y-m-d\'T\'H:M\'Z\') at which the SAS becomes invalid.', type=get_datetime_type(True))
+#register_cli_argument('storage account generate-sas', 'start', help='Specifies the UTC datetime (Y-m-d\'T\'H:M\'Z\') at which the SAS becomes valid. Defaults to the time of the request.', type=get_datetime_type(True))
+#register_cli_argument('storage account generate-sas', 'account_name', account_name_type, options_list=('--account-name',), help='Storage account name. Must be used in conjunction with either storage account key or a SAS token. Environment Variable: AZURE_STORAGE_ACCOUNT')
+#register_cli_argument('storage account generate-sas', 'sas_token', ignore_type)
-#######################################
-# storage logging commands parameters
-#######################################
+########################################
+## storage cors commands parameters
+########################################
-with CommandContext('storage logging show') as c:
- c.reg_arg('services', validator=get_char_options_validator('bqt', 'services'), required=False, default='bqt',
- help='The storage services from which to retrieve logging info: (b)lob (q)ueue (t)able. Can be combined.')
+#with CommandContext('storage cors') as c:
+# c.argument('services', validator=get_char_options_validator('bfqt', 'services'))
-with CommandContext('storage logging update') as c:
- c.reg_arg('services', validator=get_char_options_validator('bqt', 'services'),
- help='The storage service(s) for which to update logging info: (b)lob (q)ueue (t)able. Can be combined.')
- c.reg_arg('log', validator=get_char_options_validator('rwd', 'log'),
- help='The operations for which to enable logging: (r)ead (w)rite (d)elete. Can be combined.')
- c.reg_arg('retention', type=int, help='Number of days for which to retain logs. 0 to disable.')
+#with CommandContext('storage cors list') as c:
+# c.argument('services', validator=get_char_options_validator('bfqt', 'services'), default='bqft', required=False)
-#######################################
-# storage metrics commands parameters
-#######################################
+#with CommandContext('storage cors add') as c:
+# c.argument('max_age')
+# c.argument('origins', nargs='+')
+# c.argument('methods', nargs='+', **enum_choice_list(['DELETE', 'GET', 'HEAD', 'MERGE', 'POST', 'OPTIONS', 'PUT']))
+# c.argument('allowed_headers', nargs='+')
+# c.argument('exposed_headers', nargs='+')
-with CommandContext('storage metrics show') as c:
- c.reg_arg('services', validator=get_char_options_validator('bfqt', 'services'), required=False, default='bfqt',
- help='The storage services from which to retrieve metrics info: (b)lob (f)ile (q)ueue (t)able. '
- 'Can be combined.')
- c.reg_arg('interval',
- help='Filter the set of metrics to retrieve by time interval.',
- **enum_choice_list(['hour', 'minute', 'both']))
-
-
-with CommandContext('storage metrics update') as c:
- c.reg_arg('services', validator=get_char_options_validator('bfqt', 'services'),
- help='The storage service(s) for which to update metrics info: (b)lob (f)ile (q)ueue (t)able. '
- 'Can be combined.')
- c.reg_arg('hour',
- help='Update the hourly metrics.',
- validator=process_metric_update_namespace, **enum_choice_list(['true', 'false']))
- c.reg_arg('minute',
- help='Update the by-minute metrics.', **enum_choice_list(['true', 'false']))
- c.reg_arg('api',
- help='Specify whether to include API in metrics. Applies to both hour and minute metrics if both are '
- 'specified. Must be specified if hour or minute metrics are enabled and being updated.',
- **enum_choice_list(['true', 'false']))
- c.reg_arg('retention',
- type=int, help='Number of days for which to retain metrics. 0 to disable. Applies to both hour and minute'
- ' metrics if both are specified.')
+
+########################################
+## storage logging commands parameters
+########################################
+
+#with CommandContext('storage logging show') as c:
+# c.argument('services', validator=get_char_options_validator('bqt', 'services'), required=False, default='bqt',
+# help='The storage services from which to retrieve logging info: (b)lob (q)ueue (t)able. Can be combined.')
+
+
+#with CommandContext('storage logging update') as c:
+# c.argument('services', validator=get_char_options_validator('bqt', 'services'),
+# help='The storage service(s) for which to update logging info: (b)lob (q)ueue (t)able. Can be combined.')
+# c.argument('log', validator=get_char_options_validator('rwd', 'log'),
+# help='The operations for which to enable logging: (r)ead (w)rite (d)elete. Can be combined.')
+# c.argument('retention', type=int, help='Number of days for which to retain logs. 0 to disable.')
+
+
+########################################
+## storage metrics commands parameters
+########################################
+
+#with CommandContext('storage metrics show') as c:
+# c.argument('services', validator=get_char_options_validator('bfqt', 'services'), required=False, default='bfqt',
+# help='The storage services from which to retrieve metrics info: (b)lob (f)ile (q)ueue (t)able. '
+# 'Can be combined.')
+# c.argument('interval',
+# help='Filter the set of metrics to retrieve by time interval.',
+# **enum_choice_list(['hour', 'minute', 'both']))
+
+
+#with CommandContext('storage metrics update') as c:
+# c.argument('services', validator=get_char_options_validator('bfqt', 'services'),
+# help='The storage service(s) for which to update metrics info: (b)lob (f)ile (q)ueue (t)able. '
+# 'Can be combined.')
+# c.argument('hour',
+# help='Update the hourly metrics.',
+# validator=process_metric_update_namespace, **enum_choice_list(['true', 'false']))
+# c.argument('minute',
+# help='Update the by-minute metrics.', **enum_choice_list(['true', 'false']))
+# c.argument('api',
+# help='Specify whether to include API in metrics. Applies to both hour and minute metrics if both are '
+# 'specified. Must be specified if hour or minute metrics are enabled and being updated.',
+# **enum_choice_list(['true', 'false']))
+# c.argument('retention',
+# type=int, help='Number of days for which to retain metrics. 0 to disable. Applies to both hour and minute'
+# ' metrics if both are specified.')
+
+
+
+def load_arguments(self, _):
+ AccountType, AccessTier, Bypass, DefaultAction, Kind, SkuName = self.get_models(
+ 'AccountType', 'AccessTier', 'Bypass', 'DefaultAction', 'Kind', 'SkuName',
+ resource_type=ResourceType.MGMT_STORAGE)
+
+ AccountPermissions = self.get_sdk('common.models#AccountPermissions')
+ DeleteSnapshot, BlockBlobService, PageBlobService, AppendBlobService = self.get_sdk(
+ 'DeleteSnapshot', 'BlockBlobService', 'PageBlobService', 'AppendBlobService', mod='blob')
+ BaseBlobService, FileService, QueueService, QueuePermissions = self.get_sdk(
+ 'blob.baseblobservice#BaseBlobService', 'file#FileService', 'queue#QueueService',
+ 'queue.models#QueuePermissions')
+ BlobContentSettings, ContainerPermissions, BlobPermissions, PublicAccess = self.get_sdk(
+ 'ContentSettings', 'ContainerPermissions', 'BlobPermissions', 'PublicAccess', mod='blob.models')
+
+ FileContentSettings, SharePermissions, FilePermissions = self.get_sdk(
+ 'ContentSettings', 'SharePermissions', 'FilePermissions', mod='file.models')
+
+ TableService, TablePayloadFormat = get_table_data_type(self.cli_ctx, 'table', 'TableService', 'TablePayloadFormat')
+
+ # ARGUMENT TYPES
+
+ account_name_type = CLIArgumentType(options_list=['--account-name', '-n'], help='The storage account name.', completer=get_resource_name_completion_list('Microsoft.Storage/storageAccounts'), id_part='name')
+ blob_name_type = CLIArgumentType(options_list=['--blob-name', '-b'], help='The blob name.', completer=get_storage_name_completion_list(BaseBlobService, 'list_blobs', parent='container_name'))
+ container_name_type = CLIArgumentType(options_list=['--container-name', '-c'], help='The container name.', completer=get_storage_name_completion_list(BaseBlobService, 'list_containers'))
+ directory_type = CLIArgumentType(options_list=['--directory-name', '-d'], help='The directory name.', completer=get_storage_name_completion_list(FileService, 'list_directories_and_files', parent='share_name'))
+ file_name_type = CLIArgumentType(options_list=['--file-name', '-f'], completer=get_storage_name_completion_list(FileService, 'list_directories_and_files', parent='share_name'))
+ share_name_type = CLIArgumentType(options_list=['--share-name', '-s'], help='The file share name.', completer=get_storage_name_completion_list(FileService, 'list_shares'))
+ table_name_type = CLIArgumentType(options_list=['--table-name', '-t'], completer=get_storage_name_completion_list(TableService, 'list_tables'))
+ queue_name_type = CLIArgumentType(options_list=['--queue-name', '-q'], help='The queue name.', completer=get_storage_name_completion_list(QueueService, 'list_queues'))
+
+# region Storage
+ with self.argument_context('storage') as c:
+ c.argument('container_name', container_name_type)
+ c.argument('directory_name', directory_type)
+ c.argument('share_name', share_name_type)
+ c.argument('table_name', table_name_type)
+ c.argument('retry_wait', options_list=('--retry-interval',))
+ c.ignore('progress_callback')
+ c.argument('metadata', nargs='+', help='Metadata in space-separated key=value pairs. This overwrites any existing metadata.', validator=validate_metadata)
+ c.argument('timeout', help='Request timeout in seconds. Applies to each call to the service.', type=int)
+
+ with self.argument_context('storage', arg_group='Precondition') as c:
+ c.argument('if_modified_since', help='Alter only if modified since supplied UTC datetime (Y-m-d\'T\'H:M\'Z\')', type=get_datetime_type(False))
+ c.argument('if_unmodified_since', help='Alter only if unmodified since supplied UTC datetime (Y-m-d\'T\'H:M\'Z\')', type=get_datetime_type(False))
+ c.argument('if_match')
+ c.argument('if_none_match')
+# endregion
+
+# region StorageAccount
+ for item in ['check-name', 'delete', 'list', 'show', 'show-usage', 'update', 'keys']:
+ with self.argument_context('storage account {}'.format(item)) as c:
+ c.argument('account_name', account_name_type, options_list=['--name', '-n'])
+
+ def register_common_storage_account_options(context):
+ context.argument('https_only', help='Allows https traffic only to storage service.', arg_type=get_three_state_flag())
+ context.argument('sku', help='The storage account SKU.', arg_type=get_enum_type(SkuName))
+ context.argument('assign_identity', action='store_true', resource_type=ResourceType.MGMT_STORAGE, min_api='2017-06-01', help='Generate and assign a new Storage Account Identity for this storage account for use with key management services like Azure KeyVault.')
+ context.argument('access_tier', arg_type=get_enum_type(AccessTier), help='The access tier used for billing StandardBlob accounts. Cannot be set for StandardLRS, StandardGRS, StandardRAGRS, or PremiumLRS account types. It is required for StandardBlob accounts during creation')
+
+ encryption_services_model = self.get_models('EncryptionServices', resource_type=ResourceType.MGMT_STORAGE)
+ if encryption_services_model:
+ encryption_choices = list(encryption_services_model._attribute_map.keys()) # pylint: disable=protected-access
+ context.argument('encryption_services', arg_type=get_enum_type(encryption_choices), resource_type=ResourceType.MGMT_STORAGE, min_api='2016-12-01', nargs='+', validator=validate_encryption_services, help='Specifies which service(s) to encrypt.')
+
+ with self.argument_context('storage account create') as c:
+ register_common_storage_account_options(c)
+ c.argument('location', get_location_type(self.cli_ctx), validator=get_default_location_from_resource_group)
+ c.argument('account_type', help='The storage account type', arg_type=get_enum_type(AccountType))
+ c.argument('account_name', account_name_type, options_list=['--name', '-n'], completer=None)
+ c.argument('kind', help='Indicates the type of storage account.', arg_type=get_enum_type(Kind, default='storage'))
+ c.argument('tags', tags_type)
+ c.argument('custom_domain', help='User domain assigned to the storage account. Name is the CNAME source.')
+ c.argument('sku', help='The storage account SKU.', arg_type=get_enum_type(SkuName, default='standard_ragrs'))
+
+ with self.argument_context('storage account update') as c:
+ register_common_storage_account_options(c)
+ c.argument('custom_domain', help='User domain assigned to the storage account. Name is the CNAME source. Use "" to clear existing value.', validator=validate_custom_domain)
+ c.argument('use_subdomain', help='Specify whether to use indirect CNAME validation.', arg_type=get_enum_type(['true', 'false']))
+ c.argument('tags', tags_type, default=None)
+
+ for scope in ['storage account create', 'storage account update']:
+ with self.argument_context(scope, resource_type=ResourceType.MGMT_STORAGE, min_api='2017-06-01', arg_group='Network Rule') as c:
+ c.argument('bypass', nargs='+', validator=validate_bypass, arg_type=get_enum_type(Bypass), help='Bypass traffic for space-separated uses.')
+ c.argument('default_action', arg_type=get_enum_type(DefaultAction), help='Default action to apply when no rule matches.')
+
+ with self.argument_context('storage account show-connection-string') as c:
+ c.argument('account_name', account_name_type, options_list=['--name', '-n'])
+ c.argument('protocol', help='The default endpoint protocol.', arg_type=get_enum_type(['http', 'https']))
+ c.argument('key_name', options_list=['--key'], help='The key to use.', arg_type=get_enum_type(list(storage_account_key_options.keys())))
+ for item in ['blob', 'file', 'queue', 'table']:
+ c.argument('{}_endpoint'.format(item), help='Custom endpoint for {}s.'.format(item))
+
+ with self.argument_context('storage account key renew') as c:
+ c.argument('key_name', options_list=['--key'], help='The key to regenerate.', validator=validate_key, arg_type=get_enum_type(list(storage_account_key_options.keys())))
+ c.argument('account_name', account_name_type, id_part=None)
+
+ with self.argument_context('storage account keys list') as c:
+ c.argument('account_name', account_name_type, id_part=None)
+# endregion
diff --git a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_validators.py b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_validators.py
index 152a5b28785..99b8fe2f098 100644
--- a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_validators.py
+++ b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_validators.py
@@ -8,18 +8,16 @@
import re
from datetime import datetime, timedelta
-from azure.cli.core.profiles import get_sdk, ResourceType
-from azure.cli.core._profile import CLOUD
-
from azure.cli.core.commands.client_factory import get_mgmt_service_client
from azure.cli.core.commands.validators import validate_key_value_pairs
+from azure.cli.command_modules.storage._client_factory import get_storage_data_service_client
+from azure.cli.command_modules.storage.util import glob_files_locally, guess_content_type
+from azure.cli.command_modules.storage.sdkutil import get_table_data_type
+from azure.cli.command_modules.storage.url_quote_util import encode_for_url
+
from knack.util import CLIError
-from ._factory import get_storage_data_service_client
-from .util import glob_files_locally, guess_content_type
-from .sdkutil import get_table_data_type
-from .url_quote_util import encode_for_url
storage_account_key_options = {'primary': 'key1', 'secondary': 'key2'}
@@ -78,8 +76,8 @@ def _create_short_lived_file_sas(account_name, account_key, share, directory_nam
# region PARAMETER VALIDATORS
-def validate_accept(namespace):
- TablePayloadFormat = get_table_data_type('table', 'TablePayloadFormat')
+def validate_accept(cmd, namespace):
+ TablePayloadFormat = get_table_data_type(cmd.cli_ctx, 'table', 'TablePayloadFormat')
if namespace.accept:
formats = {
'none': TablePayloadFormat.JSON_NO_METADATA,
@@ -528,9 +526,9 @@ def validator(namespace):
return validator
-def table_permission_validator(namespace):
+def table_permission_validator(cmd, namespace):
""" A special case for table because the SDK associates the QUERY permission with 'r' """
- TablePermissions = get_table_data_type('table', 'TablePermissions')
+ TablePermissions = get_table_data_type(cmd.cli_ctx, 'table', 'TablePermissions')
if namespace.permission:
if set(namespace.permission) - set('raud'):
help_string = '(r)ead/query (a)dd (u)pdate (d)elete'
diff --git a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/blob.py b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/blob.py
index 58ebeb711e0..374d4afbfcb 100644
--- a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/blob.py
+++ b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/blob.py
@@ -8,10 +8,7 @@
from collections import namedtuple
from azure.common import AzureException
-from azure.cli.core.application import APPLICATION
-from azure.cli.core.decorators import transfer_doc
from azure.cli.core.util import CLIError
-from azure.cli.core.azlogging import get_az_logger
from azure.cli.core.profiles import supported_api_version, ResourceType, get_sdk
from azure.cli.command_modules.storage.util import (create_blob_service_from_storage_client,
create_file_share_from_storage_client,
@@ -151,7 +148,7 @@ def _create_return_result(blob_name, blob_content_settings, upload_result=None):
return results
-@transfer_doc(get_sdk(ResourceType.DATA_STORAGE, 'blob#BlockBlobService').create_blob_from_path)
+#@transfer_doc(get_sdk(ResourceType.DATA_STORAGE, 'blob#BlockBlobService').create_blob_from_path)
def upload_blob(client, container_name, blob_name, file_path, blob_type=None, content_settings=None, metadata=None,
validate_content=False, maxsize_condition=None, max_connections=2, lease_id=None, tier=None,
if_modified_since=None, if_unmodified_since=None, if_match=None, if_none_match=None, timeout=None):
diff --git a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/commands.py b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/commands.py
index 50ac598b195..e235e509dc4 100644
--- a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/commands.py
+++ b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/commands.py
@@ -5,9 +5,14 @@
# pylint: disable=line-too-long
-from azure.cli.command_modules.storage._command_type import cli_storage_data_plane_command
-from azure.cli.command_modules.storage._factory import \
- (storage_client_factory, blob_data_service_factory, file_data_service_factory,
+from azure.cli.core.profiles import ResourceType
+from azure.cli.core.sdk.util import CliCommandType
+from azure.cli.core.util import empty_on_404
+
+#from azure.cli.command_modules.storage._command_type import cli_storage_data_plane_command
+from azure.cli.command_modules.storage.sdkutil import cosmosdb_table_exists
+from azure.cli.command_modules.storage._client_factory import \
+ (cf_sa, storage_client_factory, blob_data_service_factory, file_data_service_factory,
table_data_service_factory, queue_data_service_factory, cloud_storage_account_service_factory,
page_blob_service_factory, multi_service_properties_factory)
from azure.cli.command_modules.storage._format import \
@@ -24,228 +29,227 @@
transform_logging_list_output, transform_metrics_list_output,
transform_url, transform_storage_list_output, transform_container_permission_output,
create_boolean_result_output_transformer)
-from azure.cli.core.commands import cli_command, VersionConstraint
-from azure.cli.core.commands.arm import _cli_generic_update_command
-from azure.cli.core.util import empty_on_404
-from azure.cli.core.profiles import supported_api_version, ResourceType, get_sdk
-from .sdkutil import cosmosdb_table_exists
-
-mgmt_path = 'azure.mgmt.storage.operations.storage_accounts_operations#StorageAccountsOperations.'
-custom_path = 'azure.cli.command_modules.storage.custom#'
-file_service_path = 'azure.multiapi.storage.file.fileservice#FileService.'
-block_blob_path = 'azure.multiapi.storage.blob.blockblobservice#BlockBlobService.'
-page_blob_path = 'azure.multiapi.storage.blob.pageblobservice#PageBlobService.'
-base_blob_path = 'azure.multiapi.storage.blob.baseblobservice#BaseBlobService.'
-queue_path = 'azure.multiapi.storage.queue.queueservice#QueueService.'
-
-if cosmosdb_table_exists():
- table_path = 'azure.multiapi.cosmosdb.table.tableservice#TableService.'
-else:
- table_path = 'azure.multiapi.storage.table.tableservice#TableService.'
-
-
-def _dont_fail_not_exist(ex):
- AzureMissingResourceHttpError = get_sdk(ResourceType.DATA_STORAGE, 'common._error#AzureMissingResourceHttpError')
- if isinstance(ex, AzureMissingResourceHttpError):
- return None
- else:
- raise ex
-
-
-# storage account commands
-factory = lambda kwargs: storage_client_factory().storage_accounts # noqa: E731 lambda vs def
-cli_command(__name__, 'storage account check-name', mgmt_path + 'check_name_availability', factory)
-cli_command(__name__, 'storage account delete', mgmt_path + 'delete', factory, confirmation=True)
-cli_command(__name__, 'storage account show', mgmt_path + 'get_properties', factory, exception_handler=empty_on_404)
-cli_command(__name__, 'storage account list', custom_path + 'list_storage_accounts')
-cli_command(__name__, 'storage account show-usage', custom_path + 'show_storage_account_usage')
-cli_command(__name__, 'storage account show-connection-string', custom_path + 'show_storage_account_connection_string')
-cli_command(__name__, 'storage account keys renew', mgmt_path + 'regenerate_key', factory, transform=lambda x: getattr(x, 'keys', x))
-cli_command(__name__, 'storage account keys list', mgmt_path + 'list_keys', factory, transform=lambda x: getattr(x, 'keys', x))
-
-with VersionConstraint(ResourceType.MGMT_STORAGE, min_api='2017-06-01') as c:
- c.cli_command(__name__, 'storage account network-rule add', custom_path + 'add_network_rule', factory)
- c.cli_command(__name__, 'storage account network-rule remove', custom_path + 'remove_network_rule', factory)
- c.cli_command(__name__, 'storage account network-rule list', custom_path + 'list_network_rules', factory)
-
-if supported_api_version(ResourceType.MGMT_STORAGE, max_api='2015-06-15'):
- cli_command(__name__, 'storage account create', custom_path + 'create_storage_account_with_account_type')
-else:
- cli_command(__name__, 'storage account create', custom_path + 'create_storage_account')
-
-if supported_api_version(ResourceType.MGMT_STORAGE, min_api='2016-12-01'):
- _cli_generic_update_command(__name__, 'storage account update',
- mgmt_path + 'get_properties',
- mgmt_path + 'update', factory,
- custom_function_op=custom_path + 'update_storage_account')
-
-cli_storage_data_plane_command('storage account generate-sas', 'azure.multiapi.storage.common#CloudStorageAccount.generate_shared_access_signature', cloud_storage_account_service_factory)
-
-# container commands
-factory = blob_data_service_factory
-cli_storage_data_plane_command('storage container list', block_blob_path + 'list_containers', factory, transform=transform_storage_list_output, table_transformer=transform_container_list)
-cli_storage_data_plane_command('storage container delete', block_blob_path + 'delete_container', factory, transform=create_boolean_result_output_transformer('deleted'), table_transformer=transform_boolean_for_table)
-cli_storage_data_plane_command('storage container show', block_blob_path + 'get_container_properties', factory, table_transformer=transform_container_show, exception_handler=_dont_fail_not_exist)
-cli_storage_data_plane_command('storage container create', block_blob_path + 'create_container', factory, transform=create_boolean_result_output_transformer('created'), table_transformer=transform_boolean_for_table)
-cli_storage_data_plane_command('storage container generate-sas', block_blob_path + 'generate_container_shared_access_signature', factory)
-cli_storage_data_plane_command('storage container metadata update', block_blob_path + 'set_container_metadata', factory)
-cli_storage_data_plane_command('storage container metadata show', block_blob_path + 'get_container_metadata', factory, exception_handler=_dont_fail_not_exist)
-cli_storage_data_plane_command('storage container lease acquire', block_blob_path + 'acquire_container_lease', factory)
-cli_storage_data_plane_command('storage container lease renew', block_blob_path + 'renew_container_lease', factory)
-cli_storage_data_plane_command('storage container lease release', block_blob_path + 'release_container_lease', factory)
-cli_storage_data_plane_command('storage container lease change', block_blob_path + 'change_container_lease', factory)
-cli_storage_data_plane_command('storage container lease break', block_blob_path + 'break_container_lease', factory)
-cli_storage_data_plane_command('storage container exists', base_blob_path + 'exists', factory, transform=create_boolean_result_output_transformer('exists'), table_transformer=transform_boolean_for_table)
-cli_storage_data_plane_command('storage container set-permission', base_blob_path + 'set_container_acl', factory)
-cli_storage_data_plane_command('storage container show-permission', base_blob_path + 'get_container_acl', factory, transform=transform_container_permission_output)
-cli_storage_data_plane_command('storage container policy create', custom_path + 'create_acl_policy', factory)
-cli_storage_data_plane_command('storage container policy delete', custom_path + 'delete_acl_policy', factory)
-cli_storage_data_plane_command('storage container policy show', custom_path + 'get_acl_policy', factory, exception_handler=_dont_fail_not_exist)
-cli_storage_data_plane_command('storage container policy list', custom_path + 'list_acl_policies', factory, table_transformer=transform_acl_list_output)
-cli_storage_data_plane_command('storage container policy update', custom_path + 'set_acl_policy', factory,
- resource_type=ResourceType.DATA_STORAGE, min_api='2017-04-17')
-
-# blob commands
-cli_storage_data_plane_command('storage blob list', block_blob_path + 'list_blobs', factory, transform=transform_storage_list_output, table_transformer=transform_blob_output)
-cli_storage_data_plane_command('storage blob delete', block_blob_path + 'delete_blob', factory, transform=create_boolean_result_output_transformer('deleted'), table_transformer=transform_boolean_for_table)
-cli_storage_data_plane_command('storage blob generate-sas', block_blob_path + 'generate_blob_shared_access_signature', factory)
-cli_storage_data_plane_command('storage blob url', block_blob_path + 'make_blob_url', factory, transform=transform_url)
-cli_storage_data_plane_command('storage blob snapshot', block_blob_path + 'snapshot_blob', factory)
-cli_storage_data_plane_command('storage blob show', block_blob_path + 'get_blob_properties', factory, table_transformer=transform_blob_output, exception_handler=_dont_fail_not_exist)
-cli_storage_data_plane_command('storage blob update', block_blob_path + 'set_blob_properties', factory)
-cli_storage_data_plane_command('storage blob exists', base_blob_path + 'exists', factory, transform=create_boolean_result_output_transformer('exists'))
-cli_storage_data_plane_command('storage blob download', base_blob_path + 'get_blob_to_path', factory)
-cli_storage_data_plane_command('storage blob upload', 'azure.cli.command_modules.storage.blob#upload_blob', factory)
-cli_storage_data_plane_command('storage blob metadata show', block_blob_path + 'get_blob_metadata', factory, exception_handler=_dont_fail_not_exist)
-cli_storage_data_plane_command('storage blob metadata update', block_blob_path + 'set_blob_metadata', factory)
-cli_storage_data_plane_command('storage blob service-properties show', base_blob_path + 'get_blob_service_properties', factory, exception_handler=_dont_fail_not_exist)
-cli_storage_data_plane_command('storage blob lease acquire', block_blob_path + 'acquire_blob_lease', factory)
-cli_storage_data_plane_command('storage blob lease renew', block_blob_path + 'renew_blob_lease', factory)
-cli_storage_data_plane_command('storage blob lease release', block_blob_path + 'release_blob_lease', factory)
-cli_storage_data_plane_command('storage blob lease change', block_blob_path + 'change_blob_lease', factory)
-cli_storage_data_plane_command('storage blob lease break', block_blob_path + 'break_blob_lease', factory)
-cli_storage_data_plane_command('storage blob copy start', block_blob_path + 'copy_blob', factory)
-cli_storage_data_plane_command('storage blob copy start-batch', 'azure.cli.command_modules.storage.blob#storage_blob_copy_batch', factory)
-cli_storage_data_plane_command('storage blob copy cancel', block_blob_path + 'abort_copy_blob', factory)
-cli_storage_data_plane_command('storage blob upload-batch', 'azure.cli.command_modules.storage.blob#storage_blob_upload_batch', factory)
-cli_storage_data_plane_command('storage blob download-batch', 'azure.cli.command_modules.storage.blob#storage_blob_download_batch', factory)
-cli_storage_data_plane_command('storage blob delete-batch', 'azure.cli.command_modules.storage.blob#storage_blob_delete_batch', factory)
-cli_storage_data_plane_command('storage blob set-tier', custom_path + 'set_blob_tier', factory)
-
-# page blob commands
-cli_storage_data_plane_command('storage blob incremental-copy start',
- page_blob_path + 'incremental_copy_blob', page_blob_service_factory)
-cli_storage_data_plane_command('storage blob incremental-copy cancel',
- block_blob_path + 'abort_copy_blob', page_blob_service_factory)
-
-# share commands
-factory = file_data_service_factory
-cli_storage_data_plane_command('storage share list', file_service_path + 'list_shares', factory, transform=transform_storage_list_output, table_transformer=transform_share_list)
-cli_storage_data_plane_command('storage share create', file_service_path + 'create_share', factory, transform=create_boolean_result_output_transformer('created'), table_transformer=transform_boolean_for_table)
-cli_storage_data_plane_command('storage share delete', file_service_path + 'delete_share', factory, transform=create_boolean_result_output_transformer('deleted'), table_transformer=transform_boolean_for_table)
-cli_storage_data_plane_command('storage share generate-sas', file_service_path + 'generate_share_shared_access_signature', factory)
-cli_storage_data_plane_command('storage share stats', file_service_path + 'get_share_stats', factory)
-cli_storage_data_plane_command('storage share show', file_service_path + 'get_share_properties', factory, exception_handler=_dont_fail_not_exist)
-cli_storage_data_plane_command('storage share update', file_service_path + 'set_share_properties', factory)
-cli_storage_data_plane_command('storage share metadata show', file_service_path + 'get_share_metadata', factory, exception_handler=_dont_fail_not_exist)
-cli_storage_data_plane_command('storage share metadata update', file_service_path + 'set_share_metadata', factory)
-cli_storage_data_plane_command('storage share exists', file_service_path + 'exists', factory, transform=create_boolean_result_output_transformer('exists'))
-cli_storage_data_plane_command('storage share policy create', custom_path + 'create_acl_policy', factory)
-cli_storage_data_plane_command('storage share policy delete', custom_path + 'delete_acl_policy', factory)
-cli_storage_data_plane_command('storage share policy show', custom_path + 'get_acl_policy', factory)
-cli_storage_data_plane_command('storage share policy list', custom_path + 'list_acl_policies', factory, table_transformer=transform_acl_list_output)
-cli_storage_data_plane_command('storage share policy update', custom_path + 'set_acl_policy', factory)
-cli_storage_data_plane_command('storage share snapshot', file_service_path + 'snapshot_share', factory, resource_type=ResourceType.DATA_STORAGE, min_api='2017-04-17')
-
-# directory commands
-cli_storage_data_plane_command('storage directory create', file_service_path + 'create_directory', factory, transform=create_boolean_result_output_transformer('created'), table_transformer=transform_boolean_for_table)
-cli_storage_data_plane_command('storage directory delete', file_service_path + 'delete_directory', factory, transform=create_boolean_result_output_transformer('deleted'), table_transformer=transform_boolean_for_table)
-cli_storage_data_plane_command('storage directory show', file_service_path + 'get_directory_properties', factory, table_transformer=transform_file_output, exception_handler=_dont_fail_not_exist)
-cli_storage_data_plane_command('storage directory list', custom_path + 'list_share_directories', factory, transform=transform_file_directory_result, table_transformer=transform_file_output)
-cli_storage_data_plane_command('storage directory exists', file_service_path + 'exists', factory, transform=create_boolean_result_output_transformer('exists'))
-cli_storage_data_plane_command('storage directory metadata show', file_service_path + 'get_directory_metadata', factory, exception_handler=_dont_fail_not_exist)
-cli_storage_data_plane_command('storage directory metadata update', file_service_path + 'set_directory_metadata', factory)
-
-# file commands
-cli_storage_data_plane_command('storage file list', custom_path + 'list_share_files', factory, transform=transform_file_directory_result, table_transformer=transform_file_output)
-cli_storage_data_plane_command('storage file delete', file_service_path + 'delete_file', factory, transform=create_boolean_result_output_transformer('deleted'), table_transformer=transform_boolean_for_table)
-cli_storage_data_plane_command('storage file resize', file_service_path + 'resize_file', factory)
-cli_storage_data_plane_command('storage file url', file_service_path + 'make_file_url', factory, transform=transform_url)
-cli_storage_data_plane_command('storage file generate-sas', file_service_path + 'generate_file_shared_access_signature', factory)
-cli_storage_data_plane_command('storage file show', file_service_path + 'get_file_properties', factory, table_transformer=transform_file_output, exception_handler=_dont_fail_not_exist)
-cli_storage_data_plane_command('storage file update', file_service_path + 'set_file_properties', factory)
-cli_storage_data_plane_command('storage file exists', file_service_path + 'exists', factory, transform=create_boolean_result_output_transformer('exists'))
-cli_storage_data_plane_command('storage file download', file_service_path + 'get_file_to_path', factory)
-cli_storage_data_plane_command('storage file upload', file_service_path + 'create_file_from_path', factory)
-cli_storage_data_plane_command('storage file metadata show', file_service_path + 'get_file_metadata', factory, exception_handler=_dont_fail_not_exist)
-cli_storage_data_plane_command('storage file metadata update', file_service_path + 'set_file_metadata', factory)
-cli_storage_data_plane_command('storage file copy start', file_service_path + 'copy_file', factory)
-cli_storage_data_plane_command('storage file copy cancel', file_service_path + 'abort_copy_file', factory)
-cli_storage_data_plane_command('storage file upload-batch', 'azure.cli.command_modules.storage.file#storage_file_upload_batch', factory)
-cli_storage_data_plane_command('storage file download-batch', 'azure.cli.command_modules.storage.file#storage_file_download_batch', factory)
-cli_storage_data_plane_command('storage file delete-batch', 'azure.cli.command_modules.storage.file#storage_file_delete_batch', factory)
-cli_storage_data_plane_command('storage file copy start-batch', 'azure.cli.command_modules.storage.file#storage_file_copy_batch', factory)
-
-# table commands
-factory = table_data_service_factory
-cli_storage_data_plane_command('storage table generate-sas', table_path + 'generate_table_shared_access_signature', factory)
-cli_storage_data_plane_command('storage table stats', table_path + 'get_table_service_stats', factory, resource_type=ResourceType.DATA_STORAGE, min_api='2016-05-31')
-cli_storage_data_plane_command('storage table list', table_path + 'list_tables', factory, transform=transform_storage_list_output)
-cli_storage_data_plane_command('storage table create', table_path + 'create_table', factory, transform=create_boolean_result_output_transformer('created'), table_transformer=transform_boolean_for_table)
-cli_storage_data_plane_command('storage table exists', table_path + 'exists', factory, transform=create_boolean_result_output_transformer('exists'))
-cli_storage_data_plane_command('storage table delete', table_path + 'delete_table', factory, transform=create_boolean_result_output_transformer('deleted'), table_transformer=transform_boolean_for_table)
-cli_storage_data_plane_command('storage table policy create', custom_path + 'create_acl_policy', factory)
-cli_storage_data_plane_command('storage table policy delete', custom_path + 'delete_acl_policy', factory)
-cli_storage_data_plane_command('storage table policy show', custom_path + 'get_acl_policy', factory, exception_handler=_dont_fail_not_exist)
-cli_storage_data_plane_command('storage table policy list', custom_path + 'list_acl_policies', factory, table_transformer=transform_acl_list_output)
-cli_storage_data_plane_command('storage table policy update', custom_path + 'set_acl_policy', factory)
-
-# table entity commands
-cli_storage_data_plane_command('storage entity query', table_path + 'query_entities', factory, table_transformer=transform_entity_query_output)
-cli_storage_data_plane_command('storage entity show', table_path + 'get_entity', factory, table_transformer=transform_entity_show, exception_handler=_dont_fail_not_exist)
-cli_storage_data_plane_command('storage entity insert', custom_path + 'insert_table_entity', factory)
-cli_storage_data_plane_command('storage entity replace', table_path + 'update_entity', factory)
-cli_storage_data_plane_command('storage entity merge', table_path + 'merge_entity', factory)
-cli_storage_data_plane_command('storage entity delete', table_path + 'delete_entity', factory, transform=create_boolean_result_output_transformer('deleted'), table_transformer=transform_boolean_for_table)
-
-# queue commands
-factory = queue_data_service_factory
-cli_storage_data_plane_command('storage queue generate-sas', queue_path + 'generate_queue_shared_access_signature', factory)
-cli_storage_data_plane_command('storage queue stats', queue_path + 'get_queue_service_stats', factory, resource_type=ResourceType.DATA_STORAGE, min_api='2016-05-31')
-cli_storage_data_plane_command('storage queue list', queue_path + 'list_queues', factory, transform=transform_storage_list_output)
-cli_storage_data_plane_command('storage queue create', queue_path + 'create_queue', factory, transform=create_boolean_result_output_transformer('created'), table_transformer=transform_boolean_for_table)
-cli_storage_data_plane_command('storage queue delete', queue_path + 'delete_queue', factory, transform=create_boolean_result_output_transformer('deleted'), table_transformer=transform_boolean_for_table)
-cli_storage_data_plane_command('storage queue metadata show', queue_path + 'get_queue_metadata', factory, exception_handler=_dont_fail_not_exist)
-cli_storage_data_plane_command('storage queue metadata update', queue_path + 'set_queue_metadata', factory)
-cli_storage_data_plane_command('storage queue exists', queue_path + 'exists', factory, transform=create_boolean_result_output_transformer('exists'))
-cli_storage_data_plane_command('storage queue policy create', custom_path + 'create_acl_policy', factory)
-cli_storage_data_plane_command('storage queue policy delete', custom_path + 'delete_acl_policy', factory)
-cli_storage_data_plane_command('storage queue policy show', custom_path + 'get_acl_policy', factory, exception_handler=_dont_fail_not_exist)
-cli_storage_data_plane_command('storage queue policy list', custom_path + 'list_acl_policies', factory, table_transformer=transform_acl_list_output)
-cli_storage_data_plane_command('storage queue policy update', custom_path + 'set_acl_policy', factory)
-
-# queue message commands
-cli_storage_data_plane_command('storage message put', queue_path + 'put_message', factory)
-cli_storage_data_plane_command('storage message get', queue_path + 'get_messages', factory, table_transformer=transform_message_show)
-cli_storage_data_plane_command('storage message peek', queue_path + 'peek_messages', factory, table_transformer=transform_message_show)
-cli_storage_data_plane_command('storage message delete', queue_path + 'delete_message', factory, transform=create_boolean_result_output_transformer('deleted'), table_transformer=transform_boolean_for_table)
-cli_storage_data_plane_command('storage message clear', queue_path + 'clear_messages', factory)
-cli_storage_data_plane_command('storage message update', queue_path + 'update_message', factory)
-
-
-# cors commands
-
-cli_storage_data_plane_command('storage cors add', custom_path + 'add_cors', multi_service_properties_factory)
-cli_storage_data_plane_command('storage cors clear', custom_path + 'clear_cors', multi_service_properties_factory)
-cli_storage_data_plane_command('storage cors list', custom_path + 'list_cors', multi_service_properties_factory,
- transform=transform_cors_list_output)
-
-# logging commands
-cli_storage_data_plane_command('storage logging update', custom_path + 'set_logging', multi_service_properties_factory)
-cli_storage_data_plane_command('storage logging show', custom_path + 'get_logging', multi_service_properties_factory,
- table_transformer=transform_logging_list_output, exception_handler=_dont_fail_not_exist)
-
-# # metrics commands
-cli_storage_data_plane_command('storage metrics update', custom_path + 'set_metrics', multi_service_properties_factory)
-cli_storage_data_plane_command('storage metrics show', custom_path + 'get_metrics', multi_service_properties_factory,
- table_transformer=transform_metrics_list_output, exception_handler=_dont_fail_not_exist)
+
+#custom_path = 'azure.cli.command_modules.storage.custom#'
+#file_service_path = 'azure.multiapi.storage.file.fileservice#FileService.'
+#block_blob_path = 'azure.multiapi.storage.blob.blockblobservice#BlockBlobService.'
+#page_blob_path = 'azure.multiapi.storage.blob.pageblobservice#PageBlobService.'
+#base_blob_path = 'azure.multiapi.storage.blob.baseblobservice#BaseBlobService.'
+#queue_path = 'azure.multiapi.storage.queue.queueservice#QueueService.'
+
+#if cosmosdb_table_exists():
+# table_path = 'azure.multiapi.cosmosdb.table.tableservice#TableService.'
+#else:
+# table_path = 'azure.multiapi.storage.table.tableservice#TableService.'
+
+
+#def _dont_fail_not_exist(ex):
+# AzureMissingResourceHttpError = get_sdk(ResourceType.DATA_STORAGE, 'common._error#AzureMissingResourceHttpError')
+# if isinstance(ex, AzureMissingResourceHttpError):
+# return None
+# else:
+# raise ex
+
+## container commands
+#factory = blob_data_service_factory
+#cli_storage_data_plane_command('storage container list', block_blob_path + 'list_containers', factory, transform=transform_storage_list_output, table_transformer=transform_container_list)
+#cli_storage_data_plane_command('storage container delete', block_blob_path + 'delete_container', factory, transform=create_boolean_result_output_transformer('deleted'), table_transformer=transform_boolean_for_table)
+#cli_storage_data_plane_command('storage container show', block_blob_path + 'get_container_properties', factory, table_transformer=transform_container_show, exception_handler=_dont_fail_not_exist)
+#cli_storage_data_plane_command('storage container create', block_blob_path + 'create_container', factory, transform=create_boolean_result_output_transformer('created'), table_transformer=transform_boolean_for_table)
+#cli_storage_data_plane_command('storage container generate-sas', block_blob_path + 'generate_container_shared_access_signature', factory)
+#cli_storage_data_plane_command('storage container metadata update', block_blob_path + 'set_container_metadata', factory)
+#cli_storage_data_plane_command('storage container metadata show', block_blob_path + 'get_container_metadata', factory, exception_handler=_dont_fail_not_exist)
+#cli_storage_data_plane_command('storage container lease acquire', block_blob_path + 'acquire_container_lease', factory)
+#cli_storage_data_plane_command('storage container lease renew', block_blob_path + 'renew_container_lease', factory)
+#cli_storage_data_plane_command('storage container lease release', block_blob_path + 'release_container_lease', factory)
+#cli_storage_data_plane_command('storage container lease change', block_blob_path + 'change_container_lease', factory)
+#cli_storage_data_plane_command('storage container lease break', block_blob_path + 'break_container_lease', factory)
+#cli_storage_data_plane_command('storage container exists', base_blob_path + 'exists', factory, transform=create_boolean_result_output_transformer('exists'), table_transformer=transform_boolean_for_table)
+#cli_storage_data_plane_command('storage container set-permission', base_blob_path + 'set_container_acl', factory)
+#cli_storage_data_plane_command('storage container show-permission', base_blob_path + 'get_container_acl', factory, transform=transform_container_permission_output)
+#cli_storage_data_plane_command('storage container policy create', custom_path + 'create_acl_policy', factory)
+#cli_storage_data_plane_command('storage container policy delete', custom_path + 'delete_acl_policy', factory)
+#cli_storage_data_plane_command('storage container policy show', custom_path + 'get_acl_policy', factory, exception_handler=_dont_fail_not_exist)
+#cli_storage_data_plane_command('storage container policy list', custom_path + 'list_acl_policies', factory, table_transformer=transform_acl_list_output)
+#cli_storage_data_plane_command('storage container policy update', custom_path + 'set_acl_policy', factory,
+# resource_type=ResourceType.DATA_STORAGE, min_api='2017-04-17')
+
+## blob commands
+#cli_storage_data_plane_command('storage blob list', block_blob_path + 'list_blobs', factory, transform=transform_storage_list_output, table_transformer=transform_blob_output)
+#cli_storage_data_plane_command('storage blob delete', block_blob_path + 'delete_blob', factory, transform=create_boolean_result_output_transformer('deleted'), table_transformer=transform_boolean_for_table)
+#cli_storage_data_plane_command('storage blob generate-sas', block_blob_path + 'generate_blob_shared_access_signature', factory)
+#cli_storage_data_plane_command('storage blob url', block_blob_path + 'make_blob_url', factory, transform=transform_url)
+#cli_storage_data_plane_command('storage blob snapshot', block_blob_path + 'snapshot_blob', factory)
+#cli_storage_data_plane_command('storage blob show', block_blob_path + 'get_blob_properties', factory, table_transformer=transform_blob_output, exception_handler=_dont_fail_not_exist)
+#cli_storage_data_plane_command('storage blob update', block_blob_path + 'set_blob_properties', factory)
+#cli_storage_data_plane_command('storage blob exists', base_blob_path + 'exists', factory, transform=create_boolean_result_output_transformer('exists'))
+#cli_storage_data_plane_command('storage blob download', base_blob_path + 'get_blob_to_path', factory)
+#cli_storage_data_plane_command('storage blob upload', 'azure.cli.command_modules.storage.blob#upload_blob', factory)
+#cli_storage_data_plane_command('storage blob metadata show', block_blob_path + 'get_blob_metadata', factory, exception_handler=_dont_fail_not_exist)
+#cli_storage_data_plane_command('storage blob metadata update', block_blob_path + 'set_blob_metadata', factory)
+#cli_storage_data_plane_command('storage blob service-properties show', base_blob_path + 'get_blob_service_properties', factory, exception_handler=_dont_fail_not_exist)
+#cli_storage_data_plane_command('storage blob lease acquire', block_blob_path + 'acquire_blob_lease', factory)
+#cli_storage_data_plane_command('storage blob lease renew', block_blob_path + 'renew_blob_lease', factory)
+#cli_storage_data_plane_command('storage blob lease release', block_blob_path + 'release_blob_lease', factory)
+#cli_storage_data_plane_command('storage blob lease change', block_blob_path + 'change_blob_lease', factory)
+#cli_storage_data_plane_command('storage blob lease break', block_blob_path + 'break_blob_lease', factory)
+#cli_storage_data_plane_command('storage blob copy start', block_blob_path + 'copy_blob', factory)
+#cli_storage_data_plane_command('storage blob copy start-batch', 'azure.cli.command_modules.storage.blob#storage_blob_copy_batch', factory)
+#cli_storage_data_plane_command('storage blob copy cancel', block_blob_path + 'abort_copy_blob', factory)
+#cli_storage_data_plane_command('storage blob upload-batch', 'azure.cli.command_modules.storage.blob#storage_blob_upload_batch', factory)
+#cli_storage_data_plane_command('storage blob download-batch', 'azure.cli.command_modules.storage.blob#storage_blob_download_batch', factory)
+#cli_storage_data_plane_command('storage blob delete-batch', 'azure.cli.command_modules.storage.blob#storage_blob_delete_batch', factory)
+#cli_storage_data_plane_command('storage blob set-tier', custom_path + 'set_blob_tier', factory)
+
+## page blob commands
+#cli_storage_data_plane_command('storage blob incremental-copy start',
+# page_blob_path + 'incremental_copy_blob', page_blob_service_factory)
+#cli_storage_data_plane_command('storage blob incremental-copy cancel',
+# block_blob_path + 'abort_copy_blob', page_blob_service_factory)
+
+## share commands
+#factory = file_data_service_factory
+#cli_storage_data_plane_command('storage share list', file_service_path + 'list_shares', factory, transform=transform_storage_list_output, table_transformer=transform_share_list)
+#cli_storage_data_plane_command('storage share create', file_service_path + 'create_share', factory, transform=create_boolean_result_output_transformer('created'), table_transformer=transform_boolean_for_table)
+#cli_storage_data_plane_command('storage share delete', file_service_path + 'delete_share', factory, transform=create_boolean_result_output_transformer('deleted'), table_transformer=transform_boolean_for_table)
+#cli_storage_data_plane_command('storage share generate-sas', file_service_path + 'generate_share_shared_access_signature', factory)
+#cli_storage_data_plane_command('storage share stats', file_service_path + 'get_share_stats', factory)
+#cli_storage_data_plane_command('storage share show', file_service_path + 'get_share_properties', factory, exception_handler=_dont_fail_not_exist)
+#cli_storage_data_plane_command('storage share update', file_service_path + 'set_share_properties', factory)
+#cli_storage_data_plane_command('storage share metadata show', file_service_path + 'get_share_metadata', factory, exception_handler=_dont_fail_not_exist)
+#cli_storage_data_plane_command('storage share metadata update', file_service_path + 'set_share_metadata', factory)
+#cli_storage_data_plane_command('storage share exists', file_service_path + 'exists', factory, transform=create_boolean_result_output_transformer('exists'))
+#cli_storage_data_plane_command('storage share policy create', custom_path + 'create_acl_policy', factory)
+#cli_storage_data_plane_command('storage share policy delete', custom_path + 'delete_acl_policy', factory)
+#cli_storage_data_plane_command('storage share policy show', custom_path + 'get_acl_policy', factory)
+#cli_storage_data_plane_command('storage share policy list', custom_path + 'list_acl_policies', factory, table_transformer=transform_acl_list_output)
+#cli_storage_data_plane_command('storage share policy update', custom_path + 'set_acl_policy', factory)
+#cli_storage_data_plane_command('storage share snapshot', file_service_path + 'snapshot_share', factory, resource_type=ResourceType.DATA_STORAGE, min_api='2017-04-17')
+
+## directory commands
+#cli_storage_data_plane_command('storage directory create', file_service_path + 'create_directory', factory, transform=create_boolean_result_output_transformer('created'), table_transformer=transform_boolean_for_table)
+#cli_storage_data_plane_command('storage directory delete', file_service_path + 'delete_directory', factory, transform=create_boolean_result_output_transformer('deleted'), table_transformer=transform_boolean_for_table)
+#cli_storage_data_plane_command('storage directory show', file_service_path + 'get_directory_properties', factory, table_transformer=transform_file_output, exception_handler=_dont_fail_not_exist)
+#cli_storage_data_plane_command('storage directory list', custom_path + 'list_share_directories', factory, transform=transform_file_directory_result, table_transformer=transform_file_output)
+#cli_storage_data_plane_command('storage directory exists', file_service_path + 'exists', factory, transform=create_boolean_result_output_transformer('exists'))
+#cli_storage_data_plane_command('storage directory metadata show', file_service_path + 'get_directory_metadata', factory, exception_handler=_dont_fail_not_exist)
+#cli_storage_data_plane_command('storage directory metadata update', file_service_path + 'set_directory_metadata', factory)
+
+## file commands
+#cli_storage_data_plane_command('storage file list', custom_path + 'list_share_files', factory, transform=transform_file_directory_result, table_transformer=transform_file_output)
+#cli_storage_data_plane_command('storage file delete', file_service_path + 'delete_file', factory, transform=create_boolean_result_output_transformer('deleted'), table_transformer=transform_boolean_for_table)
+#cli_storage_data_plane_command('storage file resize', file_service_path + 'resize_file', factory)
+#cli_storage_data_plane_command('storage file url', file_service_path + 'make_file_url', factory, transform=transform_url)
+#cli_storage_data_plane_command('storage file generate-sas', file_service_path + 'generate_file_shared_access_signature', factory)
+#cli_storage_data_plane_command('storage file show', file_service_path + 'get_file_properties', factory, table_transformer=transform_file_output, exception_handler=_dont_fail_not_exist)
+#cli_storage_data_plane_command('storage file update', file_service_path + 'set_file_properties', factory)
+#cli_storage_data_plane_command('storage file exists', file_service_path + 'exists', factory, transform=create_boolean_result_output_transformer('exists'))
+#cli_storage_data_plane_command('storage file download', file_service_path + 'get_file_to_path', factory)
+#cli_storage_data_plane_command('storage file upload', file_service_path + 'create_file_from_path', factory)
+#cli_storage_data_plane_command('storage file metadata show', file_service_path + 'get_file_metadata', factory, exception_handler=_dont_fail_not_exist)
+#cli_storage_data_plane_command('storage file metadata update', file_service_path + 'set_file_metadata', factory)
+#cli_storage_data_plane_command('storage file copy start', file_service_path + 'copy_file', factory)
+#cli_storage_data_plane_command('storage file copy cancel', file_service_path + 'abort_copy_file', factory)
+#cli_storage_data_plane_command('storage file upload-batch', 'azure.cli.command_modules.storage.file#storage_file_upload_batch', factory)
+#cli_storage_data_plane_command('storage file download-batch', 'azure.cli.command_modules.storage.file#storage_file_download_batch', factory)
+#cli_storage_data_plane_command('storage file delete-batch', 'azure.cli.command_modules.storage.file#storage_file_delete_batch', factory)
+#cli_storage_data_plane_command('storage file copy start-batch', 'azure.cli.command_modules.storage.file#storage_file_copy_batch', factory)
+
+## table commands
+#factory = table_data_service_factory
+#cli_storage_data_plane_command('storage table generate-sas', table_path + 'generate_table_shared_access_signature', factory)
+#cli_storage_data_plane_command('storage table stats', table_path + 'get_table_service_stats', factory, resource_type=ResourceType.DATA_STORAGE, min_api='2016-05-31')
+#cli_storage_data_plane_command('storage table list', table_path + 'list_tables', factory, transform=transform_storage_list_output)
+#cli_storage_data_plane_command('storage table create', table_path + 'create_table', factory, transform=create_boolean_result_output_transformer('created'), table_transformer=transform_boolean_for_table)
+#cli_storage_data_plane_command('storage table exists', table_path + 'exists', factory, transform=create_boolean_result_output_transformer('exists'))
+#cli_storage_data_plane_command('storage table delete', table_path + 'delete_table', factory, transform=create_boolean_result_output_transformer('deleted'), table_transformer=transform_boolean_for_table)
+#cli_storage_data_plane_command('storage table policy create', custom_path + 'create_acl_policy', factory)
+#cli_storage_data_plane_command('storage table policy delete', custom_path + 'delete_acl_policy', factory)
+#cli_storage_data_plane_command('storage table policy show', custom_path + 'get_acl_policy', factory, exception_handler=_dont_fail_not_exist)
+#cli_storage_data_plane_command('storage table policy list', custom_path + 'list_acl_policies', factory, table_transformer=transform_acl_list_output)
+#cli_storage_data_plane_command('storage table policy update', custom_path + 'set_acl_policy', factory)
+
+## table entity commands
+#cli_storage_data_plane_command('storage entity query', table_path + 'query_entities', factory, table_transformer=transform_entity_query_output)
+#cli_storage_data_plane_command('storage entity show', table_path + 'get_entity', factory, table_transformer=transform_entity_show, exception_handler=_dont_fail_not_exist)
+#cli_storage_data_plane_command('storage entity insert', custom_path + 'insert_table_entity', factory)
+#cli_storage_data_plane_command('storage entity replace', table_path + 'update_entity', factory)
+#cli_storage_data_plane_command('storage entity merge', table_path + 'merge_entity', factory)
+#cli_storage_data_plane_command('storage entity delete', table_path + 'delete_entity', factory, transform=create_boolean_result_output_transformer('deleted'), table_transformer=transform_boolean_for_table)
+
+## queue commands
+#factory = queue_data_service_factory
+#cli_storage_data_plane_command('storage queue generate-sas', queue_path + 'generate_queue_shared_access_signature', factory)
+#cli_storage_data_plane_command('storage queue stats', queue_path + 'get_queue_service_stats', factory, resource_type=ResourceType.DATA_STORAGE, min_api='2016-05-31')
+#cli_storage_data_plane_command('storage queue list', queue_path + 'list_queues', factory, transform=transform_storage_list_output)
+#cli_storage_data_plane_command('storage queue create', queue_path + 'create_queue', factory, transform=create_boolean_result_output_transformer('created'), table_transformer=transform_boolean_for_table)
+#cli_storage_data_plane_command('storage queue delete', queue_path + 'delete_queue', factory, transform=create_boolean_result_output_transformer('deleted'), table_transformer=transform_boolean_for_table)
+#cli_storage_data_plane_command('storage queue metadata show', queue_path + 'get_queue_metadata', factory, exception_handler=_dont_fail_not_exist)
+#cli_storage_data_plane_command('storage queue metadata update', queue_path + 'set_queue_metadata', factory)
+#cli_storage_data_plane_command('storage queue exists', queue_path + 'exists', factory, transform=create_boolean_result_output_transformer('exists'))
+#cli_storage_data_plane_command('storage queue policy create', custom_path + 'create_acl_policy', factory)
+#cli_storage_data_plane_command('storage queue policy delete', custom_path + 'delete_acl_policy', factory)
+#cli_storage_data_plane_command('storage queue policy show', custom_path + 'get_acl_policy', factory, exception_handler=_dont_fail_not_exist)
+#cli_storage_data_plane_command('storage queue policy list', custom_path + 'list_acl_policies', factory, table_transformer=transform_acl_list_output)
+#cli_storage_data_plane_command('storage queue policy update', custom_path + 'set_acl_policy', factory)
+
+## queue message commands
+#cli_storage_data_plane_command('storage message put', queue_path + 'put_message', factory)
+#cli_storage_data_plane_command('storage message get', queue_path + 'get_messages', factory, table_transformer=transform_message_show)
+#cli_storage_data_plane_command('storage message peek', queue_path + 'peek_messages', factory, table_transformer=transform_message_show)
+#cli_storage_data_plane_command('storage message delete', queue_path + 'delete_message', factory, transform=create_boolean_result_output_transformer('deleted'), table_transformer=transform_boolean_for_table)
+#cli_storage_data_plane_command('storage message clear', queue_path + 'clear_messages', factory)
+#cli_storage_data_plane_command('storage message update', queue_path + 'update_message', factory)
+
+
+## cors commands
+
+#cli_storage_data_plane_command('storage cors add', custom_path + 'add_cors', multi_service_properties_factory)
+#cli_storage_data_plane_command('storage cors clear', custom_path + 'clear_cors', multi_service_properties_factory)
+#cli_storage_data_plane_command('storage cors list', custom_path + 'list_cors', multi_service_properties_factory,
+# transform=transform_cors_list_output)
+
+## logging commands
+#cli_storage_data_plane_command('storage logging update', custom_path + 'set_logging', multi_service_properties_factory)
+#cli_storage_data_plane_command('storage logging show', custom_path + 'get_logging', multi_service_properties_factory,
+# table_transformer=transform_logging_list_output, exception_handler=_dont_fail_not_exist)
+
+## # metrics commands
+#cli_storage_data_plane_command('storage metrics update', custom_path + 'set_metrics', multi_service_properties_factory)
+#cli_storage_data_plane_command('storage metrics show', custom_path + 'get_metrics', multi_service_properties_factory,
+# table_transformer=transform_metrics_list_output, exception_handler=_dont_fail_not_exist)
+
+
+def load_command_table(self, _):
+
+ storage_account_sdk = CliCommandType(
+ operations_tmpl='azure.mgmt.storage.operations.storage_accounts_operations#StorageAccountsOperations.{}',
+ client_factory=cf_sa,
+ resource_type=ResourceType.MGMT_STORAGE
+ )
+
+ cloud_data_plane_sdk = CliCommandType(
+ operations_tmpl='azure.multiapi.storage.common#CloudStorageAccount.{}',
+ client_factory=cloud_storage_account_service_factory
+ )
+
+ # region StorageAccount
+ with self.command_group('storage account', storage_account_sdk, resource_type=ResourceType.MGMT_STORAGE) as g:
+ g.command('check-name', 'check_name_availability')
+ g.custom_command('create', 'create_storage_account', min_api='2016-01-01')
+ g.custom_command('create', 'create_storage_account_with_account_type', max_api='2015-06-15')
+ g.command('delete', 'delete', confirmation=True)
+ g.data_plane_command('generate-sas', 'generate_shared_access_signature', command_type=cloud_data_plane_sdk)
+ g.command('show', 'get_properties', exception_handler=empty_on_404)
+ g.custom_command('list', 'list_storage_accounts')
+ g.custom_command('show-usage', 'show_storage_account_usage')
+ g.custom_command('show-connection-string', 'show_storage_account_connection_string')
+ g.generic_update_command('update', getter_name='get_properties', setter_name='update',
+ custom_func_name='update_storage_account', min_api='2016-12-01')
+ g.command('keys renew', 'regenerate_key', transform=lambda x: getattr(x, 'keys', x))
+ g.command('keys list', 'list_keys', transform=lambda x: getattr(x, 'keys', x))
+
+ #with self.command_group('storage account network-rule', storage_account_sdk, min_api='2017-06-01', resource_type=ResourceType.MGMT_STORAGE, storage_client_factory=storage_client_factory(self.cli_ctx).storage_accounts) as g:
+ # g.custom_command('add', 'add_network_rule')
+ # g.custom_command('remove', 'remove_network_rule')
+ # g.custom_command('list', 'list_network_rules')
diff --git a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/custom.py b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/custom.py
index daceabe2232..447d27d99ca 100644
--- a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/custom.py
+++ b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/custom.py
@@ -7,50 +7,38 @@
from __future__ import print_function
-from azure.cli.core.decorators import transfer_doc
from azure.cli.core.profiles import ResourceType
-from azure.cli.command_modules.storage._factory import storage_client_factory
+from azure.cli.command_modules.storage._client_factory import storage_client_factory
from azure.cli.command_modules.storage.util import guess_content_type
-from .sdkutil import get_table_data_type
+from azure.cli.command_modules.storage.sdkutil import get_table_data_type
from knack.util import CLIError
-def _get_standard_imports(cli_ctx):
- raise CLIError('TODO: Update these merry old imports!')
- Logging, Metrics, CorsRule, AccessPolicy, RetentionPolicy = get_sdk(ResourceType.DATA_STORAGE,
- 'Logging',
- 'Metrics',
- 'CorsRule',
- 'AccessPolicy',
- 'RetentionPolicy',
- mod='models')
-
- BlockBlobService, BaseBlobService, FileService, FileProperties, DirectoryProperties, TableService, QueueService = \
- get_sdk(ResourceType.DATA_STORAGE, 'blob#BlockBlobService', 'blob.baseblobservice#BaseBlobService',
- 'file#FileService', 'file.models#FileProperties', 'file.models#DirectoryProperties', 'table#TableService',
- 'queue#QueueService')
+#def _get_standard_imports(cli_ctx):
+# Logging, Metrics, CorsRule, AccessPolicy, RetentionPolicy = get_sdk(ResourceType.DATA_STORAGE,
+# 'Logging',
+# 'Metrics',
+# 'CorsRule',
+# 'AccessPolicy',
+# 'RetentionPolicy',
+# mod='models')
-#TableService = get_table_data_type('table', 'TableService')
+# BlockBlobService, BaseBlobService, FileService, FileProperties, DirectoryProperties, TableService, QueueService = \
+# get_sdk(ResourceType.DATA_STORAGE, 'blob#BlockBlobService', 'blob.baseblobservice#BaseBlobService',
+# 'file#FileService', 'file.models#FileProperties', 'file.models#DirectoryProperties', 'table#TableService',
+# 'queue#QueueService')
+#TableService = get_table_data_type('table', 'TableService')
-# CUSTOM METHODS
-def create_storage_account(resource_group_name, account_name, sku=None, location=None, kind=None,
+# region StorageAccount
+def create_storage_account(cmd, resource_group_name, account_name, sku=None, location=None, kind=None,
tags=None, custom_domain=None, encryption_services=None, access_tier=None, https_only=None,
bypass=None, default_action=None, assign_identity=False):
- StorageAccountCreateParameters, Kind, Sku, CustomDomain, AccessTier, Identity, Encryption, NetworkRuleSet = get_sdk(
- cli_ctx,
- ResourceType.MGMT_STORAGE,
- 'StorageAccountCreateParameters',
- 'Kind',
- 'Sku',
- 'CustomDomain',
- 'AccessTier',
- 'Identity',
- 'Encryption',
- 'NetworkRuleSet',
- mod='models')
- scf = storage_client_factory()
+ StorageAccountCreateParameters, Kind, Sku, CustomDomain, AccessTier, Identity, Encryption, NetworkRuleSet = \
+ cmd.get_models('StorageAccountCreateParameters', 'Kind', 'Sku', 'CustomDomain', 'AccessTier', 'Identity',
+ 'Encryption', 'NetworkRuleSet')
+ scf = storage_client_factory(cmd.cli_ctx)
params = StorageAccountCreateParameters(sku=Sku(sku), kind=Kind(kind), location=location, tags=tags)
if custom_domain:
params.custom_domain = CustomDomain(custom_domain, None)
@@ -72,33 +60,62 @@ def create_storage_account(resource_group_name, account_name, sku=None, location
return scf.storage_accounts.create(resource_group_name, account_name, params)
-def create_storage_account_with_account_type(cli_ctx, resource_group_name, account_name, account_type,
+def create_storage_account_with_account_type(cmd, resource_group_name, account_name, account_type,
location=None, tags=None):
- StorageAccountCreateParameters, AccountType = get_sdk(
- cli_ctx,
- ResourceType.MGMT_STORAGE,
- 'StorageAccountCreateParameters',
- 'AccountType',
- mod='models')
- scf = storage_client_factory()
+ StorageAccountCreateParameters, AccountType = cmd.get_models('StorageAccountCreateParameters', 'AccountType')
+ scf = storage_client_factory(cmd.cli_ctx)
params = StorageAccountCreateParameters(location, AccountType(account_type), tags)
return scf.storage_accounts.create(resource_group_name, account_name, params)
-def update_storage_account(cli_ctx, instance, sku=None, tags=None, custom_domain=None, use_subdomain=None, encryption_services=None,
+def list_storage_accounts(cmd, resource_group_name=None):
+ scf = storage_client_factory(cmd.cli_ctx)
+ if resource_group_name:
+ accounts = scf.storage_accounts.list_by_resource_group(resource_group_name)
+ else:
+ accounts = scf.storage_accounts.list()
+ return list(accounts)
+
+
+def show_storage_account_connection_string(
+ cmd, resource_group_name, account_name, protocol='https', blob_endpoint=None,
+ file_endpoint=None, queue_endpoint=None, table_endpoint=None, key_name='primary'):
+ scf = storage_client_factory(cmd.cli_ctx)
+ obj = scf.storage_accounts.list_keys(resource_group_name, account_name) # pylint: disable=no-member
+ try:
+ keys = [obj.keys[0].value, obj.keys[1].value] # pylint: disable=no-member
+ except AttributeError:
+ # Older API versions have a slightly different structure
+ keys = [obj.key1, obj.key2] # pylint: disable=no-member
+
+ endpoint_suffix = cmd.cli_ctx.cloud.suffixes.storage_endpoint
+ connection_string = 'DefaultEndpointsProtocol={};EndpointSuffix={};AccountName={};AccountKey={}'.format(
+ protocol,
+ endpoint_suffix,
+ account_name,
+ keys[0] if key_name == 'primary' else keys[1]) # pylint: disable=no-member
+ connection_string = '{}{}'.format(connection_string,
+ ';BlobEndpoint={}'.format(blob_endpoint) if blob_endpoint else '')
+ connection_string = '{}{}'.format(connection_string,
+ ';FileEndpoint={}'.format(file_endpoint) if file_endpoint else '')
+ connection_string = '{}{}'.format(connection_string,
+ ';QueueEndpoint={}'.format(queue_endpoint) if queue_endpoint else '')
+ connection_string = '{}{}'.format(connection_string,
+ ';TableEndpoint={}'.format(table_endpoint) if table_endpoint else '')
+ return {'connectionString': connection_string}
+
+
+def show_storage_account_usage(cmd):
+ scf = storage_client_factory(cmd.cli_ctx)
+ return next((x for x in scf.usage.list() if x.name.value == 'StorageAccounts'), None) # pylint: disable=no-member
+
+
+def update_storage_account(cmd, instance, sku=None, tags=None, custom_domain=None, use_subdomain=None, encryption_services=None,
encryption_key_source=None, encryption_key_vault_properties=None,
access_tier=None, https_only=None, assign_identity=False, bypass=None, default_action=None):
- StorageAccountUpdateParameters, Sku, CustomDomain, AccessTier, Identity, Encryption, NetworkRuleSet = get_sdk(
- cli_ctx,
- ResourceType.MGMT_STORAGE,
- 'StorageAccountUpdateParameters',
- 'Sku',
- 'CustomDomain',
- 'AccessTier',
- 'Identity',
- 'Encryption',
- 'NetworkRuleSet',
- mod='models')
+ StorageAccountUpdateParameters, Sku, CustomDomain, AccessTier, Identity, Encryption, NetworkRuleSet = \
+ cmd.get_models('StorageAccountUpdateParameters', 'Sku', 'CustomDomain', 'AccessTier', 'Identity',
+ 'Encryption', 'NetworkRuleSet')
domain = instance.custom_domain
if custom_domain is not None:
domain = CustomDomain(custom_domain)
@@ -145,263 +162,217 @@ def update_storage_account(cli_ctx, instance, sku=None, tags=None, custom_domain
params.network_rule_set = acl
return params
+# endregion
+
+##@transfer_doc(FileService.list_directories_and_files)
+#def list_share_files(client, share_name, directory_name=None, timeout=None, exclude_dir=False, snapshot=None):
+# if supported_api_version(ResourceType.DATA_STORAGE, min_api='2017-04-17'):
+# generator = client.list_directories_and_files(share_name, directory_name, timeout=timeout, snapshot=snapshot)
+# else:
+# generator = client.list_directories_and_files(share_name, directory_name, timeout=timeout)
+# if exclude_dir:
+# return list(f for f in generator if isinstance(f.properties, FileProperties))
+
+# return generator
+
+
+##@transfer_doc(FileService.list_directories_and_files)
+#def list_share_directories(client, share_name, directory_name=None, timeout=None):
+# generator = client.list_directories_and_files(share_name, directory_name,
+# timeout=timeout)
+# return list(f for f in generator if isinstance(f.properties, DirectoryProperties))
+
+
+#def set_blob_tier(client, container_name, blob_name, tier, blob_type='block', timeout=None):
+# if blob_type == 'block':
+# return client.set_standard_blob_tier(container_name=container_name, blob_name=blob_name,
+# standard_blob_tier=tier, timeout=timeout)
+# elif blob_type == 'page':
+# return client.set_premium_page_blob_tier(container_name=container_name, blob_name=blob_name,
+# premium_page_blob_tier=tier, timeout=timeout)
+# else:
+# raise ValueError('Blob tier is only applicable to block or page blob.')
+
+
+#def _get_service_container_type(client):
+# if isinstance(client, BlockBlobService):
+# return 'container'
+# elif isinstance(client, FileService):
+# return 'share'
+# elif isinstance(client, TableService):
+# return 'table'
+# elif isinstance(client, QueueService):
+# return 'queue'
+# else:
+# raise ValueError('Unsupported service {}'.format(type(client)))
+
+
+#def _get_acl(client, container_name, **kwargs):
+# container = _get_service_container_type(client)
+# get_acl_fn = getattr(client, 'get_{}_acl'.format(container))
+# lease_id = kwargs.get('lease_id', None)
+# return get_acl_fn(container_name, lease_id=lease_id) if lease_id else get_acl_fn(container_name)
-#@transfer_doc(FileService.list_directories_and_files)
-def list_share_files(client, share_name, directory_name=None, timeout=None, exclude_dir=False, snapshot=None):
- if supported_api_version(ResourceType.DATA_STORAGE, min_api='2017-04-17'):
- generator = client.list_directories_and_files(share_name, directory_name, timeout=timeout, snapshot=snapshot)
- else:
- generator = client.list_directories_and_files(share_name, directory_name, timeout=timeout)
- if exclude_dir:
- return list(f for f in generator if isinstance(f.properties, FileProperties))
-
- return generator
-
-
-#@transfer_doc(FileService.list_directories_and_files)
-def list_share_directories(client, share_name, directory_name=None, timeout=None):
- generator = client.list_directories_and_files(share_name, directory_name,
- timeout=timeout)
- return list(f for f in generator if isinstance(f.properties, DirectoryProperties))
-
-
-def list_storage_accounts(resource_group_name=None):
- """ List storage accounts within a subscription or resource group. """
- scf = storage_client_factory()
- if resource_group_name:
- accounts = scf.storage_accounts.list_by_resource_group(resource_group_name)
- else:
- accounts = scf.storage_accounts.list()
- return list(accounts)
-
-
-def show_storage_account_usage():
- """ Show the current count and limit of the storage accounts under the subscription. """
- scf = storage_client_factory()
- return next((x for x in scf.usage.list() if x.name.value == 'StorageAccounts'), None) # pylint: disable=no-member
-
-
-def show_storage_account_connection_string(
- resource_group_name, account_name, protocol='https', blob_endpoint=None,
- file_endpoint=None, queue_endpoint=None, table_endpoint=None, key_name='primary'):
- """ Generate connection string for a storage account."""
- from azure.cli.core._profile import CLOUD
- scf = storage_client_factory()
- obj = scf.storage_accounts.list_keys(resource_group_name, account_name) # pylint: disable=no-member
- try:
- keys = [obj.keys[0].value, obj.keys[1].value] # pylint: disable=no-member
- except AttributeError:
- # Older API versions have a slightly different structure
- keys = [obj.key1, obj.key2] # pylint: disable=no-member
-
- endpoint_suffix = CLOUD.suffixes.storage_endpoint
- connection_string = 'DefaultEndpointsProtocol={};EndpointSuffix={};AccountName={};AccountKey={}'.format(
- protocol,
- endpoint_suffix,
- account_name,
- keys[0] if key_name == 'primary' else keys[1]) # pylint: disable=no-member
- connection_string = '{}{}'.format(connection_string,
- ';BlobEndpoint={}'.format(blob_endpoint) if blob_endpoint else '')
- connection_string = '{}{}'.format(connection_string,
- ';FileEndpoint={}'.format(file_endpoint) if file_endpoint else '')
- connection_string = '{}{}'.format(connection_string,
- ';QueueEndpoint={}'.format(queue_endpoint) if queue_endpoint else '')
- connection_string = '{}{}'.format(connection_string,
- ';TableEndpoint={}'.format(table_endpoint) if table_endpoint else '')
- return {'connectionString': connection_string}
-
-
-def set_blob_tier(client, container_name, blob_name, tier, blob_type='block', timeout=None):
- if blob_type == 'block':
- return client.set_standard_blob_tier(container_name=container_name, blob_name=blob_name,
- standard_blob_tier=tier, timeout=timeout)
- elif blob_type == 'page':
- return client.set_premium_page_blob_tier(container_name=container_name, blob_name=blob_name,
- premium_page_blob_tier=tier, timeout=timeout)
- else:
- raise ValueError('Blob tier is only applicable to block or page blob.')
-
-
-def _get_service_container_type(client):
- if isinstance(client, BlockBlobService):
- return 'container'
- elif isinstance(client, FileService):
- return 'share'
- elif isinstance(client, TableService):
- return 'table'
- elif isinstance(client, QueueService):
- return 'queue'
- else:
- raise ValueError('Unsupported service {}'.format(type(client)))
-
-
-def _get_acl(client, container_name, **kwargs):
- container = _get_service_container_type(client)
- get_acl_fn = getattr(client, 'get_{}_acl'.format(container))
- lease_id = kwargs.get('lease_id', None)
- return get_acl_fn(container_name, lease_id=lease_id) if lease_id else get_acl_fn(container_name)
-
-
-def _set_acl(client, container_name, acl, **kwargs):
- try:
- method_name = 'set_{}_acl'.format(_get_service_container_type(client))
- method = getattr(client, method_name)
- return method(container_name, acl, **kwargs)
- except TypeError:
- raise CLIError("Failed to invoke SDK method {}. The installed azure SDK may not be"
- "compatible to this version of Azure CLI.".format(method_name))
- except AttributeError:
- raise CLIError("Failed to get function {} from {}. The installed azure SDK may not be "
- "compatible to this version of Azure CLI.".format(client.__class__.__name__,
- method_name))
-
-
-def create_acl_policy(client, container_name, policy_name, start=None, expiry=None,
- permission=None, **kwargs):
- """Create a stored access policy on the containing object"""
- acl = _get_acl(client, container_name, **kwargs)
- acl[policy_name] = AccessPolicy(permission, expiry, start)
- if hasattr(acl, 'public_access'):
- kwargs['public_access'] = getattr(acl, 'public_access')
-
- return _set_acl(client, container_name, acl, **kwargs)
-
-
-def get_acl_policy(client, container_name, policy_name, **kwargs):
- """Show a stored access policy on a containing object"""
- acl = _get_acl(client, container_name, **kwargs)
- return acl.get(policy_name)
-
-
-def list_acl_policies(client, container_name, **kwargs):
- """List stored access policies on a containing object"""
- return _get_acl(client, container_name, **kwargs)
-
-
-def set_acl_policy(client, container_name, policy_name, start=None, expiry=None, permission=None,
- **kwargs):
- """Set a stored access policy on a containing object"""
- if not (start or expiry or permission):
- raise CLIError('Must specify at least one property when updating an access policy.')
-
- acl = _get_acl(client, container_name, **kwargs)
- try:
- policy = acl[policy_name]
- policy.start = start or policy.start
- policy.expiry = expiry or policy.expiry
- policy.permission = permission or policy.permission
- if hasattr(acl, 'public_access'):
- kwargs['public_access'] = getattr(acl, 'public_access')
-
- except KeyError:
- raise CLIError('ACL does not contain {}'.format(policy_name))
- return _set_acl(client, container_name, acl, **kwargs)
-
-
-def delete_acl_policy(client, container_name, policy_name, **kwargs):
- """ Delete a stored access policy on a containing object """
- acl = _get_acl(client, container_name, **kwargs)
- del acl[policy_name]
- if hasattr(acl, 'public_access'):
- kwargs['public_access'] = getattr(acl, 'public_access')
-
- return _set_acl(client, container_name, acl, **kwargs)
-
-
-def insert_table_entity(client, table_name, entity, if_exists='fail', timeout=None):
- if if_exists == 'fail':
- return client.insert_entity(table_name, entity, timeout)
- elif if_exists == 'merge':
- return client.insert_or_merge_entity(table_name, entity, timeout)
- elif if_exists == 'replace':
- return client.insert_or_replace_entity(table_name, entity, timeout)
- else:
- raise CLIError("Unrecognized value '{}' for --if-exists".format(if_exists))
-
-
-def list_cors(services, timeout=None):
- results = {}
- for s in services:
- results[s.name] = s.get_cors(timeout)
- return results
-
-
-def add_cors(services, origins, methods, max_age=0, exposed_headers=None, allowed_headers=None, timeout=None):
- for s in services:
- s.add_cors(origins, methods, max_age, exposed_headers, allowed_headers, timeout)
-
-
-def clear_cors(services, timeout=None):
- for s in services:
- s.clear_cors(timeout)
-
+#def _set_acl(client, container_name, acl, **kwargs):
+# try:
+# method_name = 'set_{}_acl'.format(_get_service_container_type(client))
+# method = getattr(client, method_name)
+# return method(container_name, acl, **kwargs)
+# except TypeError:
+# raise CLIError("Failed to invoke SDK method {}. The installed azure SDK may not be"
+# "compatible to this version of Azure CLI.".format(method_name))
+# except AttributeError:
+# raise CLIError("Failed to get function {} from {}. The installed azure SDK may not be "
+# "compatible to this version of Azure CLI.".format(client.__class__.__name__,
+# method_name))
-def set_logging(services, log, retention, timeout=None):
- for s in services:
- s.set_logging('r' in log, 'w' in log, 'd' in log, retention, timeout)
+#def create_acl_policy(client, container_name, policy_name, start=None, expiry=None,
+# permission=None, **kwargs):
+# """Create a stored access policy on the containing object"""
+# acl = _get_acl(client, container_name, **kwargs)
+# acl[policy_name] = AccessPolicy(permission, expiry, start)
+# if hasattr(acl, 'public_access'):
+# kwargs['public_access'] = getattr(acl, 'public_access')
-def get_logging(services, timeout=None):
- results = {}
- for s in services:
- results[s.name] = s.get_logging(timeout)
- return results
+# return _set_acl(client, container_name, acl, **kwargs)
-def set_metrics(services, retention, hour=None, minute=None, api=None, timeout=None):
- for s in services:
- s.set_metrics(retention, hour, minute, api, timeout)
+#def get_acl_policy(client, container_name, policy_name, **kwargs):
+# """Show a stored access policy on a containing object"""
+# acl = _get_acl(client, container_name, **kwargs)
+# return acl.get(policy_name)
-def get_metrics(services='bfqt', interval='both', timeout=None):
- results = {}
- for s in services:
- results[s.name] = s.get_metrics(interval, timeout)
- return results
+#def list_acl_policies(client, container_name, **kwargs):
+# """List stored access policies on a containing object"""
+# return _get_acl(client, container_name, **kwargs)
-def list_network_rules(client, resource_group_name, storage_account_name):
- sa = client.get_properties(resource_group_name, storage_account_name)
- rules = sa.network_rule_set
- delattr(rules, 'bypass')
- delattr(rules, 'default_action')
- return rules
+#def set_acl_policy(client, container_name, policy_name, start=None, expiry=None, permission=None,
+# **kwargs):
+# """Set a stored access policy on a containing object"""
+# if not (start or expiry or permission):
+# raise CLIError('Must specify at least one property when updating an access policy.')
+
+# acl = _get_acl(client, container_name, **kwargs)
+# try:
+# policy = acl[policy_name]
+# policy.start = start or policy.start
+# policy.expiry = expiry or policy.expiry
+# policy.permission = permission or policy.permission
+# if hasattr(acl, 'public_access'):
+# kwargs['public_access'] = getattr(acl, 'public_access')
+
+# except KeyError:
+# raise CLIError('ACL does not contain {}'.format(policy_name))
+# return _set_acl(client, container_name, acl, **kwargs)
+
+
+#def delete_acl_policy(client, container_name, policy_name, **kwargs):
+# """ Delete a stored access policy on a containing object """
+# acl = _get_acl(client, container_name, **kwargs)
+# del acl[policy_name]
+# if hasattr(acl, 'public_access'):
+# kwargs['public_access'] = getattr(acl, 'public_access')
+
+# return _set_acl(client, container_name, acl, **kwargs)
+
+
+#def insert_table_entity(client, table_name, entity, if_exists='fail', timeout=None):
+# if if_exists == 'fail':
+# return client.insert_entity(table_name, entity, timeout)
+# elif if_exists == 'merge':
+# return client.insert_or_merge_entity(table_name, entity, timeout)
+# elif if_exists == 'replace':
+# return client.insert_or_replace_entity(table_name, entity, timeout)
+# else:
+# raise CLIError("Unrecognized value '{}' for --if-exists".format(if_exists))
+
+
+#def list_cors(services, timeout=None):
+# results = {}
+# for s in services:
+# results[s.name] = s.get_cors(timeout)
+# return results
+
+
+#def add_cors(services, origins, methods, max_age=0, exposed_headers=None, allowed_headers=None, timeout=None):
+# for s in services:
+# s.add_cors(origins, methods, max_age, exposed_headers, allowed_headers, timeout)
+
+
+#def clear_cors(services, timeout=None):
+# for s in services:
+# s.clear_cors(timeout)
+
+
+#def set_logging(services, log, retention, timeout=None):
+# for s in services:
+# s.set_logging('r' in log, 'w' in log, 'd' in log, retention, timeout)
+
+
+#def get_logging(services, timeout=None):
+# results = {}
+# for s in services:
+# results[s.name] = s.get_logging(timeout)
+# return results
+
+
+#def set_metrics(services, retention, hour=None, minute=None, api=None, timeout=None):
+# for s in services:
+# s.set_metrics(retention, hour, minute, api, timeout)
+
+#def get_metrics(services='bfqt', interval='both', timeout=None):
+# results = {}
+# for s in services:
+# results[s.name] = s.get_metrics(interval, timeout)
+# return results
-def add_network_rule(client, resource_group_name, storage_account_name, action='Allow', subnet=None, vnet_name=None, # pylint: disable=unused-argument
- ip_address=None):
- sa = client.get_properties(resource_group_name, storage_account_name)
- rules = sa.network_rule_set
- if subnet:
- from msrestazure.tools import is_valid_resource_id
- if not is_valid_resource_id(subnet):
- raise CLIError("Expected fully qualified resource ID: got '{}'".format(subnet))
- VirtualNetworkRule = get_sdk(ResourceType.MGMT_STORAGE, 'VirtualNetworkRule', mod='models')
- if not rules.virtual_network_rules:
- rules.virtual_network_rules = []
- rules.virtual_network_rules.append(VirtualNetworkRule(subnet, action=action))
- if ip_address:
- IpRule = get_sdk(ResourceType.MGMT_STORAGE, 'IPRule', mod='models')
- if not rules.ip_rules:
- rules.ip_rules = []
- rules.ip_rules.append(IpRule(ip_address, action=action))
- StorageAccountUpdateParameters = get_sdk(ResourceType.MGMT_STORAGE, 'StorageAccountUpdateParameters', mod='models')
- params = StorageAccountUpdateParameters(network_rule_set=rules)
- return client.update(resource_group_name, storage_account_name, params)
+#def list_network_rules(client, resource_group_name, storage_account_name):
+# sa = client.get_properties(resource_group_name, storage_account_name)
+# rules = sa.network_rule_set
+# delattr(rules, 'bypass')
+# delattr(rules, 'default_action')
+# return rules
-def remove_network_rule(client, resource_group_name, storage_account_name, ip_address=None, subnet=None,
- vnet_name=None): # pylint: disable=unused-argument
- sa = client.get_properties(resource_group_name, storage_account_name)
- rules = sa.network_rule_set
- if subnet:
- rules.virtual_network_rules = [x for x in rules.virtual_network_rules
- if not x.virtual_network_resource_id.endswith(subnet)]
- if ip_address:
- rules.ip_rules = [x for x in rules.ip_rules if x.ip_address_or_range != ip_address]
+#def add_network_rule(client, resource_group_name, storage_account_name, action='Allow', subnet=None, vnet_name=None, # pylint: disable=unused-argument
+# ip_address=None):
+# sa = client.get_properties(resource_group_name, storage_account_name)
+# rules = sa.network_rule_set
+# if subnet:
+# from msrestazure.tools import is_valid_resource_id
+# if not is_valid_resource_id(subnet):
+# raise CLIError("Expected fully qualified resource ID: got '{}'".format(subnet))
+# VirtualNetworkRule = get_sdk(ResourceType.MGMT_STORAGE, 'VirtualNetworkRule', mod='models')
+# if not rules.virtual_network_rules:
+# rules.virtual_network_rules = []
+# rules.virtual_network_rules.append(VirtualNetworkRule(subnet, action=action))
+# if ip_address:
+# IpRule = get_sdk(ResourceType.MGMT_STORAGE, 'IPRule', mod='models')
+# if not rules.ip_rules:
+# rules.ip_rules = []
+# rules.ip_rules.append(IpRule(ip_address, action=action))
+
+# StorageAccountUpdateParameters = get_sdk(ResourceType.MGMT_STORAGE, 'StorageAccountUpdateParameters', mod='models')
+# params = StorageAccountUpdateParameters(network_rule_set=rules)
+# return client.update(resource_group_name, storage_account_name, params)
+
- StorageAccountUpdateParameters = get_sdk(ResourceType.MGMT_STORAGE, 'StorageAccountUpdateParameters', mod='models')
- params = StorageAccountUpdateParameters(network_rule_set=rules)
- return client.update(resource_group_name, storage_account_name, params)
+#def remove_network_rule(client, resource_group_name, storage_account_name, ip_address=None, subnet=None,
+# vnet_name=None): # pylint: disable=unused-argument
+# sa = client.get_properties(resource_group_name, storage_account_name)
+# rules = sa.network_rule_set
+# if subnet:
+# rules.virtual_network_rules = [x for x in rules.virtual_network_rules
+# if not x.virtual_network_resource_id.endswith(subnet)]
+# if ip_address:
+# rules.ip_rules = [x for x in rules.ip_rules if x.ip_address_or_range != ip_address]
+
+# StorageAccountUpdateParameters = get_sdk(ResourceType.MGMT_STORAGE, 'StorageAccountUpdateParameters', mod='models')
+# params = StorageAccountUpdateParameters(network_rule_set=rules)
+# return client.update(resource_group_name, storage_account_name, params)
diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/__init__.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/__init__.py
index bb3ce426347..0aedff0e591 100644
--- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/__init__.py
+++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/__init__.py
@@ -25,7 +25,6 @@ def load_command_table(self, args):
load_command_table(self, args)
return self.command_table
-
def load_arguments(self, command):
super(ComputeCommandsLoader, self).load_arguments(command)
from azure.cli.command_modules.vm._params import load_arguments
diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_actions.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_actions.py
index 0ba8bab4464..5c711d7865b 100644
--- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_actions.py
+++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_actions.py
@@ -15,11 +15,11 @@
from ._client_factory import _compute_client_factory
-def _resource_not_exists(resource_type):
+def _resource_not_exists(cli_ctx, resource_type):
def _handle_resource_not_exists(namespace):
# TODO: hook up namespace._subscription_id once we support it
ns, t = resource_type.split('/')
- if resource_exists(namespace.resource_group_name, namespace.name, ns, t):
+ if resource_exists(cli_ctx, namespace.resource_group_name, namespace.name, ns, t):
raise CLIError('Resource {} of type {} in group {} already exists.'.format(
namespace.name,
resource_type,
diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_completers.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_completers.py
index 50f48367d50..d8052a4233b 100644
--- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_completers.py
+++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_completers.py
@@ -3,26 +3,33 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
+from azure.cli.core.commands.parameters import get_one_of_subscription_locations
+from azure.cli.core.decorators import Completer
-def get_urn_aliases_completion_list(prefix, **kwargs): # pylint: disable=unused-argument
- images = load_images_from_aliases_doc()
+from azure.cli.command_modules.vm._actions import load_images_from_aliases_doc, get_vm_sizes
+
+
+@Completer
+def get_urn_aliases_completion_list(cmd, prefix, namespace): # pylint: disable=unused-argument
+ images = load_images_from_aliases_doc(cmd.cli_ctx)
return [i['urnAlias'] for i in images]
-def get_vm_size_completion_list(prefix, action, parsed_args, **kwargs): # pylint: disable=unused-argument
- try:
- location = parsed_args.location
- except AttributeError:
- location = get_one_of_subscription_locations()
- result = get_vm_sizes(location)
+@Completer
+def get_vm_size_completion_list(cmd, prefix, namespace): # pylint: disable=unused-argument
+ location = namespace.location
+ if not location:
+ location = get_one_of_subscription_locations(cmd.cli_ctx)
+ result = get_vm_sizes(cmd.cli_ctx, location)
return [r.name for r in result]
-def get_vm_run_command_completion_list(prefix, action, parsed_args, **kwargs): # pylint: disable=unused-argument
+@Completer
+def get_vm_run_command_completion_list(cmd, prefix, namespace): # pylint: disable=unused-argument
from ._client_factory import _compute_client_factory
try:
- location = parsed_args.location
+ location = namespace.location
except AttributeError:
- location = get_one_of_subscription_locations()
- result = _compute_client_factory().virtual_machine_run_commands.list(location)
+ location = get_one_of_subscription_locations(cmd.cli_ctx)
+ result = _compute_client_factory(cmd.cli_ctx).virtual_machine_run_commands.list(location)
return [r.id for r in result]
diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_format.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_format.py
index fa199520886..bfdaf0cfa77 100644
--- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_format.py
+++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_format.py
@@ -92,16 +92,19 @@ def transform_sku_for_table_output(skus):
result.append(order_dict)
return result
+
transform_extension_show_table_output = '{Name:name, ProvisioningState:provisioningState, Publisher:publisher, ' \
'Version:typeHandlerVersion, AutoUpgradeMinorVersion:autoUpgradeMinorVersion}'
+
transform_disk_show_table_output = '{Name:name, ResourceGroup:resourceGroup, Location:location, Zones: ' \
'(!zones && \' \') || join(` `, zones), Sku:sku.name, OsType:osType, ' \
'SizeGb:diskSizeGb, ProvisioningState:provisioningState}'
+
def get_vmss_table_output_transformer(loader, for_list=True):
transform = '{Name:name, ResourceGroup:resourceGroup, Location:location, $zone$Capacity:sku.capacity, ' \
'Overprovision:overprovision, UpgradePolicy:upgradePolicy.mode}'
- transform = transform.replace('$zone$', 'Zones: (!zones && \' \') || join(` `, zones), ' \
- if loader.supported_api_version(min_api='2017-03-30') else ' ')
+ transform = transform.replace('$zone$', 'Zones: (!zones && \' \') || join(` `, zones), '
+ if loader.supported_api_version(min_api='2017-03-30') else ' ')
return transform if for_list else '[].' + transform
diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_help.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_help.py
index e2c22eba553..e82e35cde2c 100644
--- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_help.py
+++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_help.py
@@ -601,6 +601,28 @@
short-summary: Manage encryption of VM disks.
"""
+helps['vm encryption enable'] = """
+ type: command
+ short-summary: Enable disk encryption on the OS disk and/or data disks.
+ parameters:
+ - name: --aad-client-id
+ short-summary: Client ID of an AAD app with permissions to write secrets to the key vault.
+ - name: --aad-client-secret
+ short-summary: Client secret of the AAD app with permissions to write secrets to the key vault.
+ - name: --aad-client-cert-thumbprint
+ short-summary: Thumbprint of the AAD app certificate with permissions to write secrets to the key vault.
+"""
+
+helps['vm encryption disable'] = """
+ type: command
+ short-summary: Disable disk encryption on the OS disk and/or data disks.
+"""
+
+helps['vm encryption show'] = """
+ type: command
+ short-summary: Show encryption status.
+"""
+
helps['vm extension'] = """
type: group
short-summary: Manage extensions on VMs.
@@ -914,30 +936,30 @@
helps['vmss encryption'] = """
type: group
- short-summary: (PREVIEW) Manage encryption of VM scale sets.
+ short-summary: (PREVIEW) Manage encryption of VMSS.
"""
helps['vmss encryption enable'] = """
type: command
- short-summary: Encrypt a VM scale set with managed disks.
+ short-summary: Encrypt a VMSS with managed disks.
examples:
- - name: encrypte a VM scale set using a key vault in the same resource group
+ - name: encrypt a VM scale set using a key vault in the same resource group
text: >
az vmss encryption enable -g MyResourceGroup -n MyVm --disk-encryption-keyvault myvault
"""
helps['vmss encryption disable'] = """
type: command
- short-summary: disable the encryption on a VM scale set with managed disks.
+ short-summary: Disable the encryption on a VMSS with managed disks.
examples:
- - name: disable encryption a VM scale set
+ - name: disable encryption a VMSS
text: >
az vmss encryption disable -g MyResourceGroup -n MyVm
"""
helps['vmss encryption show'] = """
type: command
- short-summary: show the encryption status
+ short-summary: Show encryption status.
"""
helps['vm capture'] = """
diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_params.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_params.py
index 883f222f432..8ecdbc93f23 100644
--- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_params.py
+++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_params.py
@@ -13,16 +13,15 @@
from azure.cli.core.commands.validators import (
get_default_location_from_resource_group, validate_file_or_dict)
from azure.cli.core.commands.parameters import (
- get_location_type, get_one_of_subscription_locations, get_resource_name_completion_list, tags_type,
+ get_location_type, get_resource_name_completion_list, tags_type,
file_type, get_enum_type, zone_type, zones_type)
-from azure.cli.command_modules.vm._actions import (
- load_images_from_aliases_doc, get_vm_sizes, _resource_not_exists)
+from azure.cli.command_modules.vm._actions import _resource_not_exists
from azure.cli.command_modules.vm._completers import (
get_urn_aliases_completion_list, get_vm_size_completion_list, get_vm_run_command_completion_list)
from azure.cli.command_modules.vm._validators import (
validate_nsg_name, validate_vm_nics, validate_vm_nic, validate_vm_disk, validate_asg_names_or_ids)
-from knack.arguments import ignore_type, CLIArgumentType
+from knack.arguments import CLIArgumentType
# REUSABLE ARGUMENT DEFINITIONS
@@ -45,7 +44,7 @@
# pylint: disable=too-many-statements
-def load_arguments(self, command):
+def load_arguments(self, _):
# special case for `network nic scale-set list` command alias
with self.argument_context('network nic scale-set list') as c:
@@ -125,7 +124,7 @@ def load_arguments(self, command):
c.argument('overwrite', action='store_true')
with self.argument_context('vm create') as c:
- c.argument('name', name_arg_type, validator=_resource_not_exists('Microsoft.Compute/virtualMachines'))
+ c.argument('name', name_arg_type, validator=_resource_not_exists(self.cli_ctx, 'Microsoft.Compute/virtualMachines'))
c.argument('vm_name', name_arg_type, id_part=None, help='Name of the virtual machine.', completer=None)
c.argument('os_disk_size_gb', type=int, help='the size of the os disk in GB', arg_group='Storage')
c.argument('attach_os_disk', help='Attach an existing OS disk to the VM. Can use the name or ID of a managed disk or the URI to an unmanaged disk VHD.')
@@ -143,7 +142,7 @@ def load_arguments(self, command):
c.argument('priority', help='Rule priority, between 100 (highest priority) and 4096 (lowest priority). Must be unique for each rule in the collection.', type=int)
for scope in ['vm show', 'vm list']:
- with self.argument_context(scope) as c:
+ with self.argument_context(scope) as c:
c.argument('show_details', action='store_true', options_list=['--show-details', '-d'], help='show public ip address, FQDN, and power states. command will run slow')
with self.argument_context('vm diagnostics') as c:
@@ -204,7 +203,7 @@ def load_arguments(self, command):
c.argument('scripts', nargs='+', help="script lines separated by whites spaces. Use @{file} to load from a file")
with self.argument_context('vm unmanaged-disk') as c:
- c.argument( 'vm_name', arg_type=existing_vm_name)
+ c.argument('vm_name', arg_type=existing_vm_name)
c.argument('disk_size', help='Size of disk (GiB)', default=1023, type=int)
c.argument('new', action='store_true', help='Create a new disk.')
c.argument('lun', type=int, help='0-based logical unit number (LUN). Max value depends on the Virtual Machine size.')
@@ -339,7 +338,7 @@ def load_arguments(self, command):
c.argument('use_unmanaged_disk', action='store_true', help='Do not use managed disk to persist VM')
c.argument('data_disk_sizes_gb', nargs='+', type=int, help='space separated empty managed data disk sizes in GB to create')
c.ignore('image_data_disks', 'storage_account_type', 'public_ip_type', 'nsg_type', 'nic_type', 'vnet_type', 'load_balancer_type', 'app_gateway_type')
- c.argument('os_caching', options_list=['--storage-caching', '--os-disk-caching'], help='Storage caching type for the VM OS disk.', arg_type=get_enum_type([CachingTypes.read_only.value, CachingTypes.read_write.value], default=CachingTypes.read_write.value))
+ c.argument('os_caching', options_list=['--storage-caching', '--os-disk-caching'], help='Storage caching type for the VM OS disk.', arg_type=get_enum_type([CachingTypes.read_only.value, CachingTypes.read_write.value], default='ReadWrite'))
c.argument('data_caching', options_list=['--data-disk-caching'], help='Storage caching type for the VM data disk(s).', arg_type=get_enum_type(CachingTypes))
with self.argument_context(scope, arg_group='Network') as c:
@@ -376,6 +375,9 @@ def load_arguments(self, command):
with self.argument_context(scope) as c:
c.argument('volume_type', help='Type of volume that the encryption operation is performed on', arg_type=get_enum_type(['DATA', 'OS', 'ALL']))
c.argument('force', action='store_true', help='continue by ignoring client side validation errors')
+ c.argument('disk_encryption_keyvault', help='The key vault where the generated encryption key will be placed.')
+ c.argument('key_encryption_key', help='Key vault key name or URL used to encrypt the disk encryption key.')
+ c.argument('key_encryption_keyvault', help='The key vault containing the key encryption key used to encrypt the disk encryption key. If missing, CLI will use `--disk-encryption-keyvault`.')
for scope in ['vm extension', 'vmss extension']:
with self.argument_context(scope) as c:
diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_template_builder.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_template_builder.py
index 8104f5ddda6..657705952d1 100644
--- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_template_builder.py
+++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_template_builder.py
@@ -10,7 +10,7 @@
from enum import Enum
from azure.cli.core.util import b64encode
-from azure.cli.core.profiles import get_api_version, supported_api_version, ResourceType
+from azure.cli.core.profiles import ResourceType
class ArmTemplateBuilder(object):
@@ -804,7 +804,7 @@ def build_vmss_resource(cmd, name, naming_prefix, location, tags, overprovision,
}
}
- if supported_api_version(ResourceType.MGMT_COMPUTE, min_api='2017-03-30'):
+ if cmd.supported_api_version(min_api='2017-03-30'):
if dns_servers:
nic_config['properties']['dnsSettings'] = {'dnsServers': dns_servers}
diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_validators.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_validators.py
index d9e251e86cf..4b2b3a01a01 100644
--- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_validators.py
+++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_validators.py
@@ -8,8 +8,8 @@
import os
import re
-from azure.cli.core.commands.validators import \
- (get_default_location_from_resource_group, validate_file_or_dict, validate_parameter_set)
+from azure.cli.core.commands.validators import (
+ get_default_location_from_resource_group, validate_file_or_dict, validate_parameter_set, validate_tags)
from azure.cli.core.util import hash_string
from azure.cli.command_modules.vm._vm_utils import check_existence
from azure.cli.command_modules.vm._template_builder import StorageProfile
@@ -23,15 +23,15 @@
logger = get_logger(__name__)
-def validate_asg_names_or_ids(namespace):
- from msrestazure.tools import resource_id, parse_resource_id, is_valid_resource_id
+def validate_asg_names_or_ids(cmd, namespace):
+ from msrestazure.tools import resource_id, is_valid_resource_id
from azure.cli.core.profiles import ResourceType
from azure.cli.core.commands.client_factory import get_subscription_id
- ApplicationSecurityGroup = namespace.cmd.get_models('ApplicationSecurityGroup',
- resource_type=ResourceType.MGMT_NETWORK)
+ ApplicationSecurityGroup = cmd.get_models('ApplicationSecurityGroup',
+ resource_type=ResourceType.MGMT_NETWORK)
resource_group = namespace.resource_group_name
- subscription_id = get_subscription_id(namespace.cmd.cli_ctx)
+ subscription_id = get_subscription_id(cmd.cli_ctx)
names_or_ids = getattr(namespace, 'application_security_groups')
ids = []
@@ -50,18 +50,18 @@ def validate_asg_names_or_ids(namespace):
setattr(namespace, 'application_security_groups', ids)
-def validate_nsg_name(namespace):
- from msrestazure.tools import resource_id, parse_resource_id, is_valid_resource_id
+def validate_nsg_name(cmd, namespace):
+ from msrestazure.tools import resource_id
from azure.cli.core.commands.client_factory import get_subscription_id
vm_id = resource_id(name=namespace.vm_name, resource_group=namespace.resource_group_name,
namespace='Microsoft.Compute', type='virtualMachines',
- subscription=get_subscription_id(namespace.cmd.cli_ctx))
+ subscription=get_subscription_id(cmd.cli_ctx))
namespace.network_security_group_name = namespace.network_security_group_name \
or '{}_NSG_{}'.format(namespace.vm_name, hash_string(vm_id, length=8))
-def process_vm_secret_namespace(namespace):
- namespace.keyvault = _get_resource_id(namespace.keyvault, namespace.resource_group_name,
+def process_vm_secret_namespace(cmd, namespace):
+ namespace.keyvault = _get_resource_id(cmd.cli_ctx, namespace.keyvault, namespace.resource_group_name,
'vaults', 'Microsoft.KeyVault')
@@ -74,6 +74,7 @@ def _get_resource_group_from_vault_name(cli_ctx, vault_name):
"""
from azure.mgmt.keyvault import KeyVaultManagementClient
from azure.cli.core.commands.client_factory import get_mgmt_service_client
+ from msrestazure.tools import parse_resource_id
client = get_mgmt_service_client(cli_ctx, KeyVaultManagementClient).vaults
for vault in client.list():
id_comps = parse_resource_id(vault.id)
@@ -83,7 +84,7 @@ def _get_resource_group_from_vault_name(cli_ctx, vault_name):
def _get_resource_id(cli_ctx, val, resource_group, resource_type, resource_namespace):
- from msrestazure.tools import resource_id, parse_resource_id, is_valid_resource_id
+ from msrestazure.tools import resource_id, is_valid_resource_id
from azure.cli.core.commands.client_factory import get_subscription_id
if is_valid_resource_id(val):
return val
@@ -97,20 +98,20 @@ def _get_nic_id(cli_ctx, val, resource_group):
'networkInterfaces', 'Microsoft.Network')
-def validate_vm_nic(namespace):
- namespace.nic = _get_nic_id(namespace.cmd.cli_ctx, namespace.nic, namespace.resource_group_name)
+def validate_vm_nic(cmd, namespace):
+ namespace.nic = _get_nic_id(cmd.cli_ctx, namespace.nic, namespace.resource_group_name)
-def validate_vm_nics(namespace):
+def validate_vm_nics(cmd, namespace):
rg = namespace.resource_group_name
nic_ids = []
for n in namespace.nics:
- nic_ids.append(_get_nic_id(n, rg))
+ nic_ids.append(_get_nic_id(cmd.cli_ctx, n, rg))
namespace.nics = nic_ids
if hasattr(namespace, 'primary_nic') and namespace.primary_nic:
- namespace.primary_nic = _get_nic_id(namespace.cmd.cli_ctx, namespace.primary_nic, rg)
+ namespace.primary_nic = _get_nic_id(cmd.cli_ctx, namespace.primary_nic, rg)
def _validate_secrets(secrets, os_type):
@@ -166,10 +167,10 @@ def _validate_secrets(secrets, os_type):
# region VM Create Validators
-def _parse_image_argument(namespace):
+def _parse_image_argument(cmd, namespace):
""" Systematically determines what type is supplied for the --image parameter. Updates the
namespace and returns the type for subsequent processing. """
- from msrestazure.tools import resource_id, parse_resource_id, is_valid_resource_id
+ from msrestazure.tools import is_valid_resource_id
from msrestazure.azure_exceptions import CloudError
# 1 - easy check for URI
if namespace.image.lower().endswith('.vhd'):
@@ -177,7 +178,7 @@ def _parse_image_argument(namespace):
# 2 - attempt to match an URN alias (most likely)
from azure.cli.command_modules.vm._actions import load_images_from_aliases_doc
- images = load_images_from_aliases_doc(namespace.cmd.cli_ctx)
+ images = load_images_from_aliases_doc(cmd.cli_ctx)
matched = next((x for x in images if x['urnAlias'].lower() == namespace.image.lower()), None)
if matched:
namespace.os_publisher = matched['publisher']
@@ -195,7 +196,7 @@ def _parse_image_argument(namespace):
namespace.os_version = urn_match.group(4)
if not any([namespace.plan_name, namespace.plan_product, namespace.plan_publisher]):
- image_plan = _get_image_plan_info_if_exists(namespace)
+ image_plan = _get_image_plan_info_if_exists(cmd, namespace)
if image_plan:
namespace.plan_name = image_plan.name
namespace.plan_product = image_plan.product
@@ -208,10 +209,10 @@ def _parse_image_argument(namespace):
return 'image_id'
# 5 - check if an existing managed disk image resource
- compute_client = _compute_client_factory()
+ compute_client = _compute_client_factory(cmd.cli_ctx)
try:
compute_client.images.get(namespace.resource_group_name, namespace.image)
- namespace.image = _get_resource_id(namespace.image, namespace.resource_group_name,
+ namespace.image = _get_resource_id(cmd.cli_ctx, namespace.image, namespace.resource_group_name,
'images', 'Microsoft.Compute')
return 'image_id'
except CloudError:
@@ -219,9 +220,10 @@ def _parse_image_argument(namespace):
raise CLIError(err.format(namespace.image, [x['urnAlias'] for x in images]))
-def _get_image_plan_info_if_exists(namespace):
+def _get_image_plan_info_if_exists(cmd, namespace):
+ from msrestazure.azure_exceptions import CloudError
try:
- compute_client = _compute_client_factory()
+ compute_client = _compute_client_factory(cmd.cli_ctx)
if namespace.os_version.lower() == 'latest':
top_one = compute_client.virtual_machine_images.list(namespace.location,
namespace.os_publisher,
@@ -272,8 +274,8 @@ def _validate_managed_disk_sku(sku):
# pylint: disable=too-many-branches, too-many-statements
-def _validate_vm_create_storage_profile(namespace, for_scale_set=False):
-
+def _validate_vm_create_storage_profile(cmd, namespace, for_scale_set=False):
+ from msrestazure.tools import parse_resource_id
# use minimal parameters to resolve the expected storage profile
if getattr(namespace, 'attach_os_disk', None) and not namespace.image:
if namespace.use_unmanaged_disk:
@@ -283,7 +285,7 @@ def _validate_vm_create_storage_profile(namespace, for_scale_set=False):
# STORAGE PROFILE #6
namespace.storage_profile = StorageProfile.ManagedSpecializedOSDisk
elif namespace.image and not getattr(namespace, 'attach_os_disk', None):
- image_type = _parse_image_argument(namespace)
+ image_type = _parse_image_argument(cmd, namespace)
if image_type == 'uri':
# STORAGE PROFILE #2
namespace.storage_profile = StorageProfile.SACustomImage
@@ -369,7 +371,7 @@ def _validate_vm_create_storage_profile(namespace, for_scale_set=False):
if namespace.storage_profile == StorageProfile.ManagedCustomImage:
# extract additional information from a managed custom image
res = parse_resource_id(namespace.image)
- compute_client = _compute_client_factory(namespace.cmd.cli_ctx)
+ compute_client = _compute_client_factory(cmd.cli_ctx)
image_info = compute_client.images.get(res['resource_group'], res['name'])
# pylint: disable=no-member
namespace.os_type = image_info.storage_profile.os_disk.os_type.value
@@ -378,23 +380,23 @@ def _validate_vm_create_storage_profile(namespace, for_scale_set=False):
elif namespace.storage_profile == StorageProfile.ManagedSpecializedOSDisk:
# accept disk name or ID
namespace.attach_os_disk = _get_resource_id(
- namespace.cmd.cli_ctx, namespace.attach_os_disk, namespace.resource_group_name, 'disks', 'Microsoft.Compute')
+ cmd.cli_ctx, namespace.attach_os_disk, namespace.resource_group_name, 'disks', 'Microsoft.Compute')
if getattr(namespace, 'attach_data_disks', None):
if not namespace.use_unmanaged_disk:
- namespace.attach_data_disks = [_get_resource_id(namespace.cmd.cli_ctx, d, namespace.resource_group_name, 'disks',
+ namespace.attach_data_disks = [_get_resource_id(cmd.cli_ctx, d, namespace.resource_group_name, 'disks',
'Microsoft.Compute') for d in namespace.attach_data_disks]
if not namespace.os_type:
namespace.os_type = 'windows' if 'windows' in namespace.os_offer.lower() else 'linux'
-def _validate_vm_create_storage_account(namespace):
-
+def _validate_vm_create_storage_account(cmd, namespace):
+ from msrestazure.tools import parse_resource_id
if namespace.storage_account:
storage_id = parse_resource_id(namespace.storage_account)
rg = storage_id.get('resource_group', namespace.resource_group_name)
- if check_existence(namespace.cmd.cli_ctx, storage_id['name'], rg, 'Microsoft.Storage', 'storageAccounts'):
+ if check_existence(cmd.cli_ctx, storage_id['name'], rg, 'Microsoft.Storage', 'storageAccounts'):
# 1 - existing storage account specified
namespace.storage_account_type = 'existing'
logger.debug("using specified existing storage account '%s'", storage_id['name'])
@@ -405,7 +407,7 @@ def _validate_vm_create_storage_account(namespace):
else:
from azure.cli.core.profiles import ResourceType
from azure.cli.core.commands.client_factory import get_mgmt_service_client
- storage_client = get_mgmt_service_client(namespace.cmd.cli_ctx, ResourceType.MGMT_STORAGE).storage_accounts
+ storage_client = get_mgmt_service_client(cmd.cli_ctx, ResourceType.MGMT_STORAGE).storage_accounts
# find storage account in target resource group that matches the VM's location
sku_tier = 'Premium' if 'Premium' in namespace.storage_sku else 'Standard'
@@ -424,18 +426,19 @@ def _validate_vm_create_storage_account(namespace):
logger.debug('no suitable storage account found. One will be created.')
-def _validate_vm_create_availability_set(namespace):
+def _validate_vm_create_availability_set(cmd, namespace):
+ from msrestazure.tools import parse_resource_id, resource_id
from azure.cli.core.commands.client_factory import get_subscription_id
if namespace.availability_set:
as_id = parse_resource_id(namespace.availability_set)
name = as_id['name']
rg = as_id.get('resource_group', namespace.resource_group_name)
- if not check_existence(namespace.cmd.cli_ctx, name, rg, 'Microsoft.Compute', 'availabilitySets'):
+ if not check_existence(cmd.cli_ctx, name, rg, 'Microsoft.Compute', 'availabilitySets'):
raise CLIError("Availability set '{}' does not exist.".format(name))
namespace.availability_set = resource_id(
- subscription=get_subscription_id(namespace.cmd.cli_ctx),
+ subscription=get_subscription_id(cmd.cli_ctx),
resource_group=rg,
namespace='Microsoft.Compute',
type='availabilitySets',
@@ -443,8 +446,8 @@ def _validate_vm_create_availability_set(namespace):
logger.debug("adding to specified availability set '%s'", namespace.availability_set)
-def _validate_vm_vmss_create_vnet(namespace, for_scale_set=False):
- from msrestazure.tools import resource_id, parse_resource_id, is_valid_resource_id
+def _validate_vm_vmss_create_vnet(cmd, namespace, for_scale_set=False):
+ from msrestazure.tools import is_valid_resource_id
vnet = namespace.vnet_name
subnet = namespace.subnet
rg = namespace.resource_group_name
@@ -455,7 +458,7 @@ def _validate_vm_vmss_create_vnet(namespace, for_scale_set=False):
logger.debug('no subnet specified. Attempting to find an existing Vnet and subnet...')
# if nothing specified, try to find an existing vnet and subnet in the target resource group
- client = get_network_client(namespace.cmd.cli_ctx).virtual_networks
+ client = get_network_client(cmd.cli_ctx).virtual_networks
# find VNET in target resource group that matches the VM's location with a matching subnet
for vnet_match in (v for v in client.list(rg) if v.location == location and v.subnets):
@@ -487,7 +490,7 @@ def _check_subnet(s):
"--subnet SUBNET_NAME --vnet-name VNET_NAME")
subnet_exists = \
- check_existence(namespace.cmd.cli_ctx, subnet, rg, 'Microsoft.Network', 'subnets', vnet, 'virtualNetworks')
+ check_existence(cmd.cli_ctx, subnet, rg, 'Microsoft.Network', 'subnets', vnet, 'virtualNetworks')
if subnet_is_id and not subnet_exists:
raise CLIError("Subnet '{}' does not exist.".format(subnet))
@@ -556,10 +559,10 @@ def _convert_to_int(address, bit_mask_len):
new_mask)
-def _validate_vm_create_nsg(namespace):
+def _validate_vm_create_nsg(cmd, namespace):
if namespace.nsg:
- if check_existence(namespace.cmd.cli_ctx, namespace.nsg, namespace.resource_group_name,
+ if check_existence(cmd.cli_ctx, namespace.nsg, namespace.resource_group_name,
'Microsoft.Network', 'networkSecurityGroups'):
namespace.nsg_type = 'existing'
logger.debug("using specified NSG '%s'", namespace.nsg)
@@ -574,15 +577,15 @@ def _validate_vm_create_nsg(namespace):
logger.debug('new NSG will be created')
-def _validate_vmss_create_nsg(namespace):
+def _validate_vmss_create_nsg(cmd, namespace):
if namespace.nsg:
- namespace.nsg = _get_resource_id(namespace.cmd.cli_ctx, namespace.nsg, namespace.resource_group_name,
+ namespace.nsg = _get_resource_id(cmd.cli_ctx, namespace.nsg, namespace.resource_group_name,
'networkSecurityGroups', 'Microsoft.Network')
-def _validate_vm_create_public_ip(namespace):
+def _validate_vm_create_public_ip(cmd, namespace):
if namespace.public_ip_address:
- if check_existence(namespace.cmd.cli_ctx, namespace.public_ip_address, namespace.resource_group_name,
+ if check_existence(cmd.cli_ctx, namespace.public_ip_address, namespace.resource_group_name,
'Microsoft.Network', 'publicIPAddresses'):
namespace.public_ip_type = 'existing'
logger.debug("using existing specified public IP '%s'", namespace.public_ip_address)
@@ -597,16 +600,17 @@ def _validate_vm_create_public_ip(namespace):
logger.debug('new public IP address will be created')
-def _validate_vmss_create_public_ip(namespace):
+def _validate_vmss_create_public_ip(cmd, namespace):
if namespace.load_balancer_type is None and namespace.app_gateway_type is None:
if namespace.public_ip_address:
raise CLIError('--public-ip-address can only be used when creating a new load '
'balancer or application gateway frontend.')
namespace.public_ip_address = ''
- _validate_vm_create_public_ip(namespace)
+ _validate_vm_create_public_ip(cmd, namespace)
-def _validate_vm_create_nics(namespace):
+def _validate_vm_create_nics(cmd, namespace):
+ from msrestazure.tools import resource_id
from azure.cli.core.commands.client_factory import get_subscription_id
nics_value = namespace.nics
nics = []
@@ -625,7 +629,7 @@ def _validate_vm_create_nics(namespace):
resource_group=namespace.resource_group_name,
namespace='Microsoft.Network',
type='networkInterfaces',
- subscription=get_subscription_id()),
+ subscription=get_subscription_id(cmd.cli_ctx)),
'properties': {
'primary': nics_value[0] == n
}
@@ -756,14 +760,15 @@ def validate_ssh_key(namespace):
namespace.ssh_key_value = content
-def _validate_vm_vmss_msi(namespace, from_set_command=False):
+def _validate_vm_vmss_msi(cmd, namespace, from_set_command=False):
if from_set_command or namespace.assign_identity:
if not namespace.identity_scope and getattr(namespace.identity_role, 'is_default', None) is None:
raise CLIError("usage error: '--role {}' is not applicable as the '--scope' is not provided".format(
namespace.identity_role))
# keep 'identity_role' for output as logical name is more readable
if namespace.identity_scope:
- setattr(namespace, 'identity_role_id', _resolve_role_id(namespace.identity_role, namespace.identity_scope))
+ setattr(namespace, 'identity_role_id', _resolve_role_id(cmd.cli_ctx, namespace.identity_role,
+ namespace.identity_scope))
elif namespace.identity_scope or getattr(namespace.identity_role, 'is_default', None) is None:
raise CLIError('usage error: --assign-identity [--scope SCOPE] [--role ROLE]')
@@ -797,31 +802,31 @@ def _resolve_role_id(cli_ctx, role, scope):
return role_id
-def process_vm_create_namespace(namespace):
- get_default_location_from_resource_group(namespace)
- validate_asg_names_or_ids(namespace)
- _validate_vm_create_storage_profile(namespace)
+def process_vm_create_namespace(cmd, namespace):
+ validate_tags(namespace)
+ get_default_location_from_resource_group(cmd, namespace)
+ validate_asg_names_or_ids(cmd, namespace)
+ _validate_vm_create_storage_profile(cmd, namespace)
if namespace.storage_profile in [StorageProfile.SACustomImage,
StorageProfile.SAPirImage]:
- _validate_vm_create_storage_account(namespace)
+ _validate_vm_create_storage_account(cmd, namespace)
- _validate_vm_create_availability_set(namespace)
- _validate_vm_vmss_create_vnet(namespace)
- _validate_vm_create_nsg(namespace)
- _validate_vm_create_public_ip(namespace)
- _validate_vm_create_nics(namespace)
+ _validate_vm_create_availability_set(cmd, namespace)
+ _validate_vm_vmss_create_vnet(cmd, namespace)
+ _validate_vm_create_nsg(cmd, namespace)
+ _validate_vm_create_public_ip(cmd, namespace)
+ _validate_vm_create_nics(cmd, namespace)
_validate_vm_vmss_create_auth(namespace)
if namespace.secrets:
_validate_secrets(namespace.secrets, namespace.os_type)
if namespace.license_type and namespace.os_type.lower() != 'windows':
raise CLIError('usage error: --license-type is only applicable on Windows VM')
- _validate_vm_vmss_msi(namespace)
+ _validate_vm_vmss_msi(cmd, namespace)
# endregion
-# region VMSS Create Validators
-
+# region VMSS Create Validators
def _get_vmss_create_instance_threshold():
return 100
@@ -843,8 +848,9 @@ def _get_default_address_pool(cli_ctx, resource_group, balancer_name, balancer_t
return values[0]
-def _validate_vmss_create_load_balancer_or_app_gateway(namespace):
+def _validate_vmss_create_load_balancer_or_app_gateway(cmd, namespace):
from msrestazure.azure_exceptions import CloudError
+ from msrestazure.tools import parse_resource_id
INSTANCE_THRESHOLD = _get_vmss_create_instance_threshold()
# convert the single_placement_group to boolean for simpler logic beyond
@@ -881,7 +887,7 @@ def _validate_vmss_create_load_balancer_or_app_gateway(namespace):
if balancer_type == 'applicationGateway':
if namespace.application_gateway:
- client = get_network_client(namespace.cmd.cli_ctx).application_gateways
+ client = get_network_client(cmd.cli_ctx).application_gateways
try:
rg = parse_resource_id(namespace.application_gateway).get(
'resource_group', namespace.resource_group_name)
@@ -889,7 +895,7 @@ def _validate_vmss_create_load_balancer_or_app_gateway(namespace):
client.get(rg, ag_name)
namespace.app_gateway_type = 'existing'
namespace.backend_pool_name = namespace.backend_pool_name or \
- _get_default_address_pool(rg, ag_name, 'application_gateways')
+ _get_default_address_pool(cmd.cli_ctx, rg, ag_name, 'application_gateways')
logger.debug("using specified existing application gateway '%s'", namespace.application_gateway)
except CloudError:
namespace.app_gateway_type = 'new'
@@ -923,17 +929,17 @@ def _validate_vmss_create_load_balancer_or_app_gateway(namespace):
if namespace.load_balancer:
rg = parse_resource_id(namespace.load_balancer).get('resource_group', namespace.resource_group_name)
lb_name = parse_resource_id(namespace.load_balancer)['name']
- lb = get_network_lb(namespace.resource_group_name, lb_name)
+ lb = get_network_lb(cmd.cli_ctx, namespace.resource_group_name, lb_name)
if lb:
namespace.load_balancer_type = 'existing'
namespace.backend_pool_name = namespace.backend_pool_name or \
- _get_default_address_pool(rg, lb_name, 'load_balancers')
+ _get_default_address_pool(cmd.cli_ctx, rg, lb_name, 'load_balancers')
if not namespace.nat_pool_name:
if len(lb.inbound_nat_pools) > 1:
raise CLIError("Multiple possible values found for '{0}': {1}\nSpecify '{0}' explicitly.".format( # pylint: disable=line-too-long
'--nat-pool-name', ', '.join([n.name for n in lb.inbound_nat_pools])))
elif not lb.inbound_nat_pools: # Associated scaleset will be missing ssh/rdp, so warn here.
- logger.warning("No inbound nat pool was configured on '{}'".format(namespace.load_balancer))
+ logger.warning("No inbound nat pool was configured on '%s'", namespace.load_balancer)
else:
namespace.nat_pool_name = lb.inbound_nat_pools[0].name
logger.debug("using specified existing load balancer '%s'", namespace.load_balancer)
@@ -963,52 +969,54 @@ def get_network_lb(cli_ctx, resource_group_name, lb_name):
return None
-def process_vmss_create_namespace(namespace):
- get_default_location_from_resource_group(namespace)
- _validate_vm_create_storage_profile(namespace, for_scale_set=True)
- _validate_vm_vmss_create_vnet(namespace, for_scale_set=True)
- _validate_vmss_create_load_balancer_or_app_gateway(namespace)
+def process_vmss_create_namespace(cmd, namespace):
+ validate_tags(namespace)
+ get_default_location_from_resource_group(cmd, namespace)
+ _validate_vm_create_storage_profile(cmd, namespace, for_scale_set=True)
+ _validate_vm_vmss_create_vnet(cmd, namespace, for_scale_set=True)
+ _validate_vmss_create_load_balancer_or_app_gateway(cmd, namespace)
_validate_vmss_create_subnet(namespace)
- _validate_vmss_create_public_ip(namespace)
- _validate_vmss_create_nsg(namespace)
+ _validate_vmss_create_public_ip(cmd, namespace)
+ _validate_vmss_create_nsg(cmd, namespace)
_validate_vm_vmss_create_auth(namespace)
- _validate_vm_vmss_msi(namespace)
+ _validate_vm_vmss_msi(cmd, namespace)
if namespace.license_type and namespace.os_type.lower() != 'windows':
raise CLIError('usage error: --license-type is only applicable on Windows VM scaleset')
if not namespace.public_ip_per_vm and namespace.vm_domain_name:
raise CLIError('Usage error: --vm-domain-name can only be used when --public-ip-per-vm is enabled')
-
-
# endregion
-# region disk, snapshot, image validators
-
-def validate_vm_disk(namespace):
- namespace.disk = _get_resource_id(namespace.cmd.cli_ctx, namespace.disk,
+# region disk, snapshot, image validators
+def validate_vm_disk(cmd, namespace):
+ namespace.disk = _get_resource_id(cmd.cli_ctx, namespace.disk,
namespace.resource_group_name, 'disks', 'Microsoft.Compute')
-def process_disk_or_snapshot_create_namespace(namespace):
+def process_disk_or_snapshot_create_namespace(cmd, namespace):
from msrestazure.azure_exceptions import CloudError
+ validate_tags(namespace)
if namespace.source:
usage_error = 'usage error: --source {SNAPSHOT | DISK} | --source VHD_BLOB_URI [--source-storage-account-id ID]'
try:
- namespace.source_blob_uri, namespace.source_disk, namespace.source_snapshot = _figure_out_storage_source(namespace.resource_group_name, namespace.source) # pylint: disable=line-too-long
+ namespace.source_blob_uri, namespace.source_disk, namespace.source_snapshot = _figure_out_storage_source(
+ cmd.cli_ctx, namespace.resource_group_name, namespace.source)
if not namespace.source_blob_uri and namespace.source_storage_account_id:
raise CLIError(usage_error)
except CloudError:
raise CLIError(usage_error)
-def process_image_create_namespace(namespace):
+def process_image_create_namespace(cmd, namespace):
+ from msrestazure.tools import parse_resource_id
from msrestazure.azure_exceptions import CloudError
+ validate_tags(namespace)
try:
# try capturing from VM, a most common scenario
- compute_client = _compute_client_factory(namespace.cmd.cli_ctx)
- res_id = _get_resource_id(namespace.source, namespace.resource_group_name,
+ compute_client = _compute_client_factory(cmd.cli_ctx)
+ res_id = _get_resource_id(cmd.cli_ctx, namespace.source, namespace.resource_group_name,
'virtualMachines', 'Microsoft.Compute')
res = parse_resource_id(res_id)
vm_info = compute_client.virtual_machines.get(res['resource_group'], res['name'])
@@ -1019,14 +1027,14 @@ def process_image_create_namespace(namespace):
raise CLIError("'--data-disk-sources' is not allowed when capturing "
"images from virtual machines")
except CloudError:
- namespace.os_blob_uri, namespace.os_disk, namespace.os_snapshot = _figure_out_storage_source(namespace.cmd.cli_ctx, namespace.resource_group_name, namespace.source) # pylint: disable=line-too-long
+ namespace.os_blob_uri, namespace.os_disk, namespace.os_snapshot = _figure_out_storage_source(cmd.cli_ctx, namespace.resource_group_name, namespace.source) # pylint: disable=line-too-long
namespace.data_blob_uris = []
namespace.data_disks = []
namespace.data_snapshots = []
if namespace.data_disk_sources:
for data_disk_source in namespace.data_disk_sources:
source_blob_uri, source_disk, source_snapshot = _figure_out_storage_source(
- namespace.resource_group_name, data_disk_source)
+ cmd.cli_ctx, namespace.resource_group_name, data_disk_source)
if source_blob_uri:
namespace.data_blob_uris.append(source_blob_uri)
if source_disk:
@@ -1062,8 +1070,8 @@ def _figure_out_storage_source(cli_ctx, resource_group_name, source):
return (source_blob_uri, source_disk, source_snapshot)
-def process_disk_encryption_namespace(namespace):
- namespace.disk_encryption_keyvault = _get_resource_id(namespace.cmd.cli_ctx, namespace.disk_encryption_keyvault,
+def process_disk_encryption_namespace(cmd, namespace):
+ namespace.disk_encryption_keyvault = _get_resource_id(cmd.cli_ctx, namespace.disk_encryption_keyvault,
namespace.resource_group_name,
'vaults', 'Microsoft.KeyVault')
@@ -1071,11 +1079,11 @@ def process_disk_encryption_namespace(namespace):
if not namespace.key_encryption_key:
raise CLIError("Incorrect usage '--key-encryption-keyvault': "
"'--key-encryption-key' is required")
- namespace.key_encryption_keyvault = _get_resource_id(namespace.cmd.cli_ctx, namespace.key_encryption_keyvault,
+ namespace.key_encryption_keyvault = _get_resource_id(cmd.cli_ctx, namespace.key_encryption_keyvault,
namespace.resource_group_name,
'vaults', 'Microsoft.KeyVault')
-def process_assign_identity_namespace(namespace):
- _validate_vm_vmss_msi(namespace, from_set_command=True)
+def process_assign_identity_namespace(cmd, namespace):
+ _validate_vm_vmss_msi(cmd, namespace, from_set_command=True)
# endregion
diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_vm_utils.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_vm_utils.py
index b71353e2dca..6a2b9c3d342 100644
--- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_vm_utils.py
+++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_vm_utils.py
@@ -11,6 +11,7 @@
logger = get_logger(__name__)
+
def read_content_if_is_file(string_or_file):
content = string_or_file
if os.path.exists(string_or_file):
@@ -69,7 +70,7 @@ def check_existence(cli_ctx, value, resource_group, provider_namespace, resource
parent_path = ''
resource_name = id_parts['name']
resource_type = id_parts.get('type', resource_type)
- api_version = _resolve_api_version(provider_namespace, resource_type, parent_path)
+ api_version = _resolve_api_version(cli_ctx, provider_namespace, resource_type, parent_path)
try:
resource_client.get(rg, ns, parent_path, resource_type, resource_name, api_version)
@@ -78,17 +79,16 @@ def check_existence(cli_ctx, value, resource_group, provider_namespace, resource
return False
-def create_keyvault_data_plane_client():
+def create_keyvault_data_plane_client(cli_ctx):
from azure.cli.core._profile import Profile
def get_token(server, resource, scope): # pylint: disable=unused-argument
- return Profile().get_login_credentials(resource)[0]._token_retriever() # pylint: disable=protected-access
+ return Profile(cli_ctx).get_login_credentials(resource)[0]._token_retriever() # pylint: disable=protected-access
from azure.keyvault import KeyVaultClient, KeyVaultAuthentication
return KeyVaultClient(KeyVaultAuthentication(get_token))
-def get_key_vault_base_url(vault_name):
- from azure.cli.core._profile import CLOUD
- suffix = CLOUD.suffixes.keyvault_dns
+def get_key_vault_base_url(cli_ctx, vault_name):
+ suffix = cli_ctx.cloud.suffixes.keyvault_dns
return 'https://{}{}'.format(vault_name, suffix)
diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/commands.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/commands.py
index a026a935672..3851224326d 100644
--- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/commands.py
+++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/commands.py
@@ -20,13 +20,13 @@
process_vm_secret_namespace)
from azure.cli.core.commands import DeploymentOutputLongRunningOperation
-from azure.cli.core.commands.arm import handle_long_running_operation_exception, deployment_validate_table_format
+from azure.cli.core.commands.arm import deployment_validate_table_format
from azure.cli.core.util import empty_on_404
-from azure.cli.core.profiles import ResourceType
from azure.cli.core.sdk.util import CliCommandType
-# pylint: disable=line-too-long
-def load_command_table(self, args):
+
+# pylint: disable=line-too-long, too-many-statements
+def load_command_table(self, _):
compute_custom = CliCommandType(operations_tmpl='azure.cli.command_modules.vm.custom#{}')
@@ -97,6 +97,11 @@ def load_command_table(self, args):
client_factory=cf_rolling_upgrade_commands
)
+ compute_vmss_vm_sdk = CliCommandType(
+ operations_tmpl='azure.mgmt.compute.operations.virtual_machine_scale_set_vms_operations#VirtualMachineScaleSetVMsOperations.{}',
+ client_factory=cf_vmss_vm
+ )
+
network_nic_sdk = CliCommandType(
operations_tmpl='azure.mgmt.network.operations.network_interfaces_operations#NetworkInterfacesOperations{}',
client_factory=cf_ni
@@ -113,7 +118,7 @@ def load_command_table(self, args):
g.generic_wait_command('wait')
with self.command_group('image', compute_image_sdk) as g:
- g.custom_command('create', 'create_image')
+ g.custom_command('create', 'create_image', validator=process_image_create_namespace)
g.custom_command('list', 'list_images')
g.command('show', 'get', exception_handler=empty_on_404)
g.command('delete', 'delete')
@@ -152,7 +157,7 @@ def load_command_table(self, args):
g.command('start', 'start', no_wait_param='raw')
g.command('stop', 'power_off', no_wait_param='raw')
g.generic_update_command('update', no_wait_param='raw')
- g.generic_wait_command('wait', 'azure.cli.command_modules.vm.custom#get_instance_view')
+ g.generic_wait_command('wait', 'get_instance_view', command_type=compute_custom, client_factory=None)
with self.command_group('vm availability-set', compute_availset_sdk) as g:
g.custom_command('convert', 'convert_av_set_to_managed_disk', min_api='2016-04-30-preview')
@@ -236,7 +241,7 @@ def load_command_table(self, args):
g.custom_command('delete-instances', 'delete_vmss_instances', no_wait_param='no_wait')
g.custom_command('get-instance-view', 'get_vmss_instance_view', table_transformer='{ProvisioningState:statuses[0].displayStatus, PowerState:statuses[1].displayStatus}')
g.custom_command('list', 'list_vmss', table_transformer=get_vmss_table_output_transformer(self))
- g.command('list-instances', 'list')
+ g.command('list-instances', 'list', command_type=compute_vmss_vm_sdk)
g.custom_command('list-instance-connection-info', 'list_vmss_instance_connection_info')
g.custom_command('list-instance-public-ips', 'list_vmss_instance_public_ips')
g.command('list-skus', 'list_skus')
diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/custom.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/custom.py
index f7ea9dd7f9f..3c8ab08393f 100644
--- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/custom.py
+++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/custom.py
@@ -252,6 +252,7 @@ def __call__(self, poller):
# be caught through the base class
return None
+
# region Disks (Managed)
def create_managed_disk(cmd, resource_group_name, disk_name, location=None,
size_gb=None, sku='Premium_LRS',
@@ -403,7 +404,7 @@ def update_snapshot(cmd, instance, sku=None):
# region VirtualMachines
-def assign_vm_identity(cmd, resource_group_name, vm_name, identity_role=DefaultStr('Contributor'),
+def assign_vm_identity(cmd, resource_group_name, vm_name, identity_role='Contributor',
identity_role_id=None, identity_scope=None, port=None):
VirtualMachineIdentity = cmd.get_models('VirtualMachineIdentity')
from azure.cli.core.commands.arm import assign_implict_identity
@@ -430,7 +431,6 @@ def setter(vm):
return _construct_identity_info(identity_scope, identity_role, port)
-
def capture_vm(cmd, resource_group_name, vm_name, vhd_name_prefix,
storage_container='vhds', overwrite=True):
VirtualMachineCaptureParameters = cmd.get_models('VirtualMachineCaptureParameters')
@@ -444,11 +444,11 @@ def capture_vm(cmd, resource_group_name, vm_name, vhd_name_prefix,
# pylint: disable=too-many-locals, unused-argument, too-many-statements, too-many-branches
def create_vm(cmd, vm_name, resource_group_name, image=None, size='Standard_DS1_v2', location=None, tags=None,
no_wait=False, authentication_type=None, admin_password=None,
- admin_username=DefaultStr(getpass.getuser()), ssh_dest_key_path=None, ssh_key_value=None,
+ admin_username=getpass.getuser(), ssh_dest_key_path=None, ssh_key_value=None,
generate_ssh_keys=False, availability_set=None, nics=None, nsg=None, nsg_rule=None,
private_ip_address=None, public_ip_address=None, public_ip_address_allocation='dynamic',
public_ip_address_dns_name=None, os_disk_name=None, os_type=None, storage_account=None,
- os_caching=None, data_caching=None, storage_container_name=None, storage_sku=None,
+ os_caching=DefaultStr('ReadWrite'), data_caching=None, storage_container_name=None, storage_sku=None,
use_unmanaged_disk=False, attach_os_disk=None, os_disk_size_gb=None,
attach_data_disks=None, data_disk_sizes_gb=None, image_data_disks=None,
vnet_name=None, vnet_address_prefix='10.0.0.0/16', subnet=None, subnet_address_prefix='10.0.0.0/24',
@@ -456,7 +456,7 @@ def create_vm(cmd, vm_name, resource_group_name, image=None, size='Standard_DS1_
storage_account_type=None, vnet_type=None, nsg_type=None, public_ip_type=None, nic_type=None,
validate=False, custom_data=None, secrets=None, plan_name=None, plan_product=None, plan_publisher=None,
plan_promotion_code=None, license_type=None, assign_identity=False, identity_scope=None,
- identity_role=DefaultStr('Contributor'), identity_role_id=None, application_security_groups=None,
+ identity_role='Contributor', identity_role_id=None, application_security_groups=None,
zone=None):
from azure.cli.core.commands.client_factory import get_subscription_id
from azure.cli.core.util import random_string, hash_string
@@ -679,7 +679,7 @@ def list_vm(cmd, resource_group_name=None, show_details=False):
vm_list = ccf.virtual_machines.list(resource_group_name=resource_group_name) \
if resource_group_name else ccf.virtual_machines.list_all()
if show_details:
- return [get_vm_details(cmd.cli_ctx, _parse_rg_name(v.id)[0], v.name) for v in vm_list]
+ return [get_vm_details(cmd, _parse_rg_name(v.id)[0], v.name) for v in vm_list]
return list(vm_list)
@@ -754,9 +754,7 @@ def open_vm_port(cmd, resource_group_name, vm_name, port, priority=900, network_
nsg = nic.network_security_group
else:
subnet_id = parse_resource_id(nic.ip_configurations[0].subnet.id)
- subnet = network.subnets.get(resource_group_name,
- subnet_id['name'],
- subnet_id['child_name'])
+ subnet = network.subnets.get(resource_group_name, subnet_id['name'], subnet_id['child_name_1'])
nsg = subnet.network_security_group
if not nsg:
@@ -793,7 +791,7 @@ def open_vm_port(cmd, resource_group_name, vm_name, port, priority=900, network_
LongRunningOperation(cmd.cli_ctx, 'Updating subnet')(network.subnets.create_or_update(
resource_group_name=resource_group_name,
virtual_network_name=subnet_id['name'],
- subnet_name=subnet_id['child_name'],
+ subnet_name=subnet_id['child_name_1'],
subnet_parameters=subnet
))
@@ -841,7 +839,7 @@ def convert_av_set_to_managed_disk(cmd, resource_group_name, availability_set_na
av_set.sku.name = 'Aligned'
# let us double check whether the existing FD number is supported
- skus = list_skus(av_set.location)
+ skus = list_skus(cmd, av_set.location)
av_sku = next((s for s in skus if s.resource_type == 'availabilitySets' and s.name == 'Aligned'), None)
if av_sku and av_sku.capabilities:
max_fd = int(next((c.value for c in av_sku.capabilities if c.name == 'MaximumPlatformFaultDomainCount'),
@@ -907,7 +905,7 @@ def disable_boot_diagnostics(cmd, resource_group_name, vm_name):
vm.resources = None
diag_profile.boot_diagnostics.enabled = False
diag_profile.boot_diagnostics.storage_uri = None
- set_vm(vm, ExtensionUpdateLongRunningOperation(cmd.cli_ctx, 'disabling boot diagnostics', 'done'))
+ set_vm(cmd, vm, ExtensionUpdateLongRunningOperation(cmd.cli_ctx, 'disabling boot diagnostics', 'done'))
def enable_boot_diagnostics(cmd, resource_group_name, vm_name, storage):
@@ -940,7 +938,7 @@ def enable_boot_diagnostics(cmd, resource_group_name, vm_name, storage):
# Issue: https://github.com/Azure/autorest/issues/934
vm.resources = None
- set_vm(vm, ExtensionUpdateLongRunningOperation(cmd.cli_ctx, 'enabling boot diagnostics', 'done'))
+ set_vm(cmd, vm, ExtensionUpdateLongRunningOperation(cmd.cli_ctx, 'enabling boot diagnostics', 'done'))
def get_boot_log(cmd, resource_group_name, vm_name):
@@ -1186,7 +1184,6 @@ def set_vm_nic(cmd, resource_group_name, vm_name, nics, primary_nic=None):
return _update_vm_nics(cmd, vm, nics, primary_nic)
-
def _build_nic_list(cmd, nic_ids):
NetworkInterfaceReference = cmd.get_models('NetworkInterfaceReference')
nic_list = []
@@ -1313,9 +1310,9 @@ def add_vm_secret(cmd, resource_group_name, vm_name, keyvault, certificate, cert
vm = get_vm(cmd, resource_group_name, vm_name)
if '://' not in certificate: # has a cert name rather a full url?
- keyvault_client = create_keyvault_data_plane_client()
- cert_info = keyvault_client.get_certificate(get_key_vault_base_url(parse_resource_id(keyvault)['name']),
- certificate, '')
+ keyvault_client = create_keyvault_data_plane_client(cmd.cli_ctx)
+ cert_info = keyvault_client.get_certificate(
+ get_key_vault_base_url(cmd.cli_ctx, parse_resource_id(keyvault)['name']), certificate, '')
certificate = cert_info.sid
if not _is_linux_vm(vm):
@@ -1524,7 +1521,7 @@ def reset_linux_ssh(cmd, resource_group_name, vm_name, no_wait=False):
# region VirtualMachineScaleSets
-def assign_vmss_identity(cmd, resource_group_name, vmss_name, identity_role=DefaultStr('Contributor'),
+def assign_vmss_identity(cmd, resource_group_name, vmss_name, identity_role='Contributor',
identity_role_id=None, identity_scope=None, port=None):
VirtualMachineScaleSetIdentity, UpgradeMode = cmd.get_models('VirtualMachineScaleSetIdentity', 'UpgradeMode')
from azure.cli.core.commands.arm import assign_implict_identity
@@ -1560,18 +1557,18 @@ def setter(vmss):
def create_vmss(cmd, vmss_name, resource_group_name, image,
disable_overprovision=False, instance_count=2,
location=None, tags=None, upgrade_policy_mode='manual', validate=False,
- admin_username=DefaultStr(getpass.getuser()), admin_password=None, authentication_type=None,
+ admin_username=getpass.getuser(), admin_password=None, authentication_type=None,
vm_sku="Standard_D1_v2", no_wait=False,
ssh_dest_key_path=None, ssh_key_value=None, generate_ssh_keys=False,
load_balancer=None, load_balancer_sku=None, application_gateway=None,
app_gateway_subnet_address_prefix=None,
- app_gateway_sku=DefaultStr('Standard_Large'), app_gateway_capacity=DefaultInt(10),
+ app_gateway_sku='Standard_Large', app_gateway_capacity=10,
backend_pool_name=None, nat_pool_name=None, backend_port=None, health_probe=None,
public_ip_address=None, public_ip_address_allocation=None,
public_ip_address_dns_name=None, accelerated_networking=False,
public_ip_per_vm=False, vm_domain_name=None, dns_servers=None, nsg=None,
os_caching=None, data_caching=None,
- storage_container_name=DefaultStr('vhds'), storage_sku=None,
+ storage_container_name='vhds', storage_sku=None,
os_type=None, os_disk_name=None,
use_unmanaged_disk=False, data_disk_sizes_gb=None, image_data_disks=None,
vnet_name=None, vnet_address_prefix='10.0.0.0/16',
@@ -1581,7 +1578,7 @@ def create_vmss(cmd, vmss_name, resource_group_name, image,
public_ip_type=None, storage_profile=None,
single_placement_group=None, custom_data=None, secrets=None,
plan_name=None, plan_product=None, plan_publisher=None, plan_promotion_code=None, license_type=None,
- assign_identity=False, identity_scope=None, identity_role=DefaultStr('Contributor'),
+ assign_identity=False, identity_scope=None, identity_role='Contributor',
identity_role_id=None, zones=None):
from azure.cli.core.commands.client_factory import get_subscription_id
from azure.cli.core.util import random_string, hash_string
@@ -1624,7 +1621,7 @@ def create_vmss(cmd, vmss_name, resource_group_name, image,
subnet = subnet or '{}Subnet'.format(vmss_name)
vmss_dependencies.append('Microsoft.Network/virtualNetworks/{}'.format(vnet_name))
vnet = build_vnet_resource(
- vnet_name, location, tags, vnet_address_prefix, subnet, subnet_address_prefix)
+ cmd, vnet_name, location, tags, vnet_address_prefix, subnet, subnet_address_prefix)
if app_gateway_type:
vnet['properties']['subnets'].append({
'name': 'appGwSubnet',
@@ -1696,7 +1693,7 @@ def _get_public_ip_address_allocation(value, sku):
ag_dependencies.append(
'Microsoft.Network/publicIpAddresses/{}'.format(public_ip_address))
master_template.add_resource(build_public_ip_resource(
- public_ip_address, location, tags,
+ cmd, public_ip_address, location, tags,
_get_public_ip_address_allocation(public_ip_address_allocation, None), public_ip_address_dns_name,
None, zones))
public_ip_address_id = '{}/publicIPAddresses/{}'.format(network_id_template,
@@ -1759,7 +1756,7 @@ def _get_public_ip_address_allocation(value, sku):
if secrets:
secrets = _merge_secrets([validate_file_or_dict(secret) for secret in secrets])
- vmss_resource = build_vmss_resource(vmss_name, naming_prefix, location, tags,
+ vmss_resource = build_vmss_resource(cmd, vmss_name, naming_prefix, location, tags,
not disable_overprovision, upgrade_policy_mode,
vm_sku, instance_count,
ip_config_name, nic_name, subnet_id, public_ip_per_vm,
@@ -1789,7 +1786,7 @@ def _get_public_ip_address_allocation(value, sku):
role_assignment_guid = None
if identity_scope:
role_assignment_guid = str(_gen_guid())
- master_template.add_resource(build_msi_role_assignment(vmss_name, vmss_id, identity_role_id,
+ master_template.add_resource(build_msi_role_assignment(cmd, vmss_name, vmss_id, identity_role_id,
role_assignment_guid, identity_scope, False))
# pylint: disable=line-too-long
msi_extention_type = 'ManagedIdentityExtensionFor' + ('Windows' if os_type.lower() == 'windows' else 'Linux')
@@ -1909,7 +1906,7 @@ def list_vmss_instance_connection_info(cmd, resource_group_name, vm_scale_set_na
# loop around inboundnatrule
instance_addresses = {}
for rule in lb.inbound_nat_rules:
- instance_id = parse_resource_id(rule.backend_ip_configuration.id)['child_name']
+ instance_id = parse_resource_id(rule.backend_ip_configuration.id)['child_name_1']
instance_addresses['instance ' + instance_id] = '{}:{}'.format(public_ip_address,
rule.frontend_port)
diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/disk_encryption.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/disk_encryption.py
index c0755e46e4d..834906eb437 100644
--- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/disk_encryption.py
+++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/disk_encryption.py
@@ -4,13 +4,22 @@
# --------------------------------------------------------------------------------------------
import uuid
import os
+
from msrestazure.tools import parse_resource_id
+
+from knack.log import get_logger
from knack.util import CLIError
-from .custom import set_vm, _compute_client_factory
+
+from azure.cli.core.commands import LongRunningOperation
+
+from azure.cli.command_modules.vm.custom import set_vm, _compute_client_factory, get_vmss_instance_view
+from azure.cli.command_modules.vm._vm_utils import get_key_vault_base_url, create_keyvault_data_plane_client
_DATA_VOLUME_TYPE = 'DATA'
_STATUS_ENCRYPTED = 'Encrypted'
+logger = get_logger(__name__)
+
vm_extension_info = {
'Linux': {
'publisher': os.environ.get('ADE_TEST_EXTENSION_PUBLISHER') or 'Microsoft.Azure.Security',
@@ -38,7 +47,7 @@
}
-def encrypt_vm(resource_group_name, vm_name, # pylint: disable=too-many-locals, too-many-statements
+def encrypt_vm(cmd, resource_group_name, vm_name, # pylint: disable=too-many-locals, too-many-statements
aad_client_id,
disk_encryption_keyvault,
aad_client_secret=None, aad_client_cert_thumbprint=None,
@@ -47,20 +56,8 @@ def encrypt_vm(resource_group_name, vm_name, # pylint: disable=too-many-locals,
key_encryption_algorithm='RSA-OAEP',
volume_type=None,
encrypt_format_all=False):
- '''
- Enable disk encryption on OS disk, Data disks, or both
- :param str aad_client_id: Client ID of AAD app with permissions to write secrets to KeyVault
- :param str aad_client_secret: Client Secret of AAD app with permissions to
- write secrets to KeyVault
- :param str aad_client_cert_thumbprint: Thumbprint of AAD app certificate with permissions
- to write secrets to KeyVault
- :param str disk_encryption_keyvault:the KeyVault where generated encryption key will be placed
- :param str key_encryption_key: KeyVault key name or URL used to encrypt the disk encryption key
- :param str key_encryption_keyvault: the KeyVault containing the key encryption key
- used to encrypt the disk encryption key. If missing, CLI will use --disk-encryption-keyvault
- '''
# pylint: disable=no-member
- compute_client = _compute_client_factory()
+ compute_client = _compute_client_factory(cmd.cli_ctx)
vm = compute_client.virtual_machines.get(resource_group_name, vm_name)
os_type = vm.storage_profile.os_disk.os_type.value
is_linux = _is_linux_vm(os_type)
@@ -93,14 +90,14 @@ def encrypt_vm(resource_group_name, vm_name, # pylint: disable=too-many-locals,
# retrieve keyvault details
disk_encryption_keyvault_url = get_key_vault_base_url(
- (parse_resource_id(disk_encryption_keyvault))['name'])
+ cmd.cli_ctx, (parse_resource_id(disk_encryption_keyvault))['name'])
# disk encryption key itself can be further protected, so let us verify
if key_encryption_key:
key_encryption_keyvault = key_encryption_keyvault or disk_encryption_keyvault
if '://' not in key_encryption_key: # appears a key name
key_encryption_key = _get_keyvault_key_url(
- (parse_resource_id(key_encryption_keyvault))['name'], key_encryption_key)
+ cmd.cli_ctx, (parse_resource_id(key_encryption_keyvault))['name'], key_encryption_key)
# 2. we are ready to provision/update the disk encryption extensions
# The following logic was mostly ported from xplat-cli
@@ -118,9 +115,9 @@ def encrypt_vm(resource_group_name, vm_name, # pylint: disable=too-many-locals,
'AADClientSecret': aad_client_secret if is_linux else (aad_client_secret or '')
}
- from azure.mgmt.compute.models import (VirtualMachineExtension, DiskEncryptionSettings,
- KeyVaultSecretReference, KeyVaultKeyReference,
- SubResource)
+ VirtualMachineExtension, DiskEncryptionSettings, KeyVaultSecretReference, KeyVaultKeyReference, SubResource = \
+ cmd.get_models('VirtualMachineExtension', 'DiskEncryptionSettings', 'KeyVaultSecretReference',
+ 'KeyVaultKeyReference', 'SubResource')
ext = VirtualMachineExtension(vm.location, # pylint: disable=no-member
publisher=extension['publisher'],
@@ -165,7 +162,7 @@ def encrypt_vm(resource_group_name, vm_name, # pylint: disable=too-many-locals,
vm = compute_client.virtual_machines.get(resource_group_name, vm_name)
vm.storage_profile.os_disk.encryption_settings = disk_encryption_settings
- set_vm(vm)
+ set_vm(cmd, vm)
if vm_encrypted:
# and start after the update
@@ -179,11 +176,8 @@ def encrypt_vm(resource_group_name, vm_name, # pylint: disable=too-many-locals,
"the encryption will finish shortly")
-def decrypt_vm(resource_group_name, vm_name, volume_type=None, force=False):
- '''
- Disable disk encryption on OS disk, Data disks, or both
- '''
- compute_client = _compute_client_factory()
+def decrypt_vm(cmd, resource_group_name, vm_name, volume_type=None, force=False):
+ compute_client = _compute_client_factory(cmd.cli_ctx)
vm = compute_client.virtual_machines.get(resource_group_name, vm_name)
# pylint: disable=no-member
os_type = vm.storage_profile.os_disk.os_type.value
@@ -194,7 +188,7 @@ def decrypt_vm(resource_group_name, vm_name, volume_type=None, force=False):
if volume_type:
if not force:
if volume_type == _DATA_VOLUME_TYPE:
- status = show_vm_encryption_status(resource_group_name, vm_name)
+ status = show_vm_encryption_status(cmd, resource_group_name, vm_name)
if status['osDisk'] == _STATUS_ENCRYPTED:
raise CLIError("Linux VM's OS disk is encrypted. Disabling encryption on data "
"disk can render the VM unbootable. Use '--force' "
@@ -220,7 +214,8 @@ def decrypt_vm(resource_group_name, vm_name, volume_type=None, force=False):
'SequenceVersion': sequence_version,
}
- from azure.mgmt.compute.models import VirtualMachineExtension, DiskEncryptionSettings
+ VirtualMachineExtension, DiskEncryptionSettings = cmd.get_models(
+ 'VirtualMachineExtension', 'DiskEncryptionSettings')
ext = VirtualMachineExtension(vm.location, # pylint: disable=no-member
publisher=extension['publisher'],
@@ -244,18 +239,18 @@ def decrypt_vm(resource_group_name, vm_name, volume_type=None, force=False):
vm = compute_client.virtual_machines.get(resource_group_name, vm_name)
disk_encryption_settings = DiskEncryptionSettings(enabled=False)
vm.storage_profile.os_disk.encryption_settings = disk_encryption_settings
- set_vm(vm)
+ set_vm(cmd, vm)
+
+def show_vm_encryption_status(cmd, resource_group_name, vm_name):
-def show_vm_encryption_status(resource_group_name, vm_name):
- '''show the encryption status'''
encryption_status = {
'osDisk': 'NotEncrypted',
'osDiskEncryptionSettings': None,
'dataDisk': 'NotEncrypted',
'osType': None
}
- compute_client = _compute_client_factory()
+ compute_client = _compute_client_factory(cmd.cli_ctx)
vm = compute_client.virtual_machines.get(resource_group_name, vm_name)
# pylint: disable=no-member
# The following logic was mostly ported from xplat-cli
@@ -312,9 +307,9 @@ def _is_linux_vm(os_type):
return os_type.lower() == 'linux'
-def _get_keyvault_key_url(keyvault_name, key_name):
- client = create_keyvault_data_plane_client()
- result = client.get_key(get_key_vault_base_url(keyvault_name), key_name, '')
+def _get_keyvault_key_url(cli_ctx, keyvault_name, key_name):
+ client = create_keyvault_data_plane_client(cli_ctx)
+ result = client.get_key(get_key_vault_base_url(cli_ctx, keyvault_name), key_name, '')
return result.key.kid # pylint: disable=no-member
@@ -387,27 +382,18 @@ def _handles_default_volume_type_for_vmss_encryption(is_linux, volume_type, forc
return volume_type
-def encrypt_vmss(resource_group_name, vmss_name, # pylint: disable=too-many-locals, too-many-statements
+def encrypt_vmss(cmd, resource_group_name, vmss_name, # pylint: disable=too-many-locals, too-many-statements
disk_encryption_keyvault,
key_encryption_keyvault=None,
key_encryption_key=None,
key_encryption_algorithm='RSA-OAEP',
volume_type=None,
force=False):
- '''
- :param str disk_encryption_keyvault:the KeyVault where generated encryption key will be placed
- :param str key_encryption_key: KeyVault key name or URL used to encrypt the disk encryption key
- :param str key_encryption_keyvault: the KeyVault containing the key encryption key
- used to encrypt the disk encryption key. If missing, CLI will use --disk-encryption-keyvault
- :param bool force: continue by ignoring client side validation errors
- '''
- from azure.cli.core.profiles import get_sdk, ResourceType
# pylint: disable=no-member
- UpgradeMode, VirtualMachineScaleSetExtension, VirtualMachineScaleSetExtensionProfile = get_sdk(
- ResourceType.MGMT_COMPUTE, 'UpgradeMode', 'VirtualMachineScaleSetExtension',
- 'VirtualMachineScaleSetExtensionProfile', mod='models')
+ UpgradeMode, VirtualMachineScaleSetExtension, VirtualMachineScaleSetExtensionProfile = cmd.get_models(
+ 'UpgradeMode', 'VirtualMachineScaleSetExtension', 'VirtualMachineScaleSetExtensionProfile')
- compute_client = _compute_client_factory()
+ compute_client = _compute_client_factory(cmd.cli_ctx)
vmss = compute_client.virtual_machine_scale_sets.get(resource_group_name, vmss_name)
os_type = 'Linux' if vmss.virtual_machine_profile.os_profile.linux_configuration else 'Windows'
is_linux = _is_linux_vm(os_type)
@@ -426,17 +412,18 @@ def encrypt_vmss(resource_group_name, vmss_name, # pylint: disable=too-many-loc
logger.warning(message)
# retrieve keyvault details
- disk_encryption_keyvault_url = get_key_vault_base_url((parse_resource_id(disk_encryption_keyvault))['name'])
+ disk_encryption_keyvault_url = get_key_vault_base_url(cmd.cli_ctx,
+ (parse_resource_id(disk_encryption_keyvault))['name'])
# disk encryption key itself can be further protected, so let us verify
if key_encryption_key:
key_encryption_keyvault = key_encryption_keyvault or disk_encryption_keyvault
if '://' not in key_encryption_key: # appears a key name
key_encryption_key = _get_keyvault_key_url(
- (parse_resource_id(key_encryption_keyvault))['name'], key_encryption_key)
+ cmd.cli_ctx, (parse_resource_id(key_encryption_keyvault))['name'], key_encryption_key)
# to avoid bad server errors, ensure the vault has the right configurations
- _verify_keyvault_good_for_encryption(disk_encryption_keyvault, key_encryption_keyvault, vmss, force)
+ _verify_keyvault_good_for_encryption(cmd.cli_ctx, disk_encryption_keyvault, key_encryption_keyvault, vmss, force)
# 2. we are ready to provision/update the disk encryption extensions
public_config = {
@@ -460,15 +447,13 @@ def encrypt_vmss(resource_group_name, vmss_name, # pylint: disable=too-many-loc
vmss.virtual_machine_profile.extension_profile = VirtualMachineScaleSetExtensionProfile([])
vmss.virtual_machine_profile.extension_profile.extensions.append(ext)
poller = compute_client.virtual_machine_scale_sets.create_or_update(resource_group_name, vmss_name, vmss)
- LongRunningOperation()(poller)
+ LongRunningOperation(cmd.cli_ctx)(poller)
_show_post_action_message(resource_group_name, vmss.name, vmss.upgrade_policy.mode == UpgradeMode.manual, True)
-def decrypt_vmss(resource_group_name, vmss_name, volume_type=None, force=False):
- from azure.cli.core.profiles import get_sdk, ResourceType
- UpgradeMode, VirtualMachineScaleSetExtension = get_sdk(
- ResourceType.MGMT_COMPUTE, 'UpgradeMode', 'VirtualMachineScaleSetExtension', mod='models')
- compute_client = _compute_client_factory()
+def decrypt_vmss(cmd, resource_group_name, vmss_name, volume_type=None, force=False):
+ UpgradeMode, VirtualMachineScaleSetExtension = cmd.get_models('UpgradeMode', 'VirtualMachineScaleSetExtension')
+ compute_client = _compute_client_factory(cmd.cli_ctx)
vmss = compute_client.virtual_machine_scale_sets.get(resource_group_name, vmss_name)
os_type = 'Linux' if vmss.virtual_machine_profile.os_profile.linux_configuration else 'Windows'
is_linux = _is_linux_vm(os_type)
@@ -504,7 +489,7 @@ def decrypt_vmss(resource_group_name, vmss_name, volume_type=None, force=False):
index = vmss.virtual_machine_profile.extension_profile.extensions.index(ade_extension[0])
vmss.virtual_machine_profile.extension_profile.extensions[index] = ext
poller = compute_client.virtual_machine_scale_sets.create_or_update(resource_group_name, vmss_name, vmss)
- LongRunningOperation()(poller)
+ LongRunningOperation(cmd.cli_ctx)(poller)
_show_post_action_message(resource_group_name, vmss.name, vmss.upgrade_policy.mode == UpgradeMode.manual, False)
@@ -519,13 +504,13 @@ def _show_post_action_message(resource_group_name, vmss_name, maunal_mode, enabl
logger.warning(msg)
-def show_vmss_encryption_status(resource_group_name, vmss_name):
+def show_vmss_encryption_status(cmd, resource_group_name, vmss_name):
encryption_ext_names = [v['name'] for v in vmss_extension_info.values()]
- views = get_vmss_instance_view(resource_group_name, vmss_name)
+ views = get_vmss_instance_view(cmd, resource_group_name, vmss_name)
if not views.extensions or not [e for e in views.extensions if e.name in encryption_ext_names]:
raise CLIError("'{}' is not encrypted yet".format(vmss_name))
- views = get_vmss_instance_view(resource_group_name, vmss_name, instance_id='*')
+ views = get_vmss_instance_view(cmd, resource_group_name, vmss_name, instance_id='*')
result = [{'disks': v.disks, 'extensions': v.extensions} for v in views]
# get rid of unrelaed disk status
for r in result:
diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_custom_image.yaml b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_custom_image.yaml
index 12280d5126f..ac00bb31e39 100644
--- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_custom_image.yaml
+++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_custom_image.yaml
@@ -1,41 +1,41 @@
interactions:
- request:
- body: '{"location": "westus", "tags": {"use": "az-test"}}'
+ body: '{"tags": {"use": "az-test"}, "location": "westus"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [group create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Length: ['50']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
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
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001?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"}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001","name":"cli_test_vm_custom_image000001","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: ['Mon, 18 Sep 2017 23:47:04 GMT']
+ date: ['Fri, 17 Nov 2017 18:10:45 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1194']
+ x-ms-ratelimit-remaining-subscription-writes: ['1196']
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [image create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sdk-test/providers/Microsoft.Compute/virtualMachines/sdk-test-um?api-version=2017-03-30
@@ -66,35 +66,36 @@ interactions:
cache-control: [no-cache]
content-length: ['1945']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:47:05 GMT']
+ date: ['Fri, 17 Nov 2017 18:10:46 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4979,Microsoft.Compute/LowCostGet30Min;39932']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [image create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001?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"}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001","name":"cli_test_vm_custom_image000001","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: ['Mon, 18 Sep 2017 23:47:05 GMT']
+ date: ['Fri, 17 Nov 2017 18:10:47 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -105,15 +106,15 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [image create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Length: ['205']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image1?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image1?api-version=2017-03-30
response:
body: {string: "{\r\n \"properties\": {\r\n \"sourceVirtualMachine\": {\r\n\
\ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sdk-test/providers/Microsoft.Compute/virtualMachines/sdk-test-um\"\
@@ -123,62 +124,64 @@ interactions:
,\r\n \"caching\": \"ReadWrite\"\r\n },\r\n \"dataDisks\"\
: []\r\n },\r\n \"provisioningState\": \"Creating\"\r\n },\r\n \"\
type\": \"Microsoft.Compute/images\",\r\n \"location\": \"westus\",\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image1\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image1\"\
,\r\n \"name\": \"image1\"\r\n}"}
headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/43dab40c-a546-41c5-a36a-bf28f6ab5e81?api-version=2017-03-30']
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/6e39c16c-6d7c-4a56-affa-1e9a0175f8f0?api-version=2017-03-30']
cache-control: [no-cache]
content-length: ['805']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:47:10 GMT']
+ date: ['Fri, 17 Nov 2017 18:10:55 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1194']
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/CreateImages3Min;38,Microsoft.Compute/CreateImages30Min;195']
+ x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [image create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/43dab40c-a546-41c5-a36a-bf28f6ab5e81?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/6e39c16c-6d7c-4a56-affa-1e9a0175f8f0?api-version=2017-03-30
response:
- body: {string: "{\r\n \"startTime\": \"2017-09-18T23:47:07.8847088+00:00\",\r\
- \n \"endTime\": \"2017-09-18T23:47:17.9956138+00:00\",\r\n \"status\": \"\
- Succeeded\",\r\n \"name\": \"43dab40c-a546-41c5-a36a-bf28f6ab5e81\"\r\n}"}
+ body: {string: "{\r\n \"startTime\": \"2017-11-17T18:10:50.5193934+00:00\",\r\
+ \n \"endTime\": \"2017-11-17T18:11:00.6604105+00:00\",\r\n \"status\": \"\
+ Succeeded\",\r\n \"name\": \"6e39c16c-6d7c-4a56-affa-1e9a0175f8f0\"\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['184']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:47:41 GMT']
+ date: ['Fri, 17 Nov 2017 18:11:25 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;2101,Microsoft.Compute/GetOperation30Min;17800']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [image create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image1?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image1?api-version=2017-03-30
response:
body: {string: "{\r\n \"properties\": {\r\n \"sourceVirtualMachine\": {\r\n\
\ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sdk-test/providers/Microsoft.Compute/virtualMachines/sdk-test-um\"\
@@ -188,41 +191,42 @@ interactions:
,\r\n \"caching\": \"ReadWrite\",\r\n \"storageAccountType\"\
: \"Standard_LRS\"\r\n },\r\n \"dataDisks\": []\r\n },\r\n \
\ \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.Compute/images\"\
- ,\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image1\"\
+ ,\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image1\"\
,\r\n \"name\": \"image1\"\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['880']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:47:41 GMT']
+ date: ['Fri, 17 Nov 2017 18:11:27 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetImages3Min;352,Microsoft.Compute/GetImages30Min;2471']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001?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"}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001","name":"cli_test_vm_custom_image000001","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: ['Mon, 18 Sep 2017 23:47:42 GMT']
+ date: ['Fri, 17 Nov 2017 18:11:27 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -278,24 +282,24 @@ interactions:
cache-control: [max-age=300]
connection: [close]
content-length: ['2235']
- content-security-policy: [default-src 'none'; style-src 'unsafe-inline']
+ content-security-policy: [default-src 'none'; style-src 'unsafe-inline'; sandbox]
content-type: [text/plain; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:47:43 GMT']
+ date: ['Fri, 17 Nov 2017 18:11:29 GMT']
etag: ['"d6824855d13e27c5258a680eb60f635d088fd05e"']
- expires: ['Mon, 18 Sep 2017 23:52:43 GMT']
- source-age: ['35']
+ expires: ['Fri, 17 Nov 2017 18:16:29 GMT']
+ source-age: ['105']
strict-transport-security: [max-age=31536000]
vary: ['Authorization,Accept-Encoding']
via: [1.1 varnish]
x-cache: [HIT]
x-cache-hits: ['1']
x-content-type-options: [nosniff]
- x-fastly-request-id: [340bdc4f97e842f5b9f380bf98e6eb2e882b1604]
+ x-fastly-request-id: [2736cbfe83d00d81fbf8ed19e6604370da55142a]
x-frame-options: [deny]
x-geo-block-list: ['']
- x-github-request-id: ['BC98:2F967:364BF5B:3A539C7:59C05AFB']
- x-served-by: [cache-sea1032-SEA]
- x-timer: ['S1505778463.349901,VS0,VE0']
+ x-github-request-id: ['3DE0:22BFE:4155DE:45EB52:5A0F25E7']
+ x-served-by: [cache-mdw17345-MDW]
+ x-timer: ['S1510942289.099163,VS0,VE1']
x-xss-protection: [1; mode=block]
status: {code: 200, message: OK}
- request:
@@ -303,14 +307,14 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image1?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image1?api-version=2017-03-30
response:
body: {string: "{\r\n \"properties\": {\r\n \"sourceVirtualMachine\": {\r\n\
\ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sdk-test/providers/Microsoft.Compute/virtualMachines/sdk-test-um\"\
@@ -320,33 +324,34 @@ interactions:
,\r\n \"caching\": \"ReadWrite\",\r\n \"storageAccountType\"\
: \"Standard_LRS\"\r\n },\r\n \"dataDisks\": []\r\n },\r\n \
\ \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.Compute/images\"\
- ,\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image1\"\
+ ,\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image1\"\
,\r\n \"name\": \"image1\"\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['880']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:47:43 GMT']
+ date: ['Fri, 17 Nov 2017 18:11:28 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetImages3Min;351,Microsoft.Compute/GetImages30Min;2470']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image1?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image1?api-version=2017-03-30
response:
body: {string: "{\r\n \"properties\": {\r\n \"sourceVirtualMachine\": {\r\n\
\ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sdk-test/providers/Microsoft.Compute/virtualMachines/sdk-test-um\"\
@@ -356,124 +361,149 @@ interactions:
,\r\n \"caching\": \"ReadWrite\",\r\n \"storageAccountType\"\
: \"Standard_LRS\"\r\n },\r\n \"dataDisks\": []\r\n },\r\n \
\ \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.Compute/images\"\
- ,\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image1\"\
+ ,\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image1\"\
,\r\n \"name\": \"image1\"\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['880']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:47:43 GMT']
+ date: ['Fri, 17 Nov 2017 18:11:29 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetImages3Min;350,Microsoft.Compute/GetImages30Min;2469']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 networkmanagementclient/1.5.0rc1 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-09-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-09-01
response:
body: {string: '{"value":[]}'}
headers:
cache-control: [no-cache]
content-length: ['12']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:47:44 GMT']
+ date: ['Fri, 17 Nov 2017 18:11:29 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
- body: 'b''{"properties": {"parameters": {}, "template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
- "outputs": {}, "parameters": {}, "resources": [{"properties": {"addressSpace":
- {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": [{"properties": {"addressPrefix":
- "10.0.0.0/24"}, "name": "vm1Subnet"}]}, "type": "Microsoft.Network/virtualNetworks",
- "name": "vm1VNET", "apiVersion": "2015-06-15", "location": "westus", "dependsOn":
- [], "tags": {}}, {"properties": {"securityRules": [{"properties": {"sourcePortRange":
- "*", "access": "Allow", "priority": 1000, "sourceAddressPrefix": "*", "protocol":
- "Tcp", "direction": "Inbound", "destinationPortRange": "22", "destinationAddressPrefix":
- "*"}, "name": "default-allow-ssh"}]}, "type": "Microsoft.Network/networkSecurityGroups",
- "name": "vm1NSG", "apiVersion": "2015-06-15", "location": "westus", "dependsOn":
- [], "tags": {}}, {"properties": {"publicIPAllocationMethod": "dynamic"}, "type":
- "Microsoft.Network/publicIPAddresses", "apiVersion": "2017-09-01", "name": "vm1PublicIP",
- "location": "westus", "dependsOn": [], "tags": {}}, {"properties": {"ipConfigurations":
- [{"properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP"},
- "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},
- "privateIPAllocationMethod": "Dynamic"}, "name": "ipconfigvm1"}], "networkSecurityGroup":
- {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG"}},
- "type": "Microsoft.Network/networkInterfaces", "apiVersion": "2015-06-15", "name":
- "vm1VMNic", "location": "westus", "dependsOn": ["Microsoft.Network/virtualNetworks/vm1VNET",
- "Microsoft.Network/networkSecurityGroups/vm1NSG", "Microsoft.Network/publicIpAddresses/vm1PublicIP"],
- "tags": {}}, {"properties": {"networkProfile": {"networkInterfaces": [{"id":
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"}]},
- "osProfile": {"adminPassword": "testPassword0", "computerName": "vm1", "adminUsername":
- "sdk-test-admin"}, "hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "storageProfile":
- {"imageReference": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image1"},
- "osDisk": {"createOption": "fromImage", "caching": null, "name": null, "managedDisk":
- {"storageAccountType": null}}}}, "type": "Microsoft.Compute/virtualMachines",
- "apiVersion": "2017-03-30", "name": "vm1", "location": "westus", "dependsOn":
- ["Microsoft.Network/networkInterfaces/vm1VMNic"], "tags": {}}], "contentVersion":
- "1.0.0.0", "variables": {}}, "mode": "Incremental"}}'''
+ body: 'b''{"properties": {"mode": "Incremental", "parameters": {}, "template":
+ {"parameters": {}, "outputs": {}, "resources": [{"tags": {}, "name": "vm1VNET",
+ "location": "westus", "apiVersion": "2015-06-15", "type": "Microsoft.Network/virtualNetworks",
+ "dependsOn": [], "properties": {"subnets": [{"name": "vm1Subnet", "properties":
+ {"addressPrefix": "10.0.0.0/24"}}], "addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}}},
+ {"tags": {}, "name": "vm1NSG", "location": "westus", "apiVersion": "2015-06-15",
+ "type": "Microsoft.Network/networkSecurityGroups", "dependsOn": [], "properties":
+ {"securityRules": [{"name": "default-allow-ssh", "properties": {"destinationPortRange":
+ "22", "access": "Allow", "protocol": "Tcp", "destinationAddressPrefix": "*",
+ "sourceAddressPrefix": "*", "direction": "Inbound", "sourcePortRange": "*",
+ "priority": 1000}}]}}, {"tags": {}, "name": "vm1PublicIP", "location": "westus",
+ "apiVersion": "2017-09-01", "type": "Microsoft.Network/publicIPAddresses", "dependsOn":
+ [], "properties": {"publicIPAllocationMethod": "dynamic"}}, {"tags": {}, "name":
+ "vm1VMNic", "location": "westus", "apiVersion": "2015-06-15", "type": "Microsoft.Network/networkInterfaces",
+ "dependsOn": ["Microsoft.Network/virtualNetworks/vm1VNET", "Microsoft.Network/networkSecurityGroups/vm1NSG",
+ "Microsoft.Network/publicIpAddresses/vm1PublicIP"], "properties": {"ipConfigurations":
+ [{"name": "ipconfigvm1", "properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP"},
+ "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},
+ "privateIPAllocationMethod": "Dynamic"}}], "networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG"}}},
+ {"tags": {}, "name": "vm1", "location": "westus", "apiVersion": "2017-03-30",
+ "type": "Microsoft.Compute/virtualMachines", "dependsOn": ["Microsoft.Network/networkInterfaces/vm1VMNic"],
+ "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "networkProfile":
+ {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"}]},
+ "storageProfile": {"imageReference": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image1"},
+ "osDisk": {"caching": "ReadWrite", "name": null, "managedDisk": {"storageAccountType":
+ null}, "createOption": "fromImage"}}, "osProfile": {"adminUsername": "sdk-test-admin",
+ "adminPassword": "testPassword0", "computerName": "vm1"}}}], "variables": {},
+ "contentVersion": "1.0.0.0", "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#"}}}'''
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
- Content-Length: ['3265']
+ Content-Length: ['3272']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_TITjOQZHhq2lvz8ZCqsiqZ6vOVxNhtdB","name":"vm_deploy_TITjOQZHhq2lvz8ZCqsiqZ6vOVxNhtdB","properties":{"templateHash":"10903410422963028973","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-09-18T23:47:46.2206549Z","duration":"PT0.5313845S","correlationId":"e75a5360-e11e-4f3d-ac3c-aed70634218a","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}]}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/vm_deploy_0tNj4OTQ0Dhp8vopGFZdskxJmeNvpLSt","name":"vm_deploy_0tNj4OTQ0Dhp8vopGFZdskxJmeNvpLSt","properties":{"templateHash":"13992441289615870544","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-11-17T18:11:32.4016281Z","duration":"PT1.1137243S","correlationId":"e7362a56-a832-435d-9a48-19f9105dacd3","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}]}}'}
headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_TITjOQZHhq2lvz8ZCqsiqZ6vOVxNhtdB/operationStatuses/08586958284197883599?api-version=2017-05-10']
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/vm_deploy_0tNj4OTQ0Dhp8vopGFZdskxJmeNvpLSt/operationStatuses/08586906645941897238?api-version=2017-05-10']
cache-control: [no-cache]
content-length: ['2702']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:47:45 GMT']
+ date: ['Fri, 17 Nov 2017 18:11:32 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1194']
+ x-ms-ratelimit-remaining-subscription-writes: ['1181']
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906645941897238?api-version=2017-05-10
+ response:
+ body: {string: '{"status":"Running"}'}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['20']
+ content-type: [application/json; charset=utf-8]
+ date: ['Fri, 17 Nov 2017 18:12:02 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ vary: [Accept-Encoding]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958284197883599?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906645941897238?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:48:16 GMT']
+ date: ['Fri, 17 Nov 2017 18:12:32 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -484,22 +514,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958284197883599?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906645941897238?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:48:49 GMT']
+ date: ['Fri, 17 Nov 2017 18:13:03 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -510,22 +540,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958284197883599?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906645941897238?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:49:20 GMT']
+ date: ['Fri, 17 Nov 2017 18:13:34 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -536,22 +566,48 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958284197883599?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906645941897238?api-version=2017-05-10
+ response:
+ body: {string: '{"status":"Running"}'}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['20']
+ content-type: [application/json; charset=utf-8]
+ date: ['Fri, 17 Nov 2017 18:14:04 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ vary: [Accept-Encoding]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906645941897238?api-version=2017-05-10
response:
body: {string: '{"status":"Succeeded"}'}
headers:
cache-control: [no-cache]
content-length: ['22']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:49:50 GMT']
+ date: ['Fri, 17 Nov 2017 18:14:34 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -562,22 +618,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_TITjOQZHhq2lvz8ZCqsiqZ6vOVxNhtdB","name":"vm_deploy_TITjOQZHhq2lvz8ZCqsiqZ6vOVxNhtdB","properties":{"templateHash":"10903410422963028973","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-09-18T23:49:39.4126222Z","duration":"PT1M53.7233518S","correlationId":"e75a5360-e11e-4f3d-ac3c-aed70634218a","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET"}]}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/vm_deploy_0tNj4OTQ0Dhp8vopGFZdskxJmeNvpLSt","name":"vm_deploy_0tNj4OTQ0Dhp8vopGFZdskxJmeNvpLSt","properties":{"templateHash":"13992441289615870544","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-11-17T18:14:09.862156Z","duration":"PT2M38.5742522S","correlationId":"e7362a56-a832-435d-9a48-19f9105dacd3","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachines/vm1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/virtualNetworks/vm1VNET"}]}}'}
headers:
cache-control: [no-cache]
- content-length: ['3769']
+ content-length: ['3768']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:49:50 GMT']
+ date: ['Fri, 17 Nov 2017 18:14:35 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -588,107 +644,108 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2017-03-30
response:
- body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"5acc3908-5a38-4c20-8200-73977e2afdaa\"\
+ body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"9821664c-a751-414a-8ce7-e3d360d7c6b2\"\
,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\
\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image1\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image1\"\
\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n\
- \ \"name\": \"vm1_disk1_0c26327f225040118a63d9f33e4a84ee\",\r\n \
+ \ \"name\": \"vm1_disk1_f16f7557200d41fbbefa6b15493efcf1\",\r\n \
\ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\
,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\
- ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_disk1_0c26327f225040118a63d9f33e4a84ee\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/disks/vm1_disk1_f16f7557200d41fbbefa6b15493efcf1\"\
\r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\
: []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\"\
,\r\n \"adminUsername\": \"sdk-test-admin\",\r\n \"linuxConfiguration\"\
: {\r\n \"disablePasswordAuthentication\": false\r\n },\r\n \
\ \"secrets\": []\r\n },\r\n \"networkProfile\": {\"networkInterfaces\"\
- :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\
+ :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\
}]},\r\n \"provisioningState\": \"Succeeded\",\r\n \"instanceView\"\
- : {\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.2.17\",\r\n\
+ : {\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.2.18\",\r\n\
\ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\
,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"\
Ready\",\r\n \"message\": \"Guest Agent is running\",\r\n \
- \ \"time\": \"2017-09-18T23:59:25+00:00\"\r\n }\r\n \
+ \ \"time\": \"2017-11-17T18:14:35+00:00\"\r\n }\r\n \
\ ],\r\n \"extensionHandlers\": []\r\n },\r\n \"disks\":\
- \ [\r\n {\r\n \"name\": \"vm1_disk1_0c26327f225040118a63d9f33e4a84ee\"\
+ \ [\r\n {\r\n \"name\": \"vm1_disk1_f16f7557200d41fbbefa6b15493efcf1\"\
,\r\n \"statuses\": [\r\n {\r\n \"code\"\
: \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\
\n \"displayStatus\": \"Provisioning succeeded\",\r\n \
- \ \"time\": \"2017-09-18T23:48:35.1982896+00:00\"\r\n }\r\
+ \ \"time\": \"2017-11-17T18:11:58.8032781+00:00\"\r\n }\r\
\n ]\r\n }\r\n ],\r\n \"statuses\": [\r\n \
\ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \
\ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\"\
- ,\r\n \"time\": \"2017-09-18T23:49:39.0550648+00:00\"\r\n \
+ ,\r\n \"time\": \"2017-11-17T18:13:52.6369671+00:00\"\r\n \
\ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \
\ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\
\n }\r\n ]\r\n }\r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachines\"\
- ,\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\"\
+ ,\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachines/vm1\"\
,\r\n \"name\": \"vm1\"\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['2970']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:59:27 GMT']
+ date: ['Fri, 17 Nov 2017 18:14:36 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4968,Microsoft.Compute/LowCostGet30Min;39895']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 networkmanagementclient/1.5.0rc1 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic?api-version=2017-09-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic?api-version=2017-09-01
response:
- body: {string: "{\r\n \"name\": \"vm1VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\
- ,\r\n \"etag\": \"W/\\\"203b582d-9c2c-47b9-ac9a-73f15afcb5d5\\\"\",\r\n \
+ body: {string: "{\r\n \"name\": \"vm1VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\
+ ,\r\n \"etag\": \"W/\\\"6599ae84-b011-4e8e-9248-97e0c1a1be7f\\\"\",\r\n \
\ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n\
- \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"3dc97c95-7ab5-4442-aa09-425802b1c155\"\
+ \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"d1a4c462-103e-4d60-ae9a-44114b51656d\"\
,\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm1\"\
- ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\
- ,\r\n \"etag\": \"W/\\\"203b582d-9c2c-47b9-ac9a-73f15afcb5d5\\\"\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\
+ ,\r\n \"etag\": \"W/\\\"6599ae84-b011-4e8e-9248-97e0c1a1be7f\\\"\"\
,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\
,\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\"\
: \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\":\
- \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP\"\
- \r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\
+ \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP\"\
+ \r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\
\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\"\
: \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n\
\ \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"\
- internalDomainNameSuffix\": \"svv2dj5dm3bulpurpqjvqqvwla.dx.internal.cloudapp.net\"\
- \r\n },\r\n \"macAddress\": \"00-0D-3A-31-6B-12\",\r\n \"enableAcceleratedNetworking\"\
+ internalDomainNameSuffix\": \"vulmegotsexe5ehhisxipl1b4d.dx.internal.cloudapp.net\"\
+ \r\n },\r\n \"macAddress\": \"00-0D-3A-35-E6-79\",\r\n \"enableAcceleratedNetworking\"\
: false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\"\
- : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG\"\
+ : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG\"\
\r\n },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachines/vm1\"\
\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\
\n}"}
headers:
cache-control: [no-cache]
content-length: ['2495']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:59:27 GMT']
- etag: [W/"203b582d-9c2c-47b9-ac9a-73f15afcb5d5"]
+ date: ['Fri, 17 Nov 2017 18:14:37 GMT']
+ etag: [W/"6599ae84-b011-4e8e-9248-97e0c1a1be7f"]
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@@ -701,31 +758,31 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 networkmanagementclient/1.5.0rc1 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP?api-version=2017-09-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP?api-version=2017-09-01
response:
- body: {string: "{\r\n \"name\": \"vm1PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP\"\
- ,\r\n \"etag\": \"W/\\\"e1be35ab-2451-4fa3-aa8b-9a827e021536\\\"\",\r\n \
+ body: {string: "{\r\n \"name\": \"vm1PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP\"\
+ ,\r\n \"etag\": \"W/\\\"f7be8b22-be57-4039-a100-a9e682943718\\\"\",\r\n \
\ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n\
- \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"7f389ca1-1e8d-45b8-9eec-ef97fb225d67\"\
- ,\r\n \"ipAddress\": \"13.93.159.107\",\r\n \"publicIPAddressVersion\"\
+ \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"48459b21-0c0d-47ae-b086-832491ff3984\"\
+ ,\r\n \"ipAddress\": \"13.64.189.153\",\r\n \"publicIPAddressVersion\"\
: \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\"\
- : 4,\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\
+ : 4,\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\
\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\
\n \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['978']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:59:28 GMT']
- etag: [W/"e1be35ab-2451-4fa3-aa8b-9a827e021536"]
+ date: ['Fri, 17 Nov 2017 18:14:37 GMT']
+ etag: [W/"f7be8b22-be57-4039-a100-a9e682943718"]
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@@ -738,67 +795,68 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm show]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2017-03-30
response:
- body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"5acc3908-5a38-4c20-8200-73977e2afdaa\"\
+ body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"9821664c-a751-414a-8ce7-e3d360d7c6b2\"\
,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\
\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image1\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image1\"\
\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n\
- \ \"name\": \"vm1_disk1_0c26327f225040118a63d9f33e4a84ee\",\r\n \
+ \ \"name\": \"vm1_disk1_f16f7557200d41fbbefa6b15493efcf1\",\r\n \
\ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\
,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\
- ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_disk1_0c26327f225040118a63d9f33e4a84ee\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/disks/vm1_disk1_f16f7557200d41fbbefa6b15493efcf1\"\
\r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\
: []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\"\
,\r\n \"adminUsername\": \"sdk-test-admin\",\r\n \"linuxConfiguration\"\
: {\r\n \"disablePasswordAuthentication\": false\r\n },\r\n \
\ \"secrets\": []\r\n },\r\n \"networkProfile\": {\"networkInterfaces\"\
- :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\
+ :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\
}]},\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"\
Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n \"\
- tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\"\
+ tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachines/vm1\"\
,\r\n \"name\": \"vm1\"\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['1800']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:59:28 GMT']
+ date: ['Fri, 17 Nov 2017 18:14:37 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4967,Microsoft.Compute/LowCostGet30Min;39894']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001?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"}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001","name":"cli_test_vm_custom_image000001","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: ['Mon, 18 Sep 2017 23:59:28 GMT']
+ date: ['Fri, 17 Nov 2017 18:14:37 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -854,24 +912,24 @@ interactions:
cache-control: [max-age=300]
connection: [close]
content-length: ['2235']
- content-security-policy: [default-src 'none'; style-src 'unsafe-inline']
+ content-security-policy: [default-src 'none'; style-src 'unsafe-inline'; sandbox]
content-type: [text/plain; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:59:29 GMT']
+ date: ['Fri, 17 Nov 2017 18:14:38 GMT']
etag: ['"d6824855d13e27c5258a680eb60f635d088fd05e"']
- expires: ['Tue, 19 Sep 2017 00:04:29 GMT']
- source-age: ['274']
+ expires: ['Fri, 17 Nov 2017 18:19:38 GMT']
+ source-age: ['224']
strict-transport-security: [max-age=31536000]
vary: ['Authorization,Accept-Encoding']
via: [1.1 varnish]
x-cache: [HIT]
x-cache-hits: ['1']
x-content-type-options: [nosniff]
- x-fastly-request-id: [3edf74a9dbdf3b31963b83c5763d5b90fa878e0d]
+ x-fastly-request-id: [6c2774ce10408a3c0a05f50612c08232194b2bef]
x-frame-options: [deny]
x-geo-block-list: ['']
- x-github-request-id: ['59C6:28E1F:3344E14:3674FE9:59C05CCF']
- x-served-by: [cache-dfw18643-DFW]
- x-timer: ['S1505779170.772567,VS0,VE1']
+ x-github-request-id: ['D03E:2363E:87E082:9193F4:5A0F262E']
+ x-served-by: [cache-sea1034-SEA]
+ x-timer: ['S1510942479.629092,VS0,VE0']
x-xss-protection: [1; mode=block]
status: {code: 200, message: OK}
- request:
@@ -879,14 +937,14 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image1?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image1?api-version=2017-03-30
response:
body: {string: "{\r\n \"properties\": {\r\n \"sourceVirtualMachine\": {\r\n\
\ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sdk-test/providers/Microsoft.Compute/virtualMachines/sdk-test-um\"\
@@ -896,33 +954,34 @@ interactions:
,\r\n \"caching\": \"ReadWrite\",\r\n \"storageAccountType\"\
: \"Standard_LRS\"\r\n },\r\n \"dataDisks\": []\r\n },\r\n \
\ \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.Compute/images\"\
- ,\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image1\"\
+ ,\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image1\"\
,\r\n \"name\": \"image1\"\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['880']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:59:29 GMT']
+ date: ['Fri, 17 Nov 2017 18:14:37 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetImages3Min;349,Microsoft.Compute/GetImages30Min;2458']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image1?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image1?api-version=2017-03-30
response:
body: {string: "{\r\n \"properties\": {\r\n \"sourceVirtualMachine\": {\r\n\
\ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sdk-test/providers/Microsoft.Compute/virtualMachines/sdk-test-um\"\
@@ -932,50 +991,51 @@ interactions:
,\r\n \"caching\": \"ReadWrite\",\r\n \"storageAccountType\"\
: \"Standard_LRS\"\r\n },\r\n \"dataDisks\": []\r\n },\r\n \
\ \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.Compute/images\"\
- ,\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image1\"\
+ ,\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image1\"\
,\r\n \"name\": \"image1\"\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['880']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:59:29 GMT']
+ date: ['Fri, 17 Nov 2017 18:14:38 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetImages3Min;348,Microsoft.Compute/GetImages30Min;2457']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 networkmanagementclient/1.5.0rc1 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-09-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-09-01
response:
body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vm1VNET\",\r\
- \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET\"\
- ,\r\n \"etag\": \"W/\\\"31389806-7525-4f74-a692-63dcf6dc06c1\\\"\",\r\
+ \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/virtualNetworks/vm1VNET\"\
+ ,\r\n \"etag\": \"W/\\\"e9b8af78-e093-4f30-b5f3-21c1df354ca6\\\"\",\r\
\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\"\
: \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \
- \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"a7c16b95-67e3-4543-be91-7c135842b658\"\
+ \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"19c216ad-91d3-4f2e-90e7-44ae87af61f3\"\
,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \
\ \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\"\
: [\r\n {\r\n \"name\": \"vm1Subnet\",\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\
- ,\r\n \"etag\": \"W/\\\"31389806-7525-4f74-a692-63dcf6dc06c1\\\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\
+ ,\r\n \"etag\": \"W/\\\"e9b8af78-e093-4f30-b5f3-21c1df354ca6\\\"\
\",\r\n \"properties\": {\r\n \"provisioningState\"\
: \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n\
\ \"ipConfigurations\": [\r\n {\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\
\r\n }\r\n ]\r\n }\r\n }\r\
\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\
: false,\r\n \"enableVmProtection\": false\r\n }\r\n }\r\n\
@@ -984,7 +1044,7 @@ interactions:
cache-control: [no-cache]
content-length: ['1684']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:59:29 GMT']
+ date: ['Fri, 17 Nov 2017 18:14:39 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@@ -993,84 +1053,82 @@ interactions:
vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
- body: 'b''{"properties": {"parameters": {}, "template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
- "outputs": {"VMSS": {"type": "object", "value": "[reference(resourceId(\''Microsoft.Compute/virtualMachineScaleSets\'',
+ body: 'b''{"properties": {"mode": "Incremental", "parameters": {}, "template":
+ {"parameters": {}, "outputs": {"VMSS": {"type": "object", "value": "[reference(resourceId(\''Microsoft.Compute/virtualMachineScaleSets\'',
\''vmss1\''),providers(\''Microsoft.Compute\'', \''virtualMachineScaleSets\'').apiVersions[0])]"}},
- "parameters": {}, "resources": [{"sku": {"name": "Basic"}, "properties": {"publicIPAllocationMethod":
- "Dynamic"}, "type": "Microsoft.Network/publicIPAddresses", "apiVersion": "2017-09-01",
- "name": "vmss1LBPublicIP", "location": "westus", "dependsOn": [], "tags": {}},
- {"sku": {"name": "Basic"}, "properties": {"frontendIPConfigurations": [{"properties":
- {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP"}},
- "name": "loadBalancerFrontEnd"}], "inboundNatPools": [{"properties": {"backendPort":
- 22, "frontendPortRangeStart": "50000", "frontendPortRangeEnd": "50119", "protocol":
- "tcp", "frontendIPConfiguration": {"id": "[concat(resourceId(\''Microsoft.Network/loadBalancers\'',
- \''vmss1LB\''), \''/frontendIPConfigurations/\'', \''loadBalancerFrontEnd\'')]"}},
- "name": "vmss1LBNatPool"}], "backendAddressPools": [{"name": "vmss1LBBEPool"}]},
- "type": "Microsoft.Network/loadBalancers", "tags": {}, "name": "vmss1LB", "location":
- "westus", "dependsOn": ["Microsoft.Network/publicIpAddresses/vmss1LBPublicIP"],
- "apiVersion": "2017-09-01"}, {"sku": {"tier": "Standard", "name": "Standard_D1_v2",
- "capacity": 2}, "properties": {"upgradePolicy": {"mode": "Manual"}, "virtualMachineProfile":
- {"osProfile": {"adminPassword": "testPassword0", "adminUsername": "sdk-test-admin",
- "computerNamePrefix": "vmss12605"}, "networkProfile": {"networkInterfaceConfigurations":
- [{"properties": {"primary": "true", "ipConfigurations": [{"properties": {"loadBalancerBackendAddressPools":
- [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool"}],
- "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},
- "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool"}]},
- "name": "vmss12605IPConfig"}]}, "name": "vmss12605Nic"}]}, "storageProfile":
- {"imageReference": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image1"},
- "osDisk": {"createOption": "FromImage", "caching": "ReadWrite", "managedDisk":
- {"storageAccountType": null}}}}, "overprovision": true, "singlePlacementGroup":
- true}, "type": "Microsoft.Compute/virtualMachineScaleSets", "tags": {}, "name":
- "vmss1", "location": "westus", "dependsOn": ["Microsoft.Network/loadBalancers/vmss1LB"],
- "apiVersion": "2017-03-30"}], "contentVersion": "1.0.0.0", "variables": {}},
- "mode": "Incremental"}}'''
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Length: ['3440']
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ "resources": [{"tags": {}, "name": "vmss1LBPublicIP", "location": "westus",
+ "apiVersion": "2017-09-01", "type": "Microsoft.Network/publicIPAddresses", "dependsOn":
+ [], "sku": {"name": "Basic"}, "properties": {"publicIPAllocationMethod": "Dynamic"}},
+ {"tags": {}, "name": "vmss1LB", "location": "westus", "apiVersion": "2017-09-01",
+ "type": "Microsoft.Network/loadBalancers", "dependsOn": ["Microsoft.Network/publicIpAddresses/vmss1LBPublicIP"],
+ "sku": {"name": "Basic"}, "properties": {"frontendIPConfigurations": [{"name":
+ "loadBalancerFrontEnd", "properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP"}}}],
+ "backendAddressPools": [{"name": "vmss1LBBEPool"}], "inboundNatPools": [{"name":
+ "vmss1LBNatPool", "properties": {"frontendPortRangeEnd": "50119", "frontendPortRangeStart":
+ "50000", "backendPort": 22, "protocol": "tcp", "frontendIPConfiguration": {"id":
+ "[concat(resourceId(\''Microsoft.Network/loadBalancers\'', \''vmss1LB\''), \''/frontendIPConfigurations/\'',
+ \''loadBalancerFrontEnd\'')]"}}}]}}, {"tags": {}, "name": "vmss1", "location":
+ "westus", "apiVersion": "2017-03-30", "type": "Microsoft.Compute/virtualMachineScaleSets",
+ "dependsOn": ["Microsoft.Network/loadBalancers/vmss1LB"], "sku": {"name": "Standard_D1_v2",
+ "capacity": 2}, "properties": {"virtualMachineProfile": {"osProfile": {"adminPassword":
+ "testPassword0", "adminUsername": "sdk-test-admin", "computerNamePrefix": "vmss1d724"},
+ "networkProfile": {"networkInterfaceConfigurations": [{"name": "vmss1d724Nic",
+ "properties": {"primary": "true", "ipConfigurations": [{"name": "vmss1d724IPConfig",
+ "properties": {"loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool"}],
+ "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool"}],
+ "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}}}]}}]},
+ "storageProfile": {"imageReference": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image1"},
+ "osDisk": {"caching": "ReadWrite", "managedDisk": {"storageAccountType": null},
+ "createOption": "FromImage"}}}, "singlePlacementGroup": true, "overprovision":
+ true, "upgradePolicy": {"mode": "Manual"}}}], "variables": {}, "contentVersion":
+ "1.0.0.0", "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#"}}}'''
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Length: ['3420']
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vmss_deploy_VazNZdGNqUKVJYJkp0otaWFTy2749KzF","name":"vmss_deploy_VazNZdGNqUKVJYJkp0otaWFTy2749KzF","properties":{"templateHash":"6163004223535107196","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-09-18T23:59:31.9795086Z","duration":"PT0.6593034S","correlationId":"1bf769ac-955e-4bc6-bf3d-1d7e785cf936","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}]}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/vmss_deploy_f9gX9gUcIyfal16nIPz6wEUjrEmFKe7Z","name":"vmss_deploy_f9gX9gUcIyfal16nIPz6wEUjrEmFKe7Z","properties":{"templateHash":"10836161406348008621","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-11-17T18:14:43.0656728Z","duration":"PT0.7858263S","correlationId":"66ed32dd-f154-4c93-b95d-72d9bc9956c5","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}]}}'}
headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vmss_deploy_VazNZdGNqUKVJYJkp0otaWFTy2749KzF/operationStatuses/08586958277141574186?api-version=2017-05-10']
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/vmss_deploy_f9gX9gUcIyfal16nIPz6wEUjrEmFKe7Z/operationStatuses/08586906644031977735?api-version=2017-05-10']
cache-control: [no-cache]
- content-length: ['2025']
+ content-length: ['2026']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:59:31 GMT']
+ date: ['Fri, 17 Nov 2017 18:14:44 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1194']
+ x-ms-ratelimit-remaining-subscription-writes: ['1197']
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958277141574186?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906644031977735?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:00:01 GMT']
+ date: ['Fri, 17 Nov 2017 18:15:18 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -1081,22 +1139,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958277141574186?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906644031977735?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:00:32 GMT']
+ date: ['Fri, 17 Nov 2017 18:15:47 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -1107,22 +1165,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958277141574186?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906644031977735?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:01:02 GMT']
+ date: ['Fri, 17 Nov 2017 18:16:18 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -1133,22 +1191,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958277141574186?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906644031977735?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:01:33 GMT']
+ date: ['Fri, 17 Nov 2017 18:16:48 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -1159,48 +1217,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958277141574186?api-version=2017-05-10
- response:
- body: {string: '{"status":"Running"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['20']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:02:03 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958277141574186?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906644031977735?api-version=2017-05-10
response:
body: {string: '{"status":"Succeeded"}'}
headers:
cache-control: [no-cache]
content-length: ['22']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:02:33 GMT']
+ date: ['Fri, 17 Nov 2017 18:17:19 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -1211,22 +1243,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vmss_deploy_VazNZdGNqUKVJYJkp0otaWFTy2749KzF","name":"vmss_deploy_VazNZdGNqUKVJYJkp0otaWFTy2749KzF","properties":{"templateHash":"6163004223535107196","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-09-19T00:02:14.9297235Z","duration":"PT2M43.6095183S","correlationId":"1bf769ac-955e-4bc6-bf3d-1d7e785cf936","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual"},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmss12605","adminUsername":"sdk-test-admin","linuxConfiguration":{"disablePasswordAuthentication":false},"secrets":[]},"storageProfile":{"osDisk":{"createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Standard_LRS"},"diskSizeGB":30},"imageReference":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image1"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vmss12605Nic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"ipConfigurations":[{"name":"vmss12605IPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool"}]}}]}}]}},"provisioningState":"Succeeded","overprovision":true,"uniqueId":"b03a22e3-603e-4870-b5e7-0d8d3129b938"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP"}]}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/vmss_deploy_f9gX9gUcIyfal16nIPz6wEUjrEmFKe7Z","name":"vmss_deploy_f9gX9gUcIyfal16nIPz6wEUjrEmFKe7Z","properties":{"templateHash":"10836161406348008621","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-11-17T18:16:57.6833362Z","duration":"PT2M15.4034897S","correlationId":"66ed32dd-f154-4c93-b95d-72d9bc9956c5","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual","automaticOSUpgrade":false},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmss1d724","adminUsername":"sdk-test-admin","linuxConfiguration":{"disablePasswordAuthentication":false},"secrets":[]},"storageProfile":{"osDisk":{"createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Standard_LRS"},"diskSizeGB":30},"imageReference":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image1"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vmss1d724Nic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"ipConfigurations":[{"name":"vmss1d724IPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool"}]}}]}}]}},"provisioningState":"Succeeded","overprovision":true,"uniqueId":"5a8036d0-b07d-494d-a4a4-dcb2a55a127b"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/loadBalancers/vmss1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP"}]}}'}
headers:
cache-control: [no-cache]
- content-length: ['4467']
+ content-length: ['4495']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:02:33 GMT']
+ date: ['Fri, 17 Nov 2017 18:17:19 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -1237,11 +1269,11 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [image create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sdk-test/providers/Microsoft.Compute/virtualMachines/sdk-test-m?api-version=2017-03-30
@@ -1276,35 +1308,36 @@ interactions:
cache-control: [no-cache]
content-length: ['2416']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:02:33 GMT']
+ date: ['Fri, 17 Nov 2017 18:17:20 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4975,Microsoft.Compute/LowCostGet30Min;39877']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [image create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001?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"}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001","name":"cli_test_vm_custom_image000001","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, 19 Sep 2017 00:02:34 GMT']
+ date: ['Fri, 17 Nov 2017 18:17:20 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -1315,15 +1348,15 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [image create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Length: ['204']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image2?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image2?api-version=2017-03-30
response:
body: {string: "{\r\n \"properties\": {\r\n \"sourceVirtualMachine\": {\r\n\
\ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sdk-test/providers/Microsoft.Compute/virtualMachines/sdk-test-m\"\
@@ -1336,62 +1369,64 @@ interactions:
\r\n },\r\n \"caching\": \"None\"\r\n }\r\n \
\ ]\r\n },\r\n \"provisioningState\": \"Creating\"\r\n },\r\n \"type\"\
: \"Microsoft.Compute/images\",\r\n \"location\": \"westus\",\r\n \"id\"\
- : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image2\"\
+ : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image2\"\
,\r\n \"name\": \"image2\"\r\n}"}
headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/0e0e3f6e-c290-4a39-8c97-65a1420b380a?api-version=2017-03-30']
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/17d0081b-204b-4d5f-9943-67518f28a0fe?api-version=2017-03-30']
cache-control: [no-cache]
content-length: ['1200']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:02:35 GMT']
+ date: ['Fri, 17 Nov 2017 18:17:22 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1194']
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/CreateImages3Min;39,Microsoft.Compute/CreateImages30Min;193']
+ x-ms-ratelimit-remaining-subscription-writes: ['1195']
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [image create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/0e0e3f6e-c290-4a39-8c97-65a1420b380a?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/17d0081b-204b-4d5f-9943-67518f28a0fe?api-version=2017-03-30
response:
- body: {string: "{\r\n \"startTime\": \"2017-09-19T00:02:35.0736214+00:00\",\r\
- \n \"endTime\": \"2017-09-19T00:02:40.1852395+00:00\",\r\n \"status\": \"\
- Succeeded\",\r\n \"name\": \"0e0e3f6e-c290-4a39-8c97-65a1420b380a\"\r\n}"}
+ body: {string: "{\r\n \"startTime\": \"2017-11-17T18:17:21.7007727+00:00\",\r\
+ \n \"endTime\": \"2017-11-17T18:17:26.7947359+00:00\",\r\n \"status\": \"\
+ Succeeded\",\r\n \"name\": \"17d0081b-204b-4d5f-9943-67518f28a0fe\"\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['184']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:03:05 GMT']
+ date: ['Fri, 17 Nov 2017 18:17:52 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;2106,Microsoft.Compute/GetOperation30Min;17634']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [image create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image2?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image2?api-version=2017-03-30
response:
body: {string: "{\r\n \"properties\": {\r\n \"sourceVirtualMachine\": {\r\n\
\ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sdk-test/providers/Microsoft.Compute/virtualMachines/sdk-test-m\"\
@@ -1406,41 +1441,42 @@ interactions:
\r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\
: \"Standard_LRS\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\"\
: \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.Compute/images\",\r\n \
- \ \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image2\"\
+ \ \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image2\"\
,\r\n \"name\": \"image2\"\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['1352']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:03:05 GMT']
+ date: ['Fri, 17 Nov 2017 18:17:52 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetImages3Min;358,Microsoft.Compute/GetImages30Min;2456']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001?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"}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001","name":"cli_test_vm_custom_image000001","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, 19 Sep 2017 00:03:06 GMT']
+ date: ['Fri, 17 Nov 2017 18:17:53 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -1496,24 +1532,24 @@ interactions:
cache-control: [max-age=300]
connection: [close]
content-length: ['2235']
- content-security-policy: [default-src 'none'; style-src 'unsafe-inline']
+ content-security-policy: [default-src 'none'; style-src 'unsafe-inline'; sandbox]
content-type: [text/plain; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:03:07 GMT']
+ date: ['Fri, 17 Nov 2017 18:17:54 GMT']
etag: ['"d6824855d13e27c5258a680eb60f635d088fd05e"']
- expires: ['Tue, 19 Sep 2017 00:08:07 GMT']
- source-age: ['0']
+ expires: ['Fri, 17 Nov 2017 18:22:54 GMT']
+ source-age: ['157']
strict-transport-security: [max-age=31536000]
vary: ['Authorization,Accept-Encoding']
via: [1.1 varnish]
- x-cache: [MISS]
- x-cache-hits: ['0']
+ x-cache: [HIT]
+ x-cache-hits: ['1']
x-content-type-options: [nosniff]
- x-fastly-request-id: [d553b96cad7fe8cb37ed6aa48e69db39d2258b48]
+ x-fastly-request-id: [40304c64ffc0640b9faf97e9345b8c1851cb9abc]
x-frame-options: [deny]
x-geo-block-list: ['']
- x-github-request-id: ['12E0:2F965:374D13E:3B774D5:59C05EBA']
- x-served-by: [cache-sea1030-SEA]
- x-timer: ['S1505779387.086478,VS0,VE25']
+ x-github-request-id: ['1ABC:22BFD:11FCC6:13839A:5A0F2734']
+ x-served-by: [cache-mdw17336-MDW]
+ x-timer: ['S1510942674.212061,VS0,VE1']
x-xss-protection: [1; mode=block]
status: {code: 200, message: OK}
- request:
@@ -1521,14 +1557,14 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image2?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image2?api-version=2017-03-30
response:
body: {string: "{\r\n \"properties\": {\r\n \"sourceVirtualMachine\": {\r\n\
\ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sdk-test/providers/Microsoft.Compute/virtualMachines/sdk-test-m\"\
@@ -1543,33 +1579,34 @@ interactions:
\r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\
: \"Standard_LRS\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\"\
: \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.Compute/images\",\r\n \
- \ \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image2\"\
+ \ \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image2\"\
,\r\n \"name\": \"image2\"\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['1352']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:03:06 GMT']
+ date: ['Fri, 17 Nov 2017 18:17:53 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetImages3Min;357,Microsoft.Compute/GetImages30Min;2455']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image2?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image2?api-version=2017-03-30
response:
body: {string: "{\r\n \"properties\": {\r\n \"sourceVirtualMachine\": {\r\n\
\ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sdk-test/providers/Microsoft.Compute/virtualMachines/sdk-test-m\"\
@@ -1584,58 +1621,59 @@ interactions:
\r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\
: \"Standard_LRS\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\"\
: \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.Compute/images\",\r\n \
- \ \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image2\"\
+ \ \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image2\"\
,\r\n \"name\": \"image2\"\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['1352']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:03:07 GMT']
+ date: ['Fri, 17 Nov 2017 18:17:54 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetImages3Min;356,Microsoft.Compute/GetImages30Min;2454']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 networkmanagementclient/1.5.0rc1 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-09-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-09-01
response:
body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vm1VNET\",\r\
- \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET\"\
- ,\r\n \"etag\": \"W/\\\"5b0364bc-8a7b-4adb-9169-13418da41cec\\\"\",\r\
+ \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/virtualNetworks/vm1VNET\"\
+ ,\r\n \"etag\": \"W/\\\"a11b3af7-07dc-4d6a-a2d2-b008f4fe2b59\\\"\",\r\
\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\"\
: \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \
- \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"a7c16b95-67e3-4543-be91-7c135842b658\"\
+ \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"19c216ad-91d3-4f2e-90e7-44ae87af61f3\"\
,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \
\ \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\"\
: [\r\n {\r\n \"name\": \"vm1Subnet\",\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\
- ,\r\n \"etag\": \"W/\\\"5b0364bc-8a7b-4adb-9169-13418da41cec\\\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\
+ ,\r\n \"etag\": \"W/\\\"a11b3af7-07dc-4d6a-a2d2-b008f4fe2b59\\\"\
\",\r\n \"properties\": {\r\n \"provisioningState\"\
: \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n\
\ \"ipConfigurations\": [\r\n {\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\
\r\n },\r\n {\r\n \"id\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/0/networkInterfaces/vmss12605Nic/ipConfigurations/vmss12605IPConfig\"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/0/networkInterfaces/vmss1d724Nic/ipConfigurations/vmss1d724IPConfig\"\
\r\n },\r\n {\r\n \"id\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/vmss12605Nic/ipConfigurations/vmss12605IPConfig\"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/vmss1d724Nic/ipConfigurations/vmss1d724IPConfig\"\
\r\n },\r\n {\r\n \"id\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/2/networkInterfaces/vmss12605Nic/ipConfigurations/vmss12605IPConfig\"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/2/networkInterfaces/vmss1d724Nic/ipConfigurations/vmss1d724IPConfig\"\
\r\n },\r\n {\r\n \"id\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/3/networkInterfaces/vmss12605Nic/ipConfigurations/vmss12605IPConfig\"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/3/networkInterfaces/vmss1d724Nic/ipConfigurations/vmss1d724IPConfig\"\
\r\n }\r\n ]\r\n }\r\n }\r\
\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\
: false,\r\n \"enableVmProtection\": false\r\n }\r\n }\r\n\
@@ -1644,7 +1682,7 @@ interactions:
cache-control: [no-cache]
content-length: ['3088']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:03:07 GMT']
+ date: ['Fri, 17 Nov 2017 18:17:54 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@@ -1653,105 +1691,78 @@ interactions:
vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
- body: 'b''{"properties": {"parameters": {}, "template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
- "outputs": {}, "parameters": {}, "resources": [{"properties": {"securityRules":
- [{"properties": {"sourcePortRange": "*", "access": "Allow", "priority": 1000,
- "sourceAddressPrefix": "*", "protocol": "Tcp", "direction": "Inbound", "destinationPortRange":
- "22", "destinationAddressPrefix": "*"}, "name": "default-allow-ssh"}]}, "type":
- "Microsoft.Network/networkSecurityGroups", "name": "vm2NSG", "apiVersion": "2015-06-15",
- "location": "westus", "dependsOn": [], "tags": {}}, {"properties": {"publicIPAllocationMethod":
- "dynamic"}, "type": "Microsoft.Network/publicIPAddresses", "apiVersion": "2017-09-01",
- "name": "vm2PublicIP", "location": "westus", "dependsOn": [], "tags": {}}, {"properties":
- {"ipConfigurations": [{"properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP"},
- "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},
- "privateIPAllocationMethod": "Dynamic"}, "name": "ipconfigvm2"}], "networkSecurityGroup":
- {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm2NSG"}},
- "type": "Microsoft.Network/networkInterfaces", "apiVersion": "2015-06-15", "name":
- "vm2VMNic", "location": "westus", "dependsOn": ["Microsoft.Network/networkSecurityGroups/vm2NSG",
- "Microsoft.Network/publicIpAddresses/vm2PublicIP"], "tags": {}}, {"properties":
- {"networkProfile": {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic"}]},
- "osProfile": {"adminPassword": "testPassword0", "computerName": "vm2", "adminUsername":
- "sdk-test-admin"}, "hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "storageProfile":
- {"dataDisks": [{"createOption": "fromImage", "lun": 0, "caching": null, "managedDisk":
- {"storageAccountType": null}}], "imageReference": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image2"},
- "osDisk": {"createOption": "fromImage", "caching": null, "name": null, "managedDisk":
- {"storageAccountType": null}}}}, "type": "Microsoft.Compute/virtualMachines",
- "apiVersion": "2017-03-30", "name": "vm2", "location": "westus", "dependsOn":
- ["Microsoft.Network/networkInterfaces/vm2VMNic"], "tags": {}}], "contentVersion":
- "1.0.0.0", "variables": {}}, "mode": "Incremental"}}'''
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
- Connection: [keep-alive]
- Content-Length: ['3039']
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_tAK0bsFJodu0dAiY9bV09dp4ft0a6hLI","name":"vm_deploy_tAK0bsFJodu0dAiY9bV09dp4ft0a6hLI","properties":{"templateHash":"832425358690218682","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-09-19T00:03:09.403509Z","duration":"PT0.604316S","correlationId":"e0dcafb8-d386-4fdd-9ce8-10a25f63d1de","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm2NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm2NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm2PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm2VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm2VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm2"}]}}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_tAK0bsFJodu0dAiY9bV09dp4ft0a6hLI/operationStatuses/08586958274966784352?api-version=2017-05-10']
- cache-control: [no-cache]
- content-length: ['2360']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:03:08 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1194']
- status: {code: 201, message: Created}
-- request:
- body: null
+ body: 'b''{"properties": {"mode": "Incremental", "parameters": {}, "template":
+ {"parameters": {}, "outputs": {}, "resources": [{"tags": {}, "name": "vm2NSG",
+ "location": "westus", "apiVersion": "2015-06-15", "type": "Microsoft.Network/networkSecurityGroups",
+ "dependsOn": [], "properties": {"securityRules": [{"name": "default-allow-ssh",
+ "properties": {"destinationPortRange": "22", "access": "Allow", "protocol":
+ "Tcp", "destinationAddressPrefix": "*", "sourceAddressPrefix": "*", "direction":
+ "Inbound", "sourcePortRange": "*", "priority": 1000}}]}}, {"tags": {}, "name":
+ "vm2PublicIP", "location": "westus", "apiVersion": "2017-09-01", "type": "Microsoft.Network/publicIPAddresses",
+ "dependsOn": [], "properties": {"publicIPAllocationMethod": "dynamic"}}, {"tags":
+ {}, "name": "vm2VMNic", "location": "westus", "apiVersion": "2015-06-15", "type":
+ "Microsoft.Network/networkInterfaces", "dependsOn": ["Microsoft.Network/networkSecurityGroups/vm2NSG",
+ "Microsoft.Network/publicIpAddresses/vm2PublicIP"], "properties": {"ipConfigurations":
+ [{"name": "ipconfigvm2", "properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP"},
+ "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},
+ "privateIPAllocationMethod": "Dynamic"}}], "networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkSecurityGroups/vm2NSG"}}},
+ {"tags": {}, "name": "vm2", "location": "westus", "apiVersion": "2017-03-30",
+ "type": "Microsoft.Compute/virtualMachines", "dependsOn": ["Microsoft.Network/networkInterfaces/vm2VMNic"],
+ "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "networkProfile":
+ {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic"}]},
+ "storageProfile": {"dataDisks": [{"caching": null, "managedDisk": {"storageAccountType":
+ null}, "lun": 0, "createOption": "fromImage"}], "imageReference": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image2"},
+ "osDisk": {"caching": "ReadWrite", "name": null, "managedDisk": {"storageAccountType":
+ null}, "createOption": "fromImage"}}, "osProfile": {"adminUsername": "sdk-test-admin",
+ "adminPassword": "testPassword0", "computerName": "vm2"}}}], "variables": {},
+ "contentVersion": "1.0.0.0", "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#"}}}'''
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
+ Content-Length: ['3046']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958274966784352?api-version=2017-05-10
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
response:
- body: {string: '{"status":"Running"}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/vm_deploy_OM0ZzmmghnIpHQfARcMnIsnUdjNSaZvX","name":"vm_deploy_OM0ZzmmghnIpHQfARcMnIsnUdjNSaZvX","properties":{"templateHash":"4608515730969059704","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-11-17T18:17:57.1411304Z","duration":"PT0.7513397S","correlationId":"887424af-d146-48d5-9903-1e756f3236c1","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkSecurityGroups/vm2NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm2NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm2PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm2VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm2VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachines/vm2","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm2"}]}}'}
headers:
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/vm_deploy_OM0ZzmmghnIpHQfARcMnIsnUdjNSaZvX/operationStatuses/08586906642090878318?api-version=2017-05-10']
cache-control: [no-cache]
- content-length: ['20']
+ content-length: ['2363']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:03:39 GMT']
+ date: ['Fri, 17 Nov 2017 18:17:57 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
+ x-ms-ratelimit-remaining-subscription-writes: ['1197']
+ status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958274966784352?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906642090878318?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:04:10 GMT']
+ date: ['Fri, 17 Nov 2017 18:18:27 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -1762,22 +1773,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958274966784352?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906642090878318?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:04:39 GMT']
+ date: ['Fri, 17 Nov 2017 18:18:57 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -1788,22 +1799,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958274966784352?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906642090878318?api-version=2017-05-10
response:
body: {string: '{"status":"Succeeded"}'}
headers:
cache-control: [no-cache]
content-length: ['22']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:05:10 GMT']
+ date: ['Fri, 17 Nov 2017 18:19:28 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -1814,22 +1825,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_tAK0bsFJodu0dAiY9bV09dp4ft0a6hLI","name":"vm_deploy_tAK0bsFJodu0dAiY9bV09dp4ft0a6hLI","properties":{"templateHash":"832425358690218682","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-09-19T00:04:52.9422687Z","duration":"PT1M44.1430757S","correlationId":"e0dcafb8-d386-4fdd-9ce8-10a25f63d1de","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm2NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm2NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm2PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm2VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm2VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm2"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm2NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP"}]}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/vm_deploy_OM0ZzmmghnIpHQfARcMnIsnUdjNSaZvX","name":"vm_deploy_OM0ZzmmghnIpHQfARcMnIsnUdjNSaZvX","properties":{"templateHash":"4608515730969059704","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-11-17T18:19:28.6593188Z","duration":"PT1M32.2695281S","correlationId":"887424af-d146-48d5-9903-1e756f3236c1","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkSecurityGroups/vm2NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm2NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm2PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm2VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm2VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachines/vm2","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm2"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachines/vm2"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkSecurityGroups/vm2NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP"}]}}'}
headers:
cache-control: [no-cache]
- content-length: ['3225']
+ content-length: ['3226']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:05:10 GMT']
+ date: ['Fri, 17 Nov 2017 18:19:29 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -1840,117 +1851,118 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2?$expand=instanceView&api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachines/vm2?$expand=instanceView&api-version=2017-03-30
response:
- body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"f40a7038-e79a-457a-80c3-db23898b84f0\"\
+ body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"dc22a836-3889-4087-afae-6996150e64ab\"\
,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\
\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image2\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image2\"\
\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n\
- \ \"name\": \"vm2_disk1_7e96fa541a0b4be0998a258bbe56962d\",\r\n \
+ \ \"name\": \"vm2_disk1_79ee1e0e89a143bd9de191d3adde7c64\",\r\n \
\ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\
,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\
- ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm2_disk1_7e96fa541a0b4be0998a258bbe56962d\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/disks/vm2_disk1_79ee1e0e89a143bd9de191d3adde7c64\"\
\r\n },\r\n \"diskSizeGB\": 31\r\n },\r\n \"dataDisks\"\
- : [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"vm2_disk2_98ed4d4fd01e40eba8e1fdd4f042465c\"\
+ : [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"vm2_disk2_8f45c223cfd24c70876cf3d81aa40f65\"\
,\r\n \"createOption\": \"FromImage\",\r\n \"caching\":\
\ \"None\",\r\n \"managedDisk\": {\r\n \"storageAccountType\"\
- : \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm2_disk2_98ed4d4fd01e40eba8e1fdd4f042465c\"\
+ : \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/disks/vm2_disk2_8f45c223cfd24c70876cf3d81aa40f65\"\
\r\n },\r\n \"diskSizeGB\": 1\r\n }\r\n ]\r\n\
\ },\r\n \"osProfile\": {\r\n \"computerName\": \"vm2\",\r\n \
\ \"adminUsername\": \"sdk-test-admin\",\r\n \"linuxConfiguration\"\
: {\r\n \"disablePasswordAuthentication\": false\r\n },\r\n \
\ \"secrets\": []\r\n },\r\n \"networkProfile\": {\"networkInterfaces\"\
- :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic\"\
+ :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic\"\
}]},\r\n \"provisioningState\": \"Succeeded\",\r\n \"instanceView\"\
- : {\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.2.17\",\r\n\
+ : {\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.2.18\",\r\n\
\ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\
,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"\
Ready\",\r\n \"message\": \"Guest Agent is running\",\r\n \
- \ \"time\": \"2017-09-19T00:05:09+00:00\"\r\n }\r\n \
+ \ \"time\": \"2017-11-17T18:19:30+00:00\"\r\n }\r\n \
\ ],\r\n \"extensionHandlers\": []\r\n },\r\n \"disks\":\
- \ [\r\n {\r\n \"name\": \"vm2_disk1_7e96fa541a0b4be0998a258bbe56962d\"\
+ \ [\r\n {\r\n \"name\": \"vm2_disk1_79ee1e0e89a143bd9de191d3adde7c64\"\
,\r\n \"statuses\": [\r\n {\r\n \"code\"\
: \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\
\n \"displayStatus\": \"Provisioning succeeded\",\r\n \
- \ \"time\": \"2017-09-19T00:03:32.9035243+00:00\"\r\n }\r\
- \n ]\r\n },\r\n {\r\n \"name\": \"vm2_disk2_98ed4d4fd01e40eba8e1fdd4f042465c\"\
+ \ \"time\": \"2017-11-17T18:18:24.8620284+00:00\"\r\n }\r\
+ \n ]\r\n },\r\n {\r\n \"name\": \"vm2_disk2_8f45c223cfd24c70876cf3d81aa40f65\"\
,\r\n \"statuses\": [\r\n {\r\n \"code\"\
: \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\
\n \"displayStatus\": \"Provisioning succeeded\",\r\n \
- \ \"time\": \"2017-09-19T00:03:32.9035243+00:00\"\r\n }\r\
+ \ \"time\": \"2017-11-17T18:18:24.8620284+00:00\"\r\n }\r\
\n ]\r\n }\r\n ],\r\n \"statuses\": [\r\n \
\ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \
\ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\"\
- ,\r\n \"time\": \"2017-09-19T00:04:45.4607676+00:00\"\r\n \
+ ,\r\n \"time\": \"2017-11-17T18:19:22.7452632+00:00\"\r\n \
\ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \
\ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\
\n }\r\n ]\r\n }\r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachines\"\
- ,\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2\"\
+ ,\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachines/vm2\"\
,\r\n \"name\": \"vm2\"\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['3876']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:05:11 GMT']
+ date: ['Fri, 17 Nov 2017 18:19:29 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4982,Microsoft.Compute/LowCostGet30Min;39862']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 networkmanagementclient/1.5.0rc1 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic?api-version=2017-09-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic?api-version=2017-09-01
response:
- body: {string: "{\r\n \"name\": \"vm2VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic\"\
- ,\r\n \"etag\": \"W/\\\"618713ef-62a7-406d-9933-faf40e275775\\\"\",\r\n \
+ body: {string: "{\r\n \"name\": \"vm2VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic\"\
+ ,\r\n \"etag\": \"W/\\\"f82e0d7e-5530-482a-9c21-2d64eb6e4e07\\\"\",\r\n \
\ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n\
- \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"511612db-158b-47a8-964c-10126b73559e\"\
+ \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"84826e61-b6f9-4299-bd5b-0b5395e9158a\"\
,\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm2\"\
- ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic/ipConfigurations/ipconfigvm2\"\
- ,\r\n \"etag\": \"W/\\\"618713ef-62a7-406d-9933-faf40e275775\\\"\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic/ipConfigurations/ipconfigvm2\"\
+ ,\r\n \"etag\": \"W/\\\"f82e0d7e-5530-482a-9c21-2d64eb6e4e07\\\"\"\
,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\
- ,\r\n \"privateIPAddress\": \"10.0.0.9\",\r\n \"privateIPAllocationMethod\"\
+ ,\r\n \"privateIPAddress\": \"10.0.0.5\",\r\n \"privateIPAllocationMethod\"\
: \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\":\
- \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP\"\
- \r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\
+ \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP\"\
+ \r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\
\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\"\
: \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n\
\ \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"\
- internalDomainNameSuffix\": \"svv2dj5dm3bulpurpqjvqqvwla.dx.internal.cloudapp.net\"\
- \r\n },\r\n \"macAddress\": \"00-0D-3A-36-76-C5\",\r\n \"enableAcceleratedNetworking\"\
+ internalDomainNameSuffix\": \"vulmegotsexe5ehhisxipl1b4d.dx.internal.cloudapp.net\"\
+ \r\n },\r\n \"macAddress\": \"00-0D-3A-36-3E-B3\",\r\n \"enableAcceleratedNetworking\"\
: false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\"\
- : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm2NSG\"\
+ : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkSecurityGroups/vm2NSG\"\
\r\n },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachines/vm2\"\
\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\
\n}"}
headers:
cache-control: [no-cache]
content-length: ['2495']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:05:11 GMT']
- etag: [W/"618713ef-62a7-406d-9933-faf40e275775"]
+ date: ['Fri, 17 Nov 2017 18:19:31 GMT']
+ etag: [W/"f82e0d7e-5530-482a-9c21-2d64eb6e4e07"]
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@@ -1963,31 +1975,31 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 networkmanagementclient/1.5.0rc1 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP?api-version=2017-09-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP?api-version=2017-09-01
response:
- body: {string: "{\r\n \"name\": \"vm2PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP\"\
- ,\r\n \"etag\": \"W/\\\"a5584baf-8a7b-4161-bf80-6809ad0c20e8\\\"\",\r\n \
+ body: {string: "{\r\n \"name\": \"vm2PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP\"\
+ ,\r\n \"etag\": \"W/\\\"502d41fc-5fc7-4ec2-9e05-319a96341eaa\\\"\",\r\n \
\ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n\
- \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"fea3a111-9641-46c6-abc2-3a235d5c547b\"\
- ,\r\n \"ipAddress\": \"13.88.15.222\",\r\n \"publicIPAddressVersion\"\
+ \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"93267226-4381-49c9-8ade-0168bd295805\"\
+ ,\r\n \"ipAddress\": \"13.93.230.62\",\r\n \"publicIPAddressVersion\"\
: \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\"\
- : 4,\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic/ipConfigurations/ipconfigvm2\"\
+ : 4,\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic/ipConfigurations/ipconfigvm2\"\
\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\
\n \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['977']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:05:11 GMT']
- etag: [W/"a5584baf-8a7b-4161-bf80-6809ad0c20e8"]
+ date: ['Fri, 17 Nov 2017 18:19:31 GMT']
+ etag: [W/"502d41fc-5fc7-4ec2-9e05-319a96341eaa"]
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@@ -2000,72 +2012,73 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm show]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachines/vm2?api-version=2017-03-30
response:
- body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"f40a7038-e79a-457a-80c3-db23898b84f0\"\
+ body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"dc22a836-3889-4087-afae-6996150e64ab\"\
,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\
\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image2\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image2\"\
\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n\
- \ \"name\": \"vm2_disk1_7e96fa541a0b4be0998a258bbe56962d\",\r\n \
+ \ \"name\": \"vm2_disk1_79ee1e0e89a143bd9de191d3adde7c64\",\r\n \
\ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\
,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\
- ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm2_disk1_7e96fa541a0b4be0998a258bbe56962d\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/disks/vm2_disk1_79ee1e0e89a143bd9de191d3adde7c64\"\
\r\n },\r\n \"diskSizeGB\": 31\r\n },\r\n \"dataDisks\"\
- : [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"vm2_disk2_98ed4d4fd01e40eba8e1fdd4f042465c\"\
+ : [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"vm2_disk2_8f45c223cfd24c70876cf3d81aa40f65\"\
,\r\n \"createOption\": \"FromImage\",\r\n \"caching\":\
\ \"None\",\r\n \"managedDisk\": {\r\n \"storageAccountType\"\
- : \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm2_disk2_98ed4d4fd01e40eba8e1fdd4f042465c\"\
+ : \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/disks/vm2_disk2_8f45c223cfd24c70876cf3d81aa40f65\"\
\r\n },\r\n \"diskSizeGB\": 1\r\n }\r\n ]\r\n\
\ },\r\n \"osProfile\": {\r\n \"computerName\": \"vm2\",\r\n \
\ \"adminUsername\": \"sdk-test-admin\",\r\n \"linuxConfiguration\"\
: {\r\n \"disablePasswordAuthentication\": false\r\n },\r\n \
\ \"secrets\": []\r\n },\r\n \"networkProfile\": {\"networkInterfaces\"\
- :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic\"\
+ :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic\"\
}]},\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"\
Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n \"\
- tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2\"\
+ tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachines/vm2\"\
,\r\n \"name\": \"vm2\"\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['2347']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:05:12 GMT']
+ date: ['Fri, 17 Nov 2017 18:19:31 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4981,Microsoft.Compute/LowCostGet30Min;39861']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001?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"}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001","name":"cli_test_vm_custom_image000001","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, 19 Sep 2017 00:05:12 GMT']
+ date: ['Fri, 17 Nov 2017 18:19:31 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -2121,24 +2134,24 @@ interactions:
cache-control: [max-age=300]
connection: [close]
content-length: ['2235']
- content-security-policy: [default-src 'none'; style-src 'unsafe-inline']
+ content-security-policy: [default-src 'none'; style-src 'unsafe-inline'; sandbox]
content-type: [text/plain; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:05:13 GMT']
+ date: ['Fri, 17 Nov 2017 18:19:32 GMT']
etag: ['"d6824855d13e27c5258a680eb60f635d088fd05e"']
- expires: ['Tue, 19 Sep 2017 00:10:13 GMT']
- source-age: ['126']
+ expires: ['Fri, 17 Nov 2017 18:24:32 GMT']
+ source-age: ['255']
strict-transport-security: [max-age=31536000]
vary: ['Authorization,Accept-Encoding']
via: [1.1 varnish]
x-cache: [HIT]
x-cache-hits: ['1']
x-content-type-options: [nosniff]
- x-fastly-request-id: [199513d9508a0f5df20166e1f029d22e15ff8efb]
+ x-fastly-request-id: [5b8e9069a873e4b2a8cb89a349167bc0c79861c5]
x-frame-options: [deny]
x-geo-block-list: ['']
- x-github-request-id: ['12E0:2F965:374D13E:3B774D5:59C05EBA']
- x-served-by: [cache-sea1044-SEA]
- x-timer: ['S1505779513.107479,VS0,VE0']
+ x-github-request-id: ['1ABC:22BFD:11FCC6:13839A:5A0F2734']
+ x-served-by: [cache-mdw17326-MDW]
+ x-timer: ['S1510942773.620507,VS0,VE1']
x-xss-protection: [1; mode=block]
status: {code: 200, message: OK}
- request:
@@ -2146,14 +2159,14 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image2?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image2?api-version=2017-03-30
response:
body: {string: "{\r\n \"properties\": {\r\n \"sourceVirtualMachine\": {\r\n\
\ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sdk-test/providers/Microsoft.Compute/virtualMachines/sdk-test-m\"\
@@ -2168,33 +2181,34 @@ interactions:
\r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\
: \"Standard_LRS\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\"\
: \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.Compute/images\",\r\n \
- \ \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image2\"\
+ \ \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image2\"\
,\r\n \"name\": \"image2\"\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['1352']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:05:12 GMT']
+ date: ['Fri, 17 Nov 2017 18:19:32 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetImages3Min;353,Microsoft.Compute/GetImages30Min;2451']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image2?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image2?api-version=2017-03-30
response:
body: {string: "{\r\n \"properties\": {\r\n \"sourceVirtualMachine\": {\r\n\
\ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sdk-test/providers/Microsoft.Compute/virtualMachines/sdk-test-m\"\
@@ -2209,56 +2223,57 @@ interactions:
\r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\
: \"Standard_LRS\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\"\
: \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.Compute/images\",\r\n \
- \ \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image2\"\
+ \ \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image2\"\
,\r\n \"name\": \"image2\"\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['1352']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:05:13 GMT']
+ date: ['Fri, 17 Nov 2017 18:19:32 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetImages3Min;352,Microsoft.Compute/GetImages30Min;2450']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 networkmanagementclient/1.5.0rc1 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-09-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-09-01
response:
body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vm1VNET\",\r\
- \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET\"\
- ,\r\n \"etag\": \"W/\\\"6b369c0a-550a-4fcb-9e38-2b00d4bacb05\\\"\",\r\
+ \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/virtualNetworks/vm1VNET\"\
+ ,\r\n \"etag\": \"W/\\\"b4db88d9-d741-4a18-83d6-ef59c2f16b42\\\"\",\r\
\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\"\
: \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \
- \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"a7c16b95-67e3-4543-be91-7c135842b658\"\
+ \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"19c216ad-91d3-4f2e-90e7-44ae87af61f3\"\
,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \
\ \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\"\
: [\r\n {\r\n \"name\": \"vm1Subnet\",\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\
- ,\r\n \"etag\": \"W/\\\"6b369c0a-550a-4fcb-9e38-2b00d4bacb05\\\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\
+ ,\r\n \"etag\": \"W/\\\"b4db88d9-d741-4a18-83d6-ef59c2f16b42\\\"\
\",\r\n \"properties\": {\r\n \"provisioningState\"\
: \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n\
\ \"ipConfigurations\": [\r\n {\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\
\r\n },\r\n {\r\n \"id\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/2/networkInterfaces/vmss12605Nic/ipConfigurations/vmss12605IPConfig\"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/vmss1d724Nic/ipConfigurations/vmss1d724IPConfig\"\
\r\n },\r\n {\r\n \"id\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/3/networkInterfaces/vmss12605Nic/ipConfigurations/vmss12605IPConfig\"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/3/networkInterfaces/vmss1d724Nic/ipConfigurations/vmss1d724IPConfig\"\
\r\n },\r\n {\r\n \"id\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic/ipConfigurations/ipconfigvm2\"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic/ipConfigurations/ipconfigvm2\"\
\r\n }\r\n ]\r\n }\r\n }\r\
\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\
: false,\r\n \"enableVmProtection\": false\r\n }\r\n }\r\n\
@@ -2267,7 +2282,7 @@ interactions:
cache-control: [no-cache]
content-length: ['2679']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:05:13 GMT']
+ date: ['Fri, 17 Nov 2017 18:19:33 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@@ -2276,79 +2291,79 @@ interactions:
vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
- body: 'b''{"properties": {"parameters": {}, "template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
- "outputs": {}, "parameters": {}, "resources": [{"properties": {"securityRules":
- [{"properties": {"sourcePortRange": "*", "access": "Allow", "priority": 1000,
- "sourceAddressPrefix": "*", "protocol": "Tcp", "direction": "Inbound", "destinationPortRange":
- "22", "destinationAddressPrefix": "*"}, "name": "default-allow-ssh"}]}, "type":
- "Microsoft.Network/networkSecurityGroups", "name": "vm3NSG", "apiVersion": "2015-06-15",
- "location": "westus", "dependsOn": [], "tags": {}}, {"properties": {"publicIPAllocationMethod":
- "dynamic"}, "type": "Microsoft.Network/publicIPAddresses", "apiVersion": "2017-09-01",
- "name": "vm3PublicIP", "location": "westus", "dependsOn": [], "tags": {}}, {"properties":
- {"ipConfigurations": [{"properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm3PublicIP"},
- "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},
- "privateIPAllocationMethod": "Dynamic"}, "name": "ipconfigvm3"}], "networkSecurityGroup":
- {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm3NSG"}},
- "type": "Microsoft.Network/networkInterfaces", "apiVersion": "2015-06-15", "name":
- "vm3VMNic", "location": "westus", "dependsOn": ["Microsoft.Network/networkSecurityGroups/vm3NSG",
- "Microsoft.Network/publicIpAddresses/vm3PublicIP"], "tags": {}}, {"properties":
- {"networkProfile": {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm3VMNic"}]},
- "osProfile": {"adminPassword": "testPassword0", "computerName": "vm3", "adminUsername":
- "sdk-test-admin"}, "hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "storageProfile":
- {"dataDisks": [{"createOption": "fromImage", "lun": 0, "caching": null, "managedDisk":
- {"storageAccountType": "Premium_LRS"}}], "imageReference": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image2"},
- "osDisk": {"createOption": "fromImage", "caching": null, "name": null, "managedDisk":
- {"storageAccountType": "Premium_LRS"}}}}, "type": "Microsoft.Compute/virtualMachines",
- "apiVersion": "2017-03-30", "name": "vm3", "location": "westus", "dependsOn":
- ["Microsoft.Network/networkInterfaces/vm3VMNic"], "tags": {}}], "contentVersion":
- "1.0.0.0", "variables": {}}, "mode": "Incremental"}}'''
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
- Connection: [keep-alive]
- Content-Length: ['3057']
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ body: 'b''{"properties": {"mode": "Incremental", "parameters": {}, "template":
+ {"parameters": {}, "outputs": {}, "resources": [{"tags": {}, "name": "vm3NSG",
+ "location": "westus", "apiVersion": "2015-06-15", "type": "Microsoft.Network/networkSecurityGroups",
+ "dependsOn": [], "properties": {"securityRules": [{"name": "default-allow-ssh",
+ "properties": {"destinationPortRange": "22", "access": "Allow", "protocol":
+ "Tcp", "destinationAddressPrefix": "*", "sourceAddressPrefix": "*", "direction":
+ "Inbound", "sourcePortRange": "*", "priority": 1000}}]}}, {"tags": {}, "name":
+ "vm3PublicIP", "location": "westus", "apiVersion": "2017-09-01", "type": "Microsoft.Network/publicIPAddresses",
+ "dependsOn": [], "properties": {"publicIPAllocationMethod": "dynamic"}}, {"tags":
+ {}, "name": "vm3VMNic", "location": "westus", "apiVersion": "2015-06-15", "type":
+ "Microsoft.Network/networkInterfaces", "dependsOn": ["Microsoft.Network/networkSecurityGroups/vm3NSG",
+ "Microsoft.Network/publicIpAddresses/vm3PublicIP"], "properties": {"ipConfigurations":
+ [{"name": "ipconfigvm3", "properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vm3PublicIP"},
+ "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},
+ "privateIPAllocationMethod": "Dynamic"}}], "networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkSecurityGroups/vm3NSG"}}},
+ {"tags": {}, "name": "vm3", "location": "westus", "apiVersion": "2017-03-30",
+ "type": "Microsoft.Compute/virtualMachines", "dependsOn": ["Microsoft.Network/networkInterfaces/vm3VMNic"],
+ "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "networkProfile":
+ {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm3VMNic"}]},
+ "storageProfile": {"dataDisks": [{"caching": null, "managedDisk": {"storageAccountType":
+ "Premium_LRS"}, "lun": 0, "createOption": "fromImage"}], "imageReference": {"id":
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image2"},
+ "osDisk": {"caching": "ReadWrite", "name": null, "managedDisk": {"storageAccountType":
+ "Premium_LRS"}, "createOption": "fromImage"}}, "osProfile": {"adminUsername":
+ "sdk-test-admin", "adminPassword": "testPassword0", "computerName": "vm3"}}}],
+ "variables": {}, "contentVersion": "1.0.0.0", "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#"}}}'''
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Length: ['3064']
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_EU0gPyWm02dnC8vAZpSJswuNyujKMFoa","name":"vm_deploy_EU0gPyWm02dnC8vAZpSJswuNyujKMFoa","properties":{"templateHash":"2387988115224633973","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-09-19T00:05:14.9120369Z","duration":"PT0.4251065S","correlationId":"0f11ee30-8df8-4c04-bd61-9503b85dba1b","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm3NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm3NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm3PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm3PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm3VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm3VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm3VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm3VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm3","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm3"}]}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/vm_deploy_rcKhGYJRIIAEwml6p0be0YSg9OiovpNs","name":"vm_deploy_rcKhGYJRIIAEwml6p0be0YSg9OiovpNs","properties":{"templateHash":"3556173917404601416","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-11-17T18:19:35.2254463Z","duration":"PT0.6843343S","correlationId":"57809119-a3ce-4d39-8a30-cdb900e1bf81","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkSecurityGroups/vm3NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm3NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vm3PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm3PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm3VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm3VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm3VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm3VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachines/vm3","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm3"}]}}'}
headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_EU0gPyWm02dnC8vAZpSJswuNyujKMFoa/operationStatuses/08586958273709906972?api-version=2017-05-10']
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/vm_deploy_rcKhGYJRIIAEwml6p0be0YSg9OiovpNs/operationStatuses/08586906641109365147?api-version=2017-05-10']
cache-control: [no-cache]
content-length: ['2363']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:05:14 GMT']
+ date: ['Fri, 17 Nov 2017 18:19:34 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1195']
+ x-ms-ratelimit-remaining-subscription-writes: ['1194']
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958273709906972?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906641109365147?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:05:45 GMT']
+ date: ['Fri, 17 Nov 2017 18:20:05 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -2359,22 +2374,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958273709906972?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906641109365147?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:06:15 GMT']
+ date: ['Fri, 17 Nov 2017 18:20:36 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -2385,22 +2400,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958273709906972?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906641109365147?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:06:45 GMT']
+ date: ['Fri, 17 Nov 2017 18:21:07 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -2411,22 +2426,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958273709906972?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906641109365147?api-version=2017-05-10
response:
body: {string: '{"status":"Succeeded"}'}
headers:
cache-control: [no-cache]
content-length: ['22']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:07:15 GMT']
+ date: ['Fri, 17 Nov 2017 18:21:38 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -2437,22 +2452,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_EU0gPyWm02dnC8vAZpSJswuNyujKMFoa","name":"vm_deploy_EU0gPyWm02dnC8vAZpSJswuNyujKMFoa","properties":{"templateHash":"2387988115224633973","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-09-19T00:07:05.456518Z","duration":"PT1M50.9695876S","correlationId":"0f11ee30-8df8-4c04-bd61-9503b85dba1b","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm3NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm3NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm3PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm3PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm3VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm3VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm3VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm3VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm3","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm3"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm3"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm3VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm3NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm3PublicIP"}]}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/vm_deploy_rcKhGYJRIIAEwml6p0be0YSg9OiovpNs","name":"vm_deploy_rcKhGYJRIIAEwml6p0be0YSg9OiovpNs","properties":{"templateHash":"3556173917404601416","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-11-17T18:21:13.2923226Z","duration":"PT1M38.7512106S","correlationId":"57809119-a3ce-4d39-8a30-cdb900e1bf81","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkSecurityGroups/vm3NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm3NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vm3PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm3PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm3VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm3VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm3VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm3VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachines/vm3","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm3"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachines/vm3"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm3VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkSecurityGroups/vm3NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vm3PublicIP"}]}}'}
headers:
cache-control: [no-cache]
- content-length: ['3225']
+ content-length: ['3226']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:07:15 GMT']
+ date: ['Fri, 17 Nov 2017 18:21:38 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -2463,117 +2478,118 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm3?$expand=instanceView&api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachines/vm3?$expand=instanceView&api-version=2017-03-30
response:
- body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"0d5b4e43-c217-4737-87ef-f1eefe5ae609\"\
+ body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"c9385633-3c9b-4fcc-8aa9-1b919ede5c39\"\
,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\
\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image2\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image2\"\
\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n\
- \ \"name\": \"vm3_disk1_6c6885c281434f2bbe1852624538bbd3\",\r\n \
+ \ \"name\": \"vm3_disk1_19a2f841d1d84859a4b532cadcabe6ff\",\r\n \
\ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\
,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\"\
- ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm3_disk1_6c6885c281434f2bbe1852624538bbd3\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/disks/vm3_disk1_19a2f841d1d84859a4b532cadcabe6ff\"\
\r\n },\r\n \"diskSizeGB\": 31\r\n },\r\n \"dataDisks\"\
- : [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"vm3_disk2_e203df1cd8364919bc29cabbc9089bb7\"\
+ : [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"vm3_disk2_879e0c77949a49a5a3921e656a5f26ee\"\
,\r\n \"createOption\": \"FromImage\",\r\n \"caching\":\
\ \"None\",\r\n \"managedDisk\": {\r\n \"storageAccountType\"\
- : \"Premium_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm3_disk2_e203df1cd8364919bc29cabbc9089bb7\"\
+ : \"Premium_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/disks/vm3_disk2_879e0c77949a49a5a3921e656a5f26ee\"\
\r\n },\r\n \"diskSizeGB\": 1\r\n }\r\n ]\r\n\
\ },\r\n \"osProfile\": {\r\n \"computerName\": \"vm3\",\r\n \
\ \"adminUsername\": \"sdk-test-admin\",\r\n \"linuxConfiguration\"\
: {\r\n \"disablePasswordAuthentication\": false\r\n },\r\n \
\ \"secrets\": []\r\n },\r\n \"networkProfile\": {\"networkInterfaces\"\
- :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm3VMNic\"\
+ :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm3VMNic\"\
}]},\r\n \"provisioningState\": \"Succeeded\",\r\n \"instanceView\"\
- : {\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.2.17\",\r\n\
+ : {\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.2.18\",\r\n\
\ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\
,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"\
Ready\",\r\n \"message\": \"Guest Agent is running\",\r\n \
- \ \"time\": \"2017-09-19T00:07:14+00:00\"\r\n }\r\n \
+ \ \"time\": \"2017-11-17T18:21:37+00:00\"\r\n }\r\n \
\ ],\r\n \"extensionHandlers\": []\r\n },\r\n \"disks\":\
- \ [\r\n {\r\n \"name\": \"vm3_disk1_6c6885c281434f2bbe1852624538bbd3\"\
+ \ [\r\n {\r\n \"name\": \"vm3_disk1_19a2f841d1d84859a4b532cadcabe6ff\"\
,\r\n \"statuses\": [\r\n {\r\n \"code\"\
: \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\
\n \"displayStatus\": \"Provisioning succeeded\",\r\n \
- \ \"time\": \"2017-09-19T00:05:31.7633673+00:00\"\r\n }\r\
- \n ]\r\n },\r\n {\r\n \"name\": \"vm3_disk2_e203df1cd8364919bc29cabbc9089bb7\"\
+ \ \"time\": \"2017-11-17T18:20:00.3722221+00:00\"\r\n }\r\
+ \n ]\r\n },\r\n {\r\n \"name\": \"vm3_disk2_879e0c77949a49a5a3921e656a5f26ee\"\
,\r\n \"statuses\": [\r\n {\r\n \"code\"\
: \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\
\n \"displayStatus\": \"Provisioning succeeded\",\r\n \
- \ \"time\": \"2017-09-19T00:05:31.7633673+00:00\"\r\n }\r\
+ \ \"time\": \"2017-11-17T18:20:00.3722221+00:00\"\r\n }\r\
\n ]\r\n }\r\n ],\r\n \"statuses\": [\r\n \
\ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \
\ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\"\
- ,\r\n \"time\": \"2017-09-19T00:06:56.3030881+00:00\"\r\n \
+ ,\r\n \"time\": \"2017-11-17T18:21:03.0174988+00:00\"\r\n \
\ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \
\ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\
\n }\r\n ]\r\n }\r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachines\"\
- ,\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm3\"\
+ ,\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachines/vm3\"\
,\r\n \"name\": \"vm3\"\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['3874']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:07:17 GMT']
+ date: ['Fri, 17 Nov 2017 18:21:40 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4977,Microsoft.Compute/LowCostGet30Min;39850']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 networkmanagementclient/1.5.0rc1 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm3VMNic?api-version=2017-09-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm3VMNic?api-version=2017-09-01
response:
- body: {string: "{\r\n \"name\": \"vm3VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm3VMNic\"\
- ,\r\n \"etag\": \"W/\\\"a583e1d8-de46-4fb3-85a4-74f8a3f55ef2\\\"\",\r\n \
+ body: {string: "{\r\n \"name\": \"vm3VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm3VMNic\"\
+ ,\r\n \"etag\": \"W/\\\"6b6a4992-ced7-4707-abb9-acbe5a85efe6\\\"\",\r\n \
\ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n\
- \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"82e7f0ae-1ee2-4f90-a712-446fe7ceafdf\"\
+ \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"3be14a27-f219-420b-a049-e9da7e0e1236\"\
,\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm3\"\
- ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm3VMNic/ipConfigurations/ipconfigvm3\"\
- ,\r\n \"etag\": \"W/\\\"a583e1d8-de46-4fb3-85a4-74f8a3f55ef2\\\"\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm3VMNic/ipConfigurations/ipconfigvm3\"\
+ ,\r\n \"etag\": \"W/\\\"6b6a4992-ced7-4707-abb9-acbe5a85efe6\\\"\"\
,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\
- ,\r\n \"privateIPAddress\": \"10.0.0.5\",\r\n \"privateIPAllocationMethod\"\
+ ,\r\n \"privateIPAddress\": \"10.0.0.7\",\r\n \"privateIPAllocationMethod\"\
: \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\":\
- \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm3PublicIP\"\
- \r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\
+ \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vm3PublicIP\"\
+ \r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\
\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\"\
: \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n\
\ \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"\
- internalDomainNameSuffix\": \"svv2dj5dm3bulpurpqjvqqvwla.dx.internal.cloudapp.net\"\
- \r\n },\r\n \"macAddress\": \"00-0D-3A-36-7A-6B\",\r\n \"enableAcceleratedNetworking\"\
+ internalDomainNameSuffix\": \"vulmegotsexe5ehhisxipl1b4d.dx.internal.cloudapp.net\"\
+ \r\n },\r\n \"macAddress\": \"00-0D-3A-35-E6-68\",\r\n \"enableAcceleratedNetworking\"\
: false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\"\
- : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm3NSG\"\
+ : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkSecurityGroups/vm3NSG\"\
\r\n },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm3\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachines/vm3\"\
\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\
\n}"}
headers:
cache-control: [no-cache]
content-length: ['2495']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:07:16 GMT']
- etag: [W/"a583e1d8-de46-4fb3-85a4-74f8a3f55ef2"]
+ date: ['Fri, 17 Nov 2017 18:21:40 GMT']
+ etag: [W/"6b6a4992-ced7-4707-abb9-acbe5a85efe6"]
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@@ -2586,31 +2602,31 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 networkmanagementclient/1.5.0rc1 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm3PublicIP?api-version=2017-09-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vm3PublicIP?api-version=2017-09-01
response:
- body: {string: "{\r\n \"name\": \"vm3PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm3PublicIP\"\
- ,\r\n \"etag\": \"W/\\\"af2a5320-f4ed-4da6-b4a0-bb723b226c10\\\"\",\r\n \
+ body: {string: "{\r\n \"name\": \"vm3PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vm3PublicIP\"\
+ ,\r\n \"etag\": \"W/\\\"d7fdfe24-b5fc-4f8d-a283-2e15455d8325\\\"\",\r\n \
\ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n\
- \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"09cb6fb7-ee9e-4c68-80f0-2b12af59036a\"\
- ,\r\n \"ipAddress\": \"13.88.8.26\",\r\n \"publicIPAddressVersion\"\
+ \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"b0b4214a-14b3-45aa-8bcc-5c768ddf8fea\"\
+ ,\r\n \"ipAddress\": \"13.64.188.12\",\r\n \"publicIPAddressVersion\"\
: \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\"\
- : 4,\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm3VMNic/ipConfigurations/ipconfigvm3\"\
+ : 4,\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm3VMNic/ipConfigurations/ipconfigvm3\"\
\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\
\n \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"}
headers:
cache-control: [no-cache]
- content-length: ['975']
+ content-length: ['977']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:07:17 GMT']
- etag: [W/"af2a5320-f4ed-4da6-b4a0-bb723b226c10"]
+ date: ['Fri, 17 Nov 2017 18:21:40 GMT']
+ etag: [W/"d7fdfe24-b5fc-4f8d-a283-2e15455d8325"]
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@@ -2623,72 +2639,73 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm show]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm3?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachines/vm3?api-version=2017-03-30
response:
- body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"0d5b4e43-c217-4737-87ef-f1eefe5ae609\"\
+ body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"c9385633-3c9b-4fcc-8aa9-1b919ede5c39\"\
,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\
\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image2\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image2\"\
\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n\
- \ \"name\": \"vm3_disk1_6c6885c281434f2bbe1852624538bbd3\",\r\n \
+ \ \"name\": \"vm3_disk1_19a2f841d1d84859a4b532cadcabe6ff\",\r\n \
\ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\
,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\"\
- ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm3_disk1_6c6885c281434f2bbe1852624538bbd3\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/disks/vm3_disk1_19a2f841d1d84859a4b532cadcabe6ff\"\
\r\n },\r\n \"diskSizeGB\": 31\r\n },\r\n \"dataDisks\"\
- : [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"vm3_disk2_e203df1cd8364919bc29cabbc9089bb7\"\
+ : [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"vm3_disk2_879e0c77949a49a5a3921e656a5f26ee\"\
,\r\n \"createOption\": \"FromImage\",\r\n \"caching\":\
\ \"None\",\r\n \"managedDisk\": {\r\n \"storageAccountType\"\
- : \"Premium_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm3_disk2_e203df1cd8364919bc29cabbc9089bb7\"\
+ : \"Premium_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/disks/vm3_disk2_879e0c77949a49a5a3921e656a5f26ee\"\
\r\n },\r\n \"diskSizeGB\": 1\r\n }\r\n ]\r\n\
\ },\r\n \"osProfile\": {\r\n \"computerName\": \"vm3\",\r\n \
\ \"adminUsername\": \"sdk-test-admin\",\r\n \"linuxConfiguration\"\
: {\r\n \"disablePasswordAuthentication\": false\r\n },\r\n \
\ \"secrets\": []\r\n },\r\n \"networkProfile\": {\"networkInterfaces\"\
- :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm3VMNic\"\
+ :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm3VMNic\"\
}]},\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"\
Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n \"\
- tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm3\"\
+ tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachines/vm3\"\
,\r\n \"name\": \"vm3\"\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['2345']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:07:17 GMT']
+ date: ['Fri, 17 Nov 2017 18:21:40 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4976,Microsoft.Compute/LowCostGet30Min;39849']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001?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"}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001","name":"cli_test_vm_custom_image000001","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, 19 Sep 2017 00:07:17 GMT']
+ date: ['Fri, 17 Nov 2017 18:21:40 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -2744,24 +2761,24 @@ interactions:
cache-control: [max-age=300]
connection: [close]
content-length: ['2235']
- content-security-policy: [default-src 'none'; style-src 'unsafe-inline']
+ content-security-policy: [default-src 'none'; style-src 'unsafe-inline'; sandbox]
content-type: [text/plain; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:07:18 GMT']
+ date: ['Fri, 17 Nov 2017 18:21:41 GMT']
etag: ['"d6824855d13e27c5258a680eb60f635d088fd05e"']
- expires: ['Tue, 19 Sep 2017 00:12:18 GMT']
- source-age: ['251']
+ expires: ['Fri, 17 Nov 2017 18:26:41 GMT']
+ source-age: ['129']
strict-transport-security: [max-age=31536000]
vary: ['Authorization,Accept-Encoding']
via: [1.1 varnish]
x-cache: [HIT]
x-cache-hits: ['1']
x-content-type-options: [nosniff]
- x-fastly-request-id: [95322718879e906b8af6e6ecae06afb185159cc5]
+ x-fastly-request-id: [7fa7aa41e4e0f788d528703f56f060bbb8e640cf]
x-frame-options: [deny]
x-geo-block-list: ['']
- x-github-request-id: ['12E0:2F965:374D13E:3B774D5:59C05EBA']
- x-served-by: [cache-sea1031-SEA]
- x-timer: ['S1505779638.491682,VS0,VE1']
+ x-github-request-id: ['E2A4:23634:591192:603618:5A0F2833']
+ x-served-by: [cache-sea1026-SEA]
+ x-timer: ['S1510942902.891875,VS0,VE0']
x-xss-protection: [1; mode=block]
status: {code: 200, message: OK}
- request:
@@ -2769,14 +2786,14 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image2?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image2?api-version=2017-03-30
response:
body: {string: "{\r\n \"properties\": {\r\n \"sourceVirtualMachine\": {\r\n\
\ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sdk-test/providers/Microsoft.Compute/virtualMachines/sdk-test-m\"\
@@ -2791,33 +2808,34 @@ interactions:
\r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\
: \"Standard_LRS\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\"\
: \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.Compute/images\",\r\n \
- \ \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image2\"\
+ \ \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image2\"\
,\r\n \"name\": \"image2\"\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['1352']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:07:17 GMT']
+ date: ['Fri, 17 Nov 2017 18:21:41 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetImages3Min;353,Microsoft.Compute/GetImages30Min;2457']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image2?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image2?api-version=2017-03-30
response:
body: {string: "{\r\n \"properties\": {\r\n \"sourceVirtualMachine\": {\r\n\
\ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sdk-test/providers/Microsoft.Compute/virtualMachines/sdk-test-m\"\
@@ -2832,58 +2850,59 @@ interactions:
\r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\
: \"Standard_LRS\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\"\
: \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.Compute/images\",\r\n \
- \ \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image2\"\
+ \ \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image2\"\
,\r\n \"name\": \"image2\"\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['1352']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:07:19 GMT']
+ date: ['Fri, 17 Nov 2017 18:21:41 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetImages3Min;352,Microsoft.Compute/GetImages30Min;2456']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 networkmanagementclient/1.5.0rc1 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-09-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-09-01
response:
body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vm1VNET\",\r\
- \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET\"\
- ,\r\n \"etag\": \"W/\\\"dd1cd9fd-6eaa-4c87-92a6-81facd4d8349\\\"\",\r\
+ \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/virtualNetworks/vm1VNET\"\
+ ,\r\n \"etag\": \"W/\\\"d67c74c9-10e3-4d51-a237-ff187f3cc494\\\"\",\r\
\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\"\
: \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \
- \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"a7c16b95-67e3-4543-be91-7c135842b658\"\
+ \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"19c216ad-91d3-4f2e-90e7-44ae87af61f3\"\
,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \
\ \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\"\
: [\r\n {\r\n \"name\": \"vm1Subnet\",\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\
- ,\r\n \"etag\": \"W/\\\"dd1cd9fd-6eaa-4c87-92a6-81facd4d8349\\\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\
+ ,\r\n \"etag\": \"W/\\\"d67c74c9-10e3-4d51-a237-ff187f3cc494\\\"\
\",\r\n \"properties\": {\r\n \"provisioningState\"\
: \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n\
\ \"ipConfigurations\": [\r\n {\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\
\r\n },\r\n {\r\n \"id\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/2/networkInterfaces/vmss12605Nic/ipConfigurations/vmss12605IPConfig\"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/vmss1d724Nic/ipConfigurations/vmss1d724IPConfig\"\
\r\n },\r\n {\r\n \"id\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/3/networkInterfaces/vmss12605Nic/ipConfigurations/vmss12605IPConfig\"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/3/networkInterfaces/vmss1d724Nic/ipConfigurations/vmss1d724IPConfig\"\
\r\n },\r\n {\r\n \"id\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic/ipConfigurations/ipconfigvm2\"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic/ipConfigurations/ipconfigvm2\"\
\r\n },\r\n {\r\n \"id\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm3VMNic/ipConfigurations/ipconfigvm3\"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/networkInterfaces/vm3VMNic/ipConfigurations/ipconfigvm3\"\
\r\n }\r\n ]\r\n }\r\n }\r\
\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\
: false,\r\n \"enableVmProtection\": false\r\n }\r\n }\r\n\
@@ -2892,7 +2911,7 @@ interactions:
cache-control: [no-cache]
content-length: ['2972']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:07:18 GMT']
+ date: ['Fri, 17 Nov 2017 18:21:41 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@@ -2901,423 +2920,83 @@ interactions:
vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
- body: 'b''{"properties": {"parameters": {}, "template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
- "outputs": {"VMSS": {"type": "object", "value": "[reference(resourceId(\''Microsoft.Compute/virtualMachineScaleSets\'',
+ body: 'b''{"properties": {"mode": "Incremental", "parameters": {}, "template":
+ {"parameters": {}, "outputs": {"VMSS": {"type": "object", "value": "[reference(resourceId(\''Microsoft.Compute/virtualMachineScaleSets\'',
\''vmss2\''),providers(\''Microsoft.Compute\'', \''virtualMachineScaleSets\'').apiVersions[0])]"}},
- "parameters": {}, "resources": [{"sku": {"name": "Basic"}, "properties": {"publicIPAllocationMethod":
- "Dynamic"}, "type": "Microsoft.Network/publicIPAddresses", "apiVersion": "2017-09-01",
- "name": "vmss2LBPublicIP", "location": "westus", "dependsOn": [], "tags": {}},
- {"sku": {"name": "Basic"}, "properties": {"frontendIPConfigurations": [{"properties":
- {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vmss2LBPublicIP"}},
- "name": "loadBalancerFrontEnd"}], "inboundNatPools": [{"properties": {"backendPort":
- 22, "frontendPortRangeStart": "50000", "frontendPortRangeEnd": "50119", "protocol":
- "tcp", "frontendIPConfiguration": {"id": "[concat(resourceId(\''Microsoft.Network/loadBalancers\'',
- \''vmss2LB\''), \''/frontendIPConfigurations/\'', \''loadBalancerFrontEnd\'')]"}},
- "name": "vmss2LBNatPool"}], "backendAddressPools": [{"name": "vmss2LBBEPool"}]},
- "type": "Microsoft.Network/loadBalancers", "tags": {}, "name": "vmss2LB", "location":
- "westus", "dependsOn": ["Microsoft.Network/publicIpAddresses/vmss2LBPublicIP"],
- "apiVersion": "2017-09-01"}, {"sku": {"tier": "Standard", "name": "Standard_D1_v2",
- "capacity": 2}, "properties": {"upgradePolicy": {"mode": "Manual"}, "virtualMachineProfile":
- {"osProfile": {"adminPassword": "testPassword0", "adminUsername": "sdk-test-admin",
- "computerNamePrefix": "vmss231b6"}, "networkProfile": {"networkInterfaceConfigurations":
- [{"properties": {"primary": "true", "ipConfigurations": [{"properties": {"loadBalancerBackendAddressPools":
- [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss2LB/backendAddressPools/vmss2LBBEPool"}],
- "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},
- "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss2LB/inboundNatPools/vmss2LBNatPool"}]},
- "name": "vmss231b6IPConfig"}]}, "name": "vmss231b6Nic"}]}, "storageProfile":
- {"dataDisks": [{"createOption": "fromImage", "lun": 0, "caching": null, "managedDisk":
- {"storageAccountType": null}}], "imageReference": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image2"},
- "osDisk": {"createOption": "FromImage", "caching": "ReadWrite", "managedDisk":
- {"storageAccountType": null}}}}, "overprovision": true, "singlePlacementGroup":
- true}, "type": "Microsoft.Compute/virtualMachineScaleSets", "tags": {}, "name":
- "vmss2", "location": "westus", "dependsOn": ["Microsoft.Network/loadBalancers/vmss2LB"],
- "apiVersion": "2017-03-30"}], "contentVersion": "1.0.0.0", "variables": {}},
- "mode": "Incremental"}}'''
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Length: ['3558']
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ "resources": [{"tags": {}, "name": "vmss2LBPublicIP", "location": "westus",
+ "apiVersion": "2017-09-01", "type": "Microsoft.Network/publicIPAddresses", "dependsOn":
+ [], "sku": {"name": "Basic"}, "properties": {"publicIPAllocationMethod": "Dynamic"}},
+ {"tags": {}, "name": "vmss2LB", "location": "westus", "apiVersion": "2017-09-01",
+ "type": "Microsoft.Network/loadBalancers", "dependsOn": ["Microsoft.Network/publicIpAddresses/vmss2LBPublicIP"],
+ "sku": {"name": "Basic"}, "properties": {"frontendIPConfigurations": [{"name":
+ "loadBalancerFrontEnd", "properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vmss2LBPublicIP"}}}],
+ "backendAddressPools": [{"name": "vmss2LBBEPool"}], "inboundNatPools": [{"name":
+ "vmss2LBNatPool", "properties": {"frontendPortRangeEnd": "50119", "frontendPortRangeStart":
+ "50000", "backendPort": 22, "protocol": "tcp", "frontendIPConfiguration": {"id":
+ "[concat(resourceId(\''Microsoft.Network/loadBalancers\'', \''vmss2LB\''), \''/frontendIPConfigurations/\'',
+ \''loadBalancerFrontEnd\'')]"}}}]}}, {"tags": {}, "name": "vmss2", "location":
+ "westus", "apiVersion": "2017-03-30", "type": "Microsoft.Compute/virtualMachineScaleSets",
+ "dependsOn": ["Microsoft.Network/loadBalancers/vmss2LB"], "sku": {"name": "Standard_D1_v2",
+ "capacity": 2}, "properties": {"virtualMachineProfile": {"osProfile": {"adminPassword":
+ "testPassword0", "adminUsername": "sdk-test-admin", "computerNamePrefix": "vmss27810"},
+ "networkProfile": {"networkInterfaceConfigurations": [{"name": "vmss27810Nic",
+ "properties": {"primary": "true", "ipConfigurations": [{"name": "vmss27810IPConfig",
+ "properties": {"loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/loadBalancers/vmss2LB/inboundNatPools/vmss2LBNatPool"}],
+ "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/loadBalancers/vmss2LB/backendAddressPools/vmss2LBBEPool"}],
+ "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}}}]}}]},
+ "storageProfile": {"dataDisks": [{"caching": null, "managedDisk": {"storageAccountType":
+ null}, "lun": 0, "createOption": "fromImage"}], "imageReference": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image2"},
+ "osDisk": {"caching": "ReadWrite", "managedDisk": {"storageAccountType": null},
+ "createOption": "FromImage"}}}, "singlePlacementGroup": true, "overprovision":
+ true, "upgradePolicy": {"mode": "Manual"}}}], "variables": {}, "contentVersion":
+ "1.0.0.0", "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#"}}}'''
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Length: ['3538']
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vmss_deploy_Yl12HLcFWuZ657BG4dFEctiZTiXRV0ad","name":"vmss_deploy_Yl12HLcFWuZ657BG4dFEctiZTiXRV0ad","properties":{"templateHash":"6692892967664589253","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-09-19T00:07:20.7812245Z","duration":"PT0.5444623S","correlationId":"c2b32ec9-1e30-41f4-8345-67b53503af0f","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vmss2LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss2LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss2LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss2LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss2LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss2LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss2"}]}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/vmss_deploy_eRl8BsUFfOXEHF35ftGLIdmHEBuFF2F1","name":"vmss_deploy_eRl8BsUFfOXEHF35ftGLIdmHEBuFF2F1","properties":{"templateHash":"9340997869194260327","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-11-17T18:21:44.6340553Z","duration":"PT0.5835898S","correlationId":"4f1594ce-c5e9-4c7e-bc00-d2efb2d4d357","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vmss2LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss2LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/loadBalancers/vmss2LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss2LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/loadBalancers/vmss2LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss2LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss2"}]}}'}
headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vmss_deploy_Yl12HLcFWuZ657BG4dFEctiZTiXRV0ad/operationStatuses/08586958272452408639?api-version=2017-05-10']
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/vmss_deploy_eRl8BsUFfOXEHF35ftGLIdmHEBuFF2F1/operationStatuses/08586906639814271582?api-version=2017-05-10']
cache-control: [no-cache]
content-length: ['2025']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:07:20 GMT']
+ date: ['Fri, 17 Nov 2017 18:21:44 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1191']
+ x-ms-ratelimit-remaining-subscription-writes: ['1196']
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958272452408639?api-version=2017-05-10
- response:
- body: {string: '{"status":"Running"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['20']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:07:50 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958272452408639?api-version=2017-05-10
- response:
- body: {string: '{"status":"Running"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['20']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:08:21 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958272452408639?api-version=2017-05-10
- response:
- body: {string: '{"status":"Running"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['20']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:08:51 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958272452408639?api-version=2017-05-10
- response:
- body: {string: '{"status":"Running"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['20']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:09:22 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958272452408639?api-version=2017-05-10
- response:
- body: {string: '{"status":"Running"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['20']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:09:53 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958272452408639?api-version=2017-05-10
- response:
- body: {string: '{"status":"Running"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['20']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:10:23 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958272452408639?api-version=2017-05-10
- response:
- body: {string: '{"status":"Running"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['20']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:10:53 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958272452408639?api-version=2017-05-10
- response:
- body: {string: '{"status":"Running"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['20']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:11:23 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958272452408639?api-version=2017-05-10
- response:
- body: {string: '{"status":"Running"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['20']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:11:53 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958272452408639?api-version=2017-05-10
- response:
- body: {string: '{"status":"Running"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['20']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:12:23 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958272452408639?api-version=2017-05-10
- response:
- body: {string: '{"status":"Running"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['20']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:12:54 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958272452408639?api-version=2017-05-10
- response:
- body: {string: '{"status":"Running"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['20']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:13:23 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958272452408639?api-version=2017-05-10
- response:
- body: {string: '{"status":"Running"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['20']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:13:54 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958272452408639?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906639814271582?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:14:25 GMT']
+ date: ['Fri, 17 Nov 2017 18:22:15 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -3328,22 +3007,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958272452408639?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906639814271582?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:15:10 GMT']
+ date: ['Fri, 17 Nov 2017 18:22:44 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -3354,22 +3033,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958272452408639?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906639814271582?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:15:40 GMT']
+ date: ['Fri, 17 Nov 2017 18:23:16 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -3380,126 +3059,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958272452408639?api-version=2017-05-10
- response:
- body: {string: '{"status":"Running"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['20']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:16:11 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958272452408639?api-version=2017-05-10
- response:
- body: {string: '{"status":"Running"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['20']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:16:41 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958272452408639?api-version=2017-05-10
- response:
- body: {string: '{"status":"Running"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['20']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:17:11 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958272452408639?api-version=2017-05-10
- response:
- body: {string: '{"status":"Running"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['20']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:17:41 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958272452408639?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906639814271582?api-version=2017-05-10
response:
body: {string: '{"status":"Succeeded"}'}
headers:
cache-control: [no-cache]
content-length: ['22']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:18:11 GMT']
+ date: ['Fri, 17 Nov 2017 18:23:47 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -3510,22 +3085,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vmss_deploy_Yl12HLcFWuZ657BG4dFEctiZTiXRV0ad","name":"vmss_deploy_Yl12HLcFWuZ657BG4dFEctiZTiXRV0ad","properties":{"templateHash":"6692892967664589253","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-09-19T00:17:47.8346879Z","duration":"PT10M27.5979257S","correlationId":"c2b32ec9-1e30-41f4-8345-67b53503af0f","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vmss2LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss2LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss2LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss2LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss2LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss2LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss2"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual"},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmss231b6","adminUsername":"sdk-test-admin","linuxConfiguration":{"disablePasswordAuthentication":false},"secrets":[]},"storageProfile":{"osDisk":{"createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Standard_LRS"},"diskSizeGB":31},"imageReference":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/image2"},"dataDisks":[{"lun":0,"createOption":"FromImage","caching":"None","managedDisk":{"storageAccountType":"Standard_LRS"},"diskSizeGB":1}]},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vmss231b6Nic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"ipConfigurations":[{"name":"vmss231b6IPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss2LB/backendAddressPools/vmss2LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss2LB/inboundNatPools/vmss2LBNatPool"}]}}]}}]}},"provisioningState":"Succeeded","overprovision":true,"uniqueId":"4c0435f2-b3a2-4fac-a47d-72c1015725da"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss2LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vmss2LBPublicIP"}]}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Resources/deployments/vmss_deploy_eRl8BsUFfOXEHF35ftGLIdmHEBuFF2F1","name":"vmss_deploy_eRl8BsUFfOXEHF35ftGLIdmHEBuFF2F1","properties":{"templateHash":"9340997869194260327","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-11-17T18:23:45.1351819Z","duration":"PT2M1.0847164S","correlationId":"4f1594ce-c5e9-4c7e-bc00-d2efb2d4d357","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vmss2LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss2LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/loadBalancers/vmss2LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss2LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/loadBalancers/vmss2LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss2LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss2"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual","automaticOSUpgrade":false},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmss27810","adminUsername":"sdk-test-admin","linuxConfiguration":{"disablePasswordAuthentication":false},"secrets":[]},"storageProfile":{"osDisk":{"createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Standard_LRS"},"diskSizeGB":31},"imageReference":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/images/image2"},"dataDisks":[{"lun":0,"createOption":"FromImage","caching":"None","managedDisk":{"storageAccountType":"Standard_LRS"},"diskSizeGB":1}]},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vmss27810Nic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"ipConfigurations":[{"name":"vmss27810IPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/loadBalancers/vmss2LB/backendAddressPools/vmss2LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/loadBalancers/vmss2LB/inboundNatPools/vmss2LBNatPool"}]}}]}}]}},"provisioningState":"Succeeded","overprovision":true,"uniqueId":"17814eeb-db4f-4024-99e4-bc0fec02dcc7"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/loadBalancers/vmss2LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_custom_image000001/providers/Microsoft.Network/publicIPAddresses/vmss2LBPublicIP"}]}}'}
headers:
cache-control: [no-cache]
- content-length: ['4603']
+ content-length: ['4628']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 00:18:12 GMT']
+ date: ['Fri, 17 Nov 2017 18:23:49 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -3536,26 +3111,26 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [group delete]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
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
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_custom_image000001?api-version=2017-05-10
response:
body: {string: ''}
headers:
cache-control: [no-cache]
content-length: ['0']
- date: ['Tue, 19 Sep 2017 00:18:13 GMT']
+ date: ['Fri, 17 Nov 2017 18:23:50 GMT']
expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdJNUdKVUFKTEhEMko0NjJNMjJFTTZUWTNJMlUyR01VSFVCSHw5RDcyMDlDRDRFOENDNUUwLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10']
+ location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGVk06NUZDVVNUT006NUZJTUFHRUlWNUtYSlFYWUY1N002UHw2REVDOTkxN0I1MEM2MDRBLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1194']
+ x-ms-ratelimit-remaining-subscription-writes: ['1196']
status: {code: 202, message: Accepted}
version: 1
diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_custom_image_with_plan.yaml b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_custom_image_with_plan.yaml
index 5c3bbbb07c1..f1ad305adf2 100644
--- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_custom_image_with_plan.yaml
+++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_custom_image_with_plan.yaml
@@ -1,14 +1,14 @@
interactions:
- request:
- body: '{"location": "westus", "tags": {"use": "az-test"}}'
+ body: '{"tags": {"use": "az-test"}, "location": "westus"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [group create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Length: ['50']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.10586-SP0) requests/2.18.4 msrest/0.4.18
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
AZURECLI/2.0.21]
accept-language: [en-US]
@@ -20,21 +20,21 @@ interactions:
cache-control: [no-cache]
content-length: ['328']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 30 Oct 2017 16:32:20 GMT']
+ date: ['Fri, 17 Nov 2017 18:23:53 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1193']
+ x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.10586-SP0) requests/2.18.4 msrest/0.4.18
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
AZURECLI/2.0.21]
accept-language: [en-US]
@@ -46,7 +46,7 @@ interactions:
cache-control: [no-cache]
content-length: ['328']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 30 Oct 2017 16:32:21 GMT']
+ date: ['Fri, 17 Nov 2017 18:23:53 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -104,22 +104,22 @@ interactions:
content-length: ['2235']
content-security-policy: [default-src 'none'; style-src 'unsafe-inline'; sandbox]
content-type: [text/plain; charset=utf-8]
- date: ['Mon, 30 Oct 2017 16:32:23 GMT']
+ date: ['Fri, 17 Nov 2017 18:23:54 GMT']
etag: ['"d6824855d13e27c5258a680eb60f635d088fd05e"']
- expires: ['Mon, 30 Oct 2017 16:37:23 GMT']
- source-age: ['0']
+ expires: ['Fri, 17 Nov 2017 18:28:54 GMT']
+ source-age: ['130']
strict-transport-security: [max-age=31536000]
vary: ['Authorization,Accept-Encoding']
via: [1.1 varnish]
- x-cache: [MISS]
- x-cache-hits: ['0']
+ x-cache: [HIT]
+ x-cache-hits: ['1']
x-content-type-options: [nosniff]
- x-fastly-request-id: [9a143ad0eb2edf54dd5c4d53ef57f0d61e5275e7]
+ x-fastly-request-id: [953a521d7d4b3eac24c8022b1a9b642c573b001b]
x-frame-options: [deny]
x-geo-block-list: ['']
- x-github-request-id: ['6666:2F965:B4D5E4C:C23A518:59F75416']
- x-served-by: [cache-sea1050-SEA]
- x-timer: ['S1509381143.450056,VS0,VE28']
+ x-github-request-id: ['FA02:22BFE:419C2C:463699:5A0F28B6']
+ x-served-by: [cache-mdw17341-MDW]
+ x-timer: ['S1510943034.042766,VS0,VE1']
x-xss-protection: [1; mode=block]
status: {code: 200, message: OK}
- request:
@@ -127,10 +127,10 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.10586-SP0) requests/2.18.4 msrest/0.4.18
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
@@ -155,23 +155,24 @@ interactions:
cache-control: [no-cache]
content-length: ['1355']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 30 Oct 2017 16:32:23 GMT']
+ date: ['Fri, 17 Nov 2017 18:23:54 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetImages3Min;348,Microsoft.Compute/GetImages30Min;2447']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.10586-SP0) requests/2.18.4 msrest/0.4.18
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
AZURECLI/2.0.21]
accept-language: [en-US]
@@ -183,94 +184,98 @@ interactions:
cache-control: [no-cache]
content-length: ['12']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 30 Oct 2017 16:32:24 GMT']
+ date: ['Fri, 17 Nov 2017 18:23:54 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
- body: 'b''{"properties": {"parameters": {}, "template": {"resources": [{"location":
- "westus", "tags": {}, "type": "Microsoft.Network/virtualNetworks", "name": "vm1VNET",
- "dependsOn": [], "apiVersion": "2015-06-15", "properties": {"addressSpace":
- {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": [{"properties": {"addressPrefix":
- "10.0.0.0/24"}, "name": "vm1Subnet"}]}}, {"location": "westus", "tags": {},
- "type": "Microsoft.Network/networkSecurityGroups", "name": "vm1NSG", "dependsOn":
- [], "apiVersion": "2015-06-15", "properties": {"securityRules": [{"properties":
- {"destinationAddressPrefix": "*", "destinationPortRange": "22", "sourceAddressPrefix":
- "*", "protocol": "Tcp", "priority": 1000, "direction": "Inbound", "access":
- "Allow", "sourcePortRange": "*"}, "name": "default-allow-ssh"}]}}, {"location":
- "westus", "tags": {}, "type": "Microsoft.Network/publicIPAddresses", "name":
- "vm1PublicIP", "dependsOn": [], "apiVersion": "2017-09-01", "properties": {"publicIPAllocationMethod":
- "dynamic"}}, {"location": "westus", "tags": {}, "type": "Microsoft.Network/networkInterfaces",
- "name": "vm1VMNic", "dependsOn": ["Microsoft.Network/virtualNetworks/vm1VNET",
- "Microsoft.Network/networkSecurityGroups/vm1NSG", "Microsoft.Network/publicIpAddresses/vm1PublicIP"],
- "apiVersion": "2015-06-15", "properties": {"networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG"},
- "ipConfigurations": [{"properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP"},
+ body: 'b''{"properties": {"mode": "Incremental", "parameters": {}, "template":
+ {"parameters": {}, "outputs": {}, "resources": [{"tags": {}, "name": "vm1VNET",
+ "location": "westus", "apiVersion": "2015-06-15", "type": "Microsoft.Network/virtualNetworks",
+ "dependsOn": [], "properties": {"subnets": [{"name": "vm1Subnet", "properties":
+ {"addressPrefix": "10.0.0.0/24"}}], "addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}}},
+ {"tags": {}, "name": "vm1NSG", "location": "westus", "apiVersion": "2015-06-15",
+ "type": "Microsoft.Network/networkSecurityGroups", "dependsOn": [], "properties":
+ {"securityRules": [{"name": "default-allow-ssh", "properties": {"destinationPortRange":
+ "22", "access": "Allow", "protocol": "Tcp", "destinationAddressPrefix": "*",
+ "sourceAddressPrefix": "*", "direction": "Inbound", "sourcePortRange": "*",
+ "priority": 1000}}]}}, {"tags": {}, "name": "vm1PublicIP", "location": "westus",
+ "apiVersion": "2017-09-01", "type": "Microsoft.Network/publicIPAddresses", "dependsOn":
+ [], "properties": {"publicIPAllocationMethod": "dynamic"}}, {"tags": {}, "name":
+ "vm1VMNic", "location": "westus", "apiVersion": "2015-06-15", "type": "Microsoft.Network/networkInterfaces",
+ "dependsOn": ["Microsoft.Network/virtualNetworks/vm1VNET", "Microsoft.Network/networkSecurityGroups/vm1NSG",
+ "Microsoft.Network/publicIpAddresses/vm1PublicIP"], "properties": {"ipConfigurations":
+ [{"name": "ipconfigvm1", "properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP"},
"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},
- "privateIPAllocationMethod": "Dynamic"}, "name": "ipconfigvm1"}]}}, {"location":
- "westus", "tags": {}, "plan": {"publisher": "microsoft-ads", "promotionCode":
- "99percentoff", "product": "linux-data-science-vm-ubuntu", "name": "linuxdsvmubuntu"},
- "type": "Microsoft.Compute/virtualMachines", "name": "vm1", "dependsOn": ["Microsoft.Network/networkInterfaces/vm1VMNic"],
- "apiVersion": "2017-03-30", "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"},
- "storageProfile": {"dataDisks": [{"caching": null, "createOption": "fromImage",
- "managedDisk": {"storageAccountType": null}, "lun": 0}], "osDisk": {"caching":
- null, "createOption": "fromImage", "managedDisk": {"storageAccountType": null},
- "name": null}, "imageReference": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sdk-test/providers/Microsoft.Compute/images/custom-image-with-plan"}},
- "networkProfile": {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"}]},
- "osProfile": {"computerName": "vm1", "adminUsername": "yugangw2", "linuxConfiguration":
- {"ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6ynxWeY589bvuJVjtobA+qIlWQwycoeRTYNyEUssLQdCWq7YRUxBhXZzf8O8qe8vz8JsxIgX2ynyn9mxNGAi16gDpkjM9jZ7ATfS4fnuugtx3khjbCOBUJ2A/5GcAwErCZwJ8aaRmuLaG26h9JJaP+amPCty6qXo3i6wnoE3PGy6UyDMr4mdPMT3K1IeWr71GiZ7lTEaBCDclFA628QE4VT0fuGcG/qnm6Q0cLZsyARtYCnTRZGyA+4aWTn/jDBlQY0cgH67nTtimUjkiS67Gd64xA/lri0ybb+ZzwGOxU3QysoYGvDl2TatYHjacS8h1la8qHVTe00Nj7K/NC/z3Q==
- yugangw2@YUGANGLP2\\n", "path": "/home/yugangw2/.ssh/authorized_keys"}]}, "disablePasswordAuthentication":
- true}}}}], "variables": {}, "outputs": {}, "parameters": {}, "contentVersion":
- "1.0.0.0", "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#"},
- "mode": "Incremental"}}'''
+ "privateIPAllocationMethod": "Dynamic"}}], "networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG"}}},
+ {"tags": {}, "name": "vm1", "location": "westus", "plan": {"name": "linuxdsvmubuntu",
+ "product": "linux-data-science-vm-ubuntu", "publisher": "microsoft-ads", "promotionCode":
+ "99percentoff"}, "apiVersion": "2017-03-30", "type": "Microsoft.Compute/virtualMachines",
+ "dependsOn": ["Microsoft.Network/networkInterfaces/vm1VMNic"], "properties":
+ {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "networkProfile": {"networkInterfaces":
+ [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"}]},
+ "storageProfile": {"dataDisks": [{"caching": null, "managedDisk": {"storageAccountType":
+ null}, "lun": 0, "createOption": "fromImage"}], "imageReference": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sdk-test/providers/Microsoft.Compute/images/custom-image-with-plan"},
+ "osDisk": {"caching": "ReadWrite", "name": null, "managedDisk": {"storageAccountType":
+ null}, "createOption": "fromImage"}}, "osProfile": {"linuxConfiguration": {"ssh":
+ {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDLkUy/BFb7o47gQqFcMiioYD4w3Tu/7bpy7t/3pQVhjmsEEaWk09dA1Ju1UbukKaLpOprch/r9bgUWu1oTEP7E5evwaJl0TvLX0gsxGGItfPc58bbQ77uxuXhMfYEZ6oiS+Ybt5nUjjDUUNhSIrKSLhCHCmQ9JnOd/AObf9G4iR38bsABIAVxmbYT6OQKm4oRwNs1c99B5TsfnREFs7yawCV3hjKVHsD3bRo83bBbBG3d/CHYfcnEbpK4weagw899YodAXDiUh0qYfOy0mGz4zWaQ4rcCitk9od/WSDhLAOy74cqwzKJwoR9DcALxkWVMuJW7xBF9tWEroVvFrh6/N",
+ "path": "/home/trpresco/.ssh/authorized_keys"}]}, "disablePasswordAuthentication":
+ true}, "adminUsername": "trpresco", "computerName": "vm1"}}}], "variables":
+ {}, "contentVersion": "1.0.0.0", "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#"}}}'''
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
- Content-Length: ['3988']
+ Content-Length: ['3974']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.10586-SP0) requests/2.18.4 msrest/0.4.18
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
AZURECLI/2.0.21]
accept-language: [en-US]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_WRfhTJJmxY2CQoiBnLoImDAVX2IxS2jR","name":"vm_deploy_WRfhTJJmxY2CQoiBnLoImDAVX2IxS2jR","properties":{"templateHash":"11745114213942543848","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-10-30T16:32:32.9187429Z","duration":"PT7.2413839S","correlationId":"4e39a262-3d75-4487-ad90-8fa1d2b1fcbd","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}]}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_23huUSddlHrkkugwSfGuCEVqEggZBKlF","name":"vm_deploy_23huUSddlHrkkugwSfGuCEVqEggZBKlF","properties":{"templateHash":"7276808235874451","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-11-17T18:23:58.6580265Z","duration":"PT2.0543488S","correlationId":"59ca6808-9c55-49c2-8773-02c9e1326e5d","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}]}}'}
headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_WRfhTJJmxY2CQoiBnLoImDAVX2IxS2jR/operationStatuses/08586922257398002696?api-version=2017-05-10']
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_23huUSddlHrkkugwSfGuCEVqEggZBKlF/operationStatuses/08586906638488739553?api-version=2017-05-10']
cache-control: [no-cache]
- content-length: ['2702']
+ content-length: ['2698']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 30 Oct 2017 16:32:32 GMT']
+ date: ['Fri, 17 Nov 2017 18:23:58 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1184']
+ x-ms-ratelimit-remaining-subscription-writes: ['1197']
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.10586-SP0) requests/2.18.4 msrest/0.4.18
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586922257398002696?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906638488739553?api-version=2017-05-10
response:
- body: {string: '{"status":"Running"}'}
+ body: {string: '{"status":"Failed","error":{"code":"DeploymentFailed","message":"At
+ least one resource deployment operation failed. Please list deployment operations
+ for details. Please see https://aka.ms/arm-debug for usage details.","details":[{"code":"BadRequest","message":"{\r\n \"error\":
+ {\r\n \"code\": \"ResourcePurchaseValidationFailed\",\r\n \"message\":
+ \"User failed validation to purchase resources. Error message: ''{\\\"ErrorDescription\\\":\\\"Promotion
+ code ''99percentoff'' is not valid.\\\",\\\"CultureInvariantErrorCode\\\":\\\"BadRequest\\\",\\\"ActivityId\\\":\\\"d750ddd9-eb3e-4e99-8702-1431cf73ca0a\\\"}''\"\r\n }\r\n}"}]}}'}
headers:
cache-control: [no-cache]
- content-length: ['20']
+ content-length: ['636']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 30 Oct 2017 16:33:02 GMT']
+ date: ['Fri, 17 Nov 2017 18:24:28 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -281,338 +286,11 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.10586-SP0) requests/2.18.4 msrest/0.4.18
- msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
- AZURECLI/2.0.21]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586922257398002696?api-version=2017-05-10
- response:
- body: {string: '{"status":"Running"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['20']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 30 Oct 2017 16:33:33 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.10586-SP0) requests/2.18.4 msrest/0.4.18
- msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
- AZURECLI/2.0.21]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586922257398002696?api-version=2017-05-10
- response:
- body: {string: '{"status":"Running"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['20']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 30 Oct 2017 16:34:03 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.10586-SP0) requests/2.18.4 msrest/0.4.18
- msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
- AZURECLI/2.0.21]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586922257398002696?api-version=2017-05-10
- response:
- body: {string: '{"status":"Succeeded"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['22']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 30 Oct 2017 16:34:34 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.10586-SP0) requests/2.18.4 msrest/0.4.18
- msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
- AZURECLI/2.0.21]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_WRfhTJJmxY2CQoiBnLoImDAVX2IxS2jR","name":"vm_deploy_WRfhTJJmxY2CQoiBnLoImDAVX2IxS2jR","properties":{"templateHash":"11745114213942543848","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-10-30T16:34:15.034352Z","duration":"PT1M49.356993S","correlationId":"4e39a262-3d75-4487-ad90-8fa1d2b1fcbd","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET"}]}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['3767']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 30 Oct 2017 16:34:34 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.10586-SP0) requests/2.18.4 msrest/0.4.18
- msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2017-03-30
- response:
- body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"806cbfc5-14e5-4a9f-9e30-9dd4e03bff81\"\
- ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\
- \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sdk-test/providers/Microsoft.Compute/images/custom-image-with-plan\"\
- \r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n\
- \ \"name\": \"vm1_disk1_119ffbc4fe3943759697e18489f120bd\",\r\n \
- \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\
- ,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\
- ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_disk1_119ffbc4fe3943759697e18489f120bd\"\
- \r\n },\r\n \"diskSizeGB\": 50\r\n },\r\n \"dataDisks\"\
- : [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"vm1_disk2_19b8ee5cd62e45b3a451383dfea11723\"\
- ,\r\n \"createOption\": \"FromImage\",\r\n \"caching\":\
- \ \"None\",\r\n \"managedDisk\": {\r\n \"storageAccountType\"\
- : \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_disk2_19b8ee5cd62e45b3a451383dfea11723\"\
- \r\n },\r\n \"diskSizeGB\": 50\r\n }\r\n ]\r\
- \n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\",\r\n \
- \ \"adminUsername\": \"yugangw2\",\r\n \"linuxConfiguration\": {\r\
- \n \"disablePasswordAuthentication\": true,\r\n \"ssh\": {\r\
- \n \"publicKeys\": [\r\n {\r\n \"path\":\
- \ \"/home/yugangw2/.ssh/authorized_keys\",\r\n \"keyData\": \"\
- ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6ynxWeY589bvuJVjtobA+qIlWQwycoeRTYNyEUssLQdCWq7YRUxBhXZzf8O8qe8vz8JsxIgX2ynyn9mxNGAi16gDpkjM9jZ7ATfS4fnuugtx3khjbCOBUJ2A/5GcAwErCZwJ8aaRmuLaG26h9JJaP+amPCty6qXo3i6wnoE3PGy6UyDMr4mdPMT3K1IeWr71GiZ7lTEaBCDclFA628QE4VT0fuGcG/qnm6Q0cLZsyARtYCnTRZGyA+4aWTn/jDBlQY0cgH67nTtimUjkiS67Gd64xA/lri0ybb+ZzwGOxU3QysoYGvDl2TatYHjacS8h1la8qHVTe00Nj7K/NC/z3Q==\
- \ yugangw2@YUGANGLP2\\n\"\r\n }\r\n ]\r\n }\r\n\
- \ },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\
- networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\
- }]},\r\n \"provisioningState\": \"Succeeded\",\r\n \"instanceView\"\
- : {\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.2.18\",\r\n\
- \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\
- ,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"\
- Ready\",\r\n \"message\": \"Guest Agent is running\",\r\n \
- \ \"time\": \"2017-10-30T16:34:32+00:00\"\r\n }\r\n \
- \ ],\r\n \"extensionHandlers\": []\r\n },\r\n \"disks\":\
- \ [\r\n {\r\n \"name\": \"vm1_disk1_119ffbc4fe3943759697e18489f120bd\"\
- ,\r\n \"statuses\": [\r\n {\r\n \"code\"\
- : \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\
- \n \"displayStatus\": \"Provisioning succeeded\",\r\n \
- \ \"time\": \"2017-10-30T16:32:49.3850556+00:00\"\r\n }\r\
- \n ]\r\n },\r\n {\r\n \"name\": \"vm1_disk2_19b8ee5cd62e45b3a451383dfea11723\"\
- ,\r\n \"statuses\": [\r\n {\r\n \"code\"\
- : \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\
- \n \"displayStatus\": \"Provisioning succeeded\",\r\n \
- \ \"time\": \"2017-10-30T16:32:49.3850556+00:00\"\r\n }\r\
- \n ]\r\n }\r\n ],\r\n \"statuses\": [\r\n \
- \ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \
- \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\"\
- ,\r\n \"time\": \"2017-10-30T16:34:09.5430958+00:00\"\r\n \
- \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \
- \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\
- \n }\r\n ]\r\n }\r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachines\"\
- ,\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"plan\": {\r\n \
- \ \"name\": \"linuxdsvmubuntu\",\r\n \"publisher\": \"microsoft-ads\"\
- ,\r\n \"product\": \"linux-data-science-vm-ubuntu\",\r\n \"promotionCode\"\
- : \"99percentoff\"\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\"\
- ,\r\n \"name\": \"vm1\"\r\n}"}
- headers:
- cache-control: [no-cache]
- content-length: ['4582']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 30 Oct 2017 16:34:35 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.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']
- CommandName: [vm create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.10586-SP0) requests/2.18.4 msrest/0.4.18
- msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
- AZURECLI/2.0.21]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic?api-version=2017-09-01
- response:
- body: {string: "{\r\n \"name\": \"vm1VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\
- ,\r\n \"etag\": \"W/\\\"9d8cb599-c566-4039-9dcb-16e3ee606b9c\\\"\",\r\n \
- \ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n\
- \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"6c4ea4ab-c6d9-4ef1-bb6c-254d396d3ea7\"\
- ,\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm1\"\
- ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\
- ,\r\n \"etag\": \"W/\\\"9d8cb599-c566-4039-9dcb-16e3ee606b9c\\\"\"\
- ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\
- ,\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\"\
- : \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\":\
- \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP\"\
- \r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\
- \r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\"\
- : \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n\
- \ \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"\
- internalDomainNameSuffix\": \"4vcdkuu4efoe1iotjnfbh1dbxb.dx.internal.cloudapp.net\"\
- \r\n },\r\n \"macAddress\": \"00-0D-3A-30-BD-3E\",\r\n \"enableAcceleratedNetworking\"\
- : false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\"\
- : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG\"\
- \r\n },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\"\
- \r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\
- \n}"}
- headers:
- cache-control: [no-cache]
- content-length: ['2495']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 30 Oct 2017 16:34:35 GMT']
- etag: [W/"9d8cb599-c566-4039-9dcb-16e3ee606b9c"]
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.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']
- CommandName: [vm create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.10586-SP0) requests/2.18.4 msrest/0.4.18
- msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
- AZURECLI/2.0.21]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP?api-version=2017-09-01
- response:
- body: {string: "{\r\n \"name\": \"vm1PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP\"\
- ,\r\n \"etag\": \"W/\\\"4177947a-78c2-4a16-b059-681e968ce482\\\"\",\r\n \
- \ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n\
- \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"f7d3326a-1b5d-4772-9984-d3628fbda01d\"\
- ,\r\n \"ipAddress\": \"13.64.73.120\",\r\n \"publicIPAddressVersion\"\
- : \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\"\
- : 4,\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\
- \r\n }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\
- \n \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"}
- headers:
- cache-control: [no-cache]
- content-length: ['977']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 30 Oct 2017 16:34:36 GMT']
- etag: [W/"4177947a-78c2-4a16-b059-681e968ce482"]
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.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']
- CommandName: [vm show]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.10586-SP0) requests/2.18.4 msrest/0.4.18
- msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2017-03-30
- response:
- body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"806cbfc5-14e5-4a9f-9e30-9dd4e03bff81\"\
- ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\
- \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sdk-test/providers/Microsoft.Compute/images/custom-image-with-plan\"\
- \r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n\
- \ \"name\": \"vm1_disk1_119ffbc4fe3943759697e18489f120bd\",\r\n \
- \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\
- ,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\
- ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_disk1_119ffbc4fe3943759697e18489f120bd\"\
- \r\n },\r\n \"diskSizeGB\": 50\r\n },\r\n \"dataDisks\"\
- : [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"vm1_disk2_19b8ee5cd62e45b3a451383dfea11723\"\
- ,\r\n \"createOption\": \"FromImage\",\r\n \"caching\":\
- \ \"None\",\r\n \"managedDisk\": {\r\n \"storageAccountType\"\
- : \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_disk2_19b8ee5cd62e45b3a451383dfea11723\"\
- \r\n },\r\n \"diskSizeGB\": 50\r\n }\r\n ]\r\
- \n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\",\r\n \
- \ \"adminUsername\": \"yugangw2\",\r\n \"linuxConfiguration\": {\r\
- \n \"disablePasswordAuthentication\": true,\r\n \"ssh\": {\r\
- \n \"publicKeys\": [\r\n {\r\n \"path\":\
- \ \"/home/yugangw2/.ssh/authorized_keys\",\r\n \"keyData\": \"\
- ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6ynxWeY589bvuJVjtobA+qIlWQwycoeRTYNyEUssLQdCWq7YRUxBhXZzf8O8qe8vz8JsxIgX2ynyn9mxNGAi16gDpkjM9jZ7ATfS4fnuugtx3khjbCOBUJ2A/5GcAwErCZwJ8aaRmuLaG26h9JJaP+amPCty6qXo3i6wnoE3PGy6UyDMr4mdPMT3K1IeWr71GiZ7lTEaBCDclFA628QE4VT0fuGcG/qnm6Q0cLZsyARtYCnTRZGyA+4aWTn/jDBlQY0cgH67nTtimUjkiS67Gd64xA/lri0ybb+ZzwGOxU3QysoYGvDl2TatYHjacS8h1la8qHVTe00Nj7K/NC/z3Q==\
- \ yugangw2@YUGANGLP2\\n\"\r\n }\r\n ]\r\n }\r\n\
- \ },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"\
- networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\
- }]},\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"\
- Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n \"\
- tags\": {},\r\n \"plan\": {\r\n \"name\": \"linuxdsvmubuntu\",\r\n \
- \ \"publisher\": \"microsoft-ads\",\r\n \"product\": \"linux-data-science-vm-ubuntu\"\
- ,\r\n \"promotionCode\": \"99percentoff\"\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\"\
- ,\r\n \"name\": \"vm1\"\r\n}"}
- headers:
- cache-control: [no-cache]
- content-length: ['3053']
- content-type: [application/json; charset=utf-8]
- date: ['Mon, 30 Oct 2017 16:34:36 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.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']
- CommandName: [group delete]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.10586-SP0) requests/2.18.4 msrest/0.4.18
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
AZURECLI/2.0.21]
accept-language: [en-US]
@@ -623,11 +301,11 @@ interactions:
headers:
cache-control: [no-cache]
content-length: ['0']
- date: ['Mon, 30 Oct 2017 16:34:39 GMT']
+ date: ['Fri, 17 Nov 2017 18:24:30 GMT']
expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdBMlFZQVoyVURGRkdPQ0VTUUVYU1FZNlU0NFBMN0VMQk01UHxBMjA4RkQ3MjU1MUU4NDVDLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10']
+ location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkc3SlNMWlFMQUM1RkNFUVRHT1hBQVlZUUFESFVSSU9RWUxHQXw4RTU4QzhCRkU2QThFQjM5LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1196']
+ x-ms-ratelimit-remaining-subscription-writes: ['1197']
status: {code: 202, message: Accepted}
version: 1
diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_diagnostics_extension_install.yaml b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_diagnostics_extension_install.yaml
index e8c95d3651d..200c32730a6 100644
--- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_diagnostics_extension_install.yaml
+++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_diagnostics_extension_install.yaml
@@ -1,1762 +1,3958 @@
interactions:
+- request:
+ body: '{"location": "westus", "tags": {"use": "az-test"}}'
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Length: ['50']
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_vmss_diagnostics_extension000001?api-version=2017-05-10
+ response:
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001","name":"cli_test_vm_vmss_diagnostics_extension000001","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: ['Thu, 16 Nov 2017 00:21:33 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: '{"sku": {"name": "Standard_LRS"}, "location": "westus", "kind": "Storage",
+ "properties": {"supportsHttpsTrafficOnly": false}}'
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Length: ['125']
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 storagemanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Storage/storageAccounts/clitest000002?api-version=2017-06-01
+ response:
+ body: {string: ''}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['0']
+ date: ['Thu, 16 Nov 2017 00:21:44 GMT']
+ expires: ['-1']
+ location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westus/asyncoperations/d09c1426-ca00-4a40-a531-6fba565ce185?monitor=true&api-version=2017-06-01']
+ 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: ['1198']
+ status: {code: 202, message: Accepted}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/3.0.0rc1 Azure-SDK-For-Python
- AZURECLI/TEST/2.0.17+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 storagemanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [ac6dc470-a533-11e7-877e-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westus/asyncoperations/d09c1426-ca00-4a40-a531-6fba565ce185?monitor=true&api-version=2017-06-01
response:
- body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\":
- \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\":
- true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\",\r\n \"automaticOSUpgrade\":
- false\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\":
- {\r\n \"computerNamePrefix\": \"testd4a52\",\r\n \"adminUsername\":
- \"user11\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\":
- false\r\n },\r\n \"secrets\": []\r\n },\r\n \"storageProfile\":
- {\r\n \"osDisk\": {\r\n \"createOption\": \"FromImage\",\r\n
- \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n
- \ \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n },\r\n
- \ \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n
- \ \"offer\": \"UbuntuServer\",\r\n \"sku\": \"16.04-LTS\",\r\n
- \ \"version\": \"latest\"\r\n }\r\n },\r\n \"networkProfile\":
- {\"networkInterfaceConfigurations\":[{\"name\":\"testd4a52Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"ipConfigurations\":[{\"name\":\"testd4a52IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Network/virtualNetworks/testdiagvmssVNET/subnets/testdiagvmssSubnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/backendAddressPools/testdiagvmssLBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/inboundNatPools/testdiagvmssLBNatPool\"}]}}]}}]}\r\n
- \ },\r\n \"provisioningState\": \"Succeeded\",\r\n \"overprovision\":
- true,\r\n \"uniqueId\": \"1ccfe592-bd33-4939-b208-fbc435404627\"\r\n },\r\n
- \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\":
- \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss\",\r\n
- \ \"name\": \"testdiagvmss\"\r\n}"}
- headers:
- Cache-Control: [no-cache]
+ body: {string: ''}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['0']
+ date: ['Thu, 16 Nov 2017 00:22:01 GMT']
+ expires: ['-1']
+ location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westus/asyncoperations/d09c1426-ca00-4a40-a531-6fba565ce185?monitor=true&api-version=2017-06-01']
+ pragma: [no-cache]
+ 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: [unknown]
+ Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- Date: ['Fri, 29 Sep 2017 16:31:41 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['2367']
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 storagemanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westus/asyncoperations/d09c1426-ca00-4a40-a531-6fba565ce185?monitor=true&api-version=2017-06-01
+ response:
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Storage/storageAccounts/clitest000002","kind":"Storage","location":"westus","name":"clitest000002","properties":{"creationTime":"2017-11-16T00:21:34.4860517Z","encryption":{"keySource":"Microsoft.Storage","services":{"blob":{"enabled":true,"lastEnabledTime":"2017-11-16T00:21:34.4880362Z"},"file":{"enabled":true,"lastEnabledTime":"2017-11-16T00:21:34.4880362Z"}}},"networkAcls":{"bypass":"AzureServices","defaultAction":"Allow","ipRules":[],"virtualNetworkRules":[]},"primaryEndpoints":{"blob":"https://clitest000002.blob.core.windows.net/","file":"https://clitest000002.file.core.windows.net/","queue":"https://clitest000002.queue.core.windows.net/","table":"https://clitest000002.table.core.windows.net/"},"primaryLocation":"westus","provisioningState":"Succeeded","statusOfPrimary":"available","supportsHttpsTrafficOnly":false},"sku":{"name":"Standard_LRS","tier":"Standard"},"tags":{},"type":"Microsoft.Storage/storageAccounts"}
+
+ '}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['1170']
+ content-type: [application/json]
+ date: ['Thu, 16 Nov 2017 00:22:18 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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Length: ['0']
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 storagemanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: POST
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2017-06-01
+ response:
+ body: {string: '{"keys":[{"keyName":"key1","permissions":"Full","value":"zThMlU+VB0JfNkc2vq822jGW+JAMyYXp3OEg601d7mRIqcDaru61wGRmSJ3AJmh9Kz5k07X8Q6gycQJIntsCcg=="},{"keyName":"key2","permissions":"Full","value":"98FQO0Aq5/MN8ZBVEVMKTfYV/EY/pjq3emvQMTD8yYrenxVnt68ZRad6l3+zOtmY4wK7o4BWo8QfTFLZar18zA=="}]}
+
+ '}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['289']
+ content-type: [application/json]
+ date: ['Thu, 16 Nov 2017 00:22: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]
+ x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/3.0.0rc1 Azure-SDK-For-Python
- AZURECLI/TEST/2.0.17+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [ac904e7a-a533-11e7-a0a4-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_vmss_diagnostics_extension000001?api-version=2017-05-10
response:
- body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\":
- \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\":
- true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\",\r\n \"automaticOSUpgrade\":
- false\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\":
- {\r\n \"computerNamePrefix\": \"testd4a52\",\r\n \"adminUsername\":
- \"user11\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\":
- false\r\n },\r\n \"secrets\": []\r\n },\r\n \"storageProfile\":
- {\r\n \"osDisk\": {\r\n \"createOption\": \"FromImage\",\r\n
- \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n
- \ \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n },\r\n
- \ \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n
- \ \"offer\": \"UbuntuServer\",\r\n \"sku\": \"16.04-LTS\",\r\n
- \ \"version\": \"latest\"\r\n }\r\n },\r\n \"networkProfile\":
- {\"networkInterfaceConfigurations\":[{\"name\":\"testd4a52Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"ipConfigurations\":[{\"name\":\"testd4a52IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Network/virtualNetworks/testdiagvmssVNET/subnets/testdiagvmssSubnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/backendAddressPools/testdiagvmssLBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/inboundNatPools/testdiagvmssLBNatPool\"}]}}]}}]}\r\n
- \ },\r\n \"provisioningState\": \"Succeeded\",\r\n \"overprovision\":
- true,\r\n \"uniqueId\": \"1ccfe592-bd33-4939-b208-fbc435404627\"\r\n },\r\n
- \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\":
- \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss\",\r\n
- \ \"name\": \"testdiagvmss\"\r\n}"}
- headers:
- Cache-Control: [no-cache]
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001","name":"cli_test_vm_vmss_diagnostics_extension000001","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: ['Thu, 16 Nov 2017 00:22:22 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ vary: [Accept-Encoding]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ Connection: [close]
+ Host: [raw.githubusercontent.com]
+ User-Agent: [Python-urllib/3.5]
+ method: GET
+ uri: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json
+ response:
+ body: {string: "{\n \"$schema\":\"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\"\
+ ,\n \"contentVersion\":\"1.0.0.0\",\n \"parameters\":{},\n \"variables\"\
+ :{},\n \"resources\":[],\n\n \"outputs\":{\n \"aliases\":{\n \"\
+ type\":\"object\",\n \"value\":{\n\n \"Linux\":{\n \"\
+ CentOS\":{\n \"publisher\":\"OpenLogic\",\n \"offer\"\
+ :\"CentOS\",\n \"sku\":\"7.3\",\n \"version\":\"latest\"\
+ \n },\n \"CoreOS\":{\n \"publisher\":\"CoreOS\"\
+ ,\n \"offer\":\"CoreOS\",\n \"sku\":\"Stable\",\n \
+ \ \"version\":\"latest\"\n },\n \"Debian\":{\n\
+ \ \"publisher\":\"credativ\",\n \"offer\":\"Debian\"\
+ ,\n \"sku\":\"8\",\n \"version\":\"latest\"\n \
+ \ },\n \"openSUSE-Leap\": {\n \"publisher\":\"SUSE\"\
+ ,\n \"offer\":\"openSUSE-Leap\",\n \"sku\":\"42.2\"\
+ ,\n \"version\": \"latest\"\n },\n \"RHEL\":{\n\
+ \ \"publisher\":\"RedHat\",\n \"offer\":\"RHEL\",\n\
+ \ \"sku\":\"7.3\",\n \"version\":\"latest\"\n \
+ \ },\n \"SLES\":{\n \"publisher\":\"SUSE\",\n \
+ \ \"offer\":\"SLES\",\n \"sku\":\"12-SP2\",\n \
+ \ \"version\":\"latest\"\n },\n \"UbuntuLTS\":{\n \
+ \ \"publisher\":\"Canonical\",\n \"offer\":\"UbuntuServer\"\
+ ,\n \"sku\":\"16.04-LTS\",\n \"version\":\"latest\"\n\
+ \ }\n },\n\n \"Windows\":{\n \"Win2016Datacenter\"\
+ :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\
+ offer\":\"WindowsServer\",\n \"sku\":\"2016-Datacenter\",\n \
+ \ \"version\":\"latest\"\n },\n \"Win2012R2Datacenter\"\
+ :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\
+ offer\":\"WindowsServer\",\n \"sku\":\"2012-R2-Datacenter\",\n\
+ \ \"version\":\"latest\"\n },\n \"Win2012Datacenter\"\
+ :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\
+ offer\":\"WindowsServer\",\n \"sku\":\"2012-Datacenter\",\n \
+ \ \"version\":\"latest\"\n },\n \"Win2008R2SP1\"\
+ :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\
+ offer\":\"WindowsServer\",\n \"sku\":\"2008-R2-SP1\",\n \
+ \ \"version\":\"latest\"\n }\n }\n }\n }\n }\n\
+ }\n"}
+ headers:
+ accept-ranges: [bytes]
+ access-control-allow-origin: ['*']
+ cache-control: [max-age=300]
+ connection: [close]
+ content-length: ['2235']
+ content-security-policy: [default-src 'none'; style-src 'unsafe-inline'; sandbox]
+ content-type: [text/plain; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:22:23 GMT']
+ etag: ['"d6824855d13e27c5258a680eb60f635d088fd05e"']
+ expires: ['Thu, 16 Nov 2017 00:27:23 GMT']
+ source-age: ['0']
+ strict-transport-security: [max-age=31536000]
+ vary: ['Authorization,Accept-Encoding']
+ via: [1.1 varnish]
+ x-cache: [MISS]
+ x-cache-hits: ['0']
+ x-content-type-options: [nosniff]
+ x-fastly-request-id: [8053f250d858847225b19e1c2def55c85ccc7b99]
+ x-frame-options: [deny]
+ x-geo-block-list: ['']
+ x-github-request-id: ['575E:23637:4DA9C3:54784B:5A0CDA3F']
+ x-served-by: [cache-sea1024-SEA]
+ x-timer: ['S1510791743.384418,VS0,VE37']
+ x-xss-protection: [1; mode=block]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- Date: ['Fri, 29 Sep 2017 16:31:41 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['2367']
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-09-01
+ response:
+ body: {string: '{"value":[]}'}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['12']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:22:25 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
- body: '{"properties": {"upgradePolicy": {"mode": "Manual"}, "overprovision": true,
- "singlePlacementGroup": true, "virtualMachineProfile": {"networkProfile": {"networkInterfaceConfigurations":
- [{"properties": {"ipConfigurations": [{"properties": {"privateIPAddressVersion":
- "IPv4", "subnet": {"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Network/virtualNetworks/testdiagvmssVNET/subnets/testdiagvmssSubnet"},
- "loadBalancerInboundNatPools": [{"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/inboundNatPools/testdiagvmssLBNatPool"}],
- "loadBalancerBackendAddressPools": [{"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/backendAddressPools/testdiagvmssLBBEPool"}]},
- "name": "testd4a52IPConfig"}], "primary": true, "dnsSettings": {"dnsServers":
- []}, "enableAcceleratedNetworking": false}, "name": "testd4a52Nic"}]}, "storageProfile":
- {"imageReference": {"publisher": "Canonical", "version": "latest", "offer":
- "UbuntuServer", "sku": "16.04-LTS"}, "osDisk": {"caching": "ReadWrite", "managedDisk":
- {"storageAccountType": "Standard_LRS"}, "createOption": "fromImage"}}, "osProfile":
- {"adminUsername": "user11", "computerNamePrefix": "testd4a52", "secrets": [],
- "linuxConfiguration": {"disablePasswordAuthentication": false}}, "extensionProfile":
- {"extensions": [{"properties": {"publisher": "Microsoft.Azure.Diagnostics",
- "autoUpgradeMinorVersion": true, "protectedSettings": {"storageAccountName":
- "clitestdiagextsa20170510", "storageAccountSasToken": "123"}, "settings": {"ladCfg":
- {"sampleRateInSeconds": 15, "diagnosticMonitorConfiguration": {"eventVolume":
- "Medium", "syslogEvents": {"syslogEventConfiguration": {"LOG_LOCAL2": "LOG_DEBUG",
- "LOG_LOCAL1": "LOG_DEBUG", "LOG_NEWS": "LOG_DEBUG", "LOG_UUCP": "LOG_DEBUG",
- "LOG_AUTHPRIV": "LOG_DEBUG", "LOG_LOCAL7": "LOG_DEBUG", "LOG_KERN": "LOG_DEBUG",
- "LOG_LOCAL4": "LOG_DEBUG", "LOG_AUTH": "LOG_DEBUG", "LOG_CRON": "LOG_DEBUG",
- "LOG_LOCAL3": "LOG_DEBUG", "LOG_DAEMON": "LOG_DEBUG", "LOG_LOCAL5": "LOG_DEBUG",
- "LOG_USER": "LOG_DEBUG", "LOG_LOCAL6": "LOG_DEBUG", "LOG_LOCAL0": "LOG_DEBUG",
- "LOG_LPR": "LOG_DEBUG", "LOG_FTP": "LOG_DEBUG", "LOG_SYSLOG": "LOG_DEBUG", "LOG_MAIL":
- "LOG_DEBUG"}}, "performanceCounters": {"performanceCounterConfiguration": [{"condition":
- "IsAggregate=TRUE", "counter": "readbytespersecond", "type": "builtin", "class":
- "disk", "annotation": [{"locale": "en-us", "displayName": "Disk read guest OS"}],
- "unit": "BytesPerSecond", "counterSpecifier": "/builtin/disk/readbytespersecond"},
- {"condition": "IsAggregate=TRUE", "counter": "writespersecond", "type": "builtin",
- "class": "disk", "annotation": [{"locale": "en-us", "displayName": "Disk writes"}],
- "unit": "CountPerSecond", "counterSpecifier": "/builtin/disk/writespersecond"},
- {"condition": "IsAggregate=TRUE", "counter": "averagetransfertime", "type":
- "builtin", "class": "disk", "annotation": [{"locale": "en-us", "displayName":
- "Disk transfer time"}], "unit": "Seconds", "counterSpecifier": "/builtin/disk/averagetransfertime"},
- {"condition": "IsAggregate=TRUE", "counter": "transferspersecond", "type": "builtin",
- "class": "disk", "annotation": [{"locale": "en-us", "displayName": "Disk transfers"}],
- "unit": "CountPerSecond", "counterSpecifier": "/builtin/disk/transferspersecond"},
- {"condition": "IsAggregate=TRUE", "counter": "writebytespersecond", "type":
- "builtin", "class": "disk", "annotation": [{"locale": "en-us", "displayName":
- "Disk write guest OS"}], "unit": "BytesPerSecond", "counterSpecifier": "/builtin/disk/writebytespersecond"},
- {"condition": "IsAggregate=TRUE", "counter": "averagereadtime", "type": "builtin",
- "class": "disk", "annotation": [{"locale": "en-us", "displayName": "Disk read
- time"}], "unit": "Seconds", "counterSpecifier": "/builtin/disk/averagereadtime"},
- {"condition": "IsAggregate=TRUE", "counter": "averagewritetime", "type": "builtin",
- "class": "disk", "annotation": [{"locale": "en-us", "displayName": "Disk write
- time"}], "unit": "Seconds", "counterSpecifier": "/builtin/disk/averagewritetime"},
- {"condition": "IsAggregate=TRUE", "counter": "bytespersecond", "type": "builtin",
- "class": "disk", "annotation": [{"locale": "en-us", "displayName": "Disk total
- bytes"}], "unit": "BytesPerSecond", "counterSpecifier": "/builtin/disk/bytespersecond"},
- {"condition": "IsAggregate=TRUE", "counter": "readspersecond", "type": "builtin",
- "class": "disk", "annotation": [{"locale": "en-us", "displayName": "Disk reads"}],
- "unit": "CountPerSecond", "counterSpecifier": "/builtin/disk/readspersecond"},
- {"condition": "IsAggregate=TRUE", "counter": "averagediskqueuelength", "type":
- "builtin", "class": "disk", "annotation": [{"locale": "en-us", "displayName":
- "Disk queue length"}], "unit": "Count", "counterSpecifier": "/builtin/disk/averagediskqueuelength"},
- {"counter": "bytesreceived", "type": "builtin", "class": "network", "annotation":
- [{"locale": "en-us", "displayName": "Network in guest OS"}], "unit": "Bytes",
- "counterSpecifier": "/builtin/network/bytesreceived"}, {"counter": "bytestotal",
- "type": "builtin", "class": "network", "annotation": [{"locale": "en-us", "displayName":
- "Network total bytes"}], "unit": "Bytes", "counterSpecifier": "/builtin/network/bytestotal"},
- {"counter": "bytestransmitted", "type": "builtin", "class": "network", "annotation":
- [{"locale": "en-us", "displayName": "Network out guest OS"}], "unit": "Bytes",
- "counterSpecifier": "/builtin/network/bytestransmitted"}, {"counter": "totalcollisions",
- "type": "builtin", "class": "network", "annotation": [{"locale": "en-us", "displayName":
- "Network collisions"}], "unit": "Count", "counterSpecifier": "/builtin/network/totalcollisions"},
- {"counter": "totalrxerrors", "type": "builtin", "class": "network", "annotation":
- [{"locale": "en-us", "displayName": "Packets received errors"}], "unit": "Count",
- "counterSpecifier": "/builtin/network/totalrxerrors"}, {"counter": "packetstransmitted",
- "type": "builtin", "class": "network", "annotation": [{"locale": "en-us", "displayName":
- "Packets sent"}], "unit": "Count", "counterSpecifier": "/builtin/network/packetstransmitted"},
- {"counter": "packetsreceived", "type": "builtin", "class": "network", "annotation":
- [{"locale": "en-us", "displayName": "Packets received"}], "unit": "Count", "counterSpecifier":
- "/builtin/network/packetsreceived"}, {"counter": "totaltxerrors", "type": "builtin",
- "class": "network", "annotation": [{"locale": "en-us", "displayName": "Packets
- sent errors"}], "unit": "Count", "counterSpecifier": "/builtin/network/totaltxerrors"},
- {"condition": "IsAggregate=TRUE", "counter": "transferspersecond", "type": "builtin",
- "class": "filesystem", "annotation": [{"locale": "en-us", "displayName": "Filesystem
- transfers/sec"}], "unit": "CountPerSecond", "counterSpecifier": "/builtin/filesystem/transferspersecond"},
- {"condition": "IsAggregate=TRUE", "counter": "percentfreespace", "type": "builtin",
- "class": "filesystem", "annotation": [{"locale": "en-us", "displayName": "Filesystem
- % free space"}], "unit": "Percent", "counterSpecifier": "/builtin/filesystem/percentfreespace"},
- {"condition": "IsAggregate=TRUE", "counter": "percentusedspace", "type": "builtin",
- "class": "filesystem", "annotation": [{"locale": "en-us", "displayName": "Filesystem
- % used space"}], "unit": "Percent", "counterSpecifier": "/builtin/filesystem/percentusedspace"},
- {"condition": "IsAggregate=TRUE", "counter": "usedspace", "type": "builtin",
- "class": "filesystem", "annotation": [{"locale": "en-us", "displayName": "Filesystem
- used space"}], "unit": "Bytes", "counterSpecifier": "/builtin/filesystem/usedspace"},
- {"condition": "IsAggregate=TRUE", "counter": "bytesreadpersecond", "type": "builtin",
- "class": "filesystem", "annotation": [{"locale": "en-us", "displayName": "Filesystem
- read bytes/sec"}], "unit": "CountPerSecond", "counterSpecifier": "/builtin/filesystem/bytesreadpersecond"},
- {"condition": "IsAggregate=TRUE", "counter": "freespace", "type": "builtin",
- "class": "filesystem", "annotation": [{"locale": "en-us", "displayName": "Filesystem
- free space"}], "unit": "Bytes", "counterSpecifier": "/builtin/filesystem/freespace"},
- {"condition": "IsAggregate=TRUE", "counter": "percentfreeinodes", "type": "builtin",
- "class": "filesystem", "annotation": [{"locale": "en-us", "displayName": "Filesystem
- % free inodes"}], "unit": "Percent", "counterSpecifier": "/builtin/filesystem/percentfreeinodes"},
- {"condition": "IsAggregate=TRUE", "counter": "bytespersecond", "type": "builtin",
- "class": "filesystem", "annotation": [{"locale": "en-us", "displayName": "Filesystem
- bytes/sec"}], "unit": "BytesPerSecond", "counterSpecifier": "/builtin/filesystem/bytespersecond"},
- {"condition": "IsAggregate=TRUE", "counter": "readspersecond", "type": "builtin",
- "class": "filesystem", "annotation": [{"locale": "en-us", "displayName": "Filesystem
- reads/sec"}], "unit": "CountPerSecond", "counterSpecifier": "/builtin/filesystem/readspersecond"},
- {"condition": "IsAggregate=TRUE", "counter": "byteswrittenpersecond", "type":
- "builtin", "class": "filesystem", "annotation": [{"locale": "en-us", "displayName":
- "Filesystem write bytes/sec"}], "unit": "CountPerSecond", "counterSpecifier":
- "/builtin/filesystem/byteswrittenpersecond"}, {"condition": "IsAggregate=TRUE",
- "counter": "writespersecond", "type": "builtin", "class": "filesystem", "annotation":
- [{"locale": "en-us", "displayName": "Filesystem writes/sec"}], "unit": "CountPerSecond",
- "counterSpecifier": "/builtin/filesystem/writespersecond"}, {"condition": "IsAggregate=TRUE",
- "counter": "percentusedinodes", "type": "builtin", "class": "filesystem", "annotation":
- [{"locale": "en-us", "displayName": "Filesystem % used inodes"}], "unit": "Percent",
- "counterSpecifier": "/builtin/filesystem/percentusedinodes"}, {"condition":
- "IsAggregate=TRUE", "counter": "percentiowaittime", "type": "builtin", "class":
- "processor", "annotation": [{"locale": "en-us", "displayName": "CPU IO wait
- time"}], "unit": "Percent", "counterSpecifier": "/builtin/processor/percentiowaittime"},
- {"condition": "IsAggregate=TRUE", "counter": "percentusertime", "type": "builtin",
- "class": "processor", "annotation": [{"locale": "en-us", "displayName": "CPU
- user time"}], "unit": "Percent", "counterSpecifier": "/builtin/processor/percentusertime"},
- {"condition": "IsAggregate=TRUE", "counter": "percentnicetime", "type": "builtin",
- "class": "processor", "annotation": [{"locale": "en-us", "displayName": "CPU
- nice time"}], "unit": "Percent", "counterSpecifier": "/builtin/processor/percentnicetime"},
- {"condition": "IsAggregate=TRUE", "counter": "percentprocessortime", "type":
- "builtin", "class": "processor", "annotation": [{"locale": "en-us", "displayName":
- "CPU percentage guest OS"}], "unit": "Percent", "counterSpecifier": "/builtin/processor/percentprocessortime"},
- {"condition": "IsAggregate=TRUE", "counter": "percentinterrupttime", "type":
- "builtin", "class": "processor", "annotation": [{"locale": "en-us", "displayName":
- "CPU interrupt time"}], "unit": "Percent", "counterSpecifier": "/builtin/processor/percentinterrupttime"},
- {"condition": "IsAggregate=TRUE", "counter": "percentidletime", "type": "builtin",
- "class": "processor", "annotation": [{"locale": "en-us", "displayName": "CPU
- idle time"}], "unit": "Percent", "counterSpecifier": "/builtin/processor/percentidletime"},
- {"condition": "IsAggregate=TRUE", "counter": "percentprivilegedtime", "type":
- "builtin", "class": "processor", "annotation": [{"locale": "en-us", "displayName":
- "CPU privileged time"}], "unit": "Percent", "counterSpecifier": "/builtin/processor/percentprivilegedtime"},
- {"counter": "availablememory", "type": "builtin", "class": "memory", "annotation":
- [{"locale": "en-us", "displayName": "Memory available"}], "unit": "Bytes", "counterSpecifier":
- "/builtin/memory/availablememory"}, {"counter": "percentusedswap", "type": "builtin",
- "class": "memory", "annotation": [{"locale": "en-us", "displayName": "Swap percent
- used"}], "unit": "Percent", "counterSpecifier": "/builtin/memory/percentusedswap"},
- {"counter": "usedmemory", "type": "builtin", "class": "memory", "annotation":
- [{"locale": "en-us", "displayName": "Memory used"}], "unit": "Bytes", "counterSpecifier":
- "/builtin/memory/usedmemory"}, {"counter": "pagesreadpersec", "type": "builtin",
- "class": "memory", "annotation": [{"locale": "en-us", "displayName": "Page reads"}],
- "unit": "CountPerSecond", "counterSpecifier": "/builtin/memory/pagesreadpersec"},
- {"counter": "availableswap", "type": "builtin", "class": "memory", "annotation":
- [{"locale": "en-us", "displayName": "Swap available"}], "unit": "Bytes", "counterSpecifier":
- "/builtin/memory/availableswap"}, {"counter": "percentavailableswap", "type":
- "builtin", "class": "memory", "annotation": [{"locale": "en-us", "displayName":
- "Swap percent available"}], "unit": "Percent", "counterSpecifier": "/builtin/memory/percentavailableswap"},
- {"counter": "percentavailablememory", "type": "builtin", "class": "memory",
- "annotation": [{"locale": "en-us", "displayName": "Mem. percent available"}],
- "unit": "Percent", "counterSpecifier": "/builtin/memory/percentavailablememory"},
- {"counter": "pagespersec", "type": "builtin", "class": "memory", "annotation":
- [{"locale": "en-us", "displayName": "Pages"}], "unit": "CountPerSecond", "counterSpecifier":
- "/builtin/memory/pagespersec"}, {"counter": "usedswap", "type": "builtin", "class":
- "memory", "annotation": [{"locale": "en-us", "displayName": "Swap used"}], "unit":
- "Bytes", "counterSpecifier": "/builtin/memory/usedswap"}, {"counter": "percentusedmemory",
- "type": "builtin", "class": "memory", "annotation": [{"locale": "en-us", "displayName":
- "Memory percentage"}], "unit": "Percent", "counterSpecifier": "/builtin/memory/percentusedmemory"},
- {"counter": "pageswrittenpersec", "type": "builtin", "class": "memory", "annotation":
- [{"locale": "en-us", "displayName": "Page writes"}], "unit": "CountPerSecond",
- "counterSpecifier": "/builtin/memory/pageswrittenpersec"}]}, "metrics": {"metricAggregation":
- [{"scheduledTransferPeriod": "PT1H"}, {"scheduledTransferPeriod": "PT1M"}],
- "resourceId": "__VM_RESOURCE_ID__"}}}, "StorageAccount": "clitestdiagextsa20170510"},
- "type": "LinuxDiagnostic", "typeHandlerVersion": "3.0"}, "name": "LinuxDiagnostic"}]}}},
- "location": "westus", "tags": {}, "sku": {"tier": "Standard", "name": "Standard_D1_v2",
- "capacity": 2}}'
+ body: 'b''{"properties": {"mode": "Incremental", "template": {"parameters": {},
+ "outputs": {"VMSS": {"value": "[reference(resourceId(\''Microsoft.Compute/virtualMachineScaleSets\'',
+ \''testdiagvmss\''),providers(\''Microsoft.Compute\'', \''virtualMachineScaleSets\'').apiVersions[0])]",
+ "type": "object"}}, "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
+ "variables": {}, "contentVersion": "1.0.0.0", "resources": [{"type": "Microsoft.Network/virtualNetworks",
+ "apiVersion": "2015-06-15", "name": "testdiagvmssVNET", "tags": {}, "location":
+ "westus", "properties": {"subnets": [{"name": "testdiagvmssSubnet", "properties":
+ {"addressPrefix": "10.0.0.0/24"}}], "addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}},
+ "dependsOn": []}, {"apiVersion": "2017-09-01", "name": "testdiagvmssLBPublicIP",
+ "tags": {}, "dependsOn": [], "sku": {"name": "Basic"}, "location": "westus",
+ "properties": {"publicIPAllocationMethod": "Dynamic"}, "type": "Microsoft.Network/publicIPAddresses"},
+ {"location": "westus", "name": "testdiagvmssLB", "tags": {}, "dependsOn": ["Microsoft.Network/virtualNetworks/testdiagvmssVNET",
+ "Microsoft.Network/publicIpAddresses/testdiagvmssLBPublicIP"], "sku": {"name":
+ "Basic"}, "apiVersion": "2017-09-01", "properties": {"frontendIPConfigurations":
+ [{"name": "loadBalancerFrontEnd", "properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/publicIPAddresses/testdiagvmssLBPublicIP"}}}],
+ "backendAddressPools": [{"name": "testdiagvmssLBBEPool"}], "inboundNatPools":
+ [{"name": "testdiagvmssLBNatPool", "properties": {"protocol": "tcp", "backendPort":
+ 22, "frontendIPConfiguration": {"id": "[concat(resourceId(\''Microsoft.Network/loadBalancers\'',
+ \''testdiagvmssLB\''), \''/frontendIPConfigurations/\'', \''loadBalancerFrontEnd\'')]"},
+ "frontendPortRangeEnd": "50119", "frontendPortRangeStart": "50000"}}]}, "type":
+ "Microsoft.Network/loadBalancers"}, {"apiVersion": "2017-03-30", "name": "testdiagvmss",
+ "tags": {}, "dependsOn": ["Microsoft.Network/virtualNetworks/testdiagvmssVNET",
+ "Microsoft.Network/loadBalancers/testdiagvmssLB"], "sku": {"capacity": 2, "name":
+ "Standard_D1_v2"}, "location": "westus", "properties": {"overprovision": true,
+ "virtualMachineProfile": {"osProfile": {"adminUsername": "user11", "computerNamePrefix":
+ "testd1717", "adminPassword": "TestTest12#$"}, "storageProfile": {"imageReference":
+ {"offer": "UbuntuServer", "sku": "16.04-LTS", "version": "latest", "publisher":
+ "Canonical"}, "osDisk": {"createOption": "FromImage", "managedDisk": {"storageAccountType":
+ null}, "caching": "ReadWrite"}}, "networkProfile": {"networkInterfaceConfigurations":
+ [{"name": "testd1717Nic", "properties": {"ipConfigurations": [{"name": "testd1717IPConfig",
+ "properties": {"loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/inboundNatPools/testdiagvmssLBNatPool"}],
+ "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/backendAddressPools/testdiagvmssLBBEPool"}],
+ "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/virtualNetworks/testdiagvmssVNET/subnets/testdiagvmssSubnet"}}}],
+ "primary": "true"}}]}}, "singlePlacementGroup": true, "upgradePolicy": {"mode":
+ "Manual"}}, "type": "Microsoft.Compute/virtualMachineScaleSets"}]}, "parameters":
+ {}}}'''
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
- Content-Length: ['14580']
+ Content-Length: ['3850']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/3.0.0rc1 Azure-SDK-For-Python
- AZURECLI/TEST/2.0.17+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [acb5f514-a533-11e7-99d4-a0b3ccf7272a]
method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
response:
- body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\":
- \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\":
- true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\",\r\n \"automaticOSUpgrade\":
- false\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\":
- {\r\n \"computerNamePrefix\": \"testd4a52\",\r\n \"adminUsername\":
- \"user11\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\":
- false\r\n },\r\n \"secrets\": []\r\n },\r\n \"storageProfile\":
- {\r\n \"osDisk\": {\r\n \"createOption\": \"FromImage\",\r\n
- \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n
- \ \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n },\r\n
- \ \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n
- \ \"offer\": \"UbuntuServer\",\r\n \"sku\": \"16.04-LTS\",\r\n
- \ \"version\": \"latest\"\r\n }\r\n },\r\n \"networkProfile\":
- {\"networkInterfaceConfigurations\":[{\"name\":\"testd4a52Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"ipConfigurations\":[{\"name\":\"testd4a52IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Network/virtualNetworks/testdiagvmssVNET/subnets/testdiagvmssSubnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/backendAddressPools/testdiagvmssLBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/inboundNatPools/testdiagvmssLBNatPool\"}]}}]}}]},\r\n
- \ \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n
- \ \"properties\": {\r\n \"publisher\": \"Microsoft.Azure.Diagnostics\",\r\n
- \ \"type\": \"LinuxDiagnostic\",\r\n \"typeHandlerVersion\":
- \"3.0\",\r\n \"autoUpgradeMinorVersion\": true,\r\n \"settings\":
- {\"ladCfg\":{\"sampleRateInSeconds\":15,\"diagnosticMonitorConfiguration\":{\"eventVolume\":\"Medium\",\"syslogEvents\":{\"syslogEventConfiguration\":{\"LOG_LOCAL2\":\"LOG_DEBUG\",\"LOG_LOCAL1\":\"LOG_DEBUG\",\"LOG_NEWS\":\"LOG_DEBUG\",\"LOG_UUCP\":\"LOG_DEBUG\",\"LOG_AUTHPRIV\":\"LOG_DEBUG\",\"LOG_LOCAL7\":\"LOG_DEBUG\",\"LOG_KERN\":\"LOG_DEBUG\",\"LOG_LOCAL4\":\"LOG_DEBUG\",\"LOG_AUTH\":\"LOG_DEBUG\",\"LOG_CRON\":\"LOG_DEBUG\",\"LOG_LOCAL3\":\"LOG_DEBUG\",\"LOG_DAEMON\":\"LOG_DEBUG\",\"LOG_LOCAL5\":\"LOG_DEBUG\",\"LOG_USER\":\"LOG_DEBUG\",\"LOG_LOCAL6\":\"LOG_DEBUG\",\"LOG_LOCAL0\":\"LOG_DEBUG\",\"LOG_LPR\":\"LOG_DEBUG\",\"LOG_FTP\":\"LOG_DEBUG\",\"LOG_SYSLOG\":\"LOG_DEBUG\",\"LOG_MAIL\":\"LOG_DEBUG\"}},\"performanceCounters\":{\"performanceCounterConfiguration\":[{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"readbytespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- read guest OS\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/disk/readbytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"writespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- writes\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/disk/writespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagetransfertime\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- transfer time\"}],\"unit\":\"Seconds\",\"counterSpecifier\":\"/builtin/disk/averagetransfertime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"transferspersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- transfers\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/disk/transferspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"writebytespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- write guest OS\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/disk/writebytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagereadtime\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- read time\"}],\"unit\":\"Seconds\",\"counterSpecifier\":\"/builtin/disk/averagereadtime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagewritetime\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- write time\"}],\"unit\":\"Seconds\",\"counterSpecifier\":\"/builtin/disk/averagewritetime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"bytespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- total bytes\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/disk/bytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"readspersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- reads\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/disk/readspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagediskqueuelength\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- queue length\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/disk/averagediskqueuelength\"},{\"counter\":\"bytesreceived\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- in guest OS\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/network/bytesreceived\"},{\"counter\":\"bytestotal\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- total bytes\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/network/bytestotal\"},{\"counter\":\"bytestransmitted\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- out guest OS\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/network/bytestransmitted\"},{\"counter\":\"totalcollisions\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- collisions\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/totalcollisions\"},{\"counter\":\"totalrxerrors\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- received errors\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/totalrxerrors\"},{\"counter\":\"packetstransmitted\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- sent\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/packetstransmitted\"},{\"counter\":\"packetsreceived\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- received\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/packetsreceived\"},{\"counter\":\"totaltxerrors\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- sent errors\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/totaltxerrors\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"transferspersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- transfers/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/transferspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentfreespace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % free space\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentfreespace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentusedspace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % used space\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentusedspace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"usedspace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- used space\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/filesystem/usedspace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"bytesreadpersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- read bytes/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/bytesreadpersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"freespace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- free space\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/filesystem/freespace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentfreeinodes\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % free inodes\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentfreeinodes\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"bytespersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- bytes/sec\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/bytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"readspersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- reads/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/readspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"byteswrittenpersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- write bytes/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/byteswrittenpersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"writespersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- writes/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/writespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentusedinodes\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % used inodes\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentusedinodes\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentiowaittime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- IO wait time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentiowaittime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentusertime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- user time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentusertime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentnicetime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- nice time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentnicetime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentprocessortime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- percentage guest OS\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentprocessortime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentinterrupttime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- interrupt time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentinterrupttime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentidletime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- idle time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentidletime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentprivilegedtime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- privileged time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentprivilegedtime\"},{\"counter\":\"availablememory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Memory
- available\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/availablememory\"},{\"counter\":\"percentusedswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- percent used\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentusedswap\"},{\"counter\":\"usedmemory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Memory
- used\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/usedmemory\"},{\"counter\":\"pagesreadpersec\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Page
- reads\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/memory/pagesreadpersec\"},{\"counter\":\"availableswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- available\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/availableswap\"},{\"counter\":\"percentavailableswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- percent available\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentavailableswap\"},{\"counter\":\"percentavailablememory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Mem.
- percent available\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentavailablememory\"},{\"counter\":\"pagespersec\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Pages\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/memory/pagespersec\"},{\"counter\":\"usedswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- used\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/usedswap\"},{\"counter\":\"percentusedmemory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Memory
- percentage\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentusedmemory\"},{\"counter\":\"pageswrittenpersec\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Page
- writes\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/memory/pageswrittenpersec\"}]},\"metrics\":{\"metricAggregation\":[{\"scheduledTransferPeriod\":\"PT1H\"},{\"scheduledTransferPeriod\":\"PT1M\"}],\"resourceId\":\"__VM_RESOURCE_ID__\"}}},\"StorageAccount\":\"clitestdiagextsa20170510\"}\r\n
- \ },\r\n \"name\": \"LinuxDiagnostic\"\r\n }\r\n
- \ ]\r\n }\r\n },\r\n \"provisioningState\": \"Updating\",\r\n
- \ \"overprovision\": true,\r\n \"uniqueId\": \"1ccfe592-bd33-4939-b208-fbc435404627\"\r\n
- \ },\r\n \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\":
- \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss\",\r\n
- \ \"name\": \"testdiagvmss\"\r\n}"}
- headers:
- Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/8df70854-b25e-443a-9b93-35ca194f1e68?api-version=2017-03-30']
- Cache-Control: [no-cache]
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Resources/deployments/vmss_deploy_dCLjS0gKDZTo4zwPA74m2mx8hwdInGKC","name":"vmss_deploy_dCLjS0gKDZTo4zwPA74m2mx8hwdInGKC","properties":{"templateHash":"11760622673211873099","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-11-16T00:22:27.9394949Z","duration":"PT0.6750662S","correlationId":"e8b7f126-2442-4ae7-97f3-80c4fe6c4991","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/virtualNetworks/testdiagvmssVNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"testdiagvmssVNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/publicIPAddresses/testdiagvmssLBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"testdiagvmssLBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/loadBalancers/testdiagvmssLB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"testdiagvmssLB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/virtualNetworks/testdiagvmssVNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"testdiagvmssVNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/loadBalancers/testdiagvmssLB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"testdiagvmssLB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"testdiagvmss"}]}}'}
+ headers:
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Resources/deployments/vmss_deploy_dCLjS0gKDZTo4zwPA74m2mx8hwdInGKC/operationStatuses/08586908151382131942?api-version=2017-05-10']
+ cache-control: [no-cache]
+ content-length: ['2736']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:22:27 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: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- Date: ['Fri, 29 Sep 2017 16:31:41 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['14512']
- x-ms-ratelimit-remaining-subscription-writes: ['1198']
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586908151382131942?api-version=2017-05-10
+ response:
+ body: {string: '{"status":"Running"}'}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['20']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:22:58 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/3.0.0rc1 Azure-SDK-For-Python
- AZURECLI/TEST/2.0.17+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [acb5f514-a533-11e7-99d4-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/8df70854-b25e-443a-9b93-35ca194f1e68?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586908151382131942?api-version=2017-05-10
response:
- body: {string: "{\r\n \"startTime\": \"2017-09-29T16:31:40.5745837+00:00\",\r\n
- \ \"endTime\": \"2017-09-29T16:31:40.8089574+00:00\",\r\n \"status\": \"Succeeded\",\r\n
- \ \"name\": \"8df70854-b25e-443a-9b93-35ca194f1e68\"\r\n}"}
+ body: {string: '{"status":"Running"}'}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['20']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:23:28 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ vary: [Accept-Encoding]
+ status: {code: 200, message: OK}
+- request:
+ body: null
headers:
- Cache-Control: [no-cache]
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- Date: ['Fri, 29 Sep 2017 16:32:12 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['184']
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586908151382131942?api-version=2017-05-10
+ response:
+ body: {string: '{"status":"Running"}'}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['20']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:24:00 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/3.0.0rc1 Azure-SDK-For-Python
- AZURECLI/TEST/2.0.17+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [acb5f514-a533-11e7-99d4-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586908151382131942?api-version=2017-05-10
response:
- body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\":
- \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\":
- true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\",\r\n \"automaticOSUpgrade\":
- false\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\":
- {\r\n \"computerNamePrefix\": \"testd4a52\",\r\n \"adminUsername\":
- \"user11\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\":
- false\r\n },\r\n \"secrets\": []\r\n },\r\n \"storageProfile\":
- {\r\n \"osDisk\": {\r\n \"createOption\": \"FromImage\",\r\n
- \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n
- \ \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n },\r\n
- \ \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n
- \ \"offer\": \"UbuntuServer\",\r\n \"sku\": \"16.04-LTS\",\r\n
- \ \"version\": \"latest\"\r\n }\r\n },\r\n \"networkProfile\":
- {\"networkInterfaceConfigurations\":[{\"name\":\"testd4a52Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"ipConfigurations\":[{\"name\":\"testd4a52IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Network/virtualNetworks/testdiagvmssVNET/subnets/testdiagvmssSubnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/backendAddressPools/testdiagvmssLBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/inboundNatPools/testdiagvmssLBNatPool\"}]}}]}}]},\r\n
- \ \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n
- \ \"properties\": {\r\n \"publisher\": \"Microsoft.Azure.Diagnostics\",\r\n
- \ \"type\": \"LinuxDiagnostic\",\r\n \"typeHandlerVersion\":
- \"3.0\",\r\n \"autoUpgradeMinorVersion\": true,\r\n \"settings\":
- {\"ladCfg\":{\"sampleRateInSeconds\":15,\"diagnosticMonitorConfiguration\":{\"eventVolume\":\"Medium\",\"syslogEvents\":{\"syslogEventConfiguration\":{\"LOG_LOCAL2\":\"LOG_DEBUG\",\"LOG_LOCAL1\":\"LOG_DEBUG\",\"LOG_NEWS\":\"LOG_DEBUG\",\"LOG_UUCP\":\"LOG_DEBUG\",\"LOG_AUTHPRIV\":\"LOG_DEBUG\",\"LOG_LOCAL7\":\"LOG_DEBUG\",\"LOG_KERN\":\"LOG_DEBUG\",\"LOG_LOCAL4\":\"LOG_DEBUG\",\"LOG_AUTH\":\"LOG_DEBUG\",\"LOG_CRON\":\"LOG_DEBUG\",\"LOG_LOCAL3\":\"LOG_DEBUG\",\"LOG_DAEMON\":\"LOG_DEBUG\",\"LOG_LOCAL5\":\"LOG_DEBUG\",\"LOG_USER\":\"LOG_DEBUG\",\"LOG_LOCAL6\":\"LOG_DEBUG\",\"LOG_LOCAL0\":\"LOG_DEBUG\",\"LOG_LPR\":\"LOG_DEBUG\",\"LOG_FTP\":\"LOG_DEBUG\",\"LOG_SYSLOG\":\"LOG_DEBUG\",\"LOG_MAIL\":\"LOG_DEBUG\"}},\"performanceCounters\":{\"performanceCounterConfiguration\":[{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"readbytespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- read guest OS\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/disk/readbytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"writespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- writes\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/disk/writespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagetransfertime\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- transfer time\"}],\"unit\":\"Seconds\",\"counterSpecifier\":\"/builtin/disk/averagetransfertime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"transferspersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- transfers\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/disk/transferspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"writebytespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- write guest OS\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/disk/writebytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagereadtime\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- read time\"}],\"unit\":\"Seconds\",\"counterSpecifier\":\"/builtin/disk/averagereadtime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagewritetime\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- write time\"}],\"unit\":\"Seconds\",\"counterSpecifier\":\"/builtin/disk/averagewritetime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"bytespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- total bytes\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/disk/bytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"readspersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- reads\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/disk/readspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagediskqueuelength\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- queue length\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/disk/averagediskqueuelength\"},{\"counter\":\"bytesreceived\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- in guest OS\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/network/bytesreceived\"},{\"counter\":\"bytestotal\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- total bytes\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/network/bytestotal\"},{\"counter\":\"bytestransmitted\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- out guest OS\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/network/bytestransmitted\"},{\"counter\":\"totalcollisions\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- collisions\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/totalcollisions\"},{\"counter\":\"totalrxerrors\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- received errors\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/totalrxerrors\"},{\"counter\":\"packetstransmitted\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- sent\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/packetstransmitted\"},{\"counter\":\"packetsreceived\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- received\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/packetsreceived\"},{\"counter\":\"totaltxerrors\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- sent errors\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/totaltxerrors\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"transferspersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- transfers/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/transferspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentfreespace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % free space\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentfreespace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentusedspace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % used space\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentusedspace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"usedspace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- used space\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/filesystem/usedspace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"bytesreadpersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- read bytes/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/bytesreadpersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"freespace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- free space\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/filesystem/freespace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentfreeinodes\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % free inodes\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentfreeinodes\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"bytespersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- bytes/sec\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/bytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"readspersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- reads/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/readspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"byteswrittenpersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- write bytes/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/byteswrittenpersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"writespersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- writes/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/writespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentusedinodes\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % used inodes\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentusedinodes\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentiowaittime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- IO wait time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentiowaittime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentusertime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- user time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentusertime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentnicetime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- nice time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentnicetime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentprocessortime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- percentage guest OS\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentprocessortime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentinterrupttime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- interrupt time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentinterrupttime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentidletime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- idle time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentidletime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentprivilegedtime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- privileged time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentprivilegedtime\"},{\"counter\":\"availablememory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Memory
- available\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/availablememory\"},{\"counter\":\"percentusedswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- percent used\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentusedswap\"},{\"counter\":\"usedmemory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Memory
- used\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/usedmemory\"},{\"counter\":\"pagesreadpersec\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Page
- reads\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/memory/pagesreadpersec\"},{\"counter\":\"availableswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- available\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/availableswap\"},{\"counter\":\"percentavailableswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- percent available\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentavailableswap\"},{\"counter\":\"percentavailablememory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Mem.
- percent available\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentavailablememory\"},{\"counter\":\"pagespersec\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Pages\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/memory/pagespersec\"},{\"counter\":\"usedswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- used\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/usedswap\"},{\"counter\":\"percentusedmemory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Memory
- percentage\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentusedmemory\"},{\"counter\":\"pageswrittenpersec\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Page
- writes\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/memory/pageswrittenpersec\"}]},\"metrics\":{\"metricAggregation\":[{\"scheduledTransferPeriod\":\"PT1H\"},{\"scheduledTransferPeriod\":\"PT1M\"}],\"resourceId\":\"__VM_RESOURCE_ID__\"}}},\"StorageAccount\":\"clitestdiagextsa20170510\"}\r\n
- \ },\r\n \"name\": \"LinuxDiagnostic\"\r\n }\r\n
- \ ]\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n
- \ \"overprovision\": true,\r\n \"uniqueId\": \"1ccfe592-bd33-4939-b208-fbc435404627\"\r\n
- \ },\r\n \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\":
- \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss\",\r\n
- \ \"name\": \"testdiagvmss\"\r\n}"}
- headers:
- Cache-Control: [no-cache]
+ body: {string: '{"status":"Running"}'}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['20']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:24:31 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ vary: [Accept-Encoding]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- Date: ['Fri, 29 Sep 2017 16:32:12 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['14513']
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586908151382131942?api-version=2017-05-10
+ response:
+ body: {string: '{"status":"Succeeded"}'}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['22']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:25:02 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
- body: '{"instanceIds": ["*"]}'
+ body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
- Content-Length: ['22']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/3.0.0rc1 Azure-SDK-For-Python
- AZURECLI/TEST/2.0.17+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [bfd0bae6-a533-11e7-96f4-a0b3ccf7272a]
- method: POST
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss/manualupgrade?api-version=2017-03-30
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
response:
- body: {string: ''}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Resources/deployments/vmss_deploy_dCLjS0gKDZTo4zwPA74m2mx8hwdInGKC","name":"vmss_deploy_dCLjS0gKDZTo4zwPA74m2mx8hwdInGKC","properties":{"templateHash":"11760622673211873099","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-11-16T00:24:40.050269Z","duration":"PT2M12.7858403S","correlationId":"e8b7f126-2442-4ae7-97f3-80c4fe6c4991","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/virtualNetworks/testdiagvmssVNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"testdiagvmssVNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/publicIPAddresses/testdiagvmssLBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"testdiagvmssLBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/loadBalancers/testdiagvmssLB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"testdiagvmssLB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/virtualNetworks/testdiagvmssVNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"testdiagvmssVNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/loadBalancers/testdiagvmssLB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"testdiagvmssLB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"testdiagvmss"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual","automaticOSUpgrade":false},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"testd1717","adminUsername":"user11","linuxConfiguration":{"disablePasswordAuthentication":false},"secrets":[]},"storageProfile":{"osDisk":{"createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Standard_LRS"}},"imageReference":{"publisher":"Canonical","offer":"UbuntuServer","sku":"16.04-LTS","version":"latest"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"testd1717Nic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"ipConfigurations":[{"name":"testd1717IPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/virtualNetworks/testdiagvmssVNET/subnets/testdiagvmssSubnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/backendAddressPools/testdiagvmssLBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/inboundNatPools/testdiagvmssLBNatPool"}]}}]}}]}},"provisioningState":"Succeeded","overprovision":true,"uniqueId":"1f02f354-02b6-430d-8ca4-de587b2e0ed4"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/loadBalancers/testdiagvmssLB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/publicIPAddresses/testdiagvmssLBPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/virtualNetworks/testdiagvmssVNET"}]}}'}
headers:
- Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/06ff1a50-ac1e-45b4-8170-f62e7d0d490c?api-version=2017-03-30']
- Cache-Control: [no-cache]
- Content-Length: ['0']
- Date: ['Fri, 29 Sep 2017 16:32:14 GMT']
- Expires: ['-1']
- Location: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/06ff1a50-ac1e-45b4-8170-f62e7d0d490c?monitor=true&api-version=2017-03-30']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1199']
- status: {code: 202, message: Accepted}
+ cache-control: [no-cache]
+ content-length: ['5352']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:25:03 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ vary: [Accept-Encoding]
+ status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/3.0.0rc1 Azure-SDK-For-Python
- AZURECLI/TEST/2.0.17+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [bfd0bae6-a533-11e7-96f4-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/06ff1a50-ac1e-45b4-8170-f62e7d0d490c?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_vmss_diagnostics_extension000001?api-version=2017-05-10
response:
- body: {string: "{\r\n \"startTime\": \"2017-09-29T16:32:12.4199491+00:00\",\r\n
- \ \"status\": \"InProgress\",\r\n \"name\": \"06ff1a50-ac1e-45b4-8170-f62e7d0d490c\"\r\n}"}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001","name":"cli_test_vm_vmss_diagnostics_extension000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
headers:
- Cache-Control: [no-cache]
+ cache-control: [no-cache]
+ content-length: ['328']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:25:05 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ vary: [Accept-Encoding]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ Connection: [close]
+ Host: [raw.githubusercontent.com]
+ User-Agent: [Python-urllib/3.5]
+ method: GET
+ uri: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json
+ response:
+ body: {string: "{\n \"$schema\":\"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\"\
+ ,\n \"contentVersion\":\"1.0.0.0\",\n \"parameters\":{},\n \"variables\"\
+ :{},\n \"resources\":[],\n\n \"outputs\":{\n \"aliases\":{\n \"\
+ type\":\"object\",\n \"value\":{\n\n \"Linux\":{\n \"\
+ CentOS\":{\n \"publisher\":\"OpenLogic\",\n \"offer\"\
+ :\"CentOS\",\n \"sku\":\"7.3\",\n \"version\":\"latest\"\
+ \n },\n \"CoreOS\":{\n \"publisher\":\"CoreOS\"\
+ ,\n \"offer\":\"CoreOS\",\n \"sku\":\"Stable\",\n \
+ \ \"version\":\"latest\"\n },\n \"Debian\":{\n\
+ \ \"publisher\":\"credativ\",\n \"offer\":\"Debian\"\
+ ,\n \"sku\":\"8\",\n \"version\":\"latest\"\n \
+ \ },\n \"openSUSE-Leap\": {\n \"publisher\":\"SUSE\"\
+ ,\n \"offer\":\"openSUSE-Leap\",\n \"sku\":\"42.2\"\
+ ,\n \"version\": \"latest\"\n },\n \"RHEL\":{\n\
+ \ \"publisher\":\"RedHat\",\n \"offer\":\"RHEL\",\n\
+ \ \"sku\":\"7.3\",\n \"version\":\"latest\"\n \
+ \ },\n \"SLES\":{\n \"publisher\":\"SUSE\",\n \
+ \ \"offer\":\"SLES\",\n \"sku\":\"12-SP2\",\n \
+ \ \"version\":\"latest\"\n },\n \"UbuntuLTS\":{\n \
+ \ \"publisher\":\"Canonical\",\n \"offer\":\"UbuntuServer\"\
+ ,\n \"sku\":\"16.04-LTS\",\n \"version\":\"latest\"\n\
+ \ }\n },\n\n \"Windows\":{\n \"Win2016Datacenter\"\
+ :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\
+ offer\":\"WindowsServer\",\n \"sku\":\"2016-Datacenter\",\n \
+ \ \"version\":\"latest\"\n },\n \"Win2012R2Datacenter\"\
+ :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\
+ offer\":\"WindowsServer\",\n \"sku\":\"2012-R2-Datacenter\",\n\
+ \ \"version\":\"latest\"\n },\n \"Win2012Datacenter\"\
+ :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\
+ offer\":\"WindowsServer\",\n \"sku\":\"2012-Datacenter\",\n \
+ \ \"version\":\"latest\"\n },\n \"Win2008R2SP1\"\
+ :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\
+ offer\":\"WindowsServer\",\n \"sku\":\"2008-R2-SP1\",\n \
+ \ \"version\":\"latest\"\n }\n }\n }\n }\n }\n\
+ }\n"}
+ headers:
+ accept-ranges: [bytes]
+ access-control-allow-origin: ['*']
+ cache-control: [max-age=300]
+ connection: [close]
+ content-length: ['2235']
+ content-security-policy: [default-src 'none'; style-src 'unsafe-inline'; sandbox]
+ content-type: [text/plain; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:25:05 GMT']
+ etag: ['"d6824855d13e27c5258a680eb60f635d088fd05e"']
+ expires: ['Thu, 16 Nov 2017 00:30:05 GMT']
+ source-age: ['170']
+ strict-transport-security: [max-age=31536000]
+ vary: ['Authorization,Accept-Encoding']
+ via: [1.1 varnish]
+ x-cache: [HIT]
+ x-cache-hits: ['1']
+ x-content-type-options: [nosniff]
+ x-fastly-request-id: [4cec25758c36865b824cb2a034ebb12d7f61cd22]
+ x-frame-options: [deny]
+ x-geo-block-list: ['']
+ x-github-request-id: ['7AF8:22BFF:360CEE:39B7B1:5A0CDA37']
+ x-served-by: [cache-mdw17327-MDW]
+ x-timer: ['S1510791906.734650,VS0,VE1']
+ x-xss-protection: [1; mode=block]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- Date: ['Fri, 29 Sep 2017 16:32:44 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['134']
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 storagemanagementclient/1.4.0 Azure-SDK-For-Python AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Storage/storageAccounts?api-version=2017-06-01
+ response:
+ body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Storage/storageAccounts/clitest000002","kind":"Storage","location":"westus","name":"clitest000002","properties":{"creationTime":"2017-11-16T00:21:34.4860517Z","encryption":{"keySource":"Microsoft.Storage","services":{"blob":{"enabled":true,"lastEnabledTime":"2017-11-16T00:21:34.4880362Z"},"file":{"enabled":true,"lastEnabledTime":"2017-11-16T00:21:34.4880362Z"}}},"networkAcls":{"bypass":"AzureServices","defaultAction":"Allow","ipRules":[],"virtualNetworkRules":[]},"primaryEndpoints":{"blob":"https://clitest000002.blob.core.windows.net/","file":"https://clitest000002.file.core.windows.net/","queue":"https://clitest000002.queue.core.windows.net/","table":"https://clitest000002.table.core.windows.net/"},"primaryLocation":"westus","provisioningState":"Succeeded","statusOfPrimary":"available","supportsHttpsTrafficOnly":false},"sku":{"name":"Standard_LRS","tier":"Standard"},"tags":{},"type":"Microsoft.Storage/storageAccounts"}]}
+
+ '}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['1182']
+ content-type: [application/json]
+ date: ['Thu, 16 Nov 2017 00:25:05 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']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/3.0.0rc1 Azure-SDK-For-Python
- AZURECLI/TEST/2.0.17+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [bfd0bae6-a533-11e7-96f4-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/06ff1a50-ac1e-45b4-8170-f62e7d0d490c?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-09-01
response:
- body: {string: "{\r\n \"startTime\": \"2017-09-29T16:32:12.4199491+00:00\",\r\n
- \ \"endTime\": \"2017-09-29T16:32:45.6161797+00:00\",\r\n \"status\": \"Succeeded\",\r\n
- \ \"name\": \"06ff1a50-ac1e-45b4-8170-f62e7d0d490c\"\r\n}"}
+ body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"testdiagvmssVNET\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/virtualNetworks/testdiagvmssVNET\"\
+ ,\r\n \"etag\": \"W/\\\"cd27ad29-ac74-44f9-8d69-0f244bcdae74\\\"\",\r\
+ \n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\"\
+ : \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \
+ \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"3c5c1437-e065-4941-a55b-5933d758c801\"\
+ ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \
+ \ \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\"\
+ : [\r\n {\r\n \"name\": \"testdiagvmssSubnet\",\r\n \
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/virtualNetworks/testdiagvmssVNET/subnets/testdiagvmssSubnet\"\
+ ,\r\n \"etag\": \"W/\\\"cd27ad29-ac74-44f9-8d69-0f244bcdae74\\\"\
+ \",\r\n \"properties\": {\r\n \"provisioningState\"\
+ : \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n\
+ \ \"ipConfigurations\": [\r\n {\r\n \
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss/virtualMachines/0/networkInterfaces/testd1717Nic/ipConfigurations/testd1717IPConfig\"\
+ \r\n },\r\n {\r\n \"id\": \"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss/virtualMachines/1/networkInterfaces/testd1717Nic/ipConfigurations/testd1717IPConfig\"\
+ \r\n },\r\n {\r\n \"id\": \"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss/virtualMachines/2/networkInterfaces/testd1717Nic/ipConfigurations/testd1717IPConfig\"\
+ \r\n },\r\n {\r\n \"id\": \"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss/virtualMachines/3/networkInterfaces/testd1717Nic/ipConfigurations/testd1717IPConfig\"\
+ \r\n }\r\n ]\r\n }\r\n }\r\
+ \n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\
+ : false,\r\n \"enableVmProtection\": false\r\n }\r\n }\r\n\
+ \ ]\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['2868']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:25:07 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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": {"mode": "Incremental", "template": {"parameters": {},
+ "outputs": {}, "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
+ "variables": {}, "contentVersion": "1.0.0.0", "resources": [{"apiVersion": "2015-06-15",
+ "name": "vhdstorageb4e70d943e538b", "tags": {}, "dependsOn": [], "location":
+ "westus", "properties": {"accountType": "Premium_LRS"}, "type": "Microsoft.Storage/storageAccounts"},
+ {"apiVersion": "2015-06-15", "name": "testdiagvmNSG", "tags": {}, "dependsOn":
+ [], "location": "westus", "properties": {"securityRules": [{"name": "default-allow-ssh",
+ "properties": {"protocol": "Tcp", "sourcePortRange": "*", "destinationPortRange":
+ "22", "direction": "Inbound", "destinationAddressPrefix": "*", "sourceAddressPrefix":
+ "*", "access": "Allow", "priority": 1000}}]}, "type": "Microsoft.Network/networkSecurityGroups"},
+ {"apiVersion": "2017-09-01", "name": "testdiagvmPublicIP", "tags": {}, "dependsOn":
+ [], "location": "westus", "properties": {"publicIPAllocationMethod": "dynamic"},
+ "type": "Microsoft.Network/publicIPAddresses"}, {"apiVersion": "2015-06-15",
+ "name": "testdiagvmVMNic", "tags": {}, "dependsOn": ["Microsoft.Network/networkSecurityGroups/testdiagvmNSG",
+ "Microsoft.Network/publicIpAddresses/testdiagvmPublicIP"], "location": "westus",
+ "properties": {"ipConfigurations": [{"name": "ipconfigtestdiagvm", "properties":
+ {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/publicIPAddresses/testdiagvmPublicIP"},
+ "privateIPAllocationMethod": "Dynamic", "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/virtualNetworks/testdiagvmssVNET/subnets/testdiagvmssSubnet"}}}],
+ "networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/networkSecurityGroups/testdiagvmNSG"}},
+ "type": "Microsoft.Network/networkInterfaces"}, {"apiVersion": "2017-03-30",
+ "name": "testdiagvm", "tags": {}, "dependsOn": ["Microsoft.Storage/storageAccounts/vhdstorageb4e70d943e538b",
+ "Microsoft.Network/networkInterfaces/testdiagvmVMNic"], "location": "westus",
+ "properties": {"osProfile": {"adminUsername": "user11", "computerName": "testdiagvm",
+ "adminPassword": "TestTest12#$"}, "hardwareProfile": {"vmSize": "Standard_DS1_v2"},
+ "storageProfile": {"imageReference": {"offer": "UbuntuServer", "sku": "16.04-LTS",
+ "version": "latest", "publisher": "Canonical"}, "osDisk": {"vhd": {"uri": "https://vhdstorageb4e70d943e538b.blob.core.windows.net/vhds/osdisk_b4e70d943e.vhd"},
+ "name": "osdisk_b4e70d943e", "createOption": "fromImage", "caching": "ReadWrite"}},
+ "networkProfile": {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/networkInterfaces/testdiagvmVMNic"}]}},
+ "type": "Microsoft.Compute/virtualMachines"}]}, "parameters": {}}}'''
headers:
- Cache-Control: [no-cache]
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Length: ['3260']
Content-Type: [application/json; charset=utf-8]
- Date: ['Fri, 29 Sep 2017 16:33:14 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['184']
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
+ response:
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Resources/deployments/vm_deploy_Ar0LPJgLOgVEtlEiuwaasjvNCPTisggE","name":"vm_deploy_Ar0LPJgLOgVEtlEiuwaasjvNCPTisggE","properties":{"templateHash":"12774386433279199310","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-11-16T00:25:09.5860942Z","duration":"PT0.8150704S","correlationId":"54336cd8-c134-48de-98d4-5e70c231b374","providers":[{"namespace":"Microsoft.Storage","resourceTypes":[{"resourceType":"storageAccounts","locations":["westus"]}]},{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/networkSecurityGroups/testdiagvmNSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"testdiagvmNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/publicIPAddresses/testdiagvmPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"testdiagvmPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/networkInterfaces/testdiagvmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"testdiagvmVMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Storage/storageAccounts/vhdstorageb4e70d943e538b","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vhdstorageb4e70d943e538b"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/networkInterfaces/testdiagvmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"testdiagvmVMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachines/testdiagvm","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"testdiagvm"}]}}'}
+ headers:
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Resources/deployments/vm_deploy_Ar0LPJgLOgVEtlEiuwaasjvNCPTisggE/operationStatuses/08586908149767066408?api-version=2017-05-10']
+ cache-control: [no-cache]
+ content-length: ['2858']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:25:09 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: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586908149767066408?api-version=2017-05-10
+ response:
+ body: {string: '{"status":"Running"}'}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['20']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:25:41 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/3.0.0rc1 Azure-SDK-For-Python
- AZURECLI/TEST/2.0.17+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [e4967426-a533-11e7-b6c8-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586908149767066408?api-version=2017-05-10
response:
- body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\":
- \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\":
- true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\",\r\n \"automaticOSUpgrade\":
- false\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\":
- {\r\n \"computerNamePrefix\": \"testd4a52\",\r\n \"adminUsername\":
- \"user11\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\":
- false\r\n },\r\n \"secrets\": []\r\n },\r\n \"storageProfile\":
- {\r\n \"osDisk\": {\r\n \"createOption\": \"FromImage\",\r\n
- \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n
- \ \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n },\r\n
- \ \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n
- \ \"offer\": \"UbuntuServer\",\r\n \"sku\": \"16.04-LTS\",\r\n
- \ \"version\": \"latest\"\r\n }\r\n },\r\n \"networkProfile\":
- {\"networkInterfaceConfigurations\":[{\"name\":\"testd4a52Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"ipConfigurations\":[{\"name\":\"testd4a52IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Network/virtualNetworks/testdiagvmssVNET/subnets/testdiagvmssSubnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/backendAddressPools/testdiagvmssLBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/inboundNatPools/testdiagvmssLBNatPool\"}]}}]}}]},\r\n
- \ \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n
- \ \"properties\": {\r\n \"publisher\": \"Microsoft.Azure.Diagnostics\",\r\n
- \ \"type\": \"LinuxDiagnostic\",\r\n \"typeHandlerVersion\":
- \"3.0\",\r\n \"autoUpgradeMinorVersion\": true,\r\n \"settings\":
- {\"ladCfg\":{\"sampleRateInSeconds\":15,\"diagnosticMonitorConfiguration\":{\"eventVolume\":\"Medium\",\"syslogEvents\":{\"syslogEventConfiguration\":{\"LOG_LOCAL2\":\"LOG_DEBUG\",\"LOG_LOCAL1\":\"LOG_DEBUG\",\"LOG_NEWS\":\"LOG_DEBUG\",\"LOG_UUCP\":\"LOG_DEBUG\",\"LOG_AUTHPRIV\":\"LOG_DEBUG\",\"LOG_LOCAL7\":\"LOG_DEBUG\",\"LOG_KERN\":\"LOG_DEBUG\",\"LOG_LOCAL4\":\"LOG_DEBUG\",\"LOG_AUTH\":\"LOG_DEBUG\",\"LOG_CRON\":\"LOG_DEBUG\",\"LOG_LOCAL3\":\"LOG_DEBUG\",\"LOG_DAEMON\":\"LOG_DEBUG\",\"LOG_LOCAL5\":\"LOG_DEBUG\",\"LOG_USER\":\"LOG_DEBUG\",\"LOG_LOCAL6\":\"LOG_DEBUG\",\"LOG_LOCAL0\":\"LOG_DEBUG\",\"LOG_LPR\":\"LOG_DEBUG\",\"LOG_FTP\":\"LOG_DEBUG\",\"LOG_SYSLOG\":\"LOG_DEBUG\",\"LOG_MAIL\":\"LOG_DEBUG\"}},\"performanceCounters\":{\"performanceCounterConfiguration\":[{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"readbytespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- read guest OS\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/disk/readbytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"writespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- writes\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/disk/writespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagetransfertime\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- transfer time\"}],\"unit\":\"Seconds\",\"counterSpecifier\":\"/builtin/disk/averagetransfertime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"transferspersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- transfers\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/disk/transferspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"writebytespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- write guest OS\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/disk/writebytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagereadtime\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- read time\"}],\"unit\":\"Seconds\",\"counterSpecifier\":\"/builtin/disk/averagereadtime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagewritetime\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- write time\"}],\"unit\":\"Seconds\",\"counterSpecifier\":\"/builtin/disk/averagewritetime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"bytespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- total bytes\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/disk/bytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"readspersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- reads\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/disk/readspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagediskqueuelength\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- queue length\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/disk/averagediskqueuelength\"},{\"counter\":\"bytesreceived\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- in guest OS\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/network/bytesreceived\"},{\"counter\":\"bytestotal\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- total bytes\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/network/bytestotal\"},{\"counter\":\"bytestransmitted\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- out guest OS\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/network/bytestransmitted\"},{\"counter\":\"totalcollisions\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- collisions\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/totalcollisions\"},{\"counter\":\"totalrxerrors\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- received errors\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/totalrxerrors\"},{\"counter\":\"packetstransmitted\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- sent\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/packetstransmitted\"},{\"counter\":\"packetsreceived\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- received\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/packetsreceived\"},{\"counter\":\"totaltxerrors\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- sent errors\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/totaltxerrors\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"transferspersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- transfers/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/transferspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentfreespace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % free space\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentfreespace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentusedspace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % used space\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentusedspace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"usedspace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- used space\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/filesystem/usedspace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"bytesreadpersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- read bytes/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/bytesreadpersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"freespace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- free space\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/filesystem/freespace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentfreeinodes\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % free inodes\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentfreeinodes\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"bytespersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- bytes/sec\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/bytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"readspersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- reads/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/readspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"byteswrittenpersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- write bytes/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/byteswrittenpersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"writespersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- writes/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/writespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentusedinodes\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % used inodes\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentusedinodes\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentiowaittime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- IO wait time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentiowaittime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentusertime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- user time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentusertime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentnicetime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- nice time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentnicetime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentprocessortime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- percentage guest OS\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentprocessortime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentinterrupttime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- interrupt time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentinterrupttime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentidletime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- idle time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentidletime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentprivilegedtime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- privileged time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentprivilegedtime\"},{\"counter\":\"availablememory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Memory
- available\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/availablememory\"},{\"counter\":\"percentusedswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- percent used\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentusedswap\"},{\"counter\":\"usedmemory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Memory
- used\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/usedmemory\"},{\"counter\":\"pagesreadpersec\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Page
- reads\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/memory/pagesreadpersec\"},{\"counter\":\"availableswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- available\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/availableswap\"},{\"counter\":\"percentavailableswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- percent available\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentavailableswap\"},{\"counter\":\"percentavailablememory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Mem.
- percent available\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentavailablememory\"},{\"counter\":\"pagespersec\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Pages\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/memory/pagespersec\"},{\"counter\":\"usedswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- used\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/usedswap\"},{\"counter\":\"percentusedmemory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Memory
- percentage\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentusedmemory\"},{\"counter\":\"pageswrittenpersec\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Page
- writes\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/memory/pageswrittenpersec\"}]},\"metrics\":{\"metricAggregation\":[{\"scheduledTransferPeriod\":\"PT1H\"},{\"scheduledTransferPeriod\":\"PT1M\"}],\"resourceId\":\"__VM_RESOURCE_ID__\"}}},\"StorageAccount\":\"clitestdiagextsa20170510\"}\r\n
- \ },\r\n \"name\": \"LinuxDiagnostic\"\r\n }\r\n
- \ ]\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n
- \ \"overprovision\": true,\r\n \"uniqueId\": \"1ccfe592-bd33-4939-b208-fbc435404627\"\r\n
- \ },\r\n \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\":
- \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss\",\r\n
- \ \"name\": \"testdiagvmss\"\r\n}"}
- headers:
- Cache-Control: [no-cache]
+ body: {string: '{"status":"Running"}'}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['20']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:26:11 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ vary: [Accept-Encoding]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- Date: ['Fri, 29 Sep 2017 16:33:14 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['14513']
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586908149767066408?api-version=2017-05-10
+ response:
+ body: {string: '{"status":"Running"}'}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['20']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:26:42 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/3.0.0rc1 Azure-SDK-For-Python
- AZURECLI/TEST/2.0.17+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [e4c83824-a533-11e7-ae77-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachines/testdiagvm?api-version=2017-03-30&$expand=instanceView
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586908149767066408?api-version=2017-05-10
response:
- body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"214e660e-640e-4843-9a5b-b22fbfefaf54\",\r\n
- \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n
- \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\":
- \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\":
- \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n },\r\n \"osDisk\":
- {\r\n \"osType\": \"Linux\",\r\n \"name\": \"osdisk_32a651c70c\",\r\n
- \ \"createOption\": \"FromImage\",\r\n \"vhd\": {\r\n \"uri\":
- \"https://vhdstorage32a651c70ca5bb.blob.core.windows.net/vhds/osdisk_32a651c70c.vhd\"\r\n
- \ },\r\n \"caching\": \"ReadWrite\",\r\n \"diskSizeGB\":
- 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\":
- {\r\n \"computerName\": \"testdiagvm\",\r\n \"adminUsername\": \"user11\",\r\n
- \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\":
- false\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\":
- {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Network/networkInterfaces/testdiagvmVMNic\"}]},\r\n
- \ \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": {\r\n \"vmAgent\":
- {\r\n \"vmAgentVersion\": \"2.2.17\",\r\n \"statuses\": [\r\n
- \ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n
- \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n
- \ \"message\": \"Guest Agent is running\",\r\n \"time\":
- \"2017-09-29T16:33:14+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\":
- []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"osdisk_32a651c70c\",\r\n
- \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n
- \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning
- succeeded\",\r\n \"time\": \"2017-09-29T16:30:08.9514524+00:00\"\r\n
- \ }\r\n ]\r\n }\r\n ],\r\n \"statuses\":
- [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n
- \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning
- succeeded\",\r\n \"time\": \"2017-09-29T16:31:14.5889048+00:00\"\r\n
- \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n
- \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n
- \ }\r\n ]\r\n }\r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n
- \ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachines/testdiagvm\",\r\n
- \ \"name\": \"testdiagvm\"\r\n}"}
- headers:
- Cache-Control: [no-cache]
+ body: {string: '{"status":"Running"}'}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['20']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:27:12 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ vary: [Accept-Encoding]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- Date: ['Fri, 29 Sep 2017 16:33:15 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['2609']
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586908149767066408?api-version=2017-05-10
+ response:
+ body: {string: '{"status":"Running"}'}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['20']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:27:43 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
- body: '{"properties": {"autoUpgradeMinorVersion": true, "publisher": "Microsoft.OSTCExtensions",
- "protectedSettings": {"storageAccountName": "clitestdiagextsa20170510", "storageAccountSasToken":
- "123"}, "type": "LinuxDiagnostic", "settings": {"ladCfg": {"sampleRateInSeconds":
- 15, "diagnosticMonitorConfiguration": {"eventVolume": "Medium", "syslogEvents":
- {"syslogEventConfiguration": {"LOG_LOCAL2": "LOG_DEBUG", "LOG_LOCAL1": "LOG_DEBUG",
- "LOG_NEWS": "LOG_DEBUG", "LOG_UUCP": "LOG_DEBUG", "LOG_AUTHPRIV": "LOG_DEBUG",
- "LOG_LOCAL7": "LOG_DEBUG", "LOG_KERN": "LOG_DEBUG", "LOG_LOCAL4": "LOG_DEBUG",
- "LOG_AUTH": "LOG_DEBUG", "LOG_CRON": "LOG_DEBUG", "LOG_LOCAL3": "LOG_DEBUG",
- "LOG_DAEMON": "LOG_DEBUG", "LOG_LOCAL5": "LOG_DEBUG", "LOG_USER": "LOG_DEBUG",
- "LOG_LOCAL6": "LOG_DEBUG", "LOG_LOCAL0": "LOG_DEBUG", "LOG_LPR": "LOG_DEBUG",
- "LOG_FTP": "LOG_DEBUG", "LOG_SYSLOG": "LOG_DEBUG", "LOG_MAIL": "LOG_DEBUG"}},
- "performanceCounters": {"performanceCounterConfiguration": [{"condition": "IsAggregate=TRUE",
- "counter": "readbytespersecond", "type": "builtin", "class": "disk", "annotation":
- [{"locale": "en-us", "displayName": "Disk read guest OS"}], "unit": "BytesPerSecond",
- "counterSpecifier": "/builtin/disk/readbytespersecond"}, {"condition": "IsAggregate=TRUE",
- "counter": "writespersecond", "type": "builtin", "class": "disk", "annotation":
- [{"locale": "en-us", "displayName": "Disk writes"}], "unit": "CountPerSecond",
- "counterSpecifier": "/builtin/disk/writespersecond"}, {"condition": "IsAggregate=TRUE",
- "counter": "averagetransfertime", "type": "builtin", "class": "disk", "annotation":
- [{"locale": "en-us", "displayName": "Disk transfer time"}], "unit": "Seconds",
- "counterSpecifier": "/builtin/disk/averagetransfertime"}, {"condition": "IsAggregate=TRUE",
- "counter": "transferspersecond", "type": "builtin", "class": "disk", "annotation":
- [{"locale": "en-us", "displayName": "Disk transfers"}], "unit": "CountPerSecond",
- "counterSpecifier": "/builtin/disk/transferspersecond"}, {"condition": "IsAggregate=TRUE",
- "counter": "writebytespersecond", "type": "builtin", "class": "disk", "annotation":
- [{"locale": "en-us", "displayName": "Disk write guest OS"}], "unit": "BytesPerSecond",
- "counterSpecifier": "/builtin/disk/writebytespersecond"}, {"condition": "IsAggregate=TRUE",
- "counter": "averagereadtime", "type": "builtin", "class": "disk", "annotation":
- [{"locale": "en-us", "displayName": "Disk read time"}], "unit": "Seconds", "counterSpecifier":
- "/builtin/disk/averagereadtime"}, {"condition": "IsAggregate=TRUE", "counter":
- "averagewritetime", "type": "builtin", "class": "disk", "annotation": [{"locale":
- "en-us", "displayName": "Disk write time"}], "unit": "Seconds", "counterSpecifier":
- "/builtin/disk/averagewritetime"}, {"condition": "IsAggregate=TRUE", "counter":
- "bytespersecond", "type": "builtin", "class": "disk", "annotation": [{"locale":
- "en-us", "displayName": "Disk total bytes"}], "unit": "BytesPerSecond", "counterSpecifier":
- "/builtin/disk/bytespersecond"}, {"condition": "IsAggregate=TRUE", "counter":
- "readspersecond", "type": "builtin", "class": "disk", "annotation": [{"locale":
- "en-us", "displayName": "Disk reads"}], "unit": "CountPerSecond", "counterSpecifier":
- "/builtin/disk/readspersecond"}, {"condition": "IsAggregate=TRUE", "counter":
- "averagediskqueuelength", "type": "builtin", "class": "disk", "annotation":
- [{"locale": "en-us", "displayName": "Disk queue length"}], "unit": "Count",
- "counterSpecifier": "/builtin/disk/averagediskqueuelength"}, {"counter": "bytesreceived",
- "type": "builtin", "class": "network", "annotation": [{"locale": "en-us", "displayName":
- "Network in guest OS"}], "unit": "Bytes", "counterSpecifier": "/builtin/network/bytesreceived"},
- {"counter": "bytestotal", "type": "builtin", "class": "network", "annotation":
- [{"locale": "en-us", "displayName": "Network total bytes"}], "unit": "Bytes",
- "counterSpecifier": "/builtin/network/bytestotal"}, {"counter": "bytestransmitted",
- "type": "builtin", "class": "network", "annotation": [{"locale": "en-us", "displayName":
- "Network out guest OS"}], "unit": "Bytes", "counterSpecifier": "/builtin/network/bytestransmitted"},
- {"counter": "totalcollisions", "type": "builtin", "class": "network", "annotation":
- [{"locale": "en-us", "displayName": "Network collisions"}], "unit": "Count",
- "counterSpecifier": "/builtin/network/totalcollisions"}, {"counter": "totalrxerrors",
- "type": "builtin", "class": "network", "annotation": [{"locale": "en-us", "displayName":
- "Packets received errors"}], "unit": "Count", "counterSpecifier": "/builtin/network/totalrxerrors"},
- {"counter": "packetstransmitted", "type": "builtin", "class": "network", "annotation":
- [{"locale": "en-us", "displayName": "Packets sent"}], "unit": "Count", "counterSpecifier":
- "/builtin/network/packetstransmitted"}, {"counter": "packetsreceived", "type":
- "builtin", "class": "network", "annotation": [{"locale": "en-us", "displayName":
- "Packets received"}], "unit": "Count", "counterSpecifier": "/builtin/network/packetsreceived"},
- {"counter": "totaltxerrors", "type": "builtin", "class": "network", "annotation":
- [{"locale": "en-us", "displayName": "Packets sent errors"}], "unit": "Count",
- "counterSpecifier": "/builtin/network/totaltxerrors"}, {"condition": "IsAggregate=TRUE",
- "counter": "transferspersecond", "type": "builtin", "class": "filesystem", "annotation":
- [{"locale": "en-us", "displayName": "Filesystem transfers/sec"}], "unit": "CountPerSecond",
- "counterSpecifier": "/builtin/filesystem/transferspersecond"}, {"condition":
- "IsAggregate=TRUE", "counter": "percentfreespace", "type": "builtin", "class":
- "filesystem", "annotation": [{"locale": "en-us", "displayName": "Filesystem
- % free space"}], "unit": "Percent", "counterSpecifier": "/builtin/filesystem/percentfreespace"},
- {"condition": "IsAggregate=TRUE", "counter": "percentusedspace", "type": "builtin",
- "class": "filesystem", "annotation": [{"locale": "en-us", "displayName": "Filesystem
- % used space"}], "unit": "Percent", "counterSpecifier": "/builtin/filesystem/percentusedspace"},
- {"condition": "IsAggregate=TRUE", "counter": "usedspace", "type": "builtin",
- "class": "filesystem", "annotation": [{"locale": "en-us", "displayName": "Filesystem
- used space"}], "unit": "Bytes", "counterSpecifier": "/builtin/filesystem/usedspace"},
- {"condition": "IsAggregate=TRUE", "counter": "bytesreadpersecond", "type": "builtin",
- "class": "filesystem", "annotation": [{"locale": "en-us", "displayName": "Filesystem
- read bytes/sec"}], "unit": "CountPerSecond", "counterSpecifier": "/builtin/filesystem/bytesreadpersecond"},
- {"condition": "IsAggregate=TRUE", "counter": "freespace", "type": "builtin",
- "class": "filesystem", "annotation": [{"locale": "en-us", "displayName": "Filesystem
- free space"}], "unit": "Bytes", "counterSpecifier": "/builtin/filesystem/freespace"},
- {"condition": "IsAggregate=TRUE", "counter": "percentfreeinodes", "type": "builtin",
- "class": "filesystem", "annotation": [{"locale": "en-us", "displayName": "Filesystem
- % free inodes"}], "unit": "Percent", "counterSpecifier": "/builtin/filesystem/percentfreeinodes"},
- {"condition": "IsAggregate=TRUE", "counter": "bytespersecond", "type": "builtin",
- "class": "filesystem", "annotation": [{"locale": "en-us", "displayName": "Filesystem
- bytes/sec"}], "unit": "BytesPerSecond", "counterSpecifier": "/builtin/filesystem/bytespersecond"},
- {"condition": "IsAggregate=TRUE", "counter": "readspersecond", "type": "builtin",
- "class": "filesystem", "annotation": [{"locale": "en-us", "displayName": "Filesystem
- reads/sec"}], "unit": "CountPerSecond", "counterSpecifier": "/builtin/filesystem/readspersecond"},
- {"condition": "IsAggregate=TRUE", "counter": "byteswrittenpersecond", "type":
- "builtin", "class": "filesystem", "annotation": [{"locale": "en-us", "displayName":
- "Filesystem write bytes/sec"}], "unit": "CountPerSecond", "counterSpecifier":
- "/builtin/filesystem/byteswrittenpersecond"}, {"condition": "IsAggregate=TRUE",
- "counter": "writespersecond", "type": "builtin", "class": "filesystem", "annotation":
- [{"locale": "en-us", "displayName": "Filesystem writes/sec"}], "unit": "CountPerSecond",
- "counterSpecifier": "/builtin/filesystem/writespersecond"}, {"condition": "IsAggregate=TRUE",
- "counter": "percentusedinodes", "type": "builtin", "class": "filesystem", "annotation":
- [{"locale": "en-us", "displayName": "Filesystem % used inodes"}], "unit": "Percent",
- "counterSpecifier": "/builtin/filesystem/percentusedinodes"}, {"condition":
- "IsAggregate=TRUE", "counter": "percentiowaittime", "type": "builtin", "class":
- "processor", "annotation": [{"locale": "en-us", "displayName": "CPU IO wait
- time"}], "unit": "Percent", "counterSpecifier": "/builtin/processor/percentiowaittime"},
- {"condition": "IsAggregate=TRUE", "counter": "percentusertime", "type": "builtin",
- "class": "processor", "annotation": [{"locale": "en-us", "displayName": "CPU
- user time"}], "unit": "Percent", "counterSpecifier": "/builtin/processor/percentusertime"},
- {"condition": "IsAggregate=TRUE", "counter": "percentnicetime", "type": "builtin",
- "class": "processor", "annotation": [{"locale": "en-us", "displayName": "CPU
- nice time"}], "unit": "Percent", "counterSpecifier": "/builtin/processor/percentnicetime"},
- {"condition": "IsAggregate=TRUE", "counter": "percentprocessortime", "type":
- "builtin", "class": "processor", "annotation": [{"locale": "en-us", "displayName":
- "CPU percentage guest OS"}], "unit": "Percent", "counterSpecifier": "/builtin/processor/percentprocessortime"},
- {"condition": "IsAggregate=TRUE", "counter": "percentinterrupttime", "type":
- "builtin", "class": "processor", "annotation": [{"locale": "en-us", "displayName":
- "CPU interrupt time"}], "unit": "Percent", "counterSpecifier": "/builtin/processor/percentinterrupttime"},
- {"condition": "IsAggregate=TRUE", "counter": "percentidletime", "type": "builtin",
- "class": "processor", "annotation": [{"locale": "en-us", "displayName": "CPU
- idle time"}], "unit": "Percent", "counterSpecifier": "/builtin/processor/percentidletime"},
- {"condition": "IsAggregate=TRUE", "counter": "percentprivilegedtime", "type":
- "builtin", "class": "processor", "annotation": [{"locale": "en-us", "displayName":
- "CPU privileged time"}], "unit": "Percent", "counterSpecifier": "/builtin/processor/percentprivilegedtime"},
- {"counter": "availablememory", "type": "builtin", "class": "memory", "annotation":
- [{"locale": "en-us", "displayName": "Memory available"}], "unit": "Bytes", "counterSpecifier":
- "/builtin/memory/availablememory"}, {"counter": "percentusedswap", "type": "builtin",
- "class": "memory", "annotation": [{"locale": "en-us", "displayName": "Swap percent
- used"}], "unit": "Percent", "counterSpecifier": "/builtin/memory/percentusedswap"},
- {"counter": "usedmemory", "type": "builtin", "class": "memory", "annotation":
- [{"locale": "en-us", "displayName": "Memory used"}], "unit": "Bytes", "counterSpecifier":
- "/builtin/memory/usedmemory"}, {"counter": "pagesreadpersec", "type": "builtin",
- "class": "memory", "annotation": [{"locale": "en-us", "displayName": "Page reads"}],
- "unit": "CountPerSecond", "counterSpecifier": "/builtin/memory/pagesreadpersec"},
- {"counter": "availableswap", "type": "builtin", "class": "memory", "annotation":
- [{"locale": "en-us", "displayName": "Swap available"}], "unit": "Bytes", "counterSpecifier":
- "/builtin/memory/availableswap"}, {"counter": "percentavailableswap", "type":
- "builtin", "class": "memory", "annotation": [{"locale": "en-us", "displayName":
- "Swap percent available"}], "unit": "Percent", "counterSpecifier": "/builtin/memory/percentavailableswap"},
- {"counter": "percentavailablememory", "type": "builtin", "class": "memory",
- "annotation": [{"locale": "en-us", "displayName": "Mem. percent available"}],
- "unit": "Percent", "counterSpecifier": "/builtin/memory/percentavailablememory"},
- {"counter": "pagespersec", "type": "builtin", "class": "memory", "annotation":
- [{"locale": "en-us", "displayName": "Pages"}], "unit": "CountPerSecond", "counterSpecifier":
- "/builtin/memory/pagespersec"}, {"counter": "usedswap", "type": "builtin", "class":
- "memory", "annotation": [{"locale": "en-us", "displayName": "Swap used"}], "unit":
- "Bytes", "counterSpecifier": "/builtin/memory/usedswap"}, {"counter": "percentusedmemory",
- "type": "builtin", "class": "memory", "annotation": [{"locale": "en-us", "displayName":
- "Memory percentage"}], "unit": "Percent", "counterSpecifier": "/builtin/memory/percentusedmemory"},
- {"counter": "pageswrittenpersec", "type": "builtin", "class": "memory", "annotation":
- [{"locale": "en-us", "displayName": "Page writes"}], "unit": "CountPerSecond",
- "counterSpecifier": "/builtin/memory/pageswrittenpersec"}]}, "metrics": {"metricAggregation":
- [{"scheduledTransferPeriod": "PT1H"}, {"scheduledTransferPeriod": "PT1M"}],
- "resourceId": "__VM_RESOURCE_ID__"}}}, "StorageAccount": "clitestdiagextsa20170510"},
- "typeHandlerVersion": "2.3"}, "location": "westus"}'
+ body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
- Content-Length: ['12865']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/3.0.0rc1 Azure-SDK-For-Python
- AZURECLI/TEST/2.0.17+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [e4f30ce8-a533-11e7-a2b1-a0b3ccf7272a]
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachines/testdiagvm/extensions/LinuxDiagnostic?api-version=2017-03-30
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586908149767066408?api-version=2017-05-10
response:
- body: {string: "{\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.OSTCExtensions\",\r\n
- \ \"type\": \"LinuxDiagnostic\",\r\n \"typeHandlerVersion\": \"2.3\",\r\n
- \ \"autoUpgradeMinorVersion\": true,\r\n \"settings\": {\"ladCfg\":{\"sampleRateInSeconds\":15,\"diagnosticMonitorConfiguration\":{\"eventVolume\":\"Medium\",\"syslogEvents\":{\"syslogEventConfiguration\":{\"LOG_LOCAL2\":\"LOG_DEBUG\",\"LOG_LOCAL1\":\"LOG_DEBUG\",\"LOG_NEWS\":\"LOG_DEBUG\",\"LOG_UUCP\":\"LOG_DEBUG\",\"LOG_AUTHPRIV\":\"LOG_DEBUG\",\"LOG_LOCAL7\":\"LOG_DEBUG\",\"LOG_KERN\":\"LOG_DEBUG\",\"LOG_LOCAL4\":\"LOG_DEBUG\",\"LOG_AUTH\":\"LOG_DEBUG\",\"LOG_CRON\":\"LOG_DEBUG\",\"LOG_LOCAL3\":\"LOG_DEBUG\",\"LOG_DAEMON\":\"LOG_DEBUG\",\"LOG_LOCAL5\":\"LOG_DEBUG\",\"LOG_USER\":\"LOG_DEBUG\",\"LOG_LOCAL6\":\"LOG_DEBUG\",\"LOG_LOCAL0\":\"LOG_DEBUG\",\"LOG_LPR\":\"LOG_DEBUG\",\"LOG_FTP\":\"LOG_DEBUG\",\"LOG_SYSLOG\":\"LOG_DEBUG\",\"LOG_MAIL\":\"LOG_DEBUG\"}},\"performanceCounters\":{\"performanceCounterConfiguration\":[{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"readbytespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- read guest OS\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/disk/readbytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"writespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- writes\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/disk/writespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagetransfertime\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- transfer time\"}],\"unit\":\"Seconds\",\"counterSpecifier\":\"/builtin/disk/averagetransfertime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"transferspersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- transfers\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/disk/transferspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"writebytespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- write guest OS\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/disk/writebytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagereadtime\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- read time\"}],\"unit\":\"Seconds\",\"counterSpecifier\":\"/builtin/disk/averagereadtime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagewritetime\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- write time\"}],\"unit\":\"Seconds\",\"counterSpecifier\":\"/builtin/disk/averagewritetime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"bytespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- total bytes\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/disk/bytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"readspersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- reads\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/disk/readspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagediskqueuelength\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- queue length\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/disk/averagediskqueuelength\"},{\"counter\":\"bytesreceived\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- in guest OS\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/network/bytesreceived\"},{\"counter\":\"bytestotal\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- total bytes\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/network/bytestotal\"},{\"counter\":\"bytestransmitted\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- out guest OS\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/network/bytestransmitted\"},{\"counter\":\"totalcollisions\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- collisions\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/totalcollisions\"},{\"counter\":\"totalrxerrors\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- received errors\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/totalrxerrors\"},{\"counter\":\"packetstransmitted\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- sent\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/packetstransmitted\"},{\"counter\":\"packetsreceived\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- received\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/packetsreceived\"},{\"counter\":\"totaltxerrors\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- sent errors\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/totaltxerrors\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"transferspersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- transfers/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/transferspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentfreespace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % free space\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentfreespace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentusedspace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % used space\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentusedspace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"usedspace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- used space\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/filesystem/usedspace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"bytesreadpersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- read bytes/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/bytesreadpersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"freespace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- free space\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/filesystem/freespace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentfreeinodes\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % free inodes\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentfreeinodes\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"bytespersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- bytes/sec\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/bytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"readspersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- reads/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/readspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"byteswrittenpersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- write bytes/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/byteswrittenpersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"writespersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- writes/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/writespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentusedinodes\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % used inodes\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentusedinodes\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentiowaittime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- IO wait time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentiowaittime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentusertime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- user time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentusertime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentnicetime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- nice time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentnicetime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentprocessortime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- percentage guest OS\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentprocessortime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentinterrupttime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- interrupt time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentinterrupttime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentidletime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- idle time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentidletime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentprivilegedtime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- privileged time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentprivilegedtime\"},{\"counter\":\"availablememory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Memory
- available\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/availablememory\"},{\"counter\":\"percentusedswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- percent used\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentusedswap\"},{\"counter\":\"usedmemory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Memory
- used\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/usedmemory\"},{\"counter\":\"pagesreadpersec\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Page
- reads\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/memory/pagesreadpersec\"},{\"counter\":\"availableswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- available\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/availableswap\"},{\"counter\":\"percentavailableswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- percent available\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentavailableswap\"},{\"counter\":\"percentavailablememory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Mem.
- percent available\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentavailablememory\"},{\"counter\":\"pagespersec\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Pages\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/memory/pagespersec\"},{\"counter\":\"usedswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- used\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/usedswap\"},{\"counter\":\"percentusedmemory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Memory
- percentage\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentusedmemory\"},{\"counter\":\"pageswrittenpersec\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Page
- writes\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/memory/pageswrittenpersec\"}]},\"metrics\":{\"metricAggregation\":[{\"scheduledTransferPeriod\":\"PT1H\"},{\"scheduledTransferPeriod\":\"PT1M\"}],\"resourceId\":\"__VM_RESOURCE_ID__\"}}},\"StorageAccount\":\"clitestdiagextsa20170510\"},\r\n
- \ \"provisioningState\": \"Creating\"\r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n
- \ \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachines/testdiagvm/extensions/LinuxDiagnostic\",\r\n
- \ \"name\": \"LinuxDiagnostic\"\r\n}"}
- headers:
- Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/58dd5faf-16cc-4a21-a862-922c587de663?api-version=2017-03-30']
- Cache-Control: [no-cache]
- Content-Length: ['12294']
+ body: {string: '{"status":"Running"}'}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['20']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:28:14 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ vary: [Accept-Encoding]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- Date: ['Fri, 29 Sep 2017 16:33:16 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1199']
- status: {code: 201, message: Created}
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586908149767066408?api-version=2017-05-10
+ response:
+ body: {string: '{"status":"Succeeded"}'}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['22']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:28:44 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ vary: [Accept-Encoding]
+ status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/3.0.0rc1 Azure-SDK-For-Python
- AZURECLI/TEST/2.0.17+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [e4f30ce8-a533-11e7-a2b1-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/58dd5faf-16cc-4a21-a862-922c587de663?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
response:
- body: {string: "{\r\n \"startTime\": \"2017-09-29T16:33:14.8998602+00:00\",\r\n
- \ \"endTime\": \"2017-09-29T16:33:34.9983877+00:00\",\r\n \"status\": \"Succeeded\",\r\n
- \ \"name\": \"58dd5faf-16cc-4a21-a862-922c587de663\"\r\n}"}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Resources/deployments/vm_deploy_Ar0LPJgLOgVEtlEiuwaasjvNCPTisggE","name":"vm_deploy_Ar0LPJgLOgVEtlEiuwaasjvNCPTisggE","properties":{"templateHash":"12774386433279199310","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-11-16T00:28:22.7672213Z","duration":"PT3M13.9961975S","correlationId":"54336cd8-c134-48de-98d4-5e70c231b374","providers":[{"namespace":"Microsoft.Storage","resourceTypes":[{"resourceType":"storageAccounts","locations":["westus"]}]},{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/networkSecurityGroups/testdiagvmNSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"testdiagvmNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/publicIPAddresses/testdiagvmPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"testdiagvmPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/networkInterfaces/testdiagvmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"testdiagvmVMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Storage/storageAccounts/vhdstorageb4e70d943e538b","resourceType":"Microsoft.Storage/storageAccounts","resourceName":"vhdstorageb4e70d943e538b"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/networkInterfaces/testdiagvmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"testdiagvmVMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachines/testdiagvm","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"testdiagvm"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachines/testdiagvm"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/networkInterfaces/testdiagvmVMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/networkSecurityGroups/testdiagvmNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/publicIPAddresses/testdiagvmPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Storage/storageAccounts/vhdstorageb4e70d943e538b"}]}}'}
headers:
- Cache-Control: [no-cache]
+ cache-control: [no-cache]
+ content-length: ['3970']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:28:44 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ vary: [Accept-Encoding]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- Date: ['Fri, 29 Sep 2017 16:33:46 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['184']
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachines/testdiagvm?api-version=2017-03-30&$expand=instanceView
+ response:
+ body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"ba54520f-7027-4327-befa-701d649b050c\"\
+ ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\
+ \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \
+ \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\"\
+ ,\r\n \"sku\": \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n\
+ \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \
+ \ \"name\": \"osdisk_b4e70d943e\",\r\n \"createOption\": \"FromImage\"\
+ ,\r\n \"vhd\": {\r\n \"uri\": \"https://vhdstorageb4e70d943e538b.blob.core.windows.net/vhds/osdisk_b4e70d943e.vhd\"\
+ \r\n },\r\n \"caching\": \"ReadWrite\",\r\n \"diskSizeGB\"\
+ : 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\"\
+ : {\r\n \"computerName\": \"testdiagvm\",\r\n \"adminUsername\"\
+ : \"user11\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\"\
+ : false\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\"\
+ : {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/networkInterfaces/testdiagvmVMNic\"\
+ }]},\r\n \"provisioningState\": \"Succeeded\",\r\n \"instanceView\"\
+ : {\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.2.18\",\r\n\
+ \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\
+ ,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"\
+ Ready\",\r\n \"message\": \"Guest Agent is running\",\r\n \
+ \ \"time\": \"2017-11-16T00:28:44+00:00\"\r\n }\r\n \
+ \ ],\r\n \"extensionHandlers\": []\r\n },\r\n \"disks\":\
+ \ [\r\n {\r\n \"name\": \"osdisk_b4e70d943e\",\r\n \
+ \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\
+ ,\r\n \"level\": \"Info\",\r\n \"displayStatus\"\
+ : \"Provisioning succeeded\",\r\n \"time\": \"2017-11-16T00:26:08.6091295+00:00\"\
+ \r\n }\r\n ]\r\n }\r\n ],\r\n \"statuses\"\
+ : [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\
+ \n \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning\
+ \ succeeded\",\r\n \"time\": \"2017-11-16T00:28:08.9668904+00:00\"\
+ \r\n },\r\n {\r\n \"code\": \"PowerState/running\"\
+ ,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\
+ \r\n }\r\n ]\r\n }\r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachines\"\
+ ,\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachines/testdiagvm\"\
+ ,\r\n \"name\": \"testdiagvm\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['2671']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:28:45 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4988,Microsoft.Compute/LowCostGet30Min;39895']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/3.0.0rc1 Azure-SDK-For-Python
- AZURECLI/TEST/2.0.17+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [e4f30ce8-a533-11e7-a2b1-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachines/testdiagvm/extensions/LinuxDiagnostic?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/networkInterfaces/testdiagvmVMNic?api-version=2017-09-01
response:
- body: {string: "{\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.OSTCExtensions\",\r\n
- \ \"type\": \"LinuxDiagnostic\",\r\n \"typeHandlerVersion\": \"2.3\",\r\n
- \ \"autoUpgradeMinorVersion\": true,\r\n \"settings\": {\"ladCfg\":{\"sampleRateInSeconds\":15,\"diagnosticMonitorConfiguration\":{\"eventVolume\":\"Medium\",\"syslogEvents\":{\"syslogEventConfiguration\":{\"LOG_LOCAL2\":\"LOG_DEBUG\",\"LOG_LOCAL1\":\"LOG_DEBUG\",\"LOG_NEWS\":\"LOG_DEBUG\",\"LOG_UUCP\":\"LOG_DEBUG\",\"LOG_AUTHPRIV\":\"LOG_DEBUG\",\"LOG_LOCAL7\":\"LOG_DEBUG\",\"LOG_KERN\":\"LOG_DEBUG\",\"LOG_LOCAL4\":\"LOG_DEBUG\",\"LOG_AUTH\":\"LOG_DEBUG\",\"LOG_CRON\":\"LOG_DEBUG\",\"LOG_LOCAL3\":\"LOG_DEBUG\",\"LOG_DAEMON\":\"LOG_DEBUG\",\"LOG_LOCAL5\":\"LOG_DEBUG\",\"LOG_USER\":\"LOG_DEBUG\",\"LOG_LOCAL6\":\"LOG_DEBUG\",\"LOG_LOCAL0\":\"LOG_DEBUG\",\"LOG_LPR\":\"LOG_DEBUG\",\"LOG_FTP\":\"LOG_DEBUG\",\"LOG_SYSLOG\":\"LOG_DEBUG\",\"LOG_MAIL\":\"LOG_DEBUG\"}},\"performanceCounters\":{\"performanceCounterConfiguration\":[{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"readbytespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- read guest OS\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/disk/readbytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"writespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- writes\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/disk/writespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagetransfertime\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- transfer time\"}],\"unit\":\"Seconds\",\"counterSpecifier\":\"/builtin/disk/averagetransfertime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"transferspersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- transfers\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/disk/transferspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"writebytespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- write guest OS\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/disk/writebytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagereadtime\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- read time\"}],\"unit\":\"Seconds\",\"counterSpecifier\":\"/builtin/disk/averagereadtime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagewritetime\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- write time\"}],\"unit\":\"Seconds\",\"counterSpecifier\":\"/builtin/disk/averagewritetime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"bytespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- total bytes\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/disk/bytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"readspersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- reads\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/disk/readspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagediskqueuelength\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- queue length\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/disk/averagediskqueuelength\"},{\"counter\":\"bytesreceived\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- in guest OS\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/network/bytesreceived\"},{\"counter\":\"bytestotal\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- total bytes\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/network/bytestotal\"},{\"counter\":\"bytestransmitted\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- out guest OS\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/network/bytestransmitted\"},{\"counter\":\"totalcollisions\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- collisions\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/totalcollisions\"},{\"counter\":\"totalrxerrors\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- received errors\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/totalrxerrors\"},{\"counter\":\"packetstransmitted\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- sent\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/packetstransmitted\"},{\"counter\":\"packetsreceived\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- received\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/packetsreceived\"},{\"counter\":\"totaltxerrors\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- sent errors\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/totaltxerrors\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"transferspersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- transfers/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/transferspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentfreespace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % free space\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentfreespace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentusedspace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % used space\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentusedspace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"usedspace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- used space\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/filesystem/usedspace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"bytesreadpersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- read bytes/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/bytesreadpersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"freespace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- free space\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/filesystem/freespace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentfreeinodes\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % free inodes\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentfreeinodes\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"bytespersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- bytes/sec\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/bytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"readspersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- reads/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/readspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"byteswrittenpersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- write bytes/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/byteswrittenpersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"writespersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- writes/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/writespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentusedinodes\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % used inodes\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentusedinodes\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentiowaittime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- IO wait time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentiowaittime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentusertime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- user time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentusertime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentnicetime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- nice time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentnicetime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentprocessortime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- percentage guest OS\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentprocessortime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentinterrupttime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- interrupt time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentinterrupttime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentidletime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- idle time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentidletime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentprivilegedtime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- privileged time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentprivilegedtime\"},{\"counter\":\"availablememory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Memory
- available\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/availablememory\"},{\"counter\":\"percentusedswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- percent used\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentusedswap\"},{\"counter\":\"usedmemory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Memory
- used\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/usedmemory\"},{\"counter\":\"pagesreadpersec\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Page
- reads\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/memory/pagesreadpersec\"},{\"counter\":\"availableswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- available\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/availableswap\"},{\"counter\":\"percentavailableswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- percent available\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentavailableswap\"},{\"counter\":\"percentavailablememory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Mem.
- percent available\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentavailablememory\"},{\"counter\":\"pagespersec\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Pages\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/memory/pagespersec\"},{\"counter\":\"usedswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- used\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/usedswap\"},{\"counter\":\"percentusedmemory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Memory
- percentage\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentusedmemory\"},{\"counter\":\"pageswrittenpersec\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Page
- writes\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/memory/pageswrittenpersec\"}]},\"metrics\":{\"metricAggregation\":[{\"scheduledTransferPeriod\":\"PT1H\"},{\"scheduledTransferPeriod\":\"PT1M\"}],\"resourceId\":\"__VM_RESOURCE_ID__\"}}},\"StorageAccount\":\"clitestdiagextsa20170510\"},\r\n
- \ \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n
- \ \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachines/testdiagvm/extensions/LinuxDiagnostic\",\r\n
- \ \"name\": \"LinuxDiagnostic\"\r\n}"}
- headers:
- Cache-Control: [no-cache]
+ body: {string: "{\r\n \"name\": \"testdiagvmVMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/networkInterfaces/testdiagvmVMNic\"\
+ ,\r\n \"etag\": \"W/\\\"b88c2f9a-a121-4397-9823-ae56fab2c115\\\"\",\r\n \
+ \ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n\
+ \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"7d162176-977b-4028-86e2-d929039ac0c0\"\
+ ,\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigtestdiagvm\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/networkInterfaces/testdiagvmVMNic/ipConfigurations/ipconfigtestdiagvm\"\
+ ,\r\n \"etag\": \"W/\\\"b88c2f9a-a121-4397-9823-ae56fab2c115\\\"\"\
+ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\
+ ,\r\n \"privateIPAddress\": \"10.0.0.8\",\r\n \"privateIPAllocationMethod\"\
+ : \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\":\
+ \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/publicIPAddresses/testdiagvmPublicIP\"\
+ \r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/virtualNetworks/testdiagvmssVNET/subnets/testdiagvmssSubnet\"\
+ \r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\"\
+ : \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n\
+ \ \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"\
+ internalDomainNameSuffix\": \"g2kfypdf2bautjk1lez3owgiab.dx.internal.cloudapp.net\"\
+ \r\n },\r\n \"macAddress\": \"00-0D-3A-31-11-5E\",\r\n \"enableAcceleratedNetworking\"\
+ : false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\"\
+ : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/networkSecurityGroups/testdiagvmNSG\"\
+ \r\n },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachines/testdiagvm\"\
+ \r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\
+ \n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['2569']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:28:45 GMT']
+ etag: [W/"b88c2f9a-a121-4397-9823-ae56fab2c115"]
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
+ Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- Date: ['Fri, 29 Sep 2017 16:33:46 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['12295']
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/publicIPAddresses/testdiagvmPublicIP?api-version=2017-09-01
+ response:
+ body: {string: "{\r\n \"name\": \"testdiagvmPublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/publicIPAddresses/testdiagvmPublicIP\"\
+ ,\r\n \"etag\": \"W/\\\"2c7fdb4c-e1f4-473b-95db-957a08351033\\\"\",\r\n \
+ \ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n\
+ \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"99e45b86-d395-41fa-bdeb-886f2b42726c\"\
+ ,\r\n \"ipAddress\": \"52.160.104.104\",\r\n \"publicIPAddressVersion\"\
+ : \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\"\
+ : 4,\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/networkInterfaces/testdiagvmVMNic/ipConfigurations/ipconfigtestdiagvm\"\
+ \r\n }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\
+ \n \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['1007']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:28:45 GMT']
+ etag: [W/"2c7fdb4c-e1f4-473b-95db-957a08351033"]
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.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']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/3.0.0rc1 Azure-SDK-For-Python
- AZURECLI/TEST/2.0.17+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [f7eb58dc-a533-11e7-9cf1-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachines/testdiagvm?api-version=2017-03-30&$expand=instanceView
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss?api-version=2017-03-30
response:
- body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"214e660e-640e-4843-9a5b-b22fbfefaf54\",\r\n
- \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n
- \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\":
- \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\":
- \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n },\r\n \"osDisk\":
- {\r\n \"osType\": \"Linux\",\r\n \"name\": \"osdisk_32a651c70c\",\r\n
- \ \"createOption\": \"FromImage\",\r\n \"vhd\": {\r\n \"uri\":
- \"https://vhdstorage32a651c70ca5bb.blob.core.windows.net/vhds/osdisk_32a651c70c.vhd\"\r\n
- \ },\r\n \"caching\": \"ReadWrite\",\r\n \"diskSizeGB\":
- 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\":
- {\r\n \"computerName\": \"testdiagvm\",\r\n \"adminUsername\": \"user11\",\r\n
- \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\":
- false\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\":
- {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Network/networkInterfaces/testdiagvmVMNic\"}]},\r\n
- \ \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": {\r\n \"vmAgent\":
- {\r\n \"vmAgentVersion\": \"2.2.17\",\r\n \"statuses\": [\r\n
- \ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n
- \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n
- \ \"message\": \"Guest Agent is running\",\r\n \"time\":
- \"2017-09-29T16:33:47+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\":
- [\r\n {\r\n \"type\": \"Microsoft.OSTCExtensions.LinuxDiagnostic\",\r\n
- \ \"typeHandlerVersion\": \"2.3.9027\",\r\n \"status\":
- {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\":
- \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\":
- \"Plugin enabled\"\r\n }\r\n }\r\n ]\r\n },\r\n
- \ \"disks\": [\r\n {\r\n \"name\": \"osdisk_32a651c70c\",\r\n
- \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n
- \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning
- succeeded\",\r\n \"time\": \"2017-09-29T16:33:15.009253+00:00\"\r\n
- \ }\r\n ]\r\n }\r\n ],\r\n \"extensions\":
- [\r\n {\r\n \"name\": \"LinuxDiagnostic\",\r\n \"type\":
- \"Microsoft.OSTCExtensions.LinuxDiagnostic\",\r\n \"typeHandlerVersion\":
- \"2.3.9027\",\r\n \"statuses\": [\r\n {\r\n \"code\":
- \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n
- \ \"displayStatus\": \"Provisioning succeeded\",\r\n \"message\":
- \"Enable succeeded\"\r\n }\r\n ]\r\n }\r\n ],\r\n
- \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n
- \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning
- succeeded\",\r\n \"time\": \"2017-09-29T16:33:34.9827461+00:00\"\r\n
- \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n
- \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n
- \ }\r\n ]\r\n }\r\n },\r\n \"resources\": [\r\n {\r\n \"properties\":
- {\r\n \"publisher\": \"Microsoft.OSTCExtensions\",\r\n \"type\":
- \"LinuxDiagnostic\",\r\n \"typeHandlerVersion\": \"2.3\",\r\n \"autoUpgradeMinorVersion\":
- true,\r\n \"settings\": {\"ladCfg\":{\"sampleRateInSeconds\":15,\"diagnosticMonitorConfiguration\":{\"eventVolume\":\"Medium\",\"syslogEvents\":{\"syslogEventConfiguration\":{\"LOG_LOCAL2\":\"LOG_DEBUG\",\"LOG_LOCAL1\":\"LOG_DEBUG\",\"LOG_NEWS\":\"LOG_DEBUG\",\"LOG_UUCP\":\"LOG_DEBUG\",\"LOG_AUTHPRIV\":\"LOG_DEBUG\",\"LOG_LOCAL7\":\"LOG_DEBUG\",\"LOG_KERN\":\"LOG_DEBUG\",\"LOG_LOCAL4\":\"LOG_DEBUG\",\"LOG_AUTH\":\"LOG_DEBUG\",\"LOG_CRON\":\"LOG_DEBUG\",\"LOG_LOCAL3\":\"LOG_DEBUG\",\"LOG_DAEMON\":\"LOG_DEBUG\",\"LOG_LOCAL5\":\"LOG_DEBUG\",\"LOG_USER\":\"LOG_DEBUG\",\"LOG_LOCAL6\":\"LOG_DEBUG\",\"LOG_LOCAL0\":\"LOG_DEBUG\",\"LOG_LPR\":\"LOG_DEBUG\",\"LOG_FTP\":\"LOG_DEBUG\",\"LOG_SYSLOG\":\"LOG_DEBUG\",\"LOG_MAIL\":\"LOG_DEBUG\"}},\"performanceCounters\":{\"performanceCounterConfiguration\":[{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"readbytespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- read guest OS\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/disk/readbytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"writespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- writes\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/disk/writespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagetransfertime\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- transfer time\"}],\"unit\":\"Seconds\",\"counterSpecifier\":\"/builtin/disk/averagetransfertime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"transferspersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- transfers\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/disk/transferspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"writebytespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- write guest OS\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/disk/writebytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagereadtime\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- read time\"}],\"unit\":\"Seconds\",\"counterSpecifier\":\"/builtin/disk/averagereadtime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagewritetime\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- write time\"}],\"unit\":\"Seconds\",\"counterSpecifier\":\"/builtin/disk/averagewritetime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"bytespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- total bytes\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/disk/bytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"readspersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- reads\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/disk/readspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagediskqueuelength\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- queue length\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/disk/averagediskqueuelength\"},{\"counter\":\"bytesreceived\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- in guest OS\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/network/bytesreceived\"},{\"counter\":\"bytestotal\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- total bytes\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/network/bytestotal\"},{\"counter\":\"bytestransmitted\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- out guest OS\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/network/bytestransmitted\"},{\"counter\":\"totalcollisions\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- collisions\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/totalcollisions\"},{\"counter\":\"totalrxerrors\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- received errors\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/totalrxerrors\"},{\"counter\":\"packetstransmitted\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- sent\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/packetstransmitted\"},{\"counter\":\"packetsreceived\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- received\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/packetsreceived\"},{\"counter\":\"totaltxerrors\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- sent errors\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/totaltxerrors\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"transferspersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- transfers/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/transferspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentfreespace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % free space\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentfreespace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentusedspace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % used space\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentusedspace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"usedspace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- used space\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/filesystem/usedspace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"bytesreadpersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- read bytes/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/bytesreadpersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"freespace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- free space\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/filesystem/freespace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentfreeinodes\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % free inodes\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentfreeinodes\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"bytespersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- bytes/sec\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/bytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"readspersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- reads/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/readspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"byteswrittenpersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- write bytes/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/byteswrittenpersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"writespersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- writes/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/writespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentusedinodes\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % used inodes\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentusedinodes\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentiowaittime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- IO wait time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentiowaittime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentusertime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- user time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentusertime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentnicetime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- nice time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentnicetime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentprocessortime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- percentage guest OS\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentprocessortime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentinterrupttime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- interrupt time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentinterrupttime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentidletime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- idle time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentidletime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentprivilegedtime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- privileged time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentprivilegedtime\"},{\"counter\":\"availablememory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Memory
- available\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/availablememory\"},{\"counter\":\"percentusedswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- percent used\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentusedswap\"},{\"counter\":\"usedmemory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Memory
- used\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/usedmemory\"},{\"counter\":\"pagesreadpersec\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Page
- reads\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/memory/pagesreadpersec\"},{\"counter\":\"availableswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- available\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/availableswap\"},{\"counter\":\"percentavailableswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- percent available\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentavailableswap\"},{\"counter\":\"percentavailablememory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Mem.
- percent available\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentavailablememory\"},{\"counter\":\"pagespersec\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Pages\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/memory/pagespersec\"},{\"counter\":\"usedswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- used\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/usedswap\"},{\"counter\":\"percentusedmemory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Memory
- percentage\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentusedmemory\"},{\"counter\":\"pageswrittenpersec\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Page
- writes\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/memory/pageswrittenpersec\"}]},\"metrics\":{\"metricAggregation\":[{\"scheduledTransferPeriod\":\"PT1H\"},{\"scheduledTransferPeriod\":\"PT1M\"}],\"resourceId\":\"__VM_RESOURCE_ID__\"}}},\"StorageAccount\":\"clitestdiagextsa20170510\"},\r\n
- \ \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\":
- \"Microsoft.Compute/virtualMachines/extensions\",\r\n \"location\": \"westus\",\r\n
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachines/testdiagvm/extensions/LinuxDiagnostic\",\r\n
- \ \"name\": \"LinuxDiagnostic\"\r\n }\r\n ],\r\n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n
- \ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachines/testdiagvm\",\r\n
- \ \"name\": \"testdiagvm\"\r\n}"}
- headers:
- Cache-Control: [no-cache]
+ body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \
+ \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\"\
+ : {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n\
+ \ \"mode\": \"Manual\",\r\n \"automaticOSUpgrade\": false\r\n \
+ \ },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \
+ \ \"computerNamePrefix\": \"testd1717\",\r\n \"adminUsername\"\
+ : \"user11\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\"\
+ : false\r\n },\r\n \"secrets\": []\r\n },\r\n \"storageProfile\"\
+ : {\r\n \"osDisk\": {\r\n \"createOption\": \"FromImage\"\
+ ,\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\
+ \n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n\
+ \ },\r\n \"imageReference\": {\r\n \"publisher\": \"\
+ Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\"\
+ : \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n }\r\n \
+ \ },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"\
+ name\":\"testd1717Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\"\
+ :false,\"dnsSettings\":{\"dnsServers\":[]},\"ipConfigurations\":[{\"name\"\
+ :\"testd1717IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/virtualNetworks/testdiagvmssVNET/subnets/testdiagvmssSubnet\"\
+ },\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\"\
+ :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/backendAddressPools/testdiagvmssLBBEPool\"\
+ }],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/inboundNatPools/testdiagvmssLBNatPool\"\
+ }]}}]}}]}\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"\
+ overprovision\": true,\r\n \"uniqueId\": \"1f02f354-02b6-430d-8ca4-de587b2e0ed4\"\
+ \r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n\
+ \ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss\"\
+ ,\r\n \"name\": \"testdiagvmss\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['2491']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:28:46 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetVMScaleSet3Min;235,Microsoft.Compute/GetVMScaleSet30Min;1188']
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss?api-version=2017-03-30
+ response:
+ body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \
+ \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\"\
+ : {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n\
+ \ \"mode\": \"Manual\",\r\n \"automaticOSUpgrade\": false\r\n \
+ \ },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \
+ \ \"computerNamePrefix\": \"testd1717\",\r\n \"adminUsername\"\
+ : \"user11\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\"\
+ : false\r\n },\r\n \"secrets\": []\r\n },\r\n \"storageProfile\"\
+ : {\r\n \"osDisk\": {\r\n \"createOption\": \"FromImage\"\
+ ,\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\
+ \n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n\
+ \ },\r\n \"imageReference\": {\r\n \"publisher\": \"\
+ Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\"\
+ : \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n }\r\n \
+ \ },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"\
+ name\":\"testd1717Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\"\
+ :false,\"dnsSettings\":{\"dnsServers\":[]},\"ipConfigurations\":[{\"name\"\
+ :\"testd1717IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/virtualNetworks/testdiagvmssVNET/subnets/testdiagvmssSubnet\"\
+ },\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\"\
+ :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/backendAddressPools/testdiagvmssLBBEPool\"\
+ }],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/inboundNatPools/testdiagvmssLBNatPool\"\
+ }]}}]}}]}\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"\
+ overprovision\": true,\r\n \"uniqueId\": \"1f02f354-02b6-430d-8ca4-de587b2e0ed4\"\
+ \r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n\
+ \ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss\"\
+ ,\r\n \"name\": \"testdiagvmss\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['2491']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:28:46 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetVMScaleSet3Min;234,Microsoft.Compute/GetVMScaleSet30Min;1187']
+ status: {code: 200, message: OK}
+- request:
+ body: 'b''b\''{"sku": {"capacity": 2, "tier": "Standard", "name": "Standard_D1_v2"},
+ "location": "westus", "tags": {}, "properties": {"overprovision": true, "virtualMachineProfile":
+ {"extensionProfile": {"extensions": [{"name": "LinuxDiagnostic", "properties":
+ {"type": "LinuxDiagnostic", "settings": {"StorageAccount": "clitest000002",
+ "ladCfg": {"sampleRateInSeconds": 15, "diagnosticMonitorConfiguration": {"metrics":
+ {"metricAggregation": [{"scheduledTransferPeriod": "PT1H"}, {"scheduledTransferPeriod":
+ "PT1M"}], "resourceId": "__VM_RESOURCE_ID__"}, "eventVolume": "Medium", "syslogEvents":
+ {"syslogEventConfiguration": {"LOG_LOCAL7": "LOG_DEBUG", "LOG_MAIL": "LOG_DEBUG",
+ "LOG_DAEMON": "LOG_DEBUG", "LOG_FTP": "LOG_DEBUG", "LOG_LOCAL6": "LOG_DEBUG",
+ "LOG_LOCAL5": "LOG_DEBUG", "LOG_CRON": "LOG_DEBUG", "LOG_LOCAL0": "LOG_DEBUG",
+ "LOG_LOCAL4": "LOG_DEBUG", "LOG_UUCP": "LOG_DEBUG", "LOG_KERN": "LOG_DEBUG",
+ "LOG_USER": "LOG_DEBUG", "LOG_LOCAL1": "LOG_DEBUG", "LOG_SYSLOG": "LOG_DEBUG",
+ "LOG_LOCAL3": "LOG_DEBUG", "LOG_AUTH": "LOG_DEBUG", "LOG_NEWS": "LOG_DEBUG",
+ "LOG_LOCAL2": "LOG_DEBUG", "LOG_LPR": "LOG_DEBUG", "LOG_AUTHPRIV": "LOG_DEBUG"}},
+ "performanceCounters": {"performanceCounterConfiguration": [{"unit": "BytesPerSecond",
+ "annotation": [{"locale": "en-us", "displayName": "Disk read guest OS"}], "counter":
+ "readbytespersecond", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "disk", "counterSpecifier": "/builtin/disk/readbytespersecond"}, {"unit": "CountPerSecond",
+ "annotation": [{"locale": "en-us", "displayName": "Disk writes"}], "counter":
+ "writespersecond", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "disk", "counterSpecifier": "/builtin/disk/writespersecond"}, {"unit": "Seconds",
+ "annotation": [{"locale": "en-us", "displayName": "Disk transfer time"}], "counter":
+ "averagetransfertime", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "disk", "counterSpecifier": "/builtin/disk/averagetransfertime"}, {"unit": "CountPerSecond",
+ "annotation": [{"locale": "en-us", "displayName": "Disk transfers"}], "counter":
+ "transferspersecond", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "disk", "counterSpecifier": "/builtin/disk/transferspersecond"}, {"unit": "BytesPerSecond",
+ "annotation": [{"locale": "en-us", "displayName": "Disk write guest OS"}], "counter":
+ "writebytespersecond", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "disk", "counterSpecifier": "/builtin/disk/writebytespersecond"}, {"unit": "Seconds",
+ "annotation": [{"locale": "en-us", "displayName": "Disk read time"}], "counter":
+ "averagereadtime", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "disk", "counterSpecifier": "/builtin/disk/averagereadtime"}, {"unit": "Seconds",
+ "annotation": [{"locale": "en-us", "displayName": "Disk write time"}], "counter":
+ "averagewritetime", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "disk", "counterSpecifier": "/builtin/disk/averagewritetime"}, {"unit": "BytesPerSecond",
+ "annotation": [{"locale": "en-us", "displayName": "Disk total bytes"}], "counter":
+ "bytespersecond", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "disk", "counterSpecifier": "/builtin/disk/bytespersecond"}, {"unit": "CountPerSecond",
+ "annotation": [{"locale": "en-us", "displayName": "Disk reads"}], "counter":
+ "readspersecond", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "disk", "counterSpecifier": "/builtin/disk/readspersecond"}, {"unit": "Count",
+ "annotation": [{"locale": "en-us", "displayName": "Disk queue length"}], "counter":
+ "averagediskqueuelength", "condition": "IsAggregate=TRUE", "type": "builtin",
+ "class": "disk", "counterSpecifier": "/builtin/disk/averagediskqueuelength"},
+ {"unit": "Bytes", "annotation": [{"locale": "en-us", "displayName": "Network
+ in guest OS"}], "counter": "bytesreceived", "counterSpecifier": "/builtin/network/bytesreceived",
+ "class": "network", "type": "builtin"}, {"unit": "Bytes", "annotation": [{"locale":
+ "en-us", "displayName": "Network total bytes"}], "counter": "bytestotal", "counterSpecifier":
+ "/builtin/network/bytestotal", "class": "network", "type": "builtin"}, {"unit":
+ "Bytes", "annotation": [{"locale": "en-us", "displayName": "Network out guest
+ OS"}], "counter": "bytestransmitted", "counterSpecifier": "/builtin/network/bytestransmitted",
+ "class": "network", "type": "builtin"}, {"unit": "Count", "annotation": [{"locale":
+ "en-us", "displayName": "Network collisions"}], "counter": "totalcollisions",
+ "counterSpecifier": "/builtin/network/totalcollisions", "class": "network",
+ "type": "builtin"}, {"unit": "Count", "annotation": [{"locale": "en-us", "displayName":
+ "Packets received errors"}], "counter": "totalrxerrors", "counterSpecifier":
+ "/builtin/network/totalrxerrors", "class": "network", "type": "builtin"}, {"unit":
+ "Count", "annotation": [{"locale": "en-us", "displayName": "Packets sent"}],
+ "counter": "packetstransmitted", "counterSpecifier": "/builtin/network/packetstransmitted",
+ "class": "network", "type": "builtin"}, {"unit": "Count", "annotation": [{"locale":
+ "en-us", "displayName": "Packets received"}], "counter": "packetsreceived",
+ "counterSpecifier": "/builtin/network/packetsreceived", "class": "network",
+ "type": "builtin"}, {"unit": "Count", "annotation": [{"locale": "en-us", "displayName":
+ "Packets sent errors"}], "counter": "totaltxerrors", "counterSpecifier": "/builtin/network/totaltxerrors",
+ "class": "network", "type": "builtin"}, {"unit": "CountPerSecond", "annotation":
+ [{"locale": "en-us", "displayName": "Filesystem transfers/sec"}], "counter":
+ "transferspersecond", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "filesystem", "counterSpecifier": "/builtin/filesystem/transferspersecond"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "Filesystem
+ % free space"}], "counter": "percentfreespace", "condition": "IsAggregate=TRUE",
+ "type": "builtin", "class": "filesystem", "counterSpecifier": "/builtin/filesystem/percentfreespace"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "Filesystem
+ % used space"}], "counter": "percentusedspace", "condition": "IsAggregate=TRUE",
+ "type": "builtin", "class": "filesystem", "counterSpecifier": "/builtin/filesystem/percentusedspace"},
+ {"unit": "Bytes", "annotation": [{"locale": "en-us", "displayName": "Filesystem
+ used space"}], "counter": "usedspace", "condition": "IsAggregate=TRUE", "type":
+ "builtin", "class": "filesystem", "counterSpecifier": "/builtin/filesystem/usedspace"},
+ {"unit": "CountPerSecond", "annotation": [{"locale": "en-us", "displayName":
+ "Filesystem read bytes/sec"}], "counter": "bytesreadpersecond", "condition":
+ "IsAggregate=TRUE", "type": "builtin", "class": "filesystem", "counterSpecifier":
+ "/builtin/filesystem/bytesreadpersecond"}, {"unit": "Bytes", "annotation": [{"locale":
+ "en-us", "displayName": "Filesystem free space"}], "counter": "freespace", "condition":
+ "IsAggregate=TRUE", "type": "builtin", "class": "filesystem", "counterSpecifier":
+ "/builtin/filesystem/freespace"}, {"unit": "Percent", "annotation": [{"locale":
+ "en-us", "displayName": "Filesystem % free inodes"}], "counter": "percentfreeinodes",
+ "condition": "IsAggregate=TRUE", "type": "builtin", "class": "filesystem", "counterSpecifier":
+ "/builtin/filesystem/percentfreeinodes"}, {"unit": "BytesPerSecond", "annotation":
+ [{"locale": "en-us", "displayName": "Filesystem bytes/sec"}], "counter": "bytespersecond",
+ "condition": "IsAggregate=TRUE", "type": "builtin", "class": "filesystem", "counterSpecifier":
+ "/builtin/filesystem/bytespersecond"}, {"unit": "CountPerSecond", "annotation":
+ [{"locale": "en-us", "displayName": "Filesystem reads/sec"}], "counter": "readspersecond",
+ "condition": "IsAggregate=TRUE", "type": "builtin", "class": "filesystem", "counterSpecifier":
+ "/builtin/filesystem/readspersecond"}, {"unit": "CountPerSecond", "annotation":
+ [{"locale": "en-us", "displayName": "Filesystem write bytes/sec"}], "counter":
+ "byteswrittenpersecond", "condition": "IsAggregate=TRUE", "type": "builtin",
+ "class": "filesystem", "counterSpecifier": "/builtin/filesystem/byteswrittenpersecond"},
+ {"unit": "CountPerSecond", "annotation": [{"locale": "en-us", "displayName":
+ "Filesystem writes/sec"}], "counter": "writespersecond", "condition": "IsAggregate=TRUE",
+ "type": "builtin", "class": "filesystem", "counterSpecifier": "/builtin/filesystem/writespersecond"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "Filesystem
+ % used inodes"}], "counter": "percentusedinodes", "condition": "IsAggregate=TRUE",
+ "type": "builtin", "class": "filesystem", "counterSpecifier": "/builtin/filesystem/percentusedinodes"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "CPU IO
+ wait time"}], "counter": "percentiowaittime", "condition": "IsAggregate=TRUE",
+ "type": "builtin", "class": "processor", "counterSpecifier": "/builtin/processor/percentiowaittime"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "CPU user
+ time"}], "counter": "percentusertime", "condition": "IsAggregate=TRUE", "type":
+ "builtin", "class": "processor", "counterSpecifier": "/builtin/processor/percentusertime"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "CPU nice
+ time"}], "counter": "percentnicetime", "condition": "IsAggregate=TRUE", "type":
+ "builtin", "class": "processor", "counterSpecifier": "/builtin/processor/percentnicetime"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "CPU percentage
+ guest OS"}], "counter": "percentprocessortime", "condition": "IsAggregate=TRUE",
+ "type": "builtin", "class": "processor", "counterSpecifier": "/builtin/processor/percentprocessortime"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "CPU interrupt
+ time"}], "counter": "percentinterrupttime", "condition": "IsAggregate=TRUE",
+ "type": "builtin", "class": "processor", "counterSpecifier": "/builtin/processor/percentinterrupttime"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "CPU idle
+ time"}], "counter": "percentidletime", "condition": "IsAggregate=TRUE", "type":
+ "builtin", "class": "processor", "counterSpecifier": "/builtin/processor/percentidletime"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "CPU privileged
+ time"}], "counter": "percentprivilegedtime", "condition": "IsAggregate=TRUE",
+ "type": "builtin", "class": "processor", "counterSpecifier": "/builtin/processor/percentprivilegedtime"},
+ {"unit": "Bytes", "annotation": [{"locale": "en-us", "displayName": "Memory
+ available"}], "counter": "availablememory", "counterSpecifier": "/builtin/memory/availablememory",
+ "class": "memory", "type": "builtin"}, {"unit": "Percent", "annotation": [{"locale":
+ "en-us", "displayName": "Swap percent used"}], "counter": "percentusedswap",
+ "counterSpecifier": "/builtin/memory/percentusedswap", "class": "memory", "type":
+ "builtin"}, {"unit": "Bytes", "annotation": [{"locale": "en-us", "displayName":
+ "Memory used"}], "counter": "usedmemory", "counterSpecifier": "/builtin/memory/usedmemory",
+ "class": "memory", "type": "builtin"}, {"unit": "CountPerSecond", "annotation":
+ [{"locale": "en-us", "displayName": "Page reads"}], "counter": "pagesreadpersec",
+ "counterSpecifier": "/builtin/memory/pagesreadpersec", "class": "memory", "type":
+ "builtin"}, {"unit": "Bytes", "annotation": [{"locale": "en-us", "displayName":
+ "Swap available"}], "counter": "availableswap", "counterSpecifier": "/builtin/memory/availableswap",
+ "class": "memory", "type": "builtin"}, {"unit": "Percent", "annotation": [{"locale":
+ "en-us", "displayName": "Swap percent available"}], "counter": "percentavailableswap",
+ "counterSpecifier": "/builtin/memory/percentavailableswap", "class": "memory",
+ "type": "builtin"}, {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName":
+ "Mem. percent available"}], "counter": "percentavailablememory", "counterSpecifier":
+ "/builtin/memory/percentavailablememory", "class": "memory", "type": "builtin"},
+ {"unit": "CountPerSecond", "annotation": [{"locale": "en-us", "displayName":
+ "Pages"}], "counter": "pagespersec", "counterSpecifier": "/builtin/memory/pagespersec",
+ "class": "memory", "type": "builtin"}, {"unit": "Bytes", "annotation": [{"locale":
+ "en-us", "displayName": "Swap used"}], "counter": "usedswap", "counterSpecifier":
+ "/builtin/memory/usedswap", "class": "memory", "type": "builtin"}, {"unit":
+ "Percent", "annotation": [{"locale": "en-us", "displayName": "Memory percentage"}],
+ "counter": "percentusedmemory", "counterSpecifier": "/builtin/memory/percentusedmemory",
+ "class": "memory", "type": "builtin"}, {"unit": "CountPerSecond", "annotation":
+ [{"locale": "en-us", "displayName": "Page writes"}], "counter": "pageswrittenpersec",
+ "counterSpecifier": "/builtin/memory/pageswrittenpersec", "class": "memory",
+ "type": "builtin"}]}}}}, "typeHandlerVersion": "3.0", "publisher": "Microsoft.Azure.Diagnostics",
+ "autoUpgradeMinorVersion": true, "protectedSettings": {"storageAccountName":
+ "clitest000002", "storageAccountSasToken": "123"}}}]}, "osProfile": {"adminUsername":
+ "user11", "computerNamePrefix": "testd1717", "linuxConfiguration": {"disablePasswordAuthentication":
+ false}, "secrets": []}, "storageProfile": {"imageReference": {"offer": "UbuntuServer",
+ "sku": "16.04-LTS", "version": "latest", "publisher": "Canonical"}, "osDisk":
+ {"createOption": "FromImage", "managedDisk": {"storageAccountType": "Standard_LRS"},
+ "caching": "ReadWrite"}}, "networkProfile": {"networkInterfaceConfigurations":
+ [{"name": "testd1717Nic", "properties": {"enableAcceleratedNetworking": false,
+ "ipConfigurations": [{"name": "testd1717IPConfig", "properties": {"privateIPAddressVersion":
+ "IPv4", "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/inboundNatPools/testdiagvmssLBNatPool"}],
+ "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/backendAddressPools/testdiagvmssLBBEPool"}],
+ "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/virtualNetworks/testdiagvmssVNET/subnets/testdiagvmssSubnet"}}}],
+ "primary": true, "dnsSettings": {"dnsServers": []}}}]}}, "singlePlacementGroup":
+ true, "upgradePolicy": {"automaticOSUpgrade": false, "mode": "Manual"}}}\'''''
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Length: ['14702']
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss?api-version=2017-03-30
+ response:
+ body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \
+ \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\"\
+ : {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n\
+ \ \"mode\": \"Manual\",\r\n \"automaticOSUpgrade\": false\r\n \
+ \ },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \
+ \ \"computerNamePrefix\": \"testd1717\",\r\n \"adminUsername\"\
+ : \"user11\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\"\
+ : false\r\n },\r\n \"secrets\": []\r\n },\r\n \"storageProfile\"\
+ : {\r\n \"osDisk\": {\r\n \"createOption\": \"FromImage\"\
+ ,\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\
+ \n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n\
+ \ },\r\n \"imageReference\": {\r\n \"publisher\": \"\
+ Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\"\
+ : \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n }\r\n \
+ \ },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"\
+ name\":\"testd1717Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\"\
+ :false,\"dnsSettings\":{\"dnsServers\":[]},\"ipConfigurations\":[{\"name\"\
+ :\"testd1717IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/virtualNetworks/testdiagvmssVNET/subnets/testdiagvmssSubnet\"\
+ },\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\"\
+ :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/backendAddressPools/testdiagvmssLBBEPool\"\
+ }],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/inboundNatPools/testdiagvmssLBNatPool\"\
+ }]}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\
+ \n {\r\n \"properties\": {\r\n \"publisher\"\
+ : \"Microsoft.Azure.Diagnostics\",\r\n \"type\": \"LinuxDiagnostic\"\
+ ,\r\n \"typeHandlerVersion\": \"3.0\",\r\n \"autoUpgradeMinorVersion\"\
+ : true,\r\n \"settings\": {\"StorageAccount\":\"clitest000002\"\
+ ,\"ladCfg\":{\"sampleRateInSeconds\":15,\"diagnosticMonitorConfiguration\"\
+ :{\"metrics\":{\"metricAggregation\":[{\"scheduledTransferPeriod\":\"PT1H\"\
+ },{\"scheduledTransferPeriod\":\"PT1M\"}],\"resourceId\":\"__VM_RESOURCE_ID__\"\
+ },\"eventVolume\":\"Medium\",\"syslogEvents\":{\"syslogEventConfiguration\"\
+ :{\"LOG_LOCAL7\":\"LOG_DEBUG\",\"LOG_MAIL\":\"LOG_DEBUG\",\"LOG_DAEMON\":\"\
+ LOG_DEBUG\",\"LOG_FTP\":\"LOG_DEBUG\",\"LOG_LOCAL6\":\"LOG_DEBUG\",\"LOG_LOCAL5\"\
+ :\"LOG_DEBUG\",\"LOG_CRON\":\"LOG_DEBUG\",\"LOG_LOCAL0\":\"LOG_DEBUG\",\"\
+ LOG_LOCAL4\":\"LOG_DEBUG\",\"LOG_UUCP\":\"LOG_DEBUG\",\"LOG_KERN\":\"LOG_DEBUG\"\
+ ,\"LOG_USER\":\"LOG_DEBUG\",\"LOG_LOCAL1\":\"LOG_DEBUG\",\"LOG_SYSLOG\":\"\
+ LOG_DEBUG\",\"LOG_LOCAL3\":\"LOG_DEBUG\",\"LOG_AUTH\":\"LOG_DEBUG\",\"LOG_NEWS\"\
+ :\"LOG_DEBUG\",\"LOG_LOCAL2\":\"LOG_DEBUG\",\"LOG_LPR\":\"LOG_DEBUG\",\"LOG_AUTHPRIV\"\
+ :\"LOG_DEBUG\"}},\"performanceCounters\":{\"performanceCounterConfiguration\"\
+ :[{\"unit\":\"BytesPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk read guest OS\"}],\"counter\":\"readbytespersecond\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\"\
+ :\"/builtin/disk/readbytespersecond\"},{\"unit\":\"CountPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Disk writes\"}],\"counter\":\"writespersecond\"\
+ ,\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\"\
+ ,\"counterSpecifier\":\"/builtin/disk/writespersecond\"},{\"unit\":\"Seconds\"\
+ ,\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk transfer time\"\
+ }],\"counter\":\"averagetransfertime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/averagetransfertime\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk transfers\"}],\"counter\":\"transferspersecond\",\"condition\":\"\
+ IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\"\
+ :\"/builtin/disk/transferspersecond\"},{\"unit\":\"BytesPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Disk write guest OS\"}],\"counter\"\
+ :\"writebytespersecond\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/writebytespersecond\"\
+ },{\"unit\":\"Seconds\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk read time\"}],\"counter\":\"averagereadtime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/averagereadtime\"\
+ },{\"unit\":\"Seconds\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk write time\"}],\"counter\":\"averagewritetime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/averagewritetime\"\
+ },{\"unit\":\"BytesPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk total bytes\"}],\"counter\":\"bytespersecond\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/bytespersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk reads\"}],\"counter\":\"readspersecond\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/readspersecond\"\
+ },{\"unit\":\"Count\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk queue length\"}],\"counter\":\"averagediskqueuelength\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\"\
+ :\"/builtin/disk/averagediskqueuelength\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Network in guest OS\"}],\"counter\"\
+ :\"bytesreceived\",\"counterSpecifier\":\"/builtin/network/bytesreceived\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Network total bytes\"}],\"counter\"\
+ :\"bytestotal\",\"counterSpecifier\":\"/builtin/network/bytestotal\",\"class\"\
+ :\"network\",\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\":[{\"\
+ locale\":\"en-us\",\"displayName\":\"Network out guest OS\"}],\"counter\"\
+ :\"bytestransmitted\",\"counterSpecifier\":\"/builtin/network/bytestransmitted\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Network collisions\"}],\"counter\"\
+ :\"totalcollisions\",\"counterSpecifier\":\"/builtin/network/totalcollisions\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets received errors\"}],\"counter\"\
+ :\"totalrxerrors\",\"counterSpecifier\":\"/builtin/network/totalrxerrors\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets sent\"}],\"counter\":\"\
+ packetstransmitted\",\"counterSpecifier\":\"/builtin/network/packetstransmitted\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets received\"}],\"counter\"\
+ :\"packetsreceived\",\"counterSpecifier\":\"/builtin/network/packetsreceived\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets sent errors\"}],\"counter\"\
+ :\"totaltxerrors\",\"counterSpecifier\":\"/builtin/network/totaltxerrors\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"CountPerSecond\"\
+ ,\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem transfers/sec\"\
+ }],\"counter\":\"transferspersecond\",\"condition\":\"IsAggregate=TRUE\",\"\
+ type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/transferspersecond\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem % free space\"}],\"counter\":\"percentfreespace\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/percentfreespace\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem % used space\"}],\"counter\"\
+ :\"percentusedspace\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/percentusedspace\"\
+ },{\"unit\":\"Bytes\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem used space\"}],\"counter\":\"usedspace\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/usedspace\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem read bytes/sec\"}],\"counter\":\"bytesreadpersecond\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/bytesreadpersecond\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem free space\"}],\"counter\"\
+ :\"freespace\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\",\"\
+ class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/freespace\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem % free inodes\"}],\"counter\":\"percentfreeinodes\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/percentfreeinodes\"},{\"unit\":\"BytesPerSecond\",\"\
+ annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem bytes/sec\"\
+ }],\"counter\":\"bytespersecond\",\"condition\":\"IsAggregate=TRUE\",\"type\"\
+ :\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/bytespersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem reads/sec\"}],\"counter\":\"readspersecond\",\"condition\":\"\
+ IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/readspersecond\"},{\"unit\":\"CountPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem write bytes/sec\"}],\"\
+ counter\":\"byteswrittenpersecond\",\"condition\":\"IsAggregate=TRUE\",\"\
+ type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/byteswrittenpersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem writes/sec\"}],\"counter\":\"writespersecond\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/writespersecond\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem % used inodes\"}],\"\
+ counter\":\"percentusedinodes\",\"condition\":\"IsAggregate=TRUE\",\"type\"\
+ :\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/percentusedinodes\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU IO wait time\"}],\"counter\":\"percentiowaittime\",\"condition\":\"\
+ IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\"\
+ :\"/builtin/processor/percentiowaittime\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"CPU user time\"}],\"counter\":\"\
+ percentusertime\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentusertime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU nice time\"}],\"counter\":\"percentnicetime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentnicetime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU percentage guest OS\"}],\"counter\":\"percentprocessortime\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\"\
+ :\"/builtin/processor/percentprocessortime\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"CPU interrupt time\"}],\"counter\"\
+ :\"percentinterrupttime\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentinterrupttime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU idle time\"}],\"counter\":\"percentidletime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentidletime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU privileged time\"}],\"counter\":\"percentprivilegedtime\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\"\
+ :\"/builtin/processor/percentprivilegedtime\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Memory available\"}],\"counter\"\
+ :\"availablememory\",\"counterSpecifier\":\"/builtin/memory/availablememory\"\
+ ,\"class\":\"memory\",\"type\":\"builtin\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Swap percent used\"}],\"counter\"\
+ :\"percentusedswap\",\"counterSpecifier\":\"/builtin/memory/percentusedswap\"\
+ ,\"class\":\"memory\",\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Memory used\"}],\"counter\":\"usedmemory\"\
+ ,\"counterSpecifier\":\"/builtin/memory/usedmemory\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\"\
+ :\"en-us\",\"displayName\":\"Page reads\"}],\"counter\":\"pagesreadpersec\"\
+ ,\"counterSpecifier\":\"/builtin/memory/pagesreadpersec\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\":[{\"locale\":\"\
+ en-us\",\"displayName\":\"Swap available\"}],\"counter\":\"availableswap\"\
+ ,\"counterSpecifier\":\"/builtin/memory/availableswap\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"\
+ en-us\",\"displayName\":\"Swap percent available\"}],\"counter\":\"percentavailableswap\"\
+ ,\"counterSpecifier\":\"/builtin/memory/percentavailableswap\",\"class\":\"\
+ memory\",\"type\":\"builtin\"},{\"unit\":\"Percent\",\"annotation\":[{\"locale\"\
+ :\"en-us\",\"displayName\":\"Mem. percent available\"}],\"counter\":\"percentavailablememory\"\
+ ,\"counterSpecifier\":\"/builtin/memory/percentavailablememory\",\"class\"\
+ :\"memory\",\"type\":\"builtin\"},{\"unit\":\"CountPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Pages\"}],\"counter\":\"pagespersec\"\
+ ,\"counterSpecifier\":\"/builtin/memory/pagespersec\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\":[{\"locale\":\"\
+ en-us\",\"displayName\":\"Swap used\"}],\"counter\":\"usedswap\",\"counterSpecifier\"\
+ :\"/builtin/memory/usedswap\",\"class\":\"memory\",\"type\":\"builtin\"},{\"\
+ unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"\
+ Memory percentage\"}],\"counter\":\"percentusedmemory\",\"counterSpecifier\"\
+ :\"/builtin/memory/percentusedmemory\",\"class\":\"memory\",\"type\":\"builtin\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Page writes\"}],\"counter\":\"pageswrittenpersec\",\"counterSpecifier\"\
+ :\"/builtin/memory/pageswrittenpersec\",\"class\":\"memory\",\"type\":\"builtin\"\
+ }]}}}}\r\n },\r\n \"name\": \"LinuxDiagnostic\"\r\n\
+ \ }\r\n ]\r\n }\r\n },\r\n \"provisioningState\"\
+ : \"Updating\",\r\n \"overprovision\": true,\r\n \"uniqueId\": \"1f02f354-02b6-430d-8ca4-de587b2e0ed4\"\
+ \r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n\
+ \ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss\"\
+ ,\r\n \"name\": \"testdiagvmss\"\r\n}"}
+ headers:
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/38b54d5f-7ffc-42d3-bdda-7f2b262bb658?api-version=2017-03-30']
+ cache-control: [no-cache]
+ content-length: ['14636']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:28:47 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/CreateVMScaleSet3Min;39,Microsoft.Compute/CreateVMScaleSet30Min;198,Microsoft.Compute/VmssQueuedVMOperations;1800']
+ x-ms-ratelimit-remaining-subscription-writes: ['1198']
+ x-ms-request-charge: ['0']
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- Date: ['Fri, 29 Sep 2017 16:33:47 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['15801']
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/38b54d5f-7ffc-42d3-bdda-7f2b262bb658?api-version=2017-03-30
+ response:
+ body: {string: "{\r\n \"startTime\": \"2017-11-16T00:28:46.0934079+00:00\",\r\
+ \n \"endTime\": \"2017-11-16T00:28:46.3902942+00:00\",\r\n \"status\": \"\
+ Succeeded\",\r\n \"name\": \"38b54d5f-7ffc-42d3-bdda-7f2b262bb658\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['184']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:29:18 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;2132,Microsoft.Compute/GetOperation30Min;17857']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
- Content-Length: ['0']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/3.0.0rc1 Azure-SDK-For-Python
- AZURECLI/TEST/2.0.17+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [f812dde8-a533-11e7-9009-a0b3ccf7272a]
- method: DELETE
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachines/testdiagvm/extensions/LinuxDiagnostic?api-version=2017-03-30
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss?api-version=2017-03-30
+ response:
+ body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \
+ \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\"\
+ : {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n\
+ \ \"mode\": \"Manual\",\r\n \"automaticOSUpgrade\": false\r\n \
+ \ },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \
+ \ \"computerNamePrefix\": \"testd1717\",\r\n \"adminUsername\"\
+ : \"user11\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\"\
+ : false\r\n },\r\n \"secrets\": []\r\n },\r\n \"storageProfile\"\
+ : {\r\n \"osDisk\": {\r\n \"createOption\": \"FromImage\"\
+ ,\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\
+ \n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n\
+ \ },\r\n \"imageReference\": {\r\n \"publisher\": \"\
+ Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\"\
+ : \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n }\r\n \
+ \ },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"\
+ name\":\"testd1717Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\"\
+ :false,\"dnsSettings\":{\"dnsServers\":[]},\"ipConfigurations\":[{\"name\"\
+ :\"testd1717IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/virtualNetworks/testdiagvmssVNET/subnets/testdiagvmssSubnet\"\
+ },\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\"\
+ :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/backendAddressPools/testdiagvmssLBBEPool\"\
+ }],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/inboundNatPools/testdiagvmssLBNatPool\"\
+ }]}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\
+ \n {\r\n \"properties\": {\r\n \"publisher\"\
+ : \"Microsoft.Azure.Diagnostics\",\r\n \"type\": \"LinuxDiagnostic\"\
+ ,\r\n \"typeHandlerVersion\": \"3.0\",\r\n \"autoUpgradeMinorVersion\"\
+ : true,\r\n \"settings\": {\"StorageAccount\":\"clitest000002\"\
+ ,\"ladCfg\":{\"sampleRateInSeconds\":15,\"diagnosticMonitorConfiguration\"\
+ :{\"metrics\":{\"metricAggregation\":[{\"scheduledTransferPeriod\":\"PT1H\"\
+ },{\"scheduledTransferPeriod\":\"PT1M\"}],\"resourceId\":\"__VM_RESOURCE_ID__\"\
+ },\"eventVolume\":\"Medium\",\"syslogEvents\":{\"syslogEventConfiguration\"\
+ :{\"LOG_LOCAL7\":\"LOG_DEBUG\",\"LOG_MAIL\":\"LOG_DEBUG\",\"LOG_DAEMON\":\"\
+ LOG_DEBUG\",\"LOG_FTP\":\"LOG_DEBUG\",\"LOG_LOCAL6\":\"LOG_DEBUG\",\"LOG_LOCAL5\"\
+ :\"LOG_DEBUG\",\"LOG_CRON\":\"LOG_DEBUG\",\"LOG_LOCAL0\":\"LOG_DEBUG\",\"\
+ LOG_LOCAL4\":\"LOG_DEBUG\",\"LOG_UUCP\":\"LOG_DEBUG\",\"LOG_KERN\":\"LOG_DEBUG\"\
+ ,\"LOG_USER\":\"LOG_DEBUG\",\"LOG_LOCAL1\":\"LOG_DEBUG\",\"LOG_SYSLOG\":\"\
+ LOG_DEBUG\",\"LOG_LOCAL3\":\"LOG_DEBUG\",\"LOG_AUTH\":\"LOG_DEBUG\",\"LOG_NEWS\"\
+ :\"LOG_DEBUG\",\"LOG_LOCAL2\":\"LOG_DEBUG\",\"LOG_LPR\":\"LOG_DEBUG\",\"LOG_AUTHPRIV\"\
+ :\"LOG_DEBUG\"}},\"performanceCounters\":{\"performanceCounterConfiguration\"\
+ :[{\"unit\":\"BytesPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk read guest OS\"}],\"counter\":\"readbytespersecond\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\"\
+ :\"/builtin/disk/readbytespersecond\"},{\"unit\":\"CountPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Disk writes\"}],\"counter\":\"writespersecond\"\
+ ,\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\"\
+ ,\"counterSpecifier\":\"/builtin/disk/writespersecond\"},{\"unit\":\"Seconds\"\
+ ,\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk transfer time\"\
+ }],\"counter\":\"averagetransfertime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/averagetransfertime\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk transfers\"}],\"counter\":\"transferspersecond\",\"condition\":\"\
+ IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\"\
+ :\"/builtin/disk/transferspersecond\"},{\"unit\":\"BytesPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Disk write guest OS\"}],\"counter\"\
+ :\"writebytespersecond\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/writebytespersecond\"\
+ },{\"unit\":\"Seconds\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk read time\"}],\"counter\":\"averagereadtime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/averagereadtime\"\
+ },{\"unit\":\"Seconds\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk write time\"}],\"counter\":\"averagewritetime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/averagewritetime\"\
+ },{\"unit\":\"BytesPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk total bytes\"}],\"counter\":\"bytespersecond\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/bytespersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk reads\"}],\"counter\":\"readspersecond\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/readspersecond\"\
+ },{\"unit\":\"Count\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk queue length\"}],\"counter\":\"averagediskqueuelength\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\"\
+ :\"/builtin/disk/averagediskqueuelength\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Network in guest OS\"}],\"counter\"\
+ :\"bytesreceived\",\"counterSpecifier\":\"/builtin/network/bytesreceived\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Network total bytes\"}],\"counter\"\
+ :\"bytestotal\",\"counterSpecifier\":\"/builtin/network/bytestotal\",\"class\"\
+ :\"network\",\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\":[{\"\
+ locale\":\"en-us\",\"displayName\":\"Network out guest OS\"}],\"counter\"\
+ :\"bytestransmitted\",\"counterSpecifier\":\"/builtin/network/bytestransmitted\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Network collisions\"}],\"counter\"\
+ :\"totalcollisions\",\"counterSpecifier\":\"/builtin/network/totalcollisions\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets received errors\"}],\"counter\"\
+ :\"totalrxerrors\",\"counterSpecifier\":\"/builtin/network/totalrxerrors\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets sent\"}],\"counter\":\"\
+ packetstransmitted\",\"counterSpecifier\":\"/builtin/network/packetstransmitted\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets received\"}],\"counter\"\
+ :\"packetsreceived\",\"counterSpecifier\":\"/builtin/network/packetsreceived\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets sent errors\"}],\"counter\"\
+ :\"totaltxerrors\",\"counterSpecifier\":\"/builtin/network/totaltxerrors\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"CountPerSecond\"\
+ ,\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem transfers/sec\"\
+ }],\"counter\":\"transferspersecond\",\"condition\":\"IsAggregate=TRUE\",\"\
+ type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/transferspersecond\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem % free space\"}],\"counter\":\"percentfreespace\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/percentfreespace\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem % used space\"}],\"counter\"\
+ :\"percentusedspace\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/percentusedspace\"\
+ },{\"unit\":\"Bytes\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem used space\"}],\"counter\":\"usedspace\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/usedspace\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem read bytes/sec\"}],\"counter\":\"bytesreadpersecond\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/bytesreadpersecond\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem free space\"}],\"counter\"\
+ :\"freespace\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\",\"\
+ class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/freespace\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem % free inodes\"}],\"counter\":\"percentfreeinodes\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/percentfreeinodes\"},{\"unit\":\"BytesPerSecond\",\"\
+ annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem bytes/sec\"\
+ }],\"counter\":\"bytespersecond\",\"condition\":\"IsAggregate=TRUE\",\"type\"\
+ :\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/bytespersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem reads/sec\"}],\"counter\":\"readspersecond\",\"condition\":\"\
+ IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/readspersecond\"},{\"unit\":\"CountPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem write bytes/sec\"}],\"\
+ counter\":\"byteswrittenpersecond\",\"condition\":\"IsAggregate=TRUE\",\"\
+ type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/byteswrittenpersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem writes/sec\"}],\"counter\":\"writespersecond\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/writespersecond\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem % used inodes\"}],\"\
+ counter\":\"percentusedinodes\",\"condition\":\"IsAggregate=TRUE\",\"type\"\
+ :\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/percentusedinodes\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU IO wait time\"}],\"counter\":\"percentiowaittime\",\"condition\":\"\
+ IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\"\
+ :\"/builtin/processor/percentiowaittime\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"CPU user time\"}],\"counter\":\"\
+ percentusertime\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentusertime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU nice time\"}],\"counter\":\"percentnicetime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentnicetime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU percentage guest OS\"}],\"counter\":\"percentprocessortime\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\"\
+ :\"/builtin/processor/percentprocessortime\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"CPU interrupt time\"}],\"counter\"\
+ :\"percentinterrupttime\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentinterrupttime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU idle time\"}],\"counter\":\"percentidletime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentidletime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU privileged time\"}],\"counter\":\"percentprivilegedtime\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\"\
+ :\"/builtin/processor/percentprivilegedtime\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Memory available\"}],\"counter\"\
+ :\"availablememory\",\"counterSpecifier\":\"/builtin/memory/availablememory\"\
+ ,\"class\":\"memory\",\"type\":\"builtin\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Swap percent used\"}],\"counter\"\
+ :\"percentusedswap\",\"counterSpecifier\":\"/builtin/memory/percentusedswap\"\
+ ,\"class\":\"memory\",\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Memory used\"}],\"counter\":\"usedmemory\"\
+ ,\"counterSpecifier\":\"/builtin/memory/usedmemory\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\"\
+ :\"en-us\",\"displayName\":\"Page reads\"}],\"counter\":\"pagesreadpersec\"\
+ ,\"counterSpecifier\":\"/builtin/memory/pagesreadpersec\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\":[{\"locale\":\"\
+ en-us\",\"displayName\":\"Swap available\"}],\"counter\":\"availableswap\"\
+ ,\"counterSpecifier\":\"/builtin/memory/availableswap\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"\
+ en-us\",\"displayName\":\"Swap percent available\"}],\"counter\":\"percentavailableswap\"\
+ ,\"counterSpecifier\":\"/builtin/memory/percentavailableswap\",\"class\":\"\
+ memory\",\"type\":\"builtin\"},{\"unit\":\"Percent\",\"annotation\":[{\"locale\"\
+ :\"en-us\",\"displayName\":\"Mem. percent available\"}],\"counter\":\"percentavailablememory\"\
+ ,\"counterSpecifier\":\"/builtin/memory/percentavailablememory\",\"class\"\
+ :\"memory\",\"type\":\"builtin\"},{\"unit\":\"CountPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Pages\"}],\"counter\":\"pagespersec\"\
+ ,\"counterSpecifier\":\"/builtin/memory/pagespersec\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\":[{\"locale\":\"\
+ en-us\",\"displayName\":\"Swap used\"}],\"counter\":\"usedswap\",\"counterSpecifier\"\
+ :\"/builtin/memory/usedswap\",\"class\":\"memory\",\"type\":\"builtin\"},{\"\
+ unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"\
+ Memory percentage\"}],\"counter\":\"percentusedmemory\",\"counterSpecifier\"\
+ :\"/builtin/memory/percentusedmemory\",\"class\":\"memory\",\"type\":\"builtin\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Page writes\"}],\"counter\":\"pageswrittenpersec\",\"counterSpecifier\"\
+ :\"/builtin/memory/pageswrittenpersec\",\"class\":\"memory\",\"type\":\"builtin\"\
+ }]}}}}\r\n },\r\n \"name\": \"LinuxDiagnostic\"\r\n\
+ \ }\r\n ]\r\n }\r\n },\r\n \"provisioningState\"\
+ : \"Succeeded\",\r\n \"overprovision\": true,\r\n \"uniqueId\": \"1f02f354-02b6-430d-8ca4-de587b2e0ed4\"\
+ \r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n\
+ \ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss\"\
+ ,\r\n \"name\": \"testdiagvmss\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['14637']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:29:19 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetVMScaleSet3Min;231,Microsoft.Compute/GetVMScaleSet30Min;1183']
+ status: {code: 200, message: OK}
+- request:
+ body: '{"instanceIds": ["*"]}'
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Length: ['22']
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: POST
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss/manualupgrade?api-version=2017-03-30
response:
body: {string: ''}
headers:
- Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/861178b3-f96f-478c-be47-a98adc0275bd?api-version=2017-03-30']
- Cache-Control: [no-cache]
- Content-Length: ['0']
- Date: ['Fri, 29 Sep 2017 16:33:48 GMT']
- Expires: ['-1']
- Location: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/861178b3-f96f-478c-be47-a98adc0275bd?monitor=true&api-version=2017-03-30']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1199']
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/502e0fe6-02b3-47c0-9f9e-42624d6ef79d?api-version=2017-03-30']
+ cache-control: [no-cache]
+ content-length: ['0']
+ date: ['Thu, 16 Nov 2017 00:29:20 GMT']
+ expires: ['-1']
+ location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/502e0fe6-02b3-47c0-9f9e-42624d6ef79d?monitor=true&api-version=2017-03-30']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/VMScaleSetActions3Min;239,Microsoft.Compute/VMScaleSetActions30Min;1199,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1198,Microsoft.Compute/VmssQueuedVMOperations;1798']
+ x-ms-ratelimit-remaining-subscription-writes: ['1197']
+ x-ms-request-charge: ['2']
status: {code: 202, message: Accepted}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/3.0.0rc1 Azure-SDK-For-Python
- AZURECLI/TEST/2.0.17+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [f812dde8-a533-11e7-9009-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/861178b3-f96f-478c-be47-a98adc0275bd?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/502e0fe6-02b3-47c0-9f9e-42624d6ef79d?api-version=2017-03-30
response:
- body: {string: "{\r\n \"startTime\": \"2017-09-29T16:33:46.8114521+00:00\",\r\n
- \ \"endTime\": \"2017-09-29T16:34:06.8436503+00:00\",\r\n \"status\": \"Succeeded\",\r\n
- \ \"name\": \"861178b3-f96f-478c-be47-a98adc0275bd\"\r\n}"}
+ body: {string: "{\r\n \"startTime\": \"2017-11-16T00:29:19.1760787+00:00\",\r\
+ \n \"endTime\": \"2017-11-16T00:29:35.6611305+00:00\",\r\n \"status\": \"\
+ Succeeded\",\r\n \"name\": \"502e0fe6-02b3-47c0-9f9e-42624d6ef79d\"\r\n}"}
headers:
- Cache-Control: [no-cache]
- Content-Type: [application/json; charset=utf-8]
- Date: ['Fri, 29 Sep 2017 16:34:18 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
+ cache-control: [no-cache]
content-length: ['184']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:29:50 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;2137,Microsoft.Compute/GetOperation30Min;17854']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/3.0.0rc1 Azure-SDK-For-Python
- AZURECLI/TEST/2.0.17+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [0ad72678-a534-11e7-ad9f-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachines/testdiagvm?api-version=2017-03-30&$expand=instanceView
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss?api-version=2017-03-30
response:
- body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"214e660e-640e-4843-9a5b-b22fbfefaf54\",\r\n
- \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n
- \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\":
- \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\":
- \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n },\r\n \"osDisk\":
- {\r\n \"osType\": \"Linux\",\r\n \"name\": \"osdisk_32a651c70c\",\r\n
- \ \"createOption\": \"FromImage\",\r\n \"vhd\": {\r\n \"uri\":
- \"https://vhdstorage32a651c70ca5bb.blob.core.windows.net/vhds/osdisk_32a651c70c.vhd\"\r\n
- \ },\r\n \"caching\": \"ReadWrite\",\r\n \"diskSizeGB\":
- 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\":
- {\r\n \"computerName\": \"testdiagvm\",\r\n \"adminUsername\": \"user11\",\r\n
- \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\":
- false\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\":
- {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Network/networkInterfaces/testdiagvmVMNic\"}]},\r\n
- \ \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": {\r\n \"vmAgent\":
- {\r\n \"vmAgentVersion\": \"2.2.17\",\r\n \"statuses\": [\r\n
- \ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n
- \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n
- \ \"message\": \"Guest Agent is running\",\r\n \"time\":
- \"2017-09-29T16:34:17+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\":
- []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"osdisk_32a651c70c\",\r\n
- \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n
- \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning
- succeeded\",\r\n \"time\": \"2017-09-29T16:33:46.8427031+00:00\"\r\n
- \ }\r\n ]\r\n }\r\n ],\r\n \"statuses\":
- [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n
- \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning
- succeeded\",\r\n \"time\": \"2017-09-29T16:34:06.8124101+00:00\"\r\n
- \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n
- \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n
- \ }\r\n ]\r\n }\r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n
- \ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachines/testdiagvm\",\r\n
- \ \"name\": \"testdiagvm\"\r\n}"}
- headers:
- Cache-Control: [no-cache]
+ body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \
+ \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\"\
+ : {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n\
+ \ \"mode\": \"Manual\",\r\n \"automaticOSUpgrade\": false\r\n \
+ \ },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \
+ \ \"computerNamePrefix\": \"testd1717\",\r\n \"adminUsername\"\
+ : \"user11\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\"\
+ : false\r\n },\r\n \"secrets\": []\r\n },\r\n \"storageProfile\"\
+ : {\r\n \"osDisk\": {\r\n \"createOption\": \"FromImage\"\
+ ,\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\
+ \n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n\
+ \ },\r\n \"imageReference\": {\r\n \"publisher\": \"\
+ Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\"\
+ : \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n }\r\n \
+ \ },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"\
+ name\":\"testd1717Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\"\
+ :false,\"dnsSettings\":{\"dnsServers\":[]},\"ipConfigurations\":[{\"name\"\
+ :\"testd1717IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/virtualNetworks/testdiagvmssVNET/subnets/testdiagvmssSubnet\"\
+ },\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\"\
+ :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/backendAddressPools/testdiagvmssLBBEPool\"\
+ }],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/loadBalancers/testdiagvmssLB/inboundNatPools/testdiagvmssLBNatPool\"\
+ }]}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\
+ \n {\r\n \"properties\": {\r\n \"publisher\"\
+ : \"Microsoft.Azure.Diagnostics\",\r\n \"type\": \"LinuxDiagnostic\"\
+ ,\r\n \"typeHandlerVersion\": \"3.0\",\r\n \"autoUpgradeMinorVersion\"\
+ : true,\r\n \"settings\": {\"StorageAccount\":\"clitest000002\"\
+ ,\"ladCfg\":{\"sampleRateInSeconds\":15,\"diagnosticMonitorConfiguration\"\
+ :{\"metrics\":{\"metricAggregation\":[{\"scheduledTransferPeriod\":\"PT1H\"\
+ },{\"scheduledTransferPeriod\":\"PT1M\"}],\"resourceId\":\"__VM_RESOURCE_ID__\"\
+ },\"eventVolume\":\"Medium\",\"syslogEvents\":{\"syslogEventConfiguration\"\
+ :{\"LOG_LOCAL7\":\"LOG_DEBUG\",\"LOG_MAIL\":\"LOG_DEBUG\",\"LOG_DAEMON\":\"\
+ LOG_DEBUG\",\"LOG_FTP\":\"LOG_DEBUG\",\"LOG_LOCAL6\":\"LOG_DEBUG\",\"LOG_LOCAL5\"\
+ :\"LOG_DEBUG\",\"LOG_CRON\":\"LOG_DEBUG\",\"LOG_LOCAL0\":\"LOG_DEBUG\",\"\
+ LOG_LOCAL4\":\"LOG_DEBUG\",\"LOG_UUCP\":\"LOG_DEBUG\",\"LOG_KERN\":\"LOG_DEBUG\"\
+ ,\"LOG_USER\":\"LOG_DEBUG\",\"LOG_LOCAL1\":\"LOG_DEBUG\",\"LOG_SYSLOG\":\"\
+ LOG_DEBUG\",\"LOG_LOCAL3\":\"LOG_DEBUG\",\"LOG_AUTH\":\"LOG_DEBUG\",\"LOG_NEWS\"\
+ :\"LOG_DEBUG\",\"LOG_LOCAL2\":\"LOG_DEBUG\",\"LOG_LPR\":\"LOG_DEBUG\",\"LOG_AUTHPRIV\"\
+ :\"LOG_DEBUG\"}},\"performanceCounters\":{\"performanceCounterConfiguration\"\
+ :[{\"unit\":\"BytesPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk read guest OS\"}],\"counter\":\"readbytespersecond\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\"\
+ :\"/builtin/disk/readbytespersecond\"},{\"unit\":\"CountPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Disk writes\"}],\"counter\":\"writespersecond\"\
+ ,\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\"\
+ ,\"counterSpecifier\":\"/builtin/disk/writespersecond\"},{\"unit\":\"Seconds\"\
+ ,\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk transfer time\"\
+ }],\"counter\":\"averagetransfertime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/averagetransfertime\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk transfers\"}],\"counter\":\"transferspersecond\",\"condition\":\"\
+ IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\"\
+ :\"/builtin/disk/transferspersecond\"},{\"unit\":\"BytesPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Disk write guest OS\"}],\"counter\"\
+ :\"writebytespersecond\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/writebytespersecond\"\
+ },{\"unit\":\"Seconds\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk read time\"}],\"counter\":\"averagereadtime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/averagereadtime\"\
+ },{\"unit\":\"Seconds\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk write time\"}],\"counter\":\"averagewritetime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/averagewritetime\"\
+ },{\"unit\":\"BytesPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk total bytes\"}],\"counter\":\"bytespersecond\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/bytespersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk reads\"}],\"counter\":\"readspersecond\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/readspersecond\"\
+ },{\"unit\":\"Count\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk queue length\"}],\"counter\":\"averagediskqueuelength\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\"\
+ :\"/builtin/disk/averagediskqueuelength\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Network in guest OS\"}],\"counter\"\
+ :\"bytesreceived\",\"counterSpecifier\":\"/builtin/network/bytesreceived\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Network total bytes\"}],\"counter\"\
+ :\"bytestotal\",\"counterSpecifier\":\"/builtin/network/bytestotal\",\"class\"\
+ :\"network\",\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\":[{\"\
+ locale\":\"en-us\",\"displayName\":\"Network out guest OS\"}],\"counter\"\
+ :\"bytestransmitted\",\"counterSpecifier\":\"/builtin/network/bytestransmitted\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Network collisions\"}],\"counter\"\
+ :\"totalcollisions\",\"counterSpecifier\":\"/builtin/network/totalcollisions\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets received errors\"}],\"counter\"\
+ :\"totalrxerrors\",\"counterSpecifier\":\"/builtin/network/totalrxerrors\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets sent\"}],\"counter\":\"\
+ packetstransmitted\",\"counterSpecifier\":\"/builtin/network/packetstransmitted\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets received\"}],\"counter\"\
+ :\"packetsreceived\",\"counterSpecifier\":\"/builtin/network/packetsreceived\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets sent errors\"}],\"counter\"\
+ :\"totaltxerrors\",\"counterSpecifier\":\"/builtin/network/totaltxerrors\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"CountPerSecond\"\
+ ,\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem transfers/sec\"\
+ }],\"counter\":\"transferspersecond\",\"condition\":\"IsAggregate=TRUE\",\"\
+ type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/transferspersecond\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem % free space\"}],\"counter\":\"percentfreespace\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/percentfreespace\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem % used space\"}],\"counter\"\
+ :\"percentusedspace\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/percentusedspace\"\
+ },{\"unit\":\"Bytes\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem used space\"}],\"counter\":\"usedspace\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/usedspace\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem read bytes/sec\"}],\"counter\":\"bytesreadpersecond\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/bytesreadpersecond\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem free space\"}],\"counter\"\
+ :\"freespace\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\",\"\
+ class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/freespace\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem % free inodes\"}],\"counter\":\"percentfreeinodes\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/percentfreeinodes\"},{\"unit\":\"BytesPerSecond\",\"\
+ annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem bytes/sec\"\
+ }],\"counter\":\"bytespersecond\",\"condition\":\"IsAggregate=TRUE\",\"type\"\
+ :\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/bytespersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem reads/sec\"}],\"counter\":\"readspersecond\",\"condition\":\"\
+ IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/readspersecond\"},{\"unit\":\"CountPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem write bytes/sec\"}],\"\
+ counter\":\"byteswrittenpersecond\",\"condition\":\"IsAggregate=TRUE\",\"\
+ type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/byteswrittenpersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem writes/sec\"}],\"counter\":\"writespersecond\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/writespersecond\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem % used inodes\"}],\"\
+ counter\":\"percentusedinodes\",\"condition\":\"IsAggregate=TRUE\",\"type\"\
+ :\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/percentusedinodes\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU IO wait time\"}],\"counter\":\"percentiowaittime\",\"condition\":\"\
+ IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\"\
+ :\"/builtin/processor/percentiowaittime\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"CPU user time\"}],\"counter\":\"\
+ percentusertime\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentusertime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU nice time\"}],\"counter\":\"percentnicetime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentnicetime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU percentage guest OS\"}],\"counter\":\"percentprocessortime\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\"\
+ :\"/builtin/processor/percentprocessortime\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"CPU interrupt time\"}],\"counter\"\
+ :\"percentinterrupttime\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentinterrupttime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU idle time\"}],\"counter\":\"percentidletime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentidletime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU privileged time\"}],\"counter\":\"percentprivilegedtime\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\"\
+ :\"/builtin/processor/percentprivilegedtime\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Memory available\"}],\"counter\"\
+ :\"availablememory\",\"counterSpecifier\":\"/builtin/memory/availablememory\"\
+ ,\"class\":\"memory\",\"type\":\"builtin\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Swap percent used\"}],\"counter\"\
+ :\"percentusedswap\",\"counterSpecifier\":\"/builtin/memory/percentusedswap\"\
+ ,\"class\":\"memory\",\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Memory used\"}],\"counter\":\"usedmemory\"\
+ ,\"counterSpecifier\":\"/builtin/memory/usedmemory\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\"\
+ :\"en-us\",\"displayName\":\"Page reads\"}],\"counter\":\"pagesreadpersec\"\
+ ,\"counterSpecifier\":\"/builtin/memory/pagesreadpersec\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\":[{\"locale\":\"\
+ en-us\",\"displayName\":\"Swap available\"}],\"counter\":\"availableswap\"\
+ ,\"counterSpecifier\":\"/builtin/memory/availableswap\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"\
+ en-us\",\"displayName\":\"Swap percent available\"}],\"counter\":\"percentavailableswap\"\
+ ,\"counterSpecifier\":\"/builtin/memory/percentavailableswap\",\"class\":\"\
+ memory\",\"type\":\"builtin\"},{\"unit\":\"Percent\",\"annotation\":[{\"locale\"\
+ :\"en-us\",\"displayName\":\"Mem. percent available\"}],\"counter\":\"percentavailablememory\"\
+ ,\"counterSpecifier\":\"/builtin/memory/percentavailablememory\",\"class\"\
+ :\"memory\",\"type\":\"builtin\"},{\"unit\":\"CountPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Pages\"}],\"counter\":\"pagespersec\"\
+ ,\"counterSpecifier\":\"/builtin/memory/pagespersec\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\":[{\"locale\":\"\
+ en-us\",\"displayName\":\"Swap used\"}],\"counter\":\"usedswap\",\"counterSpecifier\"\
+ :\"/builtin/memory/usedswap\",\"class\":\"memory\",\"type\":\"builtin\"},{\"\
+ unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"\
+ Memory percentage\"}],\"counter\":\"percentusedmemory\",\"counterSpecifier\"\
+ :\"/builtin/memory/percentusedmemory\",\"class\":\"memory\",\"type\":\"builtin\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Page writes\"}],\"counter\":\"pageswrittenpersec\",\"counterSpecifier\"\
+ :\"/builtin/memory/pageswrittenpersec\",\"class\":\"memory\",\"type\":\"builtin\"\
+ }]}}}}\r\n },\r\n \"name\": \"LinuxDiagnostic\"\r\n\
+ \ }\r\n ]\r\n }\r\n },\r\n \"provisioningState\"\
+ : \"Succeeded\",\r\n \"overprovision\": true,\r\n \"uniqueId\": \"1f02f354-02b6-430d-8ca4-de587b2e0ed4\"\
+ \r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n\
+ \ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachineScaleSets/testdiagvmss\"\
+ ,\r\n \"name\": \"testdiagvmss\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['14637']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:29:53 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetVMScaleSet3Min;231,Microsoft.Compute/GetVMScaleSet30Min;1181']
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- Date: ['Fri, 29 Sep 2017 16:34:19 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['2609']
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachines/testdiagvm?api-version=2017-03-30&$expand=instanceView
+ response:
+ body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"ba54520f-7027-4327-befa-701d649b050c\"\
+ ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\
+ \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \
+ \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\"\
+ ,\r\n \"sku\": \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n\
+ \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \
+ \ \"name\": \"osdisk_b4e70d943e\",\r\n \"createOption\": \"FromImage\"\
+ ,\r\n \"vhd\": {\r\n \"uri\": \"https://vhdstorageb4e70d943e538b.blob.core.windows.net/vhds/osdisk_b4e70d943e.vhd\"\
+ \r\n },\r\n \"caching\": \"ReadWrite\",\r\n \"diskSizeGB\"\
+ : 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\"\
+ : {\r\n \"computerName\": \"testdiagvm\",\r\n \"adminUsername\"\
+ : \"user11\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\"\
+ : false\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\"\
+ : {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/networkInterfaces/testdiagvmVMNic\"\
+ }]},\r\n \"provisioningState\": \"Succeeded\",\r\n \"instanceView\"\
+ : {\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.2.18\",\r\n\
+ \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\
+ ,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"\
+ Ready\",\r\n \"message\": \"Guest Agent is running\",\r\n \
+ \ \"time\": \"2017-11-16T00:29:52+00:00\"\r\n }\r\n \
+ \ ],\r\n \"extensionHandlers\": []\r\n },\r\n \"disks\":\
+ \ [\r\n {\r\n \"name\": \"osdisk_b4e70d943e\",\r\n \
+ \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\
+ ,\r\n \"level\": \"Info\",\r\n \"displayStatus\"\
+ : \"Provisioning succeeded\",\r\n \"time\": \"2017-11-16T00:26:08.6091295+00:00\"\
+ \r\n }\r\n ]\r\n }\r\n ],\r\n \"statuses\"\
+ : [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\
+ \n \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning\
+ \ succeeded\",\r\n \"time\": \"2017-11-16T00:28:08.9668904+00:00\"\
+ \r\n },\r\n {\r\n \"code\": \"PowerState/running\"\
+ ,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\
+ \r\n }\r\n ]\r\n }\r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachines\"\
+ ,\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachines/testdiagvm\"\
+ ,\r\n \"name\": \"testdiagvm\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['2671']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:29:53 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4989,Microsoft.Compute/LowCostGet30Min;39894']
status: {code: 200, message: OK}
- request:
- body: '{"properties": {"autoUpgradeMinorVersion": true, "publisher": "Microsoft.Azure.Diagnostics",
- "protectedSettings": {"storageAccountName": "clitestdiagextsa20170510", "storageAccountSasToken":
- "123"}, "type": "LinuxDiagnostic", "settings": {"ladCfg": {"sampleRateInSeconds":
- 15, "diagnosticMonitorConfiguration": {"eventVolume": "Medium", "syslogEvents":
- {"syslogEventConfiguration": {"LOG_LOCAL2": "LOG_DEBUG", "LOG_LOCAL1": "LOG_DEBUG",
- "LOG_NEWS": "LOG_DEBUG", "LOG_UUCP": "LOG_DEBUG", "LOG_AUTHPRIV": "LOG_DEBUG",
- "LOG_LOCAL7": "LOG_DEBUG", "LOG_KERN": "LOG_DEBUG", "LOG_LOCAL4": "LOG_DEBUG",
- "LOG_AUTH": "LOG_DEBUG", "LOG_CRON": "LOG_DEBUG", "LOG_LOCAL3": "LOG_DEBUG",
- "LOG_DAEMON": "LOG_DEBUG", "LOG_LOCAL5": "LOG_DEBUG", "LOG_USER": "LOG_DEBUG",
- "LOG_LOCAL6": "LOG_DEBUG", "LOG_LOCAL0": "LOG_DEBUG", "LOG_LPR": "LOG_DEBUG",
- "LOG_FTP": "LOG_DEBUG", "LOG_SYSLOG": "LOG_DEBUG", "LOG_MAIL": "LOG_DEBUG"}},
- "performanceCounters": {"performanceCounterConfiguration": [{"condition": "IsAggregate=TRUE",
- "counter": "readbytespersecond", "type": "builtin", "class": "disk", "annotation":
- [{"locale": "en-us", "displayName": "Disk read guest OS"}], "unit": "BytesPerSecond",
- "counterSpecifier": "/builtin/disk/readbytespersecond"}, {"condition": "IsAggregate=TRUE",
- "counter": "writespersecond", "type": "builtin", "class": "disk", "annotation":
- [{"locale": "en-us", "displayName": "Disk writes"}], "unit": "CountPerSecond",
- "counterSpecifier": "/builtin/disk/writespersecond"}, {"condition": "IsAggregate=TRUE",
- "counter": "averagetransfertime", "type": "builtin", "class": "disk", "annotation":
- [{"locale": "en-us", "displayName": "Disk transfer time"}], "unit": "Seconds",
- "counterSpecifier": "/builtin/disk/averagetransfertime"}, {"condition": "IsAggregate=TRUE",
- "counter": "transferspersecond", "type": "builtin", "class": "disk", "annotation":
- [{"locale": "en-us", "displayName": "Disk transfers"}], "unit": "CountPerSecond",
- "counterSpecifier": "/builtin/disk/transferspersecond"}, {"condition": "IsAggregate=TRUE",
- "counter": "writebytespersecond", "type": "builtin", "class": "disk", "annotation":
- [{"locale": "en-us", "displayName": "Disk write guest OS"}], "unit": "BytesPerSecond",
- "counterSpecifier": "/builtin/disk/writebytespersecond"}, {"condition": "IsAggregate=TRUE",
- "counter": "averagereadtime", "type": "builtin", "class": "disk", "annotation":
- [{"locale": "en-us", "displayName": "Disk read time"}], "unit": "Seconds", "counterSpecifier":
- "/builtin/disk/averagereadtime"}, {"condition": "IsAggregate=TRUE", "counter":
- "averagewritetime", "type": "builtin", "class": "disk", "annotation": [{"locale":
- "en-us", "displayName": "Disk write time"}], "unit": "Seconds", "counterSpecifier":
- "/builtin/disk/averagewritetime"}, {"condition": "IsAggregate=TRUE", "counter":
- "bytespersecond", "type": "builtin", "class": "disk", "annotation": [{"locale":
- "en-us", "displayName": "Disk total bytes"}], "unit": "BytesPerSecond", "counterSpecifier":
- "/builtin/disk/bytespersecond"}, {"condition": "IsAggregate=TRUE", "counter":
- "readspersecond", "type": "builtin", "class": "disk", "annotation": [{"locale":
- "en-us", "displayName": "Disk reads"}], "unit": "CountPerSecond", "counterSpecifier":
- "/builtin/disk/readspersecond"}, {"condition": "IsAggregate=TRUE", "counter":
- "averagediskqueuelength", "type": "builtin", "class": "disk", "annotation":
- [{"locale": "en-us", "displayName": "Disk queue length"}], "unit": "Count",
- "counterSpecifier": "/builtin/disk/averagediskqueuelength"}, {"counter": "bytesreceived",
- "type": "builtin", "class": "network", "annotation": [{"locale": "en-us", "displayName":
- "Network in guest OS"}], "unit": "Bytes", "counterSpecifier": "/builtin/network/bytesreceived"},
- {"counter": "bytestotal", "type": "builtin", "class": "network", "annotation":
- [{"locale": "en-us", "displayName": "Network total bytes"}], "unit": "Bytes",
- "counterSpecifier": "/builtin/network/bytestotal"}, {"counter": "bytestransmitted",
- "type": "builtin", "class": "network", "annotation": [{"locale": "en-us", "displayName":
- "Network out guest OS"}], "unit": "Bytes", "counterSpecifier": "/builtin/network/bytestransmitted"},
- {"counter": "totalcollisions", "type": "builtin", "class": "network", "annotation":
- [{"locale": "en-us", "displayName": "Network collisions"}], "unit": "Count",
- "counterSpecifier": "/builtin/network/totalcollisions"}, {"counter": "totalrxerrors",
- "type": "builtin", "class": "network", "annotation": [{"locale": "en-us", "displayName":
- "Packets received errors"}], "unit": "Count", "counterSpecifier": "/builtin/network/totalrxerrors"},
- {"counter": "packetstransmitted", "type": "builtin", "class": "network", "annotation":
- [{"locale": "en-us", "displayName": "Packets sent"}], "unit": "Count", "counterSpecifier":
- "/builtin/network/packetstransmitted"}, {"counter": "packetsreceived", "type":
- "builtin", "class": "network", "annotation": [{"locale": "en-us", "displayName":
- "Packets received"}], "unit": "Count", "counterSpecifier": "/builtin/network/packetsreceived"},
- {"counter": "totaltxerrors", "type": "builtin", "class": "network", "annotation":
- [{"locale": "en-us", "displayName": "Packets sent errors"}], "unit": "Count",
- "counterSpecifier": "/builtin/network/totaltxerrors"}, {"condition": "IsAggregate=TRUE",
- "counter": "transferspersecond", "type": "builtin", "class": "filesystem", "annotation":
- [{"locale": "en-us", "displayName": "Filesystem transfers/sec"}], "unit": "CountPerSecond",
- "counterSpecifier": "/builtin/filesystem/transferspersecond"}, {"condition":
- "IsAggregate=TRUE", "counter": "percentfreespace", "type": "builtin", "class":
- "filesystem", "annotation": [{"locale": "en-us", "displayName": "Filesystem
- % free space"}], "unit": "Percent", "counterSpecifier": "/builtin/filesystem/percentfreespace"},
- {"condition": "IsAggregate=TRUE", "counter": "percentusedspace", "type": "builtin",
- "class": "filesystem", "annotation": [{"locale": "en-us", "displayName": "Filesystem
- % used space"}], "unit": "Percent", "counterSpecifier": "/builtin/filesystem/percentusedspace"},
- {"condition": "IsAggregate=TRUE", "counter": "usedspace", "type": "builtin",
- "class": "filesystem", "annotation": [{"locale": "en-us", "displayName": "Filesystem
- used space"}], "unit": "Bytes", "counterSpecifier": "/builtin/filesystem/usedspace"},
- {"condition": "IsAggregate=TRUE", "counter": "bytesreadpersecond", "type": "builtin",
- "class": "filesystem", "annotation": [{"locale": "en-us", "displayName": "Filesystem
- read bytes/sec"}], "unit": "CountPerSecond", "counterSpecifier": "/builtin/filesystem/bytesreadpersecond"},
- {"condition": "IsAggregate=TRUE", "counter": "freespace", "type": "builtin",
- "class": "filesystem", "annotation": [{"locale": "en-us", "displayName": "Filesystem
- free space"}], "unit": "Bytes", "counterSpecifier": "/builtin/filesystem/freespace"},
- {"condition": "IsAggregate=TRUE", "counter": "percentfreeinodes", "type": "builtin",
- "class": "filesystem", "annotation": [{"locale": "en-us", "displayName": "Filesystem
- % free inodes"}], "unit": "Percent", "counterSpecifier": "/builtin/filesystem/percentfreeinodes"},
- {"condition": "IsAggregate=TRUE", "counter": "bytespersecond", "type": "builtin",
- "class": "filesystem", "annotation": [{"locale": "en-us", "displayName": "Filesystem
- bytes/sec"}], "unit": "BytesPerSecond", "counterSpecifier": "/builtin/filesystem/bytespersecond"},
- {"condition": "IsAggregate=TRUE", "counter": "readspersecond", "type": "builtin",
- "class": "filesystem", "annotation": [{"locale": "en-us", "displayName": "Filesystem
- reads/sec"}], "unit": "CountPerSecond", "counterSpecifier": "/builtin/filesystem/readspersecond"},
- {"condition": "IsAggregate=TRUE", "counter": "byteswrittenpersecond", "type":
- "builtin", "class": "filesystem", "annotation": [{"locale": "en-us", "displayName":
- "Filesystem write bytes/sec"}], "unit": "CountPerSecond", "counterSpecifier":
- "/builtin/filesystem/byteswrittenpersecond"}, {"condition": "IsAggregate=TRUE",
- "counter": "writespersecond", "type": "builtin", "class": "filesystem", "annotation":
- [{"locale": "en-us", "displayName": "Filesystem writes/sec"}], "unit": "CountPerSecond",
- "counterSpecifier": "/builtin/filesystem/writespersecond"}, {"condition": "IsAggregate=TRUE",
- "counter": "percentusedinodes", "type": "builtin", "class": "filesystem", "annotation":
- [{"locale": "en-us", "displayName": "Filesystem % used inodes"}], "unit": "Percent",
- "counterSpecifier": "/builtin/filesystem/percentusedinodes"}, {"condition":
- "IsAggregate=TRUE", "counter": "percentiowaittime", "type": "builtin", "class":
- "processor", "annotation": [{"locale": "en-us", "displayName": "CPU IO wait
- time"}], "unit": "Percent", "counterSpecifier": "/builtin/processor/percentiowaittime"},
- {"condition": "IsAggregate=TRUE", "counter": "percentusertime", "type": "builtin",
- "class": "processor", "annotation": [{"locale": "en-us", "displayName": "CPU
- user time"}], "unit": "Percent", "counterSpecifier": "/builtin/processor/percentusertime"},
- {"condition": "IsAggregate=TRUE", "counter": "percentnicetime", "type": "builtin",
- "class": "processor", "annotation": [{"locale": "en-us", "displayName": "CPU
- nice time"}], "unit": "Percent", "counterSpecifier": "/builtin/processor/percentnicetime"},
- {"condition": "IsAggregate=TRUE", "counter": "percentprocessortime", "type":
- "builtin", "class": "processor", "annotation": [{"locale": "en-us", "displayName":
- "CPU percentage guest OS"}], "unit": "Percent", "counterSpecifier": "/builtin/processor/percentprocessortime"},
- {"condition": "IsAggregate=TRUE", "counter": "percentinterrupttime", "type":
- "builtin", "class": "processor", "annotation": [{"locale": "en-us", "displayName":
- "CPU interrupt time"}], "unit": "Percent", "counterSpecifier": "/builtin/processor/percentinterrupttime"},
- {"condition": "IsAggregate=TRUE", "counter": "percentidletime", "type": "builtin",
- "class": "processor", "annotation": [{"locale": "en-us", "displayName": "CPU
- idle time"}], "unit": "Percent", "counterSpecifier": "/builtin/processor/percentidletime"},
- {"condition": "IsAggregate=TRUE", "counter": "percentprivilegedtime", "type":
- "builtin", "class": "processor", "annotation": [{"locale": "en-us", "displayName":
- "CPU privileged time"}], "unit": "Percent", "counterSpecifier": "/builtin/processor/percentprivilegedtime"},
- {"counter": "availablememory", "type": "builtin", "class": "memory", "annotation":
- [{"locale": "en-us", "displayName": "Memory available"}], "unit": "Bytes", "counterSpecifier":
- "/builtin/memory/availablememory"}, {"counter": "percentusedswap", "type": "builtin",
- "class": "memory", "annotation": [{"locale": "en-us", "displayName": "Swap percent
- used"}], "unit": "Percent", "counterSpecifier": "/builtin/memory/percentusedswap"},
- {"counter": "usedmemory", "type": "builtin", "class": "memory", "annotation":
- [{"locale": "en-us", "displayName": "Memory used"}], "unit": "Bytes", "counterSpecifier":
- "/builtin/memory/usedmemory"}, {"counter": "pagesreadpersec", "type": "builtin",
- "class": "memory", "annotation": [{"locale": "en-us", "displayName": "Page reads"}],
- "unit": "CountPerSecond", "counterSpecifier": "/builtin/memory/pagesreadpersec"},
- {"counter": "availableswap", "type": "builtin", "class": "memory", "annotation":
- [{"locale": "en-us", "displayName": "Swap available"}], "unit": "Bytes", "counterSpecifier":
- "/builtin/memory/availableswap"}, {"counter": "percentavailableswap", "type":
- "builtin", "class": "memory", "annotation": [{"locale": "en-us", "displayName":
- "Swap percent available"}], "unit": "Percent", "counterSpecifier": "/builtin/memory/percentavailableswap"},
- {"counter": "percentavailablememory", "type": "builtin", "class": "memory",
- "annotation": [{"locale": "en-us", "displayName": "Mem. percent available"}],
- "unit": "Percent", "counterSpecifier": "/builtin/memory/percentavailablememory"},
- {"counter": "pagespersec", "type": "builtin", "class": "memory", "annotation":
- [{"locale": "en-us", "displayName": "Pages"}], "unit": "CountPerSecond", "counterSpecifier":
- "/builtin/memory/pagespersec"}, {"counter": "usedswap", "type": "builtin", "class":
- "memory", "annotation": [{"locale": "en-us", "displayName": "Swap used"}], "unit":
- "Bytes", "counterSpecifier": "/builtin/memory/usedswap"}, {"counter": "percentusedmemory",
- "type": "builtin", "class": "memory", "annotation": [{"locale": "en-us", "displayName":
- "Memory percentage"}], "unit": "Percent", "counterSpecifier": "/builtin/memory/percentusedmemory"},
- {"counter": "pageswrittenpersec", "type": "builtin", "class": "memory", "annotation":
- [{"locale": "en-us", "displayName": "Page writes"}], "unit": "CountPerSecond",
- "counterSpecifier": "/builtin/memory/pageswrittenpersec"}]}, "metrics": {"metricAggregation":
- [{"scheduledTransferPeriod": "PT1H"}, {"scheduledTransferPeriod": "PT1M"}],
- "resourceId": "__VM_RESOURCE_ID__"}}}, "StorageAccount": "clitestdiagextsa20170510"},
- "typeHandlerVersion": "3.0"}, "location": "westus"}'
+ body: 'b''{"location": "westus", "properties": {"type": "LinuxDiagnostic", "settings":
+ {"StorageAccount": "clitest000002", "ladCfg": {"sampleRateInSeconds": 15, "diagnosticMonitorConfiguration":
+ {"metrics": {"metricAggregation": [{"scheduledTransferPeriod": "PT1H"}, {"scheduledTransferPeriod":
+ "PT1M"}], "resourceId": "__VM_RESOURCE_ID__"}, "eventVolume": "Medium", "syslogEvents":
+ {"syslogEventConfiguration": {"LOG_LOCAL7": "LOG_DEBUG", "LOG_MAIL": "LOG_DEBUG",
+ "LOG_DAEMON": "LOG_DEBUG", "LOG_FTP": "LOG_DEBUG", "LOG_LOCAL6": "LOG_DEBUG",
+ "LOG_LOCAL5": "LOG_DEBUG", "LOG_CRON": "LOG_DEBUG", "LOG_LOCAL0": "LOG_DEBUG",
+ "LOG_LOCAL4": "LOG_DEBUG", "LOG_UUCP": "LOG_DEBUG", "LOG_KERN": "LOG_DEBUG",
+ "LOG_USER": "LOG_DEBUG", "LOG_LOCAL1": "LOG_DEBUG", "LOG_SYSLOG": "LOG_DEBUG",
+ "LOG_LOCAL3": "LOG_DEBUG", "LOG_AUTH": "LOG_DEBUG", "LOG_NEWS": "LOG_DEBUG",
+ "LOG_LOCAL2": "LOG_DEBUG", "LOG_LPR": "LOG_DEBUG", "LOG_AUTHPRIV": "LOG_DEBUG"}},
+ "performanceCounters": {"performanceCounterConfiguration": [{"unit": "BytesPerSecond",
+ "annotation": [{"locale": "en-us", "displayName": "Disk read guest OS"}], "counter":
+ "readbytespersecond", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "disk", "counterSpecifier": "/builtin/disk/readbytespersecond"}, {"unit": "CountPerSecond",
+ "annotation": [{"locale": "en-us", "displayName": "Disk writes"}], "counter":
+ "writespersecond", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "disk", "counterSpecifier": "/builtin/disk/writespersecond"}, {"unit": "Seconds",
+ "annotation": [{"locale": "en-us", "displayName": "Disk transfer time"}], "counter":
+ "averagetransfertime", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "disk", "counterSpecifier": "/builtin/disk/averagetransfertime"}, {"unit": "CountPerSecond",
+ "annotation": [{"locale": "en-us", "displayName": "Disk transfers"}], "counter":
+ "transferspersecond", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "disk", "counterSpecifier": "/builtin/disk/transferspersecond"}, {"unit": "BytesPerSecond",
+ "annotation": [{"locale": "en-us", "displayName": "Disk write guest OS"}], "counter":
+ "writebytespersecond", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "disk", "counterSpecifier": "/builtin/disk/writebytespersecond"}, {"unit": "Seconds",
+ "annotation": [{"locale": "en-us", "displayName": "Disk read time"}], "counter":
+ "averagereadtime", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "disk", "counterSpecifier": "/builtin/disk/averagereadtime"}, {"unit": "Seconds",
+ "annotation": [{"locale": "en-us", "displayName": "Disk write time"}], "counter":
+ "averagewritetime", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "disk", "counterSpecifier": "/builtin/disk/averagewritetime"}, {"unit": "BytesPerSecond",
+ "annotation": [{"locale": "en-us", "displayName": "Disk total bytes"}], "counter":
+ "bytespersecond", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "disk", "counterSpecifier": "/builtin/disk/bytespersecond"}, {"unit": "CountPerSecond",
+ "annotation": [{"locale": "en-us", "displayName": "Disk reads"}], "counter":
+ "readspersecond", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "disk", "counterSpecifier": "/builtin/disk/readspersecond"}, {"unit": "Count",
+ "annotation": [{"locale": "en-us", "displayName": "Disk queue length"}], "counter":
+ "averagediskqueuelength", "condition": "IsAggregate=TRUE", "type": "builtin",
+ "class": "disk", "counterSpecifier": "/builtin/disk/averagediskqueuelength"},
+ {"unit": "Bytes", "annotation": [{"locale": "en-us", "displayName": "Network
+ in guest OS"}], "counter": "bytesreceived", "counterSpecifier": "/builtin/network/bytesreceived",
+ "class": "network", "type": "builtin"}, {"unit": "Bytes", "annotation": [{"locale":
+ "en-us", "displayName": "Network total bytes"}], "counter": "bytestotal", "counterSpecifier":
+ "/builtin/network/bytestotal", "class": "network", "type": "builtin"}, {"unit":
+ "Bytes", "annotation": [{"locale": "en-us", "displayName": "Network out guest
+ OS"}], "counter": "bytestransmitted", "counterSpecifier": "/builtin/network/bytestransmitted",
+ "class": "network", "type": "builtin"}, {"unit": "Count", "annotation": [{"locale":
+ "en-us", "displayName": "Network collisions"}], "counter": "totalcollisions",
+ "counterSpecifier": "/builtin/network/totalcollisions", "class": "network",
+ "type": "builtin"}, {"unit": "Count", "annotation": [{"locale": "en-us", "displayName":
+ "Packets received errors"}], "counter": "totalrxerrors", "counterSpecifier":
+ "/builtin/network/totalrxerrors", "class": "network", "type": "builtin"}, {"unit":
+ "Count", "annotation": [{"locale": "en-us", "displayName": "Packets sent"}],
+ "counter": "packetstransmitted", "counterSpecifier": "/builtin/network/packetstransmitted",
+ "class": "network", "type": "builtin"}, {"unit": "Count", "annotation": [{"locale":
+ "en-us", "displayName": "Packets received"}], "counter": "packetsreceived",
+ "counterSpecifier": "/builtin/network/packetsreceived", "class": "network",
+ "type": "builtin"}, {"unit": "Count", "annotation": [{"locale": "en-us", "displayName":
+ "Packets sent errors"}], "counter": "totaltxerrors", "counterSpecifier": "/builtin/network/totaltxerrors",
+ "class": "network", "type": "builtin"}, {"unit": "CountPerSecond", "annotation":
+ [{"locale": "en-us", "displayName": "Filesystem transfers/sec"}], "counter":
+ "transferspersecond", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "filesystem", "counterSpecifier": "/builtin/filesystem/transferspersecond"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "Filesystem
+ % free space"}], "counter": "percentfreespace", "condition": "IsAggregate=TRUE",
+ "type": "builtin", "class": "filesystem", "counterSpecifier": "/builtin/filesystem/percentfreespace"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "Filesystem
+ % used space"}], "counter": "percentusedspace", "condition": "IsAggregate=TRUE",
+ "type": "builtin", "class": "filesystem", "counterSpecifier": "/builtin/filesystem/percentusedspace"},
+ {"unit": "Bytes", "annotation": [{"locale": "en-us", "displayName": "Filesystem
+ used space"}], "counter": "usedspace", "condition": "IsAggregate=TRUE", "type":
+ "builtin", "class": "filesystem", "counterSpecifier": "/builtin/filesystem/usedspace"},
+ {"unit": "CountPerSecond", "annotation": [{"locale": "en-us", "displayName":
+ "Filesystem read bytes/sec"}], "counter": "bytesreadpersecond", "condition":
+ "IsAggregate=TRUE", "type": "builtin", "class": "filesystem", "counterSpecifier":
+ "/builtin/filesystem/bytesreadpersecond"}, {"unit": "Bytes", "annotation": [{"locale":
+ "en-us", "displayName": "Filesystem free space"}], "counter": "freespace", "condition":
+ "IsAggregate=TRUE", "type": "builtin", "class": "filesystem", "counterSpecifier":
+ "/builtin/filesystem/freespace"}, {"unit": "Percent", "annotation": [{"locale":
+ "en-us", "displayName": "Filesystem % free inodes"}], "counter": "percentfreeinodes",
+ "condition": "IsAggregate=TRUE", "type": "builtin", "class": "filesystem", "counterSpecifier":
+ "/builtin/filesystem/percentfreeinodes"}, {"unit": "BytesPerSecond", "annotation":
+ [{"locale": "en-us", "displayName": "Filesystem bytes/sec"}], "counter": "bytespersecond",
+ "condition": "IsAggregate=TRUE", "type": "builtin", "class": "filesystem", "counterSpecifier":
+ "/builtin/filesystem/bytespersecond"}, {"unit": "CountPerSecond", "annotation":
+ [{"locale": "en-us", "displayName": "Filesystem reads/sec"}], "counter": "readspersecond",
+ "condition": "IsAggregate=TRUE", "type": "builtin", "class": "filesystem", "counterSpecifier":
+ "/builtin/filesystem/readspersecond"}, {"unit": "CountPerSecond", "annotation":
+ [{"locale": "en-us", "displayName": "Filesystem write bytes/sec"}], "counter":
+ "byteswrittenpersecond", "condition": "IsAggregate=TRUE", "type": "builtin",
+ "class": "filesystem", "counterSpecifier": "/builtin/filesystem/byteswrittenpersecond"},
+ {"unit": "CountPerSecond", "annotation": [{"locale": "en-us", "displayName":
+ "Filesystem writes/sec"}], "counter": "writespersecond", "condition": "IsAggregate=TRUE",
+ "type": "builtin", "class": "filesystem", "counterSpecifier": "/builtin/filesystem/writespersecond"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "Filesystem
+ % used inodes"}], "counter": "percentusedinodes", "condition": "IsAggregate=TRUE",
+ "type": "builtin", "class": "filesystem", "counterSpecifier": "/builtin/filesystem/percentusedinodes"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "CPU IO
+ wait time"}], "counter": "percentiowaittime", "condition": "IsAggregate=TRUE",
+ "type": "builtin", "class": "processor", "counterSpecifier": "/builtin/processor/percentiowaittime"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "CPU user
+ time"}], "counter": "percentusertime", "condition": "IsAggregate=TRUE", "type":
+ "builtin", "class": "processor", "counterSpecifier": "/builtin/processor/percentusertime"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "CPU nice
+ time"}], "counter": "percentnicetime", "condition": "IsAggregate=TRUE", "type":
+ "builtin", "class": "processor", "counterSpecifier": "/builtin/processor/percentnicetime"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "CPU percentage
+ guest OS"}], "counter": "percentprocessortime", "condition": "IsAggregate=TRUE",
+ "type": "builtin", "class": "processor", "counterSpecifier": "/builtin/processor/percentprocessortime"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "CPU interrupt
+ time"}], "counter": "percentinterrupttime", "condition": "IsAggregate=TRUE",
+ "type": "builtin", "class": "processor", "counterSpecifier": "/builtin/processor/percentinterrupttime"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "CPU idle
+ time"}], "counter": "percentidletime", "condition": "IsAggregate=TRUE", "type":
+ "builtin", "class": "processor", "counterSpecifier": "/builtin/processor/percentidletime"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "CPU privileged
+ time"}], "counter": "percentprivilegedtime", "condition": "IsAggregate=TRUE",
+ "type": "builtin", "class": "processor", "counterSpecifier": "/builtin/processor/percentprivilegedtime"},
+ {"unit": "Bytes", "annotation": [{"locale": "en-us", "displayName": "Memory
+ available"}], "counter": "availablememory", "counterSpecifier": "/builtin/memory/availablememory",
+ "class": "memory", "type": "builtin"}, {"unit": "Percent", "annotation": [{"locale":
+ "en-us", "displayName": "Swap percent used"}], "counter": "percentusedswap",
+ "counterSpecifier": "/builtin/memory/percentusedswap", "class": "memory", "type":
+ "builtin"}, {"unit": "Bytes", "annotation": [{"locale": "en-us", "displayName":
+ "Memory used"}], "counter": "usedmemory", "counterSpecifier": "/builtin/memory/usedmemory",
+ "class": "memory", "type": "builtin"}, {"unit": "CountPerSecond", "annotation":
+ [{"locale": "en-us", "displayName": "Page reads"}], "counter": "pagesreadpersec",
+ "counterSpecifier": "/builtin/memory/pagesreadpersec", "class": "memory", "type":
+ "builtin"}, {"unit": "Bytes", "annotation": [{"locale": "en-us", "displayName":
+ "Swap available"}], "counter": "availableswap", "counterSpecifier": "/builtin/memory/availableswap",
+ "class": "memory", "type": "builtin"}, {"unit": "Percent", "annotation": [{"locale":
+ "en-us", "displayName": "Swap percent available"}], "counter": "percentavailableswap",
+ "counterSpecifier": "/builtin/memory/percentavailableswap", "class": "memory",
+ "type": "builtin"}, {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName":
+ "Mem. percent available"}], "counter": "percentavailablememory", "counterSpecifier":
+ "/builtin/memory/percentavailablememory", "class": "memory", "type": "builtin"},
+ {"unit": "CountPerSecond", "annotation": [{"locale": "en-us", "displayName":
+ "Pages"}], "counter": "pagespersec", "counterSpecifier": "/builtin/memory/pagespersec",
+ "class": "memory", "type": "builtin"}, {"unit": "Bytes", "annotation": [{"locale":
+ "en-us", "displayName": "Swap used"}], "counter": "usedswap", "counterSpecifier":
+ "/builtin/memory/usedswap", "class": "memory", "type": "builtin"}, {"unit":
+ "Percent", "annotation": [{"locale": "en-us", "displayName": "Memory percentage"}],
+ "counter": "percentusedmemory", "counterSpecifier": "/builtin/memory/percentusedmemory",
+ "class": "memory", "type": "builtin"}, {"unit": "CountPerSecond", "annotation":
+ [{"locale": "en-us", "displayName": "Page writes"}], "counter": "pageswrittenpersec",
+ "counterSpecifier": "/builtin/memory/pageswrittenpersec", "class": "memory",
+ "type": "builtin"}]}}}}, "typeHandlerVersion": "2.3", "publisher": "Microsoft.OSTCExtensions",
+ "protectedSettings": {"storageAccountName": "clitest000002", "storageAccountSasToken":
+ "123"}, "autoUpgradeMinorVersion": true}}'''
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
- Content-Length: ['12868']
+ Content-Length: ['12865']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/3.0.0rc1 Azure-SDK-For-Python
- AZURECLI/TEST/2.0.17+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [0b02df68-a534-11e7-9b70-a0b3ccf7272a]
method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachines/testdiagvm/extensions/LinuxDiagnostic?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachines/testdiagvm/extensions/LinuxDiagnostic?api-version=2017-03-30
response:
- body: {string: "{\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.Azure.Diagnostics\",\r\n
- \ \"type\": \"LinuxDiagnostic\",\r\n \"typeHandlerVersion\": \"3.0\",\r\n
- \ \"autoUpgradeMinorVersion\": true,\r\n \"settings\": {\"ladCfg\":{\"sampleRateInSeconds\":15,\"diagnosticMonitorConfiguration\":{\"eventVolume\":\"Medium\",\"syslogEvents\":{\"syslogEventConfiguration\":{\"LOG_LOCAL2\":\"LOG_DEBUG\",\"LOG_LOCAL1\":\"LOG_DEBUG\",\"LOG_NEWS\":\"LOG_DEBUG\",\"LOG_UUCP\":\"LOG_DEBUG\",\"LOG_AUTHPRIV\":\"LOG_DEBUG\",\"LOG_LOCAL7\":\"LOG_DEBUG\",\"LOG_KERN\":\"LOG_DEBUG\",\"LOG_LOCAL4\":\"LOG_DEBUG\",\"LOG_AUTH\":\"LOG_DEBUG\",\"LOG_CRON\":\"LOG_DEBUG\",\"LOG_LOCAL3\":\"LOG_DEBUG\",\"LOG_DAEMON\":\"LOG_DEBUG\",\"LOG_LOCAL5\":\"LOG_DEBUG\",\"LOG_USER\":\"LOG_DEBUG\",\"LOG_LOCAL6\":\"LOG_DEBUG\",\"LOG_LOCAL0\":\"LOG_DEBUG\",\"LOG_LPR\":\"LOG_DEBUG\",\"LOG_FTP\":\"LOG_DEBUG\",\"LOG_SYSLOG\":\"LOG_DEBUG\",\"LOG_MAIL\":\"LOG_DEBUG\"}},\"performanceCounters\":{\"performanceCounterConfiguration\":[{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"readbytespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- read guest OS\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/disk/readbytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"writespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- writes\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/disk/writespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagetransfertime\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- transfer time\"}],\"unit\":\"Seconds\",\"counterSpecifier\":\"/builtin/disk/averagetransfertime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"transferspersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- transfers\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/disk/transferspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"writebytespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- write guest OS\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/disk/writebytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagereadtime\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- read time\"}],\"unit\":\"Seconds\",\"counterSpecifier\":\"/builtin/disk/averagereadtime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagewritetime\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- write time\"}],\"unit\":\"Seconds\",\"counterSpecifier\":\"/builtin/disk/averagewritetime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"bytespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- total bytes\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/disk/bytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"readspersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- reads\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/disk/readspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagediskqueuelength\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- queue length\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/disk/averagediskqueuelength\"},{\"counter\":\"bytesreceived\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- in guest OS\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/network/bytesreceived\"},{\"counter\":\"bytestotal\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- total bytes\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/network/bytestotal\"},{\"counter\":\"bytestransmitted\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- out guest OS\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/network/bytestransmitted\"},{\"counter\":\"totalcollisions\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- collisions\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/totalcollisions\"},{\"counter\":\"totalrxerrors\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- received errors\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/totalrxerrors\"},{\"counter\":\"packetstransmitted\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- sent\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/packetstransmitted\"},{\"counter\":\"packetsreceived\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- received\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/packetsreceived\"},{\"counter\":\"totaltxerrors\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- sent errors\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/totaltxerrors\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"transferspersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- transfers/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/transferspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentfreespace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % free space\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentfreespace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentusedspace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % used space\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentusedspace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"usedspace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- used space\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/filesystem/usedspace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"bytesreadpersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- read bytes/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/bytesreadpersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"freespace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- free space\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/filesystem/freespace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentfreeinodes\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % free inodes\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentfreeinodes\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"bytespersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- bytes/sec\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/bytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"readspersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- reads/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/readspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"byteswrittenpersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- write bytes/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/byteswrittenpersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"writespersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- writes/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/writespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentusedinodes\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % used inodes\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentusedinodes\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentiowaittime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- IO wait time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentiowaittime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentusertime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- user time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentusertime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentnicetime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- nice time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentnicetime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentprocessortime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- percentage guest OS\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentprocessortime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentinterrupttime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- interrupt time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentinterrupttime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentidletime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- idle time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentidletime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentprivilegedtime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- privileged time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentprivilegedtime\"},{\"counter\":\"availablememory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Memory
- available\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/availablememory\"},{\"counter\":\"percentusedswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- percent used\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentusedswap\"},{\"counter\":\"usedmemory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Memory
- used\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/usedmemory\"},{\"counter\":\"pagesreadpersec\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Page
- reads\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/memory/pagesreadpersec\"},{\"counter\":\"availableswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- available\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/availableswap\"},{\"counter\":\"percentavailableswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- percent available\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentavailableswap\"},{\"counter\":\"percentavailablememory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Mem.
- percent available\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentavailablememory\"},{\"counter\":\"pagespersec\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Pages\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/memory/pagespersec\"},{\"counter\":\"usedswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- used\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/usedswap\"},{\"counter\":\"percentusedmemory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Memory
- percentage\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentusedmemory\"},{\"counter\":\"pageswrittenpersec\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Page
- writes\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/memory/pageswrittenpersec\"}]},\"metrics\":{\"metricAggregation\":[{\"scheduledTransferPeriod\":\"PT1H\"},{\"scheduledTransferPeriod\":\"PT1M\"}],\"resourceId\":\"__VM_RESOURCE_ID__\"}}},\"StorageAccount\":\"clitestdiagextsa20170510\"},\r\n
- \ \"provisioningState\": \"Creating\"\r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n
- \ \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachines/testdiagvm/extensions/LinuxDiagnostic\",\r\n
- \ \"name\": \"LinuxDiagnostic\"\r\n}"}
- headers:
- Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/9fc8cc01-8c60-4f7b-aec3-44fe2056b5e5?api-version=2017-03-30']
- Cache-Control: [no-cache]
- Content-Length: ['12297']
- Content-Type: [application/json; charset=utf-8]
- Date: ['Fri, 29 Sep 2017 16:34:20 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1191']
+ body: {string: "{\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.OSTCExtensions\"\
+ ,\r\n \"type\": \"LinuxDiagnostic\",\r\n \"typeHandlerVersion\": \"\
+ 2.3\",\r\n \"autoUpgradeMinorVersion\": true,\r\n \"settings\": {\"\
+ StorageAccount\":\"clitest000002\",\"ladCfg\":{\"sampleRateInSeconds\":15,\"\
+ diagnosticMonitorConfiguration\":{\"metrics\":{\"metricAggregation\":[{\"\
+ scheduledTransferPeriod\":\"PT1H\"},{\"scheduledTransferPeriod\":\"PT1M\"\
+ }],\"resourceId\":\"__VM_RESOURCE_ID__\"},\"eventVolume\":\"Medium\",\"syslogEvents\"\
+ :{\"syslogEventConfiguration\":{\"LOG_LOCAL7\":\"LOG_DEBUG\",\"LOG_MAIL\"\
+ :\"LOG_DEBUG\",\"LOG_DAEMON\":\"LOG_DEBUG\",\"LOG_FTP\":\"LOG_DEBUG\",\"LOG_LOCAL6\"\
+ :\"LOG_DEBUG\",\"LOG_LOCAL5\":\"LOG_DEBUG\",\"LOG_CRON\":\"LOG_DEBUG\",\"\
+ LOG_LOCAL0\":\"LOG_DEBUG\",\"LOG_LOCAL4\":\"LOG_DEBUG\",\"LOG_UUCP\":\"LOG_DEBUG\"\
+ ,\"LOG_KERN\":\"LOG_DEBUG\",\"LOG_USER\":\"LOG_DEBUG\",\"LOG_LOCAL1\":\"LOG_DEBUG\"\
+ ,\"LOG_SYSLOG\":\"LOG_DEBUG\",\"LOG_LOCAL3\":\"LOG_DEBUG\",\"LOG_AUTH\":\"\
+ LOG_DEBUG\",\"LOG_NEWS\":\"LOG_DEBUG\",\"LOG_LOCAL2\":\"LOG_DEBUG\",\"LOG_LPR\"\
+ :\"LOG_DEBUG\",\"LOG_AUTHPRIV\":\"LOG_DEBUG\"}},\"performanceCounters\":{\"\
+ performanceCounterConfiguration\":[{\"unit\":\"BytesPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Disk read guest OS\"}],\"counter\"\
+ :\"readbytespersecond\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/readbytespersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk writes\"}],\"counter\":\"writespersecond\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/writespersecond\"\
+ },{\"unit\":\"Seconds\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk transfer time\"}],\"counter\":\"averagetransfertime\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\"\
+ :\"/builtin/disk/averagetransfertime\"},{\"unit\":\"CountPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Disk transfers\"}],\"counter\":\"\
+ transferspersecond\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/transferspersecond\"\
+ },{\"unit\":\"BytesPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk write guest OS\"}],\"counter\":\"writebytespersecond\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\"\
+ :\"/builtin/disk/writebytespersecond\"},{\"unit\":\"Seconds\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Disk read time\"}],\"counter\":\"\
+ averagereadtime\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/averagereadtime\"\
+ },{\"unit\":\"Seconds\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk write time\"}],\"counter\":\"averagewritetime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/averagewritetime\"\
+ },{\"unit\":\"BytesPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk total bytes\"}],\"counter\":\"bytespersecond\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/bytespersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk reads\"}],\"counter\":\"readspersecond\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/readspersecond\"\
+ },{\"unit\":\"Count\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk queue length\"}],\"counter\":\"averagediskqueuelength\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\"\
+ :\"/builtin/disk/averagediskqueuelength\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Network in guest OS\"}],\"counter\"\
+ :\"bytesreceived\",\"counterSpecifier\":\"/builtin/network/bytesreceived\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Network total bytes\"}],\"counter\"\
+ :\"bytestotal\",\"counterSpecifier\":\"/builtin/network/bytestotal\",\"class\"\
+ :\"network\",\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\":[{\"\
+ locale\":\"en-us\",\"displayName\":\"Network out guest OS\"}],\"counter\"\
+ :\"bytestransmitted\",\"counterSpecifier\":\"/builtin/network/bytestransmitted\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Network collisions\"}],\"counter\"\
+ :\"totalcollisions\",\"counterSpecifier\":\"/builtin/network/totalcollisions\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets received errors\"}],\"counter\"\
+ :\"totalrxerrors\",\"counterSpecifier\":\"/builtin/network/totalrxerrors\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets sent\"}],\"counter\":\"\
+ packetstransmitted\",\"counterSpecifier\":\"/builtin/network/packetstransmitted\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets received\"}],\"counter\"\
+ :\"packetsreceived\",\"counterSpecifier\":\"/builtin/network/packetsreceived\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets sent errors\"}],\"counter\"\
+ :\"totaltxerrors\",\"counterSpecifier\":\"/builtin/network/totaltxerrors\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"CountPerSecond\"\
+ ,\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem transfers/sec\"\
+ }],\"counter\":\"transferspersecond\",\"condition\":\"IsAggregate=TRUE\",\"\
+ type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/transferspersecond\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem % free space\"}],\"counter\":\"percentfreespace\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/percentfreespace\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem % used space\"}],\"counter\"\
+ :\"percentusedspace\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/percentusedspace\"\
+ },{\"unit\":\"Bytes\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem used space\"}],\"counter\":\"usedspace\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/usedspace\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem read bytes/sec\"}],\"counter\":\"bytesreadpersecond\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/bytesreadpersecond\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem free space\"}],\"counter\"\
+ :\"freespace\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\",\"\
+ class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/freespace\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem % free inodes\"}],\"counter\":\"percentfreeinodes\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/percentfreeinodes\"},{\"unit\":\"BytesPerSecond\",\"\
+ annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem bytes/sec\"\
+ }],\"counter\":\"bytespersecond\",\"condition\":\"IsAggregate=TRUE\",\"type\"\
+ :\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/bytespersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem reads/sec\"}],\"counter\":\"readspersecond\",\"condition\":\"\
+ IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/readspersecond\"},{\"unit\":\"CountPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem write bytes/sec\"}],\"\
+ counter\":\"byteswrittenpersecond\",\"condition\":\"IsAggregate=TRUE\",\"\
+ type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/byteswrittenpersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem writes/sec\"}],\"counter\":\"writespersecond\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/writespersecond\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem % used inodes\"}],\"\
+ counter\":\"percentusedinodes\",\"condition\":\"IsAggregate=TRUE\",\"type\"\
+ :\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/percentusedinodes\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU IO wait time\"}],\"counter\":\"percentiowaittime\",\"condition\":\"\
+ IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\"\
+ :\"/builtin/processor/percentiowaittime\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"CPU user time\"}],\"counter\":\"\
+ percentusertime\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentusertime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU nice time\"}],\"counter\":\"percentnicetime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentnicetime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU percentage guest OS\"}],\"counter\":\"percentprocessortime\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\"\
+ :\"/builtin/processor/percentprocessortime\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"CPU interrupt time\"}],\"counter\"\
+ :\"percentinterrupttime\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentinterrupttime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU idle time\"}],\"counter\":\"percentidletime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentidletime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU privileged time\"}],\"counter\":\"percentprivilegedtime\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\"\
+ :\"/builtin/processor/percentprivilegedtime\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Memory available\"}],\"counter\"\
+ :\"availablememory\",\"counterSpecifier\":\"/builtin/memory/availablememory\"\
+ ,\"class\":\"memory\",\"type\":\"builtin\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Swap percent used\"}],\"counter\"\
+ :\"percentusedswap\",\"counterSpecifier\":\"/builtin/memory/percentusedswap\"\
+ ,\"class\":\"memory\",\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Memory used\"}],\"counter\":\"usedmemory\"\
+ ,\"counterSpecifier\":\"/builtin/memory/usedmemory\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\"\
+ :\"en-us\",\"displayName\":\"Page reads\"}],\"counter\":\"pagesreadpersec\"\
+ ,\"counterSpecifier\":\"/builtin/memory/pagesreadpersec\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\":[{\"locale\":\"\
+ en-us\",\"displayName\":\"Swap available\"}],\"counter\":\"availableswap\"\
+ ,\"counterSpecifier\":\"/builtin/memory/availableswap\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"\
+ en-us\",\"displayName\":\"Swap percent available\"}],\"counter\":\"percentavailableswap\"\
+ ,\"counterSpecifier\":\"/builtin/memory/percentavailableswap\",\"class\":\"\
+ memory\",\"type\":\"builtin\"},{\"unit\":\"Percent\",\"annotation\":[{\"locale\"\
+ :\"en-us\",\"displayName\":\"Mem. percent available\"}],\"counter\":\"percentavailablememory\"\
+ ,\"counterSpecifier\":\"/builtin/memory/percentavailablememory\",\"class\"\
+ :\"memory\",\"type\":\"builtin\"},{\"unit\":\"CountPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Pages\"}],\"counter\":\"pagespersec\"\
+ ,\"counterSpecifier\":\"/builtin/memory/pagespersec\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\":[{\"locale\":\"\
+ en-us\",\"displayName\":\"Swap used\"}],\"counter\":\"usedswap\",\"counterSpecifier\"\
+ :\"/builtin/memory/usedswap\",\"class\":\"memory\",\"type\":\"builtin\"},{\"\
+ unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"\
+ Memory percentage\"}],\"counter\":\"percentusedmemory\",\"counterSpecifier\"\
+ :\"/builtin/memory/percentusedmemory\",\"class\":\"memory\",\"type\":\"builtin\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Page writes\"}],\"counter\":\"pageswrittenpersec\",\"counterSpecifier\"\
+ :\"/builtin/memory/pageswrittenpersec\",\"class\":\"memory\",\"type\":\"builtin\"\
+ }]}}}},\r\n \"provisioningState\": \"Creating\"\r\n },\r\n \"type\":\
+ \ \"Microsoft.Compute/virtualMachines/extensions\",\r\n \"location\": \"\
+ westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachines/testdiagvm/extensions/LinuxDiagnostic\"\
+ ,\r\n \"name\": \"LinuxDiagnostic\"\r\n}"}
+ headers:
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/d96b41ac-f8a9-4fc9-ac59-d7c1bbb778c0?api-version=2017-03-30']
+ cache-control: [no-cache]
+ content-length: ['12325']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:29:56 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/CreateUpdateVM3Min;299,Microsoft.Compute/CreateUpdateVM30Min;1483']
+ x-ms-ratelimit-remaining-subscription-writes: ['1198']
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/3.0.0rc1 Azure-SDK-For-Python
- AZURECLI/TEST/2.0.17+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [0b02df68-a534-11e7-9b70-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/9fc8cc01-8c60-4f7b-aec3-44fe2056b5e5?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/d96b41ac-f8a9-4fc9-ac59-d7c1bbb778c0?api-version=2017-03-30
response:
- body: {string: "{\r\n \"startTime\": \"2017-09-29T16:34:18.6723882+00:00\",\r\n
- \ \"endTime\": \"2017-09-29T16:34:38.4557354+00:00\",\r\n \"status\": \"Succeeded\",\r\n
- \ \"name\": \"9fc8cc01-8c60-4f7b-aec3-44fe2056b5e5\"\r\n}"}
+ body: {string: "{\r\n \"startTime\": \"2017-11-16T00:29:54.9588109+00:00\",\r\
+ \n \"endTime\": \"2017-11-16T00:30:15.8971235+00:00\",\r\n \"status\": \"\
+ Succeeded\",\r\n \"name\": \"d96b41ac-f8a9-4fc9-ac59-d7c1bbb778c0\"\r\n}"}
headers:
- Cache-Control: [no-cache]
+ cache-control: [no-cache]
+ content-length: ['184']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:30:27 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;2139,Microsoft.Compute/GetOperation30Min;17869']
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachines/testdiagvm/extensions/LinuxDiagnostic?api-version=2017-03-30
+ response:
+ body: {string: "{\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.OSTCExtensions\"\
+ ,\r\n \"type\": \"LinuxDiagnostic\",\r\n \"typeHandlerVersion\": \"\
+ 2.3\",\r\n \"autoUpgradeMinorVersion\": true,\r\n \"settings\": {\"\
+ StorageAccount\":\"clitest000002\",\"ladCfg\":{\"sampleRateInSeconds\":15,\"\
+ diagnosticMonitorConfiguration\":{\"metrics\":{\"metricAggregation\":[{\"\
+ scheduledTransferPeriod\":\"PT1H\"},{\"scheduledTransferPeriod\":\"PT1M\"\
+ }],\"resourceId\":\"__VM_RESOURCE_ID__\"},\"eventVolume\":\"Medium\",\"syslogEvents\"\
+ :{\"syslogEventConfiguration\":{\"LOG_LOCAL7\":\"LOG_DEBUG\",\"LOG_MAIL\"\
+ :\"LOG_DEBUG\",\"LOG_DAEMON\":\"LOG_DEBUG\",\"LOG_FTP\":\"LOG_DEBUG\",\"LOG_LOCAL6\"\
+ :\"LOG_DEBUG\",\"LOG_LOCAL5\":\"LOG_DEBUG\",\"LOG_CRON\":\"LOG_DEBUG\",\"\
+ LOG_LOCAL0\":\"LOG_DEBUG\",\"LOG_LOCAL4\":\"LOG_DEBUG\",\"LOG_UUCP\":\"LOG_DEBUG\"\
+ ,\"LOG_KERN\":\"LOG_DEBUG\",\"LOG_USER\":\"LOG_DEBUG\",\"LOG_LOCAL1\":\"LOG_DEBUG\"\
+ ,\"LOG_SYSLOG\":\"LOG_DEBUG\",\"LOG_LOCAL3\":\"LOG_DEBUG\",\"LOG_AUTH\":\"\
+ LOG_DEBUG\",\"LOG_NEWS\":\"LOG_DEBUG\",\"LOG_LOCAL2\":\"LOG_DEBUG\",\"LOG_LPR\"\
+ :\"LOG_DEBUG\",\"LOG_AUTHPRIV\":\"LOG_DEBUG\"}},\"performanceCounters\":{\"\
+ performanceCounterConfiguration\":[{\"unit\":\"BytesPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Disk read guest OS\"}],\"counter\"\
+ :\"readbytespersecond\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/readbytespersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk writes\"}],\"counter\":\"writespersecond\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/writespersecond\"\
+ },{\"unit\":\"Seconds\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk transfer time\"}],\"counter\":\"averagetransfertime\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\"\
+ :\"/builtin/disk/averagetransfertime\"},{\"unit\":\"CountPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Disk transfers\"}],\"counter\":\"\
+ transferspersecond\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/transferspersecond\"\
+ },{\"unit\":\"BytesPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk write guest OS\"}],\"counter\":\"writebytespersecond\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\"\
+ :\"/builtin/disk/writebytespersecond\"},{\"unit\":\"Seconds\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Disk read time\"}],\"counter\":\"\
+ averagereadtime\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/averagereadtime\"\
+ },{\"unit\":\"Seconds\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk write time\"}],\"counter\":\"averagewritetime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/averagewritetime\"\
+ },{\"unit\":\"BytesPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk total bytes\"}],\"counter\":\"bytespersecond\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/bytespersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk reads\"}],\"counter\":\"readspersecond\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/readspersecond\"\
+ },{\"unit\":\"Count\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk queue length\"}],\"counter\":\"averagediskqueuelength\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\"\
+ :\"/builtin/disk/averagediskqueuelength\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Network in guest OS\"}],\"counter\"\
+ :\"bytesreceived\",\"counterSpecifier\":\"/builtin/network/bytesreceived\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Network total bytes\"}],\"counter\"\
+ :\"bytestotal\",\"counterSpecifier\":\"/builtin/network/bytestotal\",\"class\"\
+ :\"network\",\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\":[{\"\
+ locale\":\"en-us\",\"displayName\":\"Network out guest OS\"}],\"counter\"\
+ :\"bytestransmitted\",\"counterSpecifier\":\"/builtin/network/bytestransmitted\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Network collisions\"}],\"counter\"\
+ :\"totalcollisions\",\"counterSpecifier\":\"/builtin/network/totalcollisions\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets received errors\"}],\"counter\"\
+ :\"totalrxerrors\",\"counterSpecifier\":\"/builtin/network/totalrxerrors\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets sent\"}],\"counter\":\"\
+ packetstransmitted\",\"counterSpecifier\":\"/builtin/network/packetstransmitted\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets received\"}],\"counter\"\
+ :\"packetsreceived\",\"counterSpecifier\":\"/builtin/network/packetsreceived\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets sent errors\"}],\"counter\"\
+ :\"totaltxerrors\",\"counterSpecifier\":\"/builtin/network/totaltxerrors\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"CountPerSecond\"\
+ ,\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem transfers/sec\"\
+ }],\"counter\":\"transferspersecond\",\"condition\":\"IsAggregate=TRUE\",\"\
+ type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/transferspersecond\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem % free space\"}],\"counter\":\"percentfreespace\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/percentfreespace\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem % used space\"}],\"counter\"\
+ :\"percentusedspace\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/percentusedspace\"\
+ },{\"unit\":\"Bytes\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem used space\"}],\"counter\":\"usedspace\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/usedspace\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem read bytes/sec\"}],\"counter\":\"bytesreadpersecond\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/bytesreadpersecond\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem free space\"}],\"counter\"\
+ :\"freespace\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\",\"\
+ class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/freespace\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem % free inodes\"}],\"counter\":\"percentfreeinodes\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/percentfreeinodes\"},{\"unit\":\"BytesPerSecond\",\"\
+ annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem bytes/sec\"\
+ }],\"counter\":\"bytespersecond\",\"condition\":\"IsAggregate=TRUE\",\"type\"\
+ :\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/bytespersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem reads/sec\"}],\"counter\":\"readspersecond\",\"condition\":\"\
+ IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/readspersecond\"},{\"unit\":\"CountPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem write bytes/sec\"}],\"\
+ counter\":\"byteswrittenpersecond\",\"condition\":\"IsAggregate=TRUE\",\"\
+ type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/byteswrittenpersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem writes/sec\"}],\"counter\":\"writespersecond\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/writespersecond\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem % used inodes\"}],\"\
+ counter\":\"percentusedinodes\",\"condition\":\"IsAggregate=TRUE\",\"type\"\
+ :\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/percentusedinodes\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU IO wait time\"}],\"counter\":\"percentiowaittime\",\"condition\":\"\
+ IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\"\
+ :\"/builtin/processor/percentiowaittime\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"CPU user time\"}],\"counter\":\"\
+ percentusertime\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentusertime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU nice time\"}],\"counter\":\"percentnicetime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentnicetime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU percentage guest OS\"}],\"counter\":\"percentprocessortime\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\"\
+ :\"/builtin/processor/percentprocessortime\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"CPU interrupt time\"}],\"counter\"\
+ :\"percentinterrupttime\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentinterrupttime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU idle time\"}],\"counter\":\"percentidletime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentidletime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU privileged time\"}],\"counter\":\"percentprivilegedtime\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\"\
+ :\"/builtin/processor/percentprivilegedtime\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Memory available\"}],\"counter\"\
+ :\"availablememory\",\"counterSpecifier\":\"/builtin/memory/availablememory\"\
+ ,\"class\":\"memory\",\"type\":\"builtin\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Swap percent used\"}],\"counter\"\
+ :\"percentusedswap\",\"counterSpecifier\":\"/builtin/memory/percentusedswap\"\
+ ,\"class\":\"memory\",\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Memory used\"}],\"counter\":\"usedmemory\"\
+ ,\"counterSpecifier\":\"/builtin/memory/usedmemory\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\"\
+ :\"en-us\",\"displayName\":\"Page reads\"}],\"counter\":\"pagesreadpersec\"\
+ ,\"counterSpecifier\":\"/builtin/memory/pagesreadpersec\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\":[{\"locale\":\"\
+ en-us\",\"displayName\":\"Swap available\"}],\"counter\":\"availableswap\"\
+ ,\"counterSpecifier\":\"/builtin/memory/availableswap\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"\
+ en-us\",\"displayName\":\"Swap percent available\"}],\"counter\":\"percentavailableswap\"\
+ ,\"counterSpecifier\":\"/builtin/memory/percentavailableswap\",\"class\":\"\
+ memory\",\"type\":\"builtin\"},{\"unit\":\"Percent\",\"annotation\":[{\"locale\"\
+ :\"en-us\",\"displayName\":\"Mem. percent available\"}],\"counter\":\"percentavailablememory\"\
+ ,\"counterSpecifier\":\"/builtin/memory/percentavailablememory\",\"class\"\
+ :\"memory\",\"type\":\"builtin\"},{\"unit\":\"CountPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Pages\"}],\"counter\":\"pagespersec\"\
+ ,\"counterSpecifier\":\"/builtin/memory/pagespersec\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\":[{\"locale\":\"\
+ en-us\",\"displayName\":\"Swap used\"}],\"counter\":\"usedswap\",\"counterSpecifier\"\
+ :\"/builtin/memory/usedswap\",\"class\":\"memory\",\"type\":\"builtin\"},{\"\
+ unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"\
+ Memory percentage\"}],\"counter\":\"percentusedmemory\",\"counterSpecifier\"\
+ :\"/builtin/memory/percentusedmemory\",\"class\":\"memory\",\"type\":\"builtin\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Page writes\"}],\"counter\":\"pageswrittenpersec\",\"counterSpecifier\"\
+ :\"/builtin/memory/pageswrittenpersec\",\"class\":\"memory\",\"type\":\"builtin\"\
+ }]}}}},\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\"\
+ : \"Microsoft.Compute/virtualMachines/extensions\",\r\n \"location\": \"\
+ westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachines/testdiagvm/extensions/LinuxDiagnostic\"\
+ ,\r\n \"name\": \"LinuxDiagnostic\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['12326']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:30:27 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4987,Microsoft.Compute/LowCostGet30Min;39901']
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- Date: ['Fri, 29 Sep 2017 16:34:50 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachines/testdiagvm?api-version=2017-03-30&$expand=instanceView
+ response:
+ body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"ba54520f-7027-4327-befa-701d649b050c\"\
+ ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\
+ \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \
+ \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\"\
+ ,\r\n \"sku\": \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n\
+ \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \
+ \ \"name\": \"osdisk_b4e70d943e\",\r\n \"createOption\": \"FromImage\"\
+ ,\r\n \"vhd\": {\r\n \"uri\": \"https://vhdstorageb4e70d943e538b.blob.core.windows.net/vhds/osdisk_b4e70d943e.vhd\"\
+ \r\n },\r\n \"caching\": \"ReadWrite\",\r\n \"diskSizeGB\"\
+ : 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\"\
+ : {\r\n \"computerName\": \"testdiagvm\",\r\n \"adminUsername\"\
+ : \"user11\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\"\
+ : false\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\"\
+ : {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/networkInterfaces/testdiagvmVMNic\"\
+ }]},\r\n \"provisioningState\": \"Succeeded\",\r\n \"instanceView\"\
+ : {\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.2.18\",\r\n\
+ \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\
+ ,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"\
+ Ready\",\r\n \"message\": \"Guest Agent is running\",\r\n \
+ \ \"time\": \"2017-11-16T00:30:26+00:00\"\r\n }\r\n \
+ \ ],\r\n \"extensionHandlers\": [\r\n {\r\n \"\
+ type\": \"Microsoft.OSTCExtensions.LinuxDiagnostic\",\r\n \"typeHandlerVersion\"\
+ : \"2.3.9027\",\r\n \"status\": {\r\n \"code\": \"\
+ ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n \
+ \ \"displayStatus\": \"Ready\",\r\n \"message\":\
+ \ \"Plugin enabled\"\r\n }\r\n }\r\n ]\r\n \
+ \ },\r\n \"disks\": [\r\n {\r\n \"name\": \"osdisk_b4e70d943e\"\
+ ,\r\n \"statuses\": [\r\n {\r\n \"code\"\
+ : \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\
+ \n \"displayStatus\": \"Provisioning succeeded\",\r\n \
+ \ \"time\": \"2017-11-16T00:29:55.083817+00:00\"\r\n }\r\n\
+ \ ]\r\n }\r\n ],\r\n \"extensions\": [\r\n \
+ \ {\r\n \"name\": \"LinuxDiagnostic\",\r\n \"type\": \"\
+ Microsoft.OSTCExtensions.LinuxDiagnostic\",\r\n \"typeHandlerVersion\"\
+ : \"2.3.9027\",\r\n \"statuses\": [\r\n {\r\n \
+ \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\"\
+ : \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\"\
+ ,\r\n \"message\": \"Enable succeeded\"\r\n }\r\n\
+ \ ]\r\n }\r\n ],\r\n \"statuses\": [\r\n \
+ \ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"\
+ level\": \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\"\
+ ,\r\n \"time\": \"2017-11-16T00:30:15.8815123+00:00\"\r\n \
+ \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \
+ \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\
+ \n }\r\n ]\r\n }\r\n },\r\n \"resources\": [\r\n {\r\n\
+ \ \"properties\": {\r\n \"publisher\": \"Microsoft.OSTCExtensions\"\
+ ,\r\n \"type\": \"LinuxDiagnostic\",\r\n \"typeHandlerVersion\"\
+ : \"2.3\",\r\n \"autoUpgradeMinorVersion\": true,\r\n \"settings\"\
+ : {\"StorageAccount\":\"clitest000002\",\"ladCfg\":{\"sampleRateInSeconds\"\
+ :15,\"diagnosticMonitorConfiguration\":{\"metrics\":{\"metricAggregation\"\
+ :[{\"scheduledTransferPeriod\":\"PT1H\"},{\"scheduledTransferPeriod\":\"PT1M\"\
+ }],\"resourceId\":\"__VM_RESOURCE_ID__\"},\"eventVolume\":\"Medium\",\"syslogEvents\"\
+ :{\"syslogEventConfiguration\":{\"LOG_LOCAL7\":\"LOG_DEBUG\",\"LOG_MAIL\"\
+ :\"LOG_DEBUG\",\"LOG_DAEMON\":\"LOG_DEBUG\",\"LOG_FTP\":\"LOG_DEBUG\",\"LOG_LOCAL6\"\
+ :\"LOG_DEBUG\",\"LOG_LOCAL5\":\"LOG_DEBUG\",\"LOG_CRON\":\"LOG_DEBUG\",\"\
+ LOG_LOCAL0\":\"LOG_DEBUG\",\"LOG_LOCAL4\":\"LOG_DEBUG\",\"LOG_UUCP\":\"LOG_DEBUG\"\
+ ,\"LOG_KERN\":\"LOG_DEBUG\",\"LOG_USER\":\"LOG_DEBUG\",\"LOG_LOCAL1\":\"LOG_DEBUG\"\
+ ,\"LOG_SYSLOG\":\"LOG_DEBUG\",\"LOG_LOCAL3\":\"LOG_DEBUG\",\"LOG_AUTH\":\"\
+ LOG_DEBUG\",\"LOG_NEWS\":\"LOG_DEBUG\",\"LOG_LOCAL2\":\"LOG_DEBUG\",\"LOG_LPR\"\
+ :\"LOG_DEBUG\",\"LOG_AUTHPRIV\":\"LOG_DEBUG\"}},\"performanceCounters\":{\"\
+ performanceCounterConfiguration\":[{\"unit\":\"BytesPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Disk read guest OS\"}],\"counter\"\
+ :\"readbytespersecond\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/readbytespersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk writes\"}],\"counter\":\"writespersecond\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/writespersecond\"\
+ },{\"unit\":\"Seconds\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk transfer time\"}],\"counter\":\"averagetransfertime\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\"\
+ :\"/builtin/disk/averagetransfertime\"},{\"unit\":\"CountPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Disk transfers\"}],\"counter\":\"\
+ transferspersecond\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/transferspersecond\"\
+ },{\"unit\":\"BytesPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk write guest OS\"}],\"counter\":\"writebytespersecond\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\"\
+ :\"/builtin/disk/writebytespersecond\"},{\"unit\":\"Seconds\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Disk read time\"}],\"counter\":\"\
+ averagereadtime\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/averagereadtime\"\
+ },{\"unit\":\"Seconds\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk write time\"}],\"counter\":\"averagewritetime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/averagewritetime\"\
+ },{\"unit\":\"BytesPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk total bytes\"}],\"counter\":\"bytespersecond\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/bytespersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk reads\"}],\"counter\":\"readspersecond\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/readspersecond\"\
+ },{\"unit\":\"Count\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk queue length\"}],\"counter\":\"averagediskqueuelength\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\"\
+ :\"/builtin/disk/averagediskqueuelength\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Network in guest OS\"}],\"counter\"\
+ :\"bytesreceived\",\"counterSpecifier\":\"/builtin/network/bytesreceived\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Network total bytes\"}],\"counter\"\
+ :\"bytestotal\",\"counterSpecifier\":\"/builtin/network/bytestotal\",\"class\"\
+ :\"network\",\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\":[{\"\
+ locale\":\"en-us\",\"displayName\":\"Network out guest OS\"}],\"counter\"\
+ :\"bytestransmitted\",\"counterSpecifier\":\"/builtin/network/bytestransmitted\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Network collisions\"}],\"counter\"\
+ :\"totalcollisions\",\"counterSpecifier\":\"/builtin/network/totalcollisions\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets received errors\"}],\"counter\"\
+ :\"totalrxerrors\",\"counterSpecifier\":\"/builtin/network/totalrxerrors\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets sent\"}],\"counter\":\"\
+ packetstransmitted\",\"counterSpecifier\":\"/builtin/network/packetstransmitted\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets received\"}],\"counter\"\
+ :\"packetsreceived\",\"counterSpecifier\":\"/builtin/network/packetsreceived\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets sent errors\"}],\"counter\"\
+ :\"totaltxerrors\",\"counterSpecifier\":\"/builtin/network/totaltxerrors\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"CountPerSecond\"\
+ ,\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem transfers/sec\"\
+ }],\"counter\":\"transferspersecond\",\"condition\":\"IsAggregate=TRUE\",\"\
+ type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/transferspersecond\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem % free space\"}],\"counter\":\"percentfreespace\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/percentfreespace\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem % used space\"}],\"counter\"\
+ :\"percentusedspace\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/percentusedspace\"\
+ },{\"unit\":\"Bytes\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem used space\"}],\"counter\":\"usedspace\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/usedspace\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem read bytes/sec\"}],\"counter\":\"bytesreadpersecond\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/bytesreadpersecond\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem free space\"}],\"counter\"\
+ :\"freespace\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\",\"\
+ class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/freespace\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem % free inodes\"}],\"counter\":\"percentfreeinodes\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/percentfreeinodes\"},{\"unit\":\"BytesPerSecond\",\"\
+ annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem bytes/sec\"\
+ }],\"counter\":\"bytespersecond\",\"condition\":\"IsAggregate=TRUE\",\"type\"\
+ :\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/bytespersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem reads/sec\"}],\"counter\":\"readspersecond\",\"condition\":\"\
+ IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/readspersecond\"},{\"unit\":\"CountPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem write bytes/sec\"}],\"\
+ counter\":\"byteswrittenpersecond\",\"condition\":\"IsAggregate=TRUE\",\"\
+ type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/byteswrittenpersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem writes/sec\"}],\"counter\":\"writespersecond\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/writespersecond\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem % used inodes\"}],\"\
+ counter\":\"percentusedinodes\",\"condition\":\"IsAggregate=TRUE\",\"type\"\
+ :\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/percentusedinodes\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU IO wait time\"}],\"counter\":\"percentiowaittime\",\"condition\":\"\
+ IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\"\
+ :\"/builtin/processor/percentiowaittime\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"CPU user time\"}],\"counter\":\"\
+ percentusertime\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentusertime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU nice time\"}],\"counter\":\"percentnicetime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentnicetime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU percentage guest OS\"}],\"counter\":\"percentprocessortime\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\"\
+ :\"/builtin/processor/percentprocessortime\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"CPU interrupt time\"}],\"counter\"\
+ :\"percentinterrupttime\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentinterrupttime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU idle time\"}],\"counter\":\"percentidletime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentidletime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU privileged time\"}],\"counter\":\"percentprivilegedtime\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\"\
+ :\"/builtin/processor/percentprivilegedtime\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Memory available\"}],\"counter\"\
+ :\"availablememory\",\"counterSpecifier\":\"/builtin/memory/availablememory\"\
+ ,\"class\":\"memory\",\"type\":\"builtin\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Swap percent used\"}],\"counter\"\
+ :\"percentusedswap\",\"counterSpecifier\":\"/builtin/memory/percentusedswap\"\
+ ,\"class\":\"memory\",\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Memory used\"}],\"counter\":\"usedmemory\"\
+ ,\"counterSpecifier\":\"/builtin/memory/usedmemory\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\"\
+ :\"en-us\",\"displayName\":\"Page reads\"}],\"counter\":\"pagesreadpersec\"\
+ ,\"counterSpecifier\":\"/builtin/memory/pagesreadpersec\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\":[{\"locale\":\"\
+ en-us\",\"displayName\":\"Swap available\"}],\"counter\":\"availableswap\"\
+ ,\"counterSpecifier\":\"/builtin/memory/availableswap\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"\
+ en-us\",\"displayName\":\"Swap percent available\"}],\"counter\":\"percentavailableswap\"\
+ ,\"counterSpecifier\":\"/builtin/memory/percentavailableswap\",\"class\":\"\
+ memory\",\"type\":\"builtin\"},{\"unit\":\"Percent\",\"annotation\":[{\"locale\"\
+ :\"en-us\",\"displayName\":\"Mem. percent available\"}],\"counter\":\"percentavailablememory\"\
+ ,\"counterSpecifier\":\"/builtin/memory/percentavailablememory\",\"class\"\
+ :\"memory\",\"type\":\"builtin\"},{\"unit\":\"CountPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Pages\"}],\"counter\":\"pagespersec\"\
+ ,\"counterSpecifier\":\"/builtin/memory/pagespersec\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\":[{\"locale\":\"\
+ en-us\",\"displayName\":\"Swap used\"}],\"counter\":\"usedswap\",\"counterSpecifier\"\
+ :\"/builtin/memory/usedswap\",\"class\":\"memory\",\"type\":\"builtin\"},{\"\
+ unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"\
+ Memory percentage\"}],\"counter\":\"percentusedmemory\",\"counterSpecifier\"\
+ :\"/builtin/memory/percentusedmemory\",\"class\":\"memory\",\"type\":\"builtin\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Page writes\"}],\"counter\":\"pageswrittenpersec\",\"counterSpecifier\"\
+ :\"/builtin/memory/pageswrittenpersec\",\"class\":\"memory\",\"type\":\"builtin\"\
+ }]}}}},\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \
+ \ \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n \
+ \ \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachines/testdiagvm/extensions/LinuxDiagnostic\"\
+ ,\r\n \"name\": \"LinuxDiagnostic\"\r\n }\r\n ],\r\n \"type\": \"\
+ Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n \"\
+ tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachines/testdiagvm\"\
+ ,\r\n \"name\": \"testdiagvm\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['15894']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:30:27 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4986,Microsoft.Compute/LowCostGet30Min;39900']
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Length: ['0']
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: DELETE
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachines/testdiagvm/extensions/LinuxDiagnostic?api-version=2017-03-30
+ response:
+ body: {string: ''}
+ headers:
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/3a5168d0-7b4b-47de-bbb6-a74d5f782932?api-version=2017-03-30']
+ cache-control: [no-cache]
+ content-length: ['0']
+ date: ['Thu, 16 Nov 2017 00:30:28 GMT']
+ expires: ['-1']
+ location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/3a5168d0-7b4b-47de-bbb6-a74d5f782932?monitor=true&api-version=2017-03-30']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/CreateUpdateVM3Min;298,Microsoft.Compute/CreateUpdateVM30Min;1484']
+ x-ms-ratelimit-remaining-subscription-writes: ['1198']
+ status: {code: 202, message: Accepted}
+- request:
+ body: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/3a5168d0-7b4b-47de-bbb6-a74d5f782932?api-version=2017-03-30
+ response:
+ body: {string: "{\r\n \"startTime\": \"2017-11-16T00:30:27.3038617+00:00\",\r\
+ \n \"endTime\": \"2017-11-16T00:30:41.1794999+00:00\",\r\n \"status\": \"\
+ Succeeded\",\r\n \"name\": \"3a5168d0-7b4b-47de-bbb6-a74d5f782932\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
content-length: ['184']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:30:58 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;2143,Microsoft.Compute/GetOperation30Min;17866']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/3.0.0rc1 Azure-SDK-For-Python
- AZURECLI/TEST/2.0.17+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [0b02df68-a534-11e7-9b70-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachines/testdiagvm/extensions/LinuxDiagnostic?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachines/testdiagvm?api-version=2017-03-30&$expand=instanceView
response:
- body: {string: "{\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.Azure.Diagnostics\",\r\n
- \ \"type\": \"LinuxDiagnostic\",\r\n \"typeHandlerVersion\": \"3.0\",\r\n
- \ \"autoUpgradeMinorVersion\": true,\r\n \"settings\": {\"ladCfg\":{\"sampleRateInSeconds\":15,\"diagnosticMonitorConfiguration\":{\"eventVolume\":\"Medium\",\"syslogEvents\":{\"syslogEventConfiguration\":{\"LOG_LOCAL2\":\"LOG_DEBUG\",\"LOG_LOCAL1\":\"LOG_DEBUG\",\"LOG_NEWS\":\"LOG_DEBUG\",\"LOG_UUCP\":\"LOG_DEBUG\",\"LOG_AUTHPRIV\":\"LOG_DEBUG\",\"LOG_LOCAL7\":\"LOG_DEBUG\",\"LOG_KERN\":\"LOG_DEBUG\",\"LOG_LOCAL4\":\"LOG_DEBUG\",\"LOG_AUTH\":\"LOG_DEBUG\",\"LOG_CRON\":\"LOG_DEBUG\",\"LOG_LOCAL3\":\"LOG_DEBUG\",\"LOG_DAEMON\":\"LOG_DEBUG\",\"LOG_LOCAL5\":\"LOG_DEBUG\",\"LOG_USER\":\"LOG_DEBUG\",\"LOG_LOCAL6\":\"LOG_DEBUG\",\"LOG_LOCAL0\":\"LOG_DEBUG\",\"LOG_LPR\":\"LOG_DEBUG\",\"LOG_FTP\":\"LOG_DEBUG\",\"LOG_SYSLOG\":\"LOG_DEBUG\",\"LOG_MAIL\":\"LOG_DEBUG\"}},\"performanceCounters\":{\"performanceCounterConfiguration\":[{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"readbytespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- read guest OS\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/disk/readbytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"writespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- writes\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/disk/writespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagetransfertime\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- transfer time\"}],\"unit\":\"Seconds\",\"counterSpecifier\":\"/builtin/disk/averagetransfertime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"transferspersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- transfers\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/disk/transferspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"writebytespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- write guest OS\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/disk/writebytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagereadtime\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- read time\"}],\"unit\":\"Seconds\",\"counterSpecifier\":\"/builtin/disk/averagereadtime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagewritetime\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- write time\"}],\"unit\":\"Seconds\",\"counterSpecifier\":\"/builtin/disk/averagewritetime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"bytespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- total bytes\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/disk/bytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"readspersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- reads\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/disk/readspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagediskqueuelength\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- queue length\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/disk/averagediskqueuelength\"},{\"counter\":\"bytesreceived\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- in guest OS\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/network/bytesreceived\"},{\"counter\":\"bytestotal\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- total bytes\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/network/bytestotal\"},{\"counter\":\"bytestransmitted\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- out guest OS\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/network/bytestransmitted\"},{\"counter\":\"totalcollisions\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- collisions\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/totalcollisions\"},{\"counter\":\"totalrxerrors\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- received errors\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/totalrxerrors\"},{\"counter\":\"packetstransmitted\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- sent\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/packetstransmitted\"},{\"counter\":\"packetsreceived\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- received\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/packetsreceived\"},{\"counter\":\"totaltxerrors\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- sent errors\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/totaltxerrors\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"transferspersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- transfers/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/transferspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentfreespace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % free space\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentfreespace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentusedspace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % used space\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentusedspace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"usedspace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- used space\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/filesystem/usedspace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"bytesreadpersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- read bytes/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/bytesreadpersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"freespace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- free space\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/filesystem/freespace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentfreeinodes\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % free inodes\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentfreeinodes\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"bytespersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- bytes/sec\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/bytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"readspersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- reads/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/readspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"byteswrittenpersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- write bytes/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/byteswrittenpersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"writespersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- writes/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/writespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentusedinodes\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % used inodes\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentusedinodes\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentiowaittime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- IO wait time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentiowaittime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentusertime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- user time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentusertime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentnicetime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- nice time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentnicetime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentprocessortime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- percentage guest OS\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentprocessortime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentinterrupttime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- interrupt time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentinterrupttime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentidletime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- idle time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentidletime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentprivilegedtime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- privileged time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentprivilegedtime\"},{\"counter\":\"availablememory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Memory
- available\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/availablememory\"},{\"counter\":\"percentusedswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- percent used\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentusedswap\"},{\"counter\":\"usedmemory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Memory
- used\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/usedmemory\"},{\"counter\":\"pagesreadpersec\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Page
- reads\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/memory/pagesreadpersec\"},{\"counter\":\"availableswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- available\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/availableswap\"},{\"counter\":\"percentavailableswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- percent available\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentavailableswap\"},{\"counter\":\"percentavailablememory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Mem.
- percent available\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentavailablememory\"},{\"counter\":\"pagespersec\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Pages\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/memory/pagespersec\"},{\"counter\":\"usedswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- used\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/usedswap\"},{\"counter\":\"percentusedmemory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Memory
- percentage\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentusedmemory\"},{\"counter\":\"pageswrittenpersec\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Page
- writes\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/memory/pageswrittenpersec\"}]},\"metrics\":{\"metricAggregation\":[{\"scheduledTransferPeriod\":\"PT1H\"},{\"scheduledTransferPeriod\":\"PT1M\"}],\"resourceId\":\"__VM_RESOURCE_ID__\"}}},\"StorageAccount\":\"clitestdiagextsa20170510\"},\r\n
- \ \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n
- \ \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachines/testdiagvm/extensions/LinuxDiagnostic\",\r\n
- \ \"name\": \"LinuxDiagnostic\"\r\n}"}
- headers:
- Cache-Control: [no-cache]
+ body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"ba54520f-7027-4327-befa-701d649b050c\"\
+ ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\
+ \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \
+ \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\"\
+ ,\r\n \"sku\": \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n\
+ \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \
+ \ \"name\": \"osdisk_b4e70d943e\",\r\n \"createOption\": \"FromImage\"\
+ ,\r\n \"vhd\": {\r\n \"uri\": \"https://vhdstorageb4e70d943e538b.blob.core.windows.net/vhds/osdisk_b4e70d943e.vhd\"\
+ \r\n },\r\n \"caching\": \"ReadWrite\",\r\n \"diskSizeGB\"\
+ : 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\"\
+ : {\r\n \"computerName\": \"testdiagvm\",\r\n \"adminUsername\"\
+ : \"user11\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\"\
+ : false\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\"\
+ : {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/networkInterfaces/testdiagvmVMNic\"\
+ }]},\r\n \"provisioningState\": \"Succeeded\",\r\n \"instanceView\"\
+ : {\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.2.18\",\r\n\
+ \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\
+ ,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"\
+ Ready\",\r\n \"message\": \"Guest Agent is running\",\r\n \
+ \ \"time\": \"2017-11-16T00:30:59+00:00\"\r\n }\r\n \
+ \ ],\r\n \"extensionHandlers\": []\r\n },\r\n \"disks\":\
+ \ [\r\n {\r\n \"name\": \"osdisk_b4e70d943e\",\r\n \
+ \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\
+ ,\r\n \"level\": \"Info\",\r\n \"displayStatus\"\
+ : \"Provisioning succeeded\",\r\n \"time\": \"2017-11-16T00:30:27.3663958+00:00\"\
+ \r\n }\r\n ]\r\n }\r\n ],\r\n \"statuses\"\
+ : [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\
+ \n \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning\
+ \ succeeded\",\r\n \"time\": \"2017-11-16T00:30:41.1482513+00:00\"\
+ \r\n },\r\n {\r\n \"code\": \"PowerState/running\"\
+ ,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\
+ \r\n }\r\n ]\r\n }\r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachines\"\
+ ,\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachines/testdiagvm\"\
+ ,\r\n \"name\": \"testdiagvm\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['2671']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:30:59 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4984,Microsoft.Compute/LowCostGet30Min;39898']
+ status: {code: 200, message: OK}
+- request:
+ body: 'b''{"location": "westus", "properties": {"type": "LinuxDiagnostic", "settings":
+ {"StorageAccount": "clitest000002", "ladCfg": {"sampleRateInSeconds": 15, "diagnosticMonitorConfiguration":
+ {"metrics": {"metricAggregation": [{"scheduledTransferPeriod": "PT1H"}, {"scheduledTransferPeriod":
+ "PT1M"}], "resourceId": "__VM_RESOURCE_ID__"}, "eventVolume": "Medium", "syslogEvents":
+ {"syslogEventConfiguration": {"LOG_LOCAL7": "LOG_DEBUG", "LOG_MAIL": "LOG_DEBUG",
+ "LOG_DAEMON": "LOG_DEBUG", "LOG_FTP": "LOG_DEBUG", "LOG_LOCAL6": "LOG_DEBUG",
+ "LOG_LOCAL5": "LOG_DEBUG", "LOG_CRON": "LOG_DEBUG", "LOG_LOCAL0": "LOG_DEBUG",
+ "LOG_LOCAL4": "LOG_DEBUG", "LOG_UUCP": "LOG_DEBUG", "LOG_KERN": "LOG_DEBUG",
+ "LOG_USER": "LOG_DEBUG", "LOG_LOCAL1": "LOG_DEBUG", "LOG_SYSLOG": "LOG_DEBUG",
+ "LOG_LOCAL3": "LOG_DEBUG", "LOG_AUTH": "LOG_DEBUG", "LOG_NEWS": "LOG_DEBUG",
+ "LOG_LOCAL2": "LOG_DEBUG", "LOG_LPR": "LOG_DEBUG", "LOG_AUTHPRIV": "LOG_DEBUG"}},
+ "performanceCounters": {"performanceCounterConfiguration": [{"unit": "BytesPerSecond",
+ "annotation": [{"locale": "en-us", "displayName": "Disk read guest OS"}], "counter":
+ "readbytespersecond", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "disk", "counterSpecifier": "/builtin/disk/readbytespersecond"}, {"unit": "CountPerSecond",
+ "annotation": [{"locale": "en-us", "displayName": "Disk writes"}], "counter":
+ "writespersecond", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "disk", "counterSpecifier": "/builtin/disk/writespersecond"}, {"unit": "Seconds",
+ "annotation": [{"locale": "en-us", "displayName": "Disk transfer time"}], "counter":
+ "averagetransfertime", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "disk", "counterSpecifier": "/builtin/disk/averagetransfertime"}, {"unit": "CountPerSecond",
+ "annotation": [{"locale": "en-us", "displayName": "Disk transfers"}], "counter":
+ "transferspersecond", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "disk", "counterSpecifier": "/builtin/disk/transferspersecond"}, {"unit": "BytesPerSecond",
+ "annotation": [{"locale": "en-us", "displayName": "Disk write guest OS"}], "counter":
+ "writebytespersecond", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "disk", "counterSpecifier": "/builtin/disk/writebytespersecond"}, {"unit": "Seconds",
+ "annotation": [{"locale": "en-us", "displayName": "Disk read time"}], "counter":
+ "averagereadtime", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "disk", "counterSpecifier": "/builtin/disk/averagereadtime"}, {"unit": "Seconds",
+ "annotation": [{"locale": "en-us", "displayName": "Disk write time"}], "counter":
+ "averagewritetime", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "disk", "counterSpecifier": "/builtin/disk/averagewritetime"}, {"unit": "BytesPerSecond",
+ "annotation": [{"locale": "en-us", "displayName": "Disk total bytes"}], "counter":
+ "bytespersecond", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "disk", "counterSpecifier": "/builtin/disk/bytespersecond"}, {"unit": "CountPerSecond",
+ "annotation": [{"locale": "en-us", "displayName": "Disk reads"}], "counter":
+ "readspersecond", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "disk", "counterSpecifier": "/builtin/disk/readspersecond"}, {"unit": "Count",
+ "annotation": [{"locale": "en-us", "displayName": "Disk queue length"}], "counter":
+ "averagediskqueuelength", "condition": "IsAggregate=TRUE", "type": "builtin",
+ "class": "disk", "counterSpecifier": "/builtin/disk/averagediskqueuelength"},
+ {"unit": "Bytes", "annotation": [{"locale": "en-us", "displayName": "Network
+ in guest OS"}], "counter": "bytesreceived", "counterSpecifier": "/builtin/network/bytesreceived",
+ "class": "network", "type": "builtin"}, {"unit": "Bytes", "annotation": [{"locale":
+ "en-us", "displayName": "Network total bytes"}], "counter": "bytestotal", "counterSpecifier":
+ "/builtin/network/bytestotal", "class": "network", "type": "builtin"}, {"unit":
+ "Bytes", "annotation": [{"locale": "en-us", "displayName": "Network out guest
+ OS"}], "counter": "bytestransmitted", "counterSpecifier": "/builtin/network/bytestransmitted",
+ "class": "network", "type": "builtin"}, {"unit": "Count", "annotation": [{"locale":
+ "en-us", "displayName": "Network collisions"}], "counter": "totalcollisions",
+ "counterSpecifier": "/builtin/network/totalcollisions", "class": "network",
+ "type": "builtin"}, {"unit": "Count", "annotation": [{"locale": "en-us", "displayName":
+ "Packets received errors"}], "counter": "totalrxerrors", "counterSpecifier":
+ "/builtin/network/totalrxerrors", "class": "network", "type": "builtin"}, {"unit":
+ "Count", "annotation": [{"locale": "en-us", "displayName": "Packets sent"}],
+ "counter": "packetstransmitted", "counterSpecifier": "/builtin/network/packetstransmitted",
+ "class": "network", "type": "builtin"}, {"unit": "Count", "annotation": [{"locale":
+ "en-us", "displayName": "Packets received"}], "counter": "packetsreceived",
+ "counterSpecifier": "/builtin/network/packetsreceived", "class": "network",
+ "type": "builtin"}, {"unit": "Count", "annotation": [{"locale": "en-us", "displayName":
+ "Packets sent errors"}], "counter": "totaltxerrors", "counterSpecifier": "/builtin/network/totaltxerrors",
+ "class": "network", "type": "builtin"}, {"unit": "CountPerSecond", "annotation":
+ [{"locale": "en-us", "displayName": "Filesystem transfers/sec"}], "counter":
+ "transferspersecond", "condition": "IsAggregate=TRUE", "type": "builtin", "class":
+ "filesystem", "counterSpecifier": "/builtin/filesystem/transferspersecond"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "Filesystem
+ % free space"}], "counter": "percentfreespace", "condition": "IsAggregate=TRUE",
+ "type": "builtin", "class": "filesystem", "counterSpecifier": "/builtin/filesystem/percentfreespace"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "Filesystem
+ % used space"}], "counter": "percentusedspace", "condition": "IsAggregate=TRUE",
+ "type": "builtin", "class": "filesystem", "counterSpecifier": "/builtin/filesystem/percentusedspace"},
+ {"unit": "Bytes", "annotation": [{"locale": "en-us", "displayName": "Filesystem
+ used space"}], "counter": "usedspace", "condition": "IsAggregate=TRUE", "type":
+ "builtin", "class": "filesystem", "counterSpecifier": "/builtin/filesystem/usedspace"},
+ {"unit": "CountPerSecond", "annotation": [{"locale": "en-us", "displayName":
+ "Filesystem read bytes/sec"}], "counter": "bytesreadpersecond", "condition":
+ "IsAggregate=TRUE", "type": "builtin", "class": "filesystem", "counterSpecifier":
+ "/builtin/filesystem/bytesreadpersecond"}, {"unit": "Bytes", "annotation": [{"locale":
+ "en-us", "displayName": "Filesystem free space"}], "counter": "freespace", "condition":
+ "IsAggregate=TRUE", "type": "builtin", "class": "filesystem", "counterSpecifier":
+ "/builtin/filesystem/freespace"}, {"unit": "Percent", "annotation": [{"locale":
+ "en-us", "displayName": "Filesystem % free inodes"}], "counter": "percentfreeinodes",
+ "condition": "IsAggregate=TRUE", "type": "builtin", "class": "filesystem", "counterSpecifier":
+ "/builtin/filesystem/percentfreeinodes"}, {"unit": "BytesPerSecond", "annotation":
+ [{"locale": "en-us", "displayName": "Filesystem bytes/sec"}], "counter": "bytespersecond",
+ "condition": "IsAggregate=TRUE", "type": "builtin", "class": "filesystem", "counterSpecifier":
+ "/builtin/filesystem/bytespersecond"}, {"unit": "CountPerSecond", "annotation":
+ [{"locale": "en-us", "displayName": "Filesystem reads/sec"}], "counter": "readspersecond",
+ "condition": "IsAggregate=TRUE", "type": "builtin", "class": "filesystem", "counterSpecifier":
+ "/builtin/filesystem/readspersecond"}, {"unit": "CountPerSecond", "annotation":
+ [{"locale": "en-us", "displayName": "Filesystem write bytes/sec"}], "counter":
+ "byteswrittenpersecond", "condition": "IsAggregate=TRUE", "type": "builtin",
+ "class": "filesystem", "counterSpecifier": "/builtin/filesystem/byteswrittenpersecond"},
+ {"unit": "CountPerSecond", "annotation": [{"locale": "en-us", "displayName":
+ "Filesystem writes/sec"}], "counter": "writespersecond", "condition": "IsAggregate=TRUE",
+ "type": "builtin", "class": "filesystem", "counterSpecifier": "/builtin/filesystem/writespersecond"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "Filesystem
+ % used inodes"}], "counter": "percentusedinodes", "condition": "IsAggregate=TRUE",
+ "type": "builtin", "class": "filesystem", "counterSpecifier": "/builtin/filesystem/percentusedinodes"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "CPU IO
+ wait time"}], "counter": "percentiowaittime", "condition": "IsAggregate=TRUE",
+ "type": "builtin", "class": "processor", "counterSpecifier": "/builtin/processor/percentiowaittime"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "CPU user
+ time"}], "counter": "percentusertime", "condition": "IsAggregate=TRUE", "type":
+ "builtin", "class": "processor", "counterSpecifier": "/builtin/processor/percentusertime"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "CPU nice
+ time"}], "counter": "percentnicetime", "condition": "IsAggregate=TRUE", "type":
+ "builtin", "class": "processor", "counterSpecifier": "/builtin/processor/percentnicetime"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "CPU percentage
+ guest OS"}], "counter": "percentprocessortime", "condition": "IsAggregate=TRUE",
+ "type": "builtin", "class": "processor", "counterSpecifier": "/builtin/processor/percentprocessortime"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "CPU interrupt
+ time"}], "counter": "percentinterrupttime", "condition": "IsAggregate=TRUE",
+ "type": "builtin", "class": "processor", "counterSpecifier": "/builtin/processor/percentinterrupttime"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "CPU idle
+ time"}], "counter": "percentidletime", "condition": "IsAggregate=TRUE", "type":
+ "builtin", "class": "processor", "counterSpecifier": "/builtin/processor/percentidletime"},
+ {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName": "CPU privileged
+ time"}], "counter": "percentprivilegedtime", "condition": "IsAggregate=TRUE",
+ "type": "builtin", "class": "processor", "counterSpecifier": "/builtin/processor/percentprivilegedtime"},
+ {"unit": "Bytes", "annotation": [{"locale": "en-us", "displayName": "Memory
+ available"}], "counter": "availablememory", "counterSpecifier": "/builtin/memory/availablememory",
+ "class": "memory", "type": "builtin"}, {"unit": "Percent", "annotation": [{"locale":
+ "en-us", "displayName": "Swap percent used"}], "counter": "percentusedswap",
+ "counterSpecifier": "/builtin/memory/percentusedswap", "class": "memory", "type":
+ "builtin"}, {"unit": "Bytes", "annotation": [{"locale": "en-us", "displayName":
+ "Memory used"}], "counter": "usedmemory", "counterSpecifier": "/builtin/memory/usedmemory",
+ "class": "memory", "type": "builtin"}, {"unit": "CountPerSecond", "annotation":
+ [{"locale": "en-us", "displayName": "Page reads"}], "counter": "pagesreadpersec",
+ "counterSpecifier": "/builtin/memory/pagesreadpersec", "class": "memory", "type":
+ "builtin"}, {"unit": "Bytes", "annotation": [{"locale": "en-us", "displayName":
+ "Swap available"}], "counter": "availableswap", "counterSpecifier": "/builtin/memory/availableswap",
+ "class": "memory", "type": "builtin"}, {"unit": "Percent", "annotation": [{"locale":
+ "en-us", "displayName": "Swap percent available"}], "counter": "percentavailableswap",
+ "counterSpecifier": "/builtin/memory/percentavailableswap", "class": "memory",
+ "type": "builtin"}, {"unit": "Percent", "annotation": [{"locale": "en-us", "displayName":
+ "Mem. percent available"}], "counter": "percentavailablememory", "counterSpecifier":
+ "/builtin/memory/percentavailablememory", "class": "memory", "type": "builtin"},
+ {"unit": "CountPerSecond", "annotation": [{"locale": "en-us", "displayName":
+ "Pages"}], "counter": "pagespersec", "counterSpecifier": "/builtin/memory/pagespersec",
+ "class": "memory", "type": "builtin"}, {"unit": "Bytes", "annotation": [{"locale":
+ "en-us", "displayName": "Swap used"}], "counter": "usedswap", "counterSpecifier":
+ "/builtin/memory/usedswap", "class": "memory", "type": "builtin"}, {"unit":
+ "Percent", "annotation": [{"locale": "en-us", "displayName": "Memory percentage"}],
+ "counter": "percentusedmemory", "counterSpecifier": "/builtin/memory/percentusedmemory",
+ "class": "memory", "type": "builtin"}, {"unit": "CountPerSecond", "annotation":
+ [{"locale": "en-us", "displayName": "Page writes"}], "counter": "pageswrittenpersec",
+ "counterSpecifier": "/builtin/memory/pageswrittenpersec", "class": "memory",
+ "type": "builtin"}]}}}}, "typeHandlerVersion": "3.0", "publisher": "Microsoft.Azure.Diagnostics",
+ "protectedSettings": {"storageAccountName": "clitest000002", "storageAccountSasToken":
+ "123"}, "autoUpgradeMinorVersion": true}}'''
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Length: ['12868']
Content-Type: [application/json; charset=utf-8]
- Date: ['Fri, 29 Sep 2017 16:34:50 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['12298']
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachines/testdiagvm/extensions/LinuxDiagnostic?api-version=2017-03-30
+ response:
+ body: {string: "{\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.Azure.Diagnostics\"\
+ ,\r\n \"type\": \"LinuxDiagnostic\",\r\n \"typeHandlerVersion\": \"\
+ 3.0\",\r\n \"autoUpgradeMinorVersion\": true,\r\n \"settings\": {\"\
+ StorageAccount\":\"clitest000002\",\"ladCfg\":{\"sampleRateInSeconds\":15,\"\
+ diagnosticMonitorConfiguration\":{\"metrics\":{\"metricAggregation\":[{\"\
+ scheduledTransferPeriod\":\"PT1H\"},{\"scheduledTransferPeriod\":\"PT1M\"\
+ }],\"resourceId\":\"__VM_RESOURCE_ID__\"},\"eventVolume\":\"Medium\",\"syslogEvents\"\
+ :{\"syslogEventConfiguration\":{\"LOG_LOCAL7\":\"LOG_DEBUG\",\"LOG_MAIL\"\
+ :\"LOG_DEBUG\",\"LOG_DAEMON\":\"LOG_DEBUG\",\"LOG_FTP\":\"LOG_DEBUG\",\"LOG_LOCAL6\"\
+ :\"LOG_DEBUG\",\"LOG_LOCAL5\":\"LOG_DEBUG\",\"LOG_CRON\":\"LOG_DEBUG\",\"\
+ LOG_LOCAL0\":\"LOG_DEBUG\",\"LOG_LOCAL4\":\"LOG_DEBUG\",\"LOG_UUCP\":\"LOG_DEBUG\"\
+ ,\"LOG_KERN\":\"LOG_DEBUG\",\"LOG_USER\":\"LOG_DEBUG\",\"LOG_LOCAL1\":\"LOG_DEBUG\"\
+ ,\"LOG_SYSLOG\":\"LOG_DEBUG\",\"LOG_LOCAL3\":\"LOG_DEBUG\",\"LOG_AUTH\":\"\
+ LOG_DEBUG\",\"LOG_NEWS\":\"LOG_DEBUG\",\"LOG_LOCAL2\":\"LOG_DEBUG\",\"LOG_LPR\"\
+ :\"LOG_DEBUG\",\"LOG_AUTHPRIV\":\"LOG_DEBUG\"}},\"performanceCounters\":{\"\
+ performanceCounterConfiguration\":[{\"unit\":\"BytesPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Disk read guest OS\"}],\"counter\"\
+ :\"readbytespersecond\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/readbytespersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk writes\"}],\"counter\":\"writespersecond\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/writespersecond\"\
+ },{\"unit\":\"Seconds\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk transfer time\"}],\"counter\":\"averagetransfertime\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\"\
+ :\"/builtin/disk/averagetransfertime\"},{\"unit\":\"CountPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Disk transfers\"}],\"counter\":\"\
+ transferspersecond\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/transferspersecond\"\
+ },{\"unit\":\"BytesPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk write guest OS\"}],\"counter\":\"writebytespersecond\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\"\
+ :\"/builtin/disk/writebytespersecond\"},{\"unit\":\"Seconds\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Disk read time\"}],\"counter\":\"\
+ averagereadtime\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/averagereadtime\"\
+ },{\"unit\":\"Seconds\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk write time\"}],\"counter\":\"averagewritetime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/averagewritetime\"\
+ },{\"unit\":\"BytesPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk total bytes\"}],\"counter\":\"bytespersecond\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/bytespersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk reads\"}],\"counter\":\"readspersecond\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/readspersecond\"\
+ },{\"unit\":\"Count\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk queue length\"}],\"counter\":\"averagediskqueuelength\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\"\
+ :\"/builtin/disk/averagediskqueuelength\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Network in guest OS\"}],\"counter\"\
+ :\"bytesreceived\",\"counterSpecifier\":\"/builtin/network/bytesreceived\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Network total bytes\"}],\"counter\"\
+ :\"bytestotal\",\"counterSpecifier\":\"/builtin/network/bytestotal\",\"class\"\
+ :\"network\",\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\":[{\"\
+ locale\":\"en-us\",\"displayName\":\"Network out guest OS\"}],\"counter\"\
+ :\"bytestransmitted\",\"counterSpecifier\":\"/builtin/network/bytestransmitted\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Network collisions\"}],\"counter\"\
+ :\"totalcollisions\",\"counterSpecifier\":\"/builtin/network/totalcollisions\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets received errors\"}],\"counter\"\
+ :\"totalrxerrors\",\"counterSpecifier\":\"/builtin/network/totalrxerrors\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets sent\"}],\"counter\":\"\
+ packetstransmitted\",\"counterSpecifier\":\"/builtin/network/packetstransmitted\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets received\"}],\"counter\"\
+ :\"packetsreceived\",\"counterSpecifier\":\"/builtin/network/packetsreceived\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets sent errors\"}],\"counter\"\
+ :\"totaltxerrors\",\"counterSpecifier\":\"/builtin/network/totaltxerrors\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"CountPerSecond\"\
+ ,\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem transfers/sec\"\
+ }],\"counter\":\"transferspersecond\",\"condition\":\"IsAggregate=TRUE\",\"\
+ type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/transferspersecond\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem % free space\"}],\"counter\":\"percentfreespace\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/percentfreespace\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem % used space\"}],\"counter\"\
+ :\"percentusedspace\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/percentusedspace\"\
+ },{\"unit\":\"Bytes\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem used space\"}],\"counter\":\"usedspace\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/usedspace\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem read bytes/sec\"}],\"counter\":\"bytesreadpersecond\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/bytesreadpersecond\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem free space\"}],\"counter\"\
+ :\"freespace\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\",\"\
+ class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/freespace\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem % free inodes\"}],\"counter\":\"percentfreeinodes\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/percentfreeinodes\"},{\"unit\":\"BytesPerSecond\",\"\
+ annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem bytes/sec\"\
+ }],\"counter\":\"bytespersecond\",\"condition\":\"IsAggregate=TRUE\",\"type\"\
+ :\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/bytespersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem reads/sec\"}],\"counter\":\"readspersecond\",\"condition\":\"\
+ IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/readspersecond\"},{\"unit\":\"CountPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem write bytes/sec\"}],\"\
+ counter\":\"byteswrittenpersecond\",\"condition\":\"IsAggregate=TRUE\",\"\
+ type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/byteswrittenpersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem writes/sec\"}],\"counter\":\"writespersecond\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/writespersecond\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem % used inodes\"}],\"\
+ counter\":\"percentusedinodes\",\"condition\":\"IsAggregate=TRUE\",\"type\"\
+ :\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/percentusedinodes\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU IO wait time\"}],\"counter\":\"percentiowaittime\",\"condition\":\"\
+ IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\"\
+ :\"/builtin/processor/percentiowaittime\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"CPU user time\"}],\"counter\":\"\
+ percentusertime\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentusertime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU nice time\"}],\"counter\":\"percentnicetime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentnicetime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU percentage guest OS\"}],\"counter\":\"percentprocessortime\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\"\
+ :\"/builtin/processor/percentprocessortime\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"CPU interrupt time\"}],\"counter\"\
+ :\"percentinterrupttime\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentinterrupttime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU idle time\"}],\"counter\":\"percentidletime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentidletime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU privileged time\"}],\"counter\":\"percentprivilegedtime\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\"\
+ :\"/builtin/processor/percentprivilegedtime\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Memory available\"}],\"counter\"\
+ :\"availablememory\",\"counterSpecifier\":\"/builtin/memory/availablememory\"\
+ ,\"class\":\"memory\",\"type\":\"builtin\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Swap percent used\"}],\"counter\"\
+ :\"percentusedswap\",\"counterSpecifier\":\"/builtin/memory/percentusedswap\"\
+ ,\"class\":\"memory\",\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Memory used\"}],\"counter\":\"usedmemory\"\
+ ,\"counterSpecifier\":\"/builtin/memory/usedmemory\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\"\
+ :\"en-us\",\"displayName\":\"Page reads\"}],\"counter\":\"pagesreadpersec\"\
+ ,\"counterSpecifier\":\"/builtin/memory/pagesreadpersec\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\":[{\"locale\":\"\
+ en-us\",\"displayName\":\"Swap available\"}],\"counter\":\"availableswap\"\
+ ,\"counterSpecifier\":\"/builtin/memory/availableswap\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"\
+ en-us\",\"displayName\":\"Swap percent available\"}],\"counter\":\"percentavailableswap\"\
+ ,\"counterSpecifier\":\"/builtin/memory/percentavailableswap\",\"class\":\"\
+ memory\",\"type\":\"builtin\"},{\"unit\":\"Percent\",\"annotation\":[{\"locale\"\
+ :\"en-us\",\"displayName\":\"Mem. percent available\"}],\"counter\":\"percentavailablememory\"\
+ ,\"counterSpecifier\":\"/builtin/memory/percentavailablememory\",\"class\"\
+ :\"memory\",\"type\":\"builtin\"},{\"unit\":\"CountPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Pages\"}],\"counter\":\"pagespersec\"\
+ ,\"counterSpecifier\":\"/builtin/memory/pagespersec\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\":[{\"locale\":\"\
+ en-us\",\"displayName\":\"Swap used\"}],\"counter\":\"usedswap\",\"counterSpecifier\"\
+ :\"/builtin/memory/usedswap\",\"class\":\"memory\",\"type\":\"builtin\"},{\"\
+ unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"\
+ Memory percentage\"}],\"counter\":\"percentusedmemory\",\"counterSpecifier\"\
+ :\"/builtin/memory/percentusedmemory\",\"class\":\"memory\",\"type\":\"builtin\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Page writes\"}],\"counter\":\"pageswrittenpersec\",\"counterSpecifier\"\
+ :\"/builtin/memory/pageswrittenpersec\",\"class\":\"memory\",\"type\":\"builtin\"\
+ }]}}}},\r\n \"provisioningState\": \"Creating\"\r\n },\r\n \"type\":\
+ \ \"Microsoft.Compute/virtualMachines/extensions\",\r\n \"location\": \"\
+ westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachines/testdiagvm/extensions/LinuxDiagnostic\"\
+ ,\r\n \"name\": \"LinuxDiagnostic\"\r\n}"}
+ headers:
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/67efa36a-60b0-4e44-a6c3-fccd86b20e20?api-version=2017-03-30']
+ cache-control: [no-cache]
+ content-length: ['12328']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:31:01 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/CreateUpdateVM3Min;297,Microsoft.Compute/CreateUpdateVM30Min;1483']
+ x-ms-ratelimit-remaining-subscription-writes: ['1198']
+ status: {code: 201, message: Created}
+- request:
+ body: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/67efa36a-60b0-4e44-a6c3-fccd86b20e20?api-version=2017-03-30
+ response:
+ body: {string: "{\r\n \"startTime\": \"2017-11-16T00:30:59.6027576+00:00\",\r\
+ \n \"endTime\": \"2017-11-16T00:31:13.27526+00:00\",\r\n \"status\": \"\
+ Succeeded\",\r\n \"name\": \"67efa36a-60b0-4e44-a6c3-fccd86b20e20\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['182']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:31:30 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;2146,Microsoft.Compute/GetOperation30Min;17864']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/3.0.0rc1 Azure-SDK-For-Python
- AZURECLI/TEST/2.0.17+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [1dd39070-a534-11e7-a031-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachines/testdiagvm?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachines/testdiagvm/extensions/LinuxDiagnostic?api-version=2017-03-30
response:
- body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"214e660e-640e-4843-9a5b-b22fbfefaf54\",\r\n
- \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n
- \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\":
- \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\":
- \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n },\r\n \"osDisk\":
- {\r\n \"osType\": \"Linux\",\r\n \"name\": \"osdisk_32a651c70c\",\r\n
- \ \"createOption\": \"FromImage\",\r\n \"vhd\": {\r\n \"uri\":
- \"https://vhdstorage32a651c70ca5bb.blob.core.windows.net/vhds/osdisk_32a651c70c.vhd\"\r\n
- \ },\r\n \"caching\": \"ReadWrite\",\r\n \"diskSizeGB\":
- 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\":
- {\r\n \"computerName\": \"testdiagvm\",\r\n \"adminUsername\": \"user11\",\r\n
- \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\":
- false\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\":
- {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Network/networkInterfaces/testdiagvmVMNic\"}]},\r\n
- \ \"provisioningState\": \"Succeeded\"\r\n },\r\n \"resources\": [\r\n
- \ {\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.Azure.Diagnostics\",\r\n
- \ \"type\": \"LinuxDiagnostic\",\r\n \"typeHandlerVersion\":
- \"3.0\",\r\n \"autoUpgradeMinorVersion\": true,\r\n \"settings\":
- {\"ladCfg\":{\"sampleRateInSeconds\":15,\"diagnosticMonitorConfiguration\":{\"eventVolume\":\"Medium\",\"syslogEvents\":{\"syslogEventConfiguration\":{\"LOG_LOCAL2\":\"LOG_DEBUG\",\"LOG_LOCAL1\":\"LOG_DEBUG\",\"LOG_NEWS\":\"LOG_DEBUG\",\"LOG_UUCP\":\"LOG_DEBUG\",\"LOG_AUTHPRIV\":\"LOG_DEBUG\",\"LOG_LOCAL7\":\"LOG_DEBUG\",\"LOG_KERN\":\"LOG_DEBUG\",\"LOG_LOCAL4\":\"LOG_DEBUG\",\"LOG_AUTH\":\"LOG_DEBUG\",\"LOG_CRON\":\"LOG_DEBUG\",\"LOG_LOCAL3\":\"LOG_DEBUG\",\"LOG_DAEMON\":\"LOG_DEBUG\",\"LOG_LOCAL5\":\"LOG_DEBUG\",\"LOG_USER\":\"LOG_DEBUG\",\"LOG_LOCAL6\":\"LOG_DEBUG\",\"LOG_LOCAL0\":\"LOG_DEBUG\",\"LOG_LPR\":\"LOG_DEBUG\",\"LOG_FTP\":\"LOG_DEBUG\",\"LOG_SYSLOG\":\"LOG_DEBUG\",\"LOG_MAIL\":\"LOG_DEBUG\"}},\"performanceCounters\":{\"performanceCounterConfiguration\":[{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"readbytespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- read guest OS\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/disk/readbytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"writespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- writes\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/disk/writespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagetransfertime\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- transfer time\"}],\"unit\":\"Seconds\",\"counterSpecifier\":\"/builtin/disk/averagetransfertime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"transferspersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- transfers\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/disk/transferspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"writebytespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- write guest OS\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/disk/writebytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagereadtime\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- read time\"}],\"unit\":\"Seconds\",\"counterSpecifier\":\"/builtin/disk/averagereadtime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagewritetime\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- write time\"}],\"unit\":\"Seconds\",\"counterSpecifier\":\"/builtin/disk/averagewritetime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"bytespersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- total bytes\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/disk/bytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"readspersecond\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- reads\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/disk/readspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"averagediskqueuelength\",\"type\":\"builtin\",\"class\":\"disk\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Disk
- queue length\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/disk/averagediskqueuelength\"},{\"counter\":\"bytesreceived\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- in guest OS\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/network/bytesreceived\"},{\"counter\":\"bytestotal\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- total bytes\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/network/bytestotal\"},{\"counter\":\"bytestransmitted\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- out guest OS\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/network/bytestransmitted\"},{\"counter\":\"totalcollisions\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Network
- collisions\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/totalcollisions\"},{\"counter\":\"totalrxerrors\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- received errors\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/totalrxerrors\"},{\"counter\":\"packetstransmitted\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- sent\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/packetstransmitted\"},{\"counter\":\"packetsreceived\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- received\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/packetsreceived\"},{\"counter\":\"totaltxerrors\",\"type\":\"builtin\",\"class\":\"network\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Packets
- sent errors\"}],\"unit\":\"Count\",\"counterSpecifier\":\"/builtin/network/totaltxerrors\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"transferspersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- transfers/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/transferspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentfreespace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % free space\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentfreespace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentusedspace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % used space\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentusedspace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"usedspace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- used space\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/filesystem/usedspace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"bytesreadpersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- read bytes/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/bytesreadpersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"freespace\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- free space\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/filesystem/freespace\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentfreeinodes\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % free inodes\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentfreeinodes\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"bytespersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- bytes/sec\"}],\"unit\":\"BytesPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/bytespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"readspersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- reads/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/readspersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"byteswrittenpersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- write bytes/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/byteswrittenpersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"writespersecond\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- writes/sec\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/filesystem/writespersecond\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentusedinodes\",\"type\":\"builtin\",\"class\":\"filesystem\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem
- % used inodes\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/filesystem/percentusedinodes\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentiowaittime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- IO wait time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentiowaittime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentusertime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- user time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentusertime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentnicetime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- nice time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentnicetime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentprocessortime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- percentage guest OS\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentprocessortime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentinterrupttime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- interrupt time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentinterrupttime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentidletime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- idle time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentidletime\"},{\"condition\":\"IsAggregate=TRUE\",\"counter\":\"percentprivilegedtime\",\"type\":\"builtin\",\"class\":\"processor\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"CPU
- privileged time\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/processor/percentprivilegedtime\"},{\"counter\":\"availablememory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Memory
- available\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/availablememory\"},{\"counter\":\"percentusedswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- percent used\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentusedswap\"},{\"counter\":\"usedmemory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Memory
- used\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/usedmemory\"},{\"counter\":\"pagesreadpersec\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Page
- reads\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/memory/pagesreadpersec\"},{\"counter\":\"availableswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- available\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/availableswap\"},{\"counter\":\"percentavailableswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- percent available\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentavailableswap\"},{\"counter\":\"percentavailablememory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Mem.
- percent available\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentavailablememory\"},{\"counter\":\"pagespersec\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Pages\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/memory/pagespersec\"},{\"counter\":\"usedswap\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Swap
- used\"}],\"unit\":\"Bytes\",\"counterSpecifier\":\"/builtin/memory/usedswap\"},{\"counter\":\"percentusedmemory\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Memory
- percentage\"}],\"unit\":\"Percent\",\"counterSpecifier\":\"/builtin/memory/percentusedmemory\"},{\"counter\":\"pageswrittenpersec\",\"type\":\"builtin\",\"class\":\"memory\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Page
- writes\"}],\"unit\":\"CountPerSecond\",\"counterSpecifier\":\"/builtin/memory/pageswrittenpersec\"}]},\"metrics\":{\"metricAggregation\":[{\"scheduledTransferPeriod\":\"PT1H\"},{\"scheduledTransferPeriod\":\"PT1M\"}],\"resourceId\":\"__VM_RESOURCE_ID__\"}}},\"StorageAccount\":\"clitestdiagextsa20170510\"},\r\n
- \ \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\":
- \"Microsoft.Compute/virtualMachines/extensions\",\r\n \"location\": \"westus\",\r\n
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachines/testdiagvm/extensions/LinuxDiagnostic\",\r\n
- \ \"name\": \"LinuxDiagnostic\"\r\n }\r\n ],\r\n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n
- \ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension/providers/Microsoft.Compute/virtualMachines/testdiagvm\",\r\n
- \ \"name\": \"testdiagvm\"\r\n}"}
- headers:
- Cache-Control: [no-cache]
+ body: {string: "{\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.Azure.Diagnostics\"\
+ ,\r\n \"type\": \"LinuxDiagnostic\",\r\n \"typeHandlerVersion\": \"\
+ 3.0\",\r\n \"autoUpgradeMinorVersion\": true,\r\n \"settings\": {\"\
+ StorageAccount\":\"clitest000002\",\"ladCfg\":{\"sampleRateInSeconds\":15,\"\
+ diagnosticMonitorConfiguration\":{\"metrics\":{\"metricAggregation\":[{\"\
+ scheduledTransferPeriod\":\"PT1H\"},{\"scheduledTransferPeriod\":\"PT1M\"\
+ }],\"resourceId\":\"__VM_RESOURCE_ID__\"},\"eventVolume\":\"Medium\",\"syslogEvents\"\
+ :{\"syslogEventConfiguration\":{\"LOG_LOCAL7\":\"LOG_DEBUG\",\"LOG_MAIL\"\
+ :\"LOG_DEBUG\",\"LOG_DAEMON\":\"LOG_DEBUG\",\"LOG_FTP\":\"LOG_DEBUG\",\"LOG_LOCAL6\"\
+ :\"LOG_DEBUG\",\"LOG_LOCAL5\":\"LOG_DEBUG\",\"LOG_CRON\":\"LOG_DEBUG\",\"\
+ LOG_LOCAL0\":\"LOG_DEBUG\",\"LOG_LOCAL4\":\"LOG_DEBUG\",\"LOG_UUCP\":\"LOG_DEBUG\"\
+ ,\"LOG_KERN\":\"LOG_DEBUG\",\"LOG_USER\":\"LOG_DEBUG\",\"LOG_LOCAL1\":\"LOG_DEBUG\"\
+ ,\"LOG_SYSLOG\":\"LOG_DEBUG\",\"LOG_LOCAL3\":\"LOG_DEBUG\",\"LOG_AUTH\":\"\
+ LOG_DEBUG\",\"LOG_NEWS\":\"LOG_DEBUG\",\"LOG_LOCAL2\":\"LOG_DEBUG\",\"LOG_LPR\"\
+ :\"LOG_DEBUG\",\"LOG_AUTHPRIV\":\"LOG_DEBUG\"}},\"performanceCounters\":{\"\
+ performanceCounterConfiguration\":[{\"unit\":\"BytesPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Disk read guest OS\"}],\"counter\"\
+ :\"readbytespersecond\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/readbytespersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk writes\"}],\"counter\":\"writespersecond\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/writespersecond\"\
+ },{\"unit\":\"Seconds\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk transfer time\"}],\"counter\":\"averagetransfertime\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\"\
+ :\"/builtin/disk/averagetransfertime\"},{\"unit\":\"CountPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Disk transfers\"}],\"counter\":\"\
+ transferspersecond\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/transferspersecond\"\
+ },{\"unit\":\"BytesPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk write guest OS\"}],\"counter\":\"writebytespersecond\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\"\
+ :\"/builtin/disk/writebytespersecond\"},{\"unit\":\"Seconds\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Disk read time\"}],\"counter\":\"\
+ averagereadtime\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/averagereadtime\"\
+ },{\"unit\":\"Seconds\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk write time\"}],\"counter\":\"averagewritetime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/averagewritetime\"\
+ },{\"unit\":\"BytesPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk total bytes\"}],\"counter\":\"bytespersecond\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/bytespersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk reads\"}],\"counter\":\"readspersecond\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/readspersecond\"\
+ },{\"unit\":\"Count\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk queue length\"}],\"counter\":\"averagediskqueuelength\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\"\
+ :\"/builtin/disk/averagediskqueuelength\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Network in guest OS\"}],\"counter\"\
+ :\"bytesreceived\",\"counterSpecifier\":\"/builtin/network/bytesreceived\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Network total bytes\"}],\"counter\"\
+ :\"bytestotal\",\"counterSpecifier\":\"/builtin/network/bytestotal\",\"class\"\
+ :\"network\",\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\":[{\"\
+ locale\":\"en-us\",\"displayName\":\"Network out guest OS\"}],\"counter\"\
+ :\"bytestransmitted\",\"counterSpecifier\":\"/builtin/network/bytestransmitted\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Network collisions\"}],\"counter\"\
+ :\"totalcollisions\",\"counterSpecifier\":\"/builtin/network/totalcollisions\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets received errors\"}],\"counter\"\
+ :\"totalrxerrors\",\"counterSpecifier\":\"/builtin/network/totalrxerrors\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets sent\"}],\"counter\":\"\
+ packetstransmitted\",\"counterSpecifier\":\"/builtin/network/packetstransmitted\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets received\"}],\"counter\"\
+ :\"packetsreceived\",\"counterSpecifier\":\"/builtin/network/packetsreceived\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets sent errors\"}],\"counter\"\
+ :\"totaltxerrors\",\"counterSpecifier\":\"/builtin/network/totaltxerrors\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"CountPerSecond\"\
+ ,\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem transfers/sec\"\
+ }],\"counter\":\"transferspersecond\",\"condition\":\"IsAggregate=TRUE\",\"\
+ type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/transferspersecond\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem % free space\"}],\"counter\":\"percentfreespace\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/percentfreespace\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem % used space\"}],\"counter\"\
+ :\"percentusedspace\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/percentusedspace\"\
+ },{\"unit\":\"Bytes\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem used space\"}],\"counter\":\"usedspace\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/usedspace\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem read bytes/sec\"}],\"counter\":\"bytesreadpersecond\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/bytesreadpersecond\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem free space\"}],\"counter\"\
+ :\"freespace\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\",\"\
+ class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/freespace\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem % free inodes\"}],\"counter\":\"percentfreeinodes\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/percentfreeinodes\"},{\"unit\":\"BytesPerSecond\",\"\
+ annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem bytes/sec\"\
+ }],\"counter\":\"bytespersecond\",\"condition\":\"IsAggregate=TRUE\",\"type\"\
+ :\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/bytespersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem reads/sec\"}],\"counter\":\"readspersecond\",\"condition\":\"\
+ IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/readspersecond\"},{\"unit\":\"CountPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem write bytes/sec\"}],\"\
+ counter\":\"byteswrittenpersecond\",\"condition\":\"IsAggregate=TRUE\",\"\
+ type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/byteswrittenpersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem writes/sec\"}],\"counter\":\"writespersecond\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/writespersecond\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem % used inodes\"}],\"\
+ counter\":\"percentusedinodes\",\"condition\":\"IsAggregate=TRUE\",\"type\"\
+ :\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/percentusedinodes\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU IO wait time\"}],\"counter\":\"percentiowaittime\",\"condition\":\"\
+ IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\"\
+ :\"/builtin/processor/percentiowaittime\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"CPU user time\"}],\"counter\":\"\
+ percentusertime\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentusertime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU nice time\"}],\"counter\":\"percentnicetime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentnicetime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU percentage guest OS\"}],\"counter\":\"percentprocessortime\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\"\
+ :\"/builtin/processor/percentprocessortime\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"CPU interrupt time\"}],\"counter\"\
+ :\"percentinterrupttime\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentinterrupttime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU idle time\"}],\"counter\":\"percentidletime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentidletime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU privileged time\"}],\"counter\":\"percentprivilegedtime\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\"\
+ :\"/builtin/processor/percentprivilegedtime\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Memory available\"}],\"counter\"\
+ :\"availablememory\",\"counterSpecifier\":\"/builtin/memory/availablememory\"\
+ ,\"class\":\"memory\",\"type\":\"builtin\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Swap percent used\"}],\"counter\"\
+ :\"percentusedswap\",\"counterSpecifier\":\"/builtin/memory/percentusedswap\"\
+ ,\"class\":\"memory\",\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Memory used\"}],\"counter\":\"usedmemory\"\
+ ,\"counterSpecifier\":\"/builtin/memory/usedmemory\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\"\
+ :\"en-us\",\"displayName\":\"Page reads\"}],\"counter\":\"pagesreadpersec\"\
+ ,\"counterSpecifier\":\"/builtin/memory/pagesreadpersec\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\":[{\"locale\":\"\
+ en-us\",\"displayName\":\"Swap available\"}],\"counter\":\"availableswap\"\
+ ,\"counterSpecifier\":\"/builtin/memory/availableswap\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"\
+ en-us\",\"displayName\":\"Swap percent available\"}],\"counter\":\"percentavailableswap\"\
+ ,\"counterSpecifier\":\"/builtin/memory/percentavailableswap\",\"class\":\"\
+ memory\",\"type\":\"builtin\"},{\"unit\":\"Percent\",\"annotation\":[{\"locale\"\
+ :\"en-us\",\"displayName\":\"Mem. percent available\"}],\"counter\":\"percentavailablememory\"\
+ ,\"counterSpecifier\":\"/builtin/memory/percentavailablememory\",\"class\"\
+ :\"memory\",\"type\":\"builtin\"},{\"unit\":\"CountPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Pages\"}],\"counter\":\"pagespersec\"\
+ ,\"counterSpecifier\":\"/builtin/memory/pagespersec\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\":[{\"locale\":\"\
+ en-us\",\"displayName\":\"Swap used\"}],\"counter\":\"usedswap\",\"counterSpecifier\"\
+ :\"/builtin/memory/usedswap\",\"class\":\"memory\",\"type\":\"builtin\"},{\"\
+ unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"\
+ Memory percentage\"}],\"counter\":\"percentusedmemory\",\"counterSpecifier\"\
+ :\"/builtin/memory/percentusedmemory\",\"class\":\"memory\",\"type\":\"builtin\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Page writes\"}],\"counter\":\"pageswrittenpersec\",\"counterSpecifier\"\
+ :\"/builtin/memory/pageswrittenpersec\",\"class\":\"memory\",\"type\":\"builtin\"\
+ }]}}}},\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\"\
+ : \"Microsoft.Compute/virtualMachines/extensions\",\r\n \"location\": \"\
+ westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachines/testdiagvm/extensions/LinuxDiagnostic\"\
+ ,\r\n \"name\": \"LinuxDiagnostic\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['12329']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:31:32 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4992,Microsoft.Compute/LowCostGet30Min;39896']
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- Date: ['Fri, 29 Sep 2017 16:34:51 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['13844']
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachines/testdiagvm?api-version=2017-03-30
+ response:
+ body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"ba54520f-7027-4327-befa-701d649b050c\"\
+ ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\
+ \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \
+ \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\"\
+ ,\r\n \"sku\": \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n\
+ \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \
+ \ \"name\": \"osdisk_b4e70d943e\",\r\n \"createOption\": \"FromImage\"\
+ ,\r\n \"vhd\": {\r\n \"uri\": \"https://vhdstorageb4e70d943e538b.blob.core.windows.net/vhds/osdisk_b4e70d943e.vhd\"\
+ \r\n },\r\n \"caching\": \"ReadWrite\",\r\n \"diskSizeGB\"\
+ : 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\"\
+ : {\r\n \"computerName\": \"testdiagvm\",\r\n \"adminUsername\"\
+ : \"user11\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\"\
+ : false\r\n },\r\n \"secrets\": []\r\n },\r\n \"networkProfile\"\
+ : {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Network/networkInterfaces/testdiagvmVMNic\"\
+ }]},\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"resources\"\
+ : [\r\n {\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.Azure.Diagnostics\"\
+ ,\r\n \"type\": \"LinuxDiagnostic\",\r\n \"typeHandlerVersion\"\
+ : \"3.0\",\r\n \"autoUpgradeMinorVersion\": true,\r\n \"settings\"\
+ : {\"StorageAccount\":\"clitest000002\",\"ladCfg\":{\"sampleRateInSeconds\"\
+ :15,\"diagnosticMonitorConfiguration\":{\"metrics\":{\"metricAggregation\"\
+ :[{\"scheduledTransferPeriod\":\"PT1H\"},{\"scheduledTransferPeriod\":\"PT1M\"\
+ }],\"resourceId\":\"__VM_RESOURCE_ID__\"},\"eventVolume\":\"Medium\",\"syslogEvents\"\
+ :{\"syslogEventConfiguration\":{\"LOG_LOCAL7\":\"LOG_DEBUG\",\"LOG_MAIL\"\
+ :\"LOG_DEBUG\",\"LOG_DAEMON\":\"LOG_DEBUG\",\"LOG_FTP\":\"LOG_DEBUG\",\"LOG_LOCAL6\"\
+ :\"LOG_DEBUG\",\"LOG_LOCAL5\":\"LOG_DEBUG\",\"LOG_CRON\":\"LOG_DEBUG\",\"\
+ LOG_LOCAL0\":\"LOG_DEBUG\",\"LOG_LOCAL4\":\"LOG_DEBUG\",\"LOG_UUCP\":\"LOG_DEBUG\"\
+ ,\"LOG_KERN\":\"LOG_DEBUG\",\"LOG_USER\":\"LOG_DEBUG\",\"LOG_LOCAL1\":\"LOG_DEBUG\"\
+ ,\"LOG_SYSLOG\":\"LOG_DEBUG\",\"LOG_LOCAL3\":\"LOG_DEBUG\",\"LOG_AUTH\":\"\
+ LOG_DEBUG\",\"LOG_NEWS\":\"LOG_DEBUG\",\"LOG_LOCAL2\":\"LOG_DEBUG\",\"LOG_LPR\"\
+ :\"LOG_DEBUG\",\"LOG_AUTHPRIV\":\"LOG_DEBUG\"}},\"performanceCounters\":{\"\
+ performanceCounterConfiguration\":[{\"unit\":\"BytesPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Disk read guest OS\"}],\"counter\"\
+ :\"readbytespersecond\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/readbytespersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk writes\"}],\"counter\":\"writespersecond\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/writespersecond\"\
+ },{\"unit\":\"Seconds\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk transfer time\"}],\"counter\":\"averagetransfertime\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\"\
+ :\"/builtin/disk/averagetransfertime\"},{\"unit\":\"CountPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Disk transfers\"}],\"counter\":\"\
+ transferspersecond\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/transferspersecond\"\
+ },{\"unit\":\"BytesPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk write guest OS\"}],\"counter\":\"writebytespersecond\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\"\
+ :\"/builtin/disk/writebytespersecond\"},{\"unit\":\"Seconds\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Disk read time\"}],\"counter\":\"\
+ averagereadtime\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/averagereadtime\"\
+ },{\"unit\":\"Seconds\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk write time\"}],\"counter\":\"averagewritetime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/averagewritetime\"\
+ },{\"unit\":\"BytesPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk total bytes\"}],\"counter\":\"bytespersecond\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/bytespersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk reads\"}],\"counter\":\"readspersecond\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\":\"/builtin/disk/readspersecond\"\
+ },{\"unit\":\"Count\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Disk queue length\"}],\"counter\":\"averagediskqueuelength\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"disk\",\"counterSpecifier\"\
+ :\"/builtin/disk/averagediskqueuelength\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Network in guest OS\"}],\"counter\"\
+ :\"bytesreceived\",\"counterSpecifier\":\"/builtin/network/bytesreceived\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Network total bytes\"}],\"counter\"\
+ :\"bytestotal\",\"counterSpecifier\":\"/builtin/network/bytestotal\",\"class\"\
+ :\"network\",\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\":[{\"\
+ locale\":\"en-us\",\"displayName\":\"Network out guest OS\"}],\"counter\"\
+ :\"bytestransmitted\",\"counterSpecifier\":\"/builtin/network/bytestransmitted\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Network collisions\"}],\"counter\"\
+ :\"totalcollisions\",\"counterSpecifier\":\"/builtin/network/totalcollisions\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets received errors\"}],\"counter\"\
+ :\"totalrxerrors\",\"counterSpecifier\":\"/builtin/network/totalrxerrors\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets sent\"}],\"counter\":\"\
+ packetstransmitted\",\"counterSpecifier\":\"/builtin/network/packetstransmitted\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets received\"}],\"counter\"\
+ :\"packetsreceived\",\"counterSpecifier\":\"/builtin/network/packetsreceived\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"Count\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Packets sent errors\"}],\"counter\"\
+ :\"totaltxerrors\",\"counterSpecifier\":\"/builtin/network/totaltxerrors\"\
+ ,\"class\":\"network\",\"type\":\"builtin\"},{\"unit\":\"CountPerSecond\"\
+ ,\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem transfers/sec\"\
+ }],\"counter\":\"transferspersecond\",\"condition\":\"IsAggregate=TRUE\",\"\
+ type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/transferspersecond\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem % free space\"}],\"counter\":\"percentfreespace\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/percentfreespace\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem % used space\"}],\"counter\"\
+ :\"percentusedspace\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/percentusedspace\"\
+ },{\"unit\":\"Bytes\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem used space\"}],\"counter\":\"usedspace\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/usedspace\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem read bytes/sec\"}],\"counter\":\"bytesreadpersecond\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/bytesreadpersecond\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem free space\"}],\"counter\"\
+ :\"freespace\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\",\"\
+ class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/freespace\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem % free inodes\"}],\"counter\":\"percentfreeinodes\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/percentfreeinodes\"},{\"unit\":\"BytesPerSecond\",\"\
+ annotation\":[{\"locale\":\"en-us\",\"displayName\":\"Filesystem bytes/sec\"\
+ }],\"counter\":\"bytespersecond\",\"condition\":\"IsAggregate=TRUE\",\"type\"\
+ :\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/bytespersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem reads/sec\"}],\"counter\":\"readspersecond\",\"condition\":\"\
+ IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/readspersecond\"},{\"unit\":\"CountPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem write bytes/sec\"}],\"\
+ counter\":\"byteswrittenpersecond\",\"condition\":\"IsAggregate=TRUE\",\"\
+ type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/byteswrittenpersecond\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Filesystem writes/sec\"}],\"counter\":\"writespersecond\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\"\
+ :\"/builtin/filesystem/writespersecond\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Filesystem % used inodes\"}],\"\
+ counter\":\"percentusedinodes\",\"condition\":\"IsAggregate=TRUE\",\"type\"\
+ :\"builtin\",\"class\":\"filesystem\",\"counterSpecifier\":\"/builtin/filesystem/percentusedinodes\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU IO wait time\"}],\"counter\":\"percentiowaittime\",\"condition\":\"\
+ IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\"\
+ :\"/builtin/processor/percentiowaittime\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"CPU user time\"}],\"counter\":\"\
+ percentusertime\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentusertime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU nice time\"}],\"counter\":\"percentnicetime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentnicetime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU percentage guest OS\"}],\"counter\":\"percentprocessortime\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\"\
+ :\"/builtin/processor/percentprocessortime\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"CPU interrupt time\"}],\"counter\"\
+ :\"percentinterrupttime\",\"condition\":\"IsAggregate=TRUE\",\"type\":\"builtin\"\
+ ,\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentinterrupttime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU idle time\"}],\"counter\":\"percentidletime\",\"condition\":\"IsAggregate=TRUE\"\
+ ,\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\":\"/builtin/processor/percentidletime\"\
+ },{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"CPU privileged time\"}],\"counter\":\"percentprivilegedtime\",\"condition\"\
+ :\"IsAggregate=TRUE\",\"type\":\"builtin\",\"class\":\"processor\",\"counterSpecifier\"\
+ :\"/builtin/processor/percentprivilegedtime\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Memory available\"}],\"counter\"\
+ :\"availablememory\",\"counterSpecifier\":\"/builtin/memory/availablememory\"\
+ ,\"class\":\"memory\",\"type\":\"builtin\"},{\"unit\":\"Percent\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Swap percent used\"}],\"counter\"\
+ :\"percentusedswap\",\"counterSpecifier\":\"/builtin/memory/percentusedswap\"\
+ ,\"class\":\"memory\",\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Memory used\"}],\"counter\":\"usedmemory\"\
+ ,\"counterSpecifier\":\"/builtin/memory/usedmemory\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\"\
+ :\"en-us\",\"displayName\":\"Page reads\"}],\"counter\":\"pagesreadpersec\"\
+ ,\"counterSpecifier\":\"/builtin/memory/pagesreadpersec\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\":[{\"locale\":\"\
+ en-us\",\"displayName\":\"Swap available\"}],\"counter\":\"availableswap\"\
+ ,\"counterSpecifier\":\"/builtin/memory/availableswap\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"Percent\",\"annotation\":[{\"locale\":\"\
+ en-us\",\"displayName\":\"Swap percent available\"}],\"counter\":\"percentavailableswap\"\
+ ,\"counterSpecifier\":\"/builtin/memory/percentavailableswap\",\"class\":\"\
+ memory\",\"type\":\"builtin\"},{\"unit\":\"Percent\",\"annotation\":[{\"locale\"\
+ :\"en-us\",\"displayName\":\"Mem. percent available\"}],\"counter\":\"percentavailablememory\"\
+ ,\"counterSpecifier\":\"/builtin/memory/percentavailablememory\",\"class\"\
+ :\"memory\",\"type\":\"builtin\"},{\"unit\":\"CountPerSecond\",\"annotation\"\
+ :[{\"locale\":\"en-us\",\"displayName\":\"Pages\"}],\"counter\":\"pagespersec\"\
+ ,\"counterSpecifier\":\"/builtin/memory/pagespersec\",\"class\":\"memory\"\
+ ,\"type\":\"builtin\"},{\"unit\":\"Bytes\",\"annotation\":[{\"locale\":\"\
+ en-us\",\"displayName\":\"Swap used\"}],\"counter\":\"usedswap\",\"counterSpecifier\"\
+ :\"/builtin/memory/usedswap\",\"class\":\"memory\",\"type\":\"builtin\"},{\"\
+ unit\":\"Percent\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\":\"\
+ Memory percentage\"}],\"counter\":\"percentusedmemory\",\"counterSpecifier\"\
+ :\"/builtin/memory/percentusedmemory\",\"class\":\"memory\",\"type\":\"builtin\"\
+ },{\"unit\":\"CountPerSecond\",\"annotation\":[{\"locale\":\"en-us\",\"displayName\"\
+ :\"Page writes\"}],\"counter\":\"pageswrittenpersec\",\"counterSpecifier\"\
+ :\"/builtin/memory/pageswrittenpersec\",\"class\":\"memory\",\"type\":\"builtin\"\
+ }]}}}},\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \
+ \ \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n \
+ \ \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachines/testdiagvm/extensions/LinuxDiagnostic\"\
+ ,\r\n \"name\": \"LinuxDiagnostic\"\r\n }\r\n ],\r\n \"type\": \"\
+ Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n \"\
+ tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_diagnostics_extension000001/providers/Microsoft.Compute/virtualMachines/testdiagvm\"\
+ ,\r\n \"name\": \"testdiagvm\"\r\n}"}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['13937']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:31:32 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4991,Microsoft.Compute/LowCostGet30Min;39895']
status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Length: ['0']
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: DELETE
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_vmss_diagnostics_extension000001?api-version=2017-05-10
+ response:
+ body: {string: ''}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['0']
+ date: ['Thu, 16 Nov 2017 00:31:33 GMT']
+ expires: ['-1']
+ location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGVk06NUZWTVNTOjVGRElBR05PU1RJQ1M6NUZFWFRFTlNJT3xERDYzN0M4MEYyRDZFRkZCLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10']
+ pragma: [no-cache]
+ 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-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_disk_create_zones.yaml b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_disk_create_zones.yaml
index 17cd0650a53..2299033e404 100644
--- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_disk_create_zones.yaml
+++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_disk_create_zones.yaml
@@ -1,291 +1,297 @@
interactions:
- request:
- body: '{"tags": {"use": "az-test"}, "location": "eastus2"}'
+ body: '{"location": "eastus2", "tags": {"use": "az-test"}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [group create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Length: ['51']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
- msrest_azure/0.4.11 resourcemanagementclient/1.2.0rc2 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
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
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_zones000001?api-version=2017-05-10
response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"eastus2","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_zones000001","name":"cli_test_disk_zones000001","location":"eastus2","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
headers:
cache-control: [no-cache]
content-length: ['329']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 23:00:18 GMT']
+ date: ['Fri, 17 Nov 2017 17:13:21 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1190']
+ x-ms-ratelimit-remaining-subscription-writes: ['1197']
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [disk create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
- msrest_azure/0.4.11 resourcemanagementclient/1.2.0rc2 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_zones000001?api-version=2017-05-10
response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"eastus2","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_zones000001","name":"cli_test_disk_zones000001","location":"eastus2","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
headers:
cache-control: [no-cache]
content-length: ['329']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 23:00:18 GMT']
+ date: ['Fri, 17 Nov 2017 17:13:22 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
- body: '{"zones": ["2"], "location": "eastus2", "properties": {"creationData":
- {"createOption": "Empty"}, "diskSizeGB": 1}, "sku": {"name": "Premium_LRS"},
- "tags": {}}'
+ body: '{"location": "eastus2", "sku": {"name": "Premium_LRS"}, "tags": {}, "zones":
+ ["2"], "properties": {"diskSizeGB": 1, "creationData": {"createOption": "Empty"}}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [disk create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Length: ['159']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
- msrest_azure/0.4.11 computemanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/disk123?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_zones000001/providers/Microsoft.Compute/disks/disk123?api-version=2017-03-30
response:
body: {string: "{\r\n \"zones\": [\r\n \"2\"\r\n ],\r\n \"sku\": {\r\n \
\ \"name\": \"Premium_LRS\"\r\n },\r\n \"properties\": {\r\n \"creationData\"\
: {\r\n \"createOption\": \"Empty\"\r\n },\r\n \"diskSizeGB\":\
\ 1,\r\n \"provisioningState\": \"Updating\",\r\n \"isArmResource\"\
- : true\r\n },\r\n \"location\": \"eastus2\",\r\n \"tags\": {}\r\n}"}
+ : true\r\n },\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"\
+ name\": \"disk123\"\r\n}"}
headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2/DiskOperations/9b2bd01f-acee-4ce2-a530-c4955e49cc48?api-version=2017-03-30']
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2/DiskOperations/5bfa32ef-bf9a-441d-9e34-760183960212?api-version=2017-03-30']
cache-control: [no-cache]
- content-length: ['292']
+ content-length: ['314']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 23:00:21 GMT']
+ date: ['Fri, 17 Nov 2017 17:13:24 GMT']
expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2/DiskOperations/9b2bd01f-acee-4ce2-a530-c4955e49cc48?monitor=true&api-version=2017-03-30']
+ location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2/DiskOperations/5bfa32ef-bf9a-441d-9e34-760183960212?monitor=true&api-version=2017-03-30']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1195']
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/CreateUpdateDisks3Min;999,Microsoft.Compute/CreateUpdateDisks30Min;3999']
+ x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 202, message: Accepted}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [disk create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
- msrest_azure/0.4.11 computemanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2/DiskOperations/9b2bd01f-acee-4ce2-a530-c4955e49cc48?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2/DiskOperations/5bfa32ef-bf9a-441d-9e34-760183960212?api-version=2017-03-30
response:
- body: {string: "{\r\n \"startTime\": \"2017-09-19T23:00:21.674462+00:00\",\r\n\
- \ \"endTime\": \"2017-09-19T23:00:21.8776497+00:00\",\r\n \"status\": \"\
+ body: {string: "{\r\n \"startTime\": \"2017-11-17T17:13:25.2094271+00:00\",\r\
+ \n \"endTime\": \"2017-11-17T17:13:25.4438407+00:00\",\r\n \"status\": \"\
Succeeded\",\r\n \"properties\": {\r\n \"output\": {\"zones\":[\"2\"],\"\
sku\":{\"name\":\"Premium_LRS\",\"tier\":\"Premium\"},\"properties\":{\"creationData\"\
- :{\"createOption\":\"Empty\"},\"diskSizeGB\":1,\"timeCreated\":\"2017-09-19T23:00:21.674462+00:00\"\
+ :{\"createOption\":\"Empty\"},\"diskSizeGB\":1,\"timeCreated\":\"2017-11-17T17:13:25.2406743+00:00\"\
,\"provisioningState\":\"Succeeded\",\"diskState\":\"Unattached\"},\"type\"\
:\"Microsoft.Compute/disks\",\"location\":\"eastus2\",\"tags\":{},\"id\":\"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/disk123\"\
- ,\"name\":\"disk123\"}\r\n },\r\n \"name\": \"9b2bd01f-acee-4ce2-a530-c4955e49cc48\"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_zones000001/providers/Microsoft.Compute/disks/disk123\"\
+ ,\"name\":\"disk123\"}\r\n },\r\n \"name\": \"5bfa32ef-bf9a-441d-9e34-760183960212\"\
\r\n}"}
headers:
cache-control: [no-cache]
- content-length: ['734']
+ content-length: ['736']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 23:00:51 GMT']
+ date: ['Fri, 17 Nov 2017 17:13:55 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;49998,Microsoft.Compute/GetOperation30Min;249998']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [disk create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
- msrest_azure/0.4.11 computemanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/disk123?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_zones000001/providers/Microsoft.Compute/disks/disk123?api-version=2017-03-30
response:
body: {string: "{\r\n \"zones\": [\r\n \"2\"\r\n ],\r\n \"sku\": {\r\n \
\ \"name\": \"Premium_LRS\",\r\n \"tier\": \"Premium\"\r\n },\r\n \"\
properties\": {\r\n \"creationData\": {\r\n \"createOption\": \"Empty\"\
- \r\n },\r\n \"diskSizeGB\": 1,\r\n \"timeCreated\": \"2017-09-19T23:00:21.674462+00:00\"\
+ \r\n },\r\n \"diskSizeGB\": 1,\r\n \"timeCreated\": \"2017-11-17T17:13:25.2406743+00:00\"\
,\r\n \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\
\r\n },\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"\
- eastus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/disk123\"\
+ eastus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_zones000001/providers/Microsoft.Compute/disks/disk123\"\
,\r\n \"name\": \"disk123\"\r\n}"}
headers:
cache-control: [no-cache]
- content-length: ['634']
+ content-length: ['635']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 23:00:51 GMT']
+ date: ['Fri, 17 Nov 2017 17:13:55 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4998,Microsoft.Compute/LowCostGet30Min;19993']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [disk show]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
- msrest_azure/0.4.11 computemanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/disk123?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_zones000001/providers/Microsoft.Compute/disks/disk123?api-version=2017-03-30
response:
body: {string: "{\r\n \"zones\": [\r\n \"2\"\r\n ],\r\n \"sku\": {\r\n \
\ \"name\": \"Premium_LRS\",\r\n \"tier\": \"Premium\"\r\n },\r\n \"\
properties\": {\r\n \"creationData\": {\r\n \"createOption\": \"Empty\"\
- \r\n },\r\n \"diskSizeGB\": 1,\r\n \"timeCreated\": \"2017-09-19T23:00:21.674462+00:00\"\
+ \r\n },\r\n \"diskSizeGB\": 1,\r\n \"timeCreated\": \"2017-11-17T17:13:25.2406743+00:00\"\
,\r\n \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\
\r\n },\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"\
- eastus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/disk123\"\
+ eastus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_zones000001/providers/Microsoft.Compute/disks/disk123\"\
,\r\n \"name\": \"disk123\"\r\n}"}
headers:
cache-control: [no-cache]
- content-length: ['634']
+ content-length: ['635']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 23:00:52 GMT']
+ date: ['Fri, 17 Nov 2017 17:13:56 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4997,Microsoft.Compute/LowCostGet30Min;19992']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [disk show]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
- msrest_azure/0.4.11 computemanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/disk123?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_zones000001/providers/Microsoft.Compute/disks/disk123?api-version=2017-03-30
response:
body: {string: "{\r\n \"zones\": [\r\n \"2\"\r\n ],\r\n \"sku\": {\r\n \
\ \"name\": \"Premium_LRS\",\r\n \"tier\": \"Premium\"\r\n },\r\n \"\
properties\": {\r\n \"creationData\": {\r\n \"createOption\": \"Empty\"\
- \r\n },\r\n \"diskSizeGB\": 1,\r\n \"timeCreated\": \"2017-09-19T23:00:21.674462+00:00\"\
+ \r\n },\r\n \"diskSizeGB\": 1,\r\n \"timeCreated\": \"2017-11-17T17:13:25.2406743+00:00\"\
,\r\n \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\
\r\n },\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"\
- eastus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/disk123\"\
+ eastus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_zones000001/providers/Microsoft.Compute/disks/disk123\"\
,\r\n \"name\": \"disk123\"\r\n}"}
headers:
cache-control: [no-cache]
- content-length: ['634']
+ content-length: ['635']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 23:00:53 GMT']
+ date: ['Fri, 17 Nov 2017 17:13:57 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4996,Microsoft.Compute/LowCostGet30Min;19991']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [disk list]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
- msrest_azure/0.4.11 computemanagementclient/3.0.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_zones000001/providers/Microsoft.Compute/disks?api-version=2017-03-30
response:
body: {string: "{\r\n \"value\": [\r\n {\r\n \"zones\": [\r\n \
\ \"2\"\r\n ],\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\"\
,\r\n \"tier\": \"Premium\"\r\n },\r\n \"properties\": {\r\
\n \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n\
- \ },\r\n \"diskSizeGB\": 1,\r\n \"timeCreated\": \"2017-09-19T23:00:21.674462+00:00\"\
+ \ },\r\n \"diskSizeGB\": 1,\r\n \"timeCreated\": \"2017-11-17T17:13:25.2406743+00:00\"\
,\r\n \"provisioningState\": \"Succeeded\",\r\n \"diskState\"\
: \"Unattached\"\r\n },\r\n \"type\": \"Microsoft.Compute/disks\"\
,\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"id\"\
- : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/disk123\"\
+ : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_zones000001/providers/Microsoft.Compute/disks/disk123\"\
,\r\n \"name\": \"disk123\"\r\n }\r\n ]\r\n}"}
headers:
cache-control: [no-cache]
- content-length: ['751']
+ content-length: ['752']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 23:00:54 GMT']
+ date: ['Fri, 17 Nov 2017 17:13:58 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/HighCostGet3Min;239,Microsoft.Compute/HighCostGet30Min;1199']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [group delete]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.13
- msrest_azure/0.4.11 resourcemanagementclient/1.2.0rc2 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
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
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_zones000001?api-version=2017-05-10
response:
body: {string: ''}
headers:
cache-control: [no-cache]
content-length: ['0']
- date: ['Tue, 19 Sep 2017 23:00:56 GMT']
+ date: ['Fri, 17 Nov 2017 17:14:00 GMT']
expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdGRkJJTlBBQTJIREQ3TzVUTFZBRFVKVUZENDdCVVlPVUpXWHwzODY2NTlENTVDN0ZERUVDLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10']
+ location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGRElTSzo1RlpPTkVTV0xUU0M2TEZWR0g3UTZNR0NWM1hXN3xBMTQ5NTkxRDdFNjBDQjU1LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1198']
+ x-ms-ratelimit-remaining-subscription-writes: ['1195']
status: {code: 202, message: Accepted}
version: 1
diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_managed_disk.yaml b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_managed_disk.yaml
index bd981553be8..d323a54601e 100644
--- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_managed_disk.yaml
+++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_managed_disk.yaml
@@ -1,449 +1,489 @@
interactions:
- request:
- body: null
+ body: '{"location": "westus", "tags": {"use": "az-test"}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
+ Content-Length: ['50']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/TEST/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [ce6b53da-9cc5-11e7-83c0-a0b3ccf7272a]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk?api-version=2017-05-10
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk","name":"cli_test_managed_disk","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2017-05-10
+ response:
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","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: ['Thu, 16 Nov 2017 00:31:41 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: null
headers:
- Cache-Control: [no-cache]
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
+ Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:05:03 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Vary: [Accept-Encoding]
- content-length: ['232']
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2017-05-10
+ response:
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","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: ['Thu, 16 Nov 2017 00:31:42 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
- body: '{"location": "westus", "properties": {"diskSizeGB": 1, "creationData":
- {"createOption": "Empty"}}, "tags": {"tag1": "d1"}, "sku": {"name": "Premium_LRS"}}'
+ body: '{"location": "westus", "tags": {"tag1": "d1"}, "properties": {"diskSizeGB":
+ 1, "creationData": {"createOption": "Empty"}}, "sku": {"name": "Premium_LRS"}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Length: ['154']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [ce8a52fa-9cc5-11e7-9516-a0b3ccf7272a]
method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d1?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2017-03-30
response:
body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\"\r\n },\r\n\
\ \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\
: \"Empty\"\r\n },\r\n \"diskSizeGB\": 1,\r\n \"provisioningState\"\
: \"Updating\",\r\n \"isArmResource\": true\r\n },\r\n \"location\":\
- \ \"westus\",\r\n \"tags\": {\r\n \"tag1\": \"d1\"\r\n }\r\n}"}
- headers:
- Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/DiskOperations/ace71c76-4527-4126-ae2f-e36258137667?api-version=2017-03-30']
- Cache-Control: [no-cache]
- Content-Length: ['284']
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:05:05 GMT']
- Expires: ['-1']
- Location: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/DiskOperations/ace71c76-4527-4126-ae2f-e36258137667?monitor=true&api-version=2017-03-30']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1190']
+ \ \"westus\",\r\n \"tags\": {\r\n \"tag1\": \"d1\"\r\n },\r\n \"name\"\
+ : \"d1\"\r\n}"}
+ headers:
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/7ba3a4c5-bd71-4d59-97ba-abb165e4d5e8?api-version=2017-03-30']
+ cache-control: [no-cache]
+ content-length: ['301']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:31:44 GMT']
+ expires: ['-1']
+ location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/7ba3a4c5-bd71-4d59-97ba-abb165e4d5e8?monitor=true&api-version=2017-03-30']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/CreateUpdateDisks3Min;999,Microsoft.Compute/CreateUpdateDisks30Min;3996']
+ x-ms-ratelimit-remaining-subscription-writes: ['1199']
status: {code: 202, message: Accepted}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [ce8a52fa-9cc5-11e7-9516-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/ace71c76-4527-4126-ae2f-e36258137667?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/7ba3a4c5-bd71-4d59-97ba-abb165e4d5e8?api-version=2017-03-30
response:
- body: {string: "{\r\n \"startTime\": \"2017-09-18T23:05:04.0421844+00:00\",\r\
- \n \"endTime\": \"2017-09-18T23:05:04.2452889+00:00\",\r\n \"status\": \"\
+ body: {string: "{\r\n \"startTime\": \"2017-11-16T00:31:42.9338606+00:00\",\r\
+ \n \"endTime\": \"2017-11-16T00:31:43.1213757+00:00\",\r\n \"status\": \"\
Succeeded\",\r\n \"properties\": {\r\n \"output\": {\"sku\":{\"name\"\
:\"Premium_LRS\",\"tier\":\"Premium\"},\"properties\":{\"creationData\":{\"\
- createOption\":\"Empty\"},\"diskSizeGB\":1,\"timeCreated\":\"2017-09-18T23:05:04.0421844+00:00\"\
+ createOption\":\"Empty\"},\"diskSizeGB\":1,\"timeCreated\":\"2017-11-16T00:31:42.9338606+00:00\"\
,\"provisioningState\":\"Succeeded\",\"diskState\":\"Unattached\"},\"type\"\
:\"Microsoft.Compute/disks\",\"location\":\"westus\",\"tags\":{\"tag1\":\"\
- d1\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d1\"\
- ,\"name\":\"d1\"}\r\n },\r\n \"name\": \"ace71c76-4527-4126-ae2f-e36258137667\"\
+ d1\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\"\
+ ,\"name\":\"d1\"}\r\n },\r\n \"name\": \"7ba3a4c5-bd71-4d59-97ba-abb165e4d5e8\"\
\r\n}"}
headers:
- Cache-Control: [no-cache]
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:05:35 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['674']
+ cache-control: [no-cache]
+ content-length: ['722']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:32:14 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;49998,Microsoft.Compute/GetOperation30Min;249994']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [ce8a52fa-9cc5-11e7-9516-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d1?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2017-03-30
response:
body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"\
tier\": \"Premium\"\r\n },\r\n \"properties\": {\r\n \"creationData\"\
: {\r\n \"createOption\": \"Empty\"\r\n },\r\n \"diskSizeGB\":\
- \ 1,\r\n \"timeCreated\": \"2017-09-18T23:05:04.0421844+00:00\",\r\n \
+ \ 1,\r\n \"timeCreated\": \"2017-11-16T00:31:42.9338606+00:00\",\r\n \
\ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\
\r\n },\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"\
westus\",\r\n \"tags\": {\r\n \"tag1\": \"d1\"\r\n },\r\n \"id\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d1\"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\"\
,\r\n \"name\": \"d1\"\r\n}"}
headers:
- Cache-Control: [no-cache]
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:05:35 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['569']
+ cache-control: [no-cache]
+ content-length: ['617']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:32:13 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4998,Microsoft.Compute/LowCostGet30Min;19992']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [e1998cd0-9cc5-11e7-b97e-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d1?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2017-03-30
response:
body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"\
tier\": \"Premium\"\r\n },\r\n \"properties\": {\r\n \"creationData\"\
: {\r\n \"createOption\": \"Empty\"\r\n },\r\n \"diskSizeGB\":\
- \ 1,\r\n \"timeCreated\": \"2017-09-18T23:05:04.0421844+00:00\",\r\n \
+ \ 1,\r\n \"timeCreated\": \"2017-11-16T00:31:42.9338606+00:00\",\r\n \
\ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\
\r\n },\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"\
westus\",\r\n \"tags\": {\r\n \"tag1\": \"d1\"\r\n },\r\n \"id\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d1\"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\"\
,\r\n \"name\": \"d1\"\r\n}"}
headers:
- Cache-Control: [no-cache]
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:05:36 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['569']
+ cache-control: [no-cache]
+ content-length: ['617']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:32:15 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4997,Microsoft.Compute/LowCostGet30Min;19991']
status: {code: 200, message: OK}
- request:
- body: '{"location": "westus", "properties": {"diskSizeGB": 10, "creationData":
- {"createOption": "Empty"}}, "tags": {"tag1": "d1"}, "sku": {"name": "Standard_LRS"}}'
+ body: '{"location": "westus", "tags": {"tag1": "d1"}, "properties": {"diskSizeGB":
+ 10, "creationData": {"createOption": "Empty"}}, "sku": {"name": "Standard_LRS"}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Length: ['156']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [e1c2c6e6-9cc5-11e7-bf6c-a0b3ccf7272a]
method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d1?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2017-03-30
response:
body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n\
\ \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\
: \"Empty\"\r\n },\r\n \"diskSizeGB\": 10,\r\n \"provisioningState\"\
: \"Updating\",\r\n \"isArmResource\": true\r\n },\r\n \"location\":\
- \ \"westus\",\r\n \"tags\": {\r\n \"tag1\": \"d1\"\r\n }\r\n}"}
- headers:
- Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/DiskOperations/24f97855-52c9-4251-85fa-bb3d3ef4acfb?api-version=2017-03-30']
- Cache-Control: [no-cache]
- Content-Length: ['286']
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:05:36 GMT']
- Expires: ['-1']
- Location: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/DiskOperations/24f97855-52c9-4251-85fa-bb3d3ef4acfb?monitor=true&api-version=2017-03-30']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1196']
+ \ \"westus\",\r\n \"tags\": {\r\n \"tag1\": \"d1\"\r\n },\r\n \"name\"\
+ : \"d1\"\r\n}"}
+ headers:
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/af5826ef-e67d-40d5-8759-b708fc05236d?api-version=2017-03-30']
+ cache-control: [no-cache]
+ content-length: ['303']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:32:15 GMT']
+ expires: ['-1']
+ location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/af5826ef-e67d-40d5-8759-b708fc05236d?monitor=true&api-version=2017-03-30']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/CreateUpdateDisks3Min;998,Microsoft.Compute/CreateUpdateDisks30Min;3995']
+ x-ms-ratelimit-remaining-subscription-writes: ['1198']
status: {code: 202, message: Accepted}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [e1c2c6e6-9cc5-11e7-bf6c-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/24f97855-52c9-4251-85fa-bb3d3ef4acfb?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/af5826ef-e67d-40d5-8759-b708fc05236d?api-version=2017-03-30
response:
- body: {string: "{\r\n \"startTime\": \"2017-09-18T23:05:36.1439161+00:00\",\r\
- \n \"endTime\": \"2017-09-18T23:05:36.284693+00:00\",\r\n \"status\": \"\
+ body: {string: "{\r\n \"startTime\": \"2017-11-16T00:32:15.31073+00:00\",\r\n\
+ \ \"endTime\": \"2017-11-16T00:32:15.513856+00:00\",\r\n \"status\": \"\
Succeeded\",\r\n \"properties\": {\r\n \"output\": {\"sku\":{\"name\"\
:\"Standard_LRS\",\"tier\":\"Standard\"},\"properties\":{\"creationData\"\
- :{\"createOption\":\"Empty\"},\"diskSizeGB\":10,\"timeCreated\":\"2017-09-18T23:05:04.0421844+00:00\"\
+ :{\"createOption\":\"Empty\"},\"diskSizeGB\":10,\"timeCreated\":\"2017-11-16T00:31:42.9338606+00:00\"\
,\"provisioningState\":\"Succeeded\",\"diskState\":\"Unattached\"},\"type\"\
:\"Microsoft.Compute/disks\",\"location\":\"westus\",\"tags\":{\"tag1\":\"\
- d1\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d1\"\
- ,\"name\":\"d1\"}\r\n },\r\n \"name\": \"24f97855-52c9-4251-85fa-bb3d3ef4acfb\"\
+ d1\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\"\
+ ,\"name\":\"d1\"}\r\n },\r\n \"name\": \"af5826ef-e67d-40d5-8759-b708fc05236d\"\
\r\n}"}
headers:
- Cache-Control: [no-cache]
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:06:06 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['676']
+ cache-control: [no-cache]
+ content-length: ['722']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:32:46 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;49996,Microsoft.Compute/GetOperation30Min;249992']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [e1c2c6e6-9cc5-11e7-bf6c-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d1?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2017-03-30
response:
body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"\
tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"creationData\"\
: {\r\n \"createOption\": \"Empty\"\r\n },\r\n \"diskSizeGB\":\
- \ 10,\r\n \"timeCreated\": \"2017-09-18T23:05:04.0421844+00:00\",\r\n \
+ \ 10,\r\n \"timeCreated\": \"2017-11-16T00:31:42.9338606+00:00\",\r\n \
\ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\
\r\n },\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"\
westus\",\r\n \"tags\": {\r\n \"tag1\": \"d1\"\r\n },\r\n \"id\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d1\"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\"\
,\r\n \"name\": \"d1\"\r\n}"}
headers:
- Cache-Control: [no-cache]
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:06:06 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['572']
+ cache-control: [no-cache]
+ content-length: ['620']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:32:47 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4995,Microsoft.Compute/LowCostGet30Min;19989']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/TEST/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [f445aae4-9cc5-11e7-a6cc-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk?api-version=2017-05-10
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk","name":"cli_test_managed_disk","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
- headers:
- Cache-Control: [no-cache]
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:06:07 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Vary: [Accept-Encoding]
- content-length: ['232']
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2017-05-10
+ response:
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","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: ['Thu, 16 Nov 2017 00:32:48 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
- body: '{"location": "westus", "properties": {"creationData": {"createOption":
- "Copy", "sourceResourceId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d1"}},
- "tags": {}, "sku": {"name": "Premium_LRS"}}'
+ body: 'b''{"location": "westus", "tags": {}, "properties": {"creationData": {"createOption":
+ "Copy", "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1"}},
+ "sku": {"name": "Premium_LRS"}}'''
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
- Content-Length: ['279']
+ Content-Length: ['327']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [f4565b92-9cc5-11e7-ad30-a0b3ccf7272a]
method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d2?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d2?api-version=2017-03-30
response:
body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\"\r\n },\r\n\
\ \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\
- : \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d1\"\
+ : \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\"\
\r\n },\r\n \"provisioningState\": \"Updating\",\r\n \"isArmResource\"\
- : true\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n}"}
- headers:
- Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/DiskOperations/f1bf49ca-f81a-40e4-a4fe-32b39f9bfe0f?api-version=2017-03-30']
- Cache-Control: [no-cache]
- Content-Length: ['401']
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:06:07 GMT']
- Expires: ['-1']
- Location: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/DiskOperations/f1bf49ca-f81a-40e4-a4fe-32b39f9bfe0f?monitor=true&api-version=2017-03-30']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1196']
+ : true\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"name\"\
+ : \"d2\"\r\n}"}
+ headers:
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/83949ba3-9785-426b-8a39-3ed20ee9e341?api-version=2017-03-30']
+ cache-control: [no-cache]
+ content-length: ['466']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:32:51 GMT']
+ expires: ['-1']
+ location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/83949ba3-9785-426b-8a39-3ed20ee9e341?monitor=true&api-version=2017-03-30']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/CreateUpdateDisks3Min;997,Microsoft.Compute/CreateUpdateDisks30Min;3994']
+ x-ms-ratelimit-remaining-subscription-writes: ['1197']
status: {code: 202, message: Accepted}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [f4565b92-9cc5-11e7-ad30-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/f1bf49ca-f81a-40e4-a4fe-32b39f9bfe0f?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/83949ba3-9785-426b-8a39-3ed20ee9e341?api-version=2017-03-30
response:
- body: {string: "{\r\n \"startTime\": \"2017-09-18T23:06:07.4307514+00:00\",\r\
- \n \"endTime\": \"2017-09-18T23:06:08.102576+00:00\",\r\n \"status\": \"\
+ body: {string: "{\r\n \"startTime\": \"2017-11-16T00:32:50.0995281+00:00\",\r\
+ \n \"endTime\": \"2017-11-16T00:32:51.0995716+00:00\",\r\n \"status\": \"\
Succeeded\",\r\n \"properties\": {\r\n \"output\": {\"sku\":{\"name\"\
:\"Premium_LRS\",\"tier\":\"Premium\"},\"properties\":{\"creationData\":{\"\
- createOption\":\"Copy\",\"sourceResourceId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d1\"\
- },\"diskSizeGB\":10,\"timeCreated\":\"2017-09-18T23:06:07.4307514+00:00\"\
+ createOption\":\"Copy\",\"sourceResourceId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\"\
+ },\"diskSizeGB\":10,\"timeCreated\":\"2017-11-16T00:32:50.0995281+00:00\"\
,\"provisioningState\":\"Succeeded\",\"diskState\":\"Unattached\"},\"type\"\
:\"Microsoft.Compute/disks\",\"location\":\"westus\",\"tags\":{},\"id\":\"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d2\"\
- ,\"name\":\"d2\"}\r\n },\r\n \"name\": \"f1bf49ca-f81a-40e4-a4fe-32b39f9bfe0f\"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d2\"\
+ ,\"name\":\"d2\"}\r\n },\r\n \"name\": \"83949ba3-9785-426b-8a39-3ed20ee9e341\"\
\r\n}"}
headers:
- Cache-Control: [no-cache]
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:06:38 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['815']
+ cache-control: [no-cache]
+ content-length: ['912']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:33:21 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;49994,Microsoft.Compute/GetOperation30Min;249990']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [f4565b92-9cc5-11e7-ad30-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d2?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d2?api-version=2017-03-30
response:
body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"\
tier\": \"Premium\"\r\n },\r\n \"properties\": {\r\n \"creationData\"\
: {\r\n \"createOption\": \"Copy\",\r\n \"sourceResourceId\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d1\"\
- \r\n },\r\n \"diskSizeGB\": 10,\r\n \"timeCreated\": \"2017-09-18T23:06:07.4307514+00:00\"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\"\
+ \r\n },\r\n \"diskSizeGB\": 10,\r\n \"timeCreated\": \"2017-11-16T00:32:50.0995281+00:00\"\
,\r\n \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\
\r\n },\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"\
- westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d2\"\
+ westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d2\"\
,\r\n \"name\": \"d2\"\r\n}"}
headers:
- Cache-Control: [no-cache]
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:06:38 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['709']
+ cache-control: [no-cache]
+ content-length: ['805']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:33:21 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4993,Microsoft.Compute/LowCostGet30Min;19987']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/TEST/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [07455602-9cc6-11e7-8a73-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk?api-version=2017-05-10
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk","name":"cli_test_managed_disk","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
- headers:
- Cache-Control: [no-cache]
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:06:39 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Vary: [Accept-Encoding]
- content-length: ['232']
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2017-05-10
+ response:
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","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: ['Thu, 16 Nov 2017 00:33:22 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
- body: '{"location": "westus", "properties": {"diskSizeGB": 1, "creationData":
- {"createOption": "Empty"}}, "tags": {"tag1": "s1"}, "sku": {"name": "Premium_LRS"}}'
+ body: '{"location": "westus", "tags": {"tag1": "s1"}, "properties": {"diskSizeGB":
+ 1, "creationData": {"createOption": "Empty"}}, "sku": {"name": "Premium_LRS"}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Length: ['154']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [075606be-9cc6-11e7-bed4-a0b3ccf7272a]
method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/snapshots/s1?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2017-03-30
response:
body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\"\r\n },\r\n\
\ \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\
@@ -451,139 +491,143 @@ interactions:
: \"Updating\",\r\n \"isArmResource\": true\r\n },\r\n \"location\":\
\ \"westus\",\r\n \"tags\": {\r\n \"tag1\": \"s1\"\r\n }\r\n}"}
headers:
- Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/DiskOperations/de78493f-7e6b-4811-961a-bfc03f6d4169?api-version=2017-03-30']
- Cache-Control: [no-cache]
- Content-Length: ['284']
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:06:40 GMT']
- Expires: ['-1']
- Location: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/DiskOperations/de78493f-7e6b-4811-961a-bfc03f6d4169?monitor=true&api-version=2017-03-30']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1197']
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/c83c425d-46c5-4fbf-8d70-2dfa215a26f6?api-version=2017-03-30']
+ cache-control: [no-cache]
+ content-length: ['284']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:33:24 GMT']
+ expires: ['-1']
+ location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/c83c425d-46c5-4fbf-8d70-2dfa215a26f6?monitor=true&api-version=2017-03-30']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/HighCostHydrate3Min;239,Microsoft.Compute/HighCostHydrate30Min;1199']
+ x-ms-ratelimit-remaining-subscription-writes: ['1196']
status: {code: 202, message: Accepted}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [075606be-9cc6-11e7-bed4-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/de78493f-7e6b-4811-961a-bfc03f6d4169?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/c83c425d-46c5-4fbf-8d70-2dfa215a26f6?api-version=2017-03-30
response:
- body: {string: "{\r\n \"startTime\": \"2017-09-18T23:06:39.3949016+00:00\",\r\
- \n \"endTime\": \"2017-09-18T23:06:39.6292749+00:00\",\r\n \"status\": \"\
+ body: {string: "{\r\n \"startTime\": \"2017-11-16T00:33:23.2367111+00:00\",\r\
+ \n \"endTime\": \"2017-11-16T00:33:23.4397983+00:00\",\r\n \"status\": \"\
Succeeded\",\r\n \"properties\": {\r\n \"output\": {\"sku\":{\"name\"\
:\"Premium_LRS\",\"tier\":\"Premium\"},\"properties\":{\"creationData\":{\"\
- createOption\":\"Empty\"},\"diskSizeGB\":1,\"timeCreated\":\"2017-09-18T23:06:39.3949016+00:00\"\
+ createOption\":\"Empty\"},\"diskSizeGB\":1,\"timeCreated\":\"2017-11-16T00:33:23.2367111+00:00\"\
,\"provisioningState\":\"Succeeded\",\"diskState\":\"Unattached\"},\"type\"\
:\"Microsoft.Compute/snapshots\",\"location\":\"westus\",\"tags\":{\"tag1\"\
- :\"s1\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/snapshots/s1\"\
- ,\"name\":\"s1\"}\r\n },\r\n \"name\": \"de78493f-7e6b-4811-961a-bfc03f6d4169\"\
+ :\"s1\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1\"\
+ ,\"name\":\"s1\"}\r\n },\r\n \"name\": \"c83c425d-46c5-4fbf-8d70-2dfa215a26f6\"\
\r\n}"}
headers:
- Cache-Control: [no-cache]
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:07:11 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['682']
+ cache-control: [no-cache]
+ content-length: ['730']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:33:55 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;49992,Microsoft.Compute/GetOperation30Min;249988']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [075606be-9cc6-11e7-bed4-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/snapshots/s1?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2017-03-30
response:
body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"\
tier\": \"Premium\"\r\n },\r\n \"properties\": {\r\n \"creationData\"\
: {\r\n \"createOption\": \"Empty\"\r\n },\r\n \"diskSizeGB\":\
- \ 1,\r\n \"timeCreated\": \"2017-09-18T23:06:39.3949016+00:00\",\r\n \
+ \ 1,\r\n \"timeCreated\": \"2017-11-16T00:33:23.2367111+00:00\",\r\n \
\ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\
\r\n },\r\n \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\"\
: \"westus\",\r\n \"tags\": {\r\n \"tag1\": \"s1\"\r\n },\r\n \"id\"\
- : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/snapshots/s1\"\
+ : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1\"\
,\r\n \"name\": \"s1\"\r\n}"}
headers:
- Cache-Control: [no-cache]
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:07:10 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['577']
+ cache-control: [no-cache]
+ content-length: ['625']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:33:55 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4991,Microsoft.Compute/LowCostGet30Min;19985']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [1a4ef418-9cc6-11e7-843e-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/snapshots/s1?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2017-03-30
response:
body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"\
tier\": \"Premium\"\r\n },\r\n \"properties\": {\r\n \"creationData\"\
: {\r\n \"createOption\": \"Empty\"\r\n },\r\n \"diskSizeGB\":\
- \ 1,\r\n \"timeCreated\": \"2017-09-18T23:06:39.3949016+00:00\",\r\n \
+ \ 1,\r\n \"timeCreated\": \"2017-11-16T00:33:23.2367111+00:00\",\r\n \
\ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\
\r\n },\r\n \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\"\
: \"westus\",\r\n \"tags\": {\r\n \"tag1\": \"s1\"\r\n },\r\n \"id\"\
- : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/snapshots/s1\"\
+ : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1\"\
,\r\n \"name\": \"s1\"\r\n}"}
headers:
- Cache-Control: [no-cache]
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:07:11 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['577']
+ cache-control: [no-cache]
+ content-length: ['625']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:33:56 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4990,Microsoft.Compute/LowCostGet30Min;19984']
status: {code: 200, message: OK}
- request:
- body: '{"location": "westus", "properties": {"diskSizeGB": 1, "creationData":
- {"createOption": "Empty"}}, "tags": {"tag1": "s1"}, "sku": {"name": "Standard_LRS"}}'
+ body: '{"location": "westus", "tags": {"tag1": "s1"}, "properties": {"diskSizeGB":
+ 1, "creationData": {"createOption": "Empty"}}, "sku": {"name": "Standard_LRS"}}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Length: ['155']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [1a777c9a-9cc6-11e7-8484-a0b3ccf7272a]
method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/snapshots/s1?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2017-03-30
response:
body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n\
\ \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\
@@ -592,113 +636,116 @@ interactions:
\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"tag1\": \"\
s1\"\r\n }\r\n}"}
headers:
- Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/DiskOperations/44a73c00-7841-4d10-abb5-65b77ccffba7?api-version=2017-03-30']
- Cache-Control: [no-cache]
- Content-Length: ['308']
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:07:12 GMT']
- Expires: ['-1']
- Location: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/DiskOperations/44a73c00-7841-4d10-abb5-65b77ccffba7?monitor=true&api-version=2017-03-30']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1194']
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/eb646b32-7851-423e-9b56-4e3400c9c5e4?api-version=2017-03-30']
+ cache-control: [no-cache]
+ content-length: ['308']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:33:57 GMT']
+ expires: ['-1']
+ location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/eb646b32-7851-423e-9b56-4e3400c9c5e4?monitor=true&api-version=2017-03-30']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/HighCostHydrate3Min;238,Microsoft.Compute/HighCostHydrate30Min;1198']
+ x-ms-ratelimit-remaining-subscription-writes: ['1197']
status: {code: 202, message: Accepted}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [1a777c9a-9cc6-11e7-8484-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/44a73c00-7841-4d10-abb5-65b77ccffba7?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/eb646b32-7851-423e-9b56-4e3400c9c5e4?api-version=2017-03-30
response:
- body: {string: "{\r\n \"startTime\": \"2017-09-18T23:07:11.1035531+00:00\",\r\
- \n \"endTime\": \"2017-09-18T23:07:11.6191169+00:00\",\r\n \"status\": \"\
+ body: {string: "{\r\n \"startTime\": \"2017-11-16T00:33:56.5065353+00:00\",\r\
+ \n \"endTime\": \"2017-11-16T00:33:57.2409494+00:00\",\r\n \"status\": \"\
Succeeded\",\r\n \"properties\": {\r\n \"output\": {\"sku\":{\"name\"\
:\"Standard_LRS\",\"tier\":\"Standard\"},\"properties\":{\"creationData\"\
- :{\"createOption\":\"Empty\"},\"diskSizeGB\":1,\"timeCreated\":\"2017-09-18T23:06:39.3949016+00:00\"\
+ :{\"createOption\":\"Empty\"},\"diskSizeGB\":1,\"timeCreated\":\"2017-11-16T00:33:23.2367111+00:00\"\
,\"provisioningState\":\"Succeeded\",\"diskState\":\"Unattached\"},\"type\"\
:\"Microsoft.Compute/snapshots\",\"location\":\"westus\",\"tags\":{\"tag1\"\
- :\"s1\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/snapshots/s1\"\
- ,\"name\":\"s1\"}\r\n },\r\n \"name\": \"44a73c00-7841-4d10-abb5-65b77ccffba7\"\
+ :\"s1\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1\"\
+ ,\"name\":\"s1\"}\r\n },\r\n \"name\": \"eb646b32-7851-423e-9b56-4e3400c9c5e4\"\
\r\n}"}
headers:
- Cache-Control: [no-cache]
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:07:42 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['684']
+ cache-control: [no-cache]
+ content-length: ['732']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:34:27 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;49990,Microsoft.Compute/GetOperation30Min;249986']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [1a777c9a-9cc6-11e7-8484-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/snapshots/s1?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2017-03-30
response:
body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"\
tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"creationData\"\
: {\r\n \"createOption\": \"Empty\"\r\n },\r\n \"diskSizeGB\":\
- \ 1,\r\n \"timeCreated\": \"2017-09-18T23:06:39.3949016+00:00\",\r\n \
+ \ 1,\r\n \"timeCreated\": \"2017-11-16T00:33:23.2367111+00:00\",\r\n \
\ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\
\r\n },\r\n \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\"\
: \"westus\",\r\n \"tags\": {\r\n \"tag1\": \"s1\"\r\n },\r\n \"id\"\
- : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/snapshots/s1\"\
+ : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1\"\
,\r\n \"name\": \"s1\"\r\n}"}
headers:
- Cache-Control: [no-cache]
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:07:42 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['579']
+ cache-control: [no-cache]
+ content-length: ['627']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:34:28 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4988,Microsoft.Compute/LowCostGet30Min;19982']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [2cea63b6-9cc6-11e7-aeaf-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/snapshots/d1?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/d1?api-version=2017-03-30
response:
body: {string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Compute/snapshots/d1''
- under resource group ''cli_test_managed_disk'' was not found."}}'}
- headers:
- Cache-Control: [no-cache]
- Content-Length: ['161']
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:07:42 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+ under resource group ''cli_test_managed_disk000001'' was not found."}}'}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['209']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:34:29 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
x-ms-failure-cause: [gateway]
status: {code: 404, message: Not Found}
- request:
@@ -706,441 +753,198 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [2d07006c-9cc6-11e7-957a-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d1?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2017-03-30
response:
body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"\
tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"creationData\"\
: {\r\n \"createOption\": \"Empty\"\r\n },\r\n \"diskSizeGB\":\
- \ 10,\r\n \"timeCreated\": \"2017-09-18T23:05:04.0421844+00:00\",\r\n \
+ \ 10,\r\n \"timeCreated\": \"2017-11-16T00:31:42.9338606+00:00\",\r\n \
\ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\
\r\n },\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"\
westus\",\r\n \"tags\": {\r\n \"tag1\": \"d1\"\r\n },\r\n \"id\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d1\"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\"\
,\r\n \"name\": \"d1\"\r\n}"}
headers:
- Cache-Control: [no-cache]
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:07:42 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['572']
+ cache-control: [no-cache]
+ content-length: ['620']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:34:29 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4987,Microsoft.Compute/LowCostGet30Min;19981']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/TEST/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [2d4039e4-9cc6-11e7-aca9-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk?api-version=2017-05-10
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk","name":"cli_test_managed_disk","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
- headers:
- Cache-Control: [no-cache]
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:07:43 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Vary: [Accept-Encoding]
- content-length: ['232']
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2017-05-10
+ response:
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","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: ['Thu, 16 Nov 2017 00:34:29 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
- body: '{"location": "westus", "properties": {"creationData": {"createOption":
- "Copy", "sourceResourceId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d1"}},
- "tags": {}, "sku": {"name": "Premium_LRS"}}'
+ body: 'b''{"location": "westus", "tags": {}, "properties": {"creationData": {"createOption":
+ "Copy", "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1"}},
+ "sku": {"name": "Premium_LRS"}}'''
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
- Content-Length: ['279']
+ Content-Length: ['327']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [2d619b68-9cc6-11e7-b34c-a0b3ccf7272a]
method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/snapshots/s2?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s2?api-version=2017-03-30
response:
body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\"\r\n },\r\n\
\ \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\
- : \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d1\"\
+ : \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\"\
\r\n },\r\n \"provisioningState\": \"Updating\",\r\n \"isArmResource\"\
: true\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n}"}
headers:
- Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/DiskOperations/9316e947-bf67-4e65-9037-11259f61de81?api-version=2017-03-30']
- Cache-Control: [no-cache]
- Content-Length: ['401']
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:07:43 GMT']
- Expires: ['-1']
- Location: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/DiskOperations/9316e947-bf67-4e65-9037-11259f61de81?monitor=true&api-version=2017-03-30']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1196']
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/f3024c52-015e-4aed-b293-0689f0404738?api-version=2017-03-30']
+ cache-control: [no-cache]
+ content-length: ['449']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:34:31 GMT']
+ expires: ['-1']
+ location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/f3024c52-015e-4aed-b293-0689f0404738?monitor=true&api-version=2017-03-30']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/HighCostHydrate3Min;237,Microsoft.Compute/HighCostHydrate30Min;1197']
+ x-ms-ratelimit-remaining-subscription-writes: ['1198']
status: {code: 202, message: Accepted}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [2d619b68-9cc6-11e7-b34c-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/9316e947-bf67-4e65-9037-11259f61de81?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/f3024c52-015e-4aed-b293-0689f0404738?api-version=2017-03-30
response:
- body: {string: "{\r\n \"startTime\": \"2017-09-18T23:07:42.781676+00:00\",\r\n\
- \ \"endTime\": \"2017-09-18T23:07:43.2347663+00:00\",\r\n \"status\": \"\
+ body: {string: "{\r\n \"startTime\": \"2017-11-16T00:34:30.3234403+00:00\",\r\
+ \n \"endTime\": \"2017-11-16T00:34:30.7765906+00:00\",\r\n \"status\": \"\
Succeeded\",\r\n \"properties\": {\r\n \"output\": {\"sku\":{\"name\"\
:\"Premium_LRS\",\"tier\":\"Premium\"},\"properties\":{\"creationData\":{\"\
- createOption\":\"Copy\",\"sourceResourceId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d1\"\
- },\"diskSizeGB\":10,\"timeCreated\":\"2017-09-18T23:07:42.781676+00:00\",\"\
- provisioningState\":\"Succeeded\",\"diskState\":\"Unattached\"},\"type\":\"\
- Microsoft.Compute/snapshots\",\"location\":\"westus\",\"tags\":{},\"id\":\"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/snapshots/s2\"\
- ,\"name\":\"s2\"}\r\n },\r\n \"name\": \"9316e947-bf67-4e65-9037-11259f61de81\"\
+ createOption\":\"Copy\",\"sourceResourceId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\"\
+ },\"diskSizeGB\":10,\"timeCreated\":\"2017-11-16T00:34:30.3391047+00:00\"\
+ ,\"provisioningState\":\"Succeeded\",\"diskState\":\"Unattached\"},\"type\"\
+ :\"Microsoft.Compute/snapshots\",\"location\":\"westus\",\"tags\":{},\"id\"\
+ :\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s2\"\
+ ,\"name\":\"s2\"}\r\n },\r\n \"name\": \"f3024c52-015e-4aed-b293-0689f0404738\"\
\r\n}"}
headers:
- Cache-Control: [no-cache]
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:08:13 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['822']
+ cache-control: [no-cache]
+ content-length: ['920']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:35:02 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;49990,Microsoft.Compute/GetOperation30Min;249984']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [2d619b68-9cc6-11e7-b34c-a0b3ccf7272a]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/snapshots/s2?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s2?api-version=2017-03-30
response:
body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"\
tier\": \"Premium\"\r\n },\r\n \"properties\": {\r\n \"creationData\"\
: {\r\n \"createOption\": \"Copy\",\r\n \"sourceResourceId\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d1\"\
- \r\n },\r\n \"diskSizeGB\": 10,\r\n \"timeCreated\": \"2017-09-18T23:07:42.781676+00:00\"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\"\
+ \r\n },\r\n \"diskSizeGB\": 10,\r\n \"timeCreated\": \"2017-11-16T00:34:30.3391047+00:00\"\
,\r\n \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\
\r\n },\r\n \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\"\
- : \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/snapshots/s2\"\
+ : \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s2\"\
,\r\n \"name\": \"s2\"\r\n}"}
headers:
- Cache-Control: [no-cache]
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:08:14 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['716']
+ cache-control: [no-cache]
+ content-length: ['813']
+ content-type: [application/json; charset=utf-8]
+ date: ['Thu, 16 Nov 2017 00:35:02 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ transfer-encoding: [chunked]
+ vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4988,Microsoft.Compute/LowCostGet30Min;19980']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
+ Content-Length: ['0']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
- accept-language: [en-US]
- x-ms-client-request-id: [40156482-9cc6-11e7-b7a0-a0b3ccf7272a]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/virtualMachines/s1?api-version=2017-03-30
- response:
- body: {string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Compute/virtualMachines/s1''
- under resource group ''cli_test_managed_disk'' was not found."}}'}
- headers:
- Cache-Control: [no-cache]
- Content-Length: ['167']
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:08:14 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- x-ms-failure-cause: [gateway]
- status: {code: 404, message: Not Found}
-- 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.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
- x-ms-client-request-id: [4049d940-9cc6-11e7-a8ea-a0b3ccf7272a]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/snapshots/s1?api-version=2017-03-30
+ method: DELETE
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2017-05-10
response:
- body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"\
- tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"creationData\"\
- : {\r\n \"createOption\": \"Empty\"\r\n },\r\n \"diskSizeGB\":\
- \ 1,\r\n \"timeCreated\": \"2017-09-18T23:06:39.3949016+00:00\",\r\n \
- \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\
- \r\n },\r\n \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\"\
- : \"westus\",\r\n \"tags\": {\r\n \"tag1\": \"s1\"\r\n },\r\n \"id\"\
- : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/snapshots/s1\"\
- ,\r\n \"name\": \"s1\"\r\n}"}
- headers:
- Cache-Control: [no-cache]
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:08:14 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['579']
- status: {code: 200, message: OK}
-- request:
- body: null
+ body: {string: ''}
headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
- accept-language: [en-US]
- x-ms-client-request-id: [407beb9a-9cc6-11e7-b49f-a0b3ccf7272a]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/snapshots/d1?api-version=2017-03-30
- response:
- body: {string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Compute/snapshots/d1''
- under resource group ''cli_test_managed_disk'' was not found."}}'}
- headers:
- Cache-Control: [no-cache]
- Content-Length: ['161']
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:08:15 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- x-ms-failure-cause: [gateway]
- status: {code: 404, message: Not Found}
-- 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.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
- accept-language: [en-US]
- x-ms-client-request-id: [409aeae2-9cc6-11e7-9b91-a0b3ccf7272a]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d1?api-version=2017-03-30
- response:
- body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"\
- tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"creationData\"\
- : {\r\n \"createOption\": \"Empty\"\r\n },\r\n \"diskSizeGB\":\
- \ 10,\r\n \"timeCreated\": \"2017-09-18T23:05:04.0421844+00:00\",\r\n \
- \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\
- \r\n },\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"\
- westus\",\r\n \"tags\": {\r\n \"tag1\": \"d1\"\r\n },\r\n \"id\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d1\"\
- ,\r\n \"name\": \"d1\"\r\n}"}
- headers:
- Cache-Control: [no-cache]
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:08:15 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['572']
- 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.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/TEST/2.0.16+dev]
- accept-language: [en-US]
- x-ms-client-request-id: [40b2c2dc-9cc6-11e7-88de-a0b3ccf7272a]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk?api-version=2017-05-10
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk","name":"cli_test_managed_disk","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
- headers:
- Cache-Control: [no-cache]
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:08:15 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Vary: [Accept-Encoding]
- content-length: ['232']
- status: {code: 200, message: OK}
-- request:
- body: '{"location": "westus", "properties": {"storageProfile": {"osDisk": {"osType":
- "Linux", "snapshot": {"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/snapshots/s1"},
- "osState": "Generalized"}, "dataDisks": [{"lun": 0, "snapshot": {"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/snapshots/s2"}},
- {"managedDisk": {"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d1"},
- "lun": 1}, {"managedDisk": {"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d2"},
- "lun": 2}]}}, "tags": {"tag1": "i1"}}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- Connection: [keep-alive]
- Content-Length: ['824']
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
- accept-language: [en-US]
- x-ms-client-request-id: [40ccfd36-9cc6-11e7-a6ae-a0b3ccf7272a]
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/images/i1?api-version=2017-03-30
- response:
- body: {string: "{\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \
- \ \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"osState\"\
- : \"Generalized\",\r\n \"snapshot\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/snapshots/s1\"\
- \r\n },\r\n \"caching\": \"None\"\r\n },\r\n \"dataDisks\"\
- : [\r\n {\r\n \"lun\": 0,\r\n \"snapshot\": {\r\n\
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/snapshots/s2\"\
- \r\n },\r\n \"caching\": \"None\"\r\n },\r\n \
- \ {\r\n \"lun\": 1,\r\n \"managedDisk\": {\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d1\"\
- \r\n },\r\n \"caching\": \"None\"\r\n },\r\n \
- \ {\r\n \"lun\": 2,\r\n \"managedDisk\": {\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d2\"\
- \r\n },\r\n \"caching\": \"None\"\r\n }\r\n \
- \ ]\r\n },\r\n \"provisioningState\": \"Creating\"\r\n },\r\n \"type\"\
- : \"Microsoft.Compute/images\",\r\n \"location\": \"westus\",\r\n \"tags\"\
- : {\r\n \"tag1\": \"i1\"\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/images/i1\"\
- ,\r\n \"name\": \"i1\"\r\n}"}
- headers:
- Azure-AsyncOperation: ['https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/westus/operations/831986d7-8a8e-4f04-9bb6-5eb8630ad02a?api-version=2017-03-30']
- Cache-Control: [no-cache]
- Content-Length: ['1505']
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:08:16 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1195']
- 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.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
- accept-language: [en-US]
- x-ms-client-request-id: [40ccfd36-9cc6-11e7-a6ae-a0b3ccf7272a]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/831986d7-8a8e-4f04-9bb6-5eb8630ad02a?api-version=2017-03-30
- response:
- body: {string: "{\r\n \"startTime\": \"2017-09-18T23:08:17.3924846+00:00\",\r\
- \n \"endTime\": \"2017-09-18T23:08:22.75312+00:00\",\r\n \"status\": \"\
- Succeeded\",\r\n \"name\": \"831986d7-8a8e-4f04-9bb6-5eb8630ad02a\"\r\n}"}
- headers:
- Cache-Control: [no-cache]
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:08:46 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['182']
- 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.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/TEST/2.0.16+dev]
- accept-language: [en-US]
- x-ms-client-request-id: [40ccfd36-9cc6-11e7-a6ae-a0b3ccf7272a]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/images/i1?api-version=2017-03-30
- response:
- body: {string: "{\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \
- \ \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"osState\"\
- : \"Generalized\",\r\n \"diskSizeGB\": 1,\r\n \"snapshot\":\
- \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/snapshots/s1\"\
- \r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\
- : \"Standard_LRS\"\r\n },\r\n \"dataDisks\": [\r\n {\r\n\
- \ \"lun\": 0,\r\n \"diskSizeGB\": 10,\r\n \"snapshot\"\
- : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/snapshots/s2\"\
- \r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\
- : \"Standard_LRS\"\r\n },\r\n {\r\n \"lun\": 1,\r\n\
- \ \"diskSizeGB\": 10,\r\n \"managedDisk\": {\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d1\"\
- \r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\
- : \"Standard_LRS\"\r\n },\r\n {\r\n \"lun\": 2,\r\n\
- \ \"diskSizeGB\": 10,\r\n \"managedDisk\": {\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/disks/d2\"\
- \r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\
- : \"Standard_LRS\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\"\
- : \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.Compute/images\",\r\n \
- \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"tag1\": \"i1\"\r\n \
- \ },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk/providers/Microsoft.Compute/images/i1\"\
- ,\r\n \"name\": \"i1\"\r\n}"}
- headers:
- Cache-Control: [no-cache]
- Content-Type: [application/json; charset=utf-8]
- Date: ['Mon, 18 Sep 2017 23:08:47 GMT']
- Expires: ['-1']
- Pragma: [no-cache]
- Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- Strict-Transport-Security: [max-age=31536000; includeSubDomains]
- Transfer-Encoding: [chunked]
- Vary: [Accept-Encoding]
- content-length: ['1813']
- status: {code: 200, message: OK}
+ cache-control: [no-cache]
+ content-length: ['0']
+ date: ['Thu, 16 Nov 2017 00:35:02 GMT']
+ expires: ['-1']
+ location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGTUFOQUdFRDo1RkRJU0tNV0dYNFBHQ09DVUJFS09JRUc1M3wwMTc5MzI1OUE1NzVEMDFFLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10']
+ pragma: [no-cache]
+ 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-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_msi_no_scope.yaml b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_msi_no_scope.yaml
index b42bc81785b..487864ab108 100644
--- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_msi_no_scope.yaml
+++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_msi_no_scope.yaml
@@ -4,49 +4,49 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [group create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Length: ['50']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
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
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001?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"}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001","name":"cli_test_msi_no_scope000001","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, 19 Sep 2017 15:54:38 GMT']
+ date: ['Fri, 17 Nov 2017 17:01:45 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1192']
+ x-ms-ratelimit-remaining-subscription-writes: ['1193']
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001?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"}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001","name":"cli_test_msi_no_scope000001","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, 19 Sep 2017 15:54:38 GMT']
+ date: ['Fri, 17 Nov 2017 17:01:46 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -102,24 +102,24 @@ interactions:
cache-control: [max-age=300]
connection: [close]
content-length: ['2235']
- content-security-policy: [default-src 'none'; style-src 'unsafe-inline']
+ content-security-policy: [default-src 'none'; style-src 'unsafe-inline'; sandbox]
content-type: [text/plain; charset=utf-8]
- date: ['Tue, 19 Sep 2017 15:54:39 GMT']
+ date: ['Fri, 17 Nov 2017 17:01:48 GMT']
etag: ['"d6824855d13e27c5258a680eb60f635d088fd05e"']
- expires: ['Tue, 19 Sep 2017 15:59:39 GMT']
- source-age: ['36']
+ expires: ['Fri, 17 Nov 2017 17:06:48 GMT']
+ source-age: ['284']
strict-transport-security: [max-age=31536000]
vary: ['Authorization,Accept-Encoding']
via: [1.1 varnish]
x-cache: [HIT]
x-cache-hits: ['1']
x-content-type-options: [nosniff]
- x-fastly-request-id: [4cb15e0ae49fca529b74e855ee0cd273f5d357b1]
+ x-fastly-request-id: [9fdff1d477ffddf51004846b89d246911704159a]
x-frame-options: [deny]
x-geo-block-list: ['']
- x-github-request-id: ['81F8:28E1F:35FDBD4:3950BA6:59C13D9B']
- x-served-by: [cache-dfw18642-DFW]
- x-timer: ['S1505836479.427799,VS0,VE1']
+ x-github-request-id: ['15C8:22BFE:3FE232:445F70:5A0F14DF']
+ x-served-by: [cache-mdw17341-MDW]
+ x-timer: ['S1510938108.099622,VS0,VE0']
x-xss-protection: [1; mode=block]
status: {code: 200, message: OK}
- request:
@@ -127,162 +127,110 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 networkmanagementclient/1.5.0rc1 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-09-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-09-01
response:
body: {string: '{"value":[]}'}
headers:
cache-control: [no-cache]
content-length: ['12']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 15:54:38 GMT']
+ date: ['Fri, 17 Nov 2017 17:01:48 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
- body: 'b''{"properties": {"mode": "Incremental", "parameters": {}, "template":
- {"variables": {}, "outputs": {}, "parameters": {}, "contentVersion": "1.0.0.0",
- "resources": [{"properties": {"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]},
- "subnets": [{"properties": {"addressPrefix": "10.0.0.0/24"}, "name": "vm1Subnet"}]},
- "apiVersion": "2015-06-15", "type": "Microsoft.Network/virtualNetworks", "dependsOn":
- [], "location": "westus", "tags": {}, "name": "vm1VNET"}, {"properties": {"securityRules":
- [{"properties": {"priority": 1000, "sourceAddressPrefix": "*", "access": "Allow",
- "destinationAddressPrefix": "*", "direction": "Inbound", "destinationPortRange":
- "22", "protocol": "Tcp", "sourcePortRange": "*"}, "name": "default-allow-ssh"}]},
- "apiVersion": "2015-06-15", "type": "Microsoft.Network/networkSecurityGroups",
- "name": "vm1NSG", "location": "westus", "tags": {}, "dependsOn": []}, {"properties":
- {"publicIPAllocationMethod": "dynamic"}, "apiVersion": "2017-09-01", "type":
- "Microsoft.Network/publicIPAddresses", "name": "vm1PublicIP", "location": "westus",
- "tags": {}, "dependsOn": []}, {"properties": {"networkSecurityGroup": {"id":
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG"},
- "ipConfigurations": [{"properties": {"privateIPAllocationMethod": "Dynamic",
- "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP"},
- "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}},
- "name": "ipconfigvm1"}]}, "apiVersion": "2015-06-15", "type": "Microsoft.Network/networkInterfaces",
- "name": "vm1VMNic", "location": "westus", "tags": {}, "dependsOn": ["Microsoft.Network/virtualNetworks/vm1VNET",
+ body: 'b''{"properties": {"parameters": {}, "mode": "Incremental", "template":
+ {"outputs": {}, "resources": [{"properties": {"addressSpace": {"addressPrefixes":
+ ["10.0.0.0/16"]}, "subnets": [{"name": "vm1Subnet", "properties": {"addressPrefix":
+ "10.0.0.0/24"}}]}, "location": "westus", "tags": {}, "apiVersion": "2015-06-15",
+ "name": "vm1VNET", "type": "Microsoft.Network/virtualNetworks", "dependsOn":
+ []}, {"properties": {"securityRules": [{"name": "default-allow-ssh", "properties":
+ {"sourcePortRange": "*", "sourceAddressPrefix": "*", "protocol": "Tcp", "destinationPortRange":
+ "22", "direction": "Inbound", "access": "Allow", "priority": 1000, "destinationAddressPrefix":
+ "*"}}]}, "location": "westus", "tags": {}, "apiVersion": "2015-06-15", "name":
+ "vm1NSG", "type": "Microsoft.Network/networkSecurityGroups", "dependsOn": []},
+ {"properties": {"publicIPAllocationMethod": "dynamic"}, "location": "westus",
+ "tags": {}, "apiVersion": "2017-09-01", "name": "vm1PublicIP", "type": "Microsoft.Network/publicIPAddresses",
+ "dependsOn": []}, {"properties": {"networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG"},
+ "ipConfigurations": [{"name": "ipconfigvm1", "properties": {"privateIPAllocationMethod":
+ "Dynamic", "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP"},
+ "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}}}]},
+ "location": "westus", "tags": {}, "apiVersion": "2015-06-15", "name": "vm1VMNic",
+ "type": "Microsoft.Network/networkInterfaces", "dependsOn": ["Microsoft.Network/virtualNetworks/vm1VNET",
"Microsoft.Network/networkSecurityGroups/vm1NSG", "Microsoft.Network/publicIpAddresses/vm1PublicIP"]},
- {"properties": {"type": "ManagedIdentityExtensionForLinux", "publisher": "Microsoft.ManagedIdentity",
- "autoUpgradeMinorVersion": true, "typeHandlerVersion": "1.0", "settings": {"port":
- 50342}}, "apiVersion": "2017-03-30", "type": "Microsoft.Compute/virtualMachines/extensions",
- "dependsOn": ["Microsoft.Compute/virtualMachines/vm1"], "location": "westus",
- "name": "vm1/ManagedIdentityExtensionForLinux"}, {"properties": {"hardwareProfile":
- {"vmSize": "Standard_DS1_v2"}, "storageProfile": {"osDisk": {"caching": null,
- "managedDisk": {"storageAccountType": null}, "name": null, "createOption": "fromImage"},
- "imageReference": {"offer": "Debian", "sku": "8", "publisher": "credativ", "version":
- "latest"}}, "networkProfile": {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"}]},
- "osProfile": {"computerName": "vm1", "adminPassword": "PasswordPassword1!",
- "adminUsername": "admin123"}}, "apiVersion": "2017-03-30", "type": "Microsoft.Compute/virtualMachines",
- "name": "vm1", "identity": {"type": "systemAssigned"}, "tags": {}, "location":
- "westus", "dependsOn": ["Microsoft.Network/networkInterfaces/vm1VMNic"]}], "$schema":
- "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#"}}}'''
+ {"location": "westus", "type": "Microsoft.Compute/virtualMachines/extensions",
+ "apiVersion": "2017-03-30", "name": "vm1/ManagedIdentityExtensionForLinux",
+ "properties": {"typeHandlerVersion": "1.0", "type": "ManagedIdentityExtensionForLinux",
+ "publisher": "Microsoft.ManagedIdentity", "autoUpgradeMinorVersion": true, "settings":
+ {"port": 50342}}, "dependsOn": ["Microsoft.Compute/virtualMachines/vm1"]}, {"identity":
+ {"type": "systemAssigned"}, "properties": {"osProfile": {"computerName": "vm1",
+ "adminPassword": "PasswordPassword1!", "adminUsername": "admin123"}, "storageProfile":
+ {"osDisk": {"managedDisk": {"storageAccountType": null}, "createOption": "fromImage",
+ "name": null, "caching": "ReadWrite"}, "imageReference": {"sku": "8", "version":
+ "latest", "offer": "Debian", "publisher": "credativ"}}, "networkProfile": {"networkInterfaces":
+ [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"}]},
+ "hardwareProfile": {"vmSize": "Standard_DS1_v2"}}, "location": "westus", "tags":
+ {}, "apiVersion": "2017-03-30", "name": "vm1", "type": "Microsoft.Compute/virtualMachines",
+ "dependsOn": ["Microsoft.Network/networkInterfaces/vm1VMNic"]}], "$schema":
+ "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
+ "contentVersion": "1.0.0.0", "parameters": {}, "variables": {}}}}'''
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
- Content-Length: ['3592']
+ Content-Length: ['3599']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_8aUzVovnq84vWbIUYIPM2NwADKe1vNhk","name":"vm_deploy_8aUzVovnq84vWbIUYIPM2NwADKe1vNhk","properties":{"templateHash":"13602725530236052121","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-09-19T15:54:41.365148Z","duration":"PT0.5787744S","correlationId":"dd02ee48-1258-4946-b087-b412ae40259e","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines/extensions","locations":["westus"]},{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1/extensions/ManagedIdentityExtensionForLinux","resourceType":"Microsoft.Compute/virtualMachines/extensions","resourceName":"vm1/ManagedIdentityExtensionForLinux"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}]}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/vm_deploy_KtVLRAJYPoeEz8huQJvtdj3BjNrCwFhP","name":"vm_deploy_KtVLRAJYPoeEz8huQJvtdj3BjNrCwFhP","properties":{"templateHash":"9159639473080655970","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-11-17T17:01:50.1715484Z","duration":"PT0.728864S","correlationId":"3511ffdb-d51a-4ed8-9067-adfe5c6cdb7e","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines/extensions","locations":["westus"]},{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachines/vm1/extensions/ManagedIdentityExtensionForLinux","resourceType":"Microsoft.Compute/virtualMachines/extensions","resourceName":"vm1/ManagedIdentityExtensionForLinux"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}]}}'}
headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_8aUzVovnq84vWbIUYIPM2NwADKe1vNhk/operationStatuses/08586957704046912599?api-version=2017-05-10']
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/vm_deploy_KtVLRAJYPoeEz8huQJvtdj3BjNrCwFhP/operationStatuses/08586906687760349488?api-version=2017-05-10']
cache-control: [no-cache]
- content-length: ['3416']
+ content-length: ['3415']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 15:54:40 GMT']
+ date: ['Fri, 17 Nov 2017 17:01:50 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1197']
+ x-ms-ratelimit-remaining-subscription-writes: ['1198']
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586957704046912599?api-version=2017-05-10
- response:
- body: {string: '{"status":"Running"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['20']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 15:55:11 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586957704046912599?api-version=2017-05-10
- response:
- body: {string: '{"status":"Running"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['20']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 15:55:41 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586957704046912599?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906687760349488?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 15:56:12 GMT']
+ date: ['Fri, 17 Nov 2017 17:02:19 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -293,22 +241,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586957704046912599?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906687760349488?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 15:56:42 GMT']
+ date: ['Fri, 17 Nov 2017 17:02:50 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -319,22 +267,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586957704046912599?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906687760349488?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 15:57:12 GMT']
+ date: ['Fri, 17 Nov 2017 17:03:20 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -345,22 +293,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586957704046912599?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906687760349488?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 15:57:43 GMT']
+ date: ['Fri, 17 Nov 2017 17:03:52 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -371,22 +319,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586957704046912599?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906687760349488?api-version=2017-05-10
response:
body: {string: '{"status":"Succeeded"}'}
headers:
cache-control: [no-cache]
content-length: ['22']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 15:58:13 GMT']
+ date: ['Fri, 17 Nov 2017 17:04:22 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -397,22 +345,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_8aUzVovnq84vWbIUYIPM2NwADKe1vNhk","name":"vm_deploy_8aUzVovnq84vWbIUYIPM2NwADKe1vNhk","properties":{"templateHash":"13602725530236052121","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-09-19T15:58:11.3995045Z","duration":"PT3M30.6131309S","correlationId":"dd02ee48-1258-4946-b087-b412ae40259e","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines/extensions","locations":["westus"]},{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1/extensions/ManagedIdentityExtensionForLinux","resourceType":"Microsoft.Compute/virtualMachines/extensions","resourceName":"vm1/ManagedIdentityExtensionForLinux"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1/extensions/ManagedIdentityExtensionForLinux"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET"}]}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/vm_deploy_KtVLRAJYPoeEz8huQJvtdj3BjNrCwFhP","name":"vm_deploy_KtVLRAJYPoeEz8huQJvtdj3BjNrCwFhP","properties":{"templateHash":"9159639473080655970","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-11-17T17:04:12.175397Z","duration":"PT2M22.7327126S","correlationId":"3511ffdb-d51a-4ed8-9067-adfe5c6cdb7e","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines/extensions","locations":["westus"]},{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachines/vm1/extensions/ManagedIdentityExtensionForLinux","resourceType":"Microsoft.Compute/virtualMachines/extensions","resourceName":"vm1/ManagedIdentityExtensionForLinux"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachines/vm1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachines/vm1/extensions/ManagedIdentityExtensionForLinux"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/virtualNetworks/vm1VNET"}]}}'}
headers:
cache-control: [no-cache]
- content-length: ['4728']
+ content-length: ['4726']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 15:58:13 GMT']
+ date: ['Fri, 17 Nov 2017 17:04:23 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -423,37 +371,37 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2017-03-30&$expand=instanceView
response:
- body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"f42e9229-e3db-4b5d-9486-311251348fba\"\
+ body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"5f51eb9d-f0b6-4526-b345-80f76aacb43e\"\
,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\
\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \
\ \"publisher\": \"credativ\",\r\n \"offer\": \"Debian\",\r\n\
\ \"sku\": \"8\",\r\n \"version\": \"latest\"\r\n },\r\n\
\ \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\"\
- : \"vm1_OsDisk_1_cb92ebdb0d8944b997de54e7f6531e89\",\r\n \"createOption\"\
+ : \"vm1_OsDisk_1_31459827b42748019c7351e376695332\",\r\n \"createOption\"\
: \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\"\
: {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n \"\
- id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_cb92ebdb0d8944b997de54e7f6531e89\"\
+ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_31459827b42748019c7351e376695332\"\
\r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\
: []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\"\
,\r\n \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\"\
: {\r\n \"disablePasswordAuthentication\": false\r\n },\r\n \
\ \"secrets\": []\r\n },\r\n \"networkProfile\": {\"networkInterfaces\"\
- :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\
+ :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\
}]},\r\n \"provisioningState\": \"Succeeded\",\r\n \"instanceView\"\
- : {\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.2.17\",\r\n\
+ : {\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.2.18\",\r\n\
\ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\
,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"\
Ready\",\r\n \"message\": \"Guest Agent is running\",\r\n \
- \ \"time\": \"2017-09-19T15:58:11+00:00\"\r\n }\r\n \
+ \ \"time\": \"2017-11-17T17:04:21+00:00\"\r\n }\r\n \
\ ],\r\n \"extensionHandlers\": [\r\n {\r\n \"\
type\": \"Microsoft.ManagedIdentity.ManagedIdentityExtensionForLinux\",\r\n\
\ \"typeHandlerVersion\": \"1.0.0.3\",\r\n \"status\"\
@@ -461,11 +409,11 @@ interactions:
\ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\"\
,\r\n \"message\": \"Plugin enabled\"\r\n }\r\n \
\ }\r\n ]\r\n },\r\n \"disks\": [\r\n {\r\n\
- \ \"name\": \"vm1_OsDisk_1_cb92ebdb0d8944b997de54e7f6531e89\",\r\n\
+ \ \"name\": \"vm1_OsDisk_1_31459827b42748019c7351e376695332\",\r\n\
\ \"statuses\": [\r\n {\r\n \"code\": \"\
ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n \
\ \"displayStatus\": \"Provisioning succeeded\",\r\n \
- \ \"time\": \"2017-09-19T15:55:13.4267534+00:00\"\r\n }\r\n\
+ \ \"time\": \"2017-11-17T17:02:17.2503758+00:00\"\r\n }\r\n\
\ ]\r\n }\r\n ],\r\n \"extensions\": [\r\n \
\ {\r\n \"name\": \"ManagedIdentityExtensionForLinux\",\r\n \
\ \"type\": \"Microsoft.ManagedIdentity.ManagedIdentityExtensionForLinux\"\
@@ -473,11 +421,11 @@ interactions:
: [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\
,\r\n \"level\": \"Info\",\r\n \"displayStatus\"\
: \"Provisioning succeeded\",\r\n \"message\": \"Successfully\
- \ started managed identity extension service. 2017-09-19 15:57:47.024245682\
+ \ started managed identity extension service. 2017-11-17 17:04:03.6279424\
\ +0000 UTC.\"\r\n }\r\n ]\r\n }\r\n ],\r\n\
\ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\
,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning\
- \ succeeded\",\r\n \"time\": \"2017-09-19T15:57:57.0666671+00:00\"\
+ \ succeeded\",\r\n \"time\": \"2017-11-17T17:04:09.6006209+00:00\"\
\r\n },\r\n {\r\n \"code\": \"PowerState/running\"\
,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\
\r\n }\r\n ]\r\n }\r\n },\r\n \"resources\": [\r\n {\r\
@@ -486,70 +434,71 @@ interactions:
typeHandlerVersion\": \"1.0\",\r\n \"autoUpgradeMinorVersion\": true,\r\
\n \"settings\": {\"port\":50342},\r\n \"provisioningState\"\
: \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachines/extensions\"\
- ,\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1/extensions/ManagedIdentityExtensionForLinux\"\
+ ,\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachines/vm1/extensions/ManagedIdentityExtensionForLinux\"\
,\r\n \"name\": \"ManagedIdentityExtensionForLinux\"\r\n }\r\n ],\r\
\n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"\
westus\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\
- ,\r\n \"principalId\": \"7b7a910a-0cf0-4855-a2ba-169f161a508b\",\r\n \
+ ,\r\n \"principalId\": \"dbc401a6-951a-40cf-9262-003dae974cd5\",\r\n \
\ \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n },\r\n \"\
- id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\"\
+ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachines/vm1\"\
,\r\n \"name\": \"vm1\"\r\n}"}
headers:
cache-control: [no-cache]
- content-length: ['4727']
+ content-length: ['4725']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 15:58:15 GMT']
+ date: ['Fri, 17 Nov 2017 17:04:23 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4984,Microsoft.Compute/LowCostGet30Min;39926']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 networkmanagementclient/1.5.0rc1 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic?api-version=2017-09-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic?api-version=2017-09-01
response:
- body: {string: "{\r\n \"name\": \"vm1VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\
- ,\r\n \"etag\": \"W/\\\"75c49e37-d3fb-4cae-8d03-f45b22c9643b\\\"\",\r\n \
+ body: {string: "{\r\n \"name\": \"vm1VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\
+ ,\r\n \"etag\": \"W/\\\"ecbbb927-6823-4c1b-a94b-9bbe54442344\\\"\",\r\n \
\ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n\
- \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"d995af38-aa20-46ab-b9d1-4659835af78a\"\
+ \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"b993f990-2aaa-4c69-92a9-dfa45b980673\"\
,\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm1\"\
- ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\
- ,\r\n \"etag\": \"W/\\\"75c49e37-d3fb-4cae-8d03-f45b22c9643b\\\"\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\
+ ,\r\n \"etag\": \"W/\\\"ecbbb927-6823-4c1b-a94b-9bbe54442344\\\"\"\
,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\
,\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\"\
: \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\":\
- \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP\"\
- \r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\
+ \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP\"\
+ \r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\
\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\"\
: \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n\
\ \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"\
- internalDomainNameSuffix\": \"k31ueburtocezltifwjjufx4oe.dx.internal.cloudapp.net\"\
- \r\n },\r\n \"macAddress\": \"00-0D-3A-30-4D-72\",\r\n \"enableAcceleratedNetworking\"\
+ internalDomainNameSuffix\": \"fn35rx0blbdehp4z33zbvfftsf.dx.internal.cloudapp.net\"\
+ \r\n },\r\n \"macAddress\": \"00-0D-3A-35-D2-B2\",\r\n \"enableAcceleratedNetworking\"\
: false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\"\
- : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG\"\
+ : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG\"\
\r\n },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachines/vm1\"\
\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\
\n}"}
headers:
cache-control: [no-cache]
content-length: ['2495']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 15:58:15 GMT']
- etag: [W/"75c49e37-d3fb-4cae-8d03-f45b22c9643b"]
+ date: ['Fri, 17 Nov 2017 17:04:24 GMT']
+ etag: [W/"ecbbb927-6823-4c1b-a94b-9bbe54442344"]
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@@ -562,31 +511,31 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 networkmanagementclient/1.5.0rc1 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP?api-version=2017-09-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP?api-version=2017-09-01
response:
- body: {string: "{\r\n \"name\": \"vm1PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP\"\
- ,\r\n \"etag\": \"W/\\\"33792bcb-9494-47c3-8346-69bb825fe010\\\"\",\r\n \
+ body: {string: "{\r\n \"name\": \"vm1PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP\"\
+ ,\r\n \"etag\": \"W/\\\"ca71e1d2-76ac-47cf-80c6-00c210732772\\\"\",\r\n \
\ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n\
- \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"c62d08b9-2ae2-4735-a13c-2c2368c50a6d\"\
- ,\r\n \"ipAddress\": \"40.86.179.72\",\r\n \"publicIPAddressVersion\"\
+ \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"33ca9169-b977-43db-aeed-1e5dc21f869f\"\
+ ,\r\n \"ipAddress\": \"40.83.213.109\",\r\n \"publicIPAddressVersion\"\
: \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\"\
- : 4,\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\
+ : 4,\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\
\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\
\n \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"}
headers:
cache-control: [no-cache]
- content-length: ['977']
+ content-length: ['978']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 15:58:15 GMT']
- etag: [W/"33792bcb-9494-47c3-8346-69bb825fe010"]
+ date: ['Fri, 17 Nov 2017 17:04:25 GMT']
+ etag: [W/"ca71e1d2-76ac-47cf-80c6-00c210732772"]
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@@ -599,78 +548,79 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm extension list]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2017-03-30
response:
- body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"f42e9229-e3db-4b5d-9486-311251348fba\"\
+ body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"5f51eb9d-f0b6-4526-b345-80f76aacb43e\"\
,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\
\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \
\ \"publisher\": \"credativ\",\r\n \"offer\": \"Debian\",\r\n\
\ \"sku\": \"8\",\r\n \"version\": \"latest\"\r\n },\r\n\
\ \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\"\
- : \"vm1_OsDisk_1_cb92ebdb0d8944b997de54e7f6531e89\",\r\n \"createOption\"\
+ : \"vm1_OsDisk_1_31459827b42748019c7351e376695332\",\r\n \"createOption\"\
: \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\"\
: {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n \"\
- id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_cb92ebdb0d8944b997de54e7f6531e89\"\
+ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_31459827b42748019c7351e376695332\"\
\r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\
: []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\"\
,\r\n \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\"\
: {\r\n \"disablePasswordAuthentication\": false\r\n },\r\n \
\ \"secrets\": []\r\n },\r\n \"networkProfile\": {\"networkInterfaces\"\
- :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\
+ :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"\
}]},\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"resources\"\
: [\r\n {\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.ManagedIdentity\"\
,\r\n \"type\": \"ManagedIdentityExtensionForLinux\",\r\n \"\
typeHandlerVersion\": \"1.0\",\r\n \"autoUpgradeMinorVersion\": true,\r\
\n \"settings\": {\"port\":50342},\r\n \"provisioningState\"\
: \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachines/extensions\"\
- ,\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1/extensions/ManagedIdentityExtensionForLinux\"\
+ ,\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachines/vm1/extensions/ManagedIdentityExtensionForLinux\"\
,\r\n \"name\": \"ManagedIdentityExtensionForLinux\"\r\n }\r\n ],\r\
\n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"\
westus\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\
- ,\r\n \"principalId\": \"7b7a910a-0cf0-4855-a2ba-169f161a508b\",\r\n \
+ ,\r\n \"principalId\": \"dbc401a6-951a-40cf-9262-003dae974cd5\",\r\n \
\ \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n },\r\n \"\
- id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\"\
+ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachines/vm1\"\
,\r\n \"name\": \"vm1\"\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['2606']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 15:58:15 GMT']
+ date: ['Fri, 17 Nov 2017 17:04:25 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4983,Microsoft.Compute/LowCostGet30Min;39925']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001?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"}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001","name":"cli_test_msi_no_scope000001","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, 19 Sep 2017 15:58:15 GMT']
+ date: ['Fri, 17 Nov 2017 17:04:25 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -726,24 +676,24 @@ interactions:
cache-control: [max-age=300]
connection: [close]
content-length: ['2235']
- content-security-policy: [default-src 'none'; style-src 'unsafe-inline']
+ content-security-policy: [default-src 'none'; style-src 'unsafe-inline'; sandbox]
content-type: [text/plain; charset=utf-8]
- date: ['Tue, 19 Sep 2017 15:58:16 GMT']
+ date: ['Fri, 17 Nov 2017 17:04:26 GMT']
etag: ['"d6824855d13e27c5258a680eb60f635d088fd05e"']
- expires: ['Tue, 19 Sep 2017 16:03:16 GMT']
- source-age: ['253']
+ expires: ['Fri, 17 Nov 2017 17:09:26 GMT']
+ source-age: ['0']
strict-transport-security: [max-age=31536000]
vary: ['Authorization,Accept-Encoding']
via: [1.1 varnish]
- x-cache: [HIT]
- x-cache-hits: ['1']
+ x-cache: [MISS]
+ x-cache-hits: ['0']
x-content-type-options: [nosniff]
- x-fastly-request-id: [2b21c4815903d5cc049333264a1ea683b9e71142]
+ x-fastly-request-id: [72ff38693760abbef7c3d8efe159e09cb3842c55]
x-frame-options: [deny]
x-geo-block-list: ['']
- x-github-request-id: ['81F8:28E1F:35FDBD4:3950BA6:59C13D9B']
- x-served-by: [cache-dfw18633-DFW]
- x-timer: ['S1505836696.397556,VS0,VE1']
+ x-github-request-id: ['7E70:22BFE:400422:4483A6:5A0F1699']
+ x-served-by: [cache-mdw17349-MDW]
+ x-timer: ['S1510938266.280320,VS0,VE43']
x-xss-protection: [1; mode=block]
status: {code: 200, message: OK}
- request:
@@ -751,31 +701,31 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 networkmanagementclient/1.5.0rc1 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-09-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-09-01
response:
body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vm1VNET\",\r\
- \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET\"\
- ,\r\n \"etag\": \"W/\\\"02661547-f7ab-4361-8cf3-47b5e681bb2a\\\"\",\r\
+ \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/virtualNetworks/vm1VNET\"\
+ ,\r\n \"etag\": \"W/\\\"bfdfd36d-05b1-40b6-b286-7512b5297671\\\"\",\r\
\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\"\
: \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \
- \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"06427757-9b91-4c84-ae68-2d929a16fe74\"\
+ \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"dff87b2b-5841-4346-bfd9-ef721a94b395\"\
,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \
\ \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\"\
: [\r\n {\r\n \"name\": \"vm1Subnet\",\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\
- ,\r\n \"etag\": \"W/\\\"02661547-f7ab-4361-8cf3-47b5e681bb2a\\\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\
+ ,\r\n \"etag\": \"W/\\\"bfdfd36d-05b1-40b6-b286-7512b5297671\\\"\
\",\r\n \"properties\": {\r\n \"provisioningState\"\
: \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n\
\ \"ipConfigurations\": [\r\n {\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\
\r\n }\r\n ]\r\n }\r\n }\r\
\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\
: false,\r\n \"enableVmProtection\": false\r\n }\r\n }\r\n\
@@ -784,7 +734,7 @@ interactions:
cache-control: [no-cache]
content-length: ['1684']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 15:58:15 GMT']
+ date: ['Fri, 17 Nov 2017 17:04:26 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@@ -793,86 +743,87 @@ interactions:
vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
- body: 'b''{"properties": {"mode": "Incremental", "parameters": {}, "template":
- {"variables": {}, "outputs": {"VMSS": {"value": "[reference(resourceId(\''Microsoft.Compute/virtualMachineScaleSets\'',
+ body: 'b''{"properties": {"parameters": {}, "mode": "Incremental", "template":
+ {"outputs": {"VMSS": {"value": "[reference(resourceId(\''Microsoft.Compute/virtualMachineScaleSets\'',
\''vmss1\''),providers(\''Microsoft.Compute\'', \''virtualMachineScaleSets\'').apiVersions[0])]",
- "type": "object"}}, "parameters": {}, "contentVersion": "1.0.0.0", "resources":
- [{"properties": {"publicIPAllocationMethod": "Dynamic"}, "apiVersion": "2017-09-01",
- "type": "Microsoft.Network/publicIPAddresses", "name": "vmss1LBPublicIP", "location":
- "westus", "tags": {}, "sku": {"name": "Basic"}, "dependsOn": []}, {"properties":
- {"frontendIPConfigurations": [{"properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP"}},
- "name": "loadBalancerFrontEnd"}], "backendAddressPools": [{"name": "vmss1LBBEPool"}],
- "inboundNatPools": [{"properties": {"frontendPortRangeStart": "50000", "frontendPortRangeEnd":
- "50119", "backendPort": 22, "protocol": "tcp", "frontendIPConfiguration": {"id":
- "[concat(resourceId(\''Microsoft.Network/loadBalancers\'', \''vmss1LB\''), \''/frontendIPConfigurations/\'',
- \''loadBalancerFrontEnd\'')]"}}, "name": "vmss1LBNatPool"}]}, "apiVersion":
- "2017-09-01", "type": "Microsoft.Network/loadBalancers", "name": "vmss1LB",
- "location": "westus", "tags": {}, "sku": {"name": "Basic"}, "dependsOn": ["Microsoft.Network/publicIpAddresses/vmss1LBPublicIP"]},
- {"properties": {"singlePlacementGroup": true, "upgradePolicy": {"mode": "Manual"},
- "overprovision": true, "virtualMachineProfile": {"extensionProfile": {"extensions":
- [{"properties": {"type": "ManagedIdentityExtensionForLinux", "publisher": "Microsoft.ManagedIdentity",
- "autoUpgradeMinorVersion": true, "typeHandlerVersion": "1.0", "settings": {"port":
- 50342}}, "name": "ManagedIdentityExtensionForLinux"}]}, "storageProfile": {"osDisk":
- {"caching": "ReadWrite", "managedDisk": {"storageAccountType": null}, "createOption":
- "FromImage"}, "imageReference": {"offer": "Debian", "sku": "8", "publisher":
- "credativ", "version": "latest"}}, "osProfile": {"adminUsername": "admin123",
- "computerNamePrefix": "vmss1ac58", "adminPassword": "PasswordPassword1!"}, "networkProfile":
- {"networkInterfaceConfigurations": [{"properties": {"primary": "true", "ipConfigurations":
- [{"properties": {"loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool"}],
- "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool"}],
- "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}},
- "name": "vmss1ac58IPConfig"}]}, "name": "vmss1ac58Nic"}]}}}, "identity": {"type":
- "systemAssigned"}, "type": "Microsoft.Compute/virtualMachineScaleSets", "name":
- "vmss1", "apiVersion": "2017-03-30", "tags": {}, "sku": {"tier": "Standard",
- "name": "Standard_D1_v2", "capacity": 2}, "location": "westus", "dependsOn":
- ["Microsoft.Network/loadBalancers/vmss1LB"]}], "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#"}}}'''
+ "type": "object"}}, "resources": [{"properties": {"publicIPAllocationMethod":
+ "Dynamic"}, "sku": {"name": "Basic"}, "location": "westus", "tags": {}, "apiVersion":
+ "2017-09-01", "name": "vmss1LBPublicIP", "type": "Microsoft.Network/publicIPAddresses",
+ "dependsOn": []}, {"properties": {"inboundNatPools": [{"name": "vmss1LBNatPool",
+ "properties": {"frontendIPConfiguration": {"id": "[concat(resourceId(\''Microsoft.Network/loadBalancers\'',
+ \''vmss1LB\''), \''/frontendIPConfigurations/\'', \''loadBalancerFrontEnd\'')]"},
+ "protocol": "tcp", "frontendPortRangeStart": "50000", "frontendPortRangeEnd":
+ "50119", "backendPort": 22}}], "frontendIPConfigurations": [{"name": "loadBalancerFrontEnd",
+ "properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP"}}}],
+ "backendAddressPools": [{"name": "vmss1LBBEPool"}]}, "sku": {"name": "Basic"},
+ "location": "westus", "tags": {}, "apiVersion": "2017-09-01", "name": "vmss1LB",
+ "type": "Microsoft.Network/loadBalancers", "dependsOn": ["Microsoft.Network/publicIpAddresses/vmss1LBPublicIP"]},
+ {"identity": {"type": "systemAssigned"}, "properties": {"singlePlacementGroup":
+ true, "overprovision": true, "virtualMachineProfile": {"osProfile": {"computerNamePrefix":
+ "vmss1861e", "adminPassword": "PasswordPassword1!", "adminUsername": "admin123"},
+ "storageProfile": {"osDisk": {"managedDisk": {"storageAccountType": null}, "createOption":
+ "FromImage", "caching": "ReadWrite"}, "imageReference": {"sku": "8", "version":
+ "latest", "offer": "Debian", "publisher": "credativ"}}, "extensionProfile":
+ {"extensions": [{"name": "ManagedIdentityExtensionForLinux", "properties": {"typeHandlerVersion":
+ "1.0", "type": "ManagedIdentityExtensionForLinux", "publisher": "Microsoft.ManagedIdentity",
+ "autoUpgradeMinorVersion": true, "settings": {"port": 50342}}}]}, "networkProfile":
+ {"networkInterfaceConfigurations": [{"name": "vmss1861eNic", "properties": {"ipConfigurations":
+ [{"name": "vmss1861eIPConfig", "properties": {"loadBalancerBackendAddressPools":
+ [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool"}],
+ "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool"}],
+ "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}}}],
+ "primary": "true"}}]}}, "upgradePolicy": {"mode": "Manual"}}, "sku": {"name":
+ "Standard_D1_v2", "capacity": 2}, "location": "westus", "apiVersion": "2017-03-30",
+ "tags": {}, "name": "vmss1", "type": "Microsoft.Compute/virtualMachineScaleSets",
+ "dependsOn": ["Microsoft.Network/loadBalancers/vmss1LB"]}], "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
+ "contentVersion": "1.0.0.0", "parameters": {}, "variables": {}}}}'''
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
- Content-Length: ['3639']
+ Content-Length: ['3619']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vmss_deploy_GBie3ZTWdNQSBfqugDuTtl40kpk5KsYN","name":"vmss_deploy_GBie3ZTWdNQSBfqugDuTtl40kpk5KsYN","properties":{"templateHash":"3576149365839822156","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-09-19T15:58:17.7220103Z","duration":"PT0.3789029S","correlationId":"4c98a57e-2078-4057-94a7-cb38a3026b2d","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}]}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/vmss_deploy_ublEd0azm4Vn4yKanoYE7UZooVsEdr4R","name":"vmss_deploy_ublEd0azm4Vn4yKanoYE7UZooVsEdr4R","properties":{"templateHash":"4000864377221938431","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-11-17T17:04:28.2916173Z","duration":"PT0.6343609S","correlationId":"eab7ec03-768a-40ca-8db8-db12defd5a25","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}]}}'}
headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vmss_deploy_GBie3ZTWdNQSBfqugDuTtl40kpk5KsYN/operationStatuses/08586957701881345106?api-version=2017-05-10']
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/vmss_deploy_ublEd0azm4Vn4yKanoYE7UZooVsEdr4R/operationStatuses/08586906686178203693?api-version=2017-05-10']
cache-control: [no-cache]
content-length: ['2025']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 15:58:17 GMT']
+ date: ['Fri, 17 Nov 2017 17:04:27 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1199']
+ x-ms-ratelimit-remaining-subscription-writes: ['1198']
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586957701881345106?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906686178203693?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 15:58:48 GMT']
+ date: ['Fri, 17 Nov 2017 17:04:58 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -883,22 +834,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586957701881345106?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906686178203693?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 15:59:17 GMT']
+ date: ['Fri, 17 Nov 2017 17:05:28 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -909,22 +860,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586957701881345106?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906686178203693?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 15:59:47 GMT']
+ date: ['Fri, 17 Nov 2017 17:05:58 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -935,22 +886,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586957701881345106?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906686178203693?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:00:18 GMT']
+ date: ['Fri, 17 Nov 2017 17:06:29 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -961,22 +912,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586957701881345106?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906686178203693?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:00:48 GMT']
+ date: ['Fri, 17 Nov 2017 17:07:00 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -987,22 +938,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586957701881345106?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906686178203693?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:01:18 GMT']
+ date: ['Fri, 17 Nov 2017 17:07:30 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -1013,22 +964,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586957701881345106?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906686178203693?api-version=2017-05-10
response:
body: {string: '{"status":"Succeeded"}'}
headers:
cache-control: [no-cache]
content-length: ['22']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:01:49 GMT']
+ date: ['Fri, 17 Nov 2017 17:08:00 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -1039,22 +990,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vmss_deploy_GBie3ZTWdNQSBfqugDuTtl40kpk5KsYN","name":"vmss_deploy_GBie3ZTWdNQSBfqugDuTtl40kpk5KsYN","properties":{"templateHash":"3576149365839822156","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-09-19T16:01:31.1970835Z","duration":"PT3M13.8539761S","correlationId":"4c98a57e-2078-4057-94a7-cb38a3026b2d","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual"},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmss1ac58","adminUsername":"admin123","linuxConfiguration":{"disablePasswordAuthentication":false},"secrets":[]},"storageProfile":{"osDisk":{"createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Standard_LRS"}},"imageReference":{"publisher":"credativ","offer":"Debian","sku":"8","version":"latest"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vmss1ac58Nic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"ipConfigurations":[{"name":"vmss1ac58IPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool"}]}}]}}]},"extensionProfile":{"extensions":[{"properties":{"publisher":"Microsoft.ManagedIdentity","type":"ManagedIdentityExtensionForLinux","typeHandlerVersion":"1.0","autoUpgradeMinorVersion":true,"settings":{"port":50342}},"name":"ManagedIdentityExtensionForLinux"}]}},"provisioningState":"Succeeded","overprovision":true,"uniqueId":"c6c39098-6a27-4681-b1e7-1032b8fadce0"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP"}]}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/vmss_deploy_ublEd0azm4Vn4yKanoYE7UZooVsEdr4R","name":"vmss_deploy_ublEd0azm4Vn4yKanoYE7UZooVsEdr4R","properties":{"templateHash":"4000864377221938431","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-11-17T17:07:30.8427645Z","duration":"PT3M3.1855081S","correlationId":"eab7ec03-768a-40ca-8db8-db12defd5a25","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual","automaticOSUpgrade":false},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmss1861e","adminUsername":"admin123","linuxConfiguration":{"disablePasswordAuthentication":false},"secrets":[]},"storageProfile":{"osDisk":{"createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Standard_LRS"}},"imageReference":{"publisher":"credativ","offer":"Debian","sku":"8","version":"latest"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vmss1861eNic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"ipConfigurations":[{"name":"vmss1861eIPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool"}]}}]}}]},"extensionProfile":{"extensions":[{"properties":{"publisher":"Microsoft.ManagedIdentity","type":"ManagedIdentityExtensionForLinux","typeHandlerVersion":"1.0","autoUpgradeMinorVersion":true,"settings":{"port":50342}},"name":"ManagedIdentityExtensionForLinux"}]}},"provisioningState":"Succeeded","overprovision":true,"uniqueId":"5d44805b-37eb-47ed-ae3f-0441878c23ac"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/loadBalancers/vmss1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP"}]}}'}
headers:
cache-control: [no-cache]
- content-length: ['4583']
+ content-length: ['4609']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:01:49 GMT']
+ date: ['Fri, 17 Nov 2017 17:08:01 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -1065,36 +1016,36 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss extension list]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1?api-version=2017-03-30
response:
body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \
\ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\"\
: {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n\
- \ \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\
- \n \"osProfile\": {\r\n \"computerNamePrefix\": \"vmss1ac58\"\
- ,\r\n \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\"\
- : {\r\n \"disablePasswordAuthentication\": false\r\n },\r\n\
- \ \"secrets\": []\r\n },\r\n \"storageProfile\": {\r\n \
- \ \"osDisk\": {\r\n \"createOption\": \"FromImage\",\r\n \
- \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n \
- \ \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n \
- \ },\r\n \"imageReference\": {\r\n \"publisher\": \"credativ\"\
- ,\r\n \"offer\": \"Debian\",\r\n \"sku\": \"8\",\r\n \
- \ \"version\": \"latest\"\r\n }\r\n },\r\n \"networkProfile\"\
- : {\"networkInterfaceConfigurations\":[{\"name\":\"vmss1ac58Nic\",\"properties\"\
- :{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"\
- dnsServers\":[]},\"ipConfigurations\":[{\"name\":\"vmss1ac58IPConfig\",\"\
- properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\
+ \ \"mode\": \"Manual\",\r\n \"automaticOSUpgrade\": false\r\n \
+ \ },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \
+ \ \"computerNamePrefix\": \"vmss1861e\",\r\n \"adminUsername\"\
+ : \"admin123\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\"\
+ : false\r\n },\r\n \"secrets\": []\r\n },\r\n \"storageProfile\"\
+ : {\r\n \"osDisk\": {\r\n \"createOption\": \"FromImage\"\
+ ,\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\
+ \n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n\
+ \ },\r\n \"imageReference\": {\r\n \"publisher\": \"\
+ credativ\",\r\n \"offer\": \"Debian\",\r\n \"sku\": \"8\"\
+ ,\r\n \"version\": \"latest\"\r\n }\r\n },\r\n \"\
+ networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"vmss1861eNic\"\
+ ,\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"\
+ dnsSettings\":{\"dnsServers\":[]},\"ipConfigurations\":[{\"name\":\"vmss1861eIPConfig\"\
+ ,\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\
},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\"\
- :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool\"\
- }],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool\"\
+ :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool\"\
+ }],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool\"\
}]}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\
\n {\r\n \"properties\": {\r\n \"publisher\"\
: \"Microsoft.ManagedIdentity\",\r\n \"type\": \"ManagedIdentityExtensionForLinux\"\
@@ -1102,46 +1053,47 @@ interactions:
: true,\r\n \"settings\": {\"port\":50342}\r\n },\r\
\n \"name\": \"ManagedIdentityExtensionForLinux\"\r\n \
\ }\r\n ]\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\"\
- ,\r\n \"overprovision\": true,\r\n \"uniqueId\": \"c6c39098-6a27-4681-b1e7-1032b8fadce0\"\
+ ,\r\n \"overprovision\": true,\r\n \"uniqueId\": \"5d44805b-37eb-47ed-ae3f-0441878c23ac\"\
\r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n\
\ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \
- \ \"type\": \"SystemAssigned\",\r\n \"principalId\": \"d04a507a-8151-48ef-91fb-88234c4217e7\"\
+ \ \"type\": \"SystemAssigned\",\r\n \"principalId\": \"1d67a97f-6081-4986-96d0-49eda8ecf8f4\"\
,\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n },\r\n\
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1\"\
,\r\n \"name\": \"vmss1\"\r\n}"}
headers:
cache-control: [no-cache]
- content-length: ['3004']
+ content-length: ['3040']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:01:50 GMT']
+ date: ['Fri, 17 Nov 2017 17:08:03 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetVMScaleSet3Min;234,Microsoft.Compute/GetVMScaleSet30Min;1128']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001?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"}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001","name":"cli_test_msi_no_scope000001","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, 19 Sep 2017 16:01:49 GMT']
+ date: ['Fri, 17 Nov 2017 17:08:03 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -1197,24 +1149,24 @@ interactions:
cache-control: [max-age=300]
connection: [close]
content-length: ['2235']
- content-security-policy: [default-src 'none'; style-src 'unsafe-inline']
+ content-security-policy: [default-src 'none'; style-src 'unsafe-inline'; sandbox]
content-type: [text/plain; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:01:50 GMT']
+ date: ['Fri, 17 Nov 2017 17:08:03 GMT']
etag: ['"d6824855d13e27c5258a680eb60f635d088fd05e"']
- expires: ['Tue, 19 Sep 2017 16:06:50 GMT']
- source-age: ['104']
+ expires: ['Fri, 17 Nov 2017 17:13:03 GMT']
+ source-age: ['218']
strict-transport-security: [max-age=31536000]
vary: ['Authorization,Accept-Encoding']
via: [1.1 varnish]
x-cache: [HIT]
x-cache-hits: ['1']
x-content-type-options: [nosniff]
- x-fastly-request-id: [fc20261860e584ce1888fba3b70fa1de590dcf6e]
+ x-fastly-request-id: [4ee7ecea55182277ac5b4d39d8194a9b6bbe124c]
x-frame-options: [deny]
x-geo-block-list: ['']
- x-github-request-id: ['816A:2F967:38F9931:3D2E681:59C13F06']
- x-served-by: [cache-sea1036-SEA]
- x-timer: ['S1505836911.706851,VS0,VE0']
+ x-github-request-id: ['7E70:22BFE:400422:4483A6:5A0F1699']
+ x-served-by: [cache-mdw17350-MDW]
+ x-timer: ['S1510938484.946533,VS0,VE1']
x-xss-protection: [1; mode=block]
status: {code: 200, message: OK}
- request:
@@ -1222,48 +1174,44 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 networkmanagementclient/1.5.0rc1 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-09-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-09-01
response:
body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vm1VNET\",\r\
- \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET\"\
- ,\r\n \"etag\": \"W/\\\"35a05b83-b40d-402a-b400-2f1b1b70a477\\\"\",\r\
+ \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/virtualNetworks/vm1VNET\"\
+ ,\r\n \"etag\": \"W/\\\"cf5ddcf5-a5a8-411e-8f07-7a76a7c77e53\\\"\",\r\
\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\"\
: \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \
- \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"06427757-9b91-4c84-ae68-2d929a16fe74\"\
+ \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"dff87b2b-5841-4346-bfd9-ef721a94b395\"\
,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \
\ \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\"\
: [\r\n {\r\n \"name\": \"vm1Subnet\",\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\
- ,\r\n \"etag\": \"W/\\\"35a05b83-b40d-402a-b400-2f1b1b70a477\\\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\
+ ,\r\n \"etag\": \"W/\\\"cf5ddcf5-a5a8-411e-8f07-7a76a7c77e53\\\"\
\",\r\n \"properties\": {\r\n \"provisioningState\"\
: \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n\
\ \"ipConfigurations\": [\r\n {\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\
- \r\n },\r\n {\r\n \"id\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/0/networkInterfaces/vmss1ac58Nic/ipConfigurations/vmss1ac58IPConfig\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\
\r\n },\r\n {\r\n \"id\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/networkInterfaces/vmss1ac58Nic/ipConfigurations/vmss1ac58IPConfig\"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/0/networkInterfaces/vmss1861eNic/ipConfigurations/vmss1861eIPConfig\"\
\r\n },\r\n {\r\n \"id\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/2/networkInterfaces/vmss1ac58Nic/ipConfigurations/vmss1ac58IPConfig\"\
- \r\n },\r\n {\r\n \"id\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/3/networkInterfaces/vmss1ac58Nic/ipConfigurations/vmss1ac58IPConfig\"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/3/networkInterfaces/vmss1861eNic/ipConfigurations/vmss1861eIPConfig\"\
\r\n }\r\n ]\r\n }\r\n }\r\
\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\
: false,\r\n \"enableVmProtection\": false\r\n }\r\n }\r\n\
\ ]\r\n}"}
headers:
cache-control: [no-cache]
- content-length: ['3088']
+ content-length: ['2386']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:01:49 GMT']
+ date: ['Fri, 17 Nov 2017 17:08:03 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@@ -1272,52 +1220,53 @@ interactions:
vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
- body: 'b''{"properties": {"mode": "Incremental", "parameters": {}, "template":
- {"variables": {}, "outputs": {}, "parameters": {}, "contentVersion": "1.0.0.0",
- "resources": [{"properties": {"securityRules": [{"properties": {"priority":
- 1000, "sourceAddressPrefix": "*", "access": "Allow", "destinationAddressPrefix":
- "*", "direction": "Inbound", "destinationPortRange": "22", "protocol": "Tcp",
- "sourcePortRange": "*"}, "name": "default-allow-ssh"}]}, "apiVersion": "2015-06-15",
- "type": "Microsoft.Network/networkSecurityGroups", "name": "vm2NSG", "location":
- "westus", "tags": {}, "dependsOn": []}, {"properties": {"publicIPAllocationMethod":
- "dynamic"}, "apiVersion": "2017-09-01", "type": "Microsoft.Network/publicIPAddresses",
- "name": "vm2PublicIP", "location": "westus", "tags": {}, "dependsOn": []}, {"properties":
- {"networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm2NSG"},
- "ipConfigurations": [{"properties": {"privateIPAllocationMethod": "Dynamic",
- "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP"},
- "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}},
- "name": "ipconfigvm2"}]}, "apiVersion": "2015-06-15", "type": "Microsoft.Network/networkInterfaces",
- "name": "vm2VMNic", "location": "westus", "tags": {}, "dependsOn": ["Microsoft.Network/networkSecurityGroups/vm2NSG",
- "Microsoft.Network/publicIpAddresses/vm2PublicIP"]}, {"properties": {"hardwareProfile":
- {"vmSize": "Standard_DS1_v2"}, "storageProfile": {"osDisk": {"caching": null,
- "managedDisk": {"storageAccountType": null}, "name": null, "createOption": "fromImage"},
- "imageReference": {"offer": "Debian", "sku": "8", "publisher": "credativ", "version":
- "latest"}}, "networkProfile": {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic"}]},
- "osProfile": {"computerName": "vm2", "adminPassword": "PasswordPassword1!",
- "adminUsername": "admin123"}}, "apiVersion": "2017-03-30", "type": "Microsoft.Compute/virtualMachines",
- "name": "vm2", "location": "westus", "tags": {}, "dependsOn": ["Microsoft.Network/networkInterfaces/vm2VMNic"]}],
- "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#"}}}'''
+ body: 'b''{"properties": {"parameters": {}, "mode": "Incremental", "template":
+ {"outputs": {}, "resources": [{"properties": {"securityRules": [{"name": "default-allow-ssh",
+ "properties": {"sourcePortRange": "*", "sourceAddressPrefix": "*", "protocol":
+ "Tcp", "destinationPortRange": "22", "direction": "Inbound", "access": "Allow",
+ "priority": 1000, "destinationAddressPrefix": "*"}}]}, "location": "westus",
+ "tags": {}, "apiVersion": "2015-06-15", "name": "vm2NSG", "type": "Microsoft.Network/networkSecurityGroups",
+ "dependsOn": []}, {"properties": {"publicIPAllocationMethod": "dynamic"}, "location":
+ "westus", "tags": {}, "apiVersion": "2017-09-01", "name": "vm2PublicIP", "type":
+ "Microsoft.Network/publicIPAddresses", "dependsOn": []}, {"properties": {"networkSecurityGroup":
+ {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkSecurityGroups/vm2NSG"},
+ "ipConfigurations": [{"name": "ipconfigvm2", "properties": {"privateIPAllocationMethod":
+ "Dynamic", "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP"},
+ "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}}}]},
+ "location": "westus", "tags": {}, "apiVersion": "2015-06-15", "name": "vm2VMNic",
+ "type": "Microsoft.Network/networkInterfaces", "dependsOn": ["Microsoft.Network/networkSecurityGroups/vm2NSG",
+ "Microsoft.Network/publicIpAddresses/vm2PublicIP"]}, {"properties": {"osProfile":
+ {"computerName": "vm2", "adminPassword": "PasswordPassword1!", "adminUsername":
+ "admin123"}, "storageProfile": {"osDisk": {"managedDisk": {"storageAccountType":
+ null}, "createOption": "fromImage", "name": null, "caching": "ReadWrite"}, "imageReference":
+ {"sku": "8", "version": "latest", "offer": "Debian", "publisher": "credativ"}},
+ "networkProfile": {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic"}]},
+ "hardwareProfile": {"vmSize": "Standard_DS1_v2"}}, "location": "westus", "tags":
+ {}, "apiVersion": "2017-03-30", "name": "vm2", "type": "Microsoft.Compute/virtualMachines",
+ "dependsOn": ["Microsoft.Network/networkInterfaces/vm2VMNic"]}], "$schema":
+ "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
+ "contentVersion": "1.0.0.0", "parameters": {}, "variables": {}}}}'''
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
- Content-Length: ['2803']
+ Content-Length: ['2810']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_qlJnexJX8LaUvwg7pwZE5DIbW1ffY2uO","name":"vm_deploy_qlJnexJX8LaUvwg7pwZE5DIbW1ffY2uO","properties":{"templateHash":"11422490441026694987","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-09-19T16:01:51.9512916Z","duration":"PT0.2310802S","correlationId":"38afa52e-3dfc-4ac1-a305-ed02a449c475","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm2NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm2NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm2PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm2VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm2VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm2"}]}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/vm_deploy_x6lSMKo0yRHFHt0SQIYsaJweIZgAG6RH","name":"vm_deploy_x6lSMKo0yRHFHt0SQIYsaJweIZgAG6RH","properties":{"templateHash":"7875658250030451553","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-11-17T17:08:05.8864542Z","duration":"PT0.6384442S","correlationId":"a75aaf96-dad0-4090-b359-697c92283ac9","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkSecurityGroups/vm2NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm2NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm2PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm2VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm2VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachines/vm2","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm2"}]}}'}
headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_qlJnexJX8LaUvwg7pwZE5DIbW1ffY2uO/operationStatuses/08586957699737574141?api-version=2017-05-10']
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/vm_deploy_x6lSMKo0yRHFHt0SQIYsaJweIZgAG6RH/operationStatuses/08586906684002296126?api-version=2017-05-10']
cache-control: [no-cache]
- content-length: ['2364']
+ content-length: ['2363']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:01:51 GMT']
+ date: ['Fri, 17 Nov 2017 17:08:05 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -1328,22 +1277,48 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906684002296126?api-version=2017-05-10
+ response:
+ body: {string: '{"status":"Running"}'}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['20']
+ content-type: [application/json; charset=utf-8]
+ date: ['Fri, 17 Nov 2017 17:08:36 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ vary: [Accept-Encoding]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586957699737574141?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906684002296126?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:02:22 GMT']
+ date: ['Fri, 17 Nov 2017 17:09:06 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -1354,22 +1329,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586957699737574141?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906684002296126?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:02:52 GMT']
+ date: ['Fri, 17 Nov 2017 17:09:37 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -1380,22 +1355,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586957699737574141?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906684002296126?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:03:22 GMT']
+ date: ['Fri, 17 Nov 2017 17:10:07 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -1406,22 +1381,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586957699737574141?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906684002296126?api-version=2017-05-10
response:
body: {string: '{"status":"Succeeded"}'}
headers:
cache-control: [no-cache]
content-length: ['22']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:03:53 GMT']
+ date: ['Fri, 17 Nov 2017 17:10:38 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -1432,22 +1407,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_qlJnexJX8LaUvwg7pwZE5DIbW1ffY2uO","name":"vm_deploy_qlJnexJX8LaUvwg7pwZE5DIbW1ffY2uO","properties":{"templateHash":"11422490441026694987","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-09-19T16:03:37.0002662Z","duration":"PT1M45.2800548S","correlationId":"38afa52e-3dfc-4ac1-a305-ed02a449c475","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm2NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm2NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm2PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm2VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm2VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm2"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm2NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP"}]}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Resources/deployments/vm_deploy_x6lSMKo0yRHFHt0SQIYsaJweIZgAG6RH","name":"vm_deploy_x6lSMKo0yRHFHt0SQIYsaJweIZgAG6RH","properties":{"templateHash":"7875658250030451553","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-11-17T17:10:13.2525286Z","duration":"PT2M8.0045186S","correlationId":"a75aaf96-dad0-4090-b359-697c92283ac9","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkSecurityGroups/vm2NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm2NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm2PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm2VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm2VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachines/vm2","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm2"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachines/vm2"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkSecurityGroups/vm2NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP"}]}}'}
headers:
cache-control: [no-cache]
- content-length: ['3227']
+ content-length: ['3225']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:03:52 GMT']
+ date: ['Fri, 17 Nov 2017 17:10:38 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -1458,108 +1433,109 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2?$expand=instanceView&api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachines/vm2?api-version=2017-03-30&$expand=instanceView
response:
- body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"a18ce1eb-ec4e-4de6-971e-afd858ddae97\"\
+ body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"57d56865-cc77-44d4-aca4-2d8f9a37e3be\"\
,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\
\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \
\ \"publisher\": \"credativ\",\r\n \"offer\": \"Debian\",\r\n\
\ \"sku\": \"8\",\r\n \"version\": \"latest\"\r\n },\r\n\
\ \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\"\
- : \"vm2_OsDisk_1_ef88cdd2674549749b2454287033070f\",\r\n \"createOption\"\
+ : \"vm2_OsDisk_1_bb281c2dcd874b409dfc41ddea438462\",\r\n \"createOption\"\
: \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\"\
: {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n \"\
- id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm2_OsDisk_1_ef88cdd2674549749b2454287033070f\"\
+ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/disks/vm2_OsDisk_1_bb281c2dcd874b409dfc41ddea438462\"\
\r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\
: []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm2\"\
,\r\n \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\"\
: {\r\n \"disablePasswordAuthentication\": false\r\n },\r\n \
\ \"secrets\": []\r\n },\r\n \"networkProfile\": {\"networkInterfaces\"\
- :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic\"\
+ :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic\"\
}]},\r\n \"provisioningState\": \"Succeeded\",\r\n \"instanceView\"\
- : {\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": \"Unknown\",\r\n\
- \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/Unavailable\"\
- ,\r\n \"level\": \"Warning\",\r\n \"displayStatus\"\
- : \"Not Ready\",\r\n \"message\": \"VM status blob is found but\
- \ not yet populated.\",\r\n \"time\": \"2017-09-19T16:03:55+00:00\"\
- \r\n }\r\n ]\r\n },\r\n \"disks\": [\r\n \
- \ {\r\n \"name\": \"vm2_OsDisk_1_ef88cdd2674549749b2454287033070f\"\
+ : {\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.2.18\",\r\n\
+ \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\
+ ,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"\
+ Ready\",\r\n \"message\": \"Guest Agent is running\",\r\n \
+ \ \"time\": \"2017-11-17T17:10:40+00:00\"\r\n }\r\n \
+ \ ],\r\n \"extensionHandlers\": []\r\n },\r\n \"disks\":\
+ \ [\r\n {\r\n \"name\": \"vm2_OsDisk_1_bb281c2dcd874b409dfc41ddea438462\"\
,\r\n \"statuses\": [\r\n {\r\n \"code\"\
: \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\
\n \"displayStatus\": \"Provisioning succeeded\",\r\n \
- \ \"time\": \"2017-09-19T16:02:18.6505375+00:00\"\r\n }\r\
+ \ \"time\": \"2017-11-17T17:08:30.0548086+00:00\"\r\n }\r\
\n ]\r\n }\r\n ],\r\n \"statuses\": [\r\n \
\ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \
\ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\"\
- ,\r\n \"time\": \"2017-09-19T16:03:32.0936196+00:00\"\r\n \
+ ,\r\n \"time\": \"2017-11-17T17:10:03.5075181+00:00\"\r\n \
\ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \
\ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\
\n }\r\n ]\r\n }\r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachines\"\
- ,\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2\"\
+ ,\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachines/vm2\"\
,\r\n \"name\": \"vm2\"\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['2882']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:03:54 GMT']
+ date: ['Fri, 17 Nov 2017 17:10:40 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4977,Microsoft.Compute/LowCostGet30Min;39877']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 networkmanagementclient/1.5.0rc1 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic?api-version=2017-09-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic?api-version=2017-09-01
response:
- body: {string: "{\r\n \"name\": \"vm2VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic\"\
- ,\r\n \"etag\": \"W/\\\"e237ac00-5e32-40ed-b8ba-6a2aa9bf08da\\\"\",\r\n \
+ body: {string: "{\r\n \"name\": \"vm2VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic\"\
+ ,\r\n \"etag\": \"W/\\\"b36a52b4-0c01-4cbf-8513-d16f5153002f\\\"\",\r\n \
\ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n\
- \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"981c2bba-278a-4ff7-a6e0-e11f8c6acc74\"\
+ \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"a02b2f16-a2de-4200-945b-075bf638c207\"\
,\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm2\"\
- ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic/ipConfigurations/ipconfigvm2\"\
- ,\r\n \"etag\": \"W/\\\"e237ac00-5e32-40ed-b8ba-6a2aa9bf08da\\\"\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic/ipConfigurations/ipconfigvm2\"\
+ ,\r\n \"etag\": \"W/\\\"b36a52b4-0c01-4cbf-8513-d16f5153002f\\\"\"\
,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\
- ,\r\n \"privateIPAddress\": \"10.0.0.9\",\r\n \"privateIPAllocationMethod\"\
+ ,\r\n \"privateIPAddress\": \"10.0.0.6\",\r\n \"privateIPAllocationMethod\"\
: \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\":\
- \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP\"\
- \r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\
+ \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP\"\
+ \r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\
\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\"\
: \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n\
\ \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"\
- internalDomainNameSuffix\": \"k31ueburtocezltifwjjufx4oe.dx.internal.cloudapp.net\"\
- \r\n },\r\n \"macAddress\": \"00-0D-3A-30-F6-9C\",\r\n \"enableAcceleratedNetworking\"\
+ internalDomainNameSuffix\": \"fn35rx0blbdehp4z33zbvfftsf.dx.internal.cloudapp.net\"\
+ \r\n },\r\n \"macAddress\": \"00-0D-3A-35-D5-85\",\r\n \"enableAcceleratedNetworking\"\
: false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\"\
- : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm2NSG\"\
+ : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkSecurityGroups/vm2NSG\"\
\r\n },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Compute/virtualMachines/vm2\"\
\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\
\n}"}
headers:
cache-control: [no-cache]
content-length: ['2495']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:03:54 GMT']
- etag: [W/"e237ac00-5e32-40ed-b8ba-6a2aa9bf08da"]
+ date: ['Fri, 17 Nov 2017 17:10:41 GMT']
+ etag: [W/"b36a52b4-0c01-4cbf-8513-d16f5153002f"]
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@@ -1572,282 +1548,31 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 networkmanagementclient/1.5.0rc1 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP?api-version=2017-09-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP?api-version=2017-09-01
response:
- body: {string: "{\r\n \"name\": \"vm2PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP\"\
- ,\r\n \"etag\": \"W/\\\"4de5abc6-e3fb-4439-8df7-1266fd7cde2b\\\"\",\r\n \
+ body: {string: "{\r\n \"name\": \"vm2PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/publicIPAddresses/vm2PublicIP\"\
+ ,\r\n \"etag\": \"W/\\\"87753b24-aef5-4b85-86b7-9d807384a4df\\\"\",\r\n \
\ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n\
- \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"5fb7291d-ace2-4970-9b71-bd689b42816d\"\
- ,\r\n \"ipAddress\": \"40.86.183.200\",\r\n \"publicIPAddressVersion\"\
+ \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"868f1bc4-e038-4631-be41-13e534646e6f\"\
+ ,\r\n \"ipAddress\": \"104.42.197.240\",\r\n \"publicIPAddressVersion\"\
: \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\"\
- : 4,\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic/ipConfigurations/ipconfigvm2\"\
+ : 4,\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_msi_no_scope000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic/ipConfigurations/ipconfigvm2\"\
\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\
\n \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"}
headers:
cache-control: [no-cache]
- content-length: ['978']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:03:54 GMT']
- etag: [W/"4de5abc6-e3fb-4439-8df7-1266fd7cde2b"]
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.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']
- CommandName: [vm assign-identity]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2?api-version=2017-03-30
- response:
- body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"a18ce1eb-ec4e-4de6-971e-afd858ddae97\"\
- ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\
- \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \
- \ \"publisher\": \"credativ\",\r\n \"offer\": \"Debian\",\r\n\
- \ \"sku\": \"8\",\r\n \"version\": \"latest\"\r\n },\r\n\
- \ \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\"\
- : \"vm2_OsDisk_1_ef88cdd2674549749b2454287033070f\",\r\n \"createOption\"\
- : \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\"\
- : {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n \"\
- id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm2_OsDisk_1_ef88cdd2674549749b2454287033070f\"\
- \r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\
- : []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm2\"\
- ,\r\n \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\"\
- : {\r\n \"disablePasswordAuthentication\": false\r\n },\r\n \
- \ \"secrets\": []\r\n },\r\n \"networkProfile\": {\"networkInterfaces\"\
- :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic\"\
- }]},\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"\
- Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n \"\
- tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2\"\
- ,\r\n \"name\": \"vm2\"\r\n}"}
- headers:
- cache-control: [no-cache]
- content-length: ['1709']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:03:54 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.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": {"storageProfile": {"imageReference": {"offer": "Debian",
- "sku": "8", "publisher": "credativ", "version": "latest"}, "osDisk": {"name":
- "vm2_OsDisk_1_ef88cdd2674549749b2454287033070f", "createOption": "fromImage",
- "osType": "Linux", "diskSizeGB": 30, "caching": "ReadWrite", "managedDisk":
- {"storageAccountType": "Premium_LRS", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm2_OsDisk_1_ef88cdd2674549749b2454287033070f"}},
- "dataDisks": []}, "hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "networkProfile":
- {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic"}]},
- "osProfile": {"computerName": "vm2", "linuxConfiguration": {"disablePasswordAuthentication":
- false}, "adminUsername": "admin123", "secrets": []}}, "identity": {"type": "SystemAssigned"},
- "tags": {}, "location": "westus"}'''
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vm assign-identity]
- Connection: [keep-alive]
- Content-Length: ['1117']
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2?api-version=2017-03-30
- response:
- body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"a18ce1eb-ec4e-4de6-971e-afd858ddae97\"\
- ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\
- \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \
- \ \"publisher\": \"credativ\",\r\n \"offer\": \"Debian\",\r\n\
- \ \"sku\": \"8\",\r\n \"version\": \"latest\"\r\n },\r\n\
- \ \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\"\
- : \"vm2_OsDisk_1_ef88cdd2674549749b2454287033070f\",\r\n \"createOption\"\
- : \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\"\
- : {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n \"\
- id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm2_OsDisk_1_ef88cdd2674549749b2454287033070f\"\
- \r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\
- : []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm2\"\
- ,\r\n \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\"\
- : {\r\n \"disablePasswordAuthentication\": false\r\n },\r\n \
- \ \"secrets\": []\r\n },\r\n \"networkProfile\": {\"networkInterfaces\"\
- :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic\"\
- }]},\r\n \"provisioningState\": \"Updating\"\r\n },\r\n \"type\": \"\
- Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n \"\
- tags\": {},\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n\
- \ \"principalId\": \"32702412-9fa3-4f59-b7fa-0f800bffd0d7\",\r\n \"\
- tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n },\r\n \"id\":\
- \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2\"\
- ,\r\n \"name\": \"vm2\"\r\n}"}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/b5d4eae4-0529-45a0-b875-5e2641c8268e?api-version=2017-03-30']
- cache-control: [no-cache]
- content-length: ['1878']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:03:56 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- transfer-encoding: [chunked]
- vary: [Accept-Encoding]
- x-ms-ratelimit-remaining-subscription-writes: ['1197']
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vm assign-identity]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/b5d4eae4-0529-45a0-b875-5e2641c8268e?api-version=2017-03-30
- response:
- body: {string: "{\r\n \"startTime\": \"2017-09-19T16:03:58.4243279+00:00\",\r\
- \n \"endTime\": \"2017-09-19T16:04:09.8156646+00:00\",\r\n \"status\": \"\
- Succeeded\",\r\n \"name\": \"b5d4eae4-0529-45a0-b875-5e2641c8268e\"\r\n}"}
- headers:
- cache-control: [no-cache]
- content-length: ['184']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:04:26 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.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']
- CommandName: [vm assign-identity]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2?api-version=2017-03-30
- response:
- body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"a18ce1eb-ec4e-4de6-971e-afd858ddae97\"\
- ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\
- \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \
- \ \"publisher\": \"credativ\",\r\n \"offer\": \"Debian\",\r\n\
- \ \"sku\": \"8\",\r\n \"version\": \"latest\"\r\n },\r\n\
- \ \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\"\
- : \"vm2_OsDisk_1_ef88cdd2674549749b2454287033070f\",\r\n \"createOption\"\
- : \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\"\
- : {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n \"\
- id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm2_OsDisk_1_ef88cdd2674549749b2454287033070f\"\
- \r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\
- : []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm2\"\
- ,\r\n \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\"\
- : {\r\n \"disablePasswordAuthentication\": false\r\n },\r\n \
- \ \"secrets\": []\r\n },\r\n \"networkProfile\": {\"networkInterfaces\"\
- :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic\"\
- }]},\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"\
- Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n \"\
- tags\": {},\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n\
- \ \"principalId\": \"32702412-9fa3-4f59-b7fa-0f800bffd0d7\",\r\n \"\
- tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n },\r\n \"id\":\
- \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2\"\
- ,\r\n \"name\": \"vm2\"\r\n}"}
- headers:
- cache-control: [no-cache]
- content-length: ['1879']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:04:27 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.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']
- CommandName: [vm assign-identity]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2?$expand=instanceView&api-version=2017-03-30
- response:
- body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"a18ce1eb-ec4e-4de6-971e-afd858ddae97\"\
- ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\
- \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \
- \ \"publisher\": \"credativ\",\r\n \"offer\": \"Debian\",\r\n\
- \ \"sku\": \"8\",\r\n \"version\": \"latest\"\r\n },\r\n\
- \ \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\"\
- : \"vm2_OsDisk_1_ef88cdd2674549749b2454287033070f\",\r\n \"createOption\"\
- : \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\"\
- : {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n \"\
- id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm2_OsDisk_1_ef88cdd2674549749b2454287033070f\"\
- \r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\
- : []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm2\"\
- ,\r\n \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\"\
- : {\r\n \"disablePasswordAuthentication\": false\r\n },\r\n \
- \ \"secrets\": []\r\n },\r\n \"networkProfile\": {\"networkInterfaces\"\
- :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic\"\
- }]},\r\n \"provisioningState\": \"Succeeded\",\r\n \"instanceView\"\
- : {\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": \"Unknown\",\r\n\
- \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/Unavailable\"\
- ,\r\n \"level\": \"Warning\",\r\n \"displayStatus\"\
- : \"Not Ready\",\r\n \"message\": \"VM status blob is found but\
- \ not yet populated.\",\r\n \"time\": \"2017-09-19T16:04:27+00:00\"\
- \r\n }\r\n ]\r\n },\r\n \"disks\": [\r\n \
- \ {\r\n \"name\": \"vm2_OsDisk_1_ef88cdd2674549749b2454287033070f\"\
- ,\r\n \"statuses\": [\r\n {\r\n \"code\"\
- : \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\
- \n \"displayStatus\": \"Provisioning succeeded\",\r\n \
- \ \"time\": \"2017-09-19T16:03:59.0962052+00:00\"\r\n }\r\
- \n ]\r\n }\r\n ],\r\n \"statuses\": [\r\n \
- \ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \
- \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\"\
- ,\r\n \"time\": \"2017-09-19T16:04:09.8000046+00:00\"\r\n \
- \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \
- \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\
- \n }\r\n ]\r\n }\r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachines\"\
- ,\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"identity\": {\r\
- \n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"32702412-9fa3-4f59-b7fa-0f800bffd0d7\"\
- ,\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n },\r\n\
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2\"\
- ,\r\n \"name\": \"vm2\"\r\n}"}
- headers:
- cache-control: [no-cache]
- content-length: ['3052']
+ content-length: ['979']
content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:04:27 GMT']
+ date: ['Fri, 17 Nov 2017 17:10:41 GMT']
+ etag: [W/"87753b24-aef5-4b85-86b7-9d807384a4df"]
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@@ -1855,601 +1580,31 @@ interactions:
transfer-encoding: [chunked]
vary: [Accept-Encoding]
status: {code: 200, message: OK}
-- request:
- body: '{"properties": {"publisher": "Microsoft.ManagedIdentity", "type": "ManagedIdentityExtensionForLinux",
- "autoUpgradeMinorVersion": true, "settings": {"port": 50342}, "typeHandlerVersion":
- "1.0"}, "location": "westus"}'
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vm assign-identity]
- Connection: [keep-alive]
- Content-Length: ['215']
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2/extensions/ManagedIdentityExtensionForLinux?api-version=2017-03-30
- response:
- body: {string: "{\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.ManagedIdentity\"\
- ,\r\n \"type\": \"ManagedIdentityExtensionForLinux\",\r\n \"typeHandlerVersion\"\
- : \"1.0\",\r\n \"autoUpgradeMinorVersion\": true,\r\n \"settings\":\
- \ {\"port\":50342},\r\n \"provisioningState\": \"Creating\"\r\n },\r\n\
- \ \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n \"location\"\
- : \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2/extensions/ManagedIdentityExtensionForLinux\"\
- ,\r\n \"name\": \"ManagedIdentityExtensionForLinux\"\r\n}"}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/8bda3583-3a98-42d7-a968-3ca06084801e?api-version=2017-03-30']
- cache-control: [no-cache]
- content-length: ['644']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:04:28 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1198']
- status: {code: 201, message: Created}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vm assign-identity]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/8bda3583-3a98-42d7-a968-3ca06084801e?api-version=2017-03-30
- response:
- body: {string: "{\r\n \"startTime\": \"2017-09-19T16:04:28.2616508+00:00\",\r\
- \n \"status\": \"InProgress\",\r\n \"name\": \"8bda3583-3a98-42d7-a968-3ca06084801e\"\
- \r\n}"}
- headers:
- cache-control: [no-cache]
- content-length: ['134']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:04:58 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.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']
- CommandName: [vm assign-identity]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/8bda3583-3a98-42d7-a968-3ca06084801e?api-version=2017-03-30
- response:
- body: {string: "{\r\n \"startTime\": \"2017-09-19T16:04:28.2616508+00:00\",\r\
- \n \"endTime\": \"2017-09-19T16:04:59.007595+00:00\",\r\n \"status\": \"\
- Succeeded\",\r\n \"name\": \"8bda3583-3a98-42d7-a968-3ca06084801e\"\r\n}"}
- headers:
- cache-control: [no-cache]
- content-length: ['183']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:05:29 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.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']
- CommandName: [vm assign-identity]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2/extensions/ManagedIdentityExtensionForLinux?api-version=2017-03-30
- response:
- body: {string: "{\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.ManagedIdentity\"\
- ,\r\n \"type\": \"ManagedIdentityExtensionForLinux\",\r\n \"typeHandlerVersion\"\
- : \"1.0\",\r\n \"autoUpgradeMinorVersion\": true,\r\n \"settings\":\
- \ {\"port\":50342},\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n\
- \ \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n \"location\"\
- : \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2/extensions/ManagedIdentityExtensionForLinux\"\
- ,\r\n \"name\": \"ManagedIdentityExtensionForLinux\"\r\n}"}
- headers:
- cache-control: [no-cache]
- content-length: ['645']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:05:29 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.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']
- CommandName: [vm extension list]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2?api-version=2017-03-30
- response:
- body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"a18ce1eb-ec4e-4de6-971e-afd858ddae97\"\
- ,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\
- \n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \
- \ \"publisher\": \"credativ\",\r\n \"offer\": \"Debian\",\r\n\
- \ \"sku\": \"8\",\r\n \"version\": \"latest\"\r\n },\r\n\
- \ \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\"\
- : \"vm2_OsDisk_1_ef88cdd2674549749b2454287033070f\",\r\n \"createOption\"\
- : \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\"\
- : {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n \"\
- id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm2_OsDisk_1_ef88cdd2674549749b2454287033070f\"\
- \r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\
- : []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm2\"\
- ,\r\n \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\"\
- : {\r\n \"disablePasswordAuthentication\": false\r\n },\r\n \
- \ \"secrets\": []\r\n },\r\n \"networkProfile\": {\"networkInterfaces\"\
- :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic\"\
- }]},\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"resources\"\
- : [\r\n {\r\n \"properties\": {\r\n \"publisher\": \"Microsoft.ManagedIdentity\"\
- ,\r\n \"type\": \"ManagedIdentityExtensionForLinux\",\r\n \"\
- typeHandlerVersion\": \"1.0\",\r\n \"autoUpgradeMinorVersion\": true,\r\
- \n \"settings\": {\"port\":50342},\r\n \"provisioningState\"\
- : \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachines/extensions\"\
- ,\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2/extensions/ManagedIdentityExtensionForLinux\"\
- ,\r\n \"name\": \"ManagedIdentityExtensionForLinux\"\r\n }\r\n ],\r\
- \n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"\
- westus\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\
- ,\r\n \"principalId\": \"32702412-9fa3-4f59-b7fa-0f800bffd0d7\",\r\n \
- \ \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n },\r\n \"\
- id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2\"\
- ,\r\n \"name\": \"vm2\"\r\n}"}
- headers:
- cache-control: [no-cache]
- content-length: ['2606']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:05:29 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.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']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- 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, 19 Sep 2017 16:05:30 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Connection: [close]
- Host: [raw.githubusercontent.com]
- User-Agent: [Python-urllib/3.5]
- method: GET
- uri: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json
- response:
- body: {string: "{\n \"$schema\":\"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\"\
- ,\n \"contentVersion\":\"1.0.0.0\",\n \"parameters\":{},\n \"variables\"\
- :{},\n \"resources\":[],\n\n \"outputs\":{\n \"aliases\":{\n \"\
- type\":\"object\",\n \"value\":{\n\n \"Linux\":{\n \"\
- CentOS\":{\n \"publisher\":\"OpenLogic\",\n \"offer\"\
- :\"CentOS\",\n \"sku\":\"7.3\",\n \"version\":\"latest\"\
- \n },\n \"CoreOS\":{\n \"publisher\":\"CoreOS\"\
- ,\n \"offer\":\"CoreOS\",\n \"sku\":\"Stable\",\n \
- \ \"version\":\"latest\"\n },\n \"Debian\":{\n\
- \ \"publisher\":\"credativ\",\n \"offer\":\"Debian\"\
- ,\n \"sku\":\"8\",\n \"version\":\"latest\"\n \
- \ },\n \"openSUSE-Leap\": {\n \"publisher\":\"SUSE\"\
- ,\n \"offer\":\"openSUSE-Leap\",\n \"sku\":\"42.2\"\
- ,\n \"version\": \"latest\"\n },\n \"RHEL\":{\n\
- \ \"publisher\":\"RedHat\",\n \"offer\":\"RHEL\",\n\
- \ \"sku\":\"7.3\",\n \"version\":\"latest\"\n \
- \ },\n \"SLES\":{\n \"publisher\":\"SUSE\",\n \
- \ \"offer\":\"SLES\",\n \"sku\":\"12-SP2\",\n \
- \ \"version\":\"latest\"\n },\n \"UbuntuLTS\":{\n \
- \ \"publisher\":\"Canonical\",\n \"offer\":\"UbuntuServer\"\
- ,\n \"sku\":\"16.04-LTS\",\n \"version\":\"latest\"\n\
- \ }\n },\n\n \"Windows\":{\n \"Win2016Datacenter\"\
- :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\
- offer\":\"WindowsServer\",\n \"sku\":\"2016-Datacenter\",\n \
- \ \"version\":\"latest\"\n },\n \"Win2012R2Datacenter\"\
- :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\
- offer\":\"WindowsServer\",\n \"sku\":\"2012-R2-Datacenter\",\n\
- \ \"version\":\"latest\"\n },\n \"Win2012Datacenter\"\
- :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\
- offer\":\"WindowsServer\",\n \"sku\":\"2012-Datacenter\",\n \
- \ \"version\":\"latest\"\n },\n \"Win2008R2SP1\"\
- :{\n \"publisher\":\"MicrosoftWindowsServer\",\n \"\
- offer\":\"WindowsServer\",\n \"sku\":\"2008-R2-SP1\",\n \
- \ \"version\":\"latest\"\n }\n }\n }\n }\n }\n\
- }\n"}
- headers:
- accept-ranges: [bytes]
- access-control-allow-origin: ['*']
- cache-control: [max-age=300]
- connection: [close]
- content-length: ['2235']
- content-security-policy: [default-src 'none'; style-src 'unsafe-inline']
- content-type: [text/plain; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:05:30 GMT']
- etag: ['"d6824855d13e27c5258a680eb60f635d088fd05e"']
- expires: ['Tue, 19 Sep 2017 16:10:30 GMT']
- source-age: ['282']
- strict-transport-security: [max-age=31536000]
- vary: ['Authorization,Accept-Encoding']
- via: [1.1 varnish]
- x-cache: [HIT]
- x-cache-hits: ['1']
- x-content-type-options: [nosniff]
- x-fastly-request-id: [584dfa2b7cc64da5cbef29ac0864946e54e4a3b0]
- x-frame-options: [deny]
- x-geo-block-list: ['']
- x-github-request-id: ['B004:28E1E:1162218:127890F:59C13F2F']
- x-served-by: [cache-dfw18636-DFW]
- x-timer: ['S1505837131.675048,VS0,VE1']
- x-xss-protection: [1; mode=block]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 networkmanagementclient/1.5.0rc1 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-09-01
- response:
- body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vm1VNET\",\r\
- \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET\"\
- ,\r\n \"etag\": \"W/\\\"4c1225a6-633a-4fca-96f7-d1e0d3a7f41c\\\"\",\r\
- \n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\"\
- : \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \
- \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"06427757-9b91-4c84-ae68-2d929a16fe74\"\
- ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \
- \ \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\"\
- : [\r\n {\r\n \"name\": \"vm1Subnet\",\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\
- ,\r\n \"etag\": \"W/\\\"4c1225a6-633a-4fca-96f7-d1e0d3a7f41c\\\"\
- \",\r\n \"properties\": {\r\n \"provisioningState\"\
- : \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n\
- \ \"ipConfigurations\": [\r\n {\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\
- \r\n },\r\n {\r\n \"id\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/0/networkInterfaces/vmss1ac58Nic/ipConfigurations/vmss1ac58IPConfig\"\
- \r\n },\r\n {\r\n \"id\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/3/networkInterfaces/vmss1ac58Nic/ipConfigurations/vmss1ac58IPConfig\"\
- \r\n },\r\n {\r\n \"id\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm2VMNic/ipConfigurations/ipconfigvm2\"\
- \r\n }\r\n ]\r\n }\r\n }\r\
- \n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\
- : false,\r\n \"enableVmProtection\": false\r\n }\r\n }\r\n\
- \ ]\r\n}"}
- headers:
- cache-control: [no-cache]
- content-length: ['2679']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:05:30 GMT']
- expires: ['-1']
- pragma: [no-cache]
- server: [Microsoft-HTTPAPI/2.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": {"mode": "Incremental", "parameters": {}, "template":
- {"variables": {}, "outputs": {"VMSS": {"value": "[reference(resourceId(\''Microsoft.Compute/virtualMachineScaleSets\'',
- \''vmss2\''),providers(\''Microsoft.Compute\'', \''virtualMachineScaleSets\'').apiVersions[0])]",
- "type": "object"}}, "parameters": {}, "contentVersion": "1.0.0.0", "resources":
- [{"properties": {"publicIPAllocationMethod": "Dynamic"}, "apiVersion": "2017-09-01",
- "type": "Microsoft.Network/publicIPAddresses", "name": "vmss2LBPublicIP", "location":
- "westus", "tags": {}, "sku": {"name": "Basic"}, "dependsOn": []}, {"properties":
- {"frontendIPConfigurations": [{"properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vmss2LBPublicIP"}},
- "name": "loadBalancerFrontEnd"}], "backendAddressPools": [{"name": "vmss2LBBEPool"}],
- "inboundNatPools": [{"properties": {"frontendPortRangeStart": "50000", "frontendPortRangeEnd":
- "50119", "backendPort": 22, "protocol": "tcp", "frontendIPConfiguration": {"id":
- "[concat(resourceId(\''Microsoft.Network/loadBalancers\'', \''vmss2LB\''), \''/frontendIPConfigurations/\'',
- \''loadBalancerFrontEnd\'')]"}}, "name": "vmss2LBNatPool"}]}, "apiVersion":
- "2017-09-01", "type": "Microsoft.Network/loadBalancers", "name": "vmss2LB",
- "location": "westus", "tags": {}, "sku": {"name": "Basic"}, "dependsOn": ["Microsoft.Network/publicIpAddresses/vmss2LBPublicIP"]},
- {"properties": {"singlePlacementGroup": true, "upgradePolicy": {"mode": "Manual"},
- "overprovision": true, "virtualMachineProfile": {"storageProfile": {"osDisk":
- {"caching": "ReadWrite", "managedDisk": {"storageAccountType": null}, "createOption":
- "FromImage"}, "imageReference": {"offer": "Debian", "sku": "8", "publisher":
- "credativ", "version": "latest"}}, "osProfile": {"adminUsername": "admin123",
- "computerNamePrefix": "vmss2c3d8", "adminPassword": "PasswordPassword1!"}, "networkProfile":
- {"networkInterfaceConfigurations": [{"properties": {"primary": "true", "ipConfigurations":
- [{"properties": {"loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss2LB/inboundNatPools/vmss2LBNatPool"}],
- "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss2LB/backendAddressPools/vmss2LBBEPool"}],
- "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}},
- "name": "vmss2c3d8IPConfig"}]}, "name": "vmss2c3d8Nic"}]}}}, "apiVersion": "2017-03-30",
- "type": "Microsoft.Compute/virtualMachineScaleSets", "name": "vmss2", "location":
- "westus", "tags": {}, "sku": {"tier": "Standard", "name": "Standard_D1_v2",
- "capacity": 2}, "dependsOn": ["Microsoft.Network/loadBalancers/vmss2LB"]}],
- "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#"}}}'''
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Length: ['3322']
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vmss_deploy_0o154WcKPkKUSaFEbuyeIlnuIqV1wMlq","name":"vmss_deploy_0o154WcKPkKUSaFEbuyeIlnuIqV1wMlq","properties":{"templateHash":"6619286023824256553","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-09-19T16:05:32.4090091Z","duration":"PT0.4360852S","correlationId":"e6ba5c87-c15b-42d8-b9f9-5ffc733d25d7","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vmss2LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss2LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss2LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss2LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss2LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss2LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss2"}]}}'}
- headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vmss_deploy_0o154WcKPkKUSaFEbuyeIlnuIqV1wMlq/operationStatuses/08586957697535046992?api-version=2017-05-10']
- cache-control: [no-cache]
- content-length: ['2025']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:05:31 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1196']
- status: {code: 201, message: Created}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586957697535046992?api-version=2017-05-10
- response:
- body: {string: '{"status":"Running"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['20']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:06:02 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586957697535046992?api-version=2017-05-10
- response:
- body: {string: '{"status":"Running"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['20']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:06:33 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586957697535046992?api-version=2017-05-10
- response:
- body: {string: '{"status":"Running"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['20']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:07:02 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586957697535046992?api-version=2017-05-10
- response:
- body: {string: '{"status":"Running"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['20']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:07:33 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586957697535046992?api-version=2017-05-10
- response:
- body: {string: '{"status":"Running"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['20']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:08:04 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586957697535046992?api-version=2017-05-10
- response:
- body: {string: '{"status":"Succeeded"}'}
- headers:
- cache-control: [no-cache]
- content-length: ['22']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:08:33 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- Accept: [application/json]
- Accept-Encoding: ['gzip, deflate']
- CommandName: [vmss create]
- Connection: [keep-alive]
- Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
- accept-language: [en-US]
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
- response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vmss_deploy_0o154WcKPkKUSaFEbuyeIlnuIqV1wMlq","name":"vmss_deploy_0o154WcKPkKUSaFEbuyeIlnuIqV1wMlq","properties":{"templateHash":"6619286023824256553","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-09-19T16:08:14.9683357Z","duration":"PT2M42.9954118S","correlationId":"e6ba5c87-c15b-42d8-b9f9-5ffc733d25d7","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vmss2LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss2LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss2LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss2LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss2LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss2LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss2"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual"},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmss2c3d8","adminUsername":"admin123","linuxConfiguration":{"disablePasswordAuthentication":false},"secrets":[]},"storageProfile":{"osDisk":{"createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Standard_LRS"}},"imageReference":{"publisher":"credativ","offer":"Debian","sku":"8","version":"latest"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vmss2c3d8Nic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"ipConfigurations":[{"name":"vmss2c3d8IPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss2LB/backendAddressPools/vmss2LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss2LB/inboundNatPools/vmss2LBNatPool"}]}}]}}]}},"provisioningState":"Succeeded","overprovision":true,"uniqueId":"3f11aeb5-24db-4914-94c2-ce319f3ea32e"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss2LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vmss2LBPublicIP"}]}}'}
- headers:
- cache-control: [no-cache]
- content-length: ['4322']
- content-type: [application/json; charset=utf-8]
- date: ['Tue, 19 Sep 2017 16:08:34 GMT']
- expires: ['-1']
- pragma: [no-cache]
- strict-transport-security: [max-age=31536000; includeSubDomains]
- vary: [Accept-Encoding]
- status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [group delete]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
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
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_msi_no_scope000001?api-version=2017-05-10
response:
body: {string: ''}
headers:
cache-control: [no-cache]
content-length: ['0']
- date: ['Tue, 19 Sep 2017 16:08:35 GMT']
+ date: ['Fri, 17 Nov 2017 17:10:42 GMT']
expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdNSlpIRDU3RlQ3R1NUSVFQS1dMTU9IVUhXNzVHTEpGQVdVQXxBQTBFQkQ2QjVGNjMxODdCLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10']
+ location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGTVNJOjVGTk86NUZTQ09QRUpRQ0ZTSllVNUNFRlBRRDNJRHwzM0QwM0UzRTAxRTYyMTRELVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1199']
+ x-ms-ratelimit-remaining-subscription-writes: ['1193']
status: {code: 202, message: Accepted}
version: 1
diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_run_command_e2e.yaml b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_run_command_e2e.yaml
index 54f03128c5b..22c26ea24d7 100644
--- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_run_command_e2e.yaml
+++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/latest/test_run_command_e2e.yaml
@@ -4,43 +4,52 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [group create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Length: ['50']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
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
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_run_command000001?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"}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001","name":"cli_test_vm_run_command000001","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: ['Mon, 18 Sep 2017 23:09:03 GMT']
+ date: ['Fri, 17 Nov 2017 17:16:20 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1192']
+ x-ms-ratelimit-remaining-subscription-writes: ['1194']
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm run-command list]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/runCommands?api-version=2017-03-30
response:
body: {string: "{\r\n \"value\": [\r\n {\r\n \"$schema\": \"http://schema.management.azure.com/schemas/2016-11-17/runcommands.json\"\
+ ,\r\n \"id\": \"EnableRemotePS\",\r\n \"osType\": \"Windows\",\r\
+ \n \"label\": \"Enable remote PowerShell\",\r\n \"description\"\
+ : \"Configure the machine to enable remote PowerShell.\"\r\n },\r\n \
+ \ {\r\n \"$schema\": \"http://schema.management.azure.com/schemas/2016-11-17/runcommands.json\"\
+ ,\r\n \"id\": \"IPConfig\",\r\n \"osType\": \"Windows\",\r\n \
+ \ \"label\": \"List IP configuration\",\r\n \"description\": \"Shows\
+ \ detailed information for the IP address, subnet mask and default gateway\
+ \ for each adapter bound to TCP/IP.\"\r\n },\r\n {\r\n \"$schema\"\
+ : \"http://schema.management.azure.com/schemas/2016-11-17/runcommands.json\"\
,\r\n \"id\": \"RunPowerShellScript\",\r\n \"osType\": \"Windows\"\
,\r\n \"label\": \"Executes a PowerShell script\",\r\n \"description\"\
: \"Custom multiline PowerShell script should be defined in script property.\
@@ -49,29 +58,58 @@ interactions:
,\r\n \"id\": \"RunShellScript\",\r\n \"osType\": \"Linux\",\r\n\
\ \"label\": \"Executes a Linux shell script\",\r\n \"description\"\
: \"Custom multiline shell script should be defined in script property. Optional\
- \ parameters can be set in parameters property.\"\r\n }\r\n ]\r\n}"}
+ \ parameters can be set in parameters property.\"\r\n },\r\n {\r\n \
+ \ \"$schema\": \"http://schema.management.azure.com/schemas/2016-11-17/runcommands.json\"\
+ ,\r\n \"id\": \"ifconfig\",\r\n \"osType\": \"Linux\",\r\n \
+ \ \"label\": \"List network configuration\",\r\n \"description\": \"\
+ Get the configuration of all network interfaces.\"\r\n },\r\n {\r\n\
+ \ \"$schema\": \"http://schema.management.azure.com/schemas/2016-11-17/runcommands.json\"\
+ ,\r\n \"id\": \"EnableAdminAccount\",\r\n \"osType\": \"Windows\"\
+ ,\r\n \"label\": \"Enable administrator account\",\r\n \"description\"\
+ : \"Checks if the local Administrator account is disabled, and if so enables\
+ \ it.\"\r\n },\r\n {\r\n \"$schema\": \"http://schema.management.azure.com/schemas/2016-11-17/runcommands.json\"\
+ ,\r\n \"id\": \"ResetAccountPassword\",\r\n \"osType\": \"Windows\"\
+ ,\r\n \"label\": \"Reset built-in Administrator account password\",\r\
+ \n \"description\": \"Reset built-in Administrator account password.\"\
+ \r\n },\r\n {\r\n \"$schema\": \"http://schema.management.azure.com/schemas/2016-11-17/runcommands.json\"\
+ ,\r\n \"id\": \"RDPSettings\",\r\n \"osType\": \"Windows\",\r\n\
+ \ \"label\": \"Verify RDP Listener Settings\",\r\n \"description\"\
+ : \"Checks registry settings and domain policy settings. Suggests policy actions\
+ \ if machine is part of a domain or modifies the settings to default values.\"\
+ \r\n },\r\n {\r\n \"$schema\": \"http://schema.management.azure.com/schemas/2016-11-17/runcommands.json\"\
+ ,\r\n \"id\": \"SetRDPPort\",\r\n \"osType\": \"Windows\",\r\n \
+ \ \"label\": \"Set Remote Desktop port\",\r\n \"description\": \"\
+ Sets the default or user specified port number for Remote Desktop connections.\
+ \ Enables firewall rule for inbound access to the port.\"\r\n },\r\n \
+ \ {\r\n \"$schema\": \"http://schema.management.azure.com/schemas/2016-11-17/runcommands.json\"\
+ ,\r\n \"id\": \"ResetRDPCert\",\r\n \"osType\": \"Windows\",\r\n\
+ \ \"label\": \"Restore RDP Authentication mode to defaults\",\r\n \
+ \ \"description\": \"Removes the SSL certificate tied to the RDP listener\
+ \ and restores the RDP listerner security to default. Use this script if you\
+ \ see any issues with the certificate.\"\r\n }\r\n ]\r\n}"}
headers:
cache-control: [no-cache]
- content-length: ['753']
+ content-length: ['3445']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:09:03 GMT']
+ date: ['Fri, 17 Nov 2017 17:16:20 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4970,Microsoft.Compute/LowCostGet30Min;39813']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm run-command show]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/runCommands/RunShellScript?api-version=2017-03-30
@@ -90,35 +128,36 @@ interactions:
cache-control: [no-cache]
content-length: ['626']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:09:03 GMT']
+ date: ['Fri, 17 Nov 2017 17:16:20 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4969,Microsoft.Compute/LowCostGet30Min;39812']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_run_command000001?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"}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001","name":"cli_test_vm_run_command000001","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: ['Mon, 18 Sep 2017 23:09:04 GMT']
+ date: ['Fri, 17 Nov 2017 17:16:21 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -174,24 +213,24 @@ interactions:
cache-control: [max-age=300]
connection: [close]
content-length: ['2235']
- content-security-policy: [default-src 'none'; style-src 'unsafe-inline']
+ content-security-policy: [default-src 'none'; style-src 'unsafe-inline'; sandbox]
content-type: [text/plain; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:09:05 GMT']
+ date: ['Fri, 17 Nov 2017 17:16:23 GMT']
etag: ['"d6824855d13e27c5258a680eb60f635d088fd05e"']
- expires: ['Mon, 18 Sep 2017 23:14:05 GMT']
- source-age: ['265']
+ expires: ['Fri, 17 Nov 2017 17:21:23 GMT']
+ source-age: ['0']
strict-transport-security: [max-age=31536000]
vary: ['Authorization,Accept-Encoding']
via: [1.1 varnish]
- x-cache: [HIT]
- x-cache-hits: ['1']
+ x-cache: [MISS]
+ x-cache-hits: ['0']
x-content-type-options: [nosniff]
- x-fastly-request-id: [3fdd7a4fda3f7c71f1f93627e5c3d7033fcf807f]
+ x-fastly-request-id: [125b9e9f194bf5708226a1046f1da22931a2b802]
x-frame-options: [deny]
x-geo-block-list: ['']
- x-github-request-id: ['C770:28E20:410D28D:454757A:59C05107']
- x-served-by: [cache-dfw18638-DFW]
- x-timer: ['S1505776145.361626,VS0,VE1']
+ x-github-request-id: ['79D0:22BFF:8D3F3B:96B614:5A0F1966']
+ x-served-by: [cache-mdw17331-MDW]
+ x-timer: ['S1510938983.138873,VS0,VE46']
x-xss-protection: [1; mode=block]
status: {code: 200, message: OK}
- request:
@@ -199,105 +238,133 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 networkmanagementclient/1.5.0rc1 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-09-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-09-01
response:
body: {string: '{"value":[]}'}
headers:
cache-control: [no-cache]
content-length: ['12']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:09:05 GMT']
+ date: ['Fri, 17 Nov 2017 17:16:23 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
- body: 'b''{"properties": {"parameters": {}, "template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
- "resources": [{"dependsOn": [], "apiVersion": "2015-06-15", "type": "Microsoft.Network/virtualNetworks",
- "name": "test-run-command-vmVNET", "location": "westus", "tags": {}, "properties":
- {"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": [{"properties":
- {"addressPrefix": "10.0.0.0/24"}, "name": "test-run-command-vmSubnet"}]}}, {"dependsOn":
- [], "apiVersion": "2015-06-15", "name": "test-run-command-vmNSG", "type": "Microsoft.Network/networkSecurityGroups",
- "tags": {}, "location": "westus", "properties": {"securityRules": [{"properties":
- {"access": "Allow", "priority": 1000, "sourcePortRange": "*", "protocol": "Tcp",
- "destinationPortRange": "22", "sourceAddressPrefix": "*", "destinationAddressPrefix":
- "*", "direction": "Inbound"}, "name": "default-allow-ssh"}]}}, {"dependsOn":
- [], "apiVersion": "2017-09-01", "name": "test-run-command-vmPublicIP", "type":
- "Microsoft.Network/publicIPAddresses", "tags": {}, "location": "westus", "properties":
- {"publicIPAllocationMethod": "dynamic"}}, {"dependsOn": ["Microsoft.Network/virtualNetworks/test-run-command-vmVNET",
- "Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG", "Microsoft.Network/publicIpAddresses/test-run-command-vmPublicIP"],
- "apiVersion": "2015-06-15", "name": "test-run-command-vmVMNic", "type": "Microsoft.Network/networkInterfaces",
- "tags": {}, "location": "westus", "properties": {"ipConfigurations": [{"properties":
- {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/test-run-command-vmVNET/subnets/test-run-command-vmSubnet"},
- "privateIPAllocationMethod": "Dynamic", "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/test-run-command-vmPublicIP"}},
- "name": "ipconfigtest-run-command-vm"}], "networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG"}}},
- {"dependsOn": ["Microsoft.Network/networkInterfaces/test-run-command-vmVMNic"],
- "apiVersion": "2017-03-30", "name": "test-run-command-vm", "type": "Microsoft.Compute/virtualMachines",
- "tags": {}, "location": "westus", "properties": {"networkProfile": {"networkInterfaces":
- [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic"}]},
- "storageProfile": {"osDisk": {"caching": null, "managedDisk": {"storageAccountType":
- null}, "createOption": "fromImage", "name": null}, "imageReference": {"sku":
- "16.04-LTS", "publisher": "Canonical", "offer": "UbuntuServer", "version": "latest"}},
- "hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "osProfile": {"adminUsername":
- "clitest1", "computerName": "test-run-command-vm", "adminPassword": "Test12345678!!"}}}],
- "contentVersion": "1.0.0.0", "parameters": {}, "variables": {}, "outputs": {}},
- "mode": "Incremental"}}'''
+ body: 'b''{"properties": {"parameters": {}, "template": {"contentVersion": "1.0.0.0",
+ "resources": [{"type": "Microsoft.Network/virtualNetworks", "apiVersion": "2015-06-15",
+ "location": "westus", "tags": {}, "name": "test-run-command-vmVNET", "properties":
+ {"subnets": [{"name": "test-run-command-vmSubnet", "properties": {"addressPrefix":
+ "10.0.0.0/24"}}], "addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}}, "dependsOn":
+ []}, {"type": "Microsoft.Network/networkSecurityGroups", "apiVersion": "2015-06-15",
+ "location": "westus", "tags": {}, "name": "test-run-command-vmNSG", "properties":
+ {"securityRules": [{"name": "default-allow-ssh", "properties": {"destinationPortRange":
+ "22", "priority": 1000, "destinationAddressPrefix": "*", "direction": "Inbound",
+ "protocol": "Tcp", "sourceAddressPrefix": "*", "sourcePortRange": "*", "access":
+ "Allow"}}]}, "dependsOn": []}, {"type": "Microsoft.Network/publicIPAddresses",
+ "apiVersion": "2017-09-01", "location": "westus", "tags": {}, "name": "test-run-command-vmPublicIP",
+ "properties": {"publicIPAllocationMethod": "dynamic"}, "dependsOn": []}, {"type":
+ "Microsoft.Network/networkInterfaces", "apiVersion": "2015-06-15", "location":
+ "westus", "tags": {}, "name": "test-run-command-vmVMNic", "properties": {"networkSecurityGroup":
+ {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG"},
+ "ipConfigurations": [{"name": "ipconfigtest-run-command-vm", "properties": {"privateIPAllocationMethod":
+ "Dynamic", "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/virtualNetworks/test-run-command-vmVNET/subnets/test-run-command-vmSubnet"},
+ "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/publicIPAddresses/test-run-command-vmPublicIP"}}}]},
+ "dependsOn": ["Microsoft.Network/virtualNetworks/test-run-command-vmVNET", "Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG",
+ "Microsoft.Network/publicIpAddresses/test-run-command-vmPublicIP"]}, {"type":
+ "Microsoft.Compute/virtualMachines", "apiVersion": "2017-03-30", "location":
+ "westus", "tags": {}, "name": "test-run-command-vm", "properties": {"storageProfile":
+ {"osDisk": {"managedDisk": {"storageAccountType": null}, "name": null, "caching":
+ "ReadWrite", "createOption": "fromImage"}, "imageReference": {"publisher": "Canonical",
+ "sku": "16.04-LTS", "offer": "UbuntuServer", "version": "latest"}}, "osProfile":
+ {"computerName": "test-run-command-vm", "adminPassword": "Test12345678!!", "adminUsername":
+ "clitest1"}, "hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "networkProfile":
+ {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic"}]}},
+ "dependsOn": ["Microsoft.Network/networkInterfaces/test-run-command-vmVMNic"]}],
+ "variables": {}, "outputs": {}, "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
+ "parameters": {}}, "mode": "Incremental"}}'''
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
- Content-Length: ['3430']
+ Content-Length: ['3437']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_run_command000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_T0jiLvoHOWchLzNCYVzaGmTv8LvSmG4c","name":"vm_deploy_T0jiLvoHOWchLzNCYVzaGmTv8LvSmG4c","properties":{"templateHash":"4907328945371045295","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-09-18T23:09:06.9829291Z","duration":"PT0.2558489S","correlationId":"1bbe39b6-ecf7-4daf-8208-7ee9dfa2bc14","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/test-run-command-vmVNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"test-run-command-vmVNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"test-run-command-vmNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/test-run-command-vmPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"test-run-command-vmPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"test-run-command-vmVMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"test-run-command-vmVMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/test-run-command-vm","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"test-run-command-vm"}]}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Resources/deployments/vm_deploy_6Y4aie1V8XrBeBc6AKiPKEOIgMkbqVrV","name":"vm_deploy_6Y4aie1V8XrBeBc6AKiPKEOIgMkbqVrV","properties":{"templateHash":"7737773869556784659","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2017-11-17T17:16:25.276494Z","duration":"PT0.6839398S","correlationId":"fb35edb0-0da4-4860-9113-57371b4784c1","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/virtualNetworks/test-run-command-vmVNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"test-run-command-vmVNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"test-run-command-vmNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/publicIPAddresses/test-run-command-vmPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"test-run-command-vmPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"test-run-command-vmVMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"test-run-command-vmVMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Compute/virtualMachines/test-run-command-vm","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"test-run-command-vm"}]}}'}
headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_T0jiLvoHOWchLzNCYVzaGmTv8LvSmG4c/operationStatuses/08586958307387505820?api-version=2017-05-10']
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_run_command000001/providers/Microsoft.Resources/deployments/vm_deploy_6Y4aie1V8XrBeBc6AKiPKEOIgMkbqVrV/operationStatuses/08586906679008850788?api-version=2017-05-10']
cache-control: [no-cache]
- content-length: ['2893']
+ content-length: ['2892']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:09:06 GMT']
+ date: ['Fri, 17 Nov 2017 17:16:24 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1191']
+ x-ms-ratelimit-remaining-subscription-writes: ['1198']
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
+ Connection: [keep-alive]
+ Content-Type: [application/json; charset=utf-8]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
+ accept-language: [en-US]
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_run_command000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906679008850788?api-version=2017-05-10
+ response:
+ body: {string: '{"status":"Running"}'}
+ headers:
+ cache-control: [no-cache]
+ content-length: ['20']
+ content-type: [application/json; charset=utf-8]
+ date: ['Fri, 17 Nov 2017 17:16:55 GMT']
+ expires: ['-1']
+ pragma: [no-cache]
+ strict-transport-security: [max-age=31536000; includeSubDomains]
+ vary: [Accept-Encoding]
+ status: {code: 200, message: OK}
+- request:
+ body: null
+ headers:
+ Accept: [application/json]
+ Accept-Encoding: ['gzip, deflate']
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958307387505820?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_run_command000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906679008850788?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:09:36 GMT']
+ date: ['Fri, 17 Nov 2017 17:17:25 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -308,22 +375,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958307387505820?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_run_command000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906679008850788?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:10:06 GMT']
+ date: ['Fri, 17 Nov 2017 17:17:55 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -334,22 +401,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958307387505820?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_run_command000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906679008850788?api-version=2017-05-10
response:
body: {string: '{"status":"Running"}'}
headers:
cache-control: [no-cache]
content-length: ['20']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:10:37 GMT']
+ date: ['Fri, 17 Nov 2017 17:18:26 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -360,22 +427,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586958307387505820?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_run_command000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586906679008850788?api-version=2017-05-10
response:
body: {string: '{"status":"Succeeded"}'}
headers:
cache-control: [no-cache]
content-length: ['22']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:11:07 GMT']
+ date: ['Fri, 17 Nov 2017 17:18:56 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -386,22 +453,22 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 resourcemanagementclient/1.1.0 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_run_command000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
response:
- body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_T0jiLvoHOWchLzNCYVzaGmTv8LvSmG4c","name":"vm_deploy_T0jiLvoHOWchLzNCYVzaGmTv8LvSmG4c","properties":{"templateHash":"4907328945371045295","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-09-18T23:10:57.9509737Z","duration":"PT1M51.2238935S","correlationId":"1bbe39b6-ecf7-4daf-8208-7ee9dfa2bc14","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/test-run-command-vmVNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"test-run-command-vmVNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"test-run-command-vmNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/test-run-command-vmPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"test-run-command-vmPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"test-run-command-vmVMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"test-run-command-vmVMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/test-run-command-vm","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"test-run-command-vm"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/test-run-command-vm"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/test-run-command-vmPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/test-run-command-vmVNET"}]}}'}
+ body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Resources/deployments/vm_deploy_6Y4aie1V8XrBeBc6AKiPKEOIgMkbqVrV","name":"vm_deploy_6Y4aie1V8XrBeBc6AKiPKEOIgMkbqVrV","properties":{"templateHash":"7737773869556784659","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2017-11-17T17:18:49.0478297Z","duration":"PT2M24.4552755S","correlationId":"fb35edb0-0da4-4860-9113-57371b4784c1","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/virtualNetworks/test-run-command-vmVNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"test-run-command-vmVNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"test-run-command-vmNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/publicIPAddresses/test-run-command-vmPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"test-run-command-vmPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"test-run-command-vmVMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"test-run-command-vmVMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Compute/virtualMachines/test-run-command-vm","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"test-run-command-vm"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Compute/virtualMachines/test-run-command-vm"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/publicIPAddresses/test-run-command-vmPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/virtualNetworks/test-run-command-vmVNET"}]}}'}
headers:
cache-control: [no-cache]
content-length: ['4040']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:11:07 GMT']
+ date: ['Fri, 17 Nov 2017 17:18:57 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
@@ -412,109 +479,110 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/test-run-command-vm?api-version=2017-03-30&$expand=instanceView
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Compute/virtualMachines/test-run-command-vm?api-version=2017-03-30&$expand=instanceView
response:
- body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"9b119bb2-b0c5-4310-ae4e-4a23081806f3\"\
+ body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"b7ace6c1-4d96-4f5e-8f62-ff6ae5e44f28\"\
,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\
\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \
\ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\"\
,\r\n \"sku\": \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n\
\ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \
- \ \"name\": \"test-run-command-vm_OsDisk_1_2e0036258a0749c68f53cbbadea6d190\"\
+ \ \"name\": \"test-run-command-vm_OsDisk_1_d12093cee7fd433c9ddb65399695bdca\"\
,\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\
,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\"\
- ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/test-run-command-vm_OsDisk_1_2e0036258a0749c68f53cbbadea6d190\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Compute/disks/test-run-command-vm_OsDisk_1_d12093cee7fd433c9ddb65399695bdca\"\
\r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\
: []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"test-run-command-vm\"\
,\r\n \"adminUsername\": \"clitest1\",\r\n \"linuxConfiguration\"\
: {\r\n \"disablePasswordAuthentication\": false\r\n },\r\n \
\ \"secrets\": []\r\n },\r\n \"networkProfile\": {\"networkInterfaces\"\
- :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic\"\
+ :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic\"\
}]},\r\n \"provisioningState\": \"Succeeded\",\r\n \"instanceView\"\
- : {\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.2.17\",\r\n\
+ : {\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.2.18\",\r\n\
\ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\
,\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"\
Ready\",\r\n \"message\": \"Guest Agent is running\",\r\n \
- \ \"time\": \"2017-09-18T23:11:08+00:00\"\r\n }\r\n \
+ \ \"time\": \"2017-11-17T17:18:58+00:00\"\r\n }\r\n \
\ ],\r\n \"extensionHandlers\": []\r\n },\r\n \"disks\":\
- \ [\r\n {\r\n \"name\": \"test-run-command-vm_OsDisk_1_2e0036258a0749c68f53cbbadea6d190\"\
+ \ [\r\n {\r\n \"name\": \"test-run-command-vm_OsDisk_1_d12093cee7fd433c9ddb65399695bdca\"\
,\r\n \"statuses\": [\r\n {\r\n \"code\"\
: \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\
\n \"displayStatus\": \"Provisioning succeeded\",\r\n \
- \ \"time\": \"2017-09-18T23:09:36.5682318+00:00\"\r\n }\r\
+ \ \"time\": \"2017-11-17T17:16:52.5951543+00:00\"\r\n }\r\
\n ]\r\n }\r\n ],\r\n \"statuses\": [\r\n \
\ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \
\ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\"\
- ,\r\n \"time\": \"2017-09-18T23:10:55.1177586+00:00\"\r\n \
+ ,\r\n \"time\": \"2017-11-17T17:18:29.7761219+00:00\"\r\n \
\ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \
\ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\
\n }\r\n ]\r\n }\r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachines\"\
- ,\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/test-run-command-vm\"\
+ ,\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Compute/virtualMachines/test-run-command-vm\"\
,\r\n \"name\": \"test-run-command-vm\"\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['3009']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:11:08 GMT']
+ date: ['Fri, 17 Nov 2017 17:18:58 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4984,Microsoft.Compute/LowCostGet30Min;39799']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 networkmanagementclient/1.5.0rc1 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic?api-version=2017-09-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic?api-version=2017-09-01
response:
body: {string: "{\r\n \"name\": \"test-run-command-vmVMNic\",\r\n \"id\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic\"\
- ,\r\n \"etag\": \"W/\\\"d65ef1c5-27c5-491a-971c-1827c7866656\\\"\",\r\n \
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic\"\
+ ,\r\n \"etag\": \"W/\\\"963c8ae7-3f0e-40e0-b9fb-abd59d709e5b\\\"\",\r\n \
\ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n\
- \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"dc783c7b-46ee-4057-9c95-d77e0a01a1d9\"\
+ \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"7e10f631-9aef-4384-a652-7428562c5947\"\
,\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigtest-run-command-vm\"\
- ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic/ipConfigurations/ipconfigtest-run-command-vm\"\
- ,\r\n \"etag\": \"W/\\\"d65ef1c5-27c5-491a-971c-1827c7866656\\\"\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic/ipConfigurations/ipconfigtest-run-command-vm\"\
+ ,\r\n \"etag\": \"W/\\\"963c8ae7-3f0e-40e0-b9fb-abd59d709e5b\\\"\"\
,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\
,\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\"\
: \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\":\
- \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/test-run-command-vmPublicIP\"\
- \r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/test-run-command-vmVNET/subnets/test-run-command-vmSubnet\"\
+ \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/publicIPAddresses/test-run-command-vmPublicIP\"\
+ \r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/virtualNetworks/test-run-command-vmVNET/subnets/test-run-command-vmSubnet\"\
\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\"\
: \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n\
\ \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"\
- internalDomainNameSuffix\": \"wb0w55yjofbelfkfvhenaaanub.dx.internal.cloudapp.net\"\
- \r\n },\r\n \"macAddress\": \"00-0D-3A-37-33-19\",\r\n \"enableAcceleratedNetworking\"\
+ internalDomainNameSuffix\": \"wim5msmgqehu1be4y5g0coblfh.dx.internal.cloudapp.net\"\
+ \r\n },\r\n \"macAddress\": \"00-0D-3A-32-6D-5A\",\r\n \"enableAcceleratedNetworking\"\
: false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\"\
- : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG\"\
+ : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG\"\
\r\n },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/test-run-command-vm\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Compute/virtualMachines/test-run-command-vm\"\
\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\
\n}"}
headers:
cache-control: [no-cache]
content-length: ['2655']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:11:08 GMT']
- etag: [W/"d65ef1c5-27c5-491a-971c-1827c7866656"]
+ date: ['Fri, 17 Nov 2017 17:18:59 GMT']
+ etag: [W/"963c8ae7-3f0e-40e0-b9fb-abd59d709e5b"]
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@@ -527,32 +595,32 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm create]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 networkmanagementclient/1.5.0rc1 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/test-run-command-vmPublicIP?api-version=2017-09-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/publicIPAddresses/test-run-command-vmPublicIP?api-version=2017-09-01
response:
body: {string: "{\r\n \"name\": \"test-run-command-vmPublicIP\",\r\n \"id\"\
- : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/test-run-command-vmPublicIP\"\
- ,\r\n \"etag\": \"W/\\\"4b83c060-2e2d-4150-bb28-9a648a37b6e9\\\"\",\r\n \
+ : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/publicIPAddresses/test-run-command-vmPublicIP\"\
+ ,\r\n \"etag\": \"W/\\\"ee21a7e6-d1b8-4843-ad20-455a815a80a1\\\"\",\r\n \
\ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n\
- \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"6cce36d1-0940-42c7-ac41-51b7ea63f7ae\"\
- ,\r\n \"ipAddress\": \"40.78.19.219\",\r\n \"publicIPAddressVersion\"\
+ \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"f7f7f7c1-b412-420d-ae2d-7f1580b042ad\"\
+ ,\r\n \"ipAddress\": \"104.40.49.196\",\r\n \"publicIPAddressVersion\"\
: \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\"\
- : 4,\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic/ipConfigurations/ipconfigtest-run-command-vm\"\
+ : 4,\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic/ipConfigurations/ipconfigtest-run-command-vm\"\
\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\
\n \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"}
headers:
cache-control: [no-cache]
- content-length: ['1041']
+ content-length: ['1042']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:11:09 GMT']
- etag: [W/"4b83c060-2e2d-4150-bb28-9a648a37b6e9"]
+ date: ['Fri, 17 Nov 2017 17:18:59 GMT']
+ etag: [W/"ee21a7e6-d1b8-4843-ad20-455a815a80a1"]
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@@ -565,92 +633,93 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm open-port]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/test-run-command-vm?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Compute/virtualMachines/test-run-command-vm?api-version=2017-03-30
response:
- body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"9b119bb2-b0c5-4310-ae4e-4a23081806f3\"\
+ body: {string: "{\r\n \"properties\": {\r\n \"vmId\": \"b7ace6c1-4d96-4f5e-8f62-ff6ae5e44f28\"\
,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\
\n },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \
\ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\"\
,\r\n \"sku\": \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n\
\ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \
- \ \"name\": \"test-run-command-vm_OsDisk_1_2e0036258a0749c68f53cbbadea6d190\"\
+ \ \"name\": \"test-run-command-vm_OsDisk_1_d12093cee7fd433c9ddb65399695bdca\"\
,\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\"\
,\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\"\
- ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/test-run-command-vm_OsDisk_1_2e0036258a0749c68f53cbbadea6d190\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Compute/disks/test-run-command-vm_OsDisk_1_d12093cee7fd433c9ddb65399695bdca\"\
\r\n },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\"\
: []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"test-run-command-vm\"\
,\r\n \"adminUsername\": \"clitest1\",\r\n \"linuxConfiguration\"\
: {\r\n \"disablePasswordAuthentication\": false\r\n },\r\n \
\ \"secrets\": []\r\n },\r\n \"networkProfile\": {\"networkInterfaces\"\
- :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic\"\
+ :[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic\"\
}]},\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"\
Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n \"\
- tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/test-run-command-vm\"\
+ tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Compute/virtualMachines/test-run-command-vm\"\
,\r\n \"name\": \"test-run-command-vm\"\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['1820']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:11:09 GMT']
+ date: ['Fri, 17 Nov 2017 17:18:59 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4983,Microsoft.Compute/LowCostGet30Min;39798']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm open-port]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 networkmanagementclient/1.5.0rc1 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic?api-version=2017-09-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic?api-version=2017-09-01
response:
body: {string: "{\r\n \"name\": \"test-run-command-vmVMNic\",\r\n \"id\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic\"\
- ,\r\n \"etag\": \"W/\\\"d65ef1c5-27c5-491a-971c-1827c7866656\\\"\",\r\n \
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic\"\
+ ,\r\n \"etag\": \"W/\\\"963c8ae7-3f0e-40e0-b9fb-abd59d709e5b\\\"\",\r\n \
\ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n\
- \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"dc783c7b-46ee-4057-9c95-d77e0a01a1d9\"\
+ \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"7e10f631-9aef-4384-a652-7428562c5947\"\
,\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigtest-run-command-vm\"\
- ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic/ipConfigurations/ipconfigtest-run-command-vm\"\
- ,\r\n \"etag\": \"W/\\\"d65ef1c5-27c5-491a-971c-1827c7866656\\\"\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic/ipConfigurations/ipconfigtest-run-command-vm\"\
+ ,\r\n \"etag\": \"W/\\\"963c8ae7-3f0e-40e0-b9fb-abd59d709e5b\\\"\"\
,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\
,\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\"\
: \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\":\
- \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/test-run-command-vmPublicIP\"\
- \r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/test-run-command-vmVNET/subnets/test-run-command-vmSubnet\"\
+ \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/publicIPAddresses/test-run-command-vmPublicIP\"\
+ \r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/virtualNetworks/test-run-command-vmVNET/subnets/test-run-command-vmSubnet\"\
\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\"\
: \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n\
\ \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"\
- internalDomainNameSuffix\": \"wb0w55yjofbelfkfvhenaaanub.dx.internal.cloudapp.net\"\
- \r\n },\r\n \"macAddress\": \"00-0D-3A-37-33-19\",\r\n \"enableAcceleratedNetworking\"\
+ internalDomainNameSuffix\": \"wim5msmgqehu1be4y5g0coblfh.dx.internal.cloudapp.net\"\
+ \r\n },\r\n \"macAddress\": \"00-0D-3A-32-6D-5A\",\r\n \"enableAcceleratedNetworking\"\
: false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\"\
- : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG\"\
+ : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG\"\
\r\n },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/test-run-command-vm\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Compute/virtualMachines/test-run-command-vm\"\
\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\
\n}"}
headers:
cache-control: [no-cache]
content-length: ['2655']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:11:10 GMT']
- etag: [W/"d65ef1c5-27c5-491a-971c-1827c7866656"]
+ date: ['Fri, 17 Nov 2017 17:18:59 GMT']
+ etag: [W/"963c8ae7-3f0e-40e0-b9fb-abd59d709e5b"]
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@@ -659,25 +728,25 @@ interactions:
vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
- body: '{"properties": {"destinationPortRange": "80", "access": "allow", "sourcePortRange":
- "*", "protocol": "*", "priority": 900, "sourceAddressPrefix": "*", "destinationAddressPrefix":
- "*", "direction": "inbound"}, "name": "open-port-80"}'
+ body: '{"properties": {"destinationPortRange": "80", "priority": 900, "destinationAddressPrefix":
+ "*", "direction": "inbound", "protocol": "*", "sourceAddressPrefix": "*", "sourcePortRange":
+ "*", "access": "allow"}, "name": "open-port-80"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm open-port]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Length: ['232']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 networkmanagementclient/1.5.0rc1 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG/securityRules/open-port-80?api-version=2017-09-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG/securityRules/open-port-80?api-version=2017-09-01
response:
- body: {string: "{\r\n \"name\": \"open-port-80\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG/securityRules/open-port-80\"\
- ,\r\n \"etag\": \"W/\\\"f47bbbd3-ab79-4640-8bcf-e7d3073bb03d\\\"\",\r\n \
+ body: {string: "{\r\n \"name\": \"open-port-80\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG/securityRules/open-port-80\"\
+ ,\r\n \"etag\": \"W/\\\"9844a435-075f-42d3-aecc-0b9419246e45\\\"\",\r\n \
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"\
protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\"\
: \"80\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\"\
@@ -686,38 +755,38 @@ interactions:
: [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\
: []\r\n }\r\n}"}
headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ea6519b3-a202-4f62-aa93-026af409847e?api-version=2017-09-01']
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/53f346dd-a420-4342-90be-5bf112bc9772?api-version=2017-09-01']
cache-control: [no-cache]
content-length: ['772']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:11:10 GMT']
+ date: ['Fri, 17 Nov 2017 17:19:01 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1198']
+ x-ms-ratelimit-remaining-subscription-writes: ['1195']
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm open-port]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 networkmanagementclient/1.5.0rc1 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ea6519b3-a202-4f62-aa93-026af409847e?api-version=2017-09-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/53f346dd-a420-4342-90be-5bf112bc9772?api-version=2017-09-01
response:
body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['29']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:11:21 GMT']
+ date: ['Fri, 17 Nov 2017 17:19:10 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@@ -730,18 +799,18 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm open-port]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 networkmanagementclient/1.5.0rc1 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG/securityRules/open-port-80?api-version=2017-09-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG/securityRules/open-port-80?api-version=2017-09-01
response:
- body: {string: "{\r\n \"name\": \"open-port-80\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG/securityRules/open-port-80\"\
- ,\r\n \"etag\": \"W/\\\"7eb60f4d-476f-4926-b0af-ead1aea4155a\\\"\",\r\n \
+ body: {string: "{\r\n \"name\": \"open-port-80\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG/securityRules/open-port-80\"\
+ ,\r\n \"etag\": \"W/\\\"220a6cc1-48ce-48c4-9431-7c73efb10e50\\\"\",\r\n \
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\
protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\"\
: \"80\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\"\
@@ -753,8 +822,8 @@ interactions:
cache-control: [no-cache]
content-length: ['773']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:11:21 GMT']
- etag: [W/"7eb60f4d-476f-4926-b0af-ead1aea4155a"]
+ date: ['Fri, 17 Nov 2017 17:19:11 GMT']
+ etag: [W/"220a6cc1-48ce-48c4-9431-7c73efb10e50"]
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@@ -767,24 +836,24 @@ interactions:
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm open-port]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 networkmanagementclient/1.5.0rc1 Azure-SDK-For-Python
- AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 networkmanagementclient/1.5.0rc3 Azure-SDK-For-Python
+ AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG?api-version=2017-09-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG?api-version=2017-09-01
response:
- body: {string: "{\r\n \"name\": \"test-run-command-vmNSG\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG\"\
- ,\r\n \"etag\": \"W/\\\"7eb60f4d-476f-4926-b0af-ead1aea4155a\\\"\",\r\n \
+ body: {string: "{\r\n \"name\": \"test-run-command-vmNSG\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG\"\
+ ,\r\n \"etag\": \"W/\\\"220a6cc1-48ce-48c4-9431-7c73efb10e50\\\"\",\r\n \
\ \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\"\
: \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\"\
- : \"Succeeded\",\r\n \"resourceGuid\": \"a058a781-71fc-46ba-b0a3-98b219a85c31\"\
+ : \"Succeeded\",\r\n \"resourceGuid\": \"7eed7a62-f748-453b-959f-e5e425cd272b\"\
,\r\n \"securityRules\": [\r\n {\r\n \"name\": \"default-allow-ssh\"\
- ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG/securityRules/default-allow-ssh\"\
- ,\r\n \"etag\": \"W/\\\"7eb60f4d-476f-4926-b0af-ead1aea4155a\\\"\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG/securityRules/default-allow-ssh\"\
+ ,\r\n \"etag\": \"W/\\\"220a6cc1-48ce-48c4-9431-7c73efb10e50\\\"\"\
,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\
,\r\n \"protocol\": \"Tcp\",\r\n \"sourcePortRange\": \"\
*\",\r\n \"destinationPortRange\": \"22\",\r\n \"sourceAddressPrefix\"\
@@ -793,8 +862,8 @@ interactions:
: \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\"\
: [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\
: []\r\n }\r\n },\r\n {\r\n \"name\": \"open-port-80\"\
- ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG/securityRules/open-port-80\"\
- ,\r\n \"etag\": \"W/\\\"7eb60f4d-476f-4926-b0af-ead1aea4155a\\\"\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG/securityRules/open-port-80\"\
+ ,\r\n \"etag\": \"W/\\\"220a6cc1-48ce-48c4-9431-7c73efb10e50\\\"\"\
,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\
,\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\"\
,\r\n \"destinationPortRange\": \"80\",\r\n \"sourceAddressPrefix\"\
@@ -804,8 +873,8 @@ interactions:
: [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\
: []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\
\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"\
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG/defaultSecurityRules/AllowVnetInBound\"\
- ,\r\n \"etag\": \"W/\\\"7eb60f4d-476f-4926-b0af-ead1aea4155a\\\"\"\
+ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG/defaultSecurityRules/AllowVnetInBound\"\
+ ,\r\n \"etag\": \"W/\\\"220a6cc1-48ce-48c4-9431-7c73efb10e50\\\"\"\
,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\
,\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\"\
,\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\"\
@@ -816,8 +885,8 @@ interactions:
\ [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\"\
: [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \
\ },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\
- \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG/defaultSecurityRules/AllowAzureLoadBalancerInBound\"\
- ,\r\n \"etag\": \"W/\\\"7eb60f4d-476f-4926-b0af-ead1aea4155a\\\"\"\
+ \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG/defaultSecurityRules/AllowAzureLoadBalancerInBound\"\
+ ,\r\n \"etag\": \"W/\\\"220a6cc1-48ce-48c4-9431-7c73efb10e50\\\"\"\
,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\
,\r\n \"description\": \"Allow inbound traffic from azure load balancer\"\
,\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\"\
@@ -828,8 +897,8 @@ interactions:
\ [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\"\
: [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \
\ },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\"\
- : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG/defaultSecurityRules/DenyAllInBound\"\
- ,\r\n \"etag\": \"W/\\\"7eb60f4d-476f-4926-b0af-ead1aea4155a\\\"\"\
+ : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG/defaultSecurityRules/DenyAllInBound\"\
+ ,\r\n \"etag\": \"W/\\\"220a6cc1-48ce-48c4-9431-7c73efb10e50\\\"\"\
,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\
,\r\n \"description\": \"Deny all inbound traffic\",\r\n \
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \
@@ -839,8 +908,8 @@ interactions:
: \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\"\
: [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\
: []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\"\
- ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG/defaultSecurityRules/AllowVnetOutBound\"\
- ,\r\n \"etag\": \"W/\\\"7eb60f4d-476f-4926-b0af-ead1aea4155a\\\"\"\
+ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG/defaultSecurityRules/AllowVnetOutBound\"\
+ ,\r\n \"etag\": \"W/\\\"220a6cc1-48ce-48c4-9431-7c73efb10e50\\\"\"\
,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\
,\r\n \"description\": \"Allow outbound traffic from all VMs to all\
\ VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\"\
@@ -851,8 +920,8 @@ interactions:
: [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\"\
: [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \
\ },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG/defaultSecurityRules/AllowInternetOutBound\"\
- ,\r\n \"etag\": \"W/\\\"7eb60f4d-476f-4926-b0af-ead1aea4155a\\\"\"\
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG/defaultSecurityRules/AllowInternetOutBound\"\
+ ,\r\n \"etag\": \"W/\\\"220a6cc1-48ce-48c4-9431-7c73efb10e50\\\"\"\
,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\
,\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\"\
,\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\"\
@@ -863,8 +932,8 @@ interactions:
\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\"\
: [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \
\ },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"\
- id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG/defaultSecurityRules/DenyAllOutBound\"\
- ,\r\n \"etag\": \"W/\\\"7eb60f4d-476f-4926-b0af-ead1aea4155a\\\"\"\
+ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkSecurityGroups/test-run-command-vmNSG/defaultSecurityRules/DenyAllOutBound\"\
+ ,\r\n \"etag\": \"W/\\\"220a6cc1-48ce-48c4-9431-7c73efb10e50\\\"\"\
,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\
,\r\n \"description\": \"Deny all outbound traffic\",\r\n \
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \
@@ -874,14 +943,14 @@ interactions:
: \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\"\
: [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\
: []\r\n }\r\n }\r\n ],\r\n \"networkInterfaces\": [\r\n\
- \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic\"\
+ \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Network/networkInterfaces/test-run-command-vmVMNic\"\
\r\n }\r\n ]\r\n }\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['8700']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:11:22 GMT']
- etag: [W/"7eb60f4d-476f-4926-b0af-ead1aea4155a"]
+ date: ['Fri, 17 Nov 2017 17:19:12 GMT']
+ etag: [W/"220a6cc1-48ce-48c4-9431-7c73efb10e50"]
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
@@ -890,79 +959,81 @@ interactions:
vary: [Accept-Encoding]
status: {code: 200, message: OK}
- request:
- body: '{"script": ["sudo apt-get update && sudo apt-get install -y nginx"], "parameters":
- [], "commandId": "RunShellScript"}'
+ body: '{"commandId": "RunShellScript", "parameters": [], "script": ["sudo apt-get
+ update && sudo apt-get install -y nginx"]}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm run-command invoke]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Length: ['117']
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: POST
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/test-run-command-vm/runCommand?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_run_command000001/providers/Microsoft.Compute/virtualMachines/test-run-command-vm/runCommand?api-version=2017-03-30
response:
body: {string: ''}
headers:
- azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/6b12abae-36c1-41ff-988a-399d9383fadb?api-version=2017-03-30']
+ azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/03dc0df5-da93-46e5-afca-9dfea7817660?api-version=2017-03-30']
cache-control: [no-cache]
content-length: ['0']
- date: ['Mon, 18 Sep 2017 23:11:22 GMT']
+ date: ['Fri, 17 Nov 2017 17:19:13 GMT']
expires: ['-1']
- location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/6b12abae-36c1-41ff-988a-399d9383fadb?monitor=true&api-version=2017-03-30']
+ location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/03dc0df5-da93-46e5-afca-9dfea7817660?monitor=true&api-version=2017-03-30']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
- x-ms-ratelimit-remaining-subscription-writes: ['1181']
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/CreateUpdateVM3Min;297,Microsoft.Compute/CreateUpdateVM30Min;1470']
+ x-ms-ratelimit-remaining-subscription-writes: ['1198']
status: {code: 202, message: Accepted}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm run-command invoke]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/6b12abae-36c1-41ff-988a-399d9383fadb?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/03dc0df5-da93-46e5-afca-9dfea7817660?api-version=2017-03-30
response:
- body: {string: "{\r\n \"startTime\": \"2017-09-18T23:11:23.7649401+00:00\",\r\
- \n \"status\": \"InProgress\",\r\n \"name\": \"6b12abae-36c1-41ff-988a-399d9383fadb\"\
+ body: {string: "{\r\n \"startTime\": \"2017-11-17T17:19:12.6688905+00:00\",\r\
+ \n \"status\": \"InProgress\",\r\n \"name\": \"03dc0df5-da93-46e5-afca-9dfea7817660\"\
\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['134']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:11:53 GMT']
+ date: ['Fri, 17 Nov 2017 17:19:43 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;2111,Microsoft.Compute/GetOperation30Min;17550']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
- CommandName: [vm run-command invoke]
+ CommandName: [unknown]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
- User-Agent: [python/3.5.3 (Windows-10-10.0.15063-SP0) requests/2.9.1 msrest/0.4.14
- msrest_azure/0.4.14 computemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.16+dev]
+ User-Agent: [python/3.5.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
+ msrest_azure/0.4.15 computemanagementclient/3.0.1 Azure-SDK-For-Python AZURECLI/2.0.21]
accept-language: [en-US]
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/6b12abae-36c1-41ff-988a-399d9383fadb?api-version=2017-03-30
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/03dc0df5-da93-46e5-afca-9dfea7817660?api-version=2017-03-30
response:
- body: {string: "{\r\n \"startTime\": \"2017-09-18T23:11:23.7649401+00:00\",\r\
- \n \"endTime\": \"2017-09-18T23:12:23.2317514+00:00\",\r\n \"status\": \"\
+ body: {string: "{\r\n \"startTime\": \"2017-11-17T17:19:12.6688905+00:00\",\r\
+ \n \"endTime\": \"2017-11-17T17:20:10.9704067+00:00\",\r\n \"status\": \"\
Succeeded\",\r\n \"properties\": {\r\n \"output\": [\r\n {\r\n \"\
code\": \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n \
\ \"displayStatus\": \"Provisioning succeeded\",\r\n \"message\": \"\
@@ -970,7 +1041,7 @@ interactions:
r(Reading database ... 65%\\r(Reading database ... 70%\\r(Reading database\
\ ... 75%\\r(Reading database ... 80%\\r(Reading database ... 85%\\r(Reading\
\ database ... 90%\\r(Reading database ... 95%\\r(Reading database ... 100%\\\
- r(Reading database ... 61478 files and directories currently installed.)\\\
+ r(Reading database ... 54153 files and directories currently installed.)\\\
r\\nPreparing to unpack .../libjpeg-turbo8_1.4.2-0ubuntu3_amd64.deb ...\\\
r\\nUnpacking libjpeg-turbo8:amd64 (1.4.2-0ubuntu3) ...\\r\\nSelecting previously\
\ unselected package libjbig0:amd64.\\r\\nPreparing to unpack .../libjbig0_2.1-3.1_amd64.deb\
@@ -1004,7 +1075,7 @@ interactions:
\ for libc-bin (2.23-0ubuntu9) ...\\r\\nProcessing triggers for man-db (2.7.5-1)\
\ ...\\r\\nProcessing triggers for ureadahead (0.100.0-19) ...\\r\\nProcessing\
\ triggers for ufw (0.35-0ubuntu2) ...\\r\\nProcessing triggers for systemd\
- \ (229-4ubuntu19) ...\\r\\nSetting up libjpeg-turbo8:amd64 (1.4.2-0ubuntu3)\
+ \ (229-4ubuntu21) ...\\r\\nSetting up libjpeg-turbo8:amd64 (1.4.2-0ubuntu3)\
\ ...\\r\\nSetting up libjbig0:amd64 (2.1-3.1) ...\\r\\nSetting up fonts-dejavu-core\
\ (2.35-1) ...\\r\\nSetting up fontconfig-config (2.11.94-0ubuntu1.1) ...\\\
r\\nSetting up libfontconfig1:amd64 (2.11.94-0ubuntu1.1) ...\\r\\nSetting\
@@ -1018,7 +1089,7 @@ interactions:
ndebconf: falling back to frontend: Readline\\r\\nSetting up nginx-core (1.10.3-0ubuntu0.16.04.2)\
\ ...\\r\\nSetting up nginx (1.10.3-0ubuntu0.16.04.2) ...\\r\\nProcessing\
\ triggers for libc-bin (2.23-0ubuntu9) ...\\r\\nProcessing triggers for systemd\
- \ (229-4ubuntu19) ...\\r\\nProcessing triggers for ureadahead (0.100.0-19)\
+ \ (229-4ubuntu21) ...\\r\\nProcessing triggers for ureadahead (0.100.0-19)\
\ ...\\r\\nProcessing triggers for ufw (0.35-0ubuntu2) ...\\r\\n\\n---errout---\\\
ndebconf: unable to initialize frontend: Dialog\\ndebconf: (Dialog frontend\
\ will not work on a dumb terminal, an emacs shell buffer, or without a controlling\
@@ -1026,18 +1097,19 @@ interactions:
\ to initialize frontend: Readline\\ndebconf: (This frontend requires a controlling\
\ tty.)\\ndebconf: falling back to frontend: Teletype\\ndpkg-preconfigure:\
\ unable to re-open stdin: \\n\\n\"\r\n }\r\n]\r\n },\r\n \"name\": \"\
- 6b12abae-36c1-41ff-988a-399d9383fadb\"\r\n}"}
+ 03dc0df5-da93-46e5-afca-9dfea7817660\"\r\n}"}
headers:
cache-control: [no-cache]
content-length: ['5076']
content-type: [application/json; charset=utf-8]
- date: ['Mon, 18 Sep 2017 23:12:22 GMT']
+ date: ['Fri, 17 Nov 2017 17:20:13 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
transfer-encoding: [chunked]
vary: [Accept-Encoding]
+ x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;2113,Microsoft.Compute/GetOperation30Min;17607']
status: {code: 200, message: OK}
- request:
body: null
@@ -1045,9 +1117,9 @@ interactions:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
- User-Agent: [python-requests/2.9.1]
+ User-Agent: [python-requests/2.18.4]
method: GET
- uri: http://40.78.19.219/
+ uri: http://104.40.49.196/
response:
body: {string: "\n\n\nWelcome to nginx!\n\