diff --git a/src/azure-cli/HISTORY.rst b/src/azure-cli/HISTORY.rst index 29e41d969d3..a11ae0cfac3 100644 --- a/src/azure-cli/HISTORY.rst +++ b/src/azure-cli/HISTORY.rst @@ -28,6 +28,8 @@ Release History **Compute** * vm create: Add warning when specifying accelerated networking and an existing NIC together. +* vm create: Add --vmss to specify an existing virtual machine scale set that the virtual machine should be assigned to. +* vmss create: Add --orchestrator to specify how virtual machines are managed by the scale set. * vm/vmss update: Add --ultra-ssd-enabled to allow updating ultra SSD setting. * [BREAKING CHANGE] vm extension set: Fix bug where users could not set an extension on a VM with --ids. * New commands `az vm image terms accept/cancel/show` to manage Azure Marketplace image terms. diff --git a/src/azure-cli/azure/cli/command_modules/vm/_params.py b/src/azure-cli/azure/cli/command_modules/vm/_params.py index be93ce6f711..b5713ba4fdc 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -281,6 +281,7 @@ def load_arguments(self, _): 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('availability_set', help='Name or ID of an existing availability set to add the VM to. None by default.') + c.argument('vmss', help='Name or ID of an existing virtual machine scale set that the virtual machine should be assigned to. None by default.') c.argument('nsg', help='The name to use when creating a new Network Security Group (default) or referencing an existing one. Can also reference an existing NSG by ID or specify "" for none.', arg_group='Network') c.argument('nsg_rule', help='NSG rule to create when creating a new NSG. Defaults to open ports for allowing RDP on Windows and allowing SSH on Linux.', arg_group='Network', arg_type=get_enum_type(['RDP', 'SSH'])) c.argument('application_security_groups', resource_type=ResourceType.MGMT_NETWORK, min_api='2017-09-01', nargs='+', options_list=['--asgs'], help='Space-separated list of existing application security groups to associate with the VM.', arg_group='Network', validator=validate_asg_names_or_ids) @@ -501,6 +502,8 @@ def load_arguments(self, _): help="The eviction policy for virtual machines in a low priority scale set.", is_preview=True) c.argument('application_security_groups', resource_type=ResourceType.MGMT_COMPUTE, min_api='2018-06-01', nargs='+', options_list=['--asgs'], help='Space-separated list of existing application security groups to associate with the VM.', arg_group='Network', validator=validate_asg_names_or_ids) c.argument('computer_name_prefix', help='Computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long') + c.argument('orchestrator', help='Choose how virtual machines are managed by the scale set. In VM mode, you manually create and add a virtual machine of any configuration to the scale set. In ScaleSet mode, you define a virtual machine model and Azure will generate identical instances based on that model.', + arg_type=get_enum_type(['VM', 'ScaleSet'])) with self.argument_context('vmss create', arg_group='Network Balancer') as c: LoadBalancerSkuName = self.get_models('LoadBalancerSkuName', resource_type=ResourceType.MGMT_NETWORK) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_template_builder.py b/src/azure-cli/azure/cli/command_modules/vm/_template_builder.py index 5cf8e7eaf3a..b9c28d0ea31 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_template_builder.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_template_builder.py @@ -249,7 +249,7 @@ def build_vm_resource( # pylint: disable=too-many-locals, too-many-statements attach_os_disk=None, os_disk_size_gb=None, custom_data=None, secrets=None, license_type=None, zone=None, disk_info=None, boot_diagnostics_storage_uri=None, ultra_ssd_enabled=None, proximity_placement_group=None, computer_name=None, dedicated_host=None, priority=None, max_billing=None, eviction_policy=None, - enable_agent=None): + enable_agent=None, vmss=None): os_caching = disk_info['os'].get('caching') @@ -387,6 +387,10 @@ def _build_storage_profile(): if availability_set_id: vm_properties['availabilitySet'] = {'id': availability_set_id} + # vmss is ID + if vmss is not None: + vm_properties['virtualMachineScaleSet'] = {'id': vmss} + if not attach_os_disk: vm_properties['osProfile'] = _build_os_profile() @@ -647,7 +651,7 @@ def build_vmss_resource(cmd, name, naming_prefix, location, tags, overprovision, single_placement_group=None, platform_fault_domain_count=None, custom_data=None, secrets=None, license_type=None, zones=None, priority=None, eviction_policy=None, application_security_groups=None, ultra_ssd_enabled=None, proximity_placement_group=None, - terminate_notification_time=None, max_billing=None): + terminate_notification_time=None, max_billing=None, orchestrator=None): # Build IP configuration ip_configuration = { @@ -847,6 +851,22 @@ def build_vmss_resource(cmd, name, naming_prefix, location, tags, overprovision, } if zones: vmss['zones'] = zones + # vmss without vm profile + if orchestrator == 'VM': + if platform_fault_domain_count is None: + platform_fault_domain_count = 2 + vmss = { + 'type': 'Microsoft.Compute/virtualMachineScaleSets', + 'name': name, + 'location': location, + 'tags': tags, + 'apiVersion': cmd.get_api_version(ResourceType.MGMT_COMPUTE, operation_group='virtual_machine_scale_sets'), + 'properties': { + 'singlePlacementGroup': True, + 'provisioningState': 0, + 'platformFaultDomainCount': platform_fault_domain_count + } + } return vmss diff --git a/src/azure-cli/azure/cli/command_modules/vm/_validators.py b/src/azure-cli/azure/cli/command_modules/vm/_validators.py index d051c484efd..7ad2dab7f81 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_validators.py @@ -562,6 +562,26 @@ def _validate_vm_create_availability_set(cmd, namespace): logger.debug("adding to specified availability set '%s'", namespace.availability_set) +def _validate_vm_create_vmss(cmd, namespace): + from msrestazure.tools import parse_resource_id, resource_id + from azure.cli.core.commands.client_factory import get_subscription_id + if namespace.vmss: + as_id = parse_resource_id(namespace.vmss) + name = as_id['name'] + rg = as_id.get('resource_group', namespace.resource_group_name) + + if not check_existence(cmd.cli_ctx, name, rg, 'Microsoft.Compute', 'virtualMachineScaleSets'): + raise CLIError("virtual machine scale set '{}' does not exist.".format(name)) + + namespace.vmss = resource_id( + subscription=get_subscription_id(cmd.cli_ctx), + resource_group=rg, + namespace='Microsoft.Compute', + type='virtualMachineScaleSets', + name=name) + logger.debug("adding to specified virtual machine scale set '%s'", namespace.vmss) + + def _validate_vm_create_dedicated_host(cmd, namespace): from msrestazure.tools import resource_id, is_valid_resource_id from azure.cli.core.commands.client_factory import get_subscription_id @@ -1108,6 +1128,7 @@ def process_vm_create_namespace(cmd, namespace): _validate_vm_create_storage_account(cmd, namespace) _validate_vm_create_availability_set(cmd, namespace) + _validate_vm_create_vmss(cmd, namespace) _validate_vm_vmss_create_vnet(cmd, namespace) _validate_vm_create_nsg(cmd, namespace) _validate_vm_vmss_create_public_ip(cmd, namespace) @@ -1280,6 +1301,8 @@ def get_network_lb(cli_ctx, resource_group_name, lb_name): def process_vmss_create_namespace(cmd, namespace): + if namespace.orchestrator == 'VM': + namespace.image = 'centos' # Will be ignored. Just aim to pass validation. validate_tags(namespace) if namespace.vm_sku is None: from azure.cli.core.cloud import AZURE_US_GOV_CLOUD diff --git a/src/azure-cli/azure/cli/command_modules/vm/custom.py b/src/azure-cli/azure/cli/command_modules/vm/custom.py index f01db94497e..13a7ff3eecc 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -522,7 +522,7 @@ def create_vm(cmd, vm_name, resource_group_name, image=None, size='Standard_DS1_ identity_role='Contributor', identity_role_id=None, application_security_groups=None, zone=None, boot_diagnostics_storage=None, ultra_ssd_enabled=None, ephemeral_os_disk=None, proximity_placement_group=None, dedicated_host=None, dedicated_host_group=None, aux_subscriptions=None, - priority=None, max_billing=None, eviction_policy=None, enable_agent=None, workspace=None): + priority=None, max_billing=None, eviction_policy=None, enable_agent=None, workspace=None, vmss=None): from azure.cli.core.commands.client_factory import get_subscription_id from azure.cli.core.util import random_string, hash_string from azure.cli.core.commands.arm import ArmTemplateBuilder @@ -650,7 +650,7 @@ def create_vm(cmd, vm_name, resource_group_name, image=None, size='Standard_DS1_ boot_diagnostics_storage_uri=boot_diagnostics_storage, ultra_ssd_enabled=ultra_ssd_enabled, proximity_placement_group=proximity_placement_group, computer_name=computer_name, dedicated_host=dedicated_host, priority=priority, max_billing=max_billing, eviction_policy=eviction_policy, - enable_agent=enable_agent) + enable_agent=enable_agent, vmss=vmss) vm_resource['dependsOn'] = vm_dependencies @@ -1958,7 +1958,7 @@ def setter(vmss, external_identities=external_identities): # pylint: disable=too-many-locals, too-many-statements -def create_vmss(cmd, vmss_name, resource_group_name, image, +def create_vmss(cmd, vmss_name, resource_group_name, image=None, disable_overprovision=False, instance_count=2, location=None, tags=None, upgrade_policy_mode='manual', validate=False, admin_username=None, admin_password=None, authentication_type=None, @@ -1986,7 +1986,7 @@ def create_vmss(cmd, vmss_name, resource_group_name, image, identity_role_id=None, zones=None, priority=None, eviction_policy=None, application_security_groups=None, ultra_ssd_enabled=None, ephemeral_os_disk=None, proximity_placement_group=None, aux_subscriptions=None, terminate_notification_time=None, - max_billing=None, computer_name_prefix=None): + max_billing=None, computer_name_prefix=None, orchestrator='ScaleSet'): from azure.cli.core.commands.client_factory import get_subscription_id from azure.cli.core.util import random_string, hash_string from azure.cli.core.commands.arm import ArmTemplateBuilder @@ -2194,7 +2194,7 @@ def _get_public_ip_address_allocation(value, sku): custom_data=custom_data, secrets=secrets, license_type=license_type, zones=zones, priority=priority, eviction_policy=eviction_policy, application_security_groups=application_security_groups, ultra_ssd_enabled=ultra_ssd_enabled, proximity_placement_group=proximity_placement_group, - terminate_notification_time=terminate_notification_time, max_billing=max_billing) + terminate_notification_time=terminate_notification_time, max_billing=max_billing, orchestrator=orchestrator) vmss_resource['dependsOn'] = vmss_dependencies if plan_name: diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_reference_vmss.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_reference_vmss.yaml new file mode 100644 index 00000000000..dae49a7d129 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_reference_vmss.yaml @@ -0,0 +1,1701 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -g -n --orchestrator + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_reference_vmss_000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001","name":"cli_test_vm_reference_vmss_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-10-24T09:17:51Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 24 Oct 2019 09:17:57 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + 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 \"outputs\": {\n \"aliases\": {\n \"type\": + \"object\",\n \"value\": {\n \"Linux\": {\n \"CentOS\": + {\n \"publisher\": \"OpenLogic\",\n \"offer\": \"CentOS\",\n + \ \"sku\": \"7.5\",\n \"version\": \"latest\"\n },\n + \ \"CoreOS\": {\n \"publisher\": \"CoreOS\",\n \"offer\": + \"CoreOS\",\n \"sku\": \"Stable\",\n \"version\": \"latest\"\n + \ },\n \"Debian\": {\n \"publisher\": \"Debian\",\n + \ \"offer\": \"debian-10\",\n \"sku\": \"10\",\n \"version\": + \"latest\"\n },\n \"openSUSE-Leap\": {\n \"publisher\": + \"SUSE\",\n \"offer\": \"openSUSE-Leap\",\n \"sku\": + \"42.3\",\n \"version\": \"latest\"\n },\n \"RHEL\": + {\n \"publisher\": \"RedHat\",\n \"offer\": \"RHEL\",\n + \ \"sku\": \"7-LVM\",\n \"version\": \"latest\"\n },\n + \ \"SLES\": {\n \"publisher\": \"SUSE\",\n \"offer\": + \"SLES\",\n \"sku\": \"15\",\n \"version\": \"latest\"\n + \ },\n \"UbuntuLTS\": {\n \"publisher\": \"Canonical\",\n + \ \"offer\": \"UbuntuServer\",\n \"sku\": \"18.04-LTS\",\n + \ \"version\": \"latest\"\n }\n },\n \"Windows\": + {\n \"Win2019Datacenter\": {\n \"publisher\": \"MicrosoftWindowsServer\",\n + \ \"offer\": \"WindowsServer\",\n \"sku\": \"2019-Datacenter\",\n + \ \"version\": \"latest\"\n },\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: + - keep-alive + content-length: + - '2501' + content-security-policy: + - default-src 'none'; style-src 'unsafe-inline'; sandbox + content-type: + - text/plain; charset=utf-8 + date: + - Thu, 24 Oct 2019 09:17:57 GMT + etag: + - W/"540044b4084c3c314537f1baa1770f248628b2bc9ba0328f1004c33862e049da" + expires: + - Thu, 24 Oct 2019 09:22:57 GMT + source-age: + - '155' + strict-transport-security: + - max-age=31536000 + vary: + - Authorization,Accept-Encoding, Accept-Encoding + via: + - 1.1 varnish + x-cache: + - HIT + x-cache-hits: + - '1' + x-content-type-options: + - nosniff + x-fastly-request-id: + - 4b959da6d2066b67d68f7dc3f37ab6f7393a711a + x-frame-options: + - deny + x-geo-block-list: + - '' + x-github-request-id: + - F77A:13F5:1CDA09:1EFEC3:5DB16BA9 + x-served-by: + - cache-sin18046-SIN + x-timer: + - S1571908677.377553,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 + ParameterSetName: + - -g -n --orchestrator + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/virtualNetworks?api-version=2018-01-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 24 Oct 2019 09:17:57 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: 'b''{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "parameters": {}, "variables": {}, "resources": + [{"name": "vmss1VNET", "type": "Microsoft.Network/virtualNetworks", "location": + "westus", "apiVersion": "2015-06-15", "dependsOn": [], "tags": {}, "properties": + {"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": [{"name": + "vmss1Subnet", "properties": {"addressPrefix": "10.0.0.0/24"}}]}}, {"apiVersion": + "2018-01-01", "type": "Microsoft.Network/publicIPAddresses", "name": "vmss1LBPublicIP", + "location": "westus", "tags": {}, "dependsOn": [], "properties": {"publicIPAllocationMethod": + "Dynamic"}}, {"type": "Microsoft.Network/loadBalancers", "name": "vmss1LB", + "location": "westus", "tags": {}, "apiVersion": "2018-01-01", "dependsOn": ["Microsoft.Network/virtualNetworks/vmss1VNET", + "Microsoft.Network/publicIpAddresses/vmss1LBPublicIP"], "properties": {"backendAddressPools": + [{"name": "vmss1LBBEPool"}], "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_vm_reference_vmss_000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP"}}}]}}, + {"type": "Microsoft.Compute/virtualMachineScaleSets", "name": "vmss1", "location": + "westus", "tags": {}, "apiVersion": "2019-03-01", "properties": {"singlePlacementGroup": + true, "provisioningState": 0, "platformFaultDomainCount": 2}, "dependsOn": ["Microsoft.Network/virtualNetworks/vmss1VNET", + "Microsoft.Network/loadBalancers/vmss1LB"]}], "outputs": {"VMSS": {"type": "object", + "value": "[reference(resourceId(\''Microsoft.Compute/virtualMachineScaleSets\'', + \''vmss1\''),providers(\''Microsoft.Compute\'', \''virtualMachineScaleSets\'').apiVersions[0])]"}}}, + "parameters": {}, "mode": "Incremental"}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + Content-Length: + - '2257' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --orchestrator + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Resources/deployments/vmss_deploy_NMryvk5uNHqEuSHudTfDW7zlg6Rgj70a","name":"vmss_deploy_NMryvk5uNHqEuSHudTfDW7zlg6Rgj70a","type":"Microsoft.Resources/deployments","properties":{"templateHash":"17250663374794133627","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2019-10-24T09:18:02.3717488Z","duration":"PT3.1041445S","correlationId":"e14e945f-6cc1-48ca-8506-0ca3951e37a5","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_reference_vmss_000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/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/cli_test_vm_reference_vmss_000001/providers/Microsoft.Resources/deployments/vmss_deploy_NMryvk5uNHqEuSHudTfDW7zlg6Rgj70a/operationStatuses/08586296982062100226?api-version=2019-07-01 + cache-control: + - no-cache + content-length: + - '2693' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 24 Oct 2019 09:18:04 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -g -n --orchestrator + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586296982062100226?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 24 Oct 2019 09:18:35 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -g -n --orchestrator + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586296982062100226?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 24 Oct 2019 09:19:05 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -g -n --orchestrator + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586296982062100226?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 24 Oct 2019 09:19:36 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -g -n --orchestrator + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586296982062100226?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 24 Oct 2019 09:20:07 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -g -n --orchestrator + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586296982062100226?api-version=2019-07-01 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 24 Oct 2019 09:20:37 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -g -n --orchestrator + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Resources/deployments/vmss_deploy_NMryvk5uNHqEuSHudTfDW7zlg6Rgj70a","name":"vmss_deploy_NMryvk5uNHqEuSHudTfDW7zlg6Rgj70a","type":"Microsoft.Resources/deployments","properties":{"templateHash":"17250663374794133627","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2019-10-24T09:20:15.1883504Z","duration":"PT2M15.9207461S","correlationId":"e14e945f-6cc1-48ca-8506-0ca3951e37a5","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_reference_vmss_000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"provisioningState":"Succeeded","uniqueId":"94732148-6ae7-4a5a-b1f1-7123d6fbf0f3","platformFaultDomainCount":2}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/loadBalancers/vmss1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '3735' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 24 Oct 2019 09:20:37 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --vmss + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_reference_vmss_000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001","name":"cli_test_vm_reference_vmss_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-10-24T09:17:51Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 24 Oct 2019 09:20:39 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + 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 \"outputs\": {\n \"aliases\": {\n \"type\": + \"object\",\n \"value\": {\n \"Linux\": {\n \"CentOS\": + {\n \"publisher\": \"OpenLogic\",\n \"offer\": \"CentOS\",\n + \ \"sku\": \"7.5\",\n \"version\": \"latest\"\n },\n + \ \"CoreOS\": {\n \"publisher\": \"CoreOS\",\n \"offer\": + \"CoreOS\",\n \"sku\": \"Stable\",\n \"version\": \"latest\"\n + \ },\n \"Debian\": {\n \"publisher\": \"Debian\",\n + \ \"offer\": \"debian-10\",\n \"sku\": \"10\",\n \"version\": + \"latest\"\n },\n \"openSUSE-Leap\": {\n \"publisher\": + \"SUSE\",\n \"offer\": \"openSUSE-Leap\",\n \"sku\": + \"42.3\",\n \"version\": \"latest\"\n },\n \"RHEL\": + {\n \"publisher\": \"RedHat\",\n \"offer\": \"RHEL\",\n + \ \"sku\": \"7-LVM\",\n \"version\": \"latest\"\n },\n + \ \"SLES\": {\n \"publisher\": \"SUSE\",\n \"offer\": + \"SLES\",\n \"sku\": \"15\",\n \"version\": \"latest\"\n + \ },\n \"UbuntuLTS\": {\n \"publisher\": \"Canonical\",\n + \ \"offer\": \"UbuntuServer\",\n \"sku\": \"18.04-LTS\",\n + \ \"version\": \"latest\"\n }\n },\n \"Windows\": + {\n \"Win2019Datacenter\": {\n \"publisher\": \"MicrosoftWindowsServer\",\n + \ \"offer\": \"WindowsServer\",\n \"sku\": \"2019-Datacenter\",\n + \ \"version\": \"latest\"\n },\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: + - keep-alive + content-length: + - '2501' + content-security-policy: + - default-src 'none'; style-src 'unsafe-inline'; sandbox + content-type: + - text/plain; charset=utf-8 + date: + - Thu, 24 Oct 2019 09:20:40 GMT + etag: + - W/"540044b4084c3c314537f1baa1770f248628b2bc9ba0328f1004c33862e049da" + expires: + - Thu, 24 Oct 2019 09:25:40 GMT + source-age: + - '0' + strict-transport-security: + - max-age=31536000 + vary: + - Authorization,Accept-Encoding, Accept-Encoding + via: + - 1.1 varnish + x-cache: + - MISS + x-cache-hits: + - '0' + x-content-type-options: + - nosniff + x-fastly-request-id: + - ca68a28a10c5b54a6e59c8e9bce4fdd12bfbd73c + x-frame-options: + - deny + x-geo-block-list: + - '' + x-github-request-id: + - E810:1624:1FB743:21EF8E:5DB16CE7 + x-served-by: + - cache-sin18028-SIN + x-timer: + - S1571908840.866878,VS0,VE292 + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --vmss + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute","namespace":"Microsoft.Compute","authorizations":[{"applicationId":"60e6cd67-9c8c-4951-9b3c-23c25a2169af","roleDefinitionId":"e4770acb-272e-4dc8-87f3-12f44a612224"},{"applicationId":"a303894e-f1d8-4a37-bf10-67aa654a0596","roleDefinitionId":"903ac751-8ad5-4e5a-bfc2-5e49f450a241"},{"applicationId":"a8b6bf88-1d1a-4626-b040-9a729ea93c65","roleDefinitionId":"45c8267c-80ba-4b96-9a43-115b8f49fccd"},{"applicationId":"184909ca-69f1-4368-a6a7-c558ee6eb0bd","roleDefinitionId":"45c8267c-80ba-4b96-9a43-115b8f49fccd"},{"applicationId":"5e5e43d4-54da-4211-86a4-c6e7f3715801","roleDefinitionId":"ffcd6e5b-8772-457d-bb17-89703c03428f"},{"applicationId":"ce6ff14a-7fdc-4685-bbe0-f6afdfcfa8e0","roleDefinitionId":"cb17cddc-dbac-4ae0-ae79-8db34eddfca0"},{"applicationId":"372140e0-b3b7-4226-8ef9-d57986796201","roleDefinitionId":"cb17cddc-dbac-4ae0-ae79-8db34eddfca0"}],"resourceTypes":[{"resourceType":"availabilitySets","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Australia Central","Brazil South","South India","Central + India","West India","Canada Central","Canada East","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","UAE North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"defaultApiVersion":"2018-06-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"virtualMachines","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Australia Central","Brazil South","South India","Central + India","West India","Canada Central","Canada East","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","UAE North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"defaultApiVersion":"2018-06-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"zoneMappings":[{"location":"East + US 2","zones":["2","3","1"]},{"location":"Central US","zones":["2","3","1"]},{"location":"West + Europe","zones":["2","3","1"]},{"location":"East US 2 EUAP","zones":["1","2","3"]},{"location":"Central + US EUAP","zones":[]},{"location":"France Central","zones":["2","3","1"]},{"location":"Southeast + Asia","zones":["2","3","1"]},{"location":"West US 2","zones":["2","3","1"]},{"location":"North + Europe","zones":["2","3","1"]},{"location":"East US","zones":["2","3","1"]},{"location":"UK + South","zones":["2","3","1"]},{"location":"Japan East","zones":["2","3","1"]},{"location":"Australia + East","zones":[]},{"location":"South Africa North","zones":[]},{"location":"South + Central US","zones":[]}],"capabilities":"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, + SystemAssignedResourceIdentity, SupportsTags, SupportsLocation"},{"resourceType":"virtualMachines/extensions","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Australia Central","Brazil South","South India","Central + India","West India","Canada Central","Canada East","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","UAE North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"defaultApiVersion":"2018-06-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"virtualMachineScaleSets","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Australia Central","Brazil South","South India","Central + India","West India","Canada Central","Canada East","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","UAE North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-10-30-preview","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"defaultApiVersion":"2018-06-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"zoneMappings":[{"location":"East + US 2","zones":["2","3","1"]},{"location":"Central US","zones":["2","3","1"]},{"location":"West + Europe","zones":["2","3","1"]},{"location":"East US 2 EUAP","zones":["1","2","3"]},{"location":"Central + US EUAP","zones":[]},{"location":"France Central","zones":["2","3","1"]},{"location":"Southeast + Asia","zones":["2","3","1"]},{"location":"West US 2","zones":["2","3","1"]},{"location":"North + Europe","zones":["2","3","1"]},{"location":"East US","zones":["2","3","1"]},{"location":"UK + South","zones":["2","3","1"]},{"location":"Japan East","zones":["2","3","1"]},{"location":"Australia + East","zones":[]},{"location":"South Africa North","zones":[]},{"location":"South + Central US","zones":[]}],"capabilities":"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, + SystemAssignedResourceIdentity, SupportsTags, SupportsLocation"},{"resourceType":"virtualMachineScaleSets/extensions","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Australia Central","Brazil South","South India","Central + India","West India","Canada Central","Canada East","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","UAE North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-10-30-preview","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"defaultApiVersion":"2015-06-15","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"None"},{"resourceType":"virtualMachineScaleSets/virtualMachines","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Australia Central","Brazil South","South India","Central + India","West India","Canada Central","Canada East","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","UAE North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-10-30-preview","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"defaultApiVersion":"2018-06-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"None"},{"resourceType":"virtualMachineScaleSets/networkInterfaces","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Australia Central","Brazil South","South India","Central + India","West India","Canada Central","Canada East","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","UAE North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"None"},{"resourceType":"virtualMachineScaleSets/virtualMachines/networkInterfaces","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Australia Central","Brazil South","South India","Central + India","West India","Canada Central","Canada East","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","UAE North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"None"},{"resourceType":"virtualMachineScaleSets/publicIPAddresses","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Australia Central","Brazil South","South India","Central + India","West India","Canada Central","Canada East","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","UAE North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30"],"apiProfiles":[{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2019-07-01","2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"capabilities":"None"},{"resourceType":"locations/operations","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Australia Central","Brazil South","South India","Central + India","West India","Canada Central","Canada East","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","UAE North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-10-30-preview","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"None"},{"resourceType":"locations/vmSizes","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Australia Central","Brazil South","South India","Central + India","West India","Canada Central","Canada East","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","UAE North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"None"},{"resourceType":"locations/runCommands","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Australia Central","Brazil South","South India","Central + India","West India","Canada Central","Canada East","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","UAE North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30"],"apiProfiles":[{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"None"},{"resourceType":"locations/usages","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Australia Central","Brazil South","South India","Central + India","West India","Canada Central","Canada East","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","UAE North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"None"},{"resourceType":"locations/virtualMachines","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Australia Central","Brazil South","South India","Central + India","West India","Canada Central","Canada East","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","UAE North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30","2016-08-30"],"defaultApiVersion":"2018-06-01","apiProfiles":[{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"None"},{"resourceType":"locations/publishers","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Australia Central","Brazil South","South India","Central + India","West India","Canada Central","Canada East","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","UAE North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"None"},{"resourceType":"operations","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Australia Central","Brazil South","South India","Central + India","West India","Canada Central","Canada East","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","UAE North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30","2016-08-30","2016-03-30","2015-06-15","2015-05-01-preview"],"capabilities":"None"},{"resourceType":"restorePointCollections","locations":["Southeast + Asia","East US 2","Central US","West Europe","East US","North Central US","South + Central US","West US","North Europe","East Asia","Brazil South","West US 2","West + Central US","UK West","UK South","Japan East","Japan West","Canada Central","Canada + East","Central India","South India","Australia East","Australia Southeast","Korea + Central","Korea South","West India","France Central","South Africa North","UAE + North","Australia Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30"],"defaultApiVersion":"2018-06-01","capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"restorePointCollections/restorePoints","locations":["Southeast + Asia","East US 2","Central US","West Europe","East US","North Central US","South + Central US","West US","North Europe","East Asia","Brazil South","West US 2","West + Central US","UK West","UK South","Japan East","Japan West","Canada Central","Canada + East","Central India","South India","Australia East","Australia Southeast","Korea + Central","Korea South","West India","France Central","South Africa North","UAE + North","Australia Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30"],"capabilities":"None"},{"resourceType":"proximityPlacementGroups","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Australia Central","Brazil South","South India","Central + India","West India","Canada Central","Canada East","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","UAE North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-10-01","2018-06-01","2018-04-01"],"defaultApiVersion":"2018-06-01","capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"virtualMachines/metricDefinitions","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Australia Central","Brazil South","South India","Central + India","West India","Canada Central","Canada East","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","UAE North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2014-04-01"],"capabilities":"None"},{"resourceType":"sharedVMImages","locations":["West + Central US","South Central US","East US 2","Southeast Asia","West Europe","West + US","East US","Canada Central","North Europe","North Central US","Brazil South","UK + West","West India","East Asia","Australia East","Japan East","Korea South","West + US 2","Canada East","UK South","Central India","South India","Australia Southeast","Japan + West","Korea Central","France Central","Central US","Australia Central","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2017-10-15-preview"],"defaultApiVersion":"2017-10-15-preview","capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"sharedVMImages/versions","locations":["West + Central US","South Central US","East US 2","Southeast Asia","West Europe","West + US","East US","Canada Central","North Europe","North Central US","Brazil South","UK + West","West India","East Asia","Australia East","Japan East","Korea South","West + US 2","Canada East","UK South","Central India","South India","Australia Southeast","Japan + West","Korea Central","France Central","Central US","Australia Central","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2017-10-15-preview"],"defaultApiVersion":"2017-10-15-preview","capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"locations/artifactPublishers","locations":["West + Central US","South Central US","East US 2","Southeast Asia","West Europe","West + US","East US","Canada Central","North Europe","North Central US","Brazil South","UK + West","West India","East Asia","Australia East","Japan East","Korea South","West + US 2","Canada East","UK South","Central India","South India","Australia Southeast","Japan + West","Korea Central","France Central","Central US","Australia Central","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2017-10-15-preview"],"capabilities":"None"},{"resourceType":"locations/capsoperations","locations":["West + Central US","South Central US","East US 2","Southeast Asia","West Europe","West + US","East US","Canada Central","North Europe","North Central US","Brazil South","UK + West","West India","East Asia","Australia East","Japan East","Korea South","West + US 2","Canada East","UK South","Central India","South India","Australia Southeast","Japan + West","Korea Central","France Central","Central US","Australia Central","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-06-01","2017-10-15-preview"],"capabilities":"None"},{"resourceType":"galleries","locations":["West + Central US","South Central US","East US 2","Southeast Asia","West Europe","West + US","East US","Canada Central","North Europe","North Central US","Brazil South","UK + West","West India","East Asia","Australia East","Japan East","Korea South","West + US 2","Canada East","UK South","Central India","South India","Australia Southeast","Japan + West","Korea Central","France Central","Central US","Australia Central","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-06-01"],"defaultApiVersion":"2018-06-01","capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"galleries/images","locations":["West Central + US","South Central US","East US 2","Southeast Asia","West Europe","West US","East + US","Canada Central","North Europe","North Central US","Brazil South","UK + West","West India","East Asia","Australia East","Japan East","Korea South","West + US 2","Canada East","UK South","Central India","South India","Australia Southeast","Japan + West","Korea Central","France Central","Central US","Australia Central","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-06-01"],"defaultApiVersion":"2018-06-01","capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"galleries/images/versions","locations":["West + Central US","South Central US","East US 2","Southeast Asia","West Europe","West + US","East US","Canada Central","North Europe","North Central US","Brazil South","UK + West","West India","East Asia","Australia East","Japan East","Korea South","West + US 2","Canada East","UK South","Central India","South India","Australia Southeast","Japan + West","Korea Central","France Central","Central US","Australia Central","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-06-01"],"defaultApiVersion":"2018-06-01","capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"disks","locations":["Southeast Asia","East + US 2","Central US","West Europe","East US","North Central US","South Central + US","West US","North Europe","East Asia","Brazil South","West US 2","West + Central US","UK West","UK South","Japan East","Japan West","Canada Central","Canada + East","Central India","South India","Australia East","Australia Southeast","Korea + Central","Korea South","West India","France Central","South Africa North","UAE + North","Australia Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-09-30","2018-06-01","2018-04-01","2017-03-30","2016-04-30-preview"],"defaultApiVersion":"2018-06-01","apiProfiles":[{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-04-01"}],"zoneMappings":[{"location":"East + US 2","zones":["2","3","1"]},{"location":"Central US","zones":["2","3","1"]},{"location":"West + Europe","zones":["2","3","1"]},{"location":"East US 2 EUAP","zones":["1","2","3"]},{"location":"Central + US EUAP","zones":[]},{"location":"France Central","zones":["2","3","1"]},{"location":"Southeast + Asia","zones":["2","3","1"]},{"location":"West US 2","zones":["2","3","1"]},{"location":"North + Europe","zones":["2","3","1"]},{"location":"East US","zones":["2","3","1"]},{"location":"UK + South","zones":["2","3","1"]},{"location":"Japan East","zones":["2","3","1"]},{"location":"Australia + East","zones":[]},{"location":"South Africa North","zones":[]},{"location":"South + Central US","zones":[]}],"capabilities":"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, + SupportsTags, SupportsLocation"},{"resourceType":"snapshots","locations":["Southeast + Asia","East US 2","Central US","West Europe","East US","North Central US","South + Central US","West US","North Europe","East Asia","Brazil South","West US 2","West + Central US","UK West","UK South","Japan East","Japan West","Canada Central","Canada + East","Central India","South India","Australia East","Australia Southeast","Korea + Central","Korea South","West India","France Central","South Africa North","UAE + North","Australia Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-09-30","2018-06-01","2018-04-01","2017-03-30","2016-04-30-preview"],"defaultApiVersion":"2018-06-01","apiProfiles":[{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-04-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations/diskoperations","locations":["Southeast + Asia","East US 2","Central US","West Europe","East US","North Central US","South + Central US","West US","North Europe","East Asia","Brazil South","West US 2","West + Central US","UK West","UK South","Japan East","Japan West","Canada Central","Canada + East","Central India","South India","Australia East","Australia Southeast","Korea + Central","Korea South","West India","France Central","South Africa North","UAE + North","Australia Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-09-30","2018-06-01","2018-04-01","2017-03-30","2016-04-30-preview"],"apiProfiles":[{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-04-01"}],"capabilities":"None"},{"resourceType":"locations/vsmoperations","locations":["East + US","West Central US","South Central US","North Europe","Australia East","Central + US","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"None"},{"resourceType":"images","locations":["Southeast + Asia","East US 2","Central US","West Europe","East US","North Central US","South + Central US","West US","North Europe","East Asia","Brazil South","West US 2","West + Central US","UK West","UK South","Japan East","Japan West","Canada Central","Canada + East","Central India","South India","Australia East","Australia Southeast","Korea + Central","Korea South","West India","France Central","South Africa North","UAE + North","Australia Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30","2016-08-30","2016-04-30-preview"],"defaultApiVersion":"2018-06-01","apiProfiles":[{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-04-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations/logAnalytics","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Australia Central","Brazil South","South India","Central + India","West India","Canada Central","Canada East","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","UAE North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01"],"capabilities":"None"},{"resourceType":"hostGroups","locations":["Central + US","East US 2","West Europe","Southeast Asia","France Central","North Europe","West + US 2","East US","UK South","Japan East","Japan West","East Asia","North Central + US","South Central US","Canada East","Korea Central","Brazil South","UK West","Canada + Central","West US","West Central US","Central India","South India","Australia + Southeast","Korea South","West India","South Africa North","UAE North","Australia + Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-10-01"],"defaultApiVersion":"2018-10-01","zoneMappings":[{"location":"East + US 2","zones":["2","3","1"]},{"location":"Central US","zones":["2","3","1"]},{"location":"West + Europe","zones":["2","3","1"]},{"location":"East US 2 EUAP","zones":["1","2","3"]},{"location":"Central + US EUAP","zones":[]},{"location":"France Central","zones":["2","3","1"]},{"location":"Southeast + Asia","zones":["2","3","1"]},{"location":"West US 2","zones":["2","3","1"]},{"location":"North + Europe","zones":["2","3","1"]},{"location":"East US","zones":["2","3","1"]},{"location":"UK + South","zones":["2","3","1"]},{"location":"Japan East","zones":["2","3","1"]},{"location":"South + Africa North","zones":[]},{"location":"South Central US","zones":[]}],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"hostGroups/hosts","locations":["Central + US","East US 2","West Europe","Southeast Asia","France Central","North Europe","West + US 2","East US","UK South","Japan East","Japan West","East Asia","North Central + US","South Central US","Canada East","Korea Central","Brazil South","UK West","Canada + Central","West US","West Central US","Central India","South India","Australia + Southeast","Korea South","West India","South Africa North","UAE North","Australia + Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-07-01","2019-03-01","2018-10-01"],"defaultApiVersion":"2018-10-01","capabilities":"SupportsTags, + SupportsLocation"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '32951' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 24 Oct 2019 09:20:40 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --vmss + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"vmss1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"singlePlacementGroup\": + true,\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"94732148-6ae7-4a5a-b1f1-7123d6fbf0f3\",\r\n + \ \"platformFaultDomainCount\": 2\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '523' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 24 Oct 2019 09:20: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-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSet3Min;198,Microsoft.Compute/GetVMScaleSet30Min;1298 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --vmss + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/virtualNetworks?api-version=2018-01-01 + response: + body: + string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vmss1VNET\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET\",\r\n + \ \"etag\": \"W/\\\"253b10a7-4e7d-42f8-b0f4-fd4ce772cb07\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": + \"Succeeded\",\r\n \"resourceGuid\": \"e67da3a0-e33b-42a6-a75e-0204a65411e4\",\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\": + \"vmss1Subnet\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET/subnets/vmss1Subnet\",\r\n + \ \"etag\": \"W/\\\"253b10a7-4e7d-42f8-b0f4-fd4ce772cb07\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"addressPrefix\": \"10.0.0.0/24\"\r\n },\r\n \"type\": + \"Microsoft.Network/virtualNetworks/subnets\"\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: + - '1413' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 24 Oct 2019 09:20: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-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - f27a5baa-8bb3-4839-8c31-0fd5da6bd1e2 + status: + code: 200 + message: OK +- request: + body: 'b''{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "parameters": {}, "variables": {}, "resources": + [{"type": "Microsoft.Network/networkSecurityGroups", "name": "vm1NSG", "apiVersion": + "2015-06-15", "location": "westus", "tags": {}, "dependsOn": [], "properties": + {"securityRules": [{"name": "default-allow-ssh", "properties": {"protocol": + "Tcp", "sourcePortRange": "*", "destinationPortRange": "22", "sourceAddressPrefix": + "*", "destinationAddressPrefix": "*", "access": "Allow", "priority": 1000, "direction": + "Inbound"}}]}}, {"apiVersion": "2018-01-01", "type": "Microsoft.Network/publicIPAddresses", + "name": "vm1PublicIP", "location": "westus", "tags": {}, "dependsOn": [], "properties": + {"publicIPAllocationMethod": null}}, {"apiVersion": "2015-06-15", "type": "Microsoft.Network/networkInterfaces", + "name": "vm1VMNic", "location": "westus", "tags": {}, "dependsOn": ["Microsoft.Network/networkSecurityGroups/vm1NSG", + "Microsoft.Network/publicIpAddresses/vm1PublicIP"], "properties": {"ipConfigurations": + [{"name": "ipconfigvm1", "properties": {"privateIPAllocationMethod": "Dynamic", + "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET/subnets/vmss1Subnet"}, + "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP"}}}], + "networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG"}}}, + {"apiVersion": "2019-03-01", "type": "Microsoft.Compute/virtualMachines", "name": + "vm1", "location": "westus", "tags": {}, "dependsOn": ["Microsoft.Network/networkInterfaces/vm1VMNic"], + "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "networkProfile": + {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"}]}, + "storageProfile": {"osDisk": {"createOption": "fromImage", "name": null, "caching": + "ReadWrite", "managedDisk": {"storageAccountType": null}}, "imageReference": + {"publisher": "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", "version": + "latest"}}, "virtualMachineScaleSet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1"}, + "osProfile": {"computerName": "vm1", "adminUsername": "fey", "linuxConfiguration": + {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"keyData": "ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX", + "path": "/home/fey/.ssh/authorized_keys"}]}}}}}], "outputs": {}}, "parameters": + {}, "mode": "Incremental"}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + Content-Length: + - '3545' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --image --vmss + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Resources/deployments/vm_deploy_U6TiQBekTfhbvAV9LtjbEFCkedUNoAjB","name":"vm_deploy_U6TiQBekTfhbvAV9LtjbEFCkedUNoAjB","type":"Microsoft.Resources/deployments","properties":{"templateHash":"1807455583439323368","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2019-10-24T09:20:44.0580252Z","duration":"PT1.4203293S","correlationId":"cf19f027-7a2c-4690-91ef-bdc12fd30f84","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_reference_vmss_000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/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/cli_test_vm_reference_vmss_000001/providers/Microsoft.Resources/deployments/vm_deploy_U6TiQBekTfhbvAV9LtjbEFCkedUNoAjB/operationStatuses/08586296980428399303?api-version=2019-07-01 + cache-control: + - no-cache + content-length: + - '2404' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 24 Oct 2019 09:20:44 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + 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 + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --vmss + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586296980428399303?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 24 Oct 2019 09:21:15 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --vmss + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586296980428399303?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 24 Oct 2019 09:21:46 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --vmss + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586296980428399303?api-version=2019-07-01 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 24 Oct 2019 09:22:16 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --vmss + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Resources/deployments/vm_deploy_U6TiQBekTfhbvAV9LtjbEFCkedUNoAjB","name":"vm_deploy_U6TiQBekTfhbvAV9LtjbEFCkedUNoAjB","type":"Microsoft.Resources/deployments","properties":{"templateHash":"1807455583439323368","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2019-10-24T09:22:16.7926387Z","duration":"PT1M34.1549428S","correlationId":"cf19f027-7a2c-4690-91ef-bdc12fd30f84","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_reference_vmss_000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Compute/virtualMachines/vm1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '3267' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 24 Oct 2019 09:22:17 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --vmss + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2019-03-01 + response: + body: + string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"84765d2a-0d90-46a4-aa43-a780615ef35d\",\r\n + \ \"virtualMachineScaleSet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1\"\r\n + \ },\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\": + \"18.04-LTS\",\r\n \"version\": \"latest\"\r\n },\r\n \"osDisk\": + {\r\n \"osType\": \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_d496cb11b9974860a29a6cd4c711fd66\",\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/cli_test_vm_reference_vmss_000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_d496cb11b9974860a29a6cd4c711fd66\"\r\n + \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\",\r\n + \ \"adminUsername\": \"fey\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/fey/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": {\r\n \"platformUpdateDomain\": + 0,\r\n \"platformFaultDomain\": 0,\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\": + \"2019-10-24T09:22:18+00:00\"\r\n }\r\n ]\r\n },\r\n + \ \"disks\": [\r\n {\r\n \"name\": \"vm1_OsDisk_1_d496cb11b9974860a29a6cd4c711fd66\",\r\n + \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2019-10-24T09:21:21.619154+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": + \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2019-10-24T09:22:15.6995763+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}" + headers: + cache-control: + - no-cache + content-length: + - '3933' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 24 Oct 2019 09:22: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-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3998,Microsoft.Compute/LowCostGet30Min;31998 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --vmss + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic?api-version=2018-01-01 + response: + body: + string: "{\r\n \"name\": \"vm1VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\",\r\n + \ \"etag\": \"W/\\\"c84fd8e0-9501-4829-9ace-579725589ba7\\\"\",\r\n \"location\": + \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": + \"Succeeded\",\r\n \"resourceGuid\": \"77e56772-b8eb-49d1-b512-95285b03f58f\",\r\n + \ \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\",\r\n + \ \"etag\": \"W/\\\"c84fd8e0-9501-4829-9ace-579725589ba7\\\"\",\r\n + \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\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/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP\"\r\n + \ },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET/subnets/vmss1Subnet\"\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\": + \"ucrx1zr12otefj04aickmvar2e.dx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"00-0D-3A-5A-59-A5\",\r\n \"enableAcceleratedNetworking\": false,\r\n + \ \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG\"\r\n + \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Compute/virtualMachines/vm1\"\r\n + \ }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2572' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 24 Oct 2019 09:22:18 GMT + etag: + - W/"c84fd8e0-9501-4829-9ace-579725589ba7" + 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-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 962a6cdf-832b-4513-9a70-2add0388cad2 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --vmss + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP?api-version=2018-01-01 + response: + body: + string: "{\r\n \"name\": \"vm1PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP\",\r\n + \ \"etag\": \"W/\\\"c2ce350a-53a4-4d9b-994e-384c7b91dd3d\\\"\",\r\n \"location\": + \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": + \"Succeeded\",\r\n \"resourceGuid\": \"a8301240-ed98-4d25-bc2a-597a7de50fc6\",\r\n + \ \"ipAddress\": \"40.112.253.47\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n + \ \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": + 4,\r\n \"ipTags\": [],\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/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 \"tier\": \"Regional\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1022' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 24 Oct 2019 09:22:18 GMT + etag: + - W/"c2ce350a-53a4-4d9b-994e-384c7b91dd3d" + 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-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 0055756e-cd3c-4c58-9bde-15f689d9e10a + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1?api-version=2019-03-01 + response: + body: + string: "{\r\n \"name\": \"vmss1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"singlePlacementGroup\": + true,\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"94732148-6ae7-4a5a-b1f1-7123d6fbf0f3\",\r\n + \ \"platformFaultDomainCount\": 2\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '523' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 24 Oct 2019 09:22: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-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSet3Min;197,Microsoft.Compute/GetVMScaleSet30Min;1297 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2019-03-01 + response: + body: + string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"84765d2a-0d90-46a4-aa43-a780615ef35d\",\r\n + \ \"virtualMachineScaleSet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1\"\r\n + \ },\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\": + \"18.04-LTS\",\r\n \"version\": \"latest\"\r\n },\r\n \"osDisk\": + {\r\n \"osType\": \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_d496cb11b9974860a29a6cd4c711fd66\",\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/cli_test_vm_reference_vmss_000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_d496cb11b9974860a29a6cd4c711fd66\"\r\n + \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\",\r\n + \ \"adminUsername\": \"fey\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/fey/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_reference_vmss_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2661' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 24 Oct 2019 09:22: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-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3996,Microsoft.Compute/LowCostGet30Min;31996 + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py index 0d8ed423daf..589cee903da 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py @@ -1416,6 +1416,20 @@ def test_vm_create_existing_options(self, resource_group, storage_account): self.cmd('vm show -n {vm} -g {rg}', checks=self.check('storageProfile.osDisk.vhd.uri', 'https://{sa}.blob.core.windows.net/{container}/{disk}.vhd')) + @ResourceGroupPreparer(name_prefix='cli_test_vm_reference_vmss_') + def test_vm_reference_vmss(self, resource_group): + self.kwargs.update({ + 'vm': 'vm1', + 'vmss': 'vmss1' + }) + + self.cmd('vmss create -g {rg} -n {vmss} --orchestrator VM') + self.cmd('vm create -g {rg} -n {vm} --image ubuntults --vmss {vmss}') + vmss_id = self.cmd('vmss show -g {rg} -n {vmss}').get_output_in_json()['id'] + self.cmd('vm show -g {rg} -n {vm}', checks=[ + self.check('virtualMachineScaleSet.id', vmss_id) + ]) + @ResourceGroupPreparer(name_prefix='cli_test_vm_create_provision_vm_agent_') def test_vm_create_provision_vm_agent(self, resource_group): self.kwargs.update({ @@ -3514,7 +3528,7 @@ def test_vmss_terminate_notification(self, resource_group): self.cmd('vmss update -g {rg} -n {vm} --enable-terminate-notification') -class VMPriorityEvictionBilling(ScenarioTest): +class VMPriorityEvictionBillingTest(ScenarioTest): @ResourceGroupPreparer(name_prefix='cli_test_vm_priority_eviction_billing_') def test_vm_priority_eviction_billing(self, resource_group):